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

1.24      misha       1: dnl Process this file with autoconf to produce a configure script.
                      2: AC_INIT(parser3pgsql.C)
                      3: AM_INIT_AUTOMAKE(parser3pgsql, 10.1, nodefine)
                      4: 
                      5: AM_CONFIG_HEADER(config_auto.h)
                      6: 
                      7: dnl Arguments
                      8: 
                      9: AC_ARG_WITH(pgsql-inc,[  --with-pgsql-inc[=DIR]      DIR is the PgSQL includes directory],,
                     10:        withval="/usr/local/pgsql/include"
                     11: )
                     12: PGSQL_INC=$withval
                     13: AC_SUBST(PGSQL_INC)
                     14: 
                     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
                     18: 
                     19: 
                     20: AC_ARG_WITH(dynamic-stdcpp, [  --with-dynamic-stdcpp   link libstdc++ dynamically
                     21:                           by default, libstdc++ is linked statically],[
                     22:                LDFLAGS="-lstdc++"
                     23: ],[
                     24:                LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
                     25: ])
                     26: 
                     27: AC_SUBST(LDFLAGS)
                     28: 
                     29: 
                     30: dnl Checks for programs.
                     31: AC_PROG_INSTALL
                     32: AC_PROG_MAKE_SET
                     33: AC_PROG_AWK
                     34: AC_PROG_CXX
                     35: AC_PROG_CC
                     36: 
                     37: dnl most tests should be compiled with C compiler [especially qsort test]
                     38: AC_LANG_C 
                     39: 
                     40: dnl Enable building of the convenience library
                     41: dnl and set LIBLTDL accordingly
                     42: AC_LIBLTDL_CONVENIENCE
                     43: dnl Substitute INCLTDL and LIBLTDL in the Makefiles
                     44: AC_SUBST(INCLTDL)
                     45: AC_SUBST(LIBLTDL)
                     46: AC_SUBST(LIBADD_DL)
                     47: dnl Configure libtool
                     48: AC_DISABLE_STATIC
                     49: AC_LIBTOOL_WIN32_DLL
                     50: AM_PROG_LIBTOOL
                     51: dnl Configure libltdl
                     52: AC_CONFIG_SUBDIRS(libltdl)
                     53: 
                     54: dnl Checks for libraries.
                     55: 
                     56: dnl Checks for header files.
                     57: 
                     58: AC_CHECK_HEADERS(
                     59: stdio.h \
                     60: stdlib.h \
                     61: string.h \
                     62: setjmp.h \
                     63: ctype.h
                     64: )
                     65: 
                     66: dnl Checks for typedefs, structures, and compiler characteristics.
                     67: 
                     68: AC_TYPE_SIZE_T
                     69: 
                     70: dnl Checks for library functions.
                     71: 
                     72: dnl Output makefiles
                     73: 
                     74: AC_OUTPUT(Makefile)

E-mail: