Log Message:
-----------
fix libpq/ssl library detection [Adam H Pendleton]

Modified Files:
--------------
    pgadmin3:
        acinclude.m4 (r1.39 -> r1.40)
        CHANGELOG.txt (r1.181 -> r1.182)

Index: CHANGELOG.txt
===================================================================
RCS file: /projects/pgadmin3/CHANGELOG.txt,v
retrieving revision 1.181
retrieving revision 1.182
diff -LCHANGELOG.txt -LCHANGELOG.txt -u -w -r1.181 -r1.182
--- CHANGELOG.txt
+++ CHANGELOG.txt
@@ -17,6 +17,7 @@
 </ul>
 <br>
 <ul>
+    <li>2005-02-07 AHP 1.2.1 fix libpq/ssl library detection
     <li>2005-01-14 AP 1.2.1  table statistics including TOAST and indexes
     <li>2005-01-14 AP 1.2.1  fix adding sequence columns
     <li>2005-01-14 AP 1.2.1  fix Grant Wizard for functions (r: Robert K�pferl)
Index: acinclude.m4
===================================================================
RCS file: /projects/pgadmin3/acinclude.m4,v
retrieving revision 1.39
retrieving revision 1.40
diff -Lacinclude.m4 -Lacinclude.m4 -u -w -r1.39 -r1.40
--- acinclude.m4
+++ acinclude.m4
@@ -119,14 +119,24 @@
     fi
     if test "$pg_static_build" = "yes"
     then
+        if test "$pgsql_ssl_libpq" = "yes"
+        then
         LIBS="${LIBPQ_HOME}/lib/libpq.a -lcrypt $LIBS -lssl -lcrypto"
     else
+            LIBS="${LIBPQ_HOME}/lib/libpq.a -lcrypt $LIBS -lcrypto"
+        fi
+    else
+        if test "$pgsql_ssl_libpq" = "yes"
+        then
         LIBS="$LIBS -lssl -lcrypto -lpq"
+        else
+            LIBS="$LIBS -lcrypto -lpq"
+        fi
     fi
     AC_LANG_SAVE
     AC_LANG_C
     AC_CHECK_LIB(pq, PQexec, [pgsql_cv_libpq=yes], [pgsql_cv_libpq=no])
-    AC_CHECK_LIB(pq, SSL_connect, [pgsql_ssl_libpq=yes], [pgsql_ssl_libpq=np])
+    AC_CHECK_LIB(pq, SSL_connect, [pgsql_ssl_libpq=yes], [pgsql_ssl_libpq=no])
     AC_CHECK_HEADER(libpq-fe.h, [pgsql_cv_libpqfe_h=yes], 
[pgsql_cv_libpqfe_h=no])
     AC_LANG_RESTORE
     if test "$pgsql_cv_libpq" = "yes" -a "$pgsql_cv_libpqfe_h" = "yes"
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Reply via email to