Ticket #17783: patch-configure

File patch-configure, 1.4 KB (added by pixilla (Bradley Giesbrecht), 16 years ago)

Patch to add path to mysql_config5 as a configure arg

Line 
1--- configure.orig      2009-01-29 14:42:07.000000000 -0800
2+++ configure   2009-01-29 14:42:34.000000000 -0800
3@@ -6623,8 +6623,8 @@
4                    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
5                    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
6                    "-lgssapi" \
7-                   "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
8-                   "-lgssapi -lkrb5 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \
9+                   "-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcom_err" \
10+                   "-lgssapi -lkrb5 -lcrypto -lasn1 -lroken -lcom_err" \
11                    "-lgss"
12                do
13                    # Note that this does not include $saved_libs, because
14@@ -31094,6 +31094,13 @@
15                        break
16                fi
17        done
18+elif test -f `$use_dlz_mysql --include | awk '{print substr($1,3)}'`/mysql.h
19+then
20+       mysql_include=`$use_dlz_mysql --include | awk '{print substr($1,3)}'`
21+       if test -d `$use_dlz_mysql --libs | awk '{print substr($2,3)}'`
22+       then
23+               mysql_lib=`$use_dlz_mysql --libs | awk '{print substr($2,3)}'`
24+       fi
25 elif test "$use_dlz_mysql" != "no"
26 then
27        d=$use_dlz_mysql
28@@ -31144,9 +31151,9 @@
29        then
30                DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
31        fi
32-       if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
33+       if test -n "-L${mysql_lib} -lmysqlclient -lz -lm"
34        then
35-               DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
36+               DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lm"
37        fi
38 
39