Annotation of sql/mysql/configure.in, revision 1.45
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.37 moko 41: dnl Checks for programs
1.1 parser 42: AC_PROG_INSTALL
1.24 paf 43: AC_PROG_CXX
44: AC_PROG_CC
1.1 parser 45:
46: dnl Enable building of the convenience library
1.37 moko 47: LT_CONFIG_LTDL_DIR(libltdl)
1.45 ! moko 48: LT_INIT(disable-static dlopen win32-dll)
1.37 moko 49: LTDL_INIT
1.36 moko 50:
1.37 moko 51: dnl Checks for libraries
1.1 parser 52:
1.37 moko 53: dnl FreeBSD4 requires workaround with destructor
1.31 misha 54: case "$host" in
1.33 misha 55: *-freebsd4*)
56: AC_DEFINE(FREEBSD4,,FreeBSD4X target platform)
1.31 misha 57: esac
58:
1.37 moko 59: dnl Checks for header files
1.1 parser 60: AC_CHECK_HEADERS(
61: stdio.h \
62: stdlib.h \
1.5 paf 63: string.h \
1.23 paf 64: setjmp.h \
65: ctype.h
1.1 parser 66: )
67:
1.37 moko 68: dnl Checks for typedefs, structures, and compiler characteristics
1.1 parser 69: AC_TYPE_SIZE_T
70:
1.37 moko 71: dnl Checks for library functions
1.1 parser 72:
73: dnl Output makefiles
1.13 paf 74: AC_OUTPUT(Makefile)
E-mail: