"Fossies" - the Fresh Open Source Software Archive

Member "ifhp-3.5.22/CREATE_CONFIGURE" (2 Mar 2009, 2160 Bytes) of package /linux/misc/old/ifhp-3.5.22.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 _V_=
    3 while [ "$*" ] ; do
    4     case "$1" in
    5     -v ) _V_=YES;;
    6     -x ) set -x;;
    7     * ) cat >&2 <<EOF
    8 use: $0 [-x][-v]
    9   generate configure and massage some settings
   10   -x turn on tracing
   11   -v verbose
   12 EOF
   13         exit 1;
   14     esac
   15     shift;
   16 done
   17 
   18 #M4PATH=/usr/local/share/aclocal
   19 #export M4PATH
   20 set -e
   21 rm -f aclocal.m4 libtool config.cache config.status
   22 #aclocal259 || aclocal
   23 #grep 'libtool.m4 - Configure' aclocal.m4 || {
   24 #cat /usr/local/share/aclocal/libtool14.m4 >>aclocal.m4
   25 #}
   26 gettextize --force --copy 2>&1 | tee add_files
   27 #cat add_files
   28 perl -e '
   29 use FileHandle;
   30 my $f="";
   31 while( <> ){
   32     if( /please add the files/i../from the/i ){
   33         next if (/please add the files/i );
   34         if (/from the (.*) directory/i ){
   35             $dir = $1;
   36             next
   37         }
   38         chomp;
   39         $f .= $_;
   40     }
   41 }
   42 if( !$dir ){
   43     $dir = ".";
   44 }
   45 print STDERR "gettextize request DIR '$dir' ADDING $f to aclocal.m4\n";
   46 foreach my $file (split " ", $f ){
   47     my $fn ="$dir/$file";
   48     my $fd = new FileHandle( "<$fn");
   49     die "cannot open $fn" unless(  $fd );
   50     while( <$fd> ){ print $_; }
   51 }
   52 ' add_files >>aclocal.m4
   53 libtoolize --force --copy 2>&1 |tee add_files || libtoolize --force --copy 2>&1 |tee add_files || exit 1
   54 perl -e '
   55 use FileHandle;
   56 while( <> ){
   57     if( /add the contents of (.*) to /i ){
   58         $f .= " $1 ";
   59     }
   60 }
   61 $f =~ s/[\`'"'"']//g;
   62 print STDERR "libtoolize request ADD $f to aclocal.m4\n";
   63 foreach my $file (split " ", $f ){
   64     my $fn ="$file";
   65     my $fd = new FileHandle( "<$fn");
   66     die "cannot open $fn" unless(  $fd );
   67     while( <$fd> ){ print $_; }
   68 }
   69 ' add_files >>aclocal.m4
   70 aclocal
   71 # cat acinclude.m4 >>aclocal.m4
   72 #if [ -f aclocal.m4 ] ; then
   73 #   perl -spi.bak -e '
   74 #       if(/--disable-nls.*Native/){s/--disable/--enable/; s/do not //;}
   75 #       s/, USE_NLS=yes/, USE_NLS=no/; ' aclocal.m4
   76 #fi
   77  autoconf || exit 1
   78  autoheader || exit 1
   79 #autoreconf --force --install
   80 #rm -f po/Makevars
   81 #mv po/Makevars.template po/Makevars
   82 #echo "" >/dev/tty; libtoolize14 --force --copy
   83 #grep 'SED=' ltmain.sh || {
   84 # ( head -1 ltmain.sh ; echo "SED=sed"; cat ltmain.sh ) >ltmain
   85 #   rm -f ltmain.sh
   86 #   mv ltmain ltmain.sh
   87 #}
   88 #autoconf259 || autoconf
   89 #autoheader259 || autoconf
   90 if [ -d po ] ; then
   91     chmod a+x mkinstalldirs
   92     cp mkinstalldirs po;
   93 fi
   94 ./configure;