/[grep]/grep/autogen.sh
ViewVC logotype

Diff of /grep/autogen.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by bero, Tue Nov 20 14:41:11 2001 UTC revision 1.6 by kasal, Sat Nov 20 14:46:18 2004 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2  # We want to support both legacy and current autoconf - this is a bit ugly...  
3  AC_VERSION=`autoconf --version 2>&1 |head -n1 |sed -e "s/.* //;s/\.//;s/[a-z]//"`  chmod +x tests/*.sh   # fix a bug in CVS
4  if test -z "$AC_VERSION"; then  
5          echo "Warning: Couldn't determine autoconf version. Assuming a current version."  if \
6          AC_VERSION=252  aclocal -I m4 &&
7  fi  autoheader &&
8  if test "$AC_VERSION" -lt 250; then  automake -a &&
9          rm -f acinclude.m4  autoconf
10          echo "#undef ssize_t" >acconfig.h  then
11          for i in m4/*.m4; do          echo "Next, run ./configure && make && make check"
                 if cat $i |grep -q "jm_"; then  
                         cat $i >>acinclude.m4  
                 elif test ! -e `aclocal --print-ac-dir`/`basename $i`; then  
                         cat $i >>acinclude.m4  
                 fi  
         done  
         aclocal  
12  else  else
13          aclocal -I m4          echo
14            echo "An error occured."
15            exit 1
16  fi  fi
 autoheader  
 automake -a  
 if test "$AC_VERSION" -lt 250; then  
         # Workaround for a bug in ancient versions of autoheader  
         sed -e 's,#undef $,/* your autoheader is buggy */,g' config.hin >config.hin.new  
         rm config.hin  
         mv config.hin.new config.hin  
         # Make sure config.hin doesn't get rebuilt after the workaround  
         sed -e 's,@AUTOHEADER@,true,' Makefile.in >Makefile.in.new  
         rm Makefile.in  
         mv Makefile.in.new Makefile.in  
 fi  
 autoconf  

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26