home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / useful / dist / gnu / shellutils / build / config.status < prev    next >
Encoding:
Text File  |  1993-12-14  |  8.1 KB  |  219 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. # /Scratch/shellutils/shellutils-1.9.2-amiga/configure/ amigados
  8.  
  9. for arg
  10. do
  11.   case "$arg" in
  12.     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13.     echo running ${CONFIG_SHELL-/bin/sh} /Scratch/shellutils/shellutils-1.9.2-amiga/configure/ amigados
  14.     exec ${CONFIG_SHELL-/bin/sh} /Scratch/shellutils/shellutils-1.9.2-amiga/configure/ amigados ;;
  15.     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  16.   esac
  17. done
  18.  
  19. trap 'rm -fr Makefile lib/Makefile src/Makefile man/Makefile config.h conftest*; exit 1' 1 3 15
  20. PROGS=' nice'
  21. MAN=' nice.1'
  22. CC='gcc'
  23. CFLAGS='-O'
  24. LDFLAGS='-g'
  25. CPP='/lib/gcc-lib/amigados/2.3.3/cpp'
  26. INSTALL='/bin/ginstall'
  27. INSTALL_PROGRAM='$(INSTALL)'
  28. INSTALL_DATA='$(INSTALL)'
  29. RANLIB='ranlib'
  30. YACC='bison -y'
  31. LIBOBJS=' getusershell.o stime.o'
  32. ALLOCA=''
  33. LIBS=''
  34. srcdir='/Scratch/shellutils/shellutils-1.9.2-amiga'
  35. prefix=''
  36. exec_prefix=''
  37. prsub=''
  38. extrasub=''
  39.  
  40. top_srcdir=$srcdir
  41.  
  42. CONFIG_FILES=${CONFIG_FILES-"Makefile lib/Makefile src/Makefile man/Makefile"}
  43. for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
  44.   srcdir=$top_srcdir
  45.   # Remove last slash and all that follows it.  Not all systems have dirname.
  46.   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  47.   if test "$dir" != "$file"; then
  48.     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  49.     test ! -d "$dir" && mkdir "$dir"
  50.   fi
  51.   echo creating "$file"
  52.   rm -f "$file"
  53.   comment_str="Generated automatically from `echo $file|sed 's|.*/||'`.in by configure."
  54.   case "$file" in
  55.     *.c | *.h | *.C | *.cc | *.m )  echo "/* $comment_str */" > "$file" ;;
  56.     * )          echo "# $comment_str"     > "$file" ;;
  57.   esac
  58.   sed -e "
  59. $prsub
  60. $extrasub
  61. s%@PROGS@%$PROGS%g
  62. s%@MAN@%$MAN%g
  63. s%@CC@%$CC%g
  64. s%@CFLAGS@%$CFLAGS%g
  65. s%@LDFLAGS@%$LDFLAGS%g
  66. s%@CPP@%$CPP%g
  67. s%@INSTALL@%$INSTALL%g
  68. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  69. s%@INSTALL_DATA@%$INSTALL_DATA%g
  70. s%@RANLIB@%$RANLIB%g
  71. s%@YACC@%$YACC%g
  72. s%@LIBOBJS@%$LIBOBJS%g
  73. s%@ALLOCA@%$ALLOCA%g
  74. s%@LIBS@%$LIBS%g
  75. s%@srcdir@%$srcdir%g
  76. s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
  77. fi; done
  78.  
  79. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  80. for file in .. ${CONFIG_HEADERS}; do if test "x$file" != x..; then
  81. echo creating $file
  82.  
  83. # These sed commands are put into SEDDEFS when defining a macro.
  84. # They are broken into pieces to make the sed script easier to manage.
  85. # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  86. # is the cpp macro being defined and VALUE is the value it is being given.
  87. # Each defining turns into a single global substitution command.
  88. # Hopefully no one uses "!" as a variable value.
  89. # Other candidates for the sed separators, like , and @, do get used.
  90. #
  91. # SEDd sets the value in "#define NAME VALUE" lines.
  92. SEDdA='s!^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  93. SEDdB='\([     ][     ]*\)[^     ]*!\1#\2'
  94. SEDdC='\3'
  95. SEDdD='!g'
  96. # SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  97. SEDuA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  98. SEDuB='\([     ]\)!\1#\2define\3'
  99. SEDuC=' '
  100. SEDuD='\4!g'
  101. # SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  102. SEDeA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  103. SEDeB='$!\1#\2define\3'
  104. SEDeC=' '
  105. SEDeD='!g'
  106. rm -f conftest.sed
  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_FTIME${SEDdB}HAVE_FTIME${SEDdC}1${SEDdD}
  112. ${SEDuA}HAVE_FTIME${SEDuB}HAVE_FTIME${SEDuC}1${SEDuD}
  113. ${SEDeA}HAVE_FTIME${SEDeB}HAVE_FTIME${SEDeC}1${SEDeD}
  114. ${SEDdA}HAVE_MEMCPY${SEDdB}HAVE_MEMCPY${SEDdC}1${SEDdD}
  115. ${SEDuA}HAVE_MEMCPY${SEDuB}HAVE_MEMCPY${SEDuC}1${SEDuD}
  116. ${SEDeA}HAVE_MEMCPY${SEDeB}HAVE_MEMCPY${SEDeC}1${SEDeD}
  117. CONFEOF
  118. cat >> conftest.sed <<CONFEOF
  119. ${SEDdA}HAVE_BCOPY${SEDdB}HAVE_BCOPY${SEDdC}1${SEDdD}
  120. ${SEDuA}HAVE_BCOPY${SEDuB}HAVE_BCOPY${SEDuC}1${SEDuD}
  121. ${SEDeA}HAVE_BCOPY${SEDeB}HAVE_BCOPY${SEDeC}1${SEDeD}
  122. ${SEDdA}HAVE_GETTIMEOFDAY${SEDdB}HAVE_GETTIMEOFDAY${SEDdC}1${SEDdD}
  123. ${SEDuA}HAVE_GETTIMEOFDAY${SEDuB}HAVE_GETTIMEOFDAY${SEDuC}1${SEDuD}
  124. ${SEDeA}HAVE_GETTIMEOFDAY${SEDeB}HAVE_GETTIMEOFDAY${SEDeC}1${SEDeD}
  125. ${SEDdA}HAVE_INITGROUPS${SEDdB}HAVE_INITGROUPS${SEDdC}1${SEDdD}
  126. ${SEDuA}HAVE_INITGROUPS${SEDuB}HAVE_INITGROUPS${SEDuC}1${SEDuD}
  127. ${SEDeA}HAVE_INITGROUPS${SEDeB}HAVE_INITGROUPS${SEDeC}1${SEDeD}
  128. CONFEOF
  129. cat >> conftest.sed <<CONFEOF
  130. ${SEDdA}HAVE_STRING_H${SEDdB}HAVE_STRING_H${SEDdC}1${SEDdD}
  131. ${SEDuA}HAVE_STRING_H${SEDuB}HAVE_STRING_H${SEDuC}1${SEDuD}
  132. ${SEDeA}HAVE_STRING_H${SEDeB}HAVE_STRING_H${SEDeC}1${SEDeD}
  133. ${SEDdA}HAVE_FCNTL_H${SEDdB}HAVE_FCNTL_H${SEDdC}1${SEDdD}
  134. ${SEDuA}HAVE_FCNTL_H${SEDuB}HAVE_FCNTL_H${SEDuC}1${SEDuD}
  135. ${SEDeA}HAVE_FCNTL_H${SEDeB}HAVE_FCNTL_H${SEDeC}1${SEDeD}
  136. ${SEDdA}HAVE_LIMITS_H${SEDdB}HAVE_LIMITS_H${SEDdC}1${SEDdD}
  137. ${SEDuA}HAVE_LIMITS_H${SEDuB}HAVE_LIMITS_H${SEDuC}1${SEDuD}
  138. ${SEDeA}HAVE_LIMITS_H${SEDeB}HAVE_LIMITS_H${SEDeC}1${SEDeD}
  139. CONFEOF
  140. cat >> conftest.sed <<CONFEOF
  141. ${SEDdA}HAVE_SYS_TIME_H${SEDdB}HAVE_SYS_TIME_H${SEDdC}1${SEDdD}
  142. ${SEDuA}HAVE_SYS_TIME_H${SEDuB}HAVE_SYS_TIME_H${SEDuC}1${SEDuD}
  143. ${SEDeA}HAVE_SYS_TIME_H${SEDeB}HAVE_SYS_TIME_H${SEDeC}1${SEDeD}
  144. ${SEDdA}HAVE_UNISTD_H${SEDdB}HAVE_UNISTD_H${SEDdC}1${SEDdD}
  145. ${SEDuA}HAVE_UNISTD_H${SEDuB}HAVE_UNISTD_H${SEDuC}1${SEDuD}
  146. ${SEDeA}HAVE_UNISTD_H${SEDeB}HAVE_UNISTD_H${SEDeC}1${SEDeD}
  147. ${SEDdA}HAVE_SYS_TIMEB_H${SEDdB}HAVE_SYS_TIMEB_H${SEDdC}1${SEDdD}
  148. ${SEDuA}HAVE_SYS_TIMEB_H${SEDuB}HAVE_SYS_TIMEB_H${SEDuC}1${SEDuD}
  149. ${SEDeA}HAVE_SYS_TIMEB_H${SEDeB}HAVE_SYS_TIMEB_H${SEDeC}1${SEDeD}
  150. CONFEOF
  151. cat >> conftest.sed <<CONFEOF
  152. ${SEDdA}GETGROUPS_T${SEDdB}GETGROUPS_T${SEDdC}int${SEDdD}
  153. ${SEDuA}GETGROUPS_T${SEDuB}GETGROUPS_T${SEDuC}int${SEDuD}
  154. ${SEDeA}GETGROUPS_T${SEDeB}GETGROUPS_T${SEDeC}int${SEDeD}
  155. ${SEDdA}HAVE_UT_HOST${SEDdB}HAVE_UT_HOST${SEDdC}1${SEDdD}
  156. ${SEDuA}HAVE_UT_HOST${SEDuB}HAVE_UT_HOST${SEDuC}1${SEDuD}
  157. ${SEDeA}HAVE_UT_HOST${SEDeB}HAVE_UT_HOST${SEDeC}1${SEDeD}
  158. ${SEDdA}GWINSZ_IN_SYS_IOCTL${SEDdB}GWINSZ_IN_SYS_IOCTL${SEDdC}1${SEDdD}
  159. ${SEDuA}GWINSZ_IN_SYS_IOCTL${SEDuB}GWINSZ_IN_SYS_IOCTL${SEDuC}1${SEDuD}
  160. ${SEDeA}GWINSZ_IN_SYS_IOCTL${SEDeB}GWINSZ_IN_SYS_IOCTL${SEDeC}1${SEDeD}
  161. CONFEOF
  162. cat >> conftest.sed <<CONFEOF
  163. ${SEDdA}HAVE_VPRINTF${SEDdB}HAVE_VPRINTF${SEDdC}1${SEDdD}
  164. ${SEDuA}HAVE_VPRINTF${SEDuB}HAVE_VPRINTF${SEDuC}1${SEDuD}
  165. ${SEDeA}HAVE_VPRINTF${SEDeB}HAVE_VPRINTF${SEDeC}1${SEDeD}
  166. ${SEDdA}TIME_WITH_SYS_TIME${SEDdB}TIME_WITH_SYS_TIME${SEDdC}1${SEDdD}
  167. ${SEDuA}TIME_WITH_SYS_TIME${SEDuB}TIME_WITH_SYS_TIME${SEDuC}1${SEDuD}
  168. ${SEDeA}TIME_WITH_SYS_TIME${SEDeB}TIME_WITH_SYS_TIME${SEDeC}1${SEDeD}
  169. ${SEDdA}HAVE_TM_ZONE${SEDdB}HAVE_TM_ZONE${SEDdC}1${SEDdD}
  170. ${SEDuA}HAVE_TM_ZONE${SEDuB}HAVE_TM_ZONE${SEDuC}1${SEDuD}
  171. ${SEDeA}HAVE_TM_ZONE${SEDeB}HAVE_TM_ZONE${SEDeC}1${SEDeD}
  172. CONFEOF
  173. cat >> conftest.sed <<CONFEOF
  174. ${SEDdA}DIRENT${SEDdB}DIRENT${SEDdC}1${SEDdD}
  175. ${SEDuA}DIRENT${SEDuB}DIRENT${SEDuC}1${SEDuD}
  176. ${SEDeA}DIRENT${SEDeB}DIRENT${SEDeC}1${SEDeD}
  177.  
  178. CONFEOF
  179. # This sed command replaces #undef's with comments.  This is necessary, for
  180. # example, in the case of _POSIX_SOURCE, which is predefined and required
  181. # on some systems where configure will not decide to define it in
  182. # config.h.
  183. cat >> conftest.sed <<\CONFEOF
  184. s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  185. CONFEOF
  186. rm -f conftest.h
  187. # Break up the sed commands because old seds have small limits.
  188. maxsedlines=20
  189. cp $top_srcdir/$file.in conftest.h1
  190. while :
  191. do
  192.   lines=`grep -c . conftest.sed`
  193.   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  194.   rm -f conftest.s1 conftest.s2 conftest.h2
  195.   sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  196.   sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  197.   sed -f conftest.s1 < conftest.h1 > conftest.h2
  198.   rm -f conftest.s1 conftest.h1 conftest.sed
  199.   mv conftest.h2 conftest.h1
  200.   mv conftest.s2 conftest.sed
  201. done
  202. rm -f conftest.sed conftest.h
  203. echo "/* $file.  Generated automatically by configure.  */" > conftest.h
  204. cat conftest.h1 >> conftest.h
  205. rm -f conftest.h1
  206. if cmp -s $file conftest.h 2>/dev/null; then
  207.   # The file exists and we would not be changing it.
  208.   echo "$file is unchanged"
  209.   rm -f conftest.h
  210. else
  211.   rm -f $file
  212.   mv conftest.h $file
  213. fi
  214. fi; done
  215.  
  216.  
  217.  
  218. exit 0
  219.