99 lines
3.3 KiB
Plaintext
99 lines
3.3 KiB
Plaintext
$OpenBSD: patch-configure,v 1.1.1.1 2004/07/19 13:56:20 wilfried Exp $
|
|
--- configure.orig Fri Mar 28 23:06:00 2003
|
|
+++ configure Tue Apr 1 15:30:59 2003
|
|
@@ -2480,7 +2480,7 @@ fi
|
|
if test "x$mysql_found" = "xyes"
|
|
then
|
|
LIBS="-L$dir $SAVE_LIBS $LIBZ_LIB"
|
|
- MYSQL_LIB="$dir/libmysqlclient.a $LIBZ_LIB"
|
|
+ MYSQL_LIB="-lmysqlclient $LIBZ_LIB"
|
|
|
|
echo "$as_me:$LINENO: checking for mysql_real_connect in -lmysqlclient" >&5
|
|
echo $ECHO_N "checking for mysql_real_connect in -lmysqlclient... $ECHO_C" >&6
|
|
@@ -3086,51 +3086,7 @@ fi
|
|
|
|
if test "x$mysql_found" = "xyes"
|
|
then
|
|
- echo "$as_me:$LINENO: checking \"if MySQL Version $dir is >= 4.0.0\"" >&5
|
|
-echo $ECHO_N "checking \"if MySQL Version $dir is >= 4.0.0\"... $ECHO_C" >&6
|
|
- CPPFLAGS="$CPPFLAGS -I$dir"
|
|
- cat >conftest.$ac_ext <<_ACEOF
|
|
-#line $LINENO "configure"
|
|
-#include "confdefs.h"
|
|
-
|
|
- #include <mysql_version.h>
|
|
- #if MYSQL_VERSION_ID < 40000
|
|
- #error
|
|
- #endif
|
|
-
|
|
-_ACEOF
|
|
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
|
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
|
- ac_status=$?
|
|
- egrep -v '^ *\+' conftest.er1 >conftest.err
|
|
- rm -f conftest.er1
|
|
- cat conftest.err >&5
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); } >/dev/null; then
|
|
- if test -s conftest.err; then
|
|
- ac_cpp_err=$ac_c_preproc_warn_flag
|
|
- else
|
|
- ac_cpp_err=
|
|
- fi
|
|
-else
|
|
- ac_cpp_err=yes
|
|
-fi
|
|
-if test -z "$ac_cpp_err"; then
|
|
- mysql_version_ok=yes
|
|
-else
|
|
- echo "$as_me: failed program was:" >&5
|
|
- cat conftest.$ac_ext >&5
|
|
- mysql_version_ok=no
|
|
-fi
|
|
-rm -f conftest.err conftest.$ac_ext
|
|
-
|
|
- if test "x$mysql_version_ok" != "xno"
|
|
- then
|
|
- MYSQL_INCLUDE="$dir"
|
|
-
|
|
- fi
|
|
- echo "$as_me:$LINENO: result: $mysql_version_ok" >&5
|
|
-echo "${ECHO_T}$mysql_version_ok" >&6
|
|
+ MYSQL_INCLUDE="$dir"
|
|
fi
|
|
fi
|
|
done
|
|
@@ -3142,14 +3098,6 @@ echo "$as_me: error: Could not find mysq
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
|
|
|
- if test "x$mysql_version_ok" != "xyes"
|
|
- then
|
|
- echo "Please upgrade your MySQL installation to version 4.0.0 or higher"
|
|
- echo "If you do have the correct version of MySQL installed somewhere"
|
|
- echo "other than $dir, please specify it as --with-mysql-include= argument"
|
|
- exit 1
|
|
- fi
|
|
-
|
|
|
|
|
|
# Check whether --with-qt or --without-qt was given.
|
|
@@ -3179,7 +3127,7 @@ fi
|
|
|
|
echo "$as_me:$LINENO: checking \"if Qt Version in $QTDIR is >= 3.0.5\"" >&5
|
|
echo $ECHO_N "checking \"if Qt Version in $QTDIR is >= 3.0.5\"... $ECHO_C" >&6
|
|
-CPPFLAGS="$CPPFLAGS -I$QTDIR/include"
|
|
+CPPFLAGS="$CPPFLAGS -I$LOCALBASE/include/X11/qt3"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
@@ -4067,7 +4015,7 @@ fi
|
|
|
|
QMAKESPEC=$QTDIR/mkspecs/$host_os
|
|
echo "Creating Makefile with qmake"
|
|
-QMAKESPEC=$QMAKESPEC QTDIR=$QTDIR $QTDIR/bin/qmake mysqlcc.pro
|
|
+QMAKESPEC=$FILESDIR QTDIR=$QTDIR $QTDIR/bin/qmake-mt mysqlcc.pro
|
|
if test ! $? = 0 ; then
|
|
echo "qmake failed, aborting"
|
|
exit 1
|