# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) AC_INIT([gdbmcli], [1.0], [jmt12@students.waikato.ac.nz]) AM_INIT_AUTOMAKE AC_CANONICAL_HOST # Checks for programs. AC_PROG_CXX([g++]) # Checks for libraries. AC_CHECK_LIB([crypt],[encrypt]) AC_ARG_WITH([gdbm-include-path], [AS_HELP_STRING([--with-gdbm-include-path],[location of the GDBM headers])], [GDBM_CFLAGS="-I$withval"], [GDBM_CFLAGS='-I../../../../common-src/packages/gdbm/include']) AC_SUBST([GDBM_CFLAGS]) AC_ARG_WITH([gdbm-lib-path], [AS_HELP_STRING([--with-gdbm-lib-path], [location of the GDBM libraries])], [GDBM_LIBS="-L$withval -lmysqlclient"], [GDBM_LIBS='-L../../../../common-src/packages/gdbm/lib -lgdbm']) AC_SUBST([GDBM_LIBS]) # Checks for header files. # Checks for typedefs, structures, and compiler characteristics. # Checks for library functions. # Completion AC_CONFIG_FILES([Makefile]) AC_OUTPUT