Annotation of sql/mysql/configure.ac, revision 1.7
1.1 moko 1: dnl Autoconf initialisation
2: AC_PREREQ(2.59)
1.5 moko 3: AC_INIT(parser3mysql, 10.9)
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 \
1.7 ! moko 28: /usr/include/mariadb \
1.1 moko 29: /usr/include/mysql ; do
30: MYSQL_INC_CHK($d)
31: done
32:
33: if test -z "$MYSQL_INC"; then
34: AC_MSG_ERROR(use --with-mysql-inc=DIR to specify MySQL includes directory)
35: fi
36:
37: AC_MSG_RESULT($MYSQL_INC)
38: )
39:
40: AC_SUBST(MYSQL_INC)
41:
42: dnl Checks for programs
43: AC_PROG_INSTALL
44: AC_PROG_CXX
45: AC_PROG_CC
46:
47: dnl Enable building of the convenience library
48: LT_CONFIG_LTDL_DIR(libltdl)
49: LT_INIT(disable-static dlopen win32-dll)
50: LTDL_INIT
51:
52: dnl Checks for libraries
53:
54: dnl Checks for header files
55: AC_CHECK_HEADERS(
56: stdio.h \
57: stdlib.h \
58: string.h \
59: setjmp.h \
60: ctype.h
61: )
62:
63: dnl Checks for typedefs, structures, and compiler characteristics
64: AC_TYPE_SIZE_T
65:
66: dnl Checks for library functions
67:
68: dnl Output makefiles
69: AC_OUTPUT(Makefile)
E-mail: