Annotation of sql/pgsql/configure.in, revision 1.37
1.27 moko 1: dnl Autoconf initialisation
2: AC_PREREQ(2.59)
1.36 moko 3: AC_INIT(parser3pgsql.C, 10.4)
1.27 moko 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)
1.35 moko 49: LT_INIT(disable-static dlopen win32-dll)
1.27 moko 50: LTDL_INIT
51:
52: dnl Checks for libraries
1.24 misha 53:
1.27 moko 54: dnl Checks for header files
1.24 misha 55: AC_CHECK_HEADERS(
56: stdio.h \
57: stdlib.h \
58: string.h \
59: setjmp.h \
60: ctype.h
61: )
62:
1.27 moko 63: dnl Checks for typedefs, structures, and compiler characteristics
1.24 misha 64: AC_TYPE_SIZE_T
65:
1.27 moko 66: dnl Checks for library functions
1.24 misha 67:
68: dnl Output makefiles
69: AC_OUTPUT(Makefile)
E-mail: