Annotation of sql/mysql/configure.in, revision 1.3

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

E-mail: