"Fossies" - the Fresh Open Source Software Archive

Member "termcap-1.3.1/configure" (26 Jul 1995, 30285 Bytes) of package /linux/misc/old/termcap-1.3.1.tar.gz:


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 and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #! /bin/sh
    2 
    3 # Guess values for system-dependent variables and create Makefiles.
    4 # Generated automatically using autoconf version 2.4 
    5 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
    6 #
    7 # This configure script is free software; the Free Software Foundation
    8 # gives unlimited permission to copy, distribute and modify it.
    9 
   10 # Defaults:
   11 ac_help=
   12 ac_default_prefix=/usr/local
   13 # Any additions from configure.in:
   14 ac_help="$ac_help
   15   --enable-install-termcap install the termcap data file"
   16 ac_help="$ac_help
   17   --with-termcap=FILE     use data file FILE instead of /etc/termcap"
   18 
   19 # Initialize some variables set by options.
   20 # The variables have the same names as the options, with
   21 # dashes changed to underlines.
   22 build=NONE
   23 cache_file=./config.cache
   24 exec_prefix=NONE
   25 host=NONE
   26 no_create=
   27 nonopt=NONE
   28 no_recursion=
   29 prefix=NONE
   30 program_prefix=NONE
   31 program_suffix=NONE
   32 program_transform_name=s,x,x,
   33 silent=
   34 site=
   35 srcdir=
   36 target=NONE
   37 verbose=
   38 x_includes=NONE
   39 x_libraries=NONE
   40 
   41 # Initialize some other variables.
   42 subdirs=
   43 
   44 ac_prev=
   45 for ac_option
   46 do
   47 
   48   # If the previous option needs an argument, assign it.
   49   if test -n "$ac_prev"; then
   50     eval "$ac_prev=\$ac_option"
   51     ac_prev=
   52     continue
   53   fi
   54 
   55   case "$ac_option" in
   56   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
   57   *) ac_optarg= ;;
   58   esac
   59 
   60   # Accept the important Cygnus configure options, so we can diagnose typos.
   61 
   62   case "$ac_option" in
   63 
   64   -build | --build | --buil | --bui | --bu | --b)
   65     ac_prev=build ;;
   66   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
   67     build="$ac_optarg" ;;
   68 
   69   -cache-file | --cache-file | --cache-fil | --cache-fi \
   70   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   71     ac_prev=cache_file ;;
   72   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   73   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   74     cache_file="$ac_optarg" ;;
   75 
   76   -disable-* | --disable-*)
   77     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
   78     # Reject names that are not valid shell variable names.
   79     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
   80       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
   81     fi
   82     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
   83     eval "enable_${ac_feature}=no" ;;
   84 
   85   -enable-* | --enable-*)
   86     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
   87     # Reject names that are not valid shell variable names.
   88     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
   89       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
   90     fi
   91     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
   92     case "$ac_option" in
   93       *=*) ;;
   94       *) ac_optarg=yes ;;
   95     esac
   96     eval "enable_${ac_feature}='$ac_optarg'" ;;
   97 
   98   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   99   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  100   | --exec | --exe | --ex)
  101     ac_prev=exec_prefix ;;
  102   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  103   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  104   | --exec=* | --exe=* | --ex=*)
  105     exec_prefix="$ac_optarg" ;;
  106 
  107   -gas | --gas | --ga | --g)
  108     # Obsolete; use --with-gas.
  109     with_gas=yes ;;
  110 
  111   -help | --help | --hel | --he)
  112     # Omit some internal or obsolete options to make the list less imposing.
  113     # This message is too long to be a string in the A/UX 3.1 sh.
  114     cat << EOF
  115 Usage: configure [options] [host]
  116 Options: [defaults in brackets after descriptions]
  117 Configuration:
  118   --cache-file=FILE       cache test results in FILE
  119   --help                  print this message
  120   --no-create             do not create output files
  121   --quiet, --silent       do not print \`checking...' messages
  122   --version               print the version of autoconf that created configure
  123 Directory and file names:
  124   --prefix=PREFIX         install architecture-independent files in PREFIX
  125                           [$ac_default_prefix]
  126   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  127                           [same as prefix]
  128   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  129   --program-prefix=PREFIX prepend PREFIX to installed program names
  130   --program-suffix=SUFFIX append SUFFIX to installed program names
  131   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  132 Host type:
  133   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  134   --host=HOST             configure for HOST [guessed]
  135   --target=TARGET         configure for TARGET [TARGET=HOST]
  136 Features and packages:
  137   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  138   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  139   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  140   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  141   --x-includes=DIR        X include files are in DIR
  142   --x-libraries=DIR       X library files are in DIR
  143 --enable and --with options recognized:$ac_help
  144 EOF
  145     exit 0 ;;
  146 
  147   -host | --host | --hos | --ho)
  148     ac_prev=host ;;
  149   -host=* | --host=* | --hos=* | --ho=*)
  150     host="$ac_optarg" ;;
  151 
  152   -nfp | --nfp | --nf)
  153     # Obsolete; use --without-fp.
  154     with_fp=no ;;
  155 
  156   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  157   | --no-cr | --no-c)
  158     no_create=yes ;;
  159 
  160   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  161   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  162     no_recursion=yes ;;
  163 
  164   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  165     ac_prev=prefix ;;
  166   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  167     prefix="$ac_optarg" ;;
  168 
  169   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  170   | --program-pre | --program-pr | --program-p)
  171     ac_prev=program_prefix ;;
  172   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  173   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  174     program_prefix="$ac_optarg" ;;
  175 
  176   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  177   | --program-suf | --program-su | --program-s)
  178     ac_prev=program_suffix ;;
  179   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  180   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  181     program_suffix="$ac_optarg" ;;
  182 
  183   -program-transform-name | --program-transform-name \
  184   | --program-transform-nam | --program-transform-na \
  185   | --program-transform-n | --program-transform- \
  186   | --program-transform | --program-transfor \
  187   | --program-transfo | --program-transf \
  188   | --program-trans | --program-tran \
  189   | --progr-tra | --program-tr | --program-t)
  190     ac_prev=program_transform_name ;;
  191   -program-transform-name=* | --program-transform-name=* \
  192   | --program-transform-nam=* | --program-transform-na=* \
  193   | --program-transform-n=* | --program-transform-=* \
  194   | --program-transform=* | --program-transfor=* \
  195   | --program-transfo=* | --program-transf=* \
  196   | --program-trans=* | --program-tran=* \
  197   | --progr-tra=* | --program-tr=* | --program-t=*)
  198     program_transform_name="$ac_optarg" ;;
  199 
  200   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  201   | -silent | --silent | --silen | --sile | --sil)
  202     silent=yes ;;
  203 
  204   -site | --site | --sit)
  205     ac_prev=site ;;
  206   -site=* | --site=* | --sit=*)
  207     site="$ac_optarg" ;;
  208 
  209   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  210     ac_prev=srcdir ;;
  211   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  212     srcdir="$ac_optarg" ;;
  213 
  214   -target | --target | --targe | --targ | --tar | --ta | --t)
  215     ac_prev=target ;;
  216   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  217     target="$ac_optarg" ;;
  218 
  219   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  220     verbose=yes ;;
  221 
  222   -version | --version | --versio | --versi | --vers)
  223     echo "configure generated by autoconf version 2.4"
  224     exit 0 ;;
  225 
  226   -with-* | --with-*)
  227     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  228     # Reject names that are not valid shell variable names.
  229     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  230       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  231     fi
  232     ac_package=`echo $ac_package| sed 's/-/_/g'`
  233     case "$ac_option" in
  234       *=*) ;;
  235       *) ac_optarg=yes ;;
  236     esac
  237     eval "with_${ac_package}='$ac_optarg'" ;;
  238 
  239   -without-* | --without-*)
  240     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  241     # Reject names that are not valid shell variable names.
  242     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  243       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  244     fi
  245     ac_package=`echo $ac_package| sed 's/-/_/g'`
  246     eval "with_${ac_package}=no" ;;
  247 
  248   --x)
  249     # Obsolete; use --with-x.
  250     with_x=yes ;;
  251 
  252   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  253   | --x-incl | --x-inc | --x-in | --x-i)
  254     ac_prev=x_includes ;;
  255   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  256   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  257     x_includes="$ac_optarg" ;;
  258 
  259   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  260   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  261     ac_prev=x_libraries ;;
  262   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  263   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  264     x_libraries="$ac_optarg" ;;
  265 
  266   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  267     ;;
  268 
  269   *) 
  270     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  271       echo "configure: warning: $ac_option: invalid host type" 1>&2
  272     fi
  273     if test "x$nonopt" != xNONE; then
  274       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  275     fi
  276     nonopt="$ac_option"
  277     ;;
  278 
  279   esac
  280 done
  281 
  282 if test -n "$ac_prev"; then
  283   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  284 fi
  285 
  286 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  287 
  288 # File descriptor usage:
  289 # 0 standard input
  290 # 1 file creation
  291 # 2 errors and warnings
  292 # 3 some systems may open it to /dev/tty
  293 # 4 used on the Kubota Titan
  294 # 6 checking for... messages and results
  295 # 5 compiler messages saved in config.log
  296 if test "$silent" = yes; then
  297   exec 6>/dev/null
  298 else
  299   exec 6>&1
  300 fi
  301 exec 5>./config.log
  302 
  303 echo "\
  304 This file contains any messages produced by compilers while
  305 running configure, to aid debugging if configure makes a mistake.
  306 " 1>&5
  307 
  308 # Strip out --no-create and --no-recursion so they do not pile up.
  309 # Also quote any args containing shell metacharacters.
  310 ac_configure_args=
  311 for ac_arg
  312 do
  313   case "$ac_arg" in
  314   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  315   | --no-cr | --no-c) ;;
  316   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  317   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  318   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  319   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  320   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  321   esac
  322 done
  323 
  324 # NLS nuisances.
  325 # Only set LANG and LC_ALL to C if already set.
  326 # These must not be set unconditionally because not all systems understand
  327 # e.g. LANG=C (notably SCO).
  328 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  329 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  330 
  331 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  332 rm -rf conftest* confdefs.h
  333 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  334 echo > confdefs.h
  335 
  336 # A filename unique to this package, relative to the directory that
  337 # configure is in, which we can look for to find out if srcdir is correct.
  338 ac_unique_file=termcap.h
  339 
  340 # Find the source files, if location was not specified.
  341 if test -z "$srcdir"; then
  342   ac_srcdir_defaulted=yes
  343   # Try the directory containing this script, then its parent.
  344   ac_prog=$0
  345   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  346   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  347   srcdir=$ac_confdir
  348   if test ! -r $srcdir/$ac_unique_file; then
  349     srcdir=..
  350   fi
  351 else
  352   ac_srcdir_defaulted=no
  353 fi
  354 if test ! -r $srcdir/$ac_unique_file; then
  355   if test "$ac_srcdir_defaulted" = yes; then
  356     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  357   else
  358     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  359   fi
  360 fi
  361 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  362 
  363 # Prefer explicitly selected file to automatically selected ones.
  364 if test -z "$CONFIG_SITE"; then
  365   if test "x$prefix" != xNONE; then
  366     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  367   else
  368     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  369   fi
  370 fi
  371 for ac_site_file in $CONFIG_SITE; do
  372   if test -r "$ac_site_file"; then
  373     echo "loading site script $ac_site_file"
  374     . "$ac_site_file"
  375   fi
  376 done
  377 
  378 if test -r "$cache_file"; then
  379   echo "loading cache $cache_file"
  380   . $cache_file
  381 else
  382   echo "creating cache $cache_file"
  383   > $cache_file
  384 fi
  385 
  386 ac_ext=c
  387 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  388 ac_cpp='$CPP $CPPFLAGS'
  389 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  390 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  391 
  392 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  393   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  394   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  395     ac_n= ac_c='
  396 ' ac_t='    '
  397   else
  398     ac_n=-n ac_c= ac_t=
  399   fi
  400 else
  401   ac_n= ac_c='\c' ac_t=
  402 fi
  403 
  404 
  405 
  406 # Check whether --enable-install-termcap or --disable-install-termcap was given.
  407 enableval="$enable_install_termcap"
  408 if test -n "$enableval"; then
  409   if test $enableval = yes; then
  410    installdata=install-data uninstalldata=uninstall-data
  411  fi
  412 fi
  413 
  414 
  415 # Check whether --with-termcap or --without-termcap was given.
  416 withval="$with_termcap"
  417 if test -n "$withval"; then
  418   termcapfile=$withval
  419 else
  420   termcapfile=/etc/termcap
  421 fi
  422 
  423 
  424 # Extract the first word of "gcc", so it can be a program name with args.
  425 set dummy gcc; ac_word=$2
  426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  427 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  428   echo $ac_n "(cached) $ac_c" 1>&6
  429 else
  430   if test -n "$CC"; then
  431   ac_cv_prog_CC="$CC" # Let the user override the test.
  432 else
  433   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  434   for ac_dir in $PATH; do
  435     test -z "$ac_dir" && ac_dir=.
  436     if test -f $ac_dir/$ac_word; then
  437       ac_cv_prog_CC="gcc"
  438       break
  439     fi
  440   done
  441   IFS="$ac_save_ifs"
  442   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  443 fi
  444 fi
  445 CC="$ac_cv_prog_CC"
  446 if test -n "$CC"; then
  447   echo "$ac_t""$CC" 1>&6
  448 else
  449   echo "$ac_t""no" 1>&6
  450 fi
  451 
  452 
  453 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  454 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  455   echo $ac_n "(cached) $ac_c" 1>&6
  456 else
  457   cat > conftest.c <<EOF
  458 #ifdef __GNUC__
  459   yes;
  460 #endif
  461 EOF
  462 if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  463   ac_cv_prog_gcc=yes
  464 else
  465   ac_cv_prog_gcc=no
  466 fi
  467 fi
  468 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  469 if test $ac_cv_prog_gcc = yes; then
  470   GCC=yes
  471   if test "${CFLAGS+set}" != set; then
  472     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  473 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  474   echo $ac_n "(cached) $ac_c" 1>&6
  475 else
  476   echo 'void f(){}' > conftest.c
  477 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  478   ac_cv_prog_gcc_g=yes
  479 else
  480   ac_cv_prog_gcc_g=no
  481 fi
  482 rm -f conftest*
  483 
  484 fi
  485     echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  486     if test $ac_cv_prog_gcc_g = yes; then
  487       CFLAGS="-g -O"
  488     else
  489       CFLAGS="-O"
  490     fi
  491   fi
  492 else
  493   GCC=
  494   test "${CFLAGS+set}" = set || CFLAGS="-g"
  495 fi
  496 
  497 # Extract the first word of "ranlib", so it can be a program name with args.
  498 set dummy ranlib; ac_word=$2
  499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  500 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  501   echo $ac_n "(cached) $ac_c" 1>&6
  502 else
  503   if test -n "$RANLIB"; then
  504   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  505 else
  506   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  507   for ac_dir in $PATH; do
  508     test -z "$ac_dir" && ac_dir=.
  509     if test -f $ac_dir/$ac_word; then
  510       ac_cv_prog_RANLIB="ranlib"
  511       break
  512     fi
  513   done
  514   IFS="$ac_save_ifs"
  515   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  516 fi
  517 fi
  518 RANLIB="$ac_cv_prog_RANLIB"
  519 if test -n "$RANLIB"; then
  520   echo "$ac_t""$RANLIB" 1>&6
  521 else
  522   echo "$ac_t""no" 1>&6
  523 fi
  524 
  525 ac_aux_dir=
  526 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  527   if test -f $ac_dir/install-sh; then
  528     ac_aux_dir=$ac_dir
  529     ac_install_sh="$ac_aux_dir/install-sh -c"
  530     break
  531   elif test -f $ac_dir/install.sh; then
  532     ac_aux_dir=$ac_dir
  533     ac_install_sh="$ac_aux_dir/install.sh -c"
  534     break
  535   fi
  536 done
  537 if test -z "$ac_aux_dir"; then
  538   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  539 fi
  540 ac_config_guess=$ac_aux_dir/config.guess
  541 ac_config_sub=$ac_aux_dir/config.sub
  542 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  543 
  544 # Find a good install program.  We prefer a C program (faster),
  545 # so one script is as good as another.  But avoid the broken or
  546 # incompatible versions:
  547 # SysV /etc/install, /usr/sbin/install
  548 # SunOS /usr/etc/install
  549 # IRIX /sbin/install
  550 # AIX /bin/install
  551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  553 # ./install, which can be erroneously created by make from ./install.sh.
  554 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  555 if test -z "$INSTALL"; then
  556 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  557   echo $ac_n "(cached) $ac_c" 1>&6
  558 else
  559     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  560   for ac_dir in $PATH; do
  561     # Account for people who put trailing slashes in PATH elements.
  562     case "$ac_dir/" in
  563     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  564     *)
  565       # OSF1 and SCO ODT 3.0 have their own names for install.
  566       for ac_prog in ginstall installbsd scoinst install; do
  567         if test -f $ac_dir/$ac_prog; then
  568       if test $ac_prog = install &&
  569             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  570         # AIX install.  It has an incompatible calling convention.
  571         # OSF/1 installbsd also uses dspmsg, but is usable.
  572         :
  573       else
  574         ac_cv_path_install="$ac_dir/$ac_prog -c"
  575         break 2
  576       fi
  577     fi
  578       done
  579       ;;
  580     esac
  581   done
  582   IFS="$ac_save_ifs"
  583   # As a last resort, use the slow shell script.
  584   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  585 fi
  586   INSTALL="$ac_cv_path_install"
  587 fi
  588 echo "$ac_t""$INSTALL" 1>&6
  589 
  590 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  591 # It thinks the first close brace ends the variable substitution.
  592 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  593 
  594 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  595 
  596 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  597 # On Suns, sometimes $CPP names a directory.
  598 if test -n "$CPP" && test -d "$CPP"; then
  599   CPP=
  600 fi
  601 if test -z "$CPP"; then
  602 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  603   echo $ac_n "(cached) $ac_c" 1>&6
  604 else
  605     # This must be in double quotes, not single quotes, because CPP may get
  606   # substituted into the Makefile and "${CC-cc}" will confuse make.
  607   CPP="${CC-cc} -E"
  608   # On the NeXT, cc -E runs the code through the compiler's parser,
  609   # not just through cpp.
  610   cat > conftest.$ac_ext <<EOF
  611 #line 612 "configure"
  612 #include "confdefs.h"
  613 #include <assert.h>
  614 Syntax Error
  615 EOF
  616 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  617 ac_err=`grep -v '^ *+' conftest.out`
  618 if test -z "$ac_err"; then
  619   :
  620 else
  621   echo "$ac_err" >&5
  622   rm -rf conftest*
  623   CPP="${CC-cc} -E -traditional-cpp"
  624   cat > conftest.$ac_ext <<EOF
  625 #line 626 "configure"
  626 #include "confdefs.h"
  627 #include <assert.h>
  628 Syntax Error
  629 EOF
  630 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  631 ac_err=`grep -v '^ *+' conftest.out`
  632 if test -z "$ac_err"; then
  633   :
  634 else
  635   echo "$ac_err" >&5
  636   rm -rf conftest*
  637   CPP=/lib/cpp
  638 fi
  639 rm -f conftest*
  640 fi
  641 rm -f conftest*
  642   ac_cv_prog_CPP="$CPP"
  643 fi
  644   CPP="$ac_cv_prog_CPP"
  645 else
  646   ac_cv_prog_CPP="$CPP"
  647 fi
  648 echo "$ac_t""$CPP" 1>&6
  649 
  650 for ac_hdr in string.h unistd.h
  651 do
  652 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  655   echo $ac_n "(cached) $ac_c" 1>&6
  656 else
  657   cat > conftest.$ac_ext <<EOF
  658 #line 659 "configure"
  659 #include "confdefs.h"
  660 #include <$ac_hdr>
  661 EOF
  662 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  663 ac_err=`grep -v '^ *+' conftest.out`
  664 if test -z "$ac_err"; then
  665   rm -rf conftest*
  666   eval "ac_cv_header_$ac_safe=yes"
  667 else
  668   echo "$ac_err" >&5
  669   rm -rf conftest*
  670   eval "ac_cv_header_$ac_safe=no"
  671 fi
  672 rm -f conftest*
  673 fi
  674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  675   echo "$ac_t""yes" 1>&6
  676     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  677   cat >> confdefs.h <<EOF
  678 #define $ac_tr_hdr 1
  679 EOF
  680  
  681 else
  682   echo "$ac_t""no" 1>&6
  683 fi
  684 done
  685 
  686 # If we cannot run a trivial program, we must be cross compiling.
  687 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  688 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  689   echo $ac_n "(cached) $ac_c" 1>&6
  690 else
  691   if test "$cross_compiling" = yes; then
  692   ac_cv_c_cross=yes
  693 else
  694 cat > conftest.$ac_ext <<EOF
  695 #line 696 "configure"
  696 #include "confdefs.h"
  697 main(){return(0);}
  698 EOF
  699 eval $ac_link
  700 if test -s conftest && (./conftest; exit) 2>/dev/null; then
  701   ac_cv_c_cross=no
  702 else
  703   ac_cv_c_cross=yes
  704 fi
  705 fi
  706 rm -fr conftest*
  707 fi
  708 cross_compiling=$ac_cv_c_cross
  709 echo "$ac_t""$ac_cv_c_cross" 1>&6
  710 
  711 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  712 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  713   echo $ac_n "(cached) $ac_c" 1>&6
  714 else
  715   cat > conftest.$ac_ext <<EOF
  716 #line 717 "configure"
  717 #include "confdefs.h"
  718 #include <stdlib.h>
  719 #include <stdarg.h>
  720 #include <string.h>
  721 #include <float.h>
  722 EOF
  723 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  724 ac_err=`grep -v '^ *+' conftest.out`
  725 if test -z "$ac_err"; then
  726   rm -rf conftest*
  727   ac_cv_header_stdc=yes
  728 else
  729   echo "$ac_err" >&5
  730   rm -rf conftest*
  731   ac_cv_header_stdc=no
  732 fi
  733 rm -f conftest*
  734 
  735 if test $ac_cv_header_stdc = yes; then
  736   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  737 cat > conftest.$ac_ext <<EOF
  738 #line 739 "configure"
  739 #include "confdefs.h"
  740 #include <string.h>
  741 EOF
  742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  743   egrep "memchr" >/dev/null 2>&1; then
  744   :
  745 else
  746   rm -rf conftest*
  747   ac_cv_header_stdc=no
  748 fi
  749 rm -f conftest*
  750 
  751 fi
  752 
  753 if test $ac_cv_header_stdc = yes; then
  754   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  755 cat > conftest.$ac_ext <<EOF
  756 #line 757 "configure"
  757 #include "confdefs.h"
  758 #include <stdlib.h>
  759 EOF
  760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  761   egrep "free" >/dev/null 2>&1; then
  762   :
  763 else
  764   rm -rf conftest*
  765   ac_cv_header_stdc=no
  766 fi
  767 rm -f conftest*
  768 
  769 fi
  770 
  771 if test $ac_cv_header_stdc = yes; then
  772   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  773 if test "$cross_compiling" = yes; then
  774   ac_cv_header_stdc=no
  775 else
  776 cat > conftest.$ac_ext <<EOF
  777 #line 778 "configure"
  778 #include "confdefs.h"
  779 #include <ctype.h>
  780 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  781 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  782 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  783 int main () { int i; for (i = 0; i < 256; i++)
  784 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  785 exit (0); }
  786 
  787 EOF
  788 eval $ac_link
  789 if test -s conftest && (./conftest; exit) 2>/dev/null; then
  790   :
  791 else
  792   ac_cv_header_stdc=no
  793 fi
  794 fi
  795 rm -fr conftest*
  796 fi
  797 fi
  798 echo "$ac_t""$ac_cv_header_stdc" 1>&6
  799 if test $ac_cv_header_stdc = yes; then
  800   cat >> confdefs.h <<\EOF
  801 #define STDC_HEADERS 1
  802 EOF
  803 
  804 fi
  805 
  806 
  807 trap '' 1 2 15
  808 cat > confcache <<\EOF
  809 # This file is a shell script that caches the results of configure
  810 # tests run on this system so they can be shared between configure
  811 # scripts and configure runs.  It is not useful on other systems.
  812 # If it contains results you don't want to keep, you may remove or edit it.
  813 #
  814 # By default, configure uses ./config.cache as the cache file,
  815 # creating it if it does not exist already.  You can give configure
  816 # the --cache-file=FILE option to use a different cache file; that is
  817 # what configure does when it calls configure scripts in
  818 # subdirectories, so they share the cache.
  819 # Giving --cache-file=/dev/null disables caching, for debugging configure.
  820 # config.status only pays attention to the cache file if you give it the
  821 # --recheck option to rerun configure.
  822 #
  823 EOF
  824 # Ultrix sh set writes to stderr and can't be redirected directly,
  825 # and sets the high bit in the cache file unless we assign to the vars.
  826 (set) 2>&1 |
  827   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  828   >> confcache
  829 if cmp -s $cache_file confcache; then
  830   :
  831 else
  832   if test -w $cache_file; then
  833     echo "updating cache $cache_file"
  834     cat confcache > $cache_file
  835   else
  836     echo "not updating unwritable cache $cache_file"
  837   fi
  838 fi
  839 rm -f confcache
  840 
  841 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  842 
  843 test "x$prefix" = xNONE && prefix=$ac_default_prefix
  844 # Let make expand exec_prefix.
  845 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  846 
  847 # Any assignment to VPATH causes Sun make to only execute
  848 # the first set of double-colon rules, so remove it if not needed.
  849 # If there is a colon in the path, we need to keep it.
  850 if test "x$srcdir" = x.; then
  851   ac_vpsub='/^[     ]*VPATH[    ]*=[^:]*$/d'
  852 fi
  853 
  854 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  855 
  856 # Transform confdefs.h into DEFS.
  857 # Protect against shell expansion while executing Makefile rules.
  858 # Protect against Makefile macro expansion.
  859 cat > conftest.defs <<\EOF
  860 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  861 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  862 s%\[%\\&%g
  863 s%\]%\\&%g
  864 s%\$%$$%g
  865 EOF
  866 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  867 rm -f conftest.defs
  868 
  869 
  870 # Without the "./", some shells look in PATH for config.status.
  871 : ${CONFIG_STATUS=./config.status}
  872 
  873 echo creating $CONFIG_STATUS
  874 rm -f $CONFIG_STATUS
  875 cat > $CONFIG_STATUS <<EOF
  876 #! /bin/sh
  877 # Generated automatically by configure.
  878 # Run this file to recreate the current configuration.
  879 # This directory was configured as follows,
  880 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  881 #
  882 # $0 $ac_configure_args
  883 #
  884 # Compiler output produced by configure, useful for debugging
  885 # configure, is in ./config.log if it exists.
  886 
  887 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  888 for ac_option
  889 do
  890   case "\$ac_option" in
  891   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  892     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  893     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  894   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  895     echo "$CONFIG_STATUS generated by autoconf version 2.4"
  896     exit 0 ;;
  897   -help | --help | --hel | --he | --h)
  898     echo "\$ac_cs_usage"; exit 0 ;;
  899   *) echo "\$ac_cs_usage"; exit 1 ;;
  900   esac
  901 done
  902 
  903 ac_given_srcdir=$srcdir
  904 ac_given_INSTALL="$INSTALL"
  905 
  906 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  907 
  908 # Protect against being on the right side of a sed subst in config.status. 
  909 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  910  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  911 $ac_vpsub
  912 $extrasub
  913 s%@CFLAGS@%$CFLAGS%g
  914 s%@CPPFLAGS@%$CPPFLAGS%g
  915 s%@CXXFLAGS@%$CXXFLAGS%g
  916 s%@DEFS@%$DEFS%g
  917 s%@LDFLAGS@%$LDFLAGS%g
  918 s%@LIBS@%$LIBS%g
  919 s%@exec_prefix@%$exec_prefix%g
  920 s%@prefix@%$prefix%g
  921 s%@program_transform_name@%$program_transform_name%g
  922 s%@installdata@%$installdata%g
  923 s%@uninstalldata@%$uninstalldata%g
  924 s%@termcapfile@%$termcapfile%g
  925 s%@CC@%$CC%g
  926 s%@RANLIB@%$RANLIB%g
  927 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  928 s%@INSTALL_DATA@%$INSTALL_DATA%g
  929 s%@CPP@%$CPP%g
  930 
  931 CEOF
  932 EOF
  933 cat >> $CONFIG_STATUS <<EOF
  934 
  935 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  936 EOF
  937 cat >> $CONFIG_STATUS <<\EOF
  938 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  939   # Support "outfile[:infile]", defaulting infile="outfile.in".
  940   case "$ac_file" in
  941   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  942        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  943   *) ac_file_in="${ac_file}.in" ;;
  944   esac
  945 
  946   # Adjust relative srcdir, etc. for subdirectories.
  947 
  948   # Remove last slash and all that follows it.  Not all systems have dirname.
  949   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  950   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  951     # The file is in a subdirectory.
  952     test ! -d "$ac_dir" && mkdir "$ac_dir"
  953     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  954     # A "../" for each directory in $ac_dir_suffix.
  955     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  956   else
  957     ac_dir_suffix= ac_dots=
  958   fi
  959 
  960   case "$ac_given_srcdir" in
  961   .)  srcdir=.
  962       if test -z "$ac_dots"; then top_srcdir=.
  963       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  964   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  965   *) # Relative path.
  966     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  967     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  968   esac
  969 
  970   case "$ac_given_INSTALL" in
  971   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  972   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  973   esac
  974   echo creating "$ac_file"
  975   rm -f "$ac_file"
  976   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  977   case "$ac_file" in
  978   *Makefile*) ac_comsub="1i\\
  979 # $configure_input" ;;
  980   *) ac_comsub= ;;
  981   esac
  982   sed -e "$ac_comsub
  983 s%@configure_input@%$configure_input%g
  984 s%@srcdir@%$srcdir%g
  985 s%@top_srcdir@%$top_srcdir%g
  986 s%@INSTALL@%$INSTALL%g
  987 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  988 fi; done
  989 rm -f conftest.subs
  990 
  991 
  992 
  993 exit 0
  994 EOF
  995 chmod +x $CONFIG_STATUS
  996 rm -fr confdefs* $ac_clean_files
  997 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  998