Annotation of sql/mysql/configure.in, revision 1.36
1.1 parser 1: dnl Process this file with autoconf to produce a configure script.
2: AC_INIT(parser3mysql.C)
1.15 paf 3: AC_PREREQ(2.57)
4:
1.36 ! moko 5: AM_INIT_AUTOMAKE(parser3mysql, 10.3, nodefine)
1.1 parser 6:
7: AM_CONFIG_HEADER(config_auto.h)
8:
1.25 paf 9: AC_DEFUN([MYSQL_INC_CHK],[
1.7 paf 10: if test -r "$1/mysql.h"; then
11: MYSQL_INC=$1
12: fi
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:
1.33 misha 20: if test -z "$MYSQL_INC"; then
1.7 paf 21: AC_MSG_ERROR($MYSQL_INC does not seem to be valid MySQL includes directory)
1.33 misha 22: fi
1.7 paf 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:
1.33 misha 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.33 misha 40: AC_ARG_WITH(dynamic-stdcpp, [ --with-dynamic-stdcpp link libstdc++ dynamically
41: by default, libstdc++ is linked statically],[
42: LDFLAGS="-lstdc++"
43: ],[
44: LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
45: ])
46:
47: AC_SUBST(LDFLAGS)
48:
1.1 parser 49: dnl Checks for programs.
50: AC_PROG_INSTALL
1.24 paf 51: AC_PROG_CXX
52: AC_PROG_CC
1.1 parser 53:
54: dnl Enable building of the convenience library
55: dnl and set LIBLTDL accordingly
1.36 ! moko 56:
! 57: LT_INIT([dlopen])
! 58:
! 59: AC_CONFIG_MACRO_DIR([libltdl/m4])
! 60: LT_CONFIG_LTDL_DIR([libltdl])
! 61:
1.1 parser 62: AC_LIBLTDL_CONVENIENCE
63: dnl Substitute INCLTDL and LIBLTDL in the Makefiles
64: AC_SUBST(INCLTDL)
65: AC_SUBST(LIBLTDL)
66: AC_SUBST(LIBADD_DL)
67: dnl Configure libtool
1.9 paf 68: AC_DISABLE_STATIC
1.11 paf 69: AC_LIBTOOL_WIN32_DLL
1.15 paf 70: AC_PROG_LIBTOOL
1.36 ! moko 71:
! 72: LTDL_INIT
1.1 parser 73:
74: dnl Checks for libraries.
75:
1.31 misha 76: dnl FreeBSD4 requires workaround with destructor
77: case "$host" in
1.33 misha 78: *-freebsd4*)
79: AC_DEFINE(FREEBSD4,,FreeBSD4X target platform)
1.31 misha 80: esac
81:
1.1 parser 82: dnl Checks for header files.
83:
84: AC_CHECK_HEADERS(
85: stdio.h \
86: stdlib.h \
1.5 paf 87: string.h \
1.23 paf 88: setjmp.h \
89: ctype.h
1.1 parser 90: )
91:
92: dnl Checks for typedefs, structures, and compiler characteristics.
93:
94: AC_TYPE_SIZE_T
95:
96: dnl Checks for library functions.
97:
98: dnl Output makefiles
99:
1.13 paf 100: AC_OUTPUT(Makefile)
E-mail: