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

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: 
1.7       paf         7: 
                      8: AC_DEFUN(MYSQL_INC_CHK,[
                      9:        if test -r "$1/mysql.h"; then
                     10:                MYSQL_INC=$1
                     11:        fi
                     12: ])
                     13:        
                     14: 
1.1       parser     15: dnl Arguments
                     16: 
1.7       paf        17: AC_ARG_WITH(mysql-inc,[  --with-mysql-inc=DIR        DIR is the MySQL includes directory],
                     18:        MYSQL_INC_CHK($withval)
                     19: 
                     20:     if test -z "$MYSQL_INC"; then
                     21:                AC_MSG_ERROR($MYSQL_INC does not seem to be valid MySQL includes directory)
                     22:     fi
                     23: ,
1.8       paf        24:        AC_MSG_CHECKING(for MYSQL_INC directory)
1.7       paf        25:        for d in \
1.8       paf        26:                /usr/local/include/mysql \
                     27:                /usr/include/mysql ; do
1.7       paf        28:                MYSQL_INC_CHK($d)
                     29:        done
                     30: 
                     31:     if test -z "$MYSQL_INC"; then
                     32:        AC_MSG_ERROR(use --with-mysql-inc=DIR to specify MySQL includes directory)
                     33:     fi
1.8       paf        34: 
                     35:        AC_MSG_RESULT($MYSQL_INC)
1.1       parser     36: )
1.2       parser     37: 
1.1       parser     38: AC_SUBST(MYSQL_INC)
1.2       parser     39: 
1.1       parser     40: 
                     41: 
                     42: dnl Checks for programs.
                     43: AC_PROG_INSTALL
                     44: AC_PROG_MAKE_SET
                     45: AC_PROG_AWK
                     46: 
                     47: AC_LANG_CPLUSPLUS 
                     48: AC_PROG_CXX
1.3       paf        49: 
1.1       parser     50: dnl Enable building of the convenience library
                     51: dnl and set LIBLTDL accordingly
                     52: AC_LIBLTDL_CONVENIENCE
                     53: dnl Substitute INCLTDL and LIBLTDL in the Makefiles
                     54: AC_SUBST(INCLTDL)
                     55: AC_SUBST(LIBLTDL)
                     56: AC_SUBST(LIBADD_DL)
                     57: dnl Check for dlopen support
                     58: AC_LIBTOOL_DLOPEN
                     59: dnl Configure libtool
1.9     ! paf        60: AC_DISABLE_STATIC
1.1       parser     61: AM_PROG_LIBTOOL
                     62: dnl Configure libltdl
                     63: AC_CONFIG_SUBDIRS(libltdl)
                     64: 
                     65: dnl Checks for libraries.
                     66: 
                     67: dnl Checks for header files.
                     68: 
                     69: AC_CHECK_HEADERS(
                     70: stdio.h \
                     71: stdlib.h \
1.5       paf        72: string.h \
                     73: setjmp.h
1.1       parser     74: )
                     75: 
                     76: dnl Checks for typedefs, structures, and compiler characteristics.
                     77: 
                     78: AC_TYPE_SIZE_T
                     79: 
                     80: dnl Checks for library functions.
                     81: 
                     82: dnl Output makefiles
                     83: 
                     84: AC_OUTPUT(libltdl/Makefile Makefile)

E-mail: