pike.git / src / modules / Mysql / configure.in

version» Context lines:

pike.git/src/modules/Mysql/configure.in:1:   # - # $Id: configure.in,v 1.25 2001/02/07 12:24:24 grubba Exp $ + # $Id: configure.in,v 1.26 2001/02/14 21:20:41 mirar Exp $   #   # Configure script for the mysql-module   #   # Henrik Grubbström   #      #   # NOTE:   # Prior to 3.20.0 After 3.20.0   # --------------------------------------------------------------
pike.git/src/modules/Mysql/configure.in:15:   # libmysql.a libmysqllib.a   # libstrings.a libmystrings.a   #         AC_INIT(mysql.c)   AC_CONFIG_HEADER(config.h)      AC_MODULE_INIT()    + PIKE_FEATURE_WITHOUT(Mysql) +    OLD_LIBS=$LIBS   OLD_LDFLAGS=$LDFLAGS   OLD_CPPFLAGS=$CPPFLAGS   MYSQL_LIBS=""      AC_ARG_WITH(mysql, [ --without-mysql no support for the Mysql database],[],[with_mysql=yes])   AC_ARG_WITH(root, [ --with-root=path specify a cross-compilation root-directory],[    case "$with_root" in    /)    with_root=""
pike.git/src/modules/Mysql/configure.in:41:    *)    AC_MSG_WARN([Root path $with_root is not absolute. Ignored.])    with_root=""    ;;    esac   ],[with_root=""])      if test x$with_mysql = xno; then    :   else +  PIKE_FEATURE_NODEP(Mysql) +     AC_MSG_CHECKING(for Mysql lib-directory)       libdirs="$with_root/usr/local/lib/mysql $with_root/usr/local/mysql/lib/mysql $with_root/opt/lib/mysql $with_root/opt/mysql/lib/mysql $with_root/usr/gnu/lib/mysql $with_root/usr/lib/mysql $with_root/lib/mysql $with_root/usr/local/mysql/lib $with_root/usr/local/mysql/mach-lib-thread no"    incdirs="$with_root/usr/local/include/mysql $with_root/usr/local/mysql/include/mysql $with_root/opt/include/mysql $with_root/opt/mysql/include/mysql $with_root/usr/gnu/include/mysql $with_root/usr/include/mysql $with_root/include/mysql $with_root/usr/local/mysql/include no"       if test x$with_mysql = xyes; then :; else    # Mysql installation directory specified.       libdirs="$with_mysql/lib/mysql $with_mysql/lib $libdirs"    incdirs="$with_mysql/include/mysql $with_mysql/include $incdirs"
pike.git/src/modules/Mysql/configure.in:199:   #include <mysql/mysql.h>   #endif   #endif   ],[    mysql_connect(0,0,0,0);   ],ac_cv_pike_lib_$1_mysql_connect=yes,ac_cv_pike_lib_$1_mysql_connect=no)   LIBS="$ac_save_LIBS"   ])      if test "x$ac_cv_pike_lib_$1_mysql_connect" = xyes ; then +  PIKE_FEATURE(Mysql,[yes (lib$1)])    AC_MSG_RESULT(yes)    $2   else    AC_MSG_RESULT(no)    $3   fi   ])       AC_CHECK_SQLLIB(mysqlclient, [    LIBS="-lmysqlclient $LIBS"    MYSQL_LIBS="-lmysqlclient ${MYSQL_LIBS}"    ], [    AC_CHECK_SQLLIB(mysqllib, [    LIBS="-lmysqllib $LIBS"    MYSQL_LIBS="-lmysqllib ${MYSQL_LIBS}"    ], [    AC_CHECK_SQLLIB(mysql, [    LIBS="-lmysql $LIBS"    MYSQL_LIBS="-lmysql ${MYSQL_LIBS}" -  ], [ pike_cv_mysql="no" ]) +  ], [ +  PIKE_FEATURE_NODEP(Mysql) +  pike_cv_mysql="no"    ])    ]) -  +  ])       if test x$pike_cv_mysql = xno; then    # Restore variables, so we don't link with unnessesary libs       LIBS=$OLD_LIBS    CPPFLAGS=$OLD_CPPFLAGS    LDFLAGS=$OLD_LDFLAGS    MYSQL_LIBS=""    else    AC_DEFINE(HAVE_MYSQL)