home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 4
/
FreshFish_May-June1994.bin
/
bbs
/
gnu
/
fileutils-3.9-src.lha
/
src
/
build
/
fileutils-3.9
/
config.status
< prev
next >
Wrap
Text File
|
1994-02-22
|
9KB
|
221 lines
#!/bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host :
#
# /ISO/fileutils/fileutils-3.9-amiga/configure/ amigados
for arg
do
case "$arg" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo running ${CONFIG_SHELL-/bin/sh} /ISO/fileutils/fileutils-3.9-amiga/configure/ amigados
exec ${CONFIG_SHELL-/bin/sh} /ISO/fileutils/fileutils-3.9-amiga/configure/ amigados ;;
*) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
esac
done
trap 'rm -fr Makefile lib/Makefile src/Makefile man/Makefile config.h conftest*; exit 1' 1 3 15
PROGS=' df'
LIBPROGS=''
CC='gcc'
CFLAGS='-O2'
LDFLAGS='-g'
CPP='gcc -E'
RANLIB='ranlib'
YACC='bison -y'
LIBOBJS=' fsusage.o mountlist.o stpcpy.o'
ALLOCA=''
LIBS=''
srcdir='/ISO/fileutils/fileutils-3.9-amiga'
prefix=''
exec_prefix=''
prsub=''
extrasub=''
top_srcdir=$srcdir
CONFIG_FILES=${CONFIG_FILES-"Makefile lib/Makefile src/Makefile man/Makefile"}
for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
srcdir=$top_srcdir
# Remove last slash and all that follows it. Not all systems have dirname.
dir=`echo $file|sed 's%/[^/][^/]*$%%'`
if test "$dir" != "$file"; then
test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
test ! -d $dir && mkdir $dir
fi
echo creating $file
rm -f $file
echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
sed -e "
$prsub
$extrasub
s%@PROGS@%$PROGS%g
s%@LIBPROGS@%$LIBPROGS%g
s%@CC@%$CC%g
s%@CFLAGS@%$CFLAGS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@CPP@%$CPP%g
s%@RANLIB@%$RANLIB%g
s%@YACC@%$YACC%g
s%@LIBOBJS@%$LIBOBJS%g
s%@ALLOCA@%$ALLOCA%g
s%@LIBS@%$LIBS%g
s%@srcdir@%$srcdir%g
s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
fi; done
CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
for file in .. ${CONFIG_HEADERS}; do if test "x$file" != x..; then
echo creating $file
# These sed commands are put into SEDDEFS when defining a macro.
# They are broken into pieces to make the sed script easier to manage.
# They are passed to sed as "A NAME B NAME C VALUE D", where NAME
# is the cpp macro being defined and VALUE is the value it is being given.
# Each defining turns into a single global substitution command.
#
# SEDd sets the value in "#define NAME VALUE" lines.
SEDdA='s@^\([ ]*\)#\([ ]*define[ ][ ]*\)'
SEDdB='\([ ][ ]*\)[^ ]*@\1#\2'
SEDdC='\3'
SEDdD='@g'
# SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
SEDuA='s@^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
SEDuB='\([ ]\)@\1#\2define\3'
SEDuC=' '
SEDuD='\4@g'
# SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
SEDeA='s@^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
SEDeB='$@\1#\2define\3'
SEDeC=' '
SEDeD='@g'
rm -f conftest.sed
cat >> conftest.sed <<CONFEOF
${SEDdA}DIRENT${SEDdB}DIRENT${SEDdC}1${SEDdD}
${SEDuA}DIRENT${SEDuB}DIRENT${SEDuC}1${SEDuD}
${SEDeA}DIRENT${SEDeB}DIRENT${SEDeC}1${SEDeD}
${SEDdA}RETSIGTYPE${SEDdB}RETSIGTYPE${SEDdC}void${SEDdD}
${SEDuA}RETSIGTYPE${SEDuB}RETSIGTYPE${SEDuC}void${SEDuD}
${SEDeA}RETSIGTYPE${SEDeB}RETSIGTYPE${SEDeC}void${SEDeD}
${SEDdA}MOUNTED_GETMNTINFO${SEDdB}MOUNTED_GETMNTINFO${SEDdC}1${SEDdD}
${SEDuA}MOUNTED_GETMNTINFO${SEDuB}MOUNTED_GETMNTINFO${SEDuC}1${SEDuD}
${SEDeA}MOUNTED_GETMNTINFO${SEDeB}MOUNTED_GETMNTINFO${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}STAT_STATFS2_FSIZE${SEDdB}STAT_STATFS2_FSIZE${SEDdC}1${SEDdD}
${SEDuA}STAT_STATFS2_FSIZE${SEDuB}STAT_STATFS2_FSIZE${SEDuC}1${SEDuD}
${SEDeA}STAT_STATFS2_FSIZE${SEDeB}STAT_STATFS2_FSIZE${SEDeC}1${SEDeD}
${SEDdA}GETGROUPS_T${SEDdB}GETGROUPS_T${SEDdC}int${SEDdD}
${SEDuA}GETGROUPS_T${SEDuB}GETGROUPS_T${SEDuC}int${SEDuD}
${SEDeA}GETGROUPS_T${SEDeB}GETGROUPS_T${SEDeC}int${SEDeD}
${SEDdA}TIME_WITH_SYS_TIME${SEDdB}TIME_WITH_SYS_TIME${SEDdC}1${SEDdD}
${SEDuA}TIME_WITH_SYS_TIME${SEDuB}TIME_WITH_SYS_TIME${SEDuC}1${SEDuD}
${SEDeA}TIME_WITH_SYS_TIME${SEDeB}TIME_WITH_SYS_TIME${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}HAVE_STRING_H${SEDdB}HAVE_STRING_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_STRING_H${SEDuB}HAVE_STRING_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_STRING_H${SEDeB}HAVE_STRING_H${SEDeC}1${SEDeD}
${SEDdA}HAVE_FCNTL_H${SEDdB}HAVE_FCNTL_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_FCNTL_H${SEDuB}HAVE_FCNTL_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_FCNTL_H${SEDeB}HAVE_FCNTL_H${SEDeC}1${SEDeD}
${SEDdA}HAVE_LIMITS_H${SEDdB}HAVE_LIMITS_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_LIMITS_H${SEDuB}HAVE_LIMITS_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_LIMITS_H${SEDeB}HAVE_LIMITS_H${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}HAVE_SYS_TIME_H${SEDdB}HAVE_SYS_TIME_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_SYS_TIME_H${SEDuB}HAVE_SYS_TIME_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_SYS_TIME_H${SEDeB}HAVE_SYS_TIME_H${SEDeC}1${SEDeD}
${SEDdA}HAVE_ERRNO_H${SEDdB}HAVE_ERRNO_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_ERRNO_H${SEDuB}HAVE_ERRNO_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_ERRNO_H${SEDeB}HAVE_ERRNO_H${SEDeC}1${SEDeD}
${SEDdA}HAVE_UNISTD_H${SEDdB}HAVE_UNISTD_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_UNISTD_H${SEDuB}HAVE_UNISTD_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_UNISTD_H${SEDeB}HAVE_UNISTD_H${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}HAVE_STRERROR${SEDdB}HAVE_STRERROR${SEDdC}1${SEDdD}
${SEDuA}HAVE_STRERROR${SEDuB}HAVE_STRERROR${SEDuC}1${SEDuD}
${SEDeA}HAVE_STRERROR${SEDeB}HAVE_STRERROR${SEDeC}1${SEDeD}
${SEDdA}HAVE_FTIME${SEDdB}HAVE_FTIME${SEDdC}1${SEDdD}
${SEDuA}HAVE_FTIME${SEDuB}HAVE_FTIME${SEDuC}1${SEDuD}
${SEDeA}HAVE_FTIME${SEDeB}HAVE_FTIME${SEDeC}1${SEDeD}
${SEDdA}HAVE_GETCWD${SEDdB}HAVE_GETCWD${SEDdC}1${SEDdD}
${SEDuA}HAVE_GETCWD${SEDuB}HAVE_GETCWD${SEDuC}1${SEDuD}
${SEDeA}HAVE_GETCWD${SEDeB}HAVE_GETCWD${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}HAVE_MKFIFO${SEDdB}HAVE_MKFIFO${SEDdC}1${SEDdD}
${SEDuA}HAVE_MKFIFO${SEDuB}HAVE_MKFIFO${SEDuC}1${SEDuD}
${SEDeA}HAVE_MKFIFO${SEDeB}HAVE_MKFIFO${SEDeC}1${SEDeD}
${SEDdA}HAVE_MEMCPY${SEDdB}HAVE_MEMCPY${SEDdC}1${SEDdD}
${SEDuA}HAVE_MEMCPY${SEDuB}HAVE_MEMCPY${SEDuC}1${SEDuD}
${SEDeA}HAVE_MEMCPY${SEDeB}HAVE_MEMCPY${SEDeC}1${SEDeD}
${SEDdA}HAVE_BCOPY${SEDdB}HAVE_BCOPY${SEDdC}1${SEDdD}
${SEDuA}HAVE_BCOPY${SEDuB}HAVE_BCOPY${SEDuC}1${SEDuD}
${SEDeA}HAVE_BCOPY${SEDeB}HAVE_BCOPY${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}HAVE_GETTIMEOFDAY${SEDdB}HAVE_GETTIMEOFDAY${SEDdC}1${SEDdD}
${SEDuA}HAVE_GETTIMEOFDAY${SEDuB}HAVE_GETTIMEOFDAY${SEDuC}1${SEDuD}
${SEDeA}HAVE_GETTIMEOFDAY${SEDeB}HAVE_GETTIMEOFDAY${SEDeC}1${SEDeD}
${SEDdA}HAVE_FTRUNCATE${SEDdB}HAVE_FTRUNCATE${SEDdC}1${SEDdD}
${SEDuA}HAVE_FTRUNCATE${SEDuB}HAVE_FTRUNCATE${SEDuC}1${SEDuD}
${SEDeA}HAVE_FTRUNCATE${SEDeB}HAVE_FTRUNCATE${SEDeC}1${SEDeD}
${SEDdA}HAVE_VPRINTF${SEDdB}HAVE_VPRINTF${SEDdC}1${SEDdD}
${SEDuA}HAVE_VPRINTF${SEDuB}HAVE_VPRINTF${SEDuC}1${SEDuD}
${SEDeA}HAVE_VPRINTF${SEDeB}HAVE_VPRINTF${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}HAVE_ST_BLOCKS${SEDdB}HAVE_ST_BLOCKS${SEDdC}1${SEDdD}
${SEDuA}HAVE_ST_BLOCKS${SEDuB}HAVE_ST_BLOCKS${SEDuC}1${SEDuD}
${SEDeA}HAVE_ST_BLOCKS${SEDeB}HAVE_ST_BLOCKS${SEDeC}1${SEDeD}
${SEDdA}HAVE_UTIME_NULL${SEDdB}HAVE_UTIME_NULL${SEDdC}1${SEDdD}
${SEDuA}HAVE_UTIME_NULL${SEDuB}HAVE_UTIME_NULL${SEDuC}1${SEDuD}
${SEDeA}HAVE_UTIME_NULL${SEDeB}HAVE_UTIME_NULL${SEDeC}1${SEDeD}
CONFEOF
# This sed command replaces #undef's with comments. This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it in
# config.h.
cat >> conftest.sed <<\CONFEOF
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
CONFEOF
rm -f conftest.h
# Break up the sed commands because old seds have small limits.
maxsedlines=20
cp $top_srcdir/$file.in conftest.h1
while :
do
lines=`grep -c . conftest.sed`
if test -z "$lines" || test "$lines" -eq 0; then break; fi
rm -f conftest.s1 conftest.s2 conftest.h2
sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
sed -f conftest.s1 < conftest.h1 > conftest.h2
rm -f conftest.s1 conftest.h1 conftest.sed
mv conftest.h2 conftest.h1
mv conftest.s2 conftest.sed
done
rm -f conftest