Annotation of sql/mysql/configure.ac, revision 1.4
1.1 moko 1: dnl Autoconf initialisation
2: AC_PREREQ(2.59)
1.3 moko 3: AC_INIT(parser3mysql, 10.8)
1.1 moko 4: AC_CONFIG_SRCDIR(parser3mysql.C)
5: AM_CONFIG_HEADER(config_auto.h)
6:
7: dnl Automake Initialisation
8: AM_INIT_AUTOMAKE
9:
10: dnl Checks for argumenrs
11: AC_DEFUN([MYSQL_INC_CHK],[
12: if test -r "$1/mysql.h"; then
13: MYSQL_INC=$1
14: fi
15: ])
16:
17: dnl Arguments
18: AC_ARG_WITH(mysql-inc,[ --with-mysql-inc=DIR DIR is the MySQL includes directory],
19: MYSQL_INC_CHK($withval)
20:
21: if test -z "$MYSQL_INC"; then
22: AC_MSG_ERROR($MYSQL_INC does not seem to be valid MySQL includes directory)
23: fi
24: ,
25: AC_MSG_CHECKING(for MYSQL_INC directory)
26: for d in \
27: /usr/local/include/mysql \
28: /usr/include/mysql ; do
29: MYSQL_INC_CHK($d)
30: done
31:
32: if test -z "$MYSQL_INC"; then
33: AC_MSG_ERROR(use --with-mysql-inc=DIR to specify MySQL includes directory)
34: fi
35:
36: AC_MSG_RESULT($MYSQL_INC)
37: )
38:
39: AC_SUBST(MYSQL_INC)
40:
41: dnl Checks for programs
42: AC_PROG_INSTALL
43: AC_PROG_CXX
44: AC_PROG_CC
45:
46: dnl Enable building of the convenience library
47: LT_CONFIG_LTDL_DIR(libltdl)
48: LT_INIT(disable-static dlopen win32-dll)
49: LTDL_INIT
50:
51: dnl Checks for libraries
52:
53: dnl Checks for header files
54: AC_CHECK_HEADERS(
55: stdio.h \
56: stdlib.h \
57: string.h \
58: setjmp.h \
59: ctype.h
60: )
61:
62: dnl Checks for typedefs, structures, and compiler characteristics
63: AC_TYPE_SIZE_T
64:
65: dnl Checks for library functions
66:
67: dnl Output makefiles
68: AC_OUTPUT(Makefile)
E-mail: