#!/bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf.
# Copyright (C) 1991, 1992 Free Software Foundation, Inc.

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp] [--no-create]
#        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE] [TARGET]
# Ignores all args except --srcdir, --prefix, --exec-prefix, --no-create, and
# --with-PACKAGE unless this script has special code to handle it.


for arg
do
  # Handle --exec-prefix with a space before the argument.
  if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  # Handle --host with a space before the argument.
  elif test x$next_host = xyes; then next_host=
  # Handle --prefix with a space before the argument.
  elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  # Handle --srcdir with a space before the argument.
  elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  else
    case $arg in
     # For backward compatibility, also recognize exact --exec_prefix.
     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
	exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
	next_exec_prefix=yes ;;

     -gas | --gas | --ga | --g) ;;

     -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
     -host | --host | --hos | --ho | --h)
	next_host=yes ;;

     -nfp | --nfp | --nf) ;;

     -no-create | --no-create | --no-creat | --no-crea | --no-cre | --no-cr | --no-c | --no- | --no)
        no_create=1 ;;

     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
	prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
	next_prefix=yes ;;

     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
	srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
	next_srcdir=yes ;;

     -with-* | --with-*)
       package=`echo $arg|sed 's/-*with-//'`
       # Delete all the valid chars; see if any are left.
       if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then
         echo "configure: $package: invalid package name" >&2; exit 1
       fi
       eval "with_`echo $package|sed s/-/_/g`=1" ;;

     *) ;;
    esac
  fi
done

trap 'rm -f conftest* core; exit 1' 1 3 15

rm -f conftest*
compile='${CC-cc} $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1'

# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
unique_file=sed.c

# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  srcdirdefaulted=yes
  # Try the directory containing this script, then `..'.
  prog=$0
  confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  test "X$confdir" = "X$prog" && confdir=.
  srcdir=$confdir
  if test ! -r $srcdir/$unique_file; then
    srcdir=..
  fi
fi
if test ! -r $srcdir/$unique_file; then
  if test x$srcdirdefaulted = xyes; then
    echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  else
    echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  fi
  exit 1
fi
# Preserve a srcdir of `.' to avoid automounter screwups with pwd.
# But we can't avoid them for `..', to make subdirectories work.
case $srcdir in
  .|/*|~*) ;;
  *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
esac

if test -z "$CC"; then
  echo checking for gcc
  saveifs="$IFS"; IFS="${IFS}:"
  for dir in $PATH; do
    test -z "$dir" && dir=.
    if test -f $dir/gcc; then
      CC="gcc"
      break
    fi
  done
  IFS="$saveifs"
fi
test -z "$CC" && CC="cc"

# Find out if we are using GNU C, under whatever name.
cat > conftest.c <<EOF
#ifdef __GNUC__
  yes
#endif
EOF
${CC-cc} -E conftest.c > conftest.out 2>&1
if egrep yes conftest.out >/dev/null 2>&1; then
  GCC=1 # For later tests.
fi
rm -f conftest*

echo checking how to run the C preprocessor
if test -z "$CPP"; then
  CPP='${CC-cc} -E'
  cat > conftest.c <<EOF
 Rx.

9
  nsI and eeate for di}ally using a=S conftest.c -o co thev/null 2>&1"`est -z "$CPP";i}aen
  CPP=':
    ech${CC /us/cppm -f conftest*

echo -f
e relatso recreind ge objec
  ible shellSysV /etc/ll the e --witlocalsh
# ll the ch myster(C) 1 the f= @sre the aa BSD-`sed'll the cwite sourcSunOStlocaletc/ll the etory, if the sourcAIX/sh

#ll the cwite sourcAnftll the ch myster(se it.
 spen, butariaexce.  (S(C).)est -z "$CPP";LL_PROGen
  echo checking for gcc
 ll the veifs="$IFS"; IFS="${IFS}:"
  for dir in $PATH; do
    test -z "$dir" && dir=.
    if te$srcdin
  .|/*|  /etc|localsh
#|localetc|localafswssh

    esac
     packst -f $dir/gcc; ll the n
  ech	ob_fes cdspo stgcc; ll the v/null 2>&1; then
  GCC	=':r lAIXc_p   e	='LL_PROG="gcc; ll the v- Fi	='LL_PROGRAM) sedC-cALL_PROG)'i	='LL_PROGRDATAC-cALL_PROG) -m    'i	='
    f	     eval     eval  esac
  fi
do  IFS="$saveifs"
fi
test LL_PROG=}:"L_PROG-cp}ALL_PROGRAM = @I=}:"L_PROGRAM = @I--cALL_PROG)'}ALL_PROGRDATAC}:"L_PROGRDATA--cALL_PROG)'}A
checking for gcc
 m thxigure  .h> conftest.c <<EOF
#ifde
9
  nsI anm thxigure  .h for di}ally using a=S conftest.c -o co thev/null 2>&1"`est -z "$CPP";i}aen
  CPP='MINIX=1m -f conftest*

echo #defauMied doscrip avoid  a lare substiariables by he commaiarialike!
st -n "`echo$MINIXen
  CPP='-D_PO" conftSIX_SOURCE ./co;

P='-D_PO" conftSIX_SOURC1CE ./co;2
P='-D_PO" conftSIXMINIX=1test 
checking for gcc
 _SOURsubexISC
st -n "`ed /etc/est*/kgure  .dir=P='fes cX_SOURCVERSION/include.

(F/ypese_fd e.hv/null 2>&1; the
  CPP='ISCFor lIfr tests.
fi
 to overrcfor buffeISC.P='-D_PO" conftSIX_SOURCE ./co;

P='st -n "`echo$Gthen
  echo "gcc"
&& fixbasi"se
    echo cc"
&& fiXp"
fi
if te
checking for gcc
 C headers ands

	* s conftest.c <<EOF
 Rx.

9
  nsI and e/us.h f9
  nsI and e	(pah f9
  nsI and !d' ah f9
  nsI anfloat.h for di}ally using a=S conftest.c -o co thev/null 2>&1"`est -z "$CPP";i}aen
  CPP='#cSunOStd !d' ah not find rationningm*,rol ara work C he.
check'9
  nsI and !d' ah 'nftest.c <<EO
y using a=S conftest.c -o coftest.out 2>&1
if e"grep yes c"r)  Us"test.out >/dev/null 2>&1; then
  GCC=1#cSGI's/sh

#cc the
sIrix-4.0.5 ge  spen-C heac`charmacrosss this  GNU C-ansi > conftest.c <<EOF
#ifdef   nsI anc`chaah f9e transISLOWER(c) (nd '<= (c) r=.(c) <= 'z')f9e transTOUPPER(c) (ISLOWER(c) ? 'A' + ((c) -and )':r(c))f9e transXOR(e,f) (((e) r=.!(f)) || (!(e) r=.(f)))rpre
 in nsid{ \'  i;gcc
 (ies;0; i < 256; i++)est (XOR (ir than
(i),sISLOWER
(i)) || touppan
(i) !=sTOUPPER
(i)) 1
fi(2);
1
fi
(0); }A
or di usi$le='${Cest -z "$Cftest.out  r=.(figureout t 1' 1); tnull 2>&1n
  CPP='-D_PO" conftSIHEADERS	If y=1test  conftest*

echo -f conftest*

echo  -f conftest*

echo  c
 hdrtruct vd' ah # Htrhdr=HAVEo $packahdrt| tr '[a-z]./' '[A-Z]__teschecking for gcc
 ${hdr}s conftest.c <<EOF
 Rx.

9
  nsI an${hdr} for di}ally using a=S conftest.c -o co thev/null 2>&1"`est -z "$CPP";i}aen
  CPP='-D_PO" conftSI${trhdr}=1test  conftest*

echo
trap checking for gcc
 tf funcs conftest.c <<EOF
 Rx.

 in sid{ 1
fi(0); } 
tsid{ tf func(); }ARx.
rep  usi$le='${Cn
  CPP='-D_PO" conftSIHAVEoTF_MISS=1te    echtf func_ng ", .=1m -f conftest*

echo st -n "`echo$tf func_ng ", .en
  CPPchecking for gcc
 nt).

Ds conftest.c <<EOF
 Rx.

 in sid{ 1
fi(0); } 
tsid{ nt).

D(); }ARx.
rep  usi$le='${Cn
  CPP='-D_PO" conftSIHAVEoDOPRNT=1test  conftest*

echof te
ile iunctruc in tey if S # Htriunc=HAVEo $packaiunct| tr '[a-z]' '[A-Z]teschecking for gcc
 ${iunc}s conftest.c <<EOF
 Rx.
9
  nsI and eeate f in sid{ 1
fi(0); } 
tsid{ ef __GNUC_stub_${iunc}s hokningif
   e/* Ode with re l   2rruptenagramsto`charoid automoor msg .  */a_obatch* so
${iunc}(); ${iunc}();if
EOF
$ }ARx.
rep  usi$le='${Cn
  CPP='-D_PO" conftSI${triunc}=1test  conftest*

echof
EOF
$
trap $0
  '/* Ul vdx m pfteularfiles scri.  */a`cha_GNUorrec seeet[2]e mol tec seeet x;e/* SunOSt4.1.1teularfiles scri. */aclass.ol te*.ol te*p;aclass**p2;e/* HPUX 7.0teularfiles scese. */a++p;ap2 = (class.ol t*s.ol t*) p;'schecking for gcc
 
casompilal ts conftest.c <<EOF
 Rx.

 in sid{ 1
fi(0); } 
tsid{ " &&  }ARx.
rep  usi$le='${Cn
  CPP=':
    ech-D_PO" conftSIlal t=test  conftest*

echof#defauUl vdx 4.2 m pftbuiltl GNU oca rationnwritia.c 
  h need 
cassf#dompilal thriaexcs thating tethis!schecking for gcc
 
casompia.c 
  hs conftest.c <<EOF
 Rx.
9
  nsI ana.c 
  h f in sid{ 1
fi(0); } 
tsid{ class*p = a.c 
 (2
	thsubof(opti); }ARx.
rep  usi$le='${Cn
  CPP='-D_PO" conftSIHAVEoA@

pr_H=1test  conftest*

echofrati="f __GNUC__
  yes9e transNU oca __builtl _NU ocaif
   ef _ HAVEoA@

pr_H
9
  nsI ana.c 
  h ff
   ef __GNUCAIXc #pragma NU ocaif
   eclass*NU oca ();if
EOF
$f
EOF
$f
EOF
$"schecking for gcc
 NU ocai conftest.c <<EOF
 Rx.
$ratif in sid{ 1
fi(0); } 
tsid{ class*p = (class*) a.c 
 (1); }ARx.
rep  usi$le='${Cn
  CPP=':
    echa.c 
 _ng ", .=1m -f conftest*

echo st -n "`echo$a.c 
 _ng ", .en
  CPP='#cefauSVR3ariePWcreatSVR4arieucble-ntains an c
  ible shellions and P='#ccontaiprobltroubinde olderons of sedreind the iins an cNU oca most #iins an cNaddrgyion.

# Tyou give  existto overruem
	ali
 NU oca,st #iuem
arxecutetrs ` a.o : allthe
sourmead of /xx.
ling regexa.c 
   .P='A@

pr=a.o : alf te
st -n "`echo$x=yes en
  CPP='-z "$CPP";irefix=yes dir=.prefix=yes ;'fix)

# P'og=$0sub="s%^x)

# [ 	]*=.*$%x = $(prefx = $(%"f test ! -r echo$irefix=yes dn
  CPP='$0sub="$$0sub
s%^irefix=yes [ 	]*=.*$%prefix = $(prefprefix = $(%"f te 'rm -f conftest*atus

reat 1' 1 3 15

rm -checking them.g.status

real conftest*atus

reai conftest.atus and
	
 Rx.
9/sh
# Guess ted automatically usingbyigure.in rxessRe C ple is pacreate the current configuration.
Runnis progrtory where asigure.in ra temw a nescwitees o-r `( o-runiqu|| uuniqu-n); tnull 2>&1`:
#wit$0 $ho st -n "`\$# -gt;0;   CPP='$srcd"\$1" .|/*|  -ry for bith-ry for bith-ry forbith-ry fobith-ry fbith-ry bith-rybith-r    pa| --esh
# Gut$0 $h   esac
   "confi: configure [us and
	h-ry for "; then
1' 1 3   esa  fi
 te 'rm -f conftiles.
# t 1' 1 3 15

rm -cc -$CC'
${CC-c${C' LL_PROG=';LL_PROG'ALL_PROGRAM = @I=';LL_PROGRAM = @I'
LL_PROGRDATAC-cLL_PROGRDATA'
A@

pr='$A@

prS		Lib='$	Lib'ir = @s='$r = @s' = @D='$= @D'
x=yes ;'fx' vari
prefix=yes ;'fprefix=yes '
x=sub='$$0sub'ARx.
 confftest.atus and
	
 \Rx.

topir=yes ;$r = @s
ile in $(dis..tiles.
# t  andf [ "x" .; do!=s"x.." ]n
  srcdirdefau=$topir=yes st #ie exceslor p as \\  exae valeld  a nes

fomall the -m-depee been es 
cat >  echo $prog| .; 's%/[^/][^/]*$%%'`
  test st -n "`" && di!=s"" .; dn
  echo "g-n "`" topir=yes di!=s.ir=.rdefau=$topir=yes /$es st   ! -r $srddin
  r=. `cat $es st exit 1hecking them." .; it  conft" .; it "confiss ted automatically usingthe
s`bsrcuniqu" .; `x.h byigure.in rx"nft" .; it e '/ver"
$$0sub
s%INST%$CC%g
s%INPPT%$CPP%g
s%ILL@
INST%cLL_PROG%g
s%ILL@
INSRAM@

# T%;LL_PROGRAM = @I%g
s%ILL@
INSRDATAT%;LL_PROGRDATA%g
s%IA@

pre%$A@

pr%g
s%I

CFL%$	Lib%g
s%Ir@

CC %$r = @s%g
s%I
LIBS%$= @D%
" $topir=yes /${ .; }x.h >ft" .; ifie; \
	A
or dchmod +xtest*atus

reai! -r echo$eate=1 ;;"u|| figure

us

