]> git.saurik.com Git - wxWidgets.git/blobdiff - configure
only check for lib directory for architectures which have multiple ABIs (Solaris...
[wxWidgets.git] / configure
index 48b3d7795377ef7b0ced26b14792cde2f64cb2ca..778ceb4fd67775330fae84c8b28bd107f8ba0f38 100755 (executable)
--- a/configure
+++ b/configure
@@ -22531,19 +22531,21 @@ SEARCH_INCLUDE="\
                               \
     /usr/openwin/share/include"
 
-echo "$as_me:$LINENO: checking for libraries directory" >&5
+case "${host}" in
+    *-*-linux* | *-*-irix6* | *-*-solaris2* )
+        echo "$as_me:$LINENO: checking for libraries directory" >&5
 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
 if test "${wx_cv_std_libpath+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
 
-        for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
-            for e in a so sl dylib dll.a; do
-                libc="$d/libc.$e"
-                if test -f $libc; then
-                    save_LIBS="$LIBS"
-                    LIBS="$libc"
-                    cat >conftest.$ac_ext <<_ACEOF
+                for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
+                    for e in a so sl dylib dll.a; do
+                        libc="$d/libc.$e"
+                        if test -f $libc; then
+                            save_LIBS="$LIBS"
+                            LIBS="$libc"
+                            cat >conftest.$ac_ext <<_ACEOF
 int main() { return 0; }
 _ACEOF
 rm -f conftest.$ac_objext conftest$ac_exeext
@@ -22575,21 +22577,27 @@ sed 's/^/| /' conftest.$ac_ext >&5
 fi
 rm -f conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
-                    LIBS="$save_LIBS"
-                    if test "x$wx_cv_std_libpath" != "x"; then
-                        break 2
-                    fi
+                            LIBS="$save_LIBS"
+                            if test "x$wx_cv_std_libpath" != "x"; then
+                                break 2
+                            fi
+                        fi
+                    done
+                done
+                if test "x$wx_cv_std_libpath" = "x"; then
+                    wx_cv_std_libpath="lib"
                 fi
-            done
-        done
-        if test "x$wx_cv_std_libpath" = "x"; then
-            wx_cv_std_libpath="lib"
-        fi
 
 
 fi
 echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
 echo "${ECHO_T}$wx_cv_std_libpath" >&6
+        ;;
+
+    *)
+        wx_cv_std_libpath="lib";
+        ;;
+esac
 
 SEARCH_LIB=`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g`
 
@@ -43718,12 +43726,19 @@ EOF
       ;;
 
       *-*-aix* )
-                                       if test "x$GCC" = "xyes"; then
-           PIC_FLAG=""
-           SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
-           SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
+        if test "x$GCC" = "xyes"; then
+                                           PIC_FLAG=""
+
+                                                           case "${BAKEFILE_HOST}" in
+               *-*-aix5* )
+                   LD_EXPFULL="-Wl,-bexpfull"
+                   ;;
+           esac
+
+           SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
+           SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
        else
-                                    # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
+                               # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
 set dummy makeC++SharedLib; ac_word=$2
 echo "$as_me:$LINENO: checking for $ac_word" >&5
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
@@ -43759,7 +43774,7 @@ else
 echo "${ECHO_T}no" >&6
 fi
 
-                        SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
+            SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
         fi
       ;;
@@ -44434,11 +44449,7 @@ if test ${D}DEPSMODE = gcc ; then
     fi
     exit 0
 elif test ${D}DEPSMODE = mwcc ; then
-    ${D}*
-    status=${D}?
-    if test ${D}{status} != 0 ; then
-        exit ${D}{status}
-    fi
+    ${D}* || exit ${D}?
     # Run mwcc again with -MM and redirect into the dep file we want
     # NOTE: We can't use shift here because we need ${D}* to be valid
     prevarg=
@@ -44459,7 +44470,7 @@ elif test ${D}DEPSMODE = mwcc ; then
     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
     exit 0
 elif test ${D}DEPSMODE = unixcc; then
-    ${D}* || exit
+    ${D}* || exit ${D}?
     # Run compiler again with deps flag and redirect into the dep file.
     # It doesn't work if the '-o FILE' option is used, but without it the
     # dependency file will contain the wrong name for the object. So it is