diff --git a/sm5/autogen.sh b/sm5/autogen.sh index ff347befd04a3023cfed707bf6e88f37a1ce9452..51168ef37eda2e8e5b230751320271604ead5964 100755 --- a/sm5/autogen.sh +++ b/sm5/autogen.sh @@ -1,11 +1,26 @@ #!/bin/sh -e -# $Id: autogen.sh,v 1.6 2004/03/23 11:25:50 ballen4705 Exp $ +# $Id: autogen.sh,v 1.7 2004/04/26 18:45:54 chrfranke Exp $ # # Generate ./configure from config.in and Makefile.in from Makefile.am. # This also adds files like missing,depcomp,install-sh to the source # direcory. To update these files at a later date use: # autoreconf -f -i -v + +# Cygwin? +test -x /usr/bin/uname && /usr/bin/uname | grep -i CYGWIN >/dev/null && +{ + # Enable strict case checking + # (to avoid e.g "DIST_COMMON = ... ChangeLog ..." in Makefile.in) + export CYGWIN="${CYGWIN}${CYGWIN:+ }check_case:strict" + + # Check for Unix text file type + echo > dostest.tmp + test "`wc -c < dostest.tmp`" -eq 1 || + echo "Warning: DOS text file type set, 'make dist' and related targets will not work." + rm -f dostest.tmp +} + typep() { cmd=$1 ; TMP=$IFS ; IFS=: ; set $PATH