-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.
* 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'.
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. ##
## ------------------------ ##
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. ##
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;
;;
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'
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",
$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 :
status=1
fi
+PATH=$path_old
exit $status