3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --enable-shared[=PKGS] build shared libraries [default=yes]"
20 --enable-static[=PKGS] build static libraries [default=yes]"
22 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
26 --disable-libtool-lock avoid locking (might break parallel builds)"
28 --with-pic try to use only PIC/non-PIC objects [default=use both]"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
34 cache_file
=.
/config.cache
43 program_transform_name
=s
,x
,x
,
51 bindir
='${exec_prefix}/bin'
52 sbindir
='${exec_prefix}/sbin'
53 libexecdir
='${exec_prefix}/libexec'
54 datadir
='${prefix}/share'
55 sysconfdir
='${prefix}/etc'
56 sharedstatedir
='${prefix}/com'
57 localstatedir
='${prefix}/var'
58 libdir
='${exec_prefix}/lib'
59 includedir
='${prefix}/include'
60 oldincludedir
='/usr/include'
61 infodir
='${prefix}/info'
62 mandir
='${prefix}/man'
64 # Initialize some other variables.
67 SHELL
=${CONFIG_SHELL-/bin/sh}
68 # Maximum number of lines to put in a shell here document.
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
83 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 # Accept the important Cygnus configure options, so we can diagnose typos.
91 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
93 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
94 bindir
="$ac_optarg" ;;
96 -build |
--build |
--buil |
--bui |
--bu)
98 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
101 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
102 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
103 ac_prev
=cache_file
;;
104 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
105 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
106 cache_file
="$ac_optarg" ;;
108 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
110 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
112 datadir
="$ac_optarg" ;;
114 -disable-* |
--disable-*)
115 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
123 -enable-* |
--enable-*)
124 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
136 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
137 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
138 |
--exec |
--exe |
--ex)
139 ac_prev
=exec_prefix
;;
140 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
141 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
142 |
--exec=* |
--exe=* |
--ex=*)
143 exec_prefix
="$ac_optarg" ;;
145 -gas |
--gas |
--ga |
--g)
146 # Obsolete; use --with-gas.
149 -help |
--help |
--hel |
--he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
204 -host |
--host |
--hos |
--ho)
206 -host=* |
--host=* |
--hos=* |
--ho=*)
209 -includedir |
--includedir |
--includedi |
--included |
--include \
210 |
--includ |
--inclu |
--incl |
--inc)
211 ac_prev
=includedir
;;
212 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
213 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
214 includedir
="$ac_optarg" ;;
216 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
218 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
219 infodir
="$ac_optarg" ;;
221 -libdir |
--libdir |
--libdi |
--libd)
223 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
224 libdir
="$ac_optarg" ;;
226 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
227 |
--libexe |
--libex |
--libe)
228 ac_prev
=libexecdir
;;
229 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
230 |
--libexe=* |
--libex=* |
--libe=*)
231 libexecdir
="$ac_optarg" ;;
233 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
234 |
--localstate |
--localstat |
--localsta |
--localst \
235 |
--locals |
--local |
--loca |
--loc |
--lo)
236 ac_prev
=localstatedir
;;
237 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
238 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
239 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
240 localstatedir
="$ac_optarg" ;;
242 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
244 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
245 mandir
="$ac_optarg" ;;
248 # Obsolete; use --without-fp.
251 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
255 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
256 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
259 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
260 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
261 |
--oldin |
--oldi |
--old |
--ol |
--o)
262 ac_prev
=oldincludedir
;;
263 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
264 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
265 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
266 oldincludedir
="$ac_optarg" ;;
268 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
270 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
271 prefix
="$ac_optarg" ;;
273 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
274 |
--program-pre |
--program-pr |
--program-p)
275 ac_prev
=program_prefix
;;
276 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
277 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
278 program_prefix
="$ac_optarg" ;;
280 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
281 |
--program-suf |
--program-su |
--program-s)
282 ac_prev
=program_suffix
;;
283 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
284 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
285 program_suffix
="$ac_optarg" ;;
287 -program-transform-name |
--program-transform-name \
288 |
--program-transform-nam |
--program-transform-na \
289 |
--program-transform-n |
--program-transform- \
290 |
--program-transform |
--program-transfor \
291 |
--program-transfo |
--program-transf \
292 |
--program-trans |
--program-tran \
293 |
--progr-tra |
--program-tr |
--program-t)
294 ac_prev
=program_transform_name
;;
295 -program-transform-name=* |
--program-transform-name=* \
296 |
--program-transform-nam=* |
--program-transform-na=* \
297 |
--program-transform-n=* |
--program-transform-=* \
298 |
--program-transform=* |
--program-transfor=* \
299 |
--program-transfo=* |
--program-transf=* \
300 |
--program-trans=* |
--program-tran=* \
301 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
302 program_transform_name
="$ac_optarg" ;;
304 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
305 |
-silent |
--silent |
--silen |
--sile |
--sil)
308 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
310 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
312 sbindir
="$ac_optarg" ;;
314 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
315 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
316 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
318 ac_prev
=sharedstatedir
;;
319 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
320 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
321 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
323 sharedstatedir
="$ac_optarg" ;;
325 -site |
--site |
--sit)
327 -site=* |
--site=* |
--sit=*)
330 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
332 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
333 srcdir
="$ac_optarg" ;;
335 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
336 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
337 ac_prev
=sysconfdir
;;
338 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
339 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
340 sysconfdir
="$ac_optarg" ;;
342 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
344 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
345 target
="$ac_optarg" ;;
347 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
350 -version |
--version |
--versio |
--versi |
--vers)
351 echo "configure generated by autoconf version 2.13"
355 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package
=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* |
--without-*)
368 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package
=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
377 # Obsolete; use --with-x.
380 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
381 |
--x-incl |
--x-inc |
--x-in |
--x-i)
382 ac_prev
=x_includes
;;
383 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
384 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
385 x_includes
="$ac_optarg" ;;
387 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
388 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
389 ac_prev
=x_libraries
;;
390 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
391 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
392 x_libraries
="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE
; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
442 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
443 |
--no-cr |
--no-c) ;;
444 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
445 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
446 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest
* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file
=mf-runtime.c
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted
=yes
474 # Try the directory containing this script, then its parent.
476 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
479 if test ! -r $srcdir/$ac_unique_file; then
483 ac_srcdir_defaulted
=no
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE
; then
497 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
499 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 for ac_site_file
in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
509 if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
513 echo "creating cache $cache_file"
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp
='$CPP $CPPFLAGS'
520 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 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
=
540 for ac_dir
in ${GNUSYSTEM_AUX_DIR} $srcdir $srcdir/..
$srcdir/..
/..
; do
541 if test -f $ac_dir/install-sh
; then
543 ac_install_sh
="$ac_aux_dir/install-sh -c"
545 elif test -f $ac_dir/install.sh
; then
547 ac_install_sh
="$ac_aux_dir/install.sh -c"
551 if test -z "$ac_aux_dir"; then
552 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
554 ac_config_guess
=$ac_aux_dir/config.guess
555 ac_config_sub
=$ac_aux_dir/config.sub
556 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
559 # Do some error checking and defaulting for the host and target type.
561 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
564 # 1. You are not allowed to specify --host, --target, and nonopt at the
566 # 2. Host defaults to nonopt.
567 # 3. If nonopt is not specified, then host defaults to the current host,
568 # as determined by config.guess.
569 # 4. Target and build default to nonopt.
570 # 5. If nonopt is not specified, then target and build default to host.
572 # The aliases save the names the user supplied, while $host etc.
573 # will get canonicalized.
574 case $host---$target---$nonopt in
575 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
576 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
580 # Make sure we can run config.sub.
581 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
582 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
585 echo $ac_n "checking host system type""... $ac_c" 1>&6
586 echo "configure:587: checking host system type" >&5
589 case "$host_alias" in
593 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
594 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
596 *) host_alias
=$nonopt ;;
600 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
601 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
602 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
603 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
604 echo "$ac_t""$host" 1>&6
606 echo $ac_n "checking target system type""... $ac_c" 1>&6
607 echo "configure:608: checking target system type" >&5
610 case "$target_alias" in
613 NONE
) target_alias
=$host_alias ;;
614 *) target_alias
=$nonopt ;;
618 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
619 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$target" 1>&6
624 echo $ac_n "checking build system type""... $ac_c" 1>&6
625 echo "configure:626: checking build system type" >&5
628 case "$build_alias" in
631 NONE
) build_alias
=$host_alias ;;
632 *) build_alias
=$nonopt ;;
636 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
637 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
638 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
639 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
640 echo "$ac_t""$build" 1>&6
642 test "$host_alias" != "$target_alias" &&
643 test "$program_prefix$program_suffix$program_transform_name" = \
645 program_prefix
=${target_alias}-
647 # Find a good install program. We prefer a C program (faster),
648 # so one script is as good as another. But avoid the broken or
649 # incompatible versions:
650 # SysV /etc/install, /usr/sbin/install
651 # SunOS /usr/etc/install
654 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
657 # ./install, which can be erroneously created by make from ./install.sh.
658 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
659 echo "configure:660: checking for a BSD compatible install" >&5
660 if test -z "$INSTALL"; then
661 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
662 echo $ac_n "(cached) $ac_c" 1>&6
664 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
665 for ac_dir
in $PATH; do
666 # Account for people who put trailing slashes in PATH elements.
668 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
670 # OSF1 and SCO ODT 3.0 have their own names for install.
671 # Don't use installbsd from OSF since it installs stuff as root
673 for ac_prog
in ginstall scoinst
install; do
674 if test -f $ac_dir/$ac_prog; then
675 if test $ac_prog = install &&
676 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
677 # AIX install. It has an incompatible calling convention.
680 ac_cv_path_install
="$ac_dir/$ac_prog -c"
691 if test "${ac_cv_path_install+set}" = set; then
692 INSTALL
="$ac_cv_path_install"
694 # As a last resort, use the slow shell script. We don't cache a
695 # path for INSTALL within a source directory, because that will
696 # break other packages using the cache if that directory is
697 # removed, or if the path is relative.
698 INSTALL
="$ac_install_sh"
701 echo "$ac_t""$INSTALL" 1>&6
703 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
704 # It thinks the first close brace ends the variable substitution.
705 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
707 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
709 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
711 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
712 echo "configure:713: checking whether build environment is sane" >&5
715 echo timestamp
> conftestfile
716 # Do `set' in a subshell so we don't clobber the current shell's
717 # arguments. Must try -L first in case configure is actually a
718 # symlink; some systems play weird games with the mod time of symlinks
719 # (eg FreeBSD returns the mod time of the symlink's containing
722 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
723 if test "$*" = "X"; then
725 set X
`ls -t $srcdir/configure conftestfile`
727 if test "$*" != "X $srcdir/configure conftestfile" \
728 && test "$*" != "X conftestfile $srcdir/configure"; then
730 # If neither matched, then we have a broken ls. This can happen
731 # if, for instance, CONFIG_SHELL is bash and it inherits a
732 # broken ls alias from the environment. This has actually
733 # happened. Such a system could not be considered "sane".
734 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
735 alias in your environment" 1>&2; exit 1; }
738 test "$2" = conftestfile
744 { echo "configure: error: newly created file is older than distributed files!
745 Check your system clock" 1>&2; exit 1; }
748 echo "$ac_t""yes" 1>&6
749 if test "$program_transform_name" = s
,x
,x
,; then
750 program_transform_name
=
752 # Double any \ or $. echo might interpret backslashes.
753 cat <<\EOF_SED
> conftestsed
754 s
,\\,\\\\,g
; s
,\$
,$$
,g
756 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
759 test "$program_prefix" != NONE
&&
760 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
761 # Use a double $ so make ignores it.
762 test "$program_suffix" != NONE
&&
763 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
765 # sed with no file args requires a program.
766 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
768 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
769 echo "configure:770: checking whether ${MAKE-make} sets \${MAKE}" >&5
770 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
771 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
772 echo $ac_n "(cached) $ac_c" 1>&6
774 cat > conftestmake
<<\EOF
776 @
echo 'ac_maketemp="${MAKE}"'
778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
779 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
780 if test -n "$ac_maketemp"; then
781 eval ac_cv_prog_make_
${ac_make}_set
=yes
783 eval ac_cv_prog_make_
${ac_make}_set
=no
787 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
788 echo "$ac_t""yes" 1>&6
791 echo "$ac_t""no" 1>&6
792 SET_MAKE
="MAKE=${MAKE-make}"
800 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
801 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
803 cat >> confdefs.h
<<EOF
804 #define PACKAGE "$PACKAGE"
807 cat >> confdefs.h
<<EOF
808 #define VERSION "$VERSION"
813 missing_dir
=`cd $ac_aux_dir && pwd`
814 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
815 echo "configure:816: checking for working aclocal" >&5
816 # Run test in a subshell; some versions of sh will print an error if
817 # an executable is not found, even if stderr is redirected.
818 # Redirect stdin to placate older versions of autoconf. Sigh.
819 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
821 echo "$ac_t""found" 1>&6
823 ACLOCAL
="$missing_dir/missing aclocal"
824 echo "$ac_t""missing" 1>&6
827 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
828 echo "configure:829: checking for working autoconf" >&5
829 # Run test in a subshell; some versions of sh will print an error if
830 # an executable is not found, even if stderr is redirected.
831 # Redirect stdin to placate older versions of autoconf. Sigh.
832 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
834 echo "$ac_t""found" 1>&6
836 AUTOCONF
="$missing_dir/missing autoconf"
837 echo "$ac_t""missing" 1>&6
840 echo $ac_n "checking for working automake""... $ac_c" 1>&6
841 echo "configure:842: checking for working automake" >&5
842 # Run test in a subshell; some versions of sh will print an error if
843 # an executable is not found, even if stderr is redirected.
844 # Redirect stdin to placate older versions of autoconf. Sigh.
845 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
847 echo "$ac_t""found" 1>&6
849 AUTOMAKE
="$missing_dir/missing automake"
850 echo "$ac_t""missing" 1>&6
853 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
854 echo "configure:855: checking for working autoheader" >&5
855 # Run test in a subshell; some versions of sh will print an error if
856 # an executable is not found, even if stderr is redirected.
857 # Redirect stdin to placate older versions of autoconf. Sigh.
858 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
859 AUTOHEADER
=autoheader
860 echo "$ac_t""found" 1>&6
862 AUTOHEADER
="$missing_dir/missing autoheader"
863 echo "$ac_t""missing" 1>&6
866 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
867 echo "configure:868: checking for working makeinfo" >&5
868 # Run test in a subshell; some versions of sh will print an error if
869 # an executable is not found, even if stderr is redirected.
870 # Redirect stdin to placate older versions of autoconf. Sigh.
871 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
873 echo "$ac_t""found" 1>&6
875 MAKEINFO
="$missing_dir/missing makeinfo"
876 echo "$ac_t""missing" 1>&6
882 # For libtool versioning info, format is CURRENT:REVISION:AGE
883 libtool_VERSION
=1:0:0
886 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
887 echo "configure:888: checking whether to enable maintainer-specific portions of Makefiles" >&5
888 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
889 if test "${enable_maintainer_mode+set}" = set; then
890 enableval
="$enable_maintainer_mode"
891 USE_MAINTAINER_MODE
=$enableval
893 USE_MAINTAINER_MODE
=no
896 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
899 if test $USE_MAINTAINER_MODE = yes; then
900 MAINTAINER_MODE_TRUE
=
901 MAINTAINER_MODE_FALSE
='#'
903 MAINTAINER_MODE_TRUE
='#'
904 MAINTAINER_MODE_FALSE
=
906 MAINT
=$MAINTAINER_MODE_TRUE
909 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
910 echo "configure:911: checking for Cygwin environment" >&5
911 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
912 echo $ac_n "(cached) $ac_c" 1>&6
914 cat > conftest.
$ac_ext <<EOF
915 #line 916 "configure"
916 #include "confdefs.h"
921 #define __CYGWIN__ __CYGWIN32__
926 if { (eval echo configure
:927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
930 echo "configure: failed program was:" >&5
931 cat conftest.
$ac_ext >&5
939 echo "$ac_t""$ac_cv_cygwin" 1>&6
941 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
942 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
943 echo "configure:944: checking for mingw32 environment" >&5
944 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
945 echo $ac_n "(cached) $ac_c" 1>&6
947 cat > conftest.
$ac_ext <<EOF
948 #line 949 "configure"
949 #include "confdefs.h"
955 if { (eval echo configure
:956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
959 echo "configure: failed program was:" >&5
960 cat conftest.
$ac_ext >&5
968 echo "$ac_t""$ac_cv_mingw32" 1>&6
970 test "$ac_cv_mingw32" = yes && MINGW32
=yes
973 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
974 echo "configure:975: checking for executable suffix" >&5
975 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
978 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
982 echo 'int main () { return 0; }' > conftest.
$ac_ext
984 if { (eval echo configure
:985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
985 for file in conftest.
*; do
987 *.c |
*.o |
*.obj
) ;;
988 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
992 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
995 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1000 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1001 echo "$ac_t""${ac_cv_exeext}" 1>&6
1005 target_alias
=${target_alias-$target}
1013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1014 ac_cpp
='$CPP $CPPFLAGS'
1015 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1016 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1017 cross_compiling
=$ac_cv_prog_cc_cross
1019 # Extract the first word of "gcc", so it can be a program name with args.
1020 set dummy gcc
; ac_word
=$2
1021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1022 echo "configure:1023: checking for $ac_word" >&5
1023 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1026 if test -n "$CC"; then
1027 ac_cv_prog_CC
="$CC" # Let the user override the test.
1029 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1031 for ac_dir
in $ac_dummy; do
1032 test -z "$ac_dir" && ac_dir
=.
1033 if test -f $ac_dir/$ac_word; then
1042 if test -n "$CC"; then
1043 echo "$ac_t""$CC" 1>&6
1045 echo "$ac_t""no" 1>&6
1048 if test -z "$CC"; then
1049 # Extract the first word of "cc", so it can be a program name with args.
1050 set dummy cc
; ac_word
=$2
1051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1052 echo "configure:1053: checking for $ac_word" >&5
1053 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1054 echo $ac_n "(cached) $ac_c" 1>&6
1056 if test -n "$CC"; then
1057 ac_cv_prog_CC
="$CC" # Let the user override the test.
1059 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1062 for ac_dir
in $ac_dummy; do
1063 test -z "$ac_dir" && ac_dir
=.
1064 if test -f $ac_dir/$ac_word; then
1065 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1066 ac_prog_rejected
=yes
1074 if test $ac_prog_rejected = yes; then
1075 # We found a bogon in the path, so make sure we never use it.
1076 set dummy
$ac_cv_prog_CC
1078 if test $# -gt 0; then
1079 # We chose a different compiler from the bogus one.
1080 # However, it has the same basename, so the bogon will be chosen
1081 # first if we set CC to just the basename; use the full file name.
1083 set dummy
"$ac_dir/$ac_word" "$@"
1091 if test -n "$CC"; then
1092 echo "$ac_t""$CC" 1>&6
1094 echo "$ac_t""no" 1>&6
1097 if test -z "$CC"; then
1098 case "`uname -s`" in
1100 # Extract the first word of "cl", so it can be a program name with args.
1101 set dummy cl
; ac_word
=$2
1102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1103 echo "configure:1104: checking for $ac_word" >&5
1104 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1107 if test -n "$CC"; then
1108 ac_cv_prog_CC
="$CC" # Let the user override the test.
1110 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1112 for ac_dir
in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir
=.
1114 if test -f $ac_dir/$ac_word; then
1123 if test -n "$CC"; then
1124 echo "$ac_t""$CC" 1>&6
1126 echo "$ac_t""no" 1>&6
1131 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1134 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1135 echo "configure:1136: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1138 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1139 ac_cpp
='$CPP $CPPFLAGS'
1140 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1141 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1142 cross_compiling
=$ac_cv_prog_cc_cross
1144 cat > conftest.
$ac_ext << EOF
1146 #line 1147 "configure"
1147 #include "confdefs.h"
1151 if { (eval echo configure
:1152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1152 ac_cv_prog_cc_works
=yes
1153 # If we can't run a trivial program, we are probably using a cross compiler.
1154 if (.
/conftest
; exit) 2>/dev
/null
; then
1155 ac_cv_prog_cc_cross
=no
1157 ac_cv_prog_cc_cross
=yes
1160 echo "configure: failed program was:" >&5
1161 cat conftest.
$ac_ext >&5
1162 ac_cv_prog_cc_works
=no
1166 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1167 ac_cpp
='$CPP $CPPFLAGS'
1168 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1169 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1170 cross_compiling
=$ac_cv_prog_cc_cross
1172 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1173 if test $ac_cv_prog_cc_works = no
; then
1174 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1176 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1177 echo "configure:1178: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1178 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1179 cross_compiling
=$ac_cv_prog_cc_cross
1181 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1182 echo "configure:1183: checking whether we are using GNU C" >&5
1183 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1186 cat > conftest.c
<<EOF
1191 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1198 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1200 if test $ac_cv_prog_gcc = yes; then
1206 ac_test_CFLAGS
="${CFLAGS+set}"
1207 ac_save_CFLAGS
="$CFLAGS"
1209 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1210 echo "configure:1211: checking whether ${CC-cc} accepts -g" >&5
1211 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1214 echo 'void f(){}' > conftest.c
1215 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1224 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1225 if test "$ac_test_CFLAGS" = set; then
1226 CFLAGS
="$ac_save_CFLAGS"
1227 elif test $ac_cv_prog_cc_g = yes; then
1228 if test "$GCC" = yes; then
1234 if test "$GCC" = yes; then
1241 if test "x$GCC" != "xyes"; then
1242 { echo "configure: error: libmudflap must be built with GCC" 1>&2; exit 1; }
1244 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1245 echo "configure:1246: checking how to run the C preprocessor" >&5
1246 # On Suns, sometimes $CPP names a directory.
1247 if test -n "$CPP" && test -d "$CPP"; then
1250 if test -z "$CPP"; then
1251 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1254 # This must be in double quotes, not single quotes, because CPP may get
1255 # substituted into the Makefile and "${CC-cc}" will confuse make.
1257 # On the NeXT, cc -E runs the code through the compiler's parser,
1258 # not just through cpp.
1259 cat > conftest.
$ac_ext <<EOF
1260 #line 1261 "configure"
1261 #include "confdefs.h"
1265 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1266 { (eval echo configure
:1267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1267 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1268 if test -z "$ac_err"; then
1272 echo "configure: failed program was:" >&5
1273 cat conftest.
$ac_ext >&5
1275 CPP
="${CC-cc} -E -traditional-cpp"
1276 cat > conftest.
$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1282 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1283 { (eval echo configure
:1284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1284 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1285 if test -z "$ac_err"; then
1289 echo "configure: failed program was:" >&5
1290 cat conftest.
$ac_ext >&5
1292 CPP
="${CC-cc} -nologo -E"
1293 cat > conftest.
$ac_ext <<EOF
1294 #line 1295 "configure"
1295 #include "confdefs.h"
1299 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1300 { (eval echo configure
:1301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1301 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1302 if test -z "$ac_err"; then
1306 echo "configure: failed program was:" >&5
1307 cat conftest.
$ac_ext >&5
1316 ac_cv_prog_CPP
="$CPP"
1318 CPP
="$ac_cv_prog_CPP"
1320 ac_cv_prog_CPP
="$CPP"
1322 echo "$ac_t""$CPP" 1>&6
1325 # Some hosts don't have dlsym(RTLD_NEXT, "symbol") for use in
1326 # symbol interposition. We disable shared libraries for these.
1327 echo $ac_n "checking whether dlsym(RTLD_NEXT,...) is available""... $ac_c" 1>&6
1328 echo "configure:1329: checking whether dlsym(RTLD_NEXT,...) is available" >&5
1329 cat > conftest.
$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1337 void *foo = dlsym (RTLD_NEXT, "exit");
1340 if { (eval echo configure
:1341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1342 echo "$ac_t""yes" 1>&6
1344 echo "configure: failed program was:" >&5
1345 cat conftest.
$ac_ext >&5
1347 echo "$ac_t""no" 1>&6
1352 for ac_hdr
in stdint.h execinfo.h signal.h dlfcn.h
1354 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1356 echo "configure:1357: checking for $ac_hdr" >&5
1357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1360 cat > conftest.
$ac_ext <<EOF
1361 #line 1362 "configure"
1362 #include "confdefs.h"
1365 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1366 { (eval echo configure
:1367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1367 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1368 if test -z "$ac_err"; then
1370 eval "ac_cv_header_$ac_safe=yes"
1373 echo "configure: failed program was:" >&5
1374 cat conftest.
$ac_ext >&5
1376 eval "ac_cv_header_$ac_safe=no"
1380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1381 echo "$ac_t""yes" 1>&6
1382 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1383 cat >> confdefs.h
<<EOF
1384 #define $ac_tr_hdr 1
1388 echo "$ac_t""no" 1>&6
1392 for ac_func
in backtrace backtrace_symbols gettimeofday signal
1394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1395 echo "configure:1396: checking for $ac_func" >&5
1396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 cat > conftest.
$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1402 /* System header to define __stub macros and hopefully few prototypes,
1403 which can conflict with char $ac_func(); below. */
1405 /* Override any gcc2 internal prototype to avoid an error. */
1406 /* We use char because int might match the return type of a gcc2
1407 builtin and then its argument prototype would still apply. */
1412 /* The GNU C library defines this for functions which it implements
1413 to always fail with ENOSYS. Some functions are actually named
1414 something starting with __ and the normal name is an alias. */
1415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1423 if { (eval echo configure
:1424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1425 eval "ac_cv_func_$ac_func=yes"
1427 echo "configure: failed program was:" >&5
1428 cat conftest.
$ac_ext >&5
1430 eval "ac_cv_func_$ac_func=no"
1435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1436 echo "$ac_t""yes" 1>&6
1437 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1438 cat >> confdefs.h
<<EOF
1439 #define $ac_tr_func 1
1443 echo "$ac_t""no" 1>&6
1448 for ac_func
in fopen64 fseeko64 ftello64 stat64
1450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1451 echo "configure:1452: checking for $ac_func" >&5
1452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1455 cat > conftest.
$ac_ext <<EOF
1456 #line 1457 "configure"
1457 #include "confdefs.h"
1458 /* System header to define __stub macros and hopefully few prototypes,
1459 which can conflict with char $ac_func(); below. */
1461 /* Override any gcc2 internal prototype to avoid an error. */
1462 /* We use char because int might match the return type of a gcc2
1463 builtin and then its argument prototype would still apply. */
1468 /* The GNU C library defines this for functions which it implements
1469 to always fail with ENOSYS. Some functions are actually named
1470 something starting with __ and the normal name is an alias. */
1471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1479 if { (eval echo configure
:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1481 eval "ac_cv_func_$ac_func=yes"
1483 echo "configure: failed program was:" >&5
1484 cat conftest.
$ac_ext >&5
1486 eval "ac_cv_func_$ac_func=no"
1491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1492 echo "$ac_t""yes" 1>&6
1493 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1494 cat >> confdefs.h
<<EOF
1495 #define $ac_tr_func 1
1499 echo "$ac_t""no" 1>&6
1504 cat > conftest.
$ac_ext <<EOF
1505 #line 1506 "configure"
1506 #include "confdefs.h"
1507 #include <sys/types.h>
1508 #include <sys/ipc.h>
1509 #include <sys/sem.h>
1514 if { (eval echo configure
:1515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1518 echo "configure: failed program was:" >&5
1519 cat conftest.
$ac_ext >&5
1524 if test $mf_have_semun = 1
1526 cat >> confdefs.h
<<\EOF
1527 #define HAVE_UNION_SEMUN 1
1533 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
1534 echo "configure:1535: checking for socklen_t in sys/socket.h" >&5
1535 cat > conftest.
$ac_ext <<EOF
1536 #line 1537 "configure"
1537 #include "confdefs.h"
1538 #define _POSIX_PII_SOCKET
1539 #include <sys/types.h>
1540 #include <sys/socket.h>
1545 if { (eval echo configure
:1546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1547 cat >> confdefs.h
<<\EOF
1548 #define HAVE_SOCKLEN_T 1
1551 echo "$ac_t""yes" 1>&6
1553 echo "configure: failed program was:" >&5
1554 cat conftest.
$ac_ext >&5
1556 echo "$ac_t""no" 1>&6
1561 # Check whether --enable-shared or --disable-shared was given.
1562 if test "${enable_shared+set}" = set; then
1563 enableval
="$enable_shared"
1564 p
=${PACKAGE-default}
1566 yes) enable_shared
=yes ;;
1567 no
) enable_shared
=no
;;
1570 # Look at the argument we got. We use all the common list separators.
1571 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1572 for pkg
in $enableval; do
1573 if test "X$pkg" = "X$p"; then
1584 # Check whether --enable-static or --disable-static was given.
1585 if test "${enable_static+set}" = set; then
1586 enableval
="$enable_static"
1587 p
=${PACKAGE-default}
1589 yes) enable_static
=yes ;;
1590 no
) enable_static
=no
;;
1593 # Look at the argument we got. We use all the common list separators.
1594 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1595 for pkg
in $enableval; do
1596 if test "X$pkg" = "X$p"; then
1607 # Check whether --enable-fast-install or --disable-fast-install was given.
1608 if test "${enable_fast_install+set}" = set; then
1609 enableval
="$enable_fast_install"
1610 p
=${PACKAGE-default}
1612 yes) enable_fast_install
=yes ;;
1613 no
) enable_fast_install
=no
;;
1615 enable_fast_install
=no
1616 # Look at the argument we got. We use all the common list separators.
1617 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1618 for pkg
in $enableval; do
1619 if test "X$pkg" = "X$p"; then
1620 enable_fast_install
=yes
1627 enable_fast_install
=yes
1630 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1631 if test "${with_gnu_ld+set}" = set; then
1632 withval
="$with_gnu_ld"
1633 test "$withval" = no || with_gnu_ld
=yes
1639 if test "$GCC" = yes; then
1640 # Check if gcc -print-prog-name=ld gives a path.
1641 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1642 echo "configure:1643: checking for ld used by GCC" >&5
1645 # gcc leaves a trailing carriage return which upsets mingw
1646 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1648 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1651 # Accept absolute paths.
1652 [\\/]* |
[A-Za-z
]:[\\/]*)
1653 re_direlt
='/[^/][^/]*/\.\./'
1654 # Canonicalize the path of ld
1655 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1656 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1657 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1659 test -z "$LD" && LD
="$ac_prog"
1662 # If it fails, then pretend we aren't using GCC.
1666 # If it is relative, then search for the first ld in PATH.
1670 elif test "$with_gnu_ld" = yes; then
1671 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1672 echo "configure:1673: checking for GNU ld" >&5
1674 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1675 echo "configure:1676: checking for non-GNU ld" >&5
1677 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1680 if test -z "$LD"; then
1681 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1682 for ac_dir
in $PATH; do
1683 test -z "$ac_dir" && ac_dir
=.
1684 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1685 lt_cv_path_LD
="$ac_dir/$ac_prog"
1686 # Check to see if the program is GNU ld. I'd rather use --version,
1687 # but apparently some GNU ld's only accept -v.
1688 # Break only if it was the GNU/non-GNU ld that we prefer.
1689 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1690 test "$with_gnu_ld" != no
&& break
1692 test "$with_gnu_ld" != yes && break
1698 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1703 if test -n "$LD"; then
1704 echo "$ac_t""$LD" 1>&6
1706 echo "$ac_t""no" 1>&6
1708 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1709 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1710 echo "configure:1711: checking if the linker ($LD) is GNU ld" >&5
1711 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1714 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1715 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1716 lt_cv_prog_gnu_ld
=yes
1718 lt_cv_prog_gnu_ld
=no
1722 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1723 with_gnu_ld
=$lt_cv_prog_gnu_ld
1726 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1727 echo "configure:1728: checking for $LD option to reload object files" >&5
1728 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1729 echo $ac_n "(cached) $ac_c" 1>&6
1731 lt_cv_ld_reload_flag
='-r'
1734 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1735 reload_flag
=$lt_cv_ld_reload_flag
1736 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1738 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1739 echo "configure:1740: checking for BSD-compatible nm" >&5
1740 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1741 echo $ac_n "(cached) $ac_c" 1>&6
1743 if test -n "$NM"; then
1744 # Let the user override the test.
1747 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1748 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1749 test -z "$ac_dir" && ac_dir
=.
1750 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1751 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1752 # Check to see if the nm accepts a BSD-compat flag.
1753 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1754 # nm: unknown option "B" ignored
1755 # Tru64's nm complains that /dev/null is an invalid object file
1756 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1757 lt_cv_path_NM
="$tmp_nm -B"
1759 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1760 lt_cv_path_NM
="$tmp_nm -p"
1763 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1764 continue # so that we can try to find one that supports BSD flags
1769 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1774 echo "$ac_t""$NM" 1>&6
1776 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1777 echo "configure:1778: checking whether ln -s works" >&5
1778 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1782 if ln -s X conftestdata
2>/dev
/null
1785 ac_cv_prog_LN_S
="ln -s"
1790 LN_S
="$ac_cv_prog_LN_S"
1791 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1792 echo "$ac_t""yes" 1>&6
1794 echo "$ac_t""no" 1>&6
1797 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1798 echo "configure:1799: checking how to recognise dependant libraries" >&5
1799 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1800 lt_cv_file_magic_test_file
=
1801 lt_cv_deplibs_check_method
='unknown'
1802 # Need to set the preceding variable on all platforms that support
1803 # interlibrary dependencies.
1804 # 'none' -- dependencies not supported.
1805 # `unknown' -- same as none, but documents that we really don't know.
1806 # 'pass_all' -- all dependencies passed with no checks.
1807 # 'test_compile' -- check by making test program.
1808 # 'file_magic [regex]' -- check by looking for files in library path
1809 # which responds to the $file_magic_cmd with a given egrep regex.
1810 # If you have `file' or equivalent on your system and you're not sure
1811 # whether `pass_all' will *always* work, you probably want this one.
1815 lt_cv_deplibs_check_method
=pass_all
1819 lt_cv_deplibs_check_method
=pass_all
1823 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1824 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1825 lt_cv_file_magic_test_file
=/shlib
/libc.so
1828 cygwin
* | mingw
* |pw32
*)
1829 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1830 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1833 darwin
* | rhapsody
*)
1834 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1835 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1837 rhapsody
* | darwin1.012
)
1838 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1841 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1847 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1850 # Not sure whether the presence of OpenBSD here was a mistake.
1851 # Let's accept both of them until this is cleared up.
1852 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1853 lt_cv_file_magic_cmd
=/usr
/bin
/file
1854 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1858 lt_cv_deplibs_check_method
=pass_all
1863 lt_cv_deplibs_check_method
=pass_all
1869 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1870 lt_cv_file_magic_cmd
=/usr
/bin
/file
1871 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1874 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1875 lt_cv_file_magic_cmd
=/usr
/bin
/file
1876 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
1884 # this will be overridden with pass_all, but let us keep it just in case
1885 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1889 *-32|
*"-32 ") libmagic
=32-bit;;
1890 *-n32|
*"-n32 ") libmagic
=N32
;;
1891 *-64|
*"-64 ") libmagic
=64-bit;;
1892 *) libmagic
=never-match
;;
1894 # this will be overridden with pass_all, but let us keep it just in case
1895 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1898 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1899 lt_cv_deplibs_check_method
=pass_all
1902 # This must be Linux ELF.
1905 alpha
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* | x86_64
* | sh
*)
1906 lt_cv_deplibs_check_method
=pass_all
;;
1907 # NB 2003-06-03: According to Alexandre Oliva, x86_64 should not be
1908 # in this list. However, it works around a libtool problem that
1909 # wrongly excludes -ldl/-lpthread from the libmudflap(th) dependencies.
1911 # glibc up to 2.1.1 does not perform some relocations on ARM
1912 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1914 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1918 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1919 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1921 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1926 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1927 lt_cv_file_magic_cmd
=/usr
/bin
/file
1928 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1931 osf3
* | osf4
* | osf5
*)
1932 # this will be overridden with pass_all, but let us keep it just in case
1933 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1934 lt_cv_file_magic_test_file
=/shlib
/libc.so
1935 lt_cv_deplibs_check_method
=pass_all
1939 lt_cv_deplibs_check_method
=pass_all
1943 lt_cv_deplibs_check_method
=pass_all
1944 lt_cv_file_magic_test_file
=/lib
/libc.so
1947 sysv5uw
[78]* | sysv4
*uw2
*)
1948 lt_cv_deplibs_check_method
=pass_all
1951 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1952 case $host_vendor in
1954 lt_cv_deplibs_check_method
=pass_all
1957 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1958 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1963 file_magic_cmd
=$lt_cv_file_magic_cmd
1964 deplibs_check_method
=$lt_cv_deplibs_check_method
1965 # NB: See above NB ... this is to make sure that the overriden
1966 # local libtool variant doesn't pollute the upstream cache
1967 unset lt_cv_file_magic_cmd
1968 unset lt_cv_deplibs_check_method
1969 echo "$ac_t""$deplibs_check_method" 1>&6
1971 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1972 echo "configure:1973: checking for object suffix" >&5
1973 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1974 echo $ac_n "(cached) $ac_c" 1>&6
1977 echo 'int i = 1;' > conftest.
$ac_ext
1978 if { (eval echo configure
:1979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1979 for ac_file
in conftest.
*; do
1982 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1986 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1991 echo "$ac_t""$ac_cv_objext" 1>&6
1992 OBJEXT
=$ac_cv_objext
1993 ac_objext
=$ac_cv_objext
1995 if test $host != $build; then
1996 ac_tool_prefix
=${host_alias}-
2001 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2003 # Only perform the check for file, if the check method requires it
2004 case $deplibs_check_method in
2006 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2007 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2008 echo "configure:2009: checking for ${ac_tool_prefix}file" >&5
2009 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2014 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2017 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2020 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2021 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2022 ac_dummy
="/usr/bin:$PATH"
2023 for ac_dir
in $ac_dummy; do
2024 test -z "$ac_dir" && ac_dir
=.
2025 if test -f $ac_dir/${ac_tool_prefix}file; then
2026 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
2027 if test -n "$file_magic_test_file"; then
2028 case $deplibs_check_method in
2030 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2031 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2032 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2033 egrep "$file_magic_regex" > /dev
/null
; then
2038 *** Warning: the command libtool uses to detect shared libraries,
2039 *** $file_magic_cmd, produces output that libtool cannot recognize.
2040 *** The result is that libtool may fail to recognize shared libraries
2041 *** as such. This will affect the creation of libtool libraries that
2042 *** depend on shared libraries, but programs linked with such libtool
2043 *** libraries will work regardless of this problem. Nevertheless, you
2044 *** may want to report the problem to your system manager and/or to
2045 *** bug-libtool@gnu.org
2055 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2060 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2061 if test -n "$MAGIC_CMD"; then
2062 echo "$ac_t""$MAGIC_CMD" 1>&6
2064 echo "$ac_t""no" 1>&6
2067 if test -z "$lt_cv_path_MAGIC_CMD"; then
2068 if test -n "$ac_tool_prefix"; then
2069 echo $ac_n "checking for file""... $ac_c" 1>&6
2070 echo "configure:2071: checking for file" >&5
2071 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6
2076 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2079 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2082 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2083 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2084 ac_dummy
="/usr/bin:$PATH"
2085 for ac_dir
in $ac_dummy; do
2086 test -z "$ac_dir" && ac_dir
=.
2087 if test -f $ac_dir/file; then
2088 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
2089 if test -n "$file_magic_test_file"; then
2090 case $deplibs_check_method in
2092 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2093 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2094 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2095 egrep "$file_magic_regex" > /dev
/null
; then
2100 *** Warning: the command libtool uses to detect shared libraries,
2101 *** $file_magic_cmd, produces output that libtool cannot recognize.
2102 *** The result is that libtool may fail to recognize shared libraries
2103 *** as such. This will affect the creation of libtool libraries that
2104 *** depend on shared libraries, but programs linked with such libtool
2105 *** libraries will work regardless of this problem. Nevertheless, you
2106 *** may want to report the problem to your system manager and/or to
2107 *** bug-libtool@gnu.org
2117 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2122 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2123 if test -n "$MAGIC_CMD"; then
2124 echo "$ac_t""$MAGIC_CMD" 1>&6
2126 echo "$ac_t""no" 1>&6
2138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2139 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2140 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2141 echo "configure:2142: checking for $ac_word" >&5
2142 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2145 if test -n "$RANLIB"; then
2146 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2148 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2150 for ac_dir
in $ac_dummy; do
2151 test -z "$ac_dir" && ac_dir
=.
2152 if test -f $ac_dir/$ac_word; then
2153 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2160 RANLIB
="$ac_cv_prog_RANLIB"
2161 if test -n "$RANLIB"; then
2162 echo "$ac_t""$RANLIB" 1>&6
2164 echo "$ac_t""no" 1>&6
2168 if test -z "$ac_cv_prog_RANLIB"; then
2169 if test -n "$ac_tool_prefix"; then
2170 # Extract the first word of "ranlib", so it can be a program name with args.
2171 set dummy ranlib
; ac_word
=$2
2172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2173 echo "configure:2174: checking for $ac_word" >&5
2174 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2175 echo $ac_n "(cached) $ac_c" 1>&6
2177 if test -n "$RANLIB"; then
2178 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2180 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2182 for ac_dir
in $ac_dummy; do
2183 test -z "$ac_dir" && ac_dir
=.
2184 if test -f $ac_dir/$ac_word; then
2185 ac_cv_prog_RANLIB
="ranlib"
2190 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2193 RANLIB
="$ac_cv_prog_RANLIB"
2194 if test -n "$RANLIB"; then
2195 echo "$ac_t""$RANLIB" 1>&6
2197 echo "$ac_t""no" 1>&6
2205 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2206 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2208 echo "configure:2209: checking for $ac_word" >&5
2209 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2212 if test -n "$STRIP"; then
2213 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2215 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2217 for ac_dir
in $ac_dummy; do
2218 test -z "$ac_dir" && ac_dir
=.
2219 if test -f $ac_dir/$ac_word; then
2220 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2227 STRIP
="$ac_cv_prog_STRIP"
2228 if test -n "$STRIP"; then
2229 echo "$ac_t""$STRIP" 1>&6
2231 echo "$ac_t""no" 1>&6
2235 if test -z "$ac_cv_prog_STRIP"; then
2236 if test -n "$ac_tool_prefix"; then
2237 # Extract the first word of "strip", so it can be a program name with args.
2238 set dummy strip
; ac_word
=$2
2239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2240 echo "configure:2241: checking for $ac_word" >&5
2241 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2244 if test -n "$STRIP"; then
2245 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2247 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2249 for ac_dir
in $ac_dummy; do
2250 test -z "$ac_dir" && ac_dir
=.
2251 if test -f $ac_dir/$ac_word; then
2252 ac_cv_prog_STRIP
="strip"
2257 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2260 STRIP
="$ac_cv_prog_STRIP"
2261 if test -n "$STRIP"; then
2262 echo "$ac_t""$STRIP" 1>&6
2264 echo "$ac_t""no" 1>&6
2273 # Check for any special flags to pass to ltconfig.
2274 libtool_flags
="--cache-file=$cache_file"
2275 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2276 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2277 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2278 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
2279 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2280 libtool_flags
="$libtool_flags --enable-dlopen"
2282 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2283 if test "${enable_libtool_lock+set}" = set; then
2284 enableval
="$enable_libtool_lock"
2288 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2289 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2291 # Check whether --with-pic or --without-pic was given.
2292 if test "${with_pic+set}" = set; then
2299 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2300 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2302 # Some flags need to be propagated to the compiler or linker for good
2306 # Find out which ABI we are using.
2307 echo '#line 2308 "configure"' > conftest.
$ac_ext
2308 if { (eval echo configure
:2309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2309 case `/usr/bin/file conftest.$ac_objext` in
2325 # Find out which ABI we are using.
2326 echo 'int i;' > conftest.
$ac_ext
2327 if { (eval echo configure
:2328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2328 case "`/usr/bin/file conftest.o`" in
2340 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
2341 # Find out which ABI we are using.
2342 echo 'int i;' > conftest.
$ac_ext
2343 if { (eval echo configure
:2344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2344 case "`/usr/bin/file conftest.o`" in
2348 LD
="${LD-ld} -m elf_i386"
2351 LD
="${LD-ld} -m elf32ppclinux"
2354 LD
="${LD-ld} -m elf_s390"
2357 LD
="${LD-ld} -m elf32_sparc"
2364 LD
="${LD-ld} -m elf_x86_64"
2366 ppc
*-*linux
*|powerpc
*-*linux
*)
2367 LD
="${LD-ld} -m elf64ppc"
2370 LD
="${LD-ld} -m elf64_s390"
2373 LD
="${LD-ld} -m elf64_sparc"
2383 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2384 SAVE_CFLAGS
="$CFLAGS"
2385 CFLAGS
="$CFLAGS -belf"
2386 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2387 echo "configure:2388: checking whether the C compiler needs -belf" >&5
2388 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2393 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2394 ac_cpp
='$CPP $CPPFLAGS'
2395 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2396 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2397 cross_compiling
=$ac_cv_prog_cc_cross
2399 cat > conftest.
$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2407 if { (eval echo configure
:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2409 lt_cv_cc_needs_belf
=yes
2411 echo "configure: failed program was:" >&5
2412 cat conftest.
$ac_ext >&5
2414 lt_cv_cc_needs_belf
=no
2418 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2419 ac_cpp
='$CPP $CPPFLAGS'
2420 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2421 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2422 cross_compiling
=$ac_cv_prog_cc_cross
2426 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2427 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2428 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2429 CFLAGS
="$SAVE_CFLAGS"
2437 # Save cache, so that ltconfig can load it
2438 cat > confcache
<<\EOF
2439 # This file is a shell script that caches the results of configure
2440 # tests run on this system so they can be shared between configure
2441 # scripts and configure runs. It is not useful on other systems.
2442 # If it contains results you don't want to keep, you may remove or edit it.
2444 # By default, configure uses ./config.cache as the cache file,
2445 # creating it if it does not exist already. You can give configure
2446 # the --cache-file=FILE option to use a different cache file; that is
2447 # what configure does when it calls configure scripts in
2448 # subdirectories, so they share the cache.
2449 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2450 # config.status only pays attention to the cache file if you give it the
2451 # --recheck option to rerun configure.
2454 # The following way of writing the cache mishandles newlines in values,
2455 # but we know of no workaround that is simple, portable, and efficient.
2456 # So, don't put newlines in cache variables' values.
2457 # Ultrix sh set writes to stderr and can't be redirected directly,
2458 # and sets the high bit in the cache file unless we assign to the vars.
2460 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2462 # `set' does not quote correctly, so add quotes (double-quote substitution
2463 # turns \\\\ into \\, and sed turns \\ into \).
2465 -e "s/'/'\\\\''/g" \
2466 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2469 # `set' quotes correctly as required by POSIX, so do not add quotes.
2470 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2473 if cmp -s $cache_file confcache
; then
2476 if test -w $cache_file; then
2477 echo "updating cache $cache_file"
2478 cat confcache
> $cache_file
2480 echo "not updating unwritable cache $cache_file"
2486 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2487 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2488 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2489 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2490 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2491 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2492 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2493 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2494 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2495 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2497 # Reload cache, that may have been modified by ltconfig
2498 if test -r "$cache_file"; then
2499 echo "loading cache $cache_file"
2502 echo "creating cache $cache_file"
2507 # This can be used to rebuild libtool when needed
2508 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2510 # Always use our own libtool.
2511 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2513 # Redirect the config.log output again, so that the ltconfig log is not
2514 # clobbered by the next message.
2515 exec 5>>.
/config.log
2525 ac_safe
=`echo "stdint.h" | sed 'y%./+-%__p_%'`
2526 echo $ac_n "checking for stdint.h""... $ac_c" 1>&6
2527 echo "configure:2528: checking for stdint.h" >&5
2528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2529 echo $ac_n "(cached) $ac_c" 1>&6
2531 cat > conftest.
$ac_ext <<EOF
2532 #line 2533 "configure"
2533 #include "confdefs.h"
2536 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2537 { (eval echo configure
:2538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2538 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2539 if test -z "$ac_err"; then
2541 eval "ac_cv_header_$ac_safe=yes"
2544 echo "configure: failed program was:" >&5
2545 cat conftest.
$ac_ext >&5
2547 eval "ac_cv_header_$ac_safe=no"
2551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2552 echo "$ac_t""yes" 1>&6
2555 echo "$ac_t""no" 1>&6
2560 if test $MF_HAVE_STDINT_H = 1
2564 cat > conftest.
$ac_ext <<EOF
2565 #line 2566 "configure"
2566 #include "confdefs.h"
2567 #include <sys/types.h>
2572 if { (eval echo configure
:2573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2576 echo "configure: failed program was:" >&5
2577 cat conftest.
$ac_ext >&5
2587 # libmudflapth objects are built in this subdirectory
2591 pthread_create_version
='""'
2592 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2593 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2594 echo "configure:2595: checking for pthread.h" >&5
2595 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 cat > conftest.
$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2601 #include <pthread.h>
2603 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2604 { (eval echo configure
:2605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2605 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2606 if test -z "$ac_err"; then
2608 eval "ac_cv_header_$ac_safe=yes"
2611 echo "configure: failed program was:" >&5
2612 cat conftest.
$ac_ext >&5
2614 eval "ac_cv_header_$ac_safe=no"
2618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2619 echo "$ac_t""yes" 1>&6
2621 cat >> confdefs.h
<<EOF
2622 #define HAVE_PTHREAD_H 1
2625 ac_have_pthread_h
=yes
2628 echo "$ac_t""no" 1>&6
2636 if test "x$ac_have_pthread_h" != ""; then
2638 LIBMUDFLAPTH_FALSE
='#'
2640 LIBMUDFLAPTH_TRUE
='#'
2644 echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
2645 echo "configure:2646: checking for dlsym in -ldl" >&5
2646 ac_lib_var
=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
2647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2650 ac_save_LIBS
="$LIBS"
2652 cat > conftest.
$ac_ext <<EOF
2653 #line 2654 "configure"
2654 #include "confdefs.h"
2655 /* Override any gcc2 internal prototype to avoid an error. */
2656 /* We use char because int might match the return type of a gcc2
2657 builtin and then its argument prototype would still apply. */
2664 if { (eval echo configure
:2665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2666 eval "ac_cv_lib_$ac_lib_var=yes"
2668 echo "configure: failed program was:" >&5
2669 cat conftest.
$ac_ext >&5
2671 eval "ac_cv_lib_$ac_lib_var=no"
2674 LIBS
="$ac_save_LIBS"
2677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2678 echo "$ac_t""yes" 1>&6
2679 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2680 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2681 cat >> confdefs.h
<<EOF
2682 #define $ac_tr_lib 1
2688 echo "$ac_t""no" 1>&6
2692 if test "x$enable_shared" = "xyes" && test "x$ac_have_pthread_h" != ""; then
2693 # NB: don't check for -lpthread here, because then it would be
2694 # added to LIBS. For the thread-unaware libmudflap.la, we don't
2697 # glibc-related hacks. dlsym() may pick the wrong version of
2698 # interposed functions like pthread_create on modern glibc.
2699 # We need to find the proper symbol version string, and use
2700 # the nonstandard dlvsym().
2701 for ac_func
in dlvsym
2703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2704 echo "configure:2705: checking for $ac_func" >&5
2705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2708 cat > conftest.
$ac_ext <<EOF
2709 #line 2710 "configure"
2710 #include "confdefs.h"
2711 /* System header to define __stub macros and hopefully few prototypes,
2712 which can conflict with char $ac_func(); below. */
2714 /* Override any gcc2 internal prototype to avoid an error. */
2715 /* We use char because int might match the return type of a gcc2
2716 builtin and then its argument prototype would still apply. */
2721 /* The GNU C library defines this for functions which it implements
2722 to always fail with ENOSYS. Some functions are actually named
2723 something starting with __ and the normal name is an alias. */
2724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2732 if { (eval echo configure
:2733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2734 eval "ac_cv_func_$ac_func=yes"
2736 echo "configure: failed program was:" >&5
2737 cat conftest.
$ac_ext >&5
2739 eval "ac_cv_func_$ac_func=no"
2744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2745 echo "$ac_t""yes" 1>&6
2746 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2747 cat >> confdefs.h
<<EOF
2748 #define $ac_tr_func 1
2752 echo "$ac_t""no" 1>&6
2756 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2757 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
2758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2759 echo "configure:2760: checking for $ac_word" >&5
2760 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2763 if test -n "$NM"; then
2764 ac_cv_prog_NM
="$NM" # Let the user override the test.
2766 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2768 for ac_dir
in $ac_dummy; do
2769 test -z "$ac_dir" && ac_dir
=.
2770 if test -f $ac_dir/$ac_word; then
2771 ac_cv_prog_NM
="${ac_tool_prefix}nm"
2776 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="nm"
2780 if test -n "$NM"; then
2781 echo "$ac_t""$NM" 1>&6
2783 echo "$ac_t""no" 1>&6
2788 if test "x$ac_cv_have_dlvsym" != ""; then
2789 # Try compiling a simple pthreads program. Find the shared libraries it
2790 # ends up with. Then use "nm" on those libraries to extract the
2791 # default symbol versioning suffix ("@@"), if any. But that's tricky.
2792 # Rather, run nm on the resulting executable. Unfortunately, autoconf
2793 # doesn't appear to have a macro that builds a test executable for
2794 # subsequent analysis ... so we do it by hand here.
2795 cat >> conftest.c
<< EOF
2796 #include <pthread.h>
2797 int main () { void *p = (void *) & pthread_create; return (int) p; }
2800 LIBS
="$LIBS -lpthread"
2801 pthread_create_version
="\"\""
2802 echo $ac_n "checking pthread_create symbol version""... $ac_c" 1>&6
2803 echo "configure:2804: checking pthread_create symbol version" >&5
2804 if eval $ac_link 2>&5 && test -s conftest
${ac_exeext}; then
2805 version
=`$NM conftest${ac_exeect} | grep 'pthread_create@@' | sed -e 's/^.*@@//'`
2806 if test "x$version" != "x"; then
2807 pthread_create_version
="\"$version\""
2810 echo "$ac_t""$pthread_create_version" 1>&6
2814 cat >> confdefs.h
<<EOF
2815 #define PTHREAD_CREATE_VERSION $pthread_create_version
2821 cat > confcache
<<\EOF
2822 # This file is a shell script that caches the results of configure
2823 # tests run on this system so they can be shared between configure
2824 # scripts and configure runs. It is not useful on other systems.
2825 # If it contains results you don't want to keep, you may remove or edit it.
2827 # By default, configure uses ./config.cache as the cache file,
2828 # creating it if it does not exist already. You can give configure
2829 # the --cache-file=FILE option to use a different cache file; that is
2830 # what configure does when it calls configure scripts in
2831 # subdirectories, so they share the cache.
2832 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2833 # config.status only pays attention to the cache file if you give it the
2834 # --recheck option to rerun configure.
2837 # The following way of writing the cache mishandles newlines in values,
2838 # but we know of no workaround that is simple, portable, and efficient.
2839 # So, don't put newlines in cache variables' values.
2840 # Ultrix sh set writes to stderr and can't be redirected directly,
2841 # and sets the high bit in the cache file unless we assign to the vars.
2843 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2845 # `set' does not quote correctly, so add quotes (double-quote substitution
2846 # turns \\\\ into \\, and sed turns \\ into \).
2848 -e "s/'/'\\\\''/g" \
2849 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2852 # `set' quotes correctly as required by POSIX, so do not add quotes.
2853 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2856 if cmp -s $cache_file confcache
; then
2859 if test -w $cache_file; then
2860 echo "updating cache $cache_file"
2861 cat confcache
> $cache_file
2863 echo "not updating unwritable cache $cache_file"
2868 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2870 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2871 # Let make expand exec_prefix.
2872 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2874 # Any assignment to VPATH causes Sun make to only execute
2875 # the first set of double-colon rules, so remove it if not needed.
2876 # If there is a colon in the path, we need to keep it.
2877 if test "x$srcdir" = x.
; then
2878 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2881 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2883 DEFS
=-DHAVE_CONFIG_H
2885 # Without the "./", some shells look in PATH for config.status.
2886 : ${CONFIG_STATUS=./config.status}
2888 echo creating
$CONFIG_STATUS
2889 rm -f $CONFIG_STATUS
2890 cat > $CONFIG_STATUS <<EOF
2892 # Generated automatically by configure.
2893 # Run this file to recreate the current configuration.
2894 # This directory was configured as follows,
2895 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2897 # $0 $ac_configure_args
2899 # Compiler output produced by configure, useful for debugging
2900 # configure, is in ./config.log if it exists.
2902 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2905 case "\$ac_option" in
2906 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2907 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2908 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2909 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2910 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2912 -help | --help | --hel | --he | --h)
2913 echo "\$ac_cs_usage"; exit 0 ;;
2914 *) echo "\$ac_cs_usage"; exit 1 ;;
2918 ac_given_srcdir=$srcdir
2919 ac_given_INSTALL="$INSTALL"
2921 trap 'rm -fr `echo "Makefile testsuite/Makefile mf-runtime.h config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2923 cat >> $CONFIG_STATUS <<EOF
2925 # Protect against being on the right side of a sed subst in config.status.
2926 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2927 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2931 s%@CFLAGS@%$CFLAGS%g
2932 s%@CPPFLAGS@%$CPPFLAGS%g
2933 s%@CXXFLAGS@%$CXXFLAGS%g
2934 s%@FFLAGS@%$FFLAGS%g
2936 s%@LDFLAGS@%$LDFLAGS%g
2938 s%@exec_prefix@%$exec_prefix%g
2939 s%@prefix@%$prefix%g
2940 s%@program_transform_name@%$program_transform_name%g
2941 s%@bindir@%$bindir%g
2942 s%@sbindir@%$sbindir%g
2943 s%@libexecdir@%$libexecdir%g
2944 s%@datadir@%$datadir%g
2945 s%@sysconfdir@%$sysconfdir%g
2946 s%@sharedstatedir@%$sharedstatedir%g
2947 s%@localstatedir@%$localstatedir%g
2948 s%@libdir@%$libdir%g
2949 s%@includedir@%$includedir%g
2950 s%@oldincludedir@%$oldincludedir%g
2951 s%@infodir@%$infodir%g
2952 s%@mandir@%$mandir%g
2954 s%@host_alias@%$host_alias%g
2955 s%@host_cpu@%$host_cpu%g
2956 s%@host_vendor@%$host_vendor%g
2957 s%@host_os@%$host_os%g
2958 s%@target@%$target%g
2959 s%@target_alias@%$target_alias%g
2960 s%@target_cpu@%$target_cpu%g
2961 s%@target_vendor@%$target_vendor%g
2962 s%@target_os@%$target_os%g
2964 s%@build_alias@%$build_alias%g
2965 s%@build_cpu@%$build_cpu%g
2966 s%@build_vendor@%$build_vendor%g
2967 s%@build_os@%$build_os%g
2968 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2969 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2970 s%@INSTALL_DATA@%$INSTALL_DATA%g
2971 s%@PACKAGE@%$PACKAGE%g
2972 s%@VERSION@%$VERSION%g
2973 s%@ACLOCAL@%$ACLOCAL%g
2974 s%@AUTOCONF@%$AUTOCONF%g
2975 s%@AUTOMAKE@%$AUTOMAKE%g
2976 s%@AUTOHEADER@%$AUTOHEADER%g
2977 s%@MAKEINFO@%$MAKEINFO%g
2978 s%@SET_MAKE@%$SET_MAKE%g
2979 s%@libtool_VERSION@%$libtool_VERSION%g
2980 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2981 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2983 s%@EXEEXT@%$EXEEXT%g
2987 s%@OBJEXT@%$OBJEXT%g
2988 s%@RANLIB@%$RANLIB%g
2990 s%@LIBTOOL@%$LIBTOOL%g
2991 s%@enable_shared@%$enable_shared%g
2992 s%@enable_static@%$enable_static%g
2993 s%@MF_HAVE_STDINT_H@%$MF_HAVE_STDINT_H%g
2994 s%@MF_HAVE_UINTPTR_T@%$MF_HAVE_UINTPTR_T%g
2995 s%@LIBMUDFLAPTH_TRUE@%$LIBMUDFLAPTH_TRUE%g
2996 s%@LIBMUDFLAPTH_FALSE@%$LIBMUDFLAPTH_FALSE%g
3002 cat >> $CONFIG_STATUS <<\EOF
3004 # Split the substitutions into bite-sized pieces for seds with
3005 # small command number limits, like on Digital OSF/1 and HP-UX.
3006 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3007 ac_file
=1 # Number of current file.
3008 ac_beg
=1 # First line for current file.
3009 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3012 while $ac_more_lines; do
3013 if test $ac_beg -gt 1; then
3014 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3016 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3018 if test ! -s conftest.s
$ac_file; then
3020 rm -f conftest.s
$ac_file
3022 if test -z "$ac_sed_cmds"; then
3023 ac_sed_cmds
="sed -f conftest.s$ac_file"
3025 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3027 ac_file
=`expr $ac_file + 1`
3029 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3032 if test -z "$ac_sed_cmds"; then
3037 cat >> $CONFIG_STATUS <<EOF
3039 CONFIG_FILES=\${CONFIG_FILES-"Makefile testsuite/Makefile mf-runtime.h"}
3041 cat >> $CONFIG_STATUS <<\EOF
3042 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3043 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3045 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3046 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3047 *) ac_file_in
="${ac_file}.in" ;;
3050 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3052 # Remove last slash and all that follows it. Not all systems have dirname.
3053 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3054 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3055 # The file is in a subdirectory.
3056 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3057 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3058 # A "../" for each directory in $ac_dir_suffix.
3059 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3061 ac_dir_suffix
= ac_dots
=
3064 case "$ac_given_srcdir" in
3066 if test -z "$ac_dots"; then top_srcdir
=.
3067 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3068 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3070 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3071 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3074 case "$ac_given_INSTALL" in
3075 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3076 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3079 echo creating
"$ac_file"
3081 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3083 *Makefile
*) ac_comsub
="1i\\
3084 # $configure_input" ;;
3088 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3090 s%@configure_input@%$configure_input%g
3091 s%@srcdir@%$srcdir%g
3092 s%@top_srcdir@%$top_srcdir%g
3093 s%@INSTALL@%$INSTALL%g
3094 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3098 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3099 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3101 # ac_d sets the value in "#define NAME VALUE" lines.
3102 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3103 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3106 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3107 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3108 ac_uB
='\([ ]\)%\1#\2define\3'
3111 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3112 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3113 ac_eB
='$%\1#\2define\3'
3117 if test "${CONFIG_HEADERS+set}" != set; then
3119 cat >> $CONFIG_STATUS <<EOF
3120 CONFIG_HEADERS="config.h"
3122 cat >> $CONFIG_STATUS <<\EOF
3124 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3125 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3127 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3128 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3129 *) ac_file_in
="${ac_file}.in" ;;
3132 echo creating
$ac_file
3134 rm -f conftest.frag conftest.
in conftest.out
3135 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3136 cat $ac_file_inputs > conftest.
in
3140 # Transform confdefs.h into a sed script conftest.vals that substitutes
3141 # the proper values into config.h.in to produce config.h. And first:
3142 # Protect against being on the right side of a sed subst in config.status.
3143 # Protect against being in an unquoted here document in config.status.
3145 cat > conftest.hdr
<<\EOF
3148 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3152 sed -n -f conftest.hdr confdefs.h > conftest.vals
3155 # This sed command replaces #undef with comments. This is necessary, for
3156 # example, in the case of _POSIX_SOURCE, which is predefined and required
3157 # on some systems where configure will not decide to define it.
3158 cat >> conftest.vals <<\EOF
3159 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3162 # Break up conftest.vals because some shells have a limit on
3163 # the size of here documents, and old seds have small limits too.
3168 ac_lines=`grep -c . conftest.vals
`
3169 # grep -c gives empty output for an empty file on some AIX systems.
3170 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3171 # Write a limited-size here document to conftest.frag.
3172 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3173 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3175 sed -f conftest.frag conftest.in > conftest.out
3177 mv conftest.out conftest.in
3179 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3181 mv conftest.tail conftest.vals
3185 cat >> $CONFIG_STATUS <<\EOF
3186 rm -f conftest.frag conftest.h
3187 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3188 cat conftest.in >> conftest.h
3190 if cmp -s $ac_file conftest.h 2>/dev/null; then
3191 echo "$ac_file is unchanged"
3194 # Remove last slash and all that follows it. Not all systems have dirname.
3195 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3196 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3197 # The file is in a subdirectory.
3198 test ! -d "$ac_dir" && mkdir "$ac_dir"
3201 mv conftest.h $ac_file
3206 cat >> $CONFIG_STATUS <<EOF
3210 cat >> $CONFIG_STATUS <<\EOF
3211 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3215 chmod +x $CONFIG_STATUS
3216 rm -fr confdefs* $ac_clean_files
3217 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1