Annotation of sql/pgsql/configure.in, revision 1.32
1.27 moko 1: dnl Autoconf initialisation
2: AC_PREREQ(2.59)
3: AC_INIT(parser3pgsql.C, 10.3)
4: AC_CONFIG_SRCDIR(parser3pgsql.C)
1.24 misha 5: AM_CONFIG_HEADER(config_auto.h)
6:
1.27 moko 7: dnl Automake Initialisation
8: AM_INIT_AUTOMAKE
9:
10: dnl Checks for argumenrs
11: AC_DEFUN([PGSQL_INC_CHK],[
12: if test -r "$1/libpq-fe.h"; then
13: PGSQL_INC=$1
14: fi
15: ])
16:
1.24 misha 17: dnl Arguments
1.27 moko 18: AC_ARG_WITH(pgsql-inc,[ --with-pgsql-inc=DIR DIR is the PgSql includes directory],
19: PGSQL_INC_CHK($withval)
20:
21: if test -z "$PGSQL_INC"; then
22: AC_MSG_ERROR($PGSQL_INC does not seem to be valid PgSql includes directory)
23: fi
24: ,
25: AC_MSG_CHECKING(for PGSQL_INC directory)
26: for d in \
27: /usr/local/include/postgresql \
28: /usr/include/postgresql \
29: /usr/local/pgsql/include ; do
30: PGSQL_INC_CHK($d)
31: done
32:
33: if test -z "$PGSQL_INC"; then
34: AC_MSG_ERROR(use --with-pgsql-inc=DIR to specify PgSql includes directory)
35: fi
36:
37: AC_MSG_RESULT($PGSQL_INC)
1.24 misha 38: )
1.27 moko 39:
1.24 misha 40: AC_SUBST(PGSQL_INC)
41:
1.27 moko 42: dnl Checks for programs
1.24 misha 43: AC_PROG_INSTALL
44: AC_PROG_CXX
45: AC_PROG_CC
46:
47: dnl Enable building of the convenience library
1.27 moko 48: LT_CONFIG_LTDL_DIR(libltdl)
49: LT_INIT(dlopen win32-dll)
50: LTDL_INIT
51:
1.24 misha 52: dnl Configure libtool
53: AC_DISABLE_STATIC
54:
1.27 moko 55: dnl Checks for libraries
1.24 misha 56:
1.27 moko 57: dnl Checks for header files
1.24 misha 58: AC_CHECK_HEADERS(
59: stdio.h \
60: stdlib.h \
61: string.h \
62: setjmp.h \
63: ctype.h
64: )
65:
1.27 moko 66: dnl Checks for typedefs, structures, and compiler characteristics
1.24 misha 67: AC_TYPE_SIZE_T
68:
1.27 moko 69: dnl Checks for library functions
1.24 misha 70:
71: dnl Output makefiles
72: AC_OUTPUT(Makefile)
E-mail: