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

File: [local] / OpenXM / src / ox_ntl / configure.in (download)

Revision 1.3, Thu Jul 15 14:51:42 2004 UTC (19 years, 9 months ago) by iwane
Branch: MAIN
CVS Tags: R_1_3_1-2, RELEASE_1_3_1_13b, RELEASE_1_2_3_12, RELEASE_1_2_3, KNOPPIX_2006, HEAD, DEB_REL_1_2_3-9
Changes since 1.2: +3 -2 lines

added cast-128 encryption algorithm

dnl $OpenXM: OpenXM/src/ox_ntl/configure.in,v 1.3 2004/07/15 14:51:42 iwane Exp $
dnl  If you change this file, do not forget to run autoheader and autoconf


AC_INIT(main.cpp)
AC_CONFIG_HEADER([config.h])

AC_REVISION($OpenXM: OpenXM/src/ox_ntl/configure.in,v 1.3 2004/07/15 14:51:42 iwane Exp $)

AH_TOP()
AH_BOTTOM()

dnl debug option
AC_MSG_CHECKING(if --enable-debug option secified)
AC_ARG_ENABLE(debug, [  --enable-debug  Build a debugging version], [
	AC_MSG_RESULT(yes)
	AC_DEFINE(DEBUG, 1, Debug mode)
	OPTFLAG=${OPTFLAG-"-g"}
],
[
	AC_MSG_RESULT(no)
])
AC_SUBST(OPTFLAG)


dnl Checks for programs.
AC_PROG_CC
AC_PROG_CXX
if test x$CC = xgcc; then
	CFLAGS="-Wall $CFLAGS"
fi
if test x$CXX = xg++; then
	CXXFLAGS="-Wall $CXXFLAGS"
fi


dnl Checks for libraries.

dnl -lgc, -lgmp, -lntl -lox exist $OpenXM_HOME/lib 
dnl FIXME: Replace `main' with a function in `-lxxx':
dnl AC_CHECK_LIB([xxx], [main])


dnl Checks for header files.
AC_HEADER_STDC


dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_C_BIGENDIAN


dnl Checks for library functions.

AC_TYPE_SIGNAL

AC_CHECK_FUNC(socket)
if test "$ac_cv_func_socket" = no ; then
	AC_CHECK_LIB(socket, socket)
fi
AC_CHECK_FUNC(gethostbyname)
if test "$ac_cv_func_gethostbyname" = no ; then
	AC_CHECK_LIB(nsl, gethostbyname)
fi
AC_CHECK_FUNC(dlopen)
if test "$ac_cv_func_dlopen" = no; then
	AC_CHECK_LIB(dl, dlopen)
fi

AC_OUTPUT(Makefile)