Warning, /tools/cyrus-imapd-makedepend/configure is written in an unsupported language. File is not indexed.
view on githubraw file Latest commit bf5846c3 on 2004-02-25 18:19:54 UTC
bf5846c3a1 Ed H*0001 #! /bin/sh
0002 # Copyright (c) 2000 Carnegie Mellon University. All rights reserved.
0003 #
0004 # Redistribution and use in source and binary forms, with or without
0005 # modification, are permitted provided that the following conditions
0006 # are met:
0007 #
0008 # 1. Redistributions of source code must retain the above copyright
0009 # notice, this list of conditions and the following disclaimer.
0010 #
0011 # 2. Redistributions in binary form must reproduce the above copyright
0012 # notice, this list of conditions and the following disclaimer in
0013 # the documentation and/or other materials provided with the
0014 # distribution.
0015 #
0016 # 3. The name "Carnegie Mellon University" must not be used to
0017 # endorse or promote products derived from this software without
0018 # prior written permission. For permission or any other legal
0019 # details, please contact
0020 # Office of Technology Transfer
0021 # Carnegie Mellon University
0022 # 5000 Forbes Avenue
0023 # Pittsburgh, PA 15213-3890
0024 # (412) 268-4387, fax: (412) 268-7395
0025 # tech-transfer@andrew.cmu.edu
0026 #
0027 # 4. Redistributions of any form whatsoever must retain the following
0028 # acknowledgment:
0029 # "This product includes software developed by Computing Services
0030 # at Carnegie Mellon University (http://www.cmu.edu/computing/)."
0031 #
0032 # CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
0033 # THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
0034 # AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
0035 # FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
0036 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
0037 # AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
0038 # OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0039 #
0040 # Guess values for system-dependent variables and create Makefiles.
0041 # Generated automatically using autoconf version 2.3
0042 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
0043 #
0044 # This configure script is free software; the Free Software Foundation
0045 # gives unlimited permission to copy, distribute and modify it.
0046
0047 # Defaults:
0048 ac_help=
0049 ac_default_prefix=/usr/local
0050 # Any additions from configure.in:
0051
0052 # Initialize some variables set by options.
0053 # The variables have the same names as the options, with
0054 # dashes changed to underlines.
0055 build=NONE
0056 cache_file=./config.cache
0057 exec_prefix=NONE
0058 host=NONE
0059 no_create=
0060 nonopt=NONE
0061 no_recursion=
0062 prefix=NONE
0063 program_prefix=NONE
0064 program_suffix=NONE
0065 program_transform_name=s,x,x,
0066 silent=
0067 site=
0068 srcdir=
0069 target=NONE
0070 verbose=
0071 x_includes=NONE
0072 x_libraries=NONE
0073
0074 # Initialize some other variables.
0075 subdirs=
0076
0077 ac_prev=
0078 for ac_option
0079 do
0080
0081 # If the previous option needs an argument, assign it.
0082 if test -n "$ac_prev"; then
0083 eval "$ac_prev=\$ac_option"
0084 ac_prev=
0085 continue
0086 fi
0087
0088 case "$ac_option" in
0089 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
0090 *) ac_optarg= ;;
0091 esac
0092
0093 # Accept the important Cygnus configure options, so we can diagnose typos.
0094
0095 case "$ac_option" in
0096
0097 -build | --build | --buil | --bui | --bu | --b)
0098 ac_prev=build ;;
0099 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
0100 build="$ac_optarg" ;;
0101
0102 -cache-file | --cache-file | --cache-fil | --cache-fi \
0103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
0104 ac_prev=cache_file ;;
0105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
0106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
0107 cache_file="$ac_optarg" ;;
0108
0109 -disable-* | --disable-*)
0110 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
0111 # Reject names that are not valid shell variable names.
0112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
0113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
0114 fi
0115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
0116 eval "enable_${ac_feature}=no" ;;
0117
0118 -enable-* | --enable-*)
0119 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
0120 # Reject names that are not valid shell variable names.
0121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
0122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
0123 fi
0124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
0125 case "$ac_option" in
0126 *=*) ;;
0127 *) ac_optarg=yes ;;
0128 esac
0129 eval "enable_${ac_feature}='$ac_optarg'" ;;
0130
0131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
0132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
0133 | --exec | --exe | --ex)
0134 ac_prev=exec_prefix ;;
0135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
0136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
0137 | --exec=* | --exe=* | --ex=*)
0138 exec_prefix="$ac_optarg" ;;
0139
0140 -gas | --gas | --ga | --g)
0141 # Obsolete; use --with-gas.
0142 with_gas=yes ;;
0143
0144 -help | --help | --hel | --he)
0145 # Omit some internal or obsolete options to make the list less imposing.
0146 # This message is too long to be a string in the A/UX 3.1 sh.
0147 cat << EOF
0148 Usage: configure [options] [host]
0149 Options: [defaults in brackets after descriptions]
0150 Configuration:
0151 --cache-file=FILE cache test results in FILE
0152 --help print this message
0153 --no-create do not create output files
0154 --quiet, --silent do not print \`checking...' messages
0155 --version print the version of autoconf that created configure
0156 Directory and file names:
0157 --prefix=PREFIX install architecture-independent files in PREFIX
0158 [$ac_default_prefix]
0159 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
0160 [same as prefix]
0161 --srcdir=DIR find the sources in DIR [configure dir or ..]
0162 --program-prefix=PREFIX prepend PREFIX to installed program names
0163 --program-suffix=SUFFIX append SUFFIX to installed program names
0164 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
0165 Host type:
0166 --build=BUILD configure for building on BUILD [BUILD=HOST]
0167 --host=HOST configure for HOST [guessed]
0168 --target=TARGET configure for TARGET [TARGET=HOST]
0169 Features and packages:
0170 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
0171 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
0172 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
0173 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
0174 --x-includes=DIR X include files are in DIR
0175 --x-libraries=DIR X library files are in DIR
0176 --enable and --with options recognized:$ac_help
0177 EOF
0178 exit 0 ;;
0179
0180 -host | --host | --hos | --ho)
0181 ac_prev=host ;;
0182 -host=* | --host=* | --hos=* | --ho=*)
0183 host="$ac_optarg" ;;
0184
0185 -nfp | --nfp | --nf)
0186 # Obsolete; use --without-fp.
0187 with_fp=no ;;
0188
0189 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
0190 | --no-cr | --no-c)
0191 no_create=yes ;;
0192
0193 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
0194 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
0195 no_recursion=yes ;;
0196
0197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
0198 ac_prev=prefix ;;
0199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
0200 prefix="$ac_optarg" ;;
0201
0202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
0203 | --program-pre | --program-pr | --program-p)
0204 ac_prev=program_prefix ;;
0205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
0206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
0207 program_prefix="$ac_optarg" ;;
0208
0209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
0210 | --program-suf | --program-su | --program-s)
0211 ac_prev=program_suffix ;;
0212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
0213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
0214 program_suffix="$ac_optarg" ;;
0215
0216 -program-transform-name | --program-transform-name \
0217 | --program-transform-nam | --program-transform-na \
0218 | --program-transform-n | --program-transform- \
0219 | --program-transform | --program-transfor \
0220 | --program-transfo | --program-transf \
0221 | --program-trans | --program-tran \
0222 | --progr-tra | --program-tr | --program-t)
0223 ac_prev=program_transform_name ;;
0224 -program-transform-name=* | --program-transform-name=* \
0225 | --program-transform-nam=* | --program-transform-na=* \
0226 | --program-transform-n=* | --program-transform-=* \
0227 | --program-transform=* | --program-transfor=* \
0228 | --program-transfo=* | --program-transf=* \
0229 | --program-trans=* | --program-tran=* \
0230 | --progr-tra=* | --program-tr=* | --program-t=*)
0231 program_transform_name="$ac_optarg" ;;
0232
0233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
0234 | -silent | --silent | --silen | --sile | --sil)
0235 silent=yes ;;
0236
0237 -site | --site | --sit)
0238 ac_prev=site ;;
0239 -site=* | --site=* | --sit=*)
0240 site="$ac_optarg" ;;
0241
0242 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
0243 ac_prev=srcdir ;;
0244 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
0245 srcdir="$ac_optarg" ;;
0246
0247 -target | --target | --targe | --targ | --tar | --ta | --t)
0248 ac_prev=target ;;
0249 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
0250 target="$ac_optarg" ;;
0251
0252 -v | -verbose | --verbose | --verbos | --verbo | --verb)
0253 verbose=yes ;;
0254
0255 -version | --version | --versio | --versi | --vers)
0256 echo "configure generated by autoconf version 2.3"
0257 exit 0 ;;
0258
0259 -with-* | --with-*)
0260 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
0261 # Reject names that are not valid shell variable names.
0262 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
0263 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
0264 fi
0265 ac_package=`echo $ac_package| sed 's/-/_/g'`
0266 case "$ac_option" in
0267 *=*) ;;
0268 *) ac_optarg=yes ;;
0269 esac
0270 eval "with_${ac_package}='$ac_optarg'" ;;
0271
0272 -without-* | --without-*)
0273 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
0274 # Reject names that are not valid shell variable names.
0275 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
0276 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
0277 fi
0278 ac_package=`echo $ac_package| sed 's/-/_/g'`
0279 eval "with_${ac_package}=no" ;;
0280
0281 --x)
0282 # Obsolete; use --with-x.
0283 with_x=yes ;;
0284
0285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
0286 | --x-incl | --x-inc | --x-in | --x-i)
0287 ac_prev=x_includes ;;
0288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
0289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
0290 x_includes="$ac_optarg" ;;
0291
0292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
0293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
0294 ac_prev=x_libraries ;;
0295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
0296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
0297 x_libraries="$ac_optarg" ;;
0298
0299 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
0300 ;;
0301
0302 *)
0303 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
0304 echo "configure: warning: $ac_option: invalid host type" 1>&2
0305 fi
0306 if test "x$nonopt" != xNONE; then
0307 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
0308 fi
0309 nonopt="$ac_option"
0310 ;;
0311
0312 esac
0313 done
0314
0315 if test -n "$ac_prev"; then
0316 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
0317 fi
0318
0319 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
0320
0321 # File descriptor usage:
0322 # 0 standard input
0323 # 1 file creation
0324 # 2 errors and warnings
0325 # 3 some systems may open it to /dev/tty
0326 # 4 used on the Kubota Titan
0327 # 6 checking for... messages and results
0328 # 5 compiler messages saved in config.log
0329 if test "$silent" = yes; then
0330 exec 6>/dev/null
0331 else
0332 exec 6>&1
0333 fi
0334 exec 5>./config.log
0335
0336 echo "\
0337 This file contains any messages produced by compilers while
0338 running configure, to aid debugging if configure makes a mistake.
0339 " 1>&5
0340
0341 # Strip out --no-create and --no-recursion so they do not pile up.
0342 # Also quote any args containing shell metacharacters.
0343 ac_configure_args=
0344 for ac_arg
0345 do
0346 case "$ac_arg" in
0347 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
0348 | --no-cr | --no-c) ;;
0349 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
0350 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
0351 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
0352 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
0353 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
0354 esac
0355 done
0356
0357 # NLS nuisances.
0358 # Only set LANG and LC_ALL to C if already set.
0359 # These must not be set unconditionally because not all systems understand
0360 # e.g. LANG=C (notably SCO).
0361 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
0362 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
0363
0364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
0365 rm -rf conftest* confdefs.h
0366 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
0367 echo > confdefs.h
0368
0369 # A filename unique to this package, relative to the directory that
0370 # configure is in, which we can look for to find out if srcdir is correct.
0371 ac_unique_file=cppsetup.c
0372
0373 # Find the source files, if location was not specified.
0374 if test -z "$srcdir"; then
0375 ac_srcdir_defaulted=yes
0376 # Try the directory containing this script, then its parent.
0377 ac_prog=$0
0378 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
0379 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
0380 srcdir=$ac_confdir
0381 if test ! -r $srcdir/$ac_unique_file; then
0382 srcdir=..
0383 fi
0384 else
0385 ac_srcdir_defaulted=no
0386 fi
0387 if test ! -r $srcdir/$ac_unique_file; then
0388 if test "$ac_srcdir_defaulted" = yes; then
0389 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
0390 else
0391 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
0392 fi
0393 fi
0394 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
0395
0396 # Prefer explicitly selected file to automatically selected ones.
0397 if test -z "$CONFIG_SITE"; then
0398 if test "x$prefix" != xNONE; then
0399 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
0400 else
0401 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
0402 fi
0403 fi
0404 for ac_site_file in $CONFIG_SITE; do
0405 if test -r "$ac_site_file"; then
0406 echo "loading site script $ac_site_file"
0407 . "$ac_site_file"
0408 fi
0409 done
0410
0411 if test -r "$cache_file"; then
0412 echo "loading cache $cache_file"
0413 . $cache_file
0414 else
0415 echo "creating cache $cache_file"
0416 > $cache_file
0417 fi
0418
0419 ac_ext=c
0420 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
0421 ac_cpp='$CPP $CPPFLAGS'
0422 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
0423 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
0424
0425 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
0426 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
0427 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
0428 ac_n= ac_c='
0429 ' ac_t=' '
0430 else
0431 ac_n=-n ac_c= ac_t=
0432 fi
0433 else
0434 ac_n= ac_c='\c' ac_t=
0435 fi
0436
0437
0438 # Extract the first word of "gcc", so it can be a program name with args.
0439 set dummy gcc; ac_word=$2
0440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0441 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
0442 echo $ac_n "(cached) $ac_c" 1>&6
0443 else
0444 if test -n "$CC"; then
0445 ac_cv_prog_CC="$CC" # Let the user override the test.
0446 else
0447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
0448 for ac_dir in $PATH; do
0449 test -z "$ac_dir" && ac_dir=.
0450 if test -f $ac_dir/$ac_word; then
0451 ac_cv_prog_CC="gcc"
0452 break
0453 fi
0454 done
0455 IFS="$ac_save_ifs"
0456 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
0457 fi
0458 fi
0459 CC="$ac_cv_prog_CC"
0460 if test -n "$CC"; then
0461 echo "$ac_t""$CC" 1>&6
0462 else
0463 echo "$ac_t""no" 1>&6
0464 fi
0465
0466
0467 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
0468 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
0469 echo $ac_n "(cached) $ac_c" 1>&6
0470 else
0471 cat > conftest.c <<EOF
0472 #ifdef __GNUC__
0473 yes;
0474 #endif
0475 EOF
0476 if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
0477 ac_cv_prog_gcc=yes
0478 else
0479 ac_cv_prog_gcc=no
0480 fi
0481 fi
0482 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
0483 if test $ac_cv_prog_gcc = yes; then
0484 GCC=yes
0485 if test "${CFLAGS+set}" != set; then
0486 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
0487 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
0488 echo $ac_n "(cached) $ac_c" 1>&6
0489 else
0490 echo 'void f(){}' > conftest.c
0491 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
0492 ac_cv_prog_gcc_g=yes
0493 else
0494 ac_cv_prog_gcc_g=no
0495 fi
0496 rm -f conftest*
0497
0498 fi
0499 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
0500 if test $ac_cv_prog_gcc_g = yes; then
0501 CFLAGS="-g -O"
0502 else
0503 CFLAGS="-O"
0504 fi
0505 fi
0506 else
0507 GCC=
0508 test "${CFLAGS+set}" = set || CFLAGS="-g"
0509 fi
0510
0511 ac_aux_dir=
0512 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
0513 if test -f $ac_dir/install-sh; then
0514 ac_aux_dir=$ac_dir
0515 ac_install_sh="$ac_aux_dir/install-sh -c"
0516 break
0517 elif test -f $ac_dir/install.sh; then
0518 ac_aux_dir=$ac_dir
0519 ac_install_sh="$ac_aux_dir/install.sh -c"
0520 break
0521 fi
0522 done
0523 if test -z "$ac_aux_dir"; then
0524 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
0525 fi
0526 ac_config_guess=$ac_aux_dir/config.guess
0527 ac_config_sub=$ac_aux_dir/config.sub
0528 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
0529
0530 # Find a good install program. We prefer a C program (faster),
0531 # so one script is as good as another. But avoid the broken or
0532 # incompatible versions:
0533 # SysV /etc/install, /usr/sbin/install
0534 # SunOS /usr/etc/install
0535 # IRIX /sbin/install
0536 # AIX /bin/install
0537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
0538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
0539 # ./install, which can be erroneously created by make from ./install.sh.
0540 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
0541 if test -z "$INSTALL"; then
0542 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
0543 echo $ac_n "(cached) $ac_c" 1>&6
0544 else
0545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
0546 for ac_dir in $PATH; do
0547 # Account for people who put trailing slashes in PATH elements.
0548 case "$ac_dir/" in
0549 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
0550 *)
0551 # OSF1 and SCO ODT 3.0 have their own names for install.
0552 for ac_prog in ginstall installbsd scoinst install; do
0553 if test -f $ac_dir/$ac_prog; then
0554 if test $ac_prog = install &&
0555 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
0556 # AIX install. It has an incompatible calling convention.
0557 # OSF/1 installbsd also uses dspmsg, but is usable.
0558 :
0559 else
0560 ac_cv_path_install="$ac_dir/$ac_prog -c"
0561 break 2
0562 fi
0563 fi
0564 done
0565 ;;
0566 esac
0567 done
0568 IFS="$ac_save_ifs"
0569 # As a last resort, use the slow shell script.
0570 test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
0571 fi
0572 INSTALL="$ac_cv_path_install"
0573 fi
0574 echo "$ac_t""$INSTALL" 1>&6
0575
0576 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
0577 # It thinks the first close brace ends the variable substitution.
0578 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
0579
0580 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
0581
0582 # Extract the first word of "ranlib", so it can be a program name with args.
0583 set dummy ranlib; ac_word=$2
0584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0585 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
0586 echo $ac_n "(cached) $ac_c" 1>&6
0587 else
0588 if test -n "$RANLIB"; then
0589 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
0590 else
0591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
0592 for ac_dir in $PATH; do
0593 test -z "$ac_dir" && ac_dir=.
0594 if test -f $ac_dir/$ac_word; then
0595 ac_cv_prog_RANLIB="ranlib"
0596 break
0597 fi
0598 done
0599 IFS="$ac_save_ifs"
0600 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
0601 fi
0602 fi
0603 RANLIB="$ac_cv_prog_RANLIB"
0604 if test -n "$RANLIB"; then
0605 echo "$ac_t""$RANLIB" 1>&6
0606 else
0607 echo "$ac_t""no" 1>&6
0608 fi
0609
0610 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
0611 set dummy ${MAKE-make}; ac_make=$2
0612 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
0613 echo $ac_n "(cached) $ac_c" 1>&6
0614 else
0615 cat > conftestmake <<\EOF
0616 all:
0617 @echo 'ac_maketemp="${MAKE}"'
0618 EOF
0619 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
0620 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
0621 if test -n "$ac_maketemp"; then
0622 eval ac_cv_prog_make_${ac_make}_set=yes
0623 else
0624 eval ac_cv_prog_make_${ac_make}_set=no
0625 fi
0626 rm -f conftestmake
0627 fi
0628 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
0629 echo "$ac_t""yes" 1>&6
0630 SET_MAKE=
0631 else
0632 echo "$ac_t""no" 1>&6
0633 SET_MAKE="MAKE=${MAKE-make}"
0634 fi
0635
0636 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
0637 # On Suns, sometimes $CPP names a directory.
0638 if test -n "$CPP" && test -d "$CPP"; then
0639 CPP=
0640 fi
0641 if test -z "$CPP"; then
0642 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
0643 echo $ac_n "(cached) $ac_c" 1>&6
0644 else
0645 # This must be in double quotes, not single quotes, because CPP may get
0646 # substituted into the Makefile and "${CC-cc}" will confuse make.
0647 CPP="${CC-cc} -E"
0648 # On the NeXT, cc -E runs the code through the compiler's parser,
0649 # not just through cpp.
0650 cat > conftest.$ac_ext <<EOF
0651 #line 615 "configure"
0652 #include "confdefs.h"
0653 #include <assert.h>
0654 Syntax Error
0655 EOF
0656 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0657 ac_err=`grep -v '^ *+' conftest.out`
0658 if test -z "$ac_err"; then
0659 :
0660 else
0661 echo "$ac_err" >&5
0662 rm -rf conftest*
0663 CPP="${CC-cc} -E -traditional-cpp"
0664 cat > conftest.$ac_ext <<EOF
0665 #line 629 "configure"
0666 #include "confdefs.h"
0667 #include <assert.h>
0668 Syntax Error
0669 EOF
0670 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0671 ac_err=`grep -v '^ *+' conftest.out`
0672 if test -z "$ac_err"; then
0673 :
0674 else
0675 echo "$ac_err" >&5
0676 rm -rf conftest*
0677 CPP=/lib/cpp
0678 fi
0679 rm -f conftest*
0680 fi
0681 rm -f conftest*
0682 ac_cv_prog_CPP="$CPP"
0683 fi
0684 fi
0685 CPP="$ac_cv_prog_CPP"
0686 echo "$ac_t""$CPP" 1>&6
0687
0688 for ac_hdr in stdarg.h
0689 do
0690 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
0691 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
0693 echo $ac_n "(cached) $ac_c" 1>&6
0694 else
0695 cat > conftest.$ac_ext <<EOF
0696 #line 660 "configure"
0697 #include "confdefs.h"
0698 #include <$ac_hdr>
0699 EOF
0700 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0701 ac_err=`grep -v '^ *+' conftest.out`
0702 if test -z "$ac_err"; then
0703 rm -rf conftest*
0704 eval "ac_cv_header_$ac_safe=yes"
0705 else
0706 echo "$ac_err" >&5
0707 rm -rf conftest*
0708 eval "ac_cv_header_$ac_safe=no"
0709 fi
0710 rm -f conftest*
0711 fi
0712 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
0713 echo "$ac_t""yes" 1>&6
0714 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
0715 cat >> confdefs.h <<EOF
0716 #define $ac_tr_hdr 1
0717 EOF
0718
0719 else
0720 echo "$ac_t""no" 1>&6
0721 fi
0722 done
0723
0724
0725
0726
0727 trap '' 1 2 15
0728 cat > confcache <<\EOF
0729 # This file is a shell script that caches the results of configure
0730 # tests run on this system so they can be shared between configure
0731 # scripts and configure runs. It is not useful on other systems.
0732 # If it contains results you don't want to keep, you may remove or edit it.
0733 #
0734 # By default, configure uses ./config.cache as the cache file,
0735 # creating it if it does not exist already. You can give configure
0736 # the --cache-file=FILE option to use a different cache file; that is
0737 # what configure does when it calls configure scripts in
0738 # subdirectories, so they share the cache.
0739 # Giving --cache-file=/dev/null disables caching, for debugging configure.
0740 # config.status only pays attention to the cache file if you give it the
0741 # --recheck option to rerun configure.
0742 #
0743 EOF
0744 # Ultrix sh set writes to stderr and can't be redirected directly,
0745 # and sets the high bit in the cache file unless we assign to the vars.
0746 (set) 2>&1 |
0747 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
0748 >> confcache
0749 if cmp -s $cache_file confcache; then
0750 :
0751 else
0752 if test -w $cache_file; then
0753 echo "updating cache $cache_file"
0754 cat confcache > $cache_file
0755 else
0756 echo "not updating unwritable cache $cache_file"
0757 fi
0758 fi
0759 rm -f confcache
0760
0761 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
0762
0763 test "x$prefix" = xNONE && prefix=$ac_default_prefix
0764 # Let make expand exec_prefix.
0765 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
0766
0767 # Any assignment to VPATH causes Sun make to only execute
0768 # the first set of double-colon rules, so remove it if not needed.
0769 # If there is a colon in the path, we need to keep it.
0770 if test "x$srcdir" = x.; then
0771 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
0772 fi
0773
0774 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
0775
0776 # Transform confdefs.h into DEFS.
0777 # Protect against shell expansion while executing Makefile rules.
0778 # Protect against Makefile macro expansion.
0779 cat > conftest.defs <<\EOF
0780 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
0781 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
0782 s%\[%\\&%g
0783 s%\]%\\&%g
0784 s%\$%$$%g
0785 EOF
0786 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
0787 rm -f conftest.defs
0788
0789
0790 # Without the "./", some shells look in PATH for config.status.
0791 : ${CONFIG_STATUS=./config.status}
0792
0793 echo creating $CONFIG_STATUS
0794 rm -f $CONFIG_STATUS
0795 cat > $CONFIG_STATUS <<EOF
0796 #! /bin/sh
0797 # Generated automatically by configure.
0798 # Run this file to recreate the current configuration.
0799 # This directory was configured as follows,
0800 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
0801 #
0802 # $0 $ac_configure_args
0803 #
0804 # Compiler output produced by configure, useful for debugging
0805 # configure, is in ./config.log if it exists.
0806
0807 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
0808 for ac_option
0809 do
0810 case "\$ac_option" in
0811 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
0812 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
0813 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
0814 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
0815 echo "$CONFIG_STATUS generated by autoconf version 2.3"
0816 exit 0 ;;
0817 -help | --help | --hel | --he | --h)
0818 echo "\$ac_cs_usage"; exit 0 ;;
0819 *) echo "\$ac_cs_usage"; exit 1 ;;
0820 esac
0821 done
0822
0823 ac_given_srcdir=$srcdir
0824 ac_given_INSTALL="$INSTALL"
0825
0826 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
0827
0828 # Protect against being on the right side of a sed subst in config.status.
0829 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
0830 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
0831 $ac_vpsub
0832 $extrasub
0833 s%@CFLAGS@%$CFLAGS%g
0834 s%@CPPFLAGS@%$CPPFLAGS%g
0835 s%@CXXFLAGS@%$CXXFLAGS%g
0836 s%@DEFS@%$DEFS%g
0837 s%@LDFLAGS@%$LDFLAGS%g
0838 s%@LIBS@%$LIBS%g
0839 s%@exec_prefix@%$exec_prefix%g
0840 s%@prefix@%$prefix%g
0841 s%@program_transform_name@%$program_transform_name%g
0842 s%@CC@%$CC%g
0843 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
0844 s%@INSTALL_DATA@%$INSTALL_DATA%g
0845 s%@RANLIB@%$RANLIB%g
0846 s%@SET_MAKE@%$SET_MAKE%g
0847 s%@CPP@%$CPP%g
0848 s%@DEPLIBS@%$DEPLIBS%g
0849
0850 CEOF
0851 EOF
0852 cat >> $CONFIG_STATUS <<EOF
0853
0854 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
0855 EOF
0856 cat >> $CONFIG_STATUS <<\EOF
0857 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
0858 # Support "outfile[:infile]", defaulting infile="outfile.in".
0859 case "$ac_file" in
0860 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
0861 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
0862 *) ac_file_in="${ac_file}.in" ;;
0863 esac
0864
0865 # Adjust relative srcdir, etc. for subdirectories.
0866
0867 # Remove last slash and all that follows it. Not all systems have dirname.
0868 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
0869 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
0870 # The file is in a subdirectory.
0871 test ! -d "$ac_dir" && mkdir "$ac_dir"
0872 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
0873 # A "../" for each directory in $ac_dir_suffix.
0874 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
0875 else
0876 ac_dir_suffix= ac_dots=
0877 fi
0878
0879 case "$ac_given_srcdir" in
0880 .) srcdir=.
0881 if test -z "$ac_dots"; then top_srcdir=.
0882 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
0883 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
0884 *) # Relative path.
0885 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
0886 top_srcdir="$ac_dots$ac_given_srcdir" ;;
0887 esac
0888
0889 case "$ac_given_INSTALL" in
0890 [/$]*) INSTALL="$ac_given_INSTALL" ;;
0891 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
0892 esac
0893 echo creating "$ac_file"
0894 rm -f "$ac_file"
0895 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
0896 case "$ac_file" in
0897 *Makefile*) ac_comsub="1i\\
0898 # $configure_input" ;;
0899 *) ac_comsub= ;;
0900 esac
0901 sed -e "$ac_comsub
0902 s%@configure_input@%$configure_input%g
0903 s%@srcdir@%$srcdir%g
0904 s%@top_srcdir@%$top_srcdir%g
0905 s%@INSTALL@%$INSTALL%g
0906 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
0907 fi; done
0908 rm -f conftest.subs
0909
0910
0911
0912 exit 0
0913 EOF
0914 chmod +x $CONFIG_STATUS
0915 rm -fr confdefs* $ac_clean_files
0916 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
0917