]> git.saurik.com Git - wxWidgets.git/commitdiff
Added some special code to make generated configure script OS/2 compatible
authorStefan Neis <Stefan.Neis@t-online.de>
Sun, 17 Aug 2003 14:53:27 +0000 (14:53 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Sun, 17 Aug 2003 14:53:27 +0000 (14:53 +0000)
        no matter what platform it is generated on.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure.in

index 47ed6316fee1f3b249035d797d0be054ca9a2b27..f25ad00574c11df57b83a7d43e662ba620944826 100644 (file)
@@ -294,6 +294,28 @@ case "${host}" in
     CXX=gcc
     dnl Explicitly link -lstdcpp, since we are using "gcc" not "g++"/"c++".
     LIBS="$LIBS -lstdcpp"
+    dnl
+    dnl Some special code that's automatically added by autoconf-2.57 for OS/2
+    dnl and hopefully also by autoconf-2.58 and newer on all other platforms.
+    dnl For now however, we still need it to make sure the configure script
+    dnl works on OS/2 no matter what platform it is generated on.
+    ac_executable_extensions=".exe"
+    export ac_executable_extensions
+    dnl This strange code is necessary to deal with handling of
+    dnl backslashes by ksh and pdksh's sh variant.
+    ac_save_IFS="$IFS"
+    IFS="\\"
+    ac_TEMP_PATH=
+    for ac_dir in $PATH; do
+      IFS=$ac_save_IFS
+      if test -z "$ac_TEMP_PATH"; then
+        ac_TEMP_PATH="$ac_dir"
+      else
+        ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
+      fi
+    done
+    export PATH="$ac_TEMP_PATH"
+    unset ac_TEMP_PATH
   ;;
 
   powerpc-*-darwin* )