]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Apply Cygwin patches from Charles Wilson.
authorCharles Wilson <cwilson@ece.gatech.edu>
Tue, 22 Oct 2002 19:29:28 +0000 (19:29 +0000)
committerBob Friesenhahn <bfriesen@simple.dallas.tx.us>
Tue, 22 Oct 2002 19:29:28 +0000 (19:29 +0000)
ChangeLog
depdemo/configure.ac
libtool.m4
ltdl.m4
tests/mdemo-inst.test

index 23686b3594d771d5b00f198a634cdd1b5e57ceea..4ea5777390b2f723cf6484f9e2b0324e25c16e4b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,18 @@
-2002-10-15 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
+2002-10-15  Charles Wilson  <cwilson@ece.gatech.edu>
+
+        * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): avoid long delay on 
+         cygwin/Win9x when computing commandline length.
+        (AC_LIBTOOL_SYS_DYNAMIC_LINKER): fix postinstall_cmds when
+        sources are in a subdirectory
+        * ltdl.m4 (AC_LTDL_SYSSEARCHPATH): use $PATH_SEPARATOR, not
+        $ac_path_separator
+        * configure.ac: move depdemo-specific stuff.  You must configure
+        libtool before you can try './libtool --features'.
+        * mdemo-inst.test: set $PATH to include the directory in which
+        the modules are installed (on cygwin, DLL search path is the
+        $PATH)
+
+2002-10-15  Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
 
         * ltmain.in: MinGW works identically to Cygwin.
 
@@ -6,7 +20,7 @@
         *  Model MinGW configuration after Cygwin configuration.
            Some portions share implementation.
 
-2002-10-11 Elizabeth Barham <soggytrousers@yahoo.com>
+2002-10-11  Elizabeth Barham <soggytrousers@yahoo.com>
 
         * libtool.m4: Pattern MinGW library naming after that
         used by Cygwin except use 'lib' prefix rather than 'cyg'.
index b9c11e0b37f0c88981e2799beab10133debdc931..d39f8cc0f5240ee581f4802f6142a2c2c0d36d42 100644 (file)
@@ -26,17 +26,6 @@ AC_INIT([depdemo], [0.1], [bug-libtool@gnu.org])
 AC_CONFIG_SRCDIR([main.c])
 
 
-## ------------------------------- ##
-## depdemo specific configuration. ##
-## ------------------------------- ##
-if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then
-  STATIC=-static
-else
-  STATIC=
-fi
-AC_SUBST([STATIC])
-
-
 ## ------------------------ ##
 ## Automake Initialisation. ##
 ## ------------------------ ##
@@ -56,6 +45,15 @@ AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL
 AC_SUBST([LIBTOOL_DEPS])
 
+## ------------------------------- ##
+## depdemo specific configuration. ##
+## ------------------------------- ##
+if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then
+  STATIC=-static
+else
+  STATIC=
+fi
+AC_SUBST([STATIC])
 
 ## ---------------------------- ##
 ## C headers required by cdemo. ##
index a414a667d3b74dbd1594ca77b92ae3632cbfe8b9..9bb36bddb6c1db4ae3c320c9563f171f2c7e32fe 100644 (file)
@@ -620,11 +620,14 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
     lt_cv_sys_max_cmd_len=-1;
     ;;
 
-  
-  mingw*)
-    # On msys 1.0 and win98, the maximum length was something like
-    # 200,000 and took around 45 minutes to get there... ouch!
-    # libtool calculates a length of 8192 for NT-based systems (including XP)
+  cygwin* | mingw*)
+    # On Win9x/ME, this test blows up -- it succeeds, but takes
+    # about 5 minutes as the teststring grows exponentially.
+    # Worse, since 9x/ME are not pre-emptively multitasking,
+    # you end up with a "frozen" computer, even though with patience
+    # the test eventually succeeds (with a max line length of 256k).
+    # Instead, let's just punt: use the minimum linelength reported by
+    # all of the supported platforms: 8192 (on NT/2K/XP).
     lt_cv_sys_max_cmd_len=8192;
     ;;
 
@@ -1132,10 +1135,11 @@ cygwin* | mingw* | pw32*)
   yes,cygwin* | yes,mingw*)
     library_names_spec='$libname.dll.a'
     # DLL is installed to $(libdir)/../bin by postinstall_cmds
-    postinstall_cmds='dlpath=`$SHELL 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
+    postinstall_cmds='base_file=`basename \${file}`~
+      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
       dldir=$destdir/`dirname \$dlpath`~
       test -d \$dldir || mkdir -p \$dldir~
-      $install_prog .libs/$dlname \$dldir/$dlname'
+      $install_prog $dir/$dlname \$dldir/$dlname'
     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
       dlpath=$dir/\$dldll~
        $rm \$dlpath'
diff --git a/ltdl.m4 b/ltdl.m4
index fe414194e5ae074de5c59d628a9a69a1db3197b9..53f99e6c3fb012f4e3aa49b8f780963ea9a12f98 100644 (file)
--- a/ltdl.m4
+++ b/ltdl.m4
@@ -243,7 +243,7 @@ if test -n "$libltdl_cv_sys_search_path"; then
     if test -z "$sys_search_path"; then
       sys_search_path="$dir"
     else
-      sys_search_path="$sys_search_path$ac_path_separator$dir"
+      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
     fi
   done
   AC_DEFINE_UNQUOTED(LTDL_SYSSEARCHPATH, "$sys_search_path",
index d7f944d890bb61c610dc63f779c43a11cfb6fafb..7c9ea38c7f2fd79f05b2da6db7076891f3394441 100755 (executable)
@@ -24,6 +24,8 @@ echo "= Running $make install in ../mdemo"
 $make install || exit 1
 
 echo "= Executing installed programs"
+path_old=$PATH
+PATH=$prefix/lib:$PATH
 
 status=0
 if $prefix/bin/mdemo_static $prefix/lib/foo1.la $prefix/lib/libfoo2.la; then :
@@ -44,4 +46,5 @@ else
   status=1
 fi
 
+PATH=$path_old
 exit $status