| 1 | # |
|---|
| 2 | # ossie-liquid-components configuration |
|---|
| 3 | # |
|---|
| 4 | |
|---|
| 5 | AC_INIT([ossie-liquid-components],[0.8.0]) |
|---|
| 6 | #AC_CONFIG_SRCDIR([libliquid.c]) |
|---|
| 7 | |
|---|
| 8 | # |
|---|
| 9 | # Autoheader |
|---|
| 10 | # |
|---|
| 11 | AC_CONFIG_HEADER(config.h) |
|---|
| 12 | AH_TOP([ |
|---|
| 13 | #ifndef __LIQUID_CONFIG_H__ |
|---|
| 14 | #define __LIQUID_CONFIG_H__ |
|---|
| 15 | ]) |
|---|
| 16 | AH_BOTTOM([ |
|---|
| 17 | #endif // __LIQUID_CONFIG_H__ |
|---|
| 18 | ]) |
|---|
| 19 | |
|---|
| 20 | # |
|---|
| 21 | # Checks for necessary programs |
|---|
| 22 | # |
|---|
| 23 | AC_PROG_CXX |
|---|
| 24 | #AC_PROG_INSTALL |
|---|
| 25 | |
|---|
| 26 | # |
|---|
| 27 | # Checks for necessary libraries |
|---|
| 28 | # |
|---|
| 29 | |
|---|
| 30 | # push C++ language (omniORB4 complains if this action isn't taken) |
|---|
| 31 | AC_LANG_PUSH([C++]) |
|---|
| 32 | |
|---|
| 33 | # AC_CHECK_LIB (library, function, [action-if-found], [action-if-not-found], [other-libraries]) |
|---|
| 34 | AC_CHECK_LIB([omniORB4], [main], [], [AC_MSG_ERROR([cannot find omniORBi4 library])]) |
|---|
| 35 | AC_CHECK_LIB([omnithread], [main], [], [AC_MSG_ERROR([cannot find omnithread library])]) |
|---|
| 36 | AC_CHECK_LIB([omniDynamic4], [main], [], [AC_MSG_ERROR([cannot find omniDynamic4 library])]) |
|---|
| 37 | AC_CHECK_HEADERS([omniORB4/CORBA.h], [], [AC_MSG_ERROR([cannot find omniORB4 header files])]) |
|---|
| 38 | |
|---|
| 39 | # check for OSSIE libraries, headers |
|---|
| 40 | AC_CHECK_LIB([ossieidl], [main], [], [AC_MSG_ERROR([cannot find ossieidl])]) |
|---|
| 41 | AC_CHECK_LIB([ossieparser], [main], [], [AC_MSG_ERROR([cannot find ossieparser])]) |
|---|
| 42 | AC_CHECK_LIB([ossiecf], [main], [], [AC_MSG_ERROR([cannot find ossiecf])]) |
|---|
| 43 | AC_CHECK_LIB([standardInterfaces], [main], [], [AC_MSG_ERROR([cannot find standardInterfaces])]) |
|---|
| 44 | AC_CHECK_HEADERS([standardinterfaces/complexShort.h], [], [AC_MSG_ERROR([cannot find standardInterfaces header files])]) |
|---|
| 45 | |
|---|
| 46 | dnl check for liquid DSP libraries, headers |
|---|
| 47 | AC_CHECK_LIB([liquid], [main], [], [AC_MSG_ERROR([cannot find liquid-dsp library])]) |
|---|
| 48 | AC_CHECK_HEADERS([liquid/liquid.h], [], [AC_MSG_ERROR([cannot find liquid-dsp header files])]) |
|---|
| 49 | |
|---|
| 50 | AC_LANG_POP |
|---|
| 51 | |
|---|
| 52 | # |
|---|
| 53 | # Checks for typedefs, structures, and compiler characteristics. |
|---|
| 54 | # |
|---|
| 55 | AC_HEADER_STDBOOL |
|---|
| 56 | AC_C_INLINE |
|---|
| 57 | AC_TYPE_SIZE_T |
|---|
| 58 | AC_TYPE_UINT32_T |
|---|
| 59 | AC_TYPE_UINT8_T |
|---|
| 60 | |
|---|
| 61 | AC_CONFIG_FILES(makefile) |
|---|
| 62 | |
|---|
| 63 | AC_OUTPUT |
|---|