components/unixodbc/patches/000-configure.patch
author Stefan Teleman <stefan.teleman@oracle.com>
Fri, 20 May 2011 11:13:09 -0700
changeset 253 425c6a23679f
child 1042 31d26adcf615
permissions -rw-r--r--
7031762 libidn to Userland 7043673 UnixODBC to Userland

--- configure	2010-02-23 07:30:55.000000000 -0500
+++ configure	2010-09-15 13:44:24.854675000 -0400
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.64 for unixODBC 2.3.0.
 #
@@ -238,7 +238,7 @@
 fi
 fi
 fi
-SHELL=${CONFIG_SHELL-/bin/sh}
+SHELL=${CONFIG_SHELL-/bin/bash}
 export SHELL
 # Unset more variables known to interfere with behavior of common tools.
 CLICOLOR_FORCE= GREP_OPTIONS=
@@ -529,7 +529,7 @@
 
 
 # Check that we are running under the correct shell.
-SHELL=${CONFIG_SHELL-/bin/sh}
+SHELL=${CONFIG_SHELL-/bin/bash}
 
 case X$lt_ECHO in
 X*--fallback-echo)
@@ -613,7 +613,7 @@
       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 	   test "X$CONFIG_SHELL" != X/bin/ksh; then
         # If we have ksh, try running configure again with it.
-        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
+        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/bash}
         export ORIGINAL_CONFIG_SHELL
         CONFIG_SHELL=/bin/ksh
         export CONFIG_SHELL
@@ -655,7 +655,7 @@
 	  if test "$prev" != 'sed 50q "$0"'; then
 	    echo_test_string=`eval $prev`
 	    export echo_test_string
-	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
+	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/bash}} "$0" ${1+"$@"}
 	  else
 	    # Oops.  We lost completely, so just stick with echo.
 	    ECHO=echo
@@ -999,7 +999,7 @@
 datadir='${datarootdir}'
 sysconfdir='${prefix}/etc'
 sharedstatedir='${prefix}/com'
-localstatedir='${prefix}/var'
+localstatedir='/var'
 includedir='${prefix}/include'
 oldincludedir='/usr/include'
 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -2686,7 +2686,7 @@
 ac_cpp='$CPP $CPPFLAGS'
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
+ac_compiler_gnu="no"
 
 
 ac_aux_dir=
@@ -3097,7 +3097,7 @@
   $as_echo_n "(cached) " >&6
 else
   cat >conftest.make <<\_ACEOF
-SHELL = /bin/sh
+SHELL = /bin/bash
 all:
 	@echo '@@@%%%=$(MAKE)=@@@%%%'
 _ACEOF
@@ -4153,7 +4153,7 @@
     for i in 1 2 3 4 5 6; do
       echo '#include "conftst'$i'.h"' >> sub/conftest.c
       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
-      # Solaris 8's {/usr,}/bin/sh.
+      # Solaris 8's {/usr,}/bin/bash.
       touch sub/conftst$i.h
     done
     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
@@ -4957,7 +4957,7 @@
     for i in 1 2 3 4 5 6; do
       echo '#include "conftst'$i'.h"' >> sub/conftest.c
       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
-      # Solaris 8's {/usr,}/bin/sh.
+      # Solaris 8's {/usr,}/bin/bash.
       touch sub/conftst$i.h
     done
     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
@@ -5218,7 +5218,7 @@
   $as_echo_n "(cached) " >&6
 else
   cat >conftest.make <<\_ACEOF
-SHELL = /bin/sh
+SHELL = /bin/bash
 all:
 	@echo '@@@%%%=$(MAKE)=@@@%%%'
 _ACEOF
@@ -6667,7 +6667,7 @@
       for i in 1 2 3 4 5 6 7 8 ; do
         teststring=$teststring$teststring
       done
-      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
+      SHELL=${SHELL-${CONFIG_SHELL-/bin/bash}}
       # If test is not a shell built-in, we'll probably end up computing a
       # maximum length that is only half of the actual maximum length, but
       # we can't tell.
@@ -14651,6 +14651,7 @@
 int
 main ()
 {
+#error "We want to use libpthread and not libthread."
 mutex_lock()
   ;
   return 0;
@@ -14732,7 +14733,8 @@
 $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
 
         gotthread="yes";
-        THREADLIB="-lpthread"
+        THREADLIB="-lpthread -lposix4 -lrt"
+        ac_cv_c_compiler_gnu="no"
         if test "x$ac_cv_c_compiler_gnu"="xyes"; then
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -pthread" >&5
 $as_echo_n "checking if compiler accepts -pthread... " >&6; }
@@ -14740,7 +14742,7 @@
 if test -z "`${CC-cc} -pthread -c conftest.c 2>&1`"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
-  CFLAGS="$CFLAGS -pthread"
+  CFLAGS="$CFLAGS"
 else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
@@ -14806,6 +14808,7 @@
 
         gotthread="yes";
         THREADLIB=""
+        ac_cv_c_compiler_gnu="no"
         if test "x$ac_cv_c_compiler_gnu"="xyes"; then
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -pthread" >&5
 $as_echo_n "checking if compiler accepts -pthread... " >&6; }
@@ -14813,7 +14816,7 @@
 if test -z "`${CC-cc} -pthread -c conftest.c 2>&1`"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
-  CFLAGS="$CFLAGS -pthread"
+  CFLAGS="$CFLAGS"
 else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
@@ -14843,6 +14846,8 @@
 
     fi
 
+    ac_cv_c_compiler_gnu="no"
+    ac_cv_c_compiler_gnu="no"
     if test "x$gotthread" = "xno"; then
       if test "x$ac_cv_c_compiler_gnu"="xyes"; then
                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -pthread" >&5
@@ -14851,7 +14856,7 @@
 if test -z "`${CC-cc} -pthread -c conftest.c 2>&1`"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
-  CFLAGS="$CFLAGS -pthread"
+  CFLAGS="$CFLAGS"
 else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
@@ -15053,7 +15058,7 @@
 ac_cpp='$CPP $CPPFLAGS'
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
+ac_compiler_gnu="no"
 
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for semundo union" >&5
@@ -15287,7 +15292,8 @@
 
 done
 
-
+export drivers="true"
+export driverc="true"
 
  if test "x$msql" = "xtrue" ; then
   MSQL_TRUE=
@@ -15321,6 +15327,8 @@
   QNX_FALSE=
 fi
 
+export use_builtin_libtool="no"
+
  if test "x$use_builtin_libtool" = "xyes" ; then
   WITHLT_TRUE=
   WITHLT_FALSE='#'
@@ -15873,6 +15881,8 @@
 fi
 done
 
+export LIBS="${LIBS} -lsocket -lnsl -lgen -z ignore"
+export LD_OPTIONS="-lsocket -lnsl -lgen -z ignore"
 
 for ac_func in putenv socket strdup strstr setenv setlocale strchr
 do :