]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - mfp/cedev.git/blob - configure.ac
OMAP54XX: Add remote codec support
[mfp/cedev.git] / configure.ac
1 #
2 #   Copyright (c) 2013-2014, Texas Instruments Incorporated
3 #
4 #   Redistribution and use in source and binary forms, with or without
5 #   modification, are permitted provided that the following conditions
6 #   are met:
7 #
8 #   *  Redistributions of source code must retain the above copyright
9 #      notice, this list of conditions and the following disclaimer.
10 #
11 #   *  Redistributions in binary form must reproduce the above copyright
12 #      notice, this list of conditions and the following disclaimer in the
13 #      documentation and/or other materials provided with the distribution.
14 #
15 #   *  Neither the name of Texas Instruments Incorporated nor the names of
16 #      its contributors may be used to endorse or promote products derived
17 #      from this software without specific prior written permission.
18 #
19 #   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 #   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21 #   THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 #   PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
23 #   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 #   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 #   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26 #   OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 #   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 #   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
29 #   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 #
31 # ======== configure.ac ========
32 #
34 # Process this file with autoconf to produce a configure script.
35 AC_PREREQ(2.59)
37 # Initilize autoconf
38 AC_INIT(CE, 4.0.0, )
40 # Check common src files to ensure integrity of the package
41 AC_CONFIG_SRCDIR([packages/ti/sdo/ce/Engine.h])
43 # Set auxiliary build tools directory
44 AC_CONFIG_AUX_DIR([linux/build-aux])
46 # Initilize automake
47 AM_INIT_AUTOMAKE([foreign])
49 # Disabling maintainer mode to prevent rebuild of configure script
50 AM_MAINTAINER_MODE([disable])
52 # Initalize libtool but disable fortran check
53 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
54 AC_PROG_LIBTOOL(gcc)
56 # Checks for programs.
57 AC_PROG_CC(gcc)
58 AC_PROG_INSTALL
60 # Checks for header files.
61 AC_HEADER_STDC
62 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/param.h sys/socket.h sys/time.h unistd.h])
64 # Export CFLAGS and LDFLAGS to Makefile(s)
65 AC_SUBST([AM_CFLAGS])
66 AC_SUBST([AM_LDFLAGS])
68 # Add config variables/options and check them
69 AC_ARG_VAR(OSAL_INSTALL_DIR, Installation path directory to the OSAL product)
70 AC_ARG_VAR(CMEM_INSTALL_DIR, Installation path directory to the CMEM product)
71 AC_ARG_VAR(XDAIS_INSTALL_DIR, Installation path directory to the XDAIS product)
72 AC_ARG_VAR(IPC_INSTALL_DIR, Installation path directory to the IPC product)
74 # Export optional user variable to Makefile(s)
75 AC_SUBST([OSAL_INSTALL_DIR])
76 AC_SUBST([CMEM_INSTALL_DIR])
77 AC_SUBST([XDAIS_INSTALL_DIR])
78 AC_SUBST([IPC_INSTALL_DIR])
80 # Define specific variables to be used in Makefile.am
81 AM_CONDITIONAL([IPC_INSTALL_DIR], [test "x$IPC_INSTALL_DIR" != "x"])
83 # Generate Makefile(s)
84 AC_CONFIG_FILES([Makefile])
85 AC_CONFIG_FILES([linux/src/api/Makefile])
86 AC_CONFIG_FILES([linux/src/ipc/Makefile])
87 AC_CONFIG_FILES([linux/src/osal/Makefile])
88 AC_OUTPUT
90 echo \
91 "-----------------------------------------------------------
93 Thank you for installing the Linux ${PACKAGE_NAME} package
95 Installation directory prefix: '${prefix}'.
96 Compilation command: '${CC} ${CFLAGS} ${CPPFLAGS}'
98 Your OSAL installation directory is set to:
99     '${OSAL_INSTALL_DIR}'
101 Your CMEM installation directory is set to:
102     '${CMEM_INSTALL_DIR}'
104 Your XDAIS installation directory is set to:
105     '${XDAIS_INSTALL_DIR}'
107 Your IPC installation directory is set to:
108     '${IPC_INSTALL_DIR}'
110 Now type 'make; sudo make install' to generate the program
111 and install it to your system.
113 ------------------------------------------------------------"