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

version» Context lines:

pike.git/src/modules/Mysql/configure.in:1:   # - # $Id: configure.in,v 1.46 2004/07/14 16:32:38 grubba Exp $ + # $Id: configure.in,v 1.47 2004/10/05 13:09:51 mast 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:31:      AC_ARG_WITH(mysql, [ --without-mysql no support for the Mysql database],[],[with_mysql=yes])      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/pkg/lib/mysql $with_root/usr/local/mysql/lib $with_root/usr/local/mysql/mach-lib-thread no" +  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/pkg/lib/mysql $with_root/usr/local/mysql/lib $with_root/usr/local/mysql/mach-lib-thread"    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/pkg/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"    fi       AC_CACHE_VAL(pike_cv_mysql_lib_dir, [ -  for pike_cv_mysql_lib_dir in $libdirs; do -  if test -d $pike_cv_mysql_lib_dir/.; then -  break +  pike_cv_mysql_lib_dir=no +  for dir in $libdirs; do +  for sedpat in 's|foo|foo|' \ +  's|lib/|lib32/|' \ +  's|lib/|lib64/|' \ +  's|lib/|lib/64/|' +  do +  d=`echo $dir | sed -e $sedpat` +  if test -d $d/.; then +  pike_cv_mysql_lib_dir=$d +  break 2    else    :    fi    done -  +  done    ])       AC_MSG_RESULT($pike_cv_mysql_lib_dir)       if test x$pike_cv_mysql_lib_dir = xno; then :; else    echo Adding $pike_cv_mysql_lib_dir to the library search path.    LDFLAGS="${LDFLAGS} -R$pike_cv_mysql_lib_dir -L$pike_cv_mysql_lib_dir"    fi       AC_MSG_CHECKING(for Mysql include-directory)