Annotation of sql/pgsql/configure.in, revision 1.39
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 \
1.38 moko 27: /usr/include \
28: /usr/include/postgresql \
29: /usr/local/include \
1.27 moko 30: /usr/local/include/postgresql \
31: /usr/local/pgsql/include ; do
32: PGSQL_INC_CHK($d)
33: done
34:
35: if test -z "$PGSQL_INC"; then
36: AC_MSG_ERROR(use --with-pgsql-inc=DIR to specify PgSql includes directory)
37: fi
38:
39: AC_MSG_RESULT($PGSQL_INC)
1.24 misha 40: )
1.27 moko 41:
1.24 misha 42: AC_SUBST(PGSQL_INC)
43:
1.27 moko 44: dnl Checks for programs
1.24 misha 45: AC_PROG_INSTALL
46: AC_PROG_CXX
47: AC_PROG_CC
48:
49: dnl Enable building of the convenience library
1.27 moko 50: LT_CONFIG_LTDL_DIR(libltdl)
1.35 moko 51: LT_INIT(disable-static dlopen win32-dll)
1.27 moko 52: LTDL_INIT
53:
54: dnl Checks for libraries
1.24 misha 55:
1.27 moko 56: dnl Checks for header files
1.24 misha 57: AC_CHECK_HEADERS(
58: stdio.h \
59: stdlib.h \
60: string.h \
61: setjmp.h \
62: ctype.h
63: )
64:
1.27 moko 65: dnl Checks for typedefs, structures, and compiler characteristics
1.24 misha 66: AC_TYPE_SIZE_T
67:
1.27 moko 68: dnl Checks for library functions
1.24 misha 69:
70: dnl Output makefiles
71: AC_OUTPUT(Makefile)
E-mail: