Option of the link generation was necessary.
authorHiroshi Saito <hiroshi@winpg.jp>
Thu, 29 Mar 2007 16:59:32 +0000 (16:59 +0000)
committerHiroshi Saito <hiroshi@winpg.jp>
Thu, 29 Mar 2007 16:59:32 +0000 (16:59 +0000)
It was remarkable in MAC-OSX or FreeBSD.
And, it was confirmed that there was no problem
in other platforms.

Thanks.! Report From: "Sean Davis"

configure.ac

index d7f3d106ee09370025464cb76a4092ea0a902cae..9dfb326735970fcb4c02bf31f1c22f21bea395e1 100644 (file)
@@ -35,10 +35,12 @@ fi
 if test "$with_unixodbc" = yes; then
   AC_DEFINE(WITH_UNIXODBC, 1, [Define to 1 to build with unixODBC support])
   AC_DEFINE(SQL_WCHART_CONVERT, [], [Define to use wchar_t as SQLWCHAR in unixODBC])
+  LIBS="$LIBS -lodbc -lodbcinst"
 fi
 
 if test "$with_iodbc" = yes; then
   AC_DEFINE(WITH_IODBC, 1, [Define to 1 to build with iODBC support])
+  LIBS="$LIBS -liodbc -liodbcinst"
 fi
 
 #
@@ -87,8 +89,8 @@ PGAC_ARG_BOOL(enable, pthreads, no,
 
 # Need OpenSSL 
 AC_PATH_PROG(PKG_CONFIG, pkg-config)
-PGAC_ARG_BOOL(with, openssl, yes,
-   [--with-openssl=PATH       where openssl is installed(default)],
+PGAC_ARG_BOOL(with, openssl, no,
+   [--with-openssl=PATH       where openssl is installed],
 [if test "x$PKG_CONFIG" = x || test "x$PKG_CONFIG" = "xno" ; then
    if test x_$with_openssl != x_/usr; then
        SSLLIBS="-L${with_openssl}/lib"