diff options
Diffstat (limited to 'ext/mysql/libmysql/configure.in')
-rw-r--r-- | ext/mysql/libmysql/configure.in | 96 |
1 files changed, 72 insertions, 24 deletions
diff --git a/ext/mysql/libmysql/configure.in b/ext/mysql/libmysql/configure.in index 210dd70d95..995d34f457 100644 --- a/ext/mysql/libmysql/configure.in +++ b/ext/mysql/libmysql/configure.in @@ -1,49 +1,97 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(libmysql.c) +dnl The version number should be autogenerated from the toplevel configure.in +AM_INIT_AUTOMAKE(libmysql, 3.23.11-alpha) +AM_CONFIG_HEADER(my_config.h) dnl Checks for programs. -AC_PROG_AWK -AC_PROG_YACC AC_PROG_CC -AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_RANLIB -dnl Checks for libraries. -AC_ARG_WITH(mysql,--with-mysql=DIR Where to look for mysql libraries/includes, \ -MYSQL_DIR="${withval}", MYSQL_DIR="/usr/local/mysql") - - +# We use libtool +AM_PROG_LIBTOOL dnl Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS(pwd.h sgtty.h sys/ioctl.h termio.h) +AC_CHECK_HEADERS(sgtty.h sys/ioctl.h) +# Maybe some can be removed but I got sick of adding them on at a time +# /David +AC_CHECK_HEADERS(fcntl.h float.h floatingpoint.h ieeefp.h limits.h \ + memory.h pwd.h select.h \ + stdlib.h stddef.h \ + strings.h string.h synch.h sys/mman.h sys/socket.h \ + sys/timeb.h sys/types.h sys/un.h sys/vadvise.h sys/wait.h term.h \ + unistd.h utime.h sys/utime.h termio.h termios.h sched.h crypt.h alloca.h) + dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_INLINE +AC_CHECK_SIZEOF(char, 1) +if test "$ac_cv_sizeof_char" -eq 0 +then + AC_MSG_ERROR([No size for char type. +A likely cause for this could be that there isn't any static libraries +installed. You can verify this by checking if you have libm.a in /lib, +/usr/lib or some other standard place. If this is the problem, +install the static libraries and try again. If this isn't the +problem, examine config.log for possible errors. If you want to +report this include ALL system information and include at least the +last 20 rows from config.log!]) +fi +AC_CHECK_SIZEOF(int, 4) +if test "$ac_cv_sizeof_int" -eq 0 +then + AC_MSG_ERROR("No size for int type.") +fi +AC_CHECK_SIZEOF(long, 4) +if test "$ac_cv_sizeof_long" -eq 0 +then + AC_MSG_ERROR("No size for long type.") +fi AC_CHECK_SIZEOF(long long, 8) +if test "$ac_cv_sizeof_long_long" -eq 0 +then + AC_MSG_ERROR("MySQL needs a long long type.") +fi AC_TYPE_SIZE_T AC_HEADER_TIME AC_TYPE_UID_T +# Do the system files define ulong +MYSQL_CHECK_ULONG +# Do the system files define uchar +MYSQL_CHECK_UCHAR +# Do the system files define uint +MYSQL_CHECK_UINT + +#---START: Used in for client configure +# Check base type of last arg to accept +MYSQL_TYPE_ACCEPT +#---END: + dnl Checks for library functions. AC_TYPE_SIGNAL -AC_CHECK_FUNCS( -bmove \ -getcwd \ -gethostbyname_r \ -getpwnam GETRUSAGE \ -getwd \ -longjmp \ -realpath \ -access \ -strtoull \ -tempnam \ -pthread_getsequence_np \ -pthread_setschedparamselect \ -socket \ -) +AC_CHECK_FUNCS(alarm bmove \ + chsize ftruncate rint finite fpsetmask fpresetsticky\ + cuserid fcntl fconvert \ + getrusage getpwuid getcwd getrlimit getwd index locking longjmp \ + perror pread realpath rename \ + socket strnlen madvise \ + strtoul strtoull snprintf tempnam thr_setconcurrency \ + gethostbyaddr_r gethostbyname_r getpwnam \ + bfill bzero bcmp strstr strpbrk strerror\ + tell atod memcpy memmove \ + setupterm strcasecmp sighold \ + vidattr setupterm lrand48 localtime_r \ + sigset sigthreadmask pthread_sigmask pthread_setprio pthread_setprio_np \ + pthread_setschedparam pthread_attr_setprio pthread_attr_setschedparam \ + pthread_attr_create pthread_getsequence_np pthread_attr_setstacksize \ + pthread_condattr_create rwlock_init \ + crypt dlopen dlerror fchmod getpass getpassphrase) + +AC_CHECK_FUNCS(access pthread_setschedparamselect strtok_r) #---START: Used in for client configure |