home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / patch-2.1-src.lha / src / build / patch-2.1 / config.status < prev    next >
Encoding:
Text File  |  1994-02-24  |  5.2 KB  |  153 lines

  1. #!/bin/sh
  2. # Generated automatically by configure.
  3. # Run this file to recreate the current configuration.
  4. # This directory was configured as follows,
  5. # on host :
  6. #
  7. # /ISO/patch/patch-2.1-amiga/configure/ amigados
  8.  
  9. for arg
  10. do
  11.   case "$arg" in
  12.     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13.     exec /bin/sh /ISO/patch/patch-2.1-amiga/configure/ amigados ;;
  14.     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  15.   esac
  16. done
  17.  
  18. trap 'rm -f Makefile config.h conftest*; exit 1' 1 3 15
  19. CC='gcc'
  20. CPP='${CC-cc} -E'
  21. INSTALL='/bin/install -c'
  22. INSTALL_PROGRAM='$(INSTALL)'
  23. INSTALL_DATA='$(INSTALL) -m 644'
  24. LIBOBJS=''
  25. ALLOCA=''
  26. LIBS=''
  27. srcdir='/ISO/patch/patch-2.1-amiga'
  28. prefix=''
  29. exec_prefix=''
  30. prsub=''
  31.  
  32. top_srcdir=$srcdir
  33.  
  34. # Allow make-time overrides of the generated file list.
  35. test -n "$gen_files" || gen_files="Makefile"
  36.  
  37. for file in .. $gen_files; do if [ "x$file" != "x.." ]; then
  38.   srcdir=$top_srcdir
  39.   # Remove last slash and all that follows it.  Not all systems have dirname.
  40.   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  41.   if test "$dir" != "$file"; then
  42.     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  43.     test ! -d $dir && mkdir $dir
  44.   fi
  45.   echo creating $file
  46.   rm -f $file
  47.   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  48.   sed -e "
  49. $prsub
  50. s%@CC@%$CC%g
  51. s%@CPP@%$CPP%g
  52. s%@INSTALL@%$INSTALL%g
  53. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  54. s%@INSTALL_DATA@%$INSTALL_DATA%g
  55. s%@LIBOBJS@%$LIBOBJS%g
  56. s%@ALLOCA@%$ALLOCA%g
  57. s%@LIBS@%$LIBS%g
  58. s%@srcdir@%$srcdir%g
  59. s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
  60. fi; done
  61. test -n "$gen_config" || gen_config=config.h
  62. echo creating $gen_config
  63. # These sed commands are put into SEDDEFS when defining a macro.
  64. # They are broken into pieces to make the sed script easier to manage.
  65. # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  66. # is the cpp macro being defined and VALUE is the value it is being given.
  67. # Each defining turns into a single global substitution command.
  68. #
  69. # SEDd sets the value in "#define NAME VALUE" lines.
  70. SEDdA='s@^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  71. SEDdB='\([     ][     ]*\)[^     ]*@\1#\2'
  72. SEDdC='\3'
  73. SEDdD='@g'
  74. # SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  75. SEDuA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  76. SEDuB='\([     ]\)@\1#\2define\3'
  77. SEDuC=' '
  78. SEDuD='\4@g'
  79. # SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  80. SEDeA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  81. SEDeB='$@\1#\2define\3'
  82. SEDeC=' '
  83. SEDeD='@g'
  84. rm -f conftest.sed
  85. cat >> conftest.sed <<CONFEOF
  86. ${SEDdA}DIRENT${SEDdB}DIRENT${SEDdC}1${SEDdD}
  87. ${SEDuA}DIRENT${SEDuB}DIRENT${SEDuC}1${SEDuD}
  88. ${SEDeA}DIRENT${SEDeB}DIRENT${SEDeC}1${SEDeD}
  89. ${SEDdA}RETSIGTYPE${SEDdB}RETSIGTYPE${SEDdC}void${SEDdD}
  90. ${SEDuA}RETSIGTYPE${SEDuB}RETSIGTYPE${SEDuC}void${SEDuD}
  91. ${SEDeA}RETSIGTYPE${SEDeB}RETSIGTYPE${SEDeC}void${SEDeD}
  92. ${SEDdA}HAVE_UNISTD_H${SEDdB}HAVE_UNISTD_H${SEDdC}1${SEDdD}
  93. ${SEDuA}HAVE_UNISTD_H${SEDuB}HAVE_UNISTD_H${SEDuC}1${SEDuD}
  94. ${SEDeA}HAVE_UNISTD_H${SEDeB}HAVE_UNISTD_H${SEDeC}1${SEDeD}
  95. CONFEOF
  96. cat >> conftest.sed <<CONFEOF
  97. ${SEDdA}HAVE_STRING_H${SEDdB}HAVE_STRING_H${SEDdC}1${SEDdD}
  98. ${SEDuA}HAVE_STRING_H${SEDuB}HAVE_STRING_H${SEDuC}1${SEDuD}
  99. ${SEDeA}HAVE_STRING_H${SEDeB}HAVE_STRING_H${SEDeC}1${SEDeD}
  100. ${SEDdA}HAVE_FCNTL_H${SEDdB}HAVE_FCNTL_H${SEDdC}1${SEDdD}
  101. ${SEDuA}HAVE_FCNTL_H${SEDuB}HAVE_FCNTL_H${SEDuC}1${SEDuD}
  102. ${SEDeA}HAVE_FCNTL_H${SEDeB}HAVE_FCNTL_H${SEDeC}1${SEDeD}
  103. ${SEDdA}HAVE_PATHCONF${SEDdB}HAVE_PATHCONF${SEDdC}1${SEDdD}
  104. ${SEDuA}HAVE_PATHCONF${SEDuB}HAVE_PATHCONF${SEDuC}1${SEDuD}
  105. ${SEDeA}HAVE_PATHCONF${SEDeB}HAVE_PATHCONF${SEDeC}1${SEDeD}
  106. CONFEOF
  107. cat >> conftest.sed <<CONFEOF
  108. ${SEDdA}HAVE_STRERROR${SEDdB}HAVE_STRERROR${SEDdC}1${SEDdD}
  109. ${SEDuA}HAVE_STRERROR${SEDuB}HAVE_STRERROR${SEDuC}1${SEDuD}
  110. ${SEDeA}HAVE_STRERROR${SEDeB}HAVE_STRERROR${SEDeC}1${SEDeD}
  111. ${SEDdA}HAVE_LONG_FILE_NAMES${SEDdB}HAVE_LONG_FILE_NAMES${SEDdC}1${SEDdD}
  112. ${SEDuA}HAVE_LONG_FILE_NAMES${SEDuB}HAVE_LONG_FILE_NAMES${SEDuC}1${SEDuD}
  113. ${SEDeA}HAVE_LONG_FILE_NAMES${SEDeB}HAVE_LONG_FILE_NAMES${SEDeC}1${SEDeD}
  114.  
  115. CONFEOF
  116. # This sed command replaces #undef's with comments.  This is necessary, for
  117. # example, in the case of _POSIX_SOURCE, which is predefined and required
  118. # on some systems where configure will not decide to define it in
  119. # config.h.
  120. cat >> conftest.sed <<\CONFEOF
  121. s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  122. CONFEOF
  123. rm -f conftest.h
  124. # Break up the sed commands because old seds have small limits.
  125. maxsedlines=20
  126. cp $top_srcdir/$gen_config.in conftest.h1
  127. while :
  128. do
  129.   lines=`grep -c . conftest.sed`
  130.   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  131.   rm -f conftest.s1 conftest.s2 conftest.h2
  132.   sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  133.   sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  134.   sed -f conftest.s1 < conftest.h1 > conftest.h2
  135.   rm -f conftest.s1 conftest.h1 conftest.sed
  136.   mv conftest.h2 conftest.h1
  137.   mv conftest.s2 conftest.sed
  138. done
  139. rm -f conftest.sed conftest.h
  140. echo "/* $gen_config.  Generated automatically by configure.  */" > conftest.h
  141. cat conftest.h1 >> conftest.h
  142. rm -f conftest.h1
  143. if cmp -s $gen_config conftest.h 2>/dev/null; then
  144.   # The file exists and we would not be changing it.
  145.   rm -f conftest.h
  146. else
  147.   rm -f $gen_config
  148.   mv conftest.h $gen_config
  149. fi
  150.  
  151.  
  152. exit 0
  153.