home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / ash02emx.zip / configure < prev    next >
Text File  |  1997-12-26  |  6KB  |  195 lines

  1. #!sh.exe
  2. # Without the "./", some shells look in PATH for config.status.
  3. set -x
  4. : ${CONFIG_STATUS=./config.status}
  5.  
  6. echo creating $CONFIG_STATUS
  7. rm -f $CONFIG_STATUS
  8. cat > $CONFIG_STATUS <<EOF
  9. #! sh.exe
  10. # Generated automatically by configure.
  11. # Run this file to recreate the current configuration.
  12. # This directory was configured as follows,
  13. EOF
  14. echo ': ${CONFIG_SHELL='"${CONFIG_SHELL}"'}' >> $CONFIG_STATUS
  15. cat >> $CONFIG_STATUS <<EOF
  16. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17. #
  18. # $0 $ac_configure_args
  19. #
  20. # Compiler output produced by configure, useful for debugging
  21. # configure, is in ./config.log if it exists.
  22.  
  23. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  24. for ac_option
  25. do
  26.   case "\$ac_option" in
  27.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  28.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  29.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  30.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  31.     echo "$CONFIG_STATUS generated by autoconf version 2.12"
  32.     exit 0 ;;
  33.   -help | --help | --hel | --he | --h)
  34.     echo "\$ac_cs_usage"; exit 0 ;;
  35.   *) echo "\$ac_cs_usage"; exit 1 ;;
  36.   esac
  37. done
  38.  
  39. ac_given_srcdir=$srcdir
  40. ac_given_INSTALL="$INSTALL"
  41.  
  42. trap 'rm -fr `echo "Makefile testsuite/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  43. EOF
  44. cat >> $CONFIG_STATUS <<EOF
  45.  
  46. # Protect against being on the right side of a sed subst in config.status.
  47. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  48.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  49. $ac_vpsub
  50. $extrasub
  51. s,/bin/sh,sh.exe,g
  52. s%@CFLAGS@%$CFLAGS%g
  53. s%@CPPFLAGS@%$CPPFLAGS%g
  54. s%@CXXFLAGS@%$CXXFLAGS%g
  55. s%@DEFS@%$DEFS%g
  56. s%@LDFLAGS@%$LDFLAGS%g
  57. s%@LIBS@%$LIBS%g
  58. s%@exec_prefix@%$exec_prefix%g
  59. s%@prefix@%$prefix%g
  60. s%@program_transform_name@%$program_transform_name%g
  61. s%@bindir@%$bindir%g
  62. s%@sbindir@%$sbindir%g
  63. s%@libexecdir@%$libexecdir%g
  64. s%@datadir@%$datadir%g
  65. s%@sysconfdir@%$sysconfdir%g
  66. s%@sharedstatedir@%$sharedstatedir%g
  67. s%@localstatedir@%$localstatedir%g
  68. s%@libdir@%$libdir%g
  69. s%@includedir@%$includedir%g
  70. s%@oldincludedir@%$oldincludedir%g
  71. s%@infodir@%$infodir%g
  72. s%@mandir@%$mandir%g
  73. s%@M4@%$M4%g
  74. s%@AWK@%$AWK%g
  75. s%@PERL@%$PERL%g
  76. s%@SCRIPTS@%$SCRIPTS%g
  77. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  78. s%@INSTALL_DATA@%$INSTALL_DATA%g
  79. s%@standards_info@%$standards_info%g
  80. s%@standards_dvi@%$standards_dvi%g
  81.  
  82. CEOF
  83. EOF
  84.  
  85. cat >> $CONFIG_STATUS <<\EOF
  86.  
  87. # Split the substitutions into bite-sized pieces for seds with
  88. # small command number limits, like on Digital OSF/1 and HP-UX.
  89. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  90. ac_file=1 # Number of current file.
  91. ac_beg=1 # First line for current file.
  92. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  93. ac_more_lines=:
  94. ac_sed_cmds=""
  95. while $ac_more_lines; do
  96.   if test $ac_beg -gt 1; then
  97.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  98.   else
  99.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  100.   fi
  101.   if test ! -s conftest.s$ac_file; then
  102.     ac_more_lines=false
  103.     rm -f conftest.s$ac_file
  104.   else
  105.     if test -z "$ac_sed_cmds"; then
  106.       ac_sed_cmds="sed -f conftest.s$ac_file"
  107.     else
  108.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  109.     fi
  110.     ac_file=`expr $ac_file + 1`
  111.     ac_beg=$ac_end
  112.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  113.   fi
  114. done
  115. if test -z "$ac_sed_cmds"; then
  116.   ac_sed_cmds=cat
  117. fi
  118. EOF
  119.  
  120. cat >> $CONFIG_STATUS <<EOF
  121.  
  122. CONFIG_FILES=\${CONFIG_FILES-"Makefile testsuite/Makefile"}
  123. EOF
  124. cat >> $CONFIG_STATUS <<\EOF
  125. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  126.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  127.   case "$ac_file" in
  128.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  129.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  130.   *) ac_file_in="${ac_file}.in" ;;
  131.   esac
  132.  
  133.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  134.  
  135.   # Remove last slash and all that follows it.  Not all systems have dirname.
  136.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  137.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  138.     # The file is in a subdirectory.
  139.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  140.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  141.     # A "../" for each directory in $ac_dir_suffix.
  142.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  143.   else
  144.     ac_dir_suffix= ac_dots=
  145.   fi
  146.  
  147.   case "$ac_given_srcdir" in
  148.   .)  srcdir=.
  149.       if test -z "$ac_dots"; then top_srcdir=.
  150.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  151.   /*|[A-Za-z]:*)
  152.       srcdir="$ac_given_srcdir$ac_dir_suffix";
  153.       top_srcdir="$ac_given_srcdir" ;;
  154.   *) # Relative path.
  155.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  156.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  157.   esac
  158.  
  159.   case "$ac_given_INSTALL" in
  160.   [/$]*|[A-Za-z]:* ) INSTALL="$ac_given_INSTALL" ;;
  161.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  162.   esac
  163.  
  164.   echo creating "$ac_file"
  165.   rm -f "$ac_file"
  166.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  167.   case "$ac_file" in
  168.   *Makefile*) ac_comsub="1i\\
  169. # $configure_input" ;;
  170.   *) ac_comsub= ;;
  171.   esac
  172.  
  173.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  174.   sed -e "$ac_comsub
  175. s%@configure_input@%$configure_input%g
  176. s%@srcdir@%$srcdir%g
  177. s%@top_srcdir@%$top_srcdir%g
  178. s%@INSTALL@%$INSTALL%g
  179. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  180. fi; done
  181. rm -f conftest.s*
  182.  
  183. EOF
  184. cat >> $CONFIG_STATUS <<EOF
  185.  
  186. EOF
  187. cat >> $CONFIG_STATUS <<\EOF
  188.  
  189. exit 0
  190. EOF
  191. chmod +x $CONFIG_STATUS
  192. rm -fr confdefs* $ac_clean_files
  193. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  194.  
  195.