[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
automake CVS HEAD and bootstrapping with DJGPP
From: |
Richard Dawe |
Subject: |
automake CVS HEAD and bootstrapping with DJGPP |
Date: |
Mon, 24 Feb 2003 13:34:16 +0000 |
Hello.
bootstrap from automake CVS HEAD assumes that the path separator is ':'.
The path separator on DOS is ';'.
Below is a patch to make bootstrap auto-detect what the path separator is.
I "borrowed" the code from a configure script. Note that it must run
before "set -e", since running boot$$.sh will fail if the path separator
isn't ';'.
Bye, Rich =]
Index: bootstrap
===================================================================
RCS file: /cvs/automake/automake/bootstrap,v
retrieving revision 1.7
diff -p -u -3 -r1.7 bootstrap
--- bootstrap 11 Feb 2003 12:37:00 -0000 1.7
+++ bootstrap 24 Feb 2003 13:28:44 -0000
@@ -19,6 +19,16 @@
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# Find the path separator
+echo "#! /bin/sh" >boot$$.sh
+echo "exit 0" >>boot$$.sh
+chmod +x boot$$.sh
+if (PATH="/nonexistent;."; boot$$.sh) >/dev/null 2>&1; then
+ PATH_SEPARATOR=';'
+else
+ PATH_SEPARATOR=:
+fi
+rm -f boot$$.sh
# Don't ignore failures
set -e
@@ -26,7 +36,7 @@ set -e
# Find perl. Code based on Autoconf, but without non-POSIX support.
if test -z "$PERL"; then
save_IFS=$IFS
- IFS=:
+ IFS=$PATH_SEPARATOR
for dir in $PATH; do
IFS=$save_IFS
test -z "$dir" && dir=.
- automake CVS HEAD and bootstrapping with DJGPP,
Richard Dawe <=