home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / TCL / BLT / _BLT.TAR / usr / lib / blt / applications / extloader / config.status next >
Encoding:
Text File  |  1994-04-22  |  5.7 KB  |  181 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 grenache:
  6. #
  7. # configure -v -prefix=/opt/cellar/deli/blt
  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} configure -v -prefix=/opt/cellar/deli/blt
  14.     exec ${CONFIG_SHELL-/bin/sh} configure -v -prefix=/opt/cellar/deli/blt ;;
  15.     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  16.   esac
  17. done
  18.  
  19. trap 'rm -fr Makefile extConfig.h conftest*; exit 1' 1 3 15
  20. CC='cc'
  21. CPP='cc -E'
  22. CDEBUGFLAGS='-O'
  23. prefix='/opt/cellar/deli/blt'
  24. INSTALL='/bin/install -c'
  25. INSTALL_PROGRAM='$(INSTALL)'
  26. INSTALL_DATA='$(INSTALL) -m 644'
  27. XINCSW='-I/usr/X11/include'
  28. XLIBSW='-L/usr/X11/lib'
  29. XLIBDIR='/usr/X11/lib'
  30. TCLINCSW='-I/opt/cellar/tcl/tcl7.3/include'
  31. TCLLIBSW='-L/opt/cellar/tcl/tcl7.3/lib'
  32. TCLLIBDIR='/opt/cellar/tcl/tcl7.3/lib'
  33. TKINCSW='-I/opt/cellar/tk/tk3.6/include'
  34. TKLIBSW='-L/opt/cellar/tk/tk3.6/lib'
  35. TKLIBDIR='/opt/cellar/tk/tk3.6/lib'
  36. uname_found='1'
  37. SHLIB_CCFLAGS=''
  38. SHLIB_LDFLAGS=''
  39. SHLIB_LOADER=''
  40. SHLIB_SUFFIX=''
  41. LIBS=' -lnsl -lm -ldl'
  42. DESTDIR='/opt/cellar/deli/blt'
  43. BINDIR='/opt/cellar/deli/blt/bin'
  44. MANDIR='/opt/cellar/deli/blt/man'
  45. srcdir='.'
  46. prefix='/opt/cellar/deli/blt'
  47. exec_prefix='${prefix}'
  48. prsub='s%^prefix\([     ]*\)=\([     ]*\).*$%prefix\1=\2/opt/cellar/deli/blt%
  49. s%^exec_prefix\([     ]*\)=\([     ]*\).*$%exec_prefix\1=\2${prefix}%'
  50. extrasub=''
  51.  
  52. top_srcdir=$srcdir
  53.  
  54. CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  55. for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
  56.   srcdir=$top_srcdir
  57.   # Remove last slash and all that follows it.  Not all systems have dirname.
  58.   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  59.   if test "$dir" != "$file"; then
  60.     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  61.     test ! -d $dir && mkdir $dir
  62.   fi
  63.   echo creating $file
  64.   rm -f $file
  65.   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  66.   sed -e "
  67. $prsub
  68. $extrasub
  69. s%@CC@%$CC%g
  70. s%@CPP@%$CPP%g
  71. s%@CDEBUGFLAGS@%$CDEBUGFLAGS%g
  72. s%@prefix@%$prefix%g
  73. s%@INSTALL@%$INSTALL%g
  74. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  75. s%@INSTALL_DATA@%$INSTALL_DATA%g
  76. s%@XINCSW@%$XINCSW%g
  77. s%@XLIBSW@%$XLIBSW%g
  78. s%@XLIBDIR@%$XLIBDIR%g
  79. s%@TCLINCSW@%$TCLINCSW%g
  80. s%@TCLLIBSW@%$TCLLIBSW%g
  81. s%@TCLLIBDIR@%$TCLLIBDIR%g
  82. s%@TKINCSW@%$TKINCSW%g
  83. s%@TKLIBSW@%$TKLIBSW%g
  84. s%@TKLIBDIR@%$TKLIBDIR%g
  85. s%@uname_found@%$uname_found%g
  86. s%@SHLIB_CCFLAGS@%$SHLIB_CCFLAGS%g
  87. s%@SHLIB_LDFLAGS@%$SHLIB_LDFLAGS%g
  88. s%@SHLIB_LOADER@%$SHLIB_LOADER%g
  89. s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
  90. s%@LIBS@%$LIBS%g
  91. s%@DESTDIR@%$DESTDIR%g
  92. s%@BINDIR@%$BINDIR%g
  93. s%@MANDIR@%$MANDIR%g
  94. s%@srcdir@%$srcdir%g
  95. s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
  96. fi; done
  97.  
  98. CONFIG_HEADERS=${CONFIG_HEADERS-"extConfig.h"}
  99. for file in .. ${CONFIG_HEADERS}; do if test "x$file" != x..; then
  100. echo creating $file
  101.  
  102. # These sed commands are put into SEDDEFS when defining a macro.
  103. # They are broken into pieces to make the sed script easier to manage.
  104. # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  105. # is the cpp macro being defined and VALUE is the value it is being given.
  106. # Each defining turns into a single global substitution command.
  107. #
  108. # SEDd sets the value in "#define NAME VALUE" lines.
  109. SEDdA='s@^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  110. SEDdB='\([     ][     ]*\)[^     ]*@\1#\2'
  111. SEDdC='\3'
  112. SEDdD='@g'
  113. # SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  114. SEDuA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  115. SEDuB='\([     ]\)@\1#\2define\3'
  116. SEDuC=' '
  117. SEDuD='\4@g'
  118. # SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  119. SEDeA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  120. SEDeB='$@\1#\2define\3'
  121. SEDeC=' '
  122. SEDeD='@g'
  123. rm -f conftest.sed
  124. cat >> conftest.sed <<CONFEOF
  125. ${SEDdA}HAVE_STDLIB_H${SEDdB}HAVE_STDLIB_H${SEDdC}1${SEDdD}
  126. ${SEDuA}HAVE_STDLIB_H${SEDuB}HAVE_STDLIB_H${SEDuC}1${SEDuD}
  127. ${SEDeA}HAVE_STDLIB_H${SEDeB}HAVE_STDLIB_H${SEDeC}1${SEDeD}
  128. ${SEDdA}HAVE_STRING_H${SEDdB}HAVE_STRING_H${SEDdC}1${SEDdD}
  129. ${SEDuA}HAVE_STRING_H${SEDuB}HAVE_STRING_H${SEDuC}1${SEDuD}
  130. ${SEDeA}HAVE_STRING_H${SEDeB}HAVE_STRING_H${SEDeC}1${SEDeD}
  131. ${SEDdA}HAVE_ERRNO_H${SEDdB}HAVE_ERRNO_H${SEDdC}1${SEDdD}
  132. ${SEDuA}HAVE_ERRNO_H${SEDuB}HAVE_ERRNO_H${SEDuC}1${SEDuD}
  133. ${SEDeA}HAVE_ERRNO_H${SEDeB}HAVE_ERRNO_H${SEDeC}1${SEDeD}
  134. CONFEOF
  135. cat >> conftest.sed <<CONFEOF
  136. ${SEDdA}HAVE_DLFCN_H${SEDdB}HAVE_DLFCN_H${SEDdC}1${SEDdD}
  137. ${SEDuA}HAVE_DLFCN_H${SEDuB}HAVE_DLFCN_H${SEDuC}1${SEDuD}
  138. ${SEDeA}HAVE_DLFCN_H${SEDeB}HAVE_DLFCN_H${SEDeC}1${SEDeD}
  139.  
  140. CONFEOF
  141. # This sed command replaces #undef's with comments.  This is necessary, for
  142. # example, in the case of _POSIX_SOURCE, which is predefined and required
  143. # on some systems where configure will not decide to define it in
  144. # extConfig.h.
  145. cat >> conftest.sed <<\CONFEOF
  146. s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  147. CONFEOF
  148. rm -f conftest.h
  149. # Break up the sed commands because old seds have small limits.
  150. maxsedlines=20
  151. cp $top_srcdir/$file.in conftest.h1
  152. while :
  153. do
  154.   lines=`grep -c . conftest.sed`
  155.   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  156.   rm -f conftest.s1 conftest.s2 conftest.h2
  157.   sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  158.   sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  159.   sed -f conftest.s1 < conftest.h1 > conftest.h2
  160.   rm -f conftest.s1 conftest.h1 conftest.sed
  161.   mv conftest.h2 conftest.h1
  162.   mv conftest.s2 conftest.sed
  163. done
  164. rm -f conftest.sed conftest.h
  165. echo "/* $file.  Generated automatically by configure.  */" > conftest.h
  166. cat conftest.h1 >> conftest.h
  167. rm -f conftest.h1
  168. if cmp -s $file conftest.h 2>/dev/null; then
  169.   # The file exists and we would not be changing it.
  170.   echo "$file is unchanged"
  171.   rm -f conftest.h
  172. else
  173.   rm -f $file
  174.   mv conftest.h $file
  175. fi
  176. fi; done
  177.  
  178.  
  179.  
  180. exit 0
  181.