3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared build shared libraries [default=no]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 enable-printing turn on debug printing. Default: off"
27 enable-checking set runtime checks (assert calls). Default: on"
29 enable-optimise use maximal speed optimisations. Default: off"
31 enable-profiling compile with gprof support. Default: off"
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
37 cache_file
=.
/config.cache
46 program_transform_name
=s
,x
,x
,
54 bindir
='${exec_prefix}/bin'
55 sbindir
='${exec_prefix}/sbin'
56 libexecdir
='${exec_prefix}/libexec'
57 datadir
='${prefix}/share'
58 sysconfdir
='${prefix}/etc'
59 sharedstatedir
='${prefix}/com'
60 localstatedir
='${prefix}/var'
61 libdir
='${exec_prefix}/lib'
62 includedir
='${prefix}/include'
63 oldincludedir
='/usr/include'
64 infodir
='${prefix}/info'
65 mandir
='${prefix}/man'
67 # Initialize some other variables.
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
95 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
96 bindir
="$ac_optarg" ;;
98 -build |
--build |
--buil |
--bui |
--bu)
100 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
101 build
="$ac_optarg" ;;
103 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
104 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
105 ac_prev
=cache_file
;;
106 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
107 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
108 cache_file
="$ac_optarg" ;;
110 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
112 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
114 datadir
="$ac_optarg" ;;
116 -disable-* |
--disable-*)
117 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* |
--enable-*)
126 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
139 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
140 |
--exec |
--exe |
--ex)
141 ac_prev
=exec_prefix
;;
142 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
143 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
144 |
--exec=* |
--exe=* |
--ex=*)
145 exec_prefix
="$ac_optarg" ;;
147 -gas |
--gas |
--ga |
--g)
148 # Obsolete; use --with-gas.
151 -help |
--help |
--hel |
--he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host |
--host |
--hos |
--ho)
208 -host=* |
--host=* |
--hos=* |
--ho=*)
211 -includedir |
--includedir |
--includedi |
--included |
--include \
212 |
--includ |
--inclu |
--incl |
--inc)
213 ac_prev
=includedir
;;
214 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
215 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
216 includedir
="$ac_optarg" ;;
218 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
220 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
221 infodir
="$ac_optarg" ;;
223 -libdir |
--libdir |
--libdi |
--libd)
225 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
226 libdir
="$ac_optarg" ;;
228 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
229 |
--libexe |
--libex |
--libe)
230 ac_prev
=libexecdir
;;
231 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
232 |
--libexe=* |
--libex=* |
--libe=*)
233 libexecdir
="$ac_optarg" ;;
235 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
236 |
--localstate |
--localstat |
--localsta |
--localst \
237 |
--locals |
--local |
--loca |
--loc |
--lo)
238 ac_prev
=localstatedir
;;
239 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
240 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
241 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
242 localstatedir
="$ac_optarg" ;;
244 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
246 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
247 mandir
="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
257 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
258 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
261 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
262 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
263 |
--oldin |
--oldi |
--old |
--ol |
--o)
264 ac_prev
=oldincludedir
;;
265 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
266 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
267 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
268 oldincludedir
="$ac_optarg" ;;
270 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
272 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
273 prefix
="$ac_optarg" ;;
275 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
276 |
--program-pre |
--program-pr |
--program-p)
277 ac_prev
=program_prefix
;;
278 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
279 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
280 program_prefix
="$ac_optarg" ;;
282 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
283 |
--program-suf |
--program-su |
--program-s)
284 ac_prev
=program_suffix
;;
285 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
286 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
287 program_suffix
="$ac_optarg" ;;
289 -program-transform-name |
--program-transform-name \
290 |
--program-transform-nam |
--program-transform-na \
291 |
--program-transform-n |
--program-transform- \
292 |
--program-transform |
--program-transfor \
293 |
--program-transfo |
--program-transf \
294 |
--program-trans |
--program-tran \
295 |
--progr-tra |
--program-tr |
--program-t)
296 ac_prev
=program_transform_name
;;
297 -program-transform-name=* |
--program-transform-name=* \
298 |
--program-transform-nam=* |
--program-transform-na=* \
299 |
--program-transform-n=* |
--program-transform-=* \
300 |
--program-transform=* |
--program-transfor=* \
301 |
--program-transfo=* |
--program-transf=* \
302 |
--program-trans=* |
--program-tran=* \
303 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
304 program_transform_name
="$ac_optarg" ;;
306 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
307 |
-silent |
--silent |
--silen |
--sile |
--sil)
310 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
312 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
314 sbindir
="$ac_optarg" ;;
316 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
317 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
318 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
320 ac_prev
=sharedstatedir
;;
321 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
322 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
323 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
325 sharedstatedir
="$ac_optarg" ;;
327 -site |
--site |
--sit)
329 -site=* |
--site=* |
--sit=*)
332 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
334 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
335 srcdir
="$ac_optarg" ;;
337 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
338 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
339 ac_prev
=sysconfdir
;;
340 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
341 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
342 sysconfdir
="$ac_optarg" ;;
344 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
346 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
347 target
="$ac_optarg" ;;
349 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
352 -version |
--version |
--versio |
--versi |
--vers)
353 echo "configure generated by autoconf version 2.12"
357 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package
=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* |
--without-*)
370 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package
=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
383 |
--x-incl |
--x-inc |
--x-in |
--x-i)
384 ac_prev
=x_includes
;;
385 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
386 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
387 x_includes
="$ac_optarg" ;;
389 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
390 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
391 ac_prev
=x_libraries
;;
392 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
393 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
394 x_libraries
="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE
; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
445 |
--no-cr |
--no-c) ;;
446 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
447 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
448 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest
* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file
=choleski.cc
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted
=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted
=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE
; then
499 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file
in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp
='$CPP $CPPFLAGS'
522 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling
=$ac_cv_prog_cc_cross
526 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
535 ac_n
= ac_c
='\c' ac_t
=
541 FULL_VERSION
=$MAJOR_VERSION.
$MINOR_VERSION.
$PATCH_LEVEL
542 if test x
$MY_PATCH_LEVEL != x
; then
543 FULL_VERSION
=$FULL_VERSION.
$MY_PATCH_LEVEL
546 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
547 if test -f $ac_dir/install-sh
; then
549 ac_install_sh
="$ac_aux_dir/install-sh -c"
551 elif test -f $ac_dir/install.sh
; then
553 ac_install_sh
="$ac_aux_dir/install.sh -c"
557 if test -z "$ac_aux_dir"; then
558 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
560 ac_config_guess
=$ac_aux_dir/config.guess
561 ac_config_sub
=$ac_aux_dir/config.sub
562 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
564 # Find a good install program. We prefer a C program (faster),
565 # so one script is as good as another. But avoid the broken or
566 # incompatible versions:
567 # SysV /etc/install, /usr/sbin/install
568 # SunOS /usr/etc/install
571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
573 # ./install, which can be erroneously created by make from ./install.sh.
574 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
575 echo "configure:576: checking for a BSD compatible install" >&5
576 if test -z "$INSTALL"; then
577 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
578 echo $ac_n "(cached) $ac_c" 1>&6
580 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
581 for ac_dir
in $PATH; do
582 # Account for people who put trailing slashes in PATH elements.
584 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
586 # OSF1 and SCO ODT 3.0 have their own names for install.
587 for ac_prog
in ginstall installbsd scoinst
install; do
588 if test -f $ac_dir/$ac_prog; then
589 if test $ac_prog = install &&
590 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
591 # AIX install. It has an incompatible calling convention.
592 # OSF/1 installbsd also uses dspmsg, but is usable.
595 ac_cv_path_install
="$ac_dir/$ac_prog -c"
606 if test "${ac_cv_path_install+set}" = set; then
607 INSTALL
="$ac_cv_path_install"
609 # As a last resort, use the slow shell script. We don't cache a
610 # path for INSTALL within a source directory, because that will
611 # break other packages using the cache if that directory is
612 # removed, or if the path is relative.
613 INSTALL
="$ac_install_sh"
616 echo "$ac_t""$INSTALL" 1>&6
618 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
619 # It thinks the first close brace ends the variable substitution.
620 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
622 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
625 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
627 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
628 echo "configure:629: checking whether build environment is sane" >&5
631 echo timestamp
> conftestfile
632 # Do `set' in a subshell so we don't clobber the current shell's
633 # arguments. Must try -L first in case configure is actually a
634 # symlink; some systems play weird games with the mod time of symlinks
635 # (eg FreeBSD returns the mod time of the symlink's containing
638 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
639 if test "$*" = "X"; then
641 set X
`ls -t $srcdir/configure conftestfile`
643 if test "$*" != "X $srcdir/configure conftestfile" \
644 && test "$*" != "X conftestfile $srcdir/configure"; then
646 # If neither matched, then we have a broken ls. This can happen
647 # if, for instance, CONFIG_SHELL is bash and it inherits a
648 # broken ls alias from the environment. This has actually
649 # happened. Such a system could not be considered "sane".
650 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
651 alias in your environment" 1>&2; exit 1; }
654 test "$2" = conftestfile
660 { echo "configure: error: newly created file is older than distributed files!
661 Check your system clock" 1>&2; exit 1; }
664 echo "$ac_t""yes" 1>&6
665 if test "$program_transform_name" = s
,x
,x
,; then
666 program_transform_name
=
668 # Double any \ or $. echo might interpret backslashes.
669 cat <<\EOF_SED
> conftestsed
670 s
,\\,\\\\,g
; s
,\$
,$$
,g
672 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
675 test "$program_prefix" != NONE
&&
676 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
677 # Use a double $ so make ignores it.
678 test "$program_suffix" != NONE
&&
679 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
681 # sed with no file args requires a program.
682 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
684 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
685 echo "configure:686: checking whether ${MAKE-make} sets \${MAKE}" >&5
686 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
687 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
688 echo $ac_n "(cached) $ac_c" 1>&6
690 cat > conftestmake
<<\EOF
692 @
echo 'ac_maketemp="${MAKE}"'
694 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
695 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
696 if test -n "$ac_maketemp"; then
697 eval ac_cv_prog_make_
${ac_make}_set
=yes
699 eval ac_cv_prog_make_
${ac_make}_set
=no
703 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
704 echo "$ac_t""yes" 1>&6
707 echo "$ac_t""no" 1>&6
708 SET_MAKE
="MAKE=${MAKE-make}"
714 VERSION
=$FULL_VERSION
716 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
717 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
719 cat >> confdefs.h
<<EOF
720 #define PACKAGE "$PACKAGE"
723 cat >> confdefs.h
<<EOF
724 #define VERSION "$VERSION"
729 missing_dir
=`cd $ac_aux_dir && pwd`
730 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
731 echo "configure:732: checking for working aclocal" >&5
732 # Run test in a subshell; some versions of sh will print an error if
733 # an executable is not found, even if stderr is redirected.
734 # Redirect stdin to placate older versions of autoconf. Sigh.
735 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
737 echo "$ac_t""found" 1>&6
739 ACLOCAL
="$missing_dir/missing aclocal"
740 echo "$ac_t""missing" 1>&6
743 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
744 echo "configure:745: checking for working autoconf" >&5
745 # Run test in a subshell; some versions of sh will print an error if
746 # an executable is not found, even if stderr is redirected.
747 # Redirect stdin to placate older versions of autoconf. Sigh.
748 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
750 echo "$ac_t""found" 1>&6
752 AUTOCONF
="$missing_dir/missing autoconf"
753 echo "$ac_t""missing" 1>&6
756 echo $ac_n "checking for working automake""... $ac_c" 1>&6
757 echo "configure:758: checking for working automake" >&5
758 # Run test in a subshell; some versions of sh will print an error if
759 # an executable is not found, even if stderr is redirected.
760 # Redirect stdin to placate older versions of autoconf. Sigh.
761 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
763 echo "$ac_t""found" 1>&6
765 AUTOMAKE
="$missing_dir/missing automake"
766 echo "$ac_t""missing" 1>&6
769 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
770 echo "configure:771: checking for working autoheader" >&5
771 # Run test in a subshell; some versions of sh will print an error if
772 # an executable is not found, even if stderr is redirected.
773 # Redirect stdin to placate older versions of autoconf. Sigh.
774 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
775 AUTOHEADER
=autoheader
776 echo "$ac_t""found" 1>&6
778 AUTOHEADER
="$missing_dir/missing autoheader"
779 echo "$ac_t""missing" 1>&6
782 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
783 echo "configure:784: checking for working makeinfo" >&5
784 # Run test in a subshell; some versions of sh will print an error if
785 # an executable is not found, even if stderr is redirected.
786 # Redirect stdin to placate older versions of autoconf. Sigh.
787 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
789 echo "$ac_t""found" 1>&6
791 MAKEINFO
="$missing_dir/missing makeinfo"
792 echo "$ac_t""missing" 1>&6
797 # Extract the first word of "gcc", so it can be a program name with args.
798 set dummy gcc
; ac_word
=$2
799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
800 echo "configure:801: checking for $ac_word" >&5
801 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
804 if test -n "$CC"; then
805 ac_cv_prog_CC
="$CC" # Let the user override the test.
807 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
808 for ac_dir
in $PATH; do
809 test -z "$ac_dir" && ac_dir
=.
810 if test -f $ac_dir/$ac_word; then
819 if test -n "$CC"; then
820 echo "$ac_t""$CC" 1>&6
822 echo "$ac_t""no" 1>&6
825 if test -z "$CC"; then
826 # Extract the first word of "cc", so it can be a program name with args.
827 set dummy cc
; ac_word
=$2
828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
829 echo "configure:830: checking for $ac_word" >&5
830 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
833 if test -n "$CC"; then
834 ac_cv_prog_CC
="$CC" # Let the user override the test.
836 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
838 for ac_dir
in $PATH; do
839 test -z "$ac_dir" && ac_dir
=.
840 if test -f $ac_dir/$ac_word; then
841 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
850 if test $ac_prog_rejected = yes; then
851 # We found a bogon in the path, so make sure we never use it.
852 set dummy
$ac_cv_prog_CC
854 if test $# -gt 0; then
855 # We chose a different compiler from the bogus one.
856 # However, it has the same basename, so the bogon will be chosen
857 # first if we set CC to just the basename; use the full file name.
859 set dummy
"$ac_dir/$ac_word" "$@"
867 if test -n "$CC"; then
868 echo "$ac_t""$CC" 1>&6
870 echo "$ac_t""no" 1>&6
873 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
876 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
877 echo "configure:878: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
880 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
881 ac_cpp
='$CPP $CPPFLAGS'
882 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
883 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
884 cross_compiling
=$ac_cv_prog_cc_cross
886 cat > conftest.
$ac_ext <<EOF
887 #line 888 "configure"
888 #include "confdefs.h"
891 if { (eval echo configure
:892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
892 ac_cv_prog_cc_works
=yes
893 # If we can't run a trivial program, we are probably using a cross compiler.
894 if (.
/conftest
; exit) 2>/dev
/null
; then
895 ac_cv_prog_cc_cross
=no
897 ac_cv_prog_cc_cross
=yes
900 echo "configure: failed program was:" >&5
901 cat conftest.
$ac_ext >&5
902 ac_cv_prog_cc_works
=no
906 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
907 if test $ac_cv_prog_cc_works = no
; then
908 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
910 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
911 echo "configure:912: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
912 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
913 cross_compiling
=$ac_cv_prog_cc_cross
915 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
916 echo "configure:917: checking whether we are using GNU C" >&5
917 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
918 echo $ac_n "(cached) $ac_c" 1>&6
920 cat > conftest.c
<<EOF
925 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
932 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
934 if test $ac_cv_prog_gcc = yes; then
936 ac_test_CFLAGS
="${CFLAGS+set}"
937 ac_save_CFLAGS
="$CFLAGS"
939 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
940 echo "configure:941: checking whether ${CC-cc} accepts -g" >&5
941 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
942 echo $ac_n "(cached) $ac_c" 1>&6
944 echo 'void f(){}' > conftest.c
945 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
954 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
955 if test "$ac_test_CFLAGS" = set; then
956 CFLAGS
="$ac_save_CFLAGS"
957 elif test $ac_cv_prog_cc_g = yes; then
964 test "${CFLAGS+set}" = set || CFLAGS
="-g"
967 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
969 # Extract the first word of "$ac_prog", so it can be a program name with args.
970 set dummy
$ac_prog; ac_word
=$2
971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
972 echo "configure:973: checking for $ac_word" >&5
973 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
976 if test -n "$CXX"; then
977 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
979 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
980 for ac_dir
in $PATH; do
981 test -z "$ac_dir" && ac_dir
=.
982 if test -f $ac_dir/$ac_word; then
983 ac_cv_prog_CXX
="$ac_prog"
990 CXX
="$ac_cv_prog_CXX"
991 if test -n "$CXX"; then
992 echo "$ac_t""$CXX" 1>&6
994 echo "$ac_t""no" 1>&6
997 test -n "$CXX" && break
999 test -n "$CXX" || CXX
="gcc"
1002 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1003 echo "configure:1004: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1006 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1007 ac_cpp
='$CXXCPP $CPPFLAGS'
1008 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1009 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1010 cross_compiling
=$ac_cv_prog_cxx_cross
1012 cat > conftest.
$ac_ext <<EOF
1013 #line 1014 "configure"
1014 #include "confdefs.h"
1017 if { (eval echo configure
:1018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1018 ac_cv_prog_cxx_works
=yes
1019 # If we can't run a trivial program, we are probably using a cross compiler.
1020 if (.
/conftest
; exit) 2>/dev
/null
; then
1021 ac_cv_prog_cxx_cross
=no
1023 ac_cv_prog_cxx_cross
=yes
1026 echo "configure: failed program was:" >&5
1027 cat conftest.
$ac_ext >&5
1028 ac_cv_prog_cxx_works
=no
1032 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1033 ac_cpp
='$CPP $CPPFLAGS'
1034 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1035 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1036 cross_compiling
=$ac_cv_prog_cc_cross
1038 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1039 if test $ac_cv_prog_cxx_works = no
; then
1040 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1042 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1043 echo "configure:1044: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1044 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1045 cross_compiling
=$ac_cv_prog_cxx_cross
1047 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1048 echo "configure:1049: checking whether we are using GNU C++" >&5
1049 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 cat > conftest.C
<<EOF
1057 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1064 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1066 if test $ac_cv_prog_gxx = yes; then
1068 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1069 ac_save_CXXFLAGS
="$CXXFLAGS"
1071 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1072 echo "configure:1073: checking whether ${CXX-g++} accepts -g" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 echo 'void f(){}' > conftest.cc
1077 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1078 ac_cv_prog_cxx_g
=yes
1086 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1087 if test "$ac_test_CXXFLAGS" = set; then
1088 CXXFLAGS
="$ac_save_CXXFLAGS"
1089 elif test $ac_cv_prog_cxx_g = yes; then
1096 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1101 # turn off shared libraries by default (may be enabled using --enable-shared)
1102 # Check whether --enable-shared or --disable-shared was given.
1103 if test "${enable_shared+set}" = set; then
1104 enableval
="$enable_shared"
1105 p
=${PACKAGE-default}
1106 case "$enableval" in
1107 yes) enable_shared
=yes ;;
1108 no
) enable_shared
=no
;;
1111 # Look at the argument we got. We use all the common list separators.
1112 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1113 for pkg
in $enableval; do
1114 if test "X$pkg" = "X$p"; then
1125 # Check whether --enable-static or --disable-static was given.
1126 if test "${enable_static+set}" = set; then
1127 enableval
="$enable_static"
1128 p
=${PACKAGE-default}
1129 case "$enableval" in
1130 yes) enable_static
=yes ;;
1131 no
) enable_static
=no
;;
1134 # Look at the argument we got. We use all the common list separators.
1135 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1136 for pkg
in $enableval; do
1137 if test "X$pkg" = "X$p"; then
1149 # Make sure we can run config.sub.
1150 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1151 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1154 echo $ac_n "checking host system type""... $ac_c" 1>&6
1155 echo "configure:1156: checking host system type" >&5
1158 case "$host_alias" in
1162 if host_alias
=`$ac_config_guess`; then :
1163 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1165 *) host_alias
=$nonopt ;;
1169 host=`$ac_config_sub $host_alias`
1170 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1171 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1172 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1173 echo "$ac_t""$host" 1>&6
1175 # Extract the first word of "ranlib", so it can be a program name with args.
1176 set dummy ranlib
; ac_word
=$2
1177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1178 echo "configure:1179: checking for $ac_word" >&5
1179 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1182 if test -n "$RANLIB"; then
1183 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1185 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1186 for ac_dir
in $PATH; do
1187 test -z "$ac_dir" && ac_dir
=.
1188 if test -f $ac_dir/$ac_word; then
1189 ac_cv_prog_RANLIB
="ranlib"
1194 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1197 RANLIB
="$ac_cv_prog_RANLIB"
1198 if test -n "$RANLIB"; then
1199 echo "$ac_t""$RANLIB" 1>&6
1201 echo "$ac_t""no" 1>&6
1204 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1205 if test "${with_gnu_ld+set}" = set; then
1206 withval
="$with_gnu_ld"
1207 test "$withval" = no || with_gnu_ld
=yes
1214 if test "$ac_cv_prog_gcc" = yes; then
1215 # Check if gcc -print-prog-name=ld gives a path.
1216 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1217 echo "configure:1218: checking for ld used by GCC" >&5
1218 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1220 # Accept absolute paths.
1222 test -z "$LD" && LD
="$ac_prog"
1225 # If it fails, then pretend we aren't using GCC.
1229 # If it is relative, then search for the first ld in PATH.
1233 elif test "$with_gnu_ld" = yes; then
1234 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1235 echo "configure:1236: checking for GNU ld" >&5
1237 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1238 echo "configure:1239: checking for non-GNU ld" >&5
1240 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1243 if test -z "$LD"; then
1244 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1245 for ac_dir
in $PATH; do
1246 test -z "$ac_dir" && ac_dir
=.
1247 if test -f "$ac_dir/$ac_prog"; then
1248 ac_cv_path_LD
="$ac_dir/$ac_prog"
1249 # Check to see if the program is GNU ld. I'd rather use --version,
1250 # but apparently some GNU ld's only accept -v.
1251 # Break only if it was the GNU/non-GNU ld that we prefer.
1252 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1253 test "$with_gnu_ld" != no
&& break
1255 test "$with_gnu_ld" != yes && break
1261 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1266 if test -n "$LD"; then
1267 echo "$ac_t""$LD" 1>&6
1269 echo "$ac_t""no" 1>&6
1271 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1273 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1274 echo "configure:1275: checking if the linker ($LD) is GNU ld" >&5
1275 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1278 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1279 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1280 ac_cv_prog_gnu_ld
=yes
1282 ac_cv_prog_gnu_ld
=no
1286 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1289 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1290 echo "configure:1291: checking for BSD-compatible nm" >&5
1291 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1296 ac_cv_path_NM
="$NM" # Let the user override the test with a path.
1299 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1300 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1301 test -z "$ac_dir" && ac_dir
=.
1302 if test -f $ac_dir/nm
; then
1303 # Check to see if the nm accepts a BSD-compat flag.
1304 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1305 # nm: unknown option "B" ignored
1306 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1307 ac_cv_path_NM
="$ac_dir/nm -B"
1308 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1309 ac_cv_path_NM
="$ac_dir/nm -p"
1311 ac_cv_path_NM
="$ac_dir/nm"
1317 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1323 echo "$ac_t""$NM" 1>&6
1326 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1327 echo "configure:1328: checking whether ln -s works" >&5
1328 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1329 echo $ac_n "(cached) $ac_c" 1>&6
1332 if ln -s X conftestdata
2>/dev
/null
1335 ac_cv_prog_LN_S
="ln -s"
1340 LN_S
="$ac_cv_prog_LN_S"
1341 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1342 echo "$ac_t""yes" 1>&6
1344 echo "$ac_t""no" 1>&6
1347 # Always use our own libtool.
1348 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1350 # Check for any special flags to pass to ltconfig.
1352 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1353 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1354 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1355 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1356 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1358 # Some flags need to be propagated to the compiler or linker for good
1362 # Find out which ABI we are using.
1363 echo '#line 1364 "configure"' > conftest.
$ac_ext
1364 if { (eval echo configure
:1365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1365 case "`/usr/bin/file conftest.o`" in
1381 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1382 CFLAGS
="$CFLAGS -belf"
1386 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1387 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1388 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1389 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1390 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1391 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1399 # Check whether --enable-printing or --disable-printing was given.
1400 if test "${enable_printing+set}" = set; then
1401 enableval
="$enable_printing"
1402 printing_b
=$enableval
1406 # Check whether --enable-checking or --disable-checking was given.
1407 if test "${enable_checking+set}" = set; then
1408 enableval
="$enable_checking"
1409 checking_b
=$enableval
1413 # Check whether --enable-optimise or --disable-optimise was given.
1414 if test "${enable_optimise+set}" = set; then
1415 enableval
="$enable_optimise"
1416 optimise_b
=$enableval
1420 # Check whether --enable-profiling or --disable-profiling was given.
1421 if test "${enable_profiling+set}" = set; then
1422 enableval
="$enable_profiling"
1423 profile_b
=$enableval
1427 if test $printing_b = no
; then
1428 cat >> confdefs.h
<<\EOF
1434 if test $checking_b = no
; then
1435 cat >> confdefs.h
<<\EOF
1441 if test $optimise_b = yes; then
1442 # DEFINES="$DEFINES -finline-functions -O2 -DSTRING_UTILS_INLINED"
1443 cat >> confdefs.h
<<\EOF
1444 #define STRINGS_UTILS_INLINED 1
1449 # oeps, broken for now
1450 if test $profile_b = yes; then
1452 DEFINES
="$DEFINES -pg"
1456 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1457 ac_cpp
='$CXXCPP $CPPFLAGS'
1458 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1459 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1460 cross_compiling
=$ac_cv_prog_cxx_cross
1464 MODULE_CXXFLAGS
="$MODULE_CXXFLAGS -D_REENTRANT"
1470 # AC_SUBST(FULL_VERSION)
1471 # AC_SUBST(MAJOR_VERSION)
1472 # AC_SUBST(MINOR_VERSION)
1473 # AC_SUBST(PATCH_LEVEL)
1474 # AC_SUBST(MY_PATCH_LEVEL)
1477 # **Never** try to set library version numbers so that they correspond
1478 # to the release number of your package. This is an abuse that only
1479 # fosters misunderstanding of the purpose of library versions.
1481 REVISION
=$PATCH_LEVEL
1482 # CURRENT=$MINOR_VERSION
1483 CURRENT
=`expr $MINOR_VERSION + 1`
1484 # AGE=$(expr $MAJOR_VERSION + 1)
1491 # Extract the first word of "perl", so it can be a program name with args.
1492 set dummy perl
; ac_word
=$2
1493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1494 echo "configure:1495: checking for $ac_word" >&5
1495 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1500 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
1503 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1504 for ac_dir
in $PATH; do
1505 test -z "$ac_dir" && ac_dir
=.
1506 if test -f $ac_dir/$ac_word; then
1507 ac_cv_path_PERL
="$ac_dir/$ac_word"
1512 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="error"
1516 PERL
="$ac_cv_path_PERL"
1517 if test -n "$PERL"; then
1518 echo "$ac_t""$PERL" 1>&6
1520 echo "$ac_t""no" 1>&6
1524 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1525 echo "configure:1526: checking for 8-bit clean memcmp" >&5
1526 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 if test "$cross_compiling" = yes; then
1530 ac_cv_func_memcmp_clean
=no
1532 cat > conftest.
$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1536 extern "C" void exit(int);
1541 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1542 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1546 if { (eval echo configure
:1547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1548 ac_cv_func_memcmp_clean
=yes
1550 echo "configure: failed program was:" >&5
1551 cat conftest.
$ac_ext >&5
1553 ac_cv_func_memcmp_clean
=no
1560 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1561 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.o"
1563 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1564 echo "configure:1565: checking for vprintf" >&5
1565 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1568 cat > conftest.
$ac_ext <<EOF
1569 #line 1570 "configure"
1570 #include "confdefs.h"
1571 /* System header to define __stub macros and hopefully few prototypes,
1572 which can conflict with char vprintf(); below. */
1574 /* Override any gcc2 internal prototype to avoid an error. */
1578 /* We use char because int might match the return type of a gcc2
1579 builtin and then its argument prototype would still apply. */
1584 /* The GNU C library defines this for functions which it implements
1585 to always fail with ENOSYS. Some functions are actually named
1586 something starting with __ and the normal name is an alias. */
1587 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1595 if { (eval echo configure
:1596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1597 eval "ac_cv_func_vprintf=yes"
1599 echo "configure: failed program was:" >&5
1600 cat conftest.
$ac_ext >&5
1602 eval "ac_cv_func_vprintf=no"
1607 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1608 echo "$ac_t""yes" 1>&6
1609 cat >> confdefs.h
<<\EOF
1610 #define HAVE_VPRINTF 1
1614 echo "$ac_t""no" 1>&6
1617 if test "$ac_cv_func_vprintf" != yes; then
1618 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1619 echo "configure:1620: checking for _doprnt" >&5
1620 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1623 cat > conftest.
$ac_ext <<EOF
1624 #line 1625 "configure"
1625 #include "confdefs.h"
1626 /* System header to define __stub macros and hopefully few prototypes,
1627 which can conflict with char _doprnt(); below. */
1629 /* Override any gcc2 internal prototype to avoid an error. */
1633 /* We use char because int might match the return type of a gcc2
1634 builtin and then its argument prototype would still apply. */
1639 /* The GNU C library defines this for functions which it implements
1640 to always fail with ENOSYS. Some functions are actually named
1641 something starting with __ and the normal name is an alias. */
1642 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1650 if { (eval echo configure
:1651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1652 eval "ac_cv_func__doprnt=yes"
1654 echo "configure: failed program was:" >&5
1655 cat conftest.
$ac_ext >&5
1657 eval "ac_cv_func__doprnt=no"
1662 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1663 echo "$ac_t""yes" 1>&6
1664 cat >> confdefs.h
<<\EOF
1665 #define HAVE_DOPRNT 1
1669 echo "$ac_t""no" 1>&6
1674 for ac_func
in memmem snprintf
1676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1677 echo "configure:1678: checking for $ac_func" >&5
1678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1681 cat > conftest.
$ac_ext <<EOF
1682 #line 1683 "configure"
1683 #include "confdefs.h"
1684 /* System header to define __stub macros and hopefully few prototypes,
1685 which can conflict with char $ac_func(); below. */
1687 /* Override any gcc2 internal prototype to avoid an error. */
1691 /* We use char because int might match the return type of a gcc2
1692 builtin and then its argument prototype would still apply. */
1697 /* The GNU C library defines this for functions which it implements
1698 to always fail with ENOSYS. Some functions are actually named
1699 something starting with __ and the normal name is an alias. */
1700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1708 if { (eval echo configure
:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1710 eval "ac_cv_func_$ac_func=yes"
1712 echo "configure: failed program was:" >&5
1713 cat conftest.
$ac_ext >&5
1715 eval "ac_cv_func_$ac_func=no"
1720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1721 echo "$ac_t""yes" 1>&6
1722 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1723 cat >> confdefs.h
<<EOF
1724 #define $ac_tr_func 1
1728 echo "$ac_t""no" 1>&6
1733 cat >> confdefs.h
<<EOF
1734 #define MODULE_VERSION "${FULL_VERSION}"
1743 cat > confcache
<<\EOF
1744 # This file is a shell script that caches the results of configure
1745 # tests run on this system so they can be shared between configure
1746 # scripts and configure runs. It is not useful on other systems.
1747 # If it contains results you don't want to keep, you may remove or edit it.
1749 # By default, configure uses ./config.cache as the cache file,
1750 # creating it if it does not exist already. You can give configure
1751 # the --cache-file=FILE option to use a different cache file; that is
1752 # what configure does when it calls configure scripts in
1753 # subdirectories, so they share the cache.
1754 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1755 # config.status only pays attention to the cache file if you give it the
1756 # --recheck option to rerun configure.
1759 # The following way of writing the cache mishandles newlines in values,
1760 # but we know of no workaround that is simple, portable, and efficient.
1761 # So, don't put newlines in cache variables' values.
1762 # Ultrix sh set writes to stderr and can't be redirected directly,
1763 # and sets the high bit in the cache file unless we assign to the vars.
1765 case `(ac_space=' '; set) 2>&1` in
1767 # `set' does not quote correctly, so add quotes (double-quote substitution
1768 # turns \\\\ into \\, and sed turns \\ into \).
1770 -e "s/'/'\\\\''/g" \
1771 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1774 # `set' quotes correctly as required by POSIX, so do not add quotes.
1775 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1778 if cmp -s $cache_file confcache
; then
1781 if test -w $cache_file; then
1782 echo "updating cache $cache_file"
1783 cat confcache
> $cache_file
1785 echo "not updating unwritable cache $cache_file"
1790 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1792 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1793 # Let make expand exec_prefix.
1794 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1796 # Any assignment to VPATH causes Sun make to only execute
1797 # the first set of double-colon rules, so remove it if not needed.
1798 # If there is a colon in the path, we need to keep it.
1799 if test "x$srcdir" = x.
; then
1800 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1803 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1805 DEFS
=-DHAVE_CONFIG_H
1807 # Without the "./", some shells look in PATH for config.status.
1808 : ${CONFIG_STATUS=./config.status}
1810 echo creating
$CONFIG_STATUS
1811 rm -f $CONFIG_STATUS
1812 cat > $CONFIG_STATUS <<EOF
1814 # Generated automatically by configure.
1815 # Run this file to recreate the current configuration.
1816 # This directory was configured as follows,
1817 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1819 # $0 $ac_configure_args
1821 # Compiler output produced by configure, useful for debugging
1822 # configure, is in ./config.log if it exists.
1824 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1827 case "\$ac_option" in
1828 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1829 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1830 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1831 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1832 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1834 -help | --help | --hel | --he | --h)
1835 echo "\$ac_cs_usage"; exit 0 ;;
1836 *) echo "\$ac_cs_usage"; exit 1 ;;
1840 ac_given_srcdir=$srcdir
1841 ac_given_INSTALL="$INSTALL"
1843 trap 'rm -fr `echo "Makefile include/Makefile test/Makefile config.hh:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1845 cat >> $CONFIG_STATUS <<EOF
1847 # Protect against being on the right side of a sed subst in config.status.
1848 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1849 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1852 s%@CFLAGS@%$CFLAGS%g
1853 s%@CPPFLAGS@%$CPPFLAGS%g
1854 s%@CXXFLAGS@%$CXXFLAGS%g
1856 s%@LDFLAGS@%$LDFLAGS%g
1858 s%@exec_prefix@%$exec_prefix%g
1859 s%@prefix@%$prefix%g
1860 s%@program_transform_name@%$program_transform_name%g
1861 s%@bindir@%$bindir%g
1862 s%@sbindir@%$sbindir%g
1863 s%@libexecdir@%$libexecdir%g
1864 s%@datadir@%$datadir%g
1865 s%@sysconfdir@%$sysconfdir%g
1866 s%@sharedstatedir@%$sharedstatedir%g
1867 s%@localstatedir@%$localstatedir%g
1868 s%@libdir@%$libdir%g
1869 s%@includedir@%$includedir%g
1870 s%@oldincludedir@%$oldincludedir%g
1871 s%@infodir@%$infodir%g
1872 s%@mandir@%$mandir%g
1873 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1874 s%@INSTALL_DATA@%$INSTALL_DATA%g
1875 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1876 s%@PACKAGE@%$PACKAGE%g
1877 s%@VERSION@%$VERSION%g
1878 s%@ACLOCAL@%$ACLOCAL%g
1879 s%@AUTOCONF@%$AUTOCONF%g
1880 s%@AUTOMAKE@%$AUTOMAKE%g
1881 s%@AUTOHEADER@%$AUTOHEADER%g
1882 s%@MAKEINFO@%$MAKEINFO%g
1883 s%@SET_MAKE@%$SET_MAKE%g
1887 s%@host_alias@%$host_alias%g
1888 s%@host_cpu@%$host_cpu%g
1889 s%@host_vendor@%$host_vendor%g
1890 s%@host_os@%$host_os%g
1891 s%@RANLIB@%$RANLIB%g
1895 s%@LIBTOOL@%$LIBTOOL%g
1896 s%@MODULE_CXXFLAGS@%$MODULE_CXXFLAGS%g
1897 s%@MODULE_LDFLAGS@%$MODULE_LDFLAGS%g
1898 s%@LIB_SUFFIX@%$LIB_SUFFIX%g
1899 s%@CURRENT@%$CURRENT%g
1900 s%@REVISION@%$REVISION%g
1903 s%@LIBOBJS@%$LIBOBJS%g
1908 cat >> $CONFIG_STATUS <<\EOF
1910 # Split the substitutions into bite-sized pieces for seds with
1911 # small command number limits, like on Digital OSF/1 and HP-UX.
1912 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1913 ac_file
=1 # Number of current file.
1914 ac_beg
=1 # First line for current file.
1915 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1918 while $ac_more_lines; do
1919 if test $ac_beg -gt 1; then
1920 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1922 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1924 if test ! -s conftest.s
$ac_file; then
1926 rm -f conftest.s
$ac_file
1928 if test -z "$ac_sed_cmds"; then
1929 ac_sed_cmds
="sed -f conftest.s$ac_file"
1931 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1933 ac_file
=`expr $ac_file + 1`
1935 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1938 if test -z "$ac_sed_cmds"; then
1943 cat >> $CONFIG_STATUS <<EOF
1945 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/Makefile test/Makefile"}
1947 cat >> $CONFIG_STATUS <<\EOF
1948 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1949 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1951 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1952 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1953 *) ac_file_in
="${ac_file}.in" ;;
1956 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1958 # Remove last slash and all that follows it. Not all systems have dirname.
1959 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1960 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1961 # The file is in a subdirectory.
1962 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1963 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1964 # A "../" for each directory in $ac_dir_suffix.
1965 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1967 ac_dir_suffix
= ac_dots
=
1970 case "$ac_given_srcdir" in
1972 if test -z "$ac_dots"; then top_srcdir
=.
1973 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1974 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1976 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1977 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1980 case "$ac_given_INSTALL" in
1981 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1982 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1985 echo creating
"$ac_file"
1987 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1989 *Makefile
*) ac_comsub
="1i\\
1990 # $configure_input" ;;
1994 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1996 s%@configure_input@%$configure_input%g
1997 s%@srcdir@%$srcdir%g
1998 s%@top_srcdir@%$top_srcdir%g
1999 s%@INSTALL@%$INSTALL%g
2000 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2004 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2005 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2007 # ac_d sets the value in "#define NAME VALUE" lines.
2008 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2009 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2012 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2013 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2014 ac_uB
='\([ ]\)%\1#\2define\3'
2017 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2018 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2019 ac_eB
='$%\1#\2define\3'
2023 if test "${CONFIG_HEADERS+set}" != set; then
2025 cat >> $CONFIG_STATUS <<EOF
2026 CONFIG_HEADERS="config.hh:config.hh.in"
2028 cat >> $CONFIG_STATUS <<\EOF
2030 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2031 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2033 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2034 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2035 *) ac_file_in
="${ac_file}.in" ;;
2038 echo creating
$ac_file
2040 rm -f conftest.frag conftest.
in conftest.out
2041 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2042 cat $ac_file_inputs > conftest.
in
2046 # Transform confdefs.h into a sed script conftest.vals that substitutes
2047 # the proper values into config.h.in to produce config.h. And first:
2048 # Protect against being on the right side of a sed subst in config.status.
2049 # Protect against being in an unquoted here document in config.status.
2051 cat > conftest.hdr
<<\EOF
2054 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2058 sed -n -f conftest.hdr confdefs.h > conftest.vals
2061 # This sed command replaces #undef with comments. This is necessary, for
2062 # example, in the case of _POSIX_SOURCE, which is predefined and required
2063 # on some systems where configure will not decide to define it.
2064 cat >> conftest.vals <<\EOF
2065 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2068 # Break up conftest.vals because some shells have a limit on
2069 # the size of here documents, and old seds have small limits too.
2074 ac_lines=`grep -c . conftest.vals
`
2075 # grep -c gives empty output for an empty file on some AIX systems.
2076 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2077 # Write a limited-size here document to conftest.frag.
2078 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2079 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2081 sed -f conftest.frag conftest.in > conftest.out
2083 mv conftest.out conftest.in
2085 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2087 mv conftest.tail conftest.vals
2091 cat >> $CONFIG_STATUS <<\EOF
2092 rm -f conftest.frag conftest.h
2093 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2094 cat conftest.in >> conftest.h
2096 if cmp -s $ac_file conftest.h 2>/dev/null; then
2097 echo "$ac_file is unchanged"
2100 # Remove last slash and all that follows it. Not all systems have dirname.
2101 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2102 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2103 # The file is in a subdirectory.
2104 test ! -d "$ac_dir" && mkdir "$ac_dir"
2107 mv conftest.h $ac_file
2112 cat >> $CONFIG_STATUS <<EOF
2116 cat >> $CONFIG_STATUS <<\EOF
2117 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2121 chmod +x $CONFIG_STATUS
2122 rm -fr confdefs* $ac_clean_files
2123 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1