Annotation of sql/pgsql/configure.in, revision 1.4

1.1       parser      1: dnl Process this file with autoconf to produce a configure script.
                      2: AC_INIT(parser3pgsql.C)
                      3: AM_INIT_AUTOMAKE(parser3pgsqlclient, 3.0g, nodefine)
                      4: 
                      5: AM_CONFIG_HEADER(config_auto.h)
                      6: 
                      7: dnl Arguments
                      8: 
1.3       parser      9: AC_ARG_WITH(pgsql-inc,[  --with-pgsql-inc[=DIR]      DIR is the PgSQL includes directory],,
1.1       parser     10:        withval="/usr/local/pgsql/include"
                     11: )
                     12: PGSQL_INC=$withval
                     13: AC_SUBST(PGSQL_INC)
                     14: 
1.2       parser     15: if test \! -f "$PGSQL_INC/libpq-fe.h"; then
                     16:        AC_MSG_ERROR($PGSQL_INC does not seem to be valid PgSQL includes directory)
                     17: fi
1.1       parser     18: 
                     19: dnl Checks for programs.
                     20: AC_PROG_INSTALL
                     21: AC_PROG_MAKE_SET
                     22: AC_PROG_AWK
                     23: 
                     24: AC_LANG_CPLUSPLUS 
                     25: AC_PROG_CXX
                     26: 
1.4     ! paf        27: AC_DEFUN(GCC_OPTION,
        !            28: [
        !            29:     AC_MSG_CHECKING(whether gcc accepts $1)
        !            30:     save_CXXFLAGS=$CXXFLAGS
        !            31:     CXXFLAGS="$save_CXXFLAGS $1"
        !            32:     AC_TRY_COMPILE(,,
        !            33:         AC_MSG_RESULT(yes)
        !            34:         dnl leave CXXFLAGS
        !            35:     ,          
        !            36:         AC_MSG_RESULT(no)
        !            37:         CXXFLAGS=$save_CXXFLAGS
        !            38:     )
        !            39: ])
        !            40: 
        !            41: if test "z$GXX" = "zyes"; then
        !            42:        dnl Versions of GCC up to 2.8.0 required -fhandle-exceptions, but it is
        !            43:        dnl the default in versions 2.8.0 and after.
        !            44:     dnl GCC_OPTION(-fhandle-exceptions)
        !            45:     GCC_OPTION(-fno-rtti)
        !            46: fi
        !            47: 
1.1       parser     48: dnl Enable building of the convenience library
                     49: dnl and set LIBLTDL accordingly
                     50: AC_LIBLTDL_CONVENIENCE
                     51: dnl Substitute INCLTDL and LIBLTDL in the Makefiles
                     52: AC_SUBST(INCLTDL)
                     53: AC_SUBST(LIBLTDL)
                     54: AC_SUBST(LIBADD_DL)
                     55: dnl Check for dlopen support
                     56: AC_LIBTOOL_DLOPEN
                     57: dnl Configure libtool
                     58: AM_PROG_LIBTOOL
                     59: dnl Configure libltdl
                     60: AC_CONFIG_SUBDIRS(libltdl)
                     61: 
                     62: dnl Checks for libraries.
                     63: 
                     64: dnl Checks for header files.
                     65: 
                     66: AC_CHECK_HEADERS(
                     67: stdio.h \
                     68: stdlib.h \
                     69: string.h
                     70: )
                     71: 
                     72: dnl Checks for typedefs, structures, and compiler characteristics.
                     73: 
                     74: AC_TYPE_SIZE_T
                     75: 
                     76: dnl Checks for library functions.
                     77: 
                     78: dnl Output makefiles
                     79: 
                     80: AC_OUTPUT(libltdl/Makefile Makefile)

E-mail: