Annotation of sql/pgsql/configure.ac, revision 1.1

1.1     ! moko        1: dnl Autoconf initialisation
        !             2: AC_PREREQ(2.59)
        !             3: AC_INIT(parser3pgsql, 10.5)
        !             4: AC_CONFIG_SRCDIR(parser3pgsql.C)
        !             5: AM_CONFIG_HEADER(config_auto.h)
        !             6: 
        !             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: 
        !            17: dnl Arguments
        !            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/include \
        !            28:                /usr/include/postgresql \
        !            29:                /usr/local/include \
        !            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)
        !            40: )
        !            41: 
        !            42: AC_SUBST(PGSQL_INC)
        !            43: 
        !            44: dnl Checks for programs
        !            45: AC_PROG_INSTALL
        !            46: AC_PROG_CXX
        !            47: AC_PROG_CC
        !            48: 
        !            49: dnl Enable building of the convenience library
        !            50: LT_CONFIG_LTDL_DIR(libltdl)
        !            51: LT_INIT(disable-static dlopen win32-dll)
        !            52: LTDL_INIT
        !            53: 
        !            54: dnl Checks for libraries
        !            55: 
        !            56: dnl Checks for header files
        !            57: AC_CHECK_HEADERS(
        !            58: stdio.h \
        !            59: stdlib.h \
        !            60: string.h \
        !            61: setjmp.h \
        !            62: ctype.h
        !            63: )
        !            64: 
        !            65: dnl Checks for typedefs, structures, and compiler characteristics
        !            66: AC_TYPE_SIZE_T
        !            67: 
        !            68: dnl Checks for library functions
        !            69: 
        !            70: dnl Output makefiles
        !            71: AC_OUTPUT(Makefile)

E-mail: