configure.in
上传用户:s81996212
上传日期:2007-01-04
资源大小:722k
文件大小:1k
- dnl Process this file with autoconf to produce a configure script.
- dnl $Id: configure.in,v 1.4 1999/12/06 13:22:17 mrsam Exp $
- dnl
- dnl Copyright 1998 - 1999 Double Precision, Inc. See COPYING for
- dnl distribution information.
- AC_INIT(makedatprog.c)
- AM_INIT_AUTOMAKE(makedat, 0.60)
- AM_CONFIG_HEADER(config.h)
- dnl Checks for programs.
- AC_PROG_CC
- AC_PROG_INSTALL
- AC_PROG_LN_S
- AC_PROG_RANLIB
- if test x$GCC = xyes
- then
- CFLAGS="-Wall $CFLAGS"
- fi
- if test x$GXX = xyes
- then
- CXXFLAGS="-Wall $CXXFLAGS"
- fi
- CFLAGS="-I$srcdir/.. -I.. $CFLAGS"
- CXXFLAGS="-I$srcdir/.. -I.. $CXXFLAGS"
- dnl Check whether we should use gdbm, or db.
- AC_ARG_WITH(db, [], db="$withval", db="")
- . ../dbobj.config
- case "$db" in
- gdbm)
- USE_GDBM=1
- USE_DB=0
- LIBDB=""
- dblibrary=../gdbmobj/libgdbmobj.a
- ;;
- db)
- USE_DB=1
- USE_GDBM=0
- LIBGDBM=""
- dblibrary=../bdbobj/libbdbobj.a
- ;;
- *)
- AC_MSG_ERROR(Invalid --with-db option)
- esac
- AC_SUBST(USE_GDBM)
- AC_SUBST(USE_DB)
- AC_SUBST(dblibrary)
- AC_SUBST(LIBGDBM)
- AC_SUBST(LIBDB)
- AM_CONDITIONAL(USE_GDBM, test "$USE_GDBM" = 1)
- AM_CONDITIONAL(USE_DB, test "$USE_DB" = 1)
- AC_SUBST(dblibrary)
- dnl Checks for header files.
- AC_HEADER_STDC
- AC_CHECK_HEADERS(unistd.h)
- dnl Checks for typedefs, structures, and compiler characteristics.
- dnl Checks for library functions.
- AC_ARG_WITH(makedatprog,[ --with-makedatprog=filename Installed location and name of makedatprog], makedatprog="$withval", makedatprog="$bindir/makedatprog")
- makedatprogpath="$makedatprog"
- AC_SUBST(makedatprogpath)
- AC_OUTPUT(Makefile makedat)