home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d8xx / d821 / diff.lha / Diff / Diff-2.1.lha / diff-2.1 / configure < prev    next >
Encoding:
Text File  |  1993-02-01  |  15.9 KB  |  615 lines

  1. #!/bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf.
  4. # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  5.  
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10.  
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15.  
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp] [--no-create]
  21. #        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE] [TARGET]
  22. # Ignores all args except --srcdir, --prefix, --exec-prefix, --no-create, and
  23. # --with-PACKAGE unless this script has special code to handle it.
  24.  
  25.  
  26. for arg
  27. do
  28.   # Handle --exec-prefix with a space before the argument.
  29.   if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  30.   # Handle --host with a space before the argument.
  31.   elif test x$next_host = xyes; then next_host=
  32.   # Handle --prefix with a space before the argument.
  33.   elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  34.   # Handle --srcdir with a space before the argument.
  35.   elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  36.   else
  37.     case $arg in
  38.      # For backward compatibility, also recognize exact --exec_prefix.
  39.      -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  40.     exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  41.      -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  42.     next_exec_prefix=yes ;;
  43.  
  44.      -gas | --gas | --ga | --g) ;;
  45.  
  46.      -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  47.      -host | --host | --hos | --ho | --h)
  48.     next_host=yes ;;
  49.  
  50.      -nfp | --nfp | --nf) ;;
  51.  
  52.      -no-create | --no-create | --no-creat | --no-crea | --no-cre | --no-cr | --no-c | --no- | --no)
  53.         no_create=1 ;;
  54.  
  55.      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  56.     prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  57.      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  58.     next_prefix=yes ;;
  59.  
  60.      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  61.     srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  62.      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  63.     next_srcdir=yes ;;
  64.  
  65.      -with-* | --with-*)
  66.        package=`echo $arg|sed 's/-*with-//'`
  67.        # Delete all the valid chars; see if any are left.
  68.        if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then
  69.          echo "configure: $package: invalid package name" >&2; exit 1
  70.        fi
  71.        eval "with_`echo $package|sed s/-/_/g`=1" ;;
  72.  
  73.      *) ;;
  74.     esac
  75.   fi
  76. done
  77.  
  78. trap 'rm -f conftest* core; exit 1' 1 3 15
  79.  
  80. rm -f conftest*
  81. compile='${CC-cc} $CFLAGS $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  82.  
  83. # A filename unique to this package, relative to the directory that
  84. # configure is in, which we can look for to find out if srcdir is correct.
  85. unique_file=diff.h
  86.  
  87. # Find the source files, if location was not specified.
  88. if test -z "$srcdir"; then
  89.   srcdirdefaulted=yes
  90.   # Try the directory containing this script, then `..'.
  91.   prog=$0
  92.   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  93.   test "X$confdir" = "X$prog" && confdir=.
  94.   srcdir=$confdir
  95.   if test ! -r $srcdir/$unique_file; then
  96.     srcdir=..
  97.   fi
  98. fi
  99. if test ! -r $srcdir/$unique_file; then
  100.   if test x$srcdirdefaulted = xyes; then
  101.     echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  102.   else
  103.     echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  104.   fi
  105.   exit 1
  106. fi
  107. # Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  108. # But we can't avoid them for `..', to make subdirectories work.
  109. case $srcdir in
  110.   .|/*|~*) ;;
  111.   *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  112. esac
  113.  
  114. if test -z "$CC"; then
  115.   echo checking for gcc
  116.   saveifs="$IFS"; IFS="${IFS}:"
  117.   for dir in $PATH; do
  118.     test -z "$dir" && dir=.
  119.     if test -f $dir/gcc; then
  120.       CC="gcc"
  121.       break
  122.     fi
  123.   done
  124.   IFS="$saveifs"
  125. fi
  126. test -z "$CC" && CC="cc"
  127.  
  128. # Find out if we are using GNU C, under whatever name.
  129. cat > conftest.c <<EOF
  130. #ifdef __GNUC__
  131.   yes
  132. #endif
  133. EOF
  134. ${CC-cc} -E conftest.c > conftest.out 2>&1
  135. if egrep yes conftest.out >/dev/null 2>&1; then
  136.   GCC=1 # For later tests.
  137. fi
  138. rm -f conftest*
  139.  
  140. echo checking how to run the C preprocessor
  141. if test -z "$CPP"; then
  142.   CPP='${CC-cc} -E'
  143.   cat > conftest.c <<EOF
  144. #include <stdio.h>
  145. EOF
  146. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  147. if test -z "$err"; then
  148.   :
  149. else
  150.   CPP=/lib/cpp
  151. fi
  152. rm -f conftest*
  153. fi
  154.  
  155. # Make sure to not get the incompatible SysV /etc/install and
  156. # /usr/sbin/install, which might be in PATH before a BSD-like install,
  157. # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  158. # or the AFS install, which mishandles nonexistent args.  (Sigh.)
  159. if test -z "$INSTALL"; then
  160.   echo checking for install
  161.   saveifs="$IFS"; IFS="${IFS}:"
  162.   for dir in $PATH; do
  163.     test -z "$dir" && dir=.
  164.     case $dir in
  165.     /etc|/usr/sbin|/usr/etc|/usr/afsws/bin) ;;
  166.     *)
  167.       if test -f $dir/install; then
  168.     if grep dspmsg $dir/install >/dev/null 2>&1; then
  169.       : # AIX
  170.     else
  171.       INSTALL="$dir/install -c"
  172.       INSTALL_PROGRAM='$(INSTALL)'
  173.       INSTALL_DATA='$(INSTALL) -m 644'
  174.       break
  175.     fi
  176.       fi
  177.       ;;
  178.     esac
  179.   done
  180.   IFS="$saveifs"
  181. fi
  182. INSTALL=${INSTALL-cp}
  183. INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  184. INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  185.  
  186. echo checking for minix/config.h
  187. cat > conftest.c <<EOF
  188. #include <minix/config.h>
  189. EOF
  190. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  191. if test -z "$err"; then
  192.   MINIX=1
  193. fi
  194. rm -f conftest*
  195.  
  196. # The Minix shell can't assign to the same variable on the same line!
  197. if test -n "$MINIX"; then
  198.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  199.   DEFS="$DEFS -D_POSIX_1_SOURCE=2"
  200.   DEFS="$DEFS -D_MINIX=1"
  201. fi
  202.  
  203. echo checking for POSIXized ISC
  204. if test -d /etc/conf/kconfig.d &&
  205.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  206. then
  207.   ISC=1 # If later tests want to check for ISC.
  208.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  209.   if test -n "$GCC"; then
  210.     CC="$CC -posix"
  211.   else
  212.     CC="$CC -Xp"
  213.   fi
  214. fi
  215.  
  216. echo checking for directory library header
  217. echo checking for dirent.h
  218. cat > conftest.c <<EOF
  219. #include <dirent.h>
  220. EOF
  221. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  222. if test -z "$err"; then
  223.   DEFS="$DEFS -DDIRENT=1" dirheader=dirent.h
  224. fi
  225. rm -f conftest*
  226.  
  227. if test -z "$dirheader"; then
  228. echo checking for sys/ndir.h
  229. cat > conftest.c <<EOF
  230. #include <sys/ndir.h>
  231. EOF
  232. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  233. if test -z "$err"; then
  234.   DEFS="$DEFS -DSYSNDIR=1" dirheader=sys/ndir.h
  235. fi
  236. rm -f conftest*
  237.  
  238. fi
  239. if test -z "$dirheader"; then
  240. echo checking for sys/dir.h
  241. cat > conftest.c <<EOF
  242. #include <sys/dir.h>
  243. EOF
  244. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  245. if test -z "$err"; then
  246.   DEFS="$DEFS -DSYSDIR=1" dirheader=sys/dir.h
  247. fi
  248. rm -f conftest*
  249.  
  250. fi
  251. if test -z "$dirheader"; then
  252. echo checking for ndir.h
  253. cat > conftest.c <<EOF
  254. #include <ndir.h>
  255. EOF
  256. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  257. if test -z "$err"; then
  258.   DEFS="$DEFS -DNDIR=1" dirheader=ndir.h
  259. fi
  260. rm -f conftest*
  261.  
  262. fi
  263.  
  264. echo checking for closedir return value
  265. cat > conftest.c <<EOF
  266. #include <sys/types.h>
  267. #include <$dirheader>
  268. int closedir(); main() { exit(0); }
  269. EOF
  270. eval $compile
  271. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  272.   :
  273. else
  274.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  275. fi
  276. rm -f conftest*
  277.  
  278. echo checking for ANSI C header files
  279. cat > conftest.c <<EOF
  280. #include <stdlib.h>
  281. #include <stdarg.h>
  282. #include <string.h>
  283. #include <float.h>
  284. EOF
  285. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  286. if test -z "$err"; then
  287.   # SunOS string.h does not declare mem*, contrary to ANSI.
  288. echo '#include <string.h>' > conftest.c
  289. eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  290. if egrep "memchr" conftest.out >/dev/null 2>&1; then
  291.   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  292. cat > conftest.c <<EOF
  293. #include <ctype.h>
  294. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  295. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  296. #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  297. int main () { int i; for (i = 0; i < 256; i++)
  298. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  299. exit (0); }
  300.  
  301. EOF
  302. eval $compile
  303. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  304.   DEFS="$DEFS -DSTDC_HEADERS=1"
  305. fi
  306. rm -f conftest*
  307. fi
  308. rm -f conftest*
  309.  
  310. fi
  311. rm -f conftest*
  312.  
  313. echo checking for unistd.h
  314. cat > conftest.c <<EOF
  315. #include <unistd.h>
  316. EOF
  317. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  318. if test -z "$err"; then
  319.   DEFS="$DEFS -DHAVE_UNISTD_H=1"
  320. fi
  321. rm -f conftest*
  322.  
  323. echo checking for pid_t in sys/types.h
  324. echo '#include <sys/types.h>' > conftest.c
  325. eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  326. if egrep "pid_t" conftest.out >/dev/null 2>&1; then
  327.   :
  328. else 
  329.   DEFS="$DEFS -Dpid_t=int"
  330. fi
  331. rm -f conftest*
  332.  
  333. for func in dup2 memchr strerror waitpid
  334. do
  335. trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
  336. echo checking for ${func}
  337. cat > conftest.c <<EOF
  338. #include <stdio.h>
  339. main() { exit(0); } 
  340. t() { 
  341. #ifdef __stub_${func}
  342. choke me
  343. #else
  344. /* Override any gcc2 internal prototype to avoid an error.  */
  345. extern char ${func}(); ${func}();
  346. #endif
  347.  }
  348. EOF
  349. if eval $compile; then
  350.   DEFS="$DEFS -D${trfunc}=1"
  351. fi
  352. rm -f conftest*
  353. #endif
  354. done
  355.  
  356. for hdr in fcntl.h string.h sys/wait.h time.h
  357. do
  358. trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  359. echo checking for ${hdr}
  360. cat > conftest.c <<EOF
  361. #include <${hdr}>
  362. EOF
  363. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  364. if test -z "$err"; then
  365.   DEFS="$DEFS -D${trhdr}=1"
  366. fi
  367. rm -f conftest*
  368. done
  369.  
  370. echo checking for vfork.h
  371. cat > conftest.c <<EOF
  372. #include <vfork.h>
  373. EOF
  374. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  375. if test -z "$err"; then
  376.   DEFS="$DEFS -DHAVE_VFORK_H=1"
  377. fi
  378. rm -f conftest*
  379.  
  380. echo checking for working vfork
  381. cat > conftest.c <<EOF
  382. /* Thanks to Paul Eggert for this test.  */
  383. #include <stdio.h>
  384. #include <sys/types.h>
  385. #include <sys/stat.h>
  386. #ifdef HAVE_UNISTD_H
  387. #include <unistd.h>
  388. #endif
  389. #ifdef HAVE_VFORK_H
  390. #include <vfork.h>
  391. #endif
  392. main() {
  393.   pid_t parent = getpid();
  394.   pid_t child = vfork();
  395.  
  396.   if (child == 0) {
  397.     /* On sparc systems, changes by the child to local and incoming
  398.        argument registers are propagated back to the parent.
  399.        The compiler is told about this with #include <vfork.h>,
  400.        but some compilers (e.g. gcc -O) don't grok <vfork.h>.
  401.        Test for this by using lots of local variables, at least
  402.        as many local variables as main has allocated so far
  403.        including compiler temporaries.  4 locals are enough for
  404.        gcc 1.40.3 on a sparc, but we use 8 to be safe.
  405.        A buggy compiler should reuse the register of parent
  406.        for one of the local variables, since it will think that
  407.        parent can't possibly be used any more in this routine.
  408.        Assigning to the local variable will thus munge parent
  409.        in the parent process.  */
  410.     pid_t
  411.       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  412.       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  413.     /* Convince the compiler that p..p7 are live; otherwise, it might
  414.        use the same hardware register for all 8 local variables.  */
  415.     if (p != p1 || p != p2 || p != p3 || p != p4
  416.     || p != p5 || p != p6 || p != p7)
  417.       _exit(1);
  418.  
  419.     /* On some systems (e.g. IRIX 3.3),
  420.        vfork doesn't separate parent from child file descriptors.
  421.        If the child closes a descriptor before it execs or exits,
  422.        this munges the parent's descriptor as well.
  423.        Test for this by closing stdout in the child.  */
  424.     _exit(close(fileno(stdout)) != 0);
  425.   } else {
  426.     int status;
  427.     struct stat st;
  428.  
  429.     while (wait(&status) != child)
  430.       ;
  431.     exit(
  432.      /* Was there some problem with vforking?  */
  433.      child < 0
  434.  
  435.      /* Did the child fail?  (This shouldn't happen.)  */
  436.      || status
  437.  
  438.      /* Did the vfork/compiler bug occur?  */
  439.      || parent != getpid()
  440.  
  441.      /* Did the file descriptor bug occur?  */
  442.      || fstat(fileno(stdout), &st) != 0
  443.      );
  444.   }
  445. }
  446. EOF
  447. eval $compile
  448. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  449.   :
  450. else
  451.   DEFS="$DEFS -Dvfork=fork"
  452. fi
  453. rm -f conftest*
  454.  
  455. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  456. # for constant arguments.  Useless!
  457. echo checking for working alloca.h
  458. cat > conftest.c <<EOF
  459. #include <alloca.h>
  460. main() { exit(0); } 
  461. t() { char *p = alloca(2 * sizeof(int)); }
  462. EOF
  463. if eval $compile; then
  464.   DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  465. fi
  466. rm -f conftest*
  467.  
  468. decl="#ifdef __GNUC__
  469. #define alloca __builtin_alloca
  470. #else
  471. #if HAVE_ALLOCA_H
  472. #include <alloca.h>
  473. #else
  474. #ifdef _AIX
  475.  #pragma alloca
  476. #else
  477. char *alloca ();
  478. #endif
  479. #endif
  480. #endif
  481. "
  482. echo checking for alloca
  483. cat > conftest.c <<EOF
  484. $decl
  485. main() { exit(0); } 
  486. t() { char *p = (char *) alloca(1); }
  487. EOF
  488. if eval $compile; then
  489.   :
  490. else
  491.   alloca_missing=1
  492. fi
  493. rm -f conftest*
  494.  
  495. if test -n "$alloca_missing"; then
  496.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  497.   # that cause trouble.  Some versions do not even contain alloca or
  498.   # contain a buggy version.  If you still want to use their alloca,
  499.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  500.   ALLOCA=alloca.o
  501. fi
  502.  
  503. echo checking for st_blksize in struct stat
  504. cat > conftest.c <<EOF
  505. #include <sys/types.h>
  506. #include <sys/stat.h>
  507. main() { exit(0); } 
  508. t() { struct stat s; s.st_blksize; }
  509. EOF
  510. if eval $compile; then
  511.   DEFS="$DEFS -DHAVE_ST_BLKSIZE=1"
  512. fi
  513. rm -f conftest*
  514.  
  515. echo checking for Xenix
  516. cat > conftest.c <<EOF
  517. #if defined(M_XENIX) && !defined(M_UNIX)
  518.   yes
  519. #endif
  520.  
  521. EOF
  522. eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  523. if egrep "yes" conftest.out >/dev/null 2>&1; then
  524.   XENIX=1
  525. fi
  526. rm -f conftest*
  527.  
  528. if test -n "$XENIX"; then
  529.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  530.   LIBS="$LIBS -lx"
  531.   case "$DEFS" in
  532.   *SYSNDIR*) ;;
  533.   *) LIBS="-ldir $LIBS" ;; # Make sure -ldir precedes any -lx.
  534.   esac
  535. fi
  536.  
  537. if test -n "$prefix"; then
  538.   test -z "$exec_prefix" && exec_prefix='${prefix}'
  539.   prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  540. fi
  541. if test -n "$exec_prefix"; then
  542.   prsub="$prsub
  543. s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%\
  544. exec_prefix\\1=\\2$exec_prefix%"
  545. fi
  546.  
  547. trap 'rm -f config.status; exit 1' 1 3 15
  548. echo creating config.status
  549. rm -f config.status
  550. cat > config.status <<EOF
  551. #!/bin/sh
  552. # Generated automatically by configure.
  553. # Run this file to recreate the current configuration.
  554. # This directory was configured as follows,
  555. # on host `(hostname || uname -n) 2>/dev/null`:
  556. #
  557. # $0 $*
  558.  
  559. for arg
  560. do
  561.   case "\$arg" in
  562.     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  563.     exec /bin/sh $0 $* ;;
  564.     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  565.   esac
  566. done
  567.  
  568. trap 'rm -f Makefile; exit 1' 1 3 15
  569. CC='$CC'
  570. CPP='$CPP'
  571. INSTALL='$INSTALL'
  572. INSTALL_PROGRAM='$INSTALL_PROGRAM'
  573. INSTALL_DATA='$INSTALL_DATA'
  574. ALLOCA='$ALLOCA'
  575. LIBS='$LIBS'
  576. srcdir='$srcdir'
  577. DEFS='$DEFS'
  578. prefix='$prefix'
  579. exec_prefix='$exec_prefix'
  580. prsub='$prsub'
  581. EOF
  582. cat >> config.status <<\EOF
  583.  
  584. top_srcdir=$srcdir
  585. for file in .. Makefile; do if [ "x$file" != "x.." ]; then
  586.   srcdir=$top_srcdir
  587.   # Remove last slash and all that follows it.  Not all systems have dirname.
  588.   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  589.   if test "$dir" != "$file"; then
  590.     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  591.     test ! -d $dir && mkdir $dir
  592.   fi
  593.   echo creating $file
  594.   rm -f $file
  595.   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  596.   sed -e "
  597. $prsub
  598. s%@CC@%$CC%g
  599. s%@CPP@%$CPP%g
  600. s%@INSTALL@%$INSTALL%g
  601. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  602. s%@INSTALL_DATA@%$INSTALL_DATA%g
  603. s%@ALLOCA@%$ALLOCA%g
  604. s%@LIBS@%$LIBS%g
  605. s%@srcdir@%$srcdir%g
  606. s%@DEFS@%$DEFS%
  607. " $top_srcdir/${file}.in >> $file
  608. fi; done
  609.  
  610. exit 0
  611. EOF
  612. chmod +x config.status
  613. test -n "$no_create" || ./config.status
  614.  
  615.