3 # From configure.in Id: configure.in,v 1.72 1995/01/30 07:26:57 roland Exp roland
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.1.1
6 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
16 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
18 --with-gnu-binutils if using GNU binutils (as and ld)"
20 --with-gnu-ld if using GNU ld (in the binutils package)"
22 --with-gnu-as if using GNU as (in the binutils package)"
24 --with-elf if using the ELF object format"
26 --with-weak-symbols if weak symbols are available in as and ld"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
32 cache_file=./config.cache
41 program_transform_name=s,x,x,
50 # Initialize some other variables.
57 # If the previous option needs an argument, assign it.
58 if test -n "$ac_prev"; then
59 eval "$ac_prev=\$ac_option"
65 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
69 # Accept the important Cygnus configure options, so we can diagnose typos.
73 -build | --build | --buil | --bui | --bu | --b)
75 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
78 -cache-file | --cache-file | --cache-fil | --cache-fi \
79 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
81 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
82 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
83 cache_file="$ac_optarg" ;;
85 -disable-* | --disable-*)
86 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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; }
91 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
92 eval "enable_${ac_feature}=no" ;;
94 -enable-* | --enable-*)
95 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
96 # Reject names that are not valid shell variable names.
97 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
98 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
100 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
105 eval "enable_${ac_feature}='$ac_optarg'" ;;
107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
109 | --exec | --exe | --ex)
110 ac_prev=exec_prefix ;;
111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
113 | --exec=* | --exe=* | --ex=*)
114 exec_prefix="$ac_optarg" ;;
116 -gas | --gas | --ga | --g)
117 # Obsolete; use --with-gas.
120 -help | --help | --hel | --he)
121 # Omit some internal or obsolete options to make the list less imposing.
122 # This message is too long to be a string in the A/UX 3.1 sh.
124 Usage: configure [options] [host]
125 Options: [defaults in brackets after descriptions]
127 --cache-file=FILE cache test results in FILE
128 --help print this message
129 --no-create do not create output files
130 --quiet, --silent do not print \`checking...' messages
131 --version print the version of autoconf that created configure
132 Directory and file names:
133 --prefix=PREFIX install architecture-independent files in PREFIX
135 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
137 --srcdir=DIR find the sources in DIR [configure dir or ..]
138 --program-prefix=PREFIX prepend PREFIX to installed program names
139 --program-suffix=SUFFIX append SUFFIX to installed program names
140 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
142 --build=BUILD configure for building on BUILD [BUILD=HOST]
143 --host=HOST configure for HOST [guessed]
144 --target=TARGET configure for TARGET [TARGET=HOST]
145 Features and packages:
146 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
147 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
148 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
149 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
150 --x-includes=DIR X include files are in DIR
151 --x-libraries=DIR X library files are in DIR
152 --enable and --with options recognized:$ac_help
156 -host | --host | --hos | --ho)
158 -host=* | --host=* | --hos=* | --ho=*)
162 # Obsolete; use --without-fp.
165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
176 prefix="$ac_optarg" ;;
178 -program-prefix | --program-prefix | --program-prefi | --program-pref \
179 | --program-pre | --program-pr | --program-p)
180 ac_prev=program_prefix ;;
181 -program-prefix=* | --program-prefix=* | --program-prefi=* \
182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
183 program_prefix="$ac_optarg" ;;
185 -program-suffix | --program-suffix | --program-suffi | --program-suff \
186 | --program-suf | --program-su | --program-s)
187 ac_prev=program_suffix ;;
188 -program-suffix=* | --program-suffix=* | --program-suffi=* \
189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
190 program_suffix="$ac_optarg" ;;
192 -program-transform-name | --program-transform-name \
193 | --program-transform-nam | --program-transform-na \
194 | --program-transform-n | --program-transform- \
195 | --program-transform | --program-transfor \
196 | --program-transfo | --program-transf \
197 | --program-trans | --program-tran \
198 | --progr-tra | --program-tr | --program-t)
199 ac_prev=program_transform_name ;;
200 -program-transform-name=* | --program-transform-name=* \
201 | --program-transform-nam=* | --program-transform-na=* \
202 | --program-transform-n=* | --program-transform-=* \
203 | --program-transform=* | --program-transfor=* \
204 | --program-transfo=* | --program-transf=* \
205 | --program-trans=* | --program-tran=* \
206 | --progr-tra=* | --program-tr=* | --program-t=*)
207 program_transform_name="$ac_optarg" ;;
209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
210 | -silent | --silent | --silen | --sile | --sil)
213 -site | --site | --sit)
215 -site=* | --site=* | --sit=*)
218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
221 srcdir="$ac_optarg" ;;
223 -target | --target | --targe | --targ | --tar | --ta | --t)
225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
226 target="$ac_optarg" ;;
228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
231 -version | --version | --versio | --versi | --vers)
232 echo "configure generated by autoconf version 2.1.1"
236 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
237 # Reject names that are not valid shell variable names.
238 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
239 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
241 ac_package=`echo $ac_package| sed 's/-/_/g'`
246 eval "with_${ac_package}='$ac_optarg'" ;;
248 -without-* | --without-*)
249 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
250 # Reject names that are not valid shell variable names.
251 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
252 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
254 ac_package=`echo $ac_package| sed 's/-/_/g'`
255 eval "with_${ac_package}=no" ;;
258 # Obsolete; use --with-x.
261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
262 | --x-incl | --x-inc | --x-in | --x-i)
263 ac_prev=x_includes ;;
264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
266 x_includes="$ac_optarg" ;;
268 -x-libraries | --x-libraries | --x-librarie | --x-librari \
269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
270 ac_prev=x_libraries ;;
271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
273 x_libraries="$ac_optarg" ;;
275 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
279 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
280 echo "configure: warning: $ac_option: invalid host type" 1>&2
282 if test "x$nonopt" != xNONE; then
283 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
291 if test -n "$ac_prev"; then
292 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
295 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
297 # File descriptor usage:
300 # 2 errors and warnings
301 # 3 some systems may open it to /dev/tty
302 # 4 used on the Kubota Titan
303 # 4 checking for... messages and results
304 # 5 compiler messages saved in config.log
305 if test "$silent" = yes; then
313 This file contains any messages produced by compilers while
314 running configure, to aid debugging if configure makes a mistake.
317 # Strip out --no-create and --no-recursion so they do not pile up.
318 # Also quote any args containing shell metacharacters.
323 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
324 | --no-cr | --no-c) ;;
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
327 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
328 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
329 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
334 # Only set LANG and LC_ALL to C if already set.
335 # These must not be set unconditionally because not all systems understand
336 # e.g. LANG=C (notably SCO).
337 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
338 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
341 rm -rf conftest* confdefs.h
342 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
345 # A filename unique to this package, relative to the directory that
346 # configure is in, which we can look for to find out if srcdir is correct.
347 ac_unique_file=features.h
349 # Find the source files, if location was not specified.
350 if test -z "$srcdir"; then
351 ac_srcdir_defaulted=yes
352 # Try the directory containing this script, then its parent.
354 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
355 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
357 if test ! -r $srcdir/$ac_unique_file; then
361 ac_srcdir_defaulted=no
363 if test ! -r $srcdir/$ac_unique_file; then
364 if test "$ac_srcdir_defaulted" = yes; then
365 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
367 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
370 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
372 # Prefer explicitly selected file to automatically selected ones.
373 if test -z "$CONFIG_SITE"; then
374 if test "x$prefix" != xNONE; then
375 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
377 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
380 for ac_site_file in $CONFIG_SITE; do
381 if test -r "$ac_site_file"; then
382 echo "loading site script $ac_site_file"
387 if test -r "$cache_file"; then
388 echo "loading cache $cache_file"
391 echo "creating cache $cache_file"
396 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
397 ac_cpp='$CPP $CPPFLAGS'
398 ac_compile='${CC-cc} conftest.$ac_ext $CFLAGS $CPPFLAGS -c 1>&5 2>&5'
399 ac_link='${CC-cc} conftest.$ac_ext $CFLAGS $CPPFLAGS $LDFLAGS -o conftest $LIBS 1>&5 2>&5'
401 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
402 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
403 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
410 ac_n= ac_c='\c' ac_t=
413 if test -r /vmunix; then
414 kernel_id=`strings /vmunix | grep UNIX`
415 elif test -r /dynix; then
416 kernel_id=`strings /dynix | grep DYNIX`
424 # This will get text that should go into config.make.
427 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
428 # Check whether --with-gmp or --without-gmp was given.
430 if test -n "$withval"; then
432 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
434 *) config_vars="$config_vars
435 gmp-srcdir = $withval" ;;
441 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
442 withval="$with_gnu_binutils"
443 if test -n "$withval"; then
449 # Check whether --with-gnu-ld or --without-gnu-ld was given.
450 withval="$with_gnu_ld"
451 if test -n "$withval"; then
457 # Check whether --with-gnu-as or --without-gnu-as was given.
458 withval="$with_gnu_as"
459 if test -n "$withval"; then
465 test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes
466 # Check whether --with-elf or --without-elf was given.
468 if test -n "$withval"; then
474 # Check whether --with-weak-symbols or --without-weak-symbols was given.
475 withval="$with_weak_symbols"
476 if test -n "$withval"; then
484 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
485 if test -f $ac_dir/install-sh; then
487 ac_install_sh="$ac_aux_dir/install-sh -c"
489 elif test -f $ac_dir/install.sh; then
491 ac_install_sh="$ac_aux_dir/install.sh -c"
495 if test -z "$ac_aux_dir"; then
496 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
498 ac_config_guess=$ac_aux_dir/config.guess
499 ac_config_sub=$ac_aux_dir/config.sub
500 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
503 # Make sure we can run config.sub.
504 if $ac_config_sub sun4 >/dev/null 2>&1; then :
505 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
508 echo $ac_n "checking host system type""... $ac_c" 1>&4
511 case "$host_alias" in
515 if host_alias=`$ac_config_guess`; then :
516 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
518 *) host_alias=$nonopt ;;
522 host=`$ac_config_sub $host_alias`
523 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
524 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
525 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
526 echo "$ac_t""$host" 1>&4
528 # We keep the original values in `$config_*' and never modify them, so we
529 # can write them unchanged into config.make. Everything else uses
530 # $machine, $vendor, and $os, and changes them whenever convenient.
531 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
533 sysdep_dir=$srcdir/sysdeps
534 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&4
535 if eval "test \"`echo '${'libc_cv_sysdirs'+set}'`\" = set"; then
536 echo $ac_n "(cached) $ac_c" 1>&4
538 machine=$config_machine
539 vendor=$config_vendor
542 # Expand the configuration machine name into a subdirectory by architecture
543 # type and particular chip.
546 machine=i386/$machine ;;
548 machine=sparc/$machine ;;
550 machine=m68k/m68020 ;;
552 machine=m68k/$machine ;;
554 machine=m88k/m88100 ;;
556 machine=m88k/$machine ;;
558 machine=mips/mips64/$machine ;;
560 machine=mips/$machine ;;
563 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
564 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
570 base_os=unix/bsd/bsd4.4 ;;
571 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
573 linux* | sysv* | isc* | esix* | sco* | minix* | irix4*)
576 base_os=unix/sysv/sysv4 ;;
578 base_os=standalone ;;
583 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
586 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
590 o=`echo $tail | sed 's/[0-9]*$//'`
591 if test $o != $tail; then
595 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
598 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
604 # For sparc/sparc9, try sparc/sparc9 and then sparc.
607 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
614 # Find what sysdep directories exist.
616 for b in $base ''; do
617 for m0 in $mach ''; do
618 for v in /$vendor ''; do
619 for o in /$ostry ''; do
620 for m in $mach ''; do
622 if test -d $sysdep_dir$try; then
623 sysnames="$sysnames $try"
624 { test -n "$o" || test -n "$b"; } && os_used=t
625 { test -n "$m" || test -n "$m0"; } && machine_used=t
633 if test -z "$os_used" && test "$os" != none; then
634 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
636 if test -z "$machine_used" && test "$machine" != none; then
637 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
640 # We have now validated the configuration.
642 # Remove the leading slashes.
643 sysnames="`echo $sysnames | sed -e 's@^/@@' -e 's@ /@ @g'`"
645 # Prepend the machine's FPU directory unless --without-fp.
646 if test "$with_fp" = no; then
649 if test -d $sysdep_dir$m/fpu; then
650 fpu_dirs="$fpu_dirs $m/fpu"
653 sysnames="`echo $fpu_dirs | sed -e 's,^/,,' -e 's, /,,g'` $sysnames"
656 # Expand the list of system names into a full list of directories
657 # from each element's parent name and Implies file (if present).
659 while test $# -gt 0; do
663 if test -f $sysdep_dir/$name/Implies; then
664 # Collect more names from the `Implies' file (removing comments).
665 implied="`sed 's/#.*$//' < $sysdep_dir/$name/Implies`"
666 for x in $implied; do
667 test -d $sysdep_dir/$x || echo "Warning: $name implies nonexistent $x">&2
673 # Add NAME to the list of names.
676 # Find the parent of NAME, using the empty string if it has none.
677 parent="`echo $name | sed -n -e '/\//!q' -e 's=/[^/]*$==p'`"
679 # Add the names implied by NAME, and NAME's parent (if it has one), to
680 # the list of names to be processed (the argument list). We prepend the
681 # implied names to the list and append the parent. We want implied
682 # directories to come before further directories inferred from the
683 # configuration components; this ensures that for sysv4, unix/common
684 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
686 sysnames="`echo $implied $* $parent`"
687 test -n "$sysnames" && set $sysnames
690 # Add the default directories.
691 names="$names generic stub"
693 # Now uniquize the list.
696 for name in $names; do
697 if echo "$seen" | fgrep -x $name >/dev/null; then
698 # Already in the list.
702 if test -z "$seen"; then
703 seen="$name" sysnames="$name"
707 sysnames="$sysnames $name"
711 libc_cv_sysdirs="$sysnames"
714 sysnames="$libc_cv_sysdirs"
715 echo "$ac_t""${sysnames}" 1>&4
718 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
719 gnu_ld=yes gnu_as=yes
722 gnu*elf* | linux*elf* | sysv4* | solaris2*)
726 # Find a good install program. We prefer a C program (faster),
727 # so one script is as good as another. But avoid the broken or
728 # incompatible versions:
729 # SysV /etc/install, /usr/sbin/install
730 # SunOS /usr/etc/install
733 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
734 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
735 # ./install, which can be erroneously created by make from ./install.sh.
736 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
737 if test -z "$INSTALL"; then
738 if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
739 echo $ac_n "(cached) $ac_c" 1>&4
741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
742 for ac_dir in $PATH; do
743 # Account for people who put trailing slashes in PATH elements.
745 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
747 # OSF1 and SCO ODT 3.0 have their own names for install.
748 for ac_prog in ginstall installbsd scoinst install; do
749 if test -f $ac_dir/$ac_prog; then
750 if test $ac_prog = install &&
751 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
752 # AIX install. It has an incompatible calling convention.
753 # OSF/1 installbsd also uses dspmsg, but is usable.
756 ac_cv_path_install="$ac_dir/$ac_prog -c"
765 # As a last resort, use the slow shell script.
766 test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
768 INSTALL="$ac_cv_path_install"
770 echo "$ac_t""$INSTALL" 1>&4
772 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
773 # It thinks the first close brace ends the variable substitution.
774 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
776 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
778 if test "$INSTALL" = "${srcdir}/install-sh"; then
779 # The makefiles need to use a different form to find it in $srcdir.
780 INSTALL='$(..)./install-sh'
783 echo $ac_n "checking build system type""... $ac_c" 1>&4
786 case "$build_alias" in
789 NONE) build_alias=$host_alias ;;
790 *) build_alias=$nonopt ;;
794 build=`$ac_config_sub $build_alias`
795 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
796 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
797 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
798 echo "$ac_t""$build" 1>&4
800 if test $host != $build; then
801 ac_tool_prefix=${host_alias}-
806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
807 set dummy ${ac_tool_prefix}gcc; ac_word=$2
808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
809 if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&4
812 if test -n "$CC"; then
813 ac_cv_prog_CC="$CC" # Let the user override the test.
815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
816 for ac_dir in $PATH; do
817 test -z "$ac_dir" && ac_dir=.
818 if test -f $ac_dir/$ac_word; then
819 ac_cv_prog_CC="${ac_tool_prefix}gcc"
824 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
828 if test -n "$CC"; then
829 echo "$ac_t""$CC" 1>&4
831 echo "$ac_t""no" 1>&4
836 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
837 set dummy ${ac_tool_prefix}ar; ac_word=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
839 if eval "test \"`echo '${'ac_cv_prog_AR'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&4
842 if test -n "$AR"; then
843 ac_cv_prog_AR="$AR" # Let the user override the test.
845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
846 for ac_dir in $PATH; do
847 test -z "$ac_dir" && ac_dir=.
848 if test -f $ac_dir/$ac_word; then
849 ac_cv_prog_AR="${ac_tool_prefix}ar"
854 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
858 if test -n "$AR"; then
859 echo "$ac_t""$AR" 1>&4
861 echo "$ac_t""no" 1>&4
866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
867 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
869 if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&4
872 if test -n "$RANLIB"; then
873 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
876 for ac_dir in $PATH; do
877 test -z "$ac_dir" && ac_dir=.
878 if test -f $ac_dir/$ac_word; then
879 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
886 RANLIB="$ac_cv_prog_RANLIB"
887 if test -n "$RANLIB"; then
888 echo "$ac_t""$RANLIB" 1>&4
890 echo "$ac_t""no" 1>&4
894 if test -z "$ac_cv_prog_RANLIB"; then
895 if test -n "$ac_tool_prefix"; then
896 # Extract the first word of "ranlib", so it can be a program name with args.
897 set dummy ranlib; ac_word=$2
898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
899 if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
900 echo $ac_n "(cached) $ac_c" 1>&4
902 if test -n "$RANLIB"; then
903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
906 for ac_dir in $PATH; do
907 test -z "$ac_dir" && ac_dir=.
908 if test -f $ac_dir/$ac_word; then
909 ac_cv_prog_RANLIB="ranlib"
914 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
917 RANLIB="$ac_cv_prog_RANLIB"
918 if test -n "$RANLIB"; then
919 echo "$ac_t""$RANLIB" 1>&4
921 echo "$ac_t""no" 1>&4
929 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
930 # On Suns, sometimes $CPP names a directory.
931 if test -n "$CPP" && test -d "$CPP"; then
934 if test -z "$CPP"; then
935 if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&4
938 # This must be in double quotes, not single quotes, because CPP may get
939 # substituted into the Makefile and "${CC-cc}" will confuse make.
941 # On the NeXT, cc -E runs the code through the compiler's parser,
942 # not just through cpp.
943 cat > conftest.$ac_ext <<EOF
944 #line 945 "configure"
945 #include "confdefs.h"
949 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
950 ac_err=`grep -v '^ *+' conftest.out`
951 if test -z "$ac_err"; then
956 CPP="${CC-cc} -E -traditional-cpp"
957 cat > conftest.$ac_ext <<EOF
958 #line 959 "configure"
959 #include "confdefs.h"
963 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
964 ac_err=`grep -v '^ *+' conftest.out`
965 if test -z "$ac_err"; then
975 ac_cv_prog_CPP="$CPP"
978 CPP="$ac_cv_prog_CPP"
979 echo "$ac_t""$CPP" 1>&4
982 echo $ac_n "checking signed size_t type""... $ac_c" 1>&4
983 if eval "test \"`echo '${'libc_cv_signed_size_t'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&4
986 echo '#include <stddef.h>
987 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
988 if eval "$ac_cpp conftest.c 2>/dev/null" \
989 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
990 libc_cv_signed_size_t=no
992 libc_cv_signed_size_t=yes
997 echo "$ac_t""$libc_cv_signed_size_t" 1>&4
998 if test $libc_cv_signed_size_t = yes; then
999 cat >> confdefs.h <<\EOF
1000 #undef __SIZE_TYPE__
1001 #define __SIZE_TYPE__ unsigned
1005 echo $ac_n "checking libc-friendly stddef.h""... $ac_c" 1>&4
1006 if eval "test \"`echo '${'libc_cv_friendly_stddef'+set}'`\" = set"; then
1007 echo $ac_n "(cached) $ac_c" 1>&4
1009 cat > conftest.$ac_ext <<EOF
1010 #line 1011 "configure"
1011 #include "confdefs.h"
1012 #define __need_size_t
1013 #define __need_wchar_t
1017 int main() { return 0; }
1019 size_t size; wchar_t wchar;
1021 #error stddef.h ignored __need_*
1023 if (&size == NULL || &wchar == NULL) abort ();
1026 if eval $ac_compile; then
1028 libc_cv_friendly_stddef=yes
1031 libc_cv_friendly_stddef=no
1037 echo "$ac_t""$libc_cv_friendly_stddef" 1>&4
1038 if test $libc_cv_friendly_stddef = yes; then
1039 config_vars="$config_vars
1040 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1043 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&4
1044 if eval "test \"`echo '${'libc_cv_need_minus_P'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&4
1047 cat > conftest.S <<EOF
1048 #include "confdefs.h"
1049 /* Nothing whatsoever. */
1051 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1052 libc_cv_need_minus_P=no
1054 libc_cv_need_minus_P=yes
1059 echo "$ac_t""$libc_cv_need_minus_P" 1>&4
1060 if test $libc_cv_need_minus_P = yes; then
1061 config_vars="$config_vars
1062 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1065 # sysdeps configure fragments may set these with files to be linked below.
1069 # Iterate over all the sysdep directories we will use, running their
1070 # configure fragments, and looking for a uname implementation.
1072 for dir in $sysnames; do
1073 if test -r $sysdep_dir/$dir/configure; then
1074 echo "$ac_t""running configure fragment for $dir" 1>&4
1075 . $sysdep_dir/$dir/configure
1077 if test -z "$uname"; then
1078 { test -r $sysdep_dir/$dir/uname.c || test -r $sysdep_dir/$dir/uname.S; } \
1085 # If we will use the generic uname implementation, we must figure out what
1086 # it will say by examining the system, and write the results in config-name.h.
1087 if test "$uname" = generic; then
1089 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
1090 if test $uname_sysname != $config_os; then
1091 config_release=`echo $config_os | sed s/$uname_sysname//`
1094 echo $ac_n "checking OS release for uname""... $ac_c" 1>&4
1095 if eval "test \"`echo '${'libc_cv_uname_release'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&4
1098 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1099 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
1100 != x$config_release; then
1101 # The configuration release is a substring of the kernel release.
1102 libc_cv_uname_release=$kernel_release
1103 elif test x$config_release != x; then
1104 libc_cv_uname_release=$config_release
1105 elif test x$kernel_release != x; then
1106 libc_cv_uname_release=$kernel_release
1108 libc_cv_uname_release=unknown
1112 echo "$ac_t""$libc_cv_uname_release" 1>&4
1113 uname_release="$libc_cv_uname_release"
1115 echo $ac_n "checking OS version for uname""... $ac_c" 1>&4
1116 if eval "test \"`echo '${'libc_cv_uname_version'+set}'`\" = set"; then
1117 echo $ac_n "(cached) $ac_c" 1>&4
1119 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1120 if test -n "$kernel_version"; then
1121 libc_cv_uname_version="$kernel_version"
1123 libc_cv_uname_version=unknown
1127 echo "$ac_t""$libc_cv_uname_version" 1>&4
1128 uname_version="$libc_cv_uname_version"
1130 config_uname=config-name.h:config-name.in
1132 # For non-generic uname, we don't need to create config-name.h at all.
1137 if test $gnu_ld = yes; then
1138 cat >> confdefs.h <<\EOF
1139 #define HAVE_GNU_LD 1
1143 if test $gnu_as = yes; then
1144 cat >> confdefs.h <<\EOF
1145 #define HAVE_GNU_AS 1
1149 if test $elf = yes; then
1150 cat >> confdefs.h <<\EOF
1155 if test $weak = yes; then
1156 cat >> confdefs.h <<\EOF
1157 #define HAVE_WEAK_SYMBOLS 1
1163 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1166 config_makefile=Makefile
1170 if test -w $cache_file; then
1171 echo "updating cache $cache_file"
1172 cat > $cache_file <<\EOF
1173 # This file is a shell script that caches the results of configure
1174 # tests run on this system so they can be shared between configure
1175 # scripts and configure runs. It is not useful on other systems.
1176 # If it contains results you don't want to keep, you may remove or edit it.
1178 # By default, configure uses ./config.cache as the cache file,
1179 # creating it if it does not exist already. You can give configure
1180 # the --cache-file=FILE option to use a different cache file; that is
1181 # what configure does when it calls configure scripts in
1182 # subdirectories, so they share the cache.
1183 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1184 # config.status only pays attention to the cache file if you give it the
1185 # --recheck option to rerun configure.
1188 # Ultrix sh set writes to stderr and can't be redirected directly,
1189 # and sets the high bit in the cache file unless we assign to the vars.
1191 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1194 echo "not updating unwritable cache $cache_file"
1197 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1199 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1200 # Let make expand exec_prefix.
1201 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1203 # Any assignment to VPATH causes Sun make to only execute
1204 # the first set of double-colon rules, so remove it if not needed.
1205 # If there is a colon in the path, we need to keep it.
1206 if test "x$srcdir" = x.; then
1207 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1210 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1212 DEFS=-DHAVE_CONFIG_H
1214 # Without the "./", some shells look in PATH for config.status.
1215 : ${CONFIG_STATUS=./config.status}
1217 echo creating $CONFIG_STATUS
1218 rm -f $CONFIG_STATUS
1219 cat > $CONFIG_STATUS <<EOF
1221 # Generated automatically by configure.
1222 # Run this file to recreate the current configuration.
1223 # This directory was configured as follows,
1224 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1226 # $0 $ac_configure_args
1228 # Compiler output produced by configure, useful for debugging
1229 # configure, is in ./config.log if it exists.
1231 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1234 case "\$ac_option" in
1235 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1236 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1237 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1238 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1239 echo "$CONFIG_STATUS generated by autoconf version 2.1.1"
1241 -help | --help | --hel | --he | --h)
1242 echo "\$ac_cs_usage"; exit 0 ;;
1243 *) echo "\$ac_cs_usage"; exit 1 ;;
1247 ac_given_srcdir=$srcdir
1248 ac_given_INSTALL="$INSTALL"
1250 trap 'rm -fr `echo config.make ${config_makefile} ${config_uname} config.h | tr : " "` conftest*; exit 1' 1 2 15
1252 # Protect against being on the right side of a sed subst in config.status.
1253 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
1254 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
1257 s%@CFLAGS@%$CFLAGS%g
1258 s%@CPPFLAGS@%$CPPFLAGS%g
1259 s%@CXXFLAGS@%$CXXFLAGS%g
1261 s%@LDFLAGS@%$LDFLAGS%g
1263 s%@exec_prefix@%$exec_prefix%g
1264 s%@prefix@%$prefix%g
1265 s%@program_transform_name@%$program_transform_name%g
1267 s%@host_alias@%$host_alias%g
1268 s%@host_cpu@%$host_cpu%g
1269 s%@host_vendor@%$host_vendor%g
1270 s%@host_os@%$host_os%g
1271 s%@sysnames@%$sysnames%g
1272 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1273 s%@INSTALL_DATA@%$INSTALL_DATA%g
1275 s%@build_alias@%$build_alias%g
1276 s%@build_cpu@%$build_cpu%g
1277 s%@build_vendor@%$build_vendor%g
1278 s%@build_os@%$build_os%g
1281 s%@RANLIB@%$RANLIB%g
1283 s%@uname_sysname@%$uname_sysname%g
1284 s%@uname_release@%$uname_release%g
1285 s%@uname_version@%$uname_version%g
1286 s%@gnu_ld@%$gnu_ld%g
1287 s%@gnu_as@%$gnu_as%g
1293 cat >> $CONFIG_STATUS <<EOF
1295 CONFIG_FILES=\${CONFIG_FILES-"config.make ${config_makefile} ${config_uname}"}
1297 cat >> $CONFIG_STATUS <<\EOF
1298 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1299 # Support "outfile[:infile]", defaulting infile="outfile.in".
1301 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1302 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1303 *) ac_file_in="${ac_file}.in" ;;
1306 # Adjust relative srcdir, etc. for subdirectories.
1308 # Remove last slash and all that follows it. Not all systems have dirname.
1309 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1310 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1311 # The file is in a subdirectory.
1312 test ! -d "$ac_dir" && mkdir "$ac_dir"
1313 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1314 # A "../" for each directory in $ac_dir_suffix.
1315 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1317 ac_dir_suffix= ac_dots=
1320 case "$ac_given_srcdir" in
1322 if test -z "$ac_dots"; then top_srcdir=.
1323 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1324 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1326 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1327 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1330 case "$ac_given_INSTALL" in
1331 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1332 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1334 echo creating "$ac_file"
1336 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1338 *Makefile*) ac_comsub="1i\\
1339 # $configure_input" ;;
1343 s%@configure_input@%$configure_input%g
1344 s%@srcdir@%$srcdir%g
1345 s%@top_srcdir@%$top_srcdir%g
1346 s%@INSTALL@%$INSTALL%g
1347 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1351 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1352 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1354 # ac_d sets the value in "#define NAME VALUE" lines.
1355 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1356 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1359 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1360 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1361 ac_uB='\([ ]\)%\1#\2define\3'
1364 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1365 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1366 ac_eB='$%\1#\2define\3'
1370 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
1371 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1372 # Support "outfile[:infile]", defaulting infile="outfile.in".
1374 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1375 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1376 *) ac_file_in="${ac_file}.in" ;;
1379 echo creating $ac_file
1381 rm -f conftest.frag conftest.in conftest.out
1382 cp $ac_given_srcdir/$ac_file_in conftest.in
1386 # Transform confdefs.h into a sed script conftest.vals that substitutes
1387 # the proper values into config.h.in to produce config.h. And first:
1388 # Protect against being on the right side of a sed subst in config.status.
1389 # Protect against being in an unquoted here document in config.status.
1391 cat > conftest.hdr <<\EOF
1394 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1398 sed -n -f conftest.hdr confdefs.h > conftest.vals
1401 # This sed command replaces #undef with comments. This is necessary, for
1402 # example, in the case of _POSIX_SOURCE, which is predefined and required
1403 # on some systems where configure will not decide to define it.
1404 cat >> conftest.vals <<\EOF
1405 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1408 # Break up conftest.vals because some shells have a limit on
1409 # the size of here documents, and old seds have small limits too.
1410 # Maximum number of lines to put in a single here document.
1411 ac_max_here_lines=12
1416 ac_lines=`grep -c . conftest.vals`
1417 # grep -c gives empty output for an empty file on some AIX systems.
1418 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1419 # Write a limited-size here document to conftest.frag.
1420 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1421 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1423 sed -f conftest.frag conftest.in > conftest.out
1425 mv conftest.out conftest.in
1427 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1429 mv conftest.tail conftest.vals
1433 cat >> $CONFIG_STATUS <<\EOF
1434 rm -f conftest.frag conftest.h
1435 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1436 cat conftest.in >> conftest.h
1438 if cmp -s $ac_file conftest.h 2>/dev/null; then
1439 echo "$ac_file is unchanged"
1443 mv conftest.h $ac_file
1449 cat >> $CONFIG_STATUS <<EOF
1450 ac_sources="`echo $libc_link_sources`"
1451 ac_dests="`echo $libc_link_dests`"
1454 cat >> $CONFIG_STATUS <<\EOF
1455 srcdir=$ac_given_srcdir
1456 while test -n "$ac_sources"; do
1457 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1458 set $ac_sources; ac_source=$1; shift; ac_sources=$*
1460 echo "linking $srcdir/$ac_source to $ac_dest"
1462 if test ! -r $srcdir/$ac_source; then
1463 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1467 # Make relative symlinks.
1468 # Remove last slash and all that follows it. Not all systems have dirname.
1469 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
1470 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1471 # The dest file is in a subdirectory.
1472 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1473 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
1474 # A "../" for each directory in $ac_dest_dir_suffix.
1475 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
1477 ac_dest_dir_suffix= ac_dots=
1481 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1482 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1485 # Make a symlink if possible; otherwise try a hard link.
1486 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1487 ln $srcdir/$ac_source $ac_dest; then :
1489 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
1493 cat >> $CONFIG_STATUS <<EOF
1494 echo '$config_vars' >> config.make
1496 cat >> $CONFIG_STATUS <<\EOF
1500 chmod +x $CONFIG_STATUS
1501 rm -fr confdefs* $ac_clean_files
1502 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1