[BACK]Return to configure.in CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_ntl

Annotation of OpenXM/src/ox_ntl/configure.in, Revision 1.3

1.3     ! iwane       1: dnl $OpenXM: OpenXM/src/ox_ntl/configure.in,v 1.2 2004/07/04 02:31:51 iwane Exp $
1.1       iwane       2: dnl  If you change this file, do not forget to run autoheader and autoconf
                      3:
                      4:
                      5: AC_INIT(main.cpp)
                      6: AC_CONFIG_HEADER([config.h])
                      7:
1.3     ! iwane       8: AC_REVISION($OpenXM: OpenXM/src/ox_ntl/configure.in,v 1.2 2004/07/04 02:31:51 iwane Exp $)
1.2       iwane       9:
1.1       iwane      10: AH_TOP()
                     11: AH_BOTTOM()
                     12:
                     13: dnl debug option
                     14: AC_MSG_CHECKING(if --enable-debug option secified)
                     15: AC_ARG_ENABLE(debug, [  --enable-debug  Build a debugging version], [
                     16:        AC_MSG_RESULT(yes)
                     17:        AC_DEFINE(DEBUG, 1, Debug mode)
                     18:        OPTFLAG=${OPTFLAG-"-g"}
                     19: ],
                     20: [
                     21:        AC_MSG_RESULT(no)
                     22: ])
                     23: AC_SUBST(OPTFLAG)
                     24:
                     25:
                     26: dnl Checks for programs.
                     27: AC_PROG_CC
                     28: AC_PROG_CXX
                     29: if test x$CC = xgcc; then
                     30:        CFLAGS="-Wall $CFLAGS"
                     31: fi
                     32: if test x$CXX = xg++; then
                     33:        CXXFLAGS="-Wall $CXXFLAGS"
                     34: fi
                     35:
                     36:
                     37: dnl Checks for libraries.
                     38:
                     39: dnl -lgc, -lgmp, -lntl -lox exist $OpenXM_HOME/lib
                     40: dnl FIXME: Replace `main' with a function in `-lxxx':
                     41: dnl AC_CHECK_LIB([xxx], [main])
                     42:
                     43:
                     44: dnl Checks for header files.
                     45: AC_HEADER_STDC
                     46:
                     47:
                     48: dnl Checks for typedefs, structures, and compiler characteristics.
                     49: AC_C_CONST
1.2       iwane      50: AC_C_INLINE
1.3     ! iwane      51: AC_C_BIGENDIAN
1.1       iwane      52:
                     53:
                     54: dnl Checks for library functions.
                     55:
                     56: AC_TYPE_SIGNAL
                     57:
                     58: AC_CHECK_FUNC(socket)
                     59: if test "$ac_cv_func_socket" = no ; then
                     60:        AC_CHECK_LIB(socket, socket)
                     61: fi
                     62: AC_CHECK_FUNC(gethostbyname)
                     63: if test "$ac_cv_func_gethostbyname" = no ; then
                     64:        AC_CHECK_LIB(nsl, gethostbyname)
                     65: fi
                     66: AC_CHECK_FUNC(dlopen)
                     67: if test "$ac_cv_func_dlopen" = no; then
                     68:        AC_CHECK_LIB(dl, dlopen)
                     69: fi
                     70:
                     71: AC_OUTPUT(Makefile)
                     72:
                     73:
                     74:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>