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

1.37      moko        1: dnl Autoconf initialisation
                      2: AC_PREREQ(2.59)
                      3: AC_INIT(parser3mysql.C, 10.3)
                      4: AC_CONFIG_SRCDIR(parser3mysql.C)
                      5: AM_CONFIG_HEADER(config_auto.h)
                      6: 
                      7: dnl Automake Initialisation
                      8: AM_INIT_AUTOMAKE
1.1       parser      9: 
1.37      moko       10: dnl Checks for argumenrs
1.25      paf        11: AC_DEFUN([MYSQL_INC_CHK],[
1.7       paf        12:        if test -r "$1/mysql.h"; then
                     13:                MYSQL_INC=$1
                     14:        fi
                     15: ])
1.37      moko       16: 
1.1       parser     17: dnl Arguments
1.7       paf        18: AC_ARG_WITH(mysql-inc,[  --with-mysql-inc=DIR        DIR is the MySQL includes directory],
                     19:        MYSQL_INC_CHK($withval)
                     20: 
1.33      misha      21:        if test -z "$MYSQL_INC"; then
1.7       paf        22:                AC_MSG_ERROR($MYSQL_INC does not seem to be valid MySQL includes directory)
1.33      misha      23:        fi
1.7       paf        24: ,
1.8       paf        25:        AC_MSG_CHECKING(for MYSQL_INC directory)
1.7       paf        26:        for d in \
1.8       paf        27:                /usr/local/include/mysql \
                     28:                /usr/include/mysql ; do
1.7       paf        29:                MYSQL_INC_CHK($d)
                     30:        done
                     31: 
1.33      misha      32:        if test -z "$MYSQL_INC"; then
                     33:                AC_MSG_ERROR(use --with-mysql-inc=DIR to specify MySQL includes directory)
                     34:        fi
1.8       paf        35: 
                     36:        AC_MSG_RESULT($MYSQL_INC)
1.1       parser     37: )
1.2       parser     38: 
1.1       parser     39: AC_SUBST(MYSQL_INC)
1.2       parser     40: 
1.33      misha      41: AC_ARG_WITH(dynamic-stdcpp, [  --with-dynamic-stdcpp   link libstdc++ dynamically
                     42:                           by default, libstdc++ is linked statically],[
                     43:                LDFLAGS="-lstdc++"
                     44: ],[
                     45:                LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
                     46: ])
                     47: 
                     48: AC_SUBST(LDFLAGS)
                     49: 
1.37      moko       50: dnl Checks for programs
1.1       parser     51: AC_PROG_INSTALL
1.24      paf        52: AC_PROG_CXX
                     53: AC_PROG_CC
1.1       parser     54: 
                     55: dnl Enable building of the convenience library
1.37      moko       56: LT_CONFIG_LTDL_DIR(libltdl)
                     57: LT_INIT(dlopen win32-dll)
                     58: LTDL_INIT
1.36      moko       59: 
1.37      moko       60: dnl Configure libtool
1.9       paf        61: AC_DISABLE_STATIC
1.36      moko       62: 
1.37      moko       63: dnl Checks for libraries
1.1       parser     64: 
1.37      moko       65: dnl FreeBSD4 requires workaround with destructor
1.31      misha      66: case "$host" in
1.33      misha      67:        *-freebsd4*)
                     68:                AC_DEFINE(FREEBSD4,,FreeBSD4X target platform)
1.31      misha      69: esac
                     70: 
1.37      moko       71: dnl Checks for header files
1.1       parser     72: AC_CHECK_HEADERS(
                     73: stdio.h \
                     74: stdlib.h \
1.5       paf        75: string.h \
1.23      paf        76: setjmp.h \
                     77: ctype.h
1.1       parser     78: )
                     79: 
1.37      moko       80: dnl Checks for typedefs, structures, and compiler characteristics
1.1       parser     81: AC_TYPE_SIZE_T
                     82: 
1.37      moko       83: dnl Checks for library functions
1.1       parser     84: 
                     85: dnl Output makefiles
1.13      paf        86: AC_OUTPUT(Makefile)

E-mail: