Obsolete libdbus2cpp
[libt2n] / examples-codegen / example1-client / configure
CommitLineData
208db683
JT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by Autoconf 2.52.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6# 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.
9
10# Find the correct PATH separator. Usually this is `:', but
11# DJGPP uses `;' like DOS.
12if test "X${PATH_SEPARATOR+set}" != Xset; then
13 UNAME=${UNAME-`uname 2>/dev/null`}
14 case X$UNAME in
15 *-DOS) lt_cv_sys_path_separator=';' ;;
16 *) lt_cv_sys_path_separator=':' ;;
17 esac
18 PATH_SEPARATOR=$lt_cv_sys_path_separator
19fi
20
21# Check that we are running under the correct shell.
22SHELL=${CONFIG_SHELL-/bin/sh}
23
24case X$ECHO in
25X*--fallback-echo)
26 # Remove one level of quotation (which was required for Make).
27 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
28 ;;
29esac
30
31echo=${ECHO-echo}
32if test "X$1" = X--no-reexec; then
33 # Discard the --no-reexec flag, and continue.
34 shift
35elif test "X$1" = X--fallback-echo; then
36 # Avoid inline document here, it may be left over
37 :
38elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
39 # Yippee, $echo works!
40 :
41else
42 # Restart under the correct shell.
43 exec $SHELL "$0" --no-reexec ${1+"$@"}
44fi
45
46if test "X$1" = X--fallback-echo; then
47 # used as fallback echo
48 shift
49 cat <<EOF
50
51EOF
52 exit 0
53fi
54
55# The HP-UX ksh and POSIX shell print the target directory to stdout
56# if CDPATH is set.
57if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
58
59if test -z "$ECHO"; then
60if test "X${echo_test_string+set}" != Xset; then
61# find a string as large as possible, as long as the shell can cope with it
62 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
63 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
64 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
65 echo_test_string="`eval $cmd`" &&
66 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
67 then
68 break
69 fi
70 done
71fi
72
73if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
74 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
75 test "X$echo_testing_string" = "X$echo_test_string"; then
76 :
77else
78 # The Solaris, AIX, and Digital Unix default echo programs unquote
79 # backslashes. This makes it impossible to quote backslashes using
80 # echo "$something" | sed 's/\\/\\\\/g'
81 #
82 # So, first we look for a working echo in the user's PATH.
83
84 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
85 for dir in $PATH /usr/ucb; do
86 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
87 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
88 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
89 test "X$echo_testing_string" = "X$echo_test_string"; then
90 echo="$dir/echo"
91 break
92 fi
93 done
94 IFS="$save_ifs"
95
96 if test "X$echo" = Xecho; then
97 # We didn't find a better echo, so look for alternatives.
98 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
99 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
100 test "X$echo_testing_string" = "X$echo_test_string"; then
101 # This shell has a builtin print -r that does the trick.
102 echo='print -r'
103 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
104 test "X$CONFIG_SHELL" != X/bin/ksh; then
105 # If we have ksh, try running configure again with it.
106 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
107 export ORIGINAL_CONFIG_SHELL
108 CONFIG_SHELL=/bin/ksh
109 export CONFIG_SHELL
110 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
111 else
112 # Try using printf.
113 echo='printf %s\n'
114 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
115 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
116 test "X$echo_testing_string" = "X$echo_test_string"; then
117 # Cool, printf works
118 :
119 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
120 test "X$echo_testing_string" = 'X\t' &&
121 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
122 test "X$echo_testing_string" = "X$echo_test_string"; then
123 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
124 export CONFIG_SHELL
125 SHELL="$CONFIG_SHELL"
126 export SHELL
127 echo="$CONFIG_SHELL $0 --fallback-echo"
128 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
129 test "X$echo_testing_string" = 'X\t' &&
130 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
131 test "X$echo_testing_string" = "X$echo_test_string"; then
132 echo="$CONFIG_SHELL $0 --fallback-echo"
133 else
134 # maybe with a smaller string...
135 prev=:
136
137 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
138 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
139 then
140 break
141 fi
142 prev="$cmd"
143 done
144
145 if test "$prev" != 'sed 50q "$0"'; then
146 echo_test_string=`eval $prev`
147 export echo_test_string
148 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
149 else
150 # Oops. We lost completely, so just stick with echo.
151 echo=echo
152 fi
153 fi
154 fi
155 fi
156fi
157fi
158
159# Copy echo and quote the copy suitably for passing to libtool from
160# the Makefile, instead of quoting the original, which is used later.
161ECHO=$echo
162if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
163 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
164fi
165
166# Avoid depending upon Character Ranges.
167as_cr_letters='abcdefghijklmnopqrstuvwxyz'
168as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
169as_cr_Letters=$as_cr_letters$as_cr_LETTERS
170as_cr_digits='0123456789'
171as_cr_alnum=$as_cr_Letters$as_cr_digits
172
173# Sed expression to map a string onto a valid variable name.
174as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
175
176# Sed expression to map a string onto a valid CPP name.
177as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
178
179# Be Bourne compatible
180if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
181 emulate sh
182 NULLCMD=:
183elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
184 set -o posix
185fi
186
187# Name of the executable.
188as_me=`echo "$0" |sed 's,.*[\\/],,'`
189
190if expr a : '\(a\)' >/dev/null 2>&1; then
191 as_expr=expr
192else
193 as_expr=false
194fi
195
196rm -f conf$$ conf$$.exe conf$$.file
197echo >conf$$.file
198if ln -s conf$$.file conf$$ 2>/dev/null; then
199 # We could just check for DJGPP; but this test a) works b) is more generic
200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201 if test -f conf$$.exe; then
202 # Don't use ln at all; we don't have any links
203 as_ln_s='cp -p'
204 else
205 as_ln_s='ln -s'
206 fi
207elif ln conf$$.file conf$$ 2>/dev/null; then
208 as_ln_s=ln
209else
210 as_ln_s='cp -p'
211fi
212rm -f conf$$ conf$$.exe conf$$.file
213
214as_executable_p="test -f"
215
216# Support unset when possible.
217if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
218 as_unset=unset
219else
220 as_unset=false
221fi
222
223# NLS nuisances.
224$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
225$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
226$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
227$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
228$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
229$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
230$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
231$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
240$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
241
242# Name of the host.
243# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
244# so uname gets run too.
245ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246
247exec 6>&1
248
249#
250# Initializations.
251#
252ac_default_prefix=/usr/local
253cross_compiling=no
254subdirs=
255MFLAGS= MAKEFLAGS=
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258# Maximum number of lines to put in a shell here document.
259# This variable seems obsolete. It should probably be removed, and
260# only ac_max_sed_lines should be used.
261: ${ac_max_here_lines=38}
262
263ac_unique_file="configure.in"
264
265# Initialize some variables set by options.
266ac_init_help=
267ac_init_version=false
268# The variables have the same names as the options, with
269# dashes changed to underlines.
270cache_file=/dev/null
271exec_prefix=NONE
272no_create=
273no_recursion=
274prefix=NONE
275program_prefix=NONE
276program_suffix=NONE
277program_transform_name=s,x,x,
278silent=
279site=
280srcdir=
281verbose=
282x_includes=NONE
283x_libraries=NONE
284
285# Installation directory options.
286# These are left unexpanded so users can "make install exec_prefix=/foo"
287# and all the variables that are supposed to be based on exec_prefix
288# by default will actually change.
289# Use braces instead of parens because sh, perl, etc. also accept them.
290bindir='${exec_prefix}/bin'
291sbindir='${exec_prefix}/sbin'
292libexecdir='${exec_prefix}/libexec'
293datadir='${prefix}/share'
294sysconfdir='${prefix}/etc'
295sharedstatedir='${prefix}/com'
296localstatedir='${prefix}/var'
297libdir='${exec_prefix}/lib'
298includedir='${prefix}/include'
299oldincludedir='/usr/include'
300infodir='${prefix}/info'
301mandir='${prefix}/man'
302
303# Identity of this package.
304PACKAGE_NAME=
305PACKAGE_TARNAME=
306PACKAGE_VERSION=
307PACKAGE_STRING=
308PACKAGE_BUGREPORT=
309
310ac_prev=
311for ac_option
312do
313 # If the previous option needs an argument, assign it.
314 if test -n "$ac_prev"; then
315 eval "$ac_prev=\$ac_option"
316 ac_prev=
317 continue
318 fi
319
320 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
321
322 # Accept the important Cygnus configure options, so we can diagnose typos.
323
324 case $ac_option in
325
326 -bindir | --bindir | --bindi | --bind | --bin | --bi)
327 ac_prev=bindir ;;
328 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
329 bindir=$ac_optarg ;;
330
331 -build | --build | --buil | --bui | --bu)
332 ac_prev=build_alias ;;
333 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
334 build_alias=$ac_optarg ;;
335
336 -cache-file | --cache-file | --cache-fil | --cache-fi \
337 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
338 ac_prev=cache_file ;;
339 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
340 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
341 cache_file=$ac_optarg ;;
342
343 --config-cache | -C)
344 cache_file=config.cache ;;
345
346 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
347 ac_prev=datadir ;;
348 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
349 | --da=*)
350 datadir=$ac_optarg ;;
351
352 -disable-* | --disable-*)
353 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
354 # Reject names that are not valid shell variable names.
355 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
356 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
357 { (exit 1); exit 1; }; }
358 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
359 eval "enable_$ac_feature=no" ;;
360
361 -enable-* | --enable-*)
362 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
363 # Reject names that are not valid shell variable names.
364 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
365 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
366 { (exit 1); exit 1; }; }
367 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
368 case $ac_option in
369 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
370 *) ac_optarg=yes ;;
371 esac
372 eval "enable_$ac_feature='$ac_optarg'" ;;
373
374 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
375 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
376 | --exec | --exe | --ex)
377 ac_prev=exec_prefix ;;
378 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
379 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
380 | --exec=* | --exe=* | --ex=*)
381 exec_prefix=$ac_optarg ;;
382
383 -gas | --gas | --ga | --g)
384 # Obsolete; use --with-gas.
385 with_gas=yes ;;
386
387 -help | --help | --hel | --he | -h)
388 ac_init_help=long ;;
389 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
390 ac_init_help=recursive ;;
391 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
392 ac_init_help=short ;;
393
394 -host | --host | --hos | --ho)
395 ac_prev=host_alias ;;
396 -host=* | --host=* | --hos=* | --ho=*)
397 host_alias=$ac_optarg ;;
398
399 -includedir | --includedir | --includedi | --included | --include \
400 | --includ | --inclu | --incl | --inc)
401 ac_prev=includedir ;;
402 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
403 | --includ=* | --inclu=* | --incl=* | --inc=*)
404 includedir=$ac_optarg ;;
405
406 -infodir | --infodir | --infodi | --infod | --info | --inf)
407 ac_prev=infodir ;;
408 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
409 infodir=$ac_optarg ;;
410
411 -libdir | --libdir | --libdi | --libd)
412 ac_prev=libdir ;;
413 -libdir=* | --libdir=* | --libdi=* | --libd=*)
414 libdir=$ac_optarg ;;
415
416 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
417 | --libexe | --libex | --libe)
418 ac_prev=libexecdir ;;
419 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
420 | --libexe=* | --libex=* | --libe=*)
421 libexecdir=$ac_optarg ;;
422
423 -localstatedir | --localstatedir | --localstatedi | --localstated \
424 | --localstate | --localstat | --localsta | --localst \
425 | --locals | --local | --loca | --loc | --lo)
426 ac_prev=localstatedir ;;
427 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
428 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
429 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
430 localstatedir=$ac_optarg ;;
431
432 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
433 ac_prev=mandir ;;
434 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
435 mandir=$ac_optarg ;;
436
437 -nfp | --nfp | --nf)
438 # Obsolete; use --without-fp.
439 with_fp=no ;;
440
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442 | --no-cr | --no-c)
443 no_create=yes ;;
444
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
447 no_recursion=yes ;;
448
449 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
450 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
451 | --oldin | --oldi | --old | --ol | --o)
452 ac_prev=oldincludedir ;;
453 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
454 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
455 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
456 oldincludedir=$ac_optarg ;;
457
458 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
459 ac_prev=prefix ;;
460 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
461 prefix=$ac_optarg ;;
462
463 -program-prefix | --program-prefix | --program-prefi | --program-pref \
464 | --program-pre | --program-pr | --program-p)
465 ac_prev=program_prefix ;;
466 -program-prefix=* | --program-prefix=* | --program-prefi=* \
467 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
468 program_prefix=$ac_optarg ;;
469
470 -program-suffix | --program-suffix | --program-suffi | --program-suff \
471 | --program-suf | --program-su | --program-s)
472 ac_prev=program_suffix ;;
473 -program-suffix=* | --program-suffix=* | --program-suffi=* \
474 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
475 program_suffix=$ac_optarg ;;
476
477 -program-transform-name | --program-transform-name \
478 | --program-transform-nam | --program-transform-na \
479 | --program-transform-n | --program-transform- \
480 | --program-transform | --program-transfor \
481 | --program-transfo | --program-transf \
482 | --program-trans | --program-tran \
483 | --progr-tra | --program-tr | --program-t)
484 ac_prev=program_transform_name ;;
485 -program-transform-name=* | --program-transform-name=* \
486 | --program-transform-nam=* | --program-transform-na=* \
487 | --program-transform-n=* | --program-transform-=* \
488 | --program-transform=* | --program-transfor=* \
489 | --program-transfo=* | --program-transf=* \
490 | --program-trans=* | --program-tran=* \
491 | --progr-tra=* | --program-tr=* | --program-t=*)
492 program_transform_name=$ac_optarg ;;
493
494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
495 | -silent | --silent | --silen | --sile | --sil)
496 silent=yes ;;
497
498 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
499 ac_prev=sbindir ;;
500 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
501 | --sbi=* | --sb=*)
502 sbindir=$ac_optarg ;;
503
504 -sharedstatedir | --sharedstatedir | --sharedstatedi \
505 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
506 | --sharedst | --shareds | --shared | --share | --shar \
507 | --sha | --sh)
508 ac_prev=sharedstatedir ;;
509 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
510 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
511 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
512 | --sha=* | --sh=*)
513 sharedstatedir=$ac_optarg ;;
514
515 -site | --site | --sit)
516 ac_prev=site ;;
517 -site=* | --site=* | --sit=*)
518 site=$ac_optarg ;;
519
520 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
521 ac_prev=srcdir ;;
522 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
523 srcdir=$ac_optarg ;;
524
525 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
526 | --syscon | --sysco | --sysc | --sys | --sy)
527 ac_prev=sysconfdir ;;
528 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
529 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
530 sysconfdir=$ac_optarg ;;
531
532 -target | --target | --targe | --targ | --tar | --ta | --t)
533 ac_prev=target_alias ;;
534 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
535 target_alias=$ac_optarg ;;
536
537 -v | -verbose | --verbose | --verbos | --verbo | --verb)
538 verbose=yes ;;
539
540 -version | --version | --versio | --versi | --vers | -V)
541 ac_init_version=: ;;
542
543 -with-* | --with-*)
544 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid package name: $ac_package" >&2
548 { (exit 1); exit 1; }; }
549 ac_package=`echo $ac_package| sed 's/-/_/g'`
550 case $ac_option in
551 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
552 *) ac_optarg=yes ;;
553 esac
554 eval "with_$ac_package='$ac_optarg'" ;;
555
556 -without-* | --without-*)
557 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
558 # Reject names that are not valid shell variable names.
559 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560 { echo "$as_me: error: invalid package name: $ac_package" >&2
561 { (exit 1); exit 1; }; }
562 ac_package=`echo $ac_package | sed 's/-/_/g'`
563 eval "with_$ac_package=no" ;;
564
565 --x)
566 # Obsolete; use --with-x.
567 with_x=yes ;;
568
569 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
570 | --x-incl | --x-inc | --x-in | --x-i)
571 ac_prev=x_includes ;;
572 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
573 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
574 x_includes=$ac_optarg ;;
575
576 -x-libraries | --x-libraries | --x-librarie | --x-librari \
577 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
578 ac_prev=x_libraries ;;
579 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
580 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
581 x_libraries=$ac_optarg ;;
582
583 -*) { echo "$as_me: error: unrecognized option: $ac_option
584Try \`$0 --help' for more information." >&2
585 { (exit 1); exit 1; }; }
586 ;;
587
588 *=*)
589 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
593 { (exit 1); exit 1; }; }
594 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
595 eval "$ac_envvar='$ac_optarg'"
596 export $ac_envvar ;;
597
598 *)
599 # FIXME: should be removed in autoconf 3.0.
600 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
601 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
602 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
603 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
604 ;;
605
606 esac
607done
608
609if test -n "$ac_prev"; then
610 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
611 { echo "$as_me: error: missing argument to $ac_option" >&2
612 { (exit 1); exit 1; }; }
613fi
614
615# Be sure to have absolute paths.
616for ac_var in exec_prefix prefix
617do
618 eval ac_val=$`echo $ac_var`
619 case $ac_val in
620 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
621 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
622 { (exit 1); exit 1; }; };;
623 esac
624done
625
626# Be sure to have absolute paths.
627for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
628 localstatedir libdir includedir oldincludedir infodir mandir
629do
630 eval ac_val=$`echo $ac_var`
631 case $ac_val in
632 [\\/$]* | ?:[\\/]* ) ;;
633 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
634 { (exit 1); exit 1; }; };;
635 esac
636done
637
638# There might be people who depend on the old broken behavior: `$host'
639# used to hold the argument of --host etc.
640build=$build_alias
641host=$host_alias
642target=$target_alias
643
644# FIXME: should be removed in autoconf 3.0.
645if test "x$host_alias" != x; then
646 if test "x$build_alias" = x; then
647 cross_compiling=maybe
648 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
649 If a cross compiler is detected then cross compile mode will be used." >&2
650 elif test "x$build_alias" != "x$host_alias"; then
651 cross_compiling=yes
652 fi
653fi
654
655ac_tool_prefix=
656test -n "$host_alias" && ac_tool_prefix=$host_alias-
657
658test "$silent" = yes && exec 6>/dev/null
659
660# Find the source files, if location was not specified.
661if test -z "$srcdir"; then
662 ac_srcdir_defaulted=yes
663 # Try the directory containing this script, then its parent.
664 ac_prog=$0
665 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
666 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
667 srcdir=$ac_confdir
668 if test ! -r $srcdir/$ac_unique_file; then
669 srcdir=..
670 fi
671else
672 ac_srcdir_defaulted=no
673fi
674if test ! -r $srcdir/$ac_unique_file; then
675 if test "$ac_srcdir_defaulted" = yes; then
676 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
677 { (exit 1); exit 1; }; }
678 else
679 { echo "$as_me: error: cannot find sources in $srcdir" >&2
680 { (exit 1); exit 1; }; }
681 fi
682fi
683srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
684ac_env_build_alias_set=${build_alias+set}
685ac_env_build_alias_value=$build_alias
686ac_cv_env_build_alias_set=${build_alias+set}
687ac_cv_env_build_alias_value=$build_alias
688ac_env_host_alias_set=${host_alias+set}
689ac_env_host_alias_value=$host_alias
690ac_cv_env_host_alias_set=${host_alias+set}
691ac_cv_env_host_alias_value=$host_alias
692ac_env_target_alias_set=${target_alias+set}
693ac_env_target_alias_value=$target_alias
694ac_cv_env_target_alias_set=${target_alias+set}
695ac_cv_env_target_alias_value=$target_alias
696ac_env_CXX_set=${CXX+set}
697ac_env_CXX_value=$CXX
698ac_cv_env_CXX_set=${CXX+set}
699ac_cv_env_CXX_value=$CXX
700ac_env_CXXFLAGS_set=${CXXFLAGS+set}
701ac_env_CXXFLAGS_value=$CXXFLAGS
702ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
703ac_cv_env_CXXFLAGS_value=$CXXFLAGS
704ac_env_LDFLAGS_set=${LDFLAGS+set}
705ac_env_LDFLAGS_value=$LDFLAGS
706ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
707ac_cv_env_LDFLAGS_value=$LDFLAGS
708ac_env_CPPFLAGS_set=${CPPFLAGS+set}
709ac_env_CPPFLAGS_value=$CPPFLAGS
710ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
711ac_cv_env_CPPFLAGS_value=$CPPFLAGS
712ac_env_CC_set=${CC+set}
713ac_env_CC_value=$CC
714ac_cv_env_CC_set=${CC+set}
715ac_cv_env_CC_value=$CC
716ac_env_CFLAGS_set=${CFLAGS+set}
717ac_env_CFLAGS_value=$CFLAGS
718ac_cv_env_CFLAGS_set=${CFLAGS+set}
719ac_cv_env_CFLAGS_value=$CFLAGS
720ac_env_CXXCPP_set=${CXXCPP+set}
721ac_env_CXXCPP_value=$CXXCPP
722ac_cv_env_CXXCPP_set=${CXXCPP+set}
723ac_cv_env_CXXCPP_value=$CXXCPP
724
725#
726# Report the --help message.
727#
728if test "$ac_init_help" = "long"; then
729 # Omit some internal or obsolete options to make the list less imposing.
730 # This message is too long to be a string in the A/UX 3.1 sh.
731 cat <<EOF
732\`configure' configures this package to adapt to many kinds of systems.
733
734Usage: $0 [OPTION]... [VAR=VALUE]...
735
736To assign environment variables (e.g., CC, CFLAGS...), specify them as
737VAR=VALUE. See below for descriptions of some of the useful variables.
738
739Defaults for the options are specified in brackets.
740
741Configuration:
742 -h, --help display this help and exit
743 --help=short display options specific to this package
744 --help=recursive display the short help of all the included packages
745 -V, --version display version information and exit
746 -q, --quiet, --silent do not print \`checking...' messages
747 --cache-file=FILE cache test results in FILE [disabled]
748 -C, --config-cache alias for \`--cache-file=config.cache'
749 -n, --no-create do not create output files
750 --srcdir=DIR find the sources in DIR [configure dir or \`..']
751
752EOF
753
754 cat <<EOF
755Installation directories:
756 --prefix=PREFIX install architecture-independent files in PREFIX
757 [$ac_default_prefix]
758 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
759 [PREFIX]
760
761By default, \`make install' will install all the files in
762\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
763an installation prefix other than \`$ac_default_prefix' using \`--prefix',
764for instance \`--prefix=\$HOME'.
765
766For better control, use the options below.
767
768Fine tuning of the installation directories:
769 --bindir=DIR user executables [EPREFIX/bin]
770 --sbindir=DIR system admin executables [EPREFIX/sbin]
771 --libexecdir=DIR program executables [EPREFIX/libexec]
772 --datadir=DIR read-only architecture-independent data [PREFIX/share]
773 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
774 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
775 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
776 --libdir=DIR object code libraries [EPREFIX/lib]
777 --includedir=DIR C header files [PREFIX/include]
778 --oldincludedir=DIR C header files for non-gcc [/usr/include]
779 --infodir=DIR info documentation [PREFIX/info]
780 --mandir=DIR man documentation [PREFIX/man]
781EOF
782
783 cat <<\EOF
784
785Program names:
786 --program-prefix=PREFIX prepend PREFIX to installed program names
787 --program-suffix=SUFFIX append SUFFIX to installed program names
788 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
789
790System types:
791 --build=BUILD configure for building on BUILD [guessed]
792 --host=HOST build programs to run on HOST [BUILD]
793EOF
794fi
795
796if test -n "$ac_init_help"; then
797
798 cat <<\EOF
799
800Optional Features:
801 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
802 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
803 --enable-shared=PKGS build shared libraries default=yes
804 --enable-static=PKGS build static libraries default=yes
805 --enable-fast-install=PKGS optimize for fast installation default=yes
806 --disable-libtool-lock avoid locking (might break parallel builds)
807
808Optional Packages:
809 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
810 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
811 --with-gnu-ld assume the C compiler uses GNU ld default=no
812 --with-pic try to use only PIC/non-PIC objects default=use both
813
814Some influential environment variables:
815 CXX C++ compiler command
816 CXXFLAGS C++ compiler flags
817 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
818 nonstandard directory <lib dir>
819 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
820 headers in a nonstandard directory <include dir>
821 CC C compiler command
822 CFLAGS C compiler flags
823 CXXCPP C++ preprocessor
824
825Use these variables to override the choices made by `configure' or to help
826it to find libraries and programs with nonstandard names/locations.
827
828EOF
829fi
830
831if test "$ac_init_help" = "recursive"; then
832 # If there are subdirs, report their specific --help.
833 ac_popdir=`pwd`
834 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
835 cd $ac_subdir
836 # A "../" for each directory in /$ac_subdir.
837 ac_dots=`echo $ac_subdir |
838 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
839
840 case $srcdir in
841 .) # No --srcdir option. We are building in place.
842 ac_sub_srcdir=$srcdir ;;
843 [\\/]* | ?:[\\/]* ) # Absolute path.
844 ac_sub_srcdir=$srcdir/$ac_subdir ;;
845 *) # Relative path.
846 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
847 esac
848
849 # Check for guested configure; otherwise get Cygnus style configure.
850 if test -f $ac_sub_srcdir/configure.gnu; then
851 echo
852 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
853 elif test -f $ac_sub_srcdir/configure; then
854 echo
855 $SHELL $ac_sub_srcdir/configure --help=recursive
856 elif test -f $ac_sub_srcdir/configure.ac ||
857 test -f $ac_sub_srcdir/configure.in; then
858 echo
859 $ac_configure --help
860 else
861 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
862 fi
863 cd $ac_popdir
864 done
865fi
866
867test -n "$ac_init_help" && exit 0
868if $ac_init_version; then
869 cat <<\EOF
870
871Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
872Free Software Foundation, Inc.
873This configure script is free software; the Free Software Foundation
874gives unlimited permission to copy, distribute and modify it.
875EOF
876 exit 0
877fi
878exec 5>config.log
879cat >&5 <<EOF
880This file contains any messages produced by compilers while
881running configure, to aid debugging if configure makes a mistake.
882
883It was created by $as_me, which was
884generated by GNU Autoconf 2.52. Invocation command line was
885
886 $ $0 $@
887
888EOF
889{
890cat <<_ASUNAME
891## ---------- ##
892## Platform. ##
893## ---------- ##
894
895hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
896uname -m = `(uname -m) 2>/dev/null || echo unknown`
897uname -r = `(uname -r) 2>/dev/null || echo unknown`
898uname -s = `(uname -s) 2>/dev/null || echo unknown`
899uname -v = `(uname -v) 2>/dev/null || echo unknown`
900
901/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
902/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
903
904/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
905/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
906/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
907hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
908/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
909/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
910/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
911
912PATH = $PATH
913
914_ASUNAME
915} >&5
916
917cat >&5 <<EOF
918## ------------ ##
919## Core tests. ##
920## ------------ ##
921
922EOF
923
924# Keep a trace of the command line.
925# Strip out --no-create and --no-recursion so they do not pile up.
926# Also quote any args containing shell meta-characters.
927ac_configure_args=
928ac_sep=
929for ac_arg
930do
931 case $ac_arg in
932 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
933 | --no-cr | --no-c) ;;
934 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
935 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
936 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
937 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
938 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
939 ac_sep=" " ;;
940 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
941 ac_sep=" " ;;
942 esac
943 # Get rid of the leading space.
944done
945
946# When interrupted or exit'd, cleanup temporary files, and complete
947# config.log. We remove comments because anyway the quotes in there
948# would cause problems or look ugly.
949trap 'exit_status=$?
950 # Save into config.log some information that might help in debugging.
951 echo >&5
952 echo "## ----------------- ##" >&5
953 echo "## Cache variables. ##" >&5
954 echo "## ----------------- ##" >&5
955 echo >&5
956 # The following way of writing the cache mishandles newlines in values,
957{
958 (set) 2>&1 |
959 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
960 *ac_space=\ *)
961 sed -n \
962 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
964 ;;
965 *)
966 sed -n \
967 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
968 ;;
969 esac;
970} >&5
971 sed "/^$/d" confdefs.h >conftest.log
972 if test -s conftest.log; then
973 echo >&5
974 echo "## ------------ ##" >&5
975 echo "## confdefs.h. ##" >&5
976 echo "## ------------ ##" >&5
977 echo >&5
978 cat conftest.log >&5
979 fi
980 (echo; echo) >&5
981 test "$ac_signal" != 0 &&
982 echo "$as_me: caught signal $ac_signal" >&5
983 echo "$as_me: exit $exit_status" >&5
984 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
985 exit $exit_status
986 ' 0
987for ac_signal in 1 2 13 15; do
988 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
989done
990ac_signal=0
991
992# confdefs.h avoids OS command line length limits that DEFS can exceed.
993rm -rf conftest* confdefs.h
994# AIX cpp loses on an empty file, so make sure it contains at least a newline.
995echo >confdefs.h
996
997# Let the site file select an alternate cache file if it wants to.
998# Prefer explicitly selected file to automatically selected ones.
999if test -z "$CONFIG_SITE"; then
1000 if test "x$prefix" != xNONE; then
1001 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1002 else
1003 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1004 fi
1005fi
1006for ac_site_file in $CONFIG_SITE; do
1007 if test -r "$ac_site_file"; then
1008 { echo "$as_me:1008: loading site script $ac_site_file" >&5
1009echo "$as_me: loading site script $ac_site_file" >&6;}
1010 cat "$ac_site_file" >&5
1011 . "$ac_site_file"
1012 fi
1013done
1014
1015if test -r "$cache_file"; then
1016 # Some versions of bash will fail to source /dev/null (special
1017 # files actually), so we avoid doing that.
1018 if test -f "$cache_file"; then
1019 { echo "$as_me:1019: loading cache $cache_file" >&5
1020echo "$as_me: loading cache $cache_file" >&6;}
1021 case $cache_file in
1022 [\\/]* | ?:[\\/]* ) . $cache_file;;
1023 *) . ./$cache_file;;
1024 esac
1025 fi
1026else
1027 { echo "$as_me:1027: creating cache $cache_file" >&5
1028echo "$as_me: creating cache $cache_file" >&6;}
1029 >$cache_file
1030fi
1031
1032# Check that the precious variables saved in the cache have kept the same
1033# value.
1034ac_cache_corrupted=false
1035for ac_var in `(set) 2>&1 |
1036 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1037 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1038 eval ac_new_set=\$ac_env_${ac_var}_set
1039 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1040 eval ac_new_val="\$ac_env_${ac_var}_value"
1041 case $ac_old_set,$ac_new_set in
1042 set,)
1043 { echo "$as_me:1043: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1044echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1045 ac_cache_corrupted=: ;;
1046 ,set)
1047 { echo "$as_me:1047: error: \`$ac_var' was not set in the previous run" >&5
1048echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1049 ac_cache_corrupted=: ;;
1050 ,);;
1051 *)
1052 if test "x$ac_old_val" != "x$ac_new_val"; then
1053 { echo "$as_me:1053: error: \`$ac_var' has changed since the previous run:" >&5
1054echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1055 { echo "$as_me:1055: former value: $ac_old_val" >&5
1056echo "$as_me: former value: $ac_old_val" >&2;}
1057 { echo "$as_me:1057: current value: $ac_new_val" >&5
1058echo "$as_me: current value: $ac_new_val" >&2;}
1059 ac_cache_corrupted=:
1060 fi;;
1061 esac
1062 # Pass precious variables to config.status. It doesn't matter if
1063 # we pass some twice (in addition to the command line arguments).
1064 if test "$ac_new_set" = set; then
1065 case $ac_new_val in
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1068 ac_configure_args="$ac_configure_args '$ac_arg'"
1069 ;;
1070 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1071 ;;
1072 esac
1073 fi
1074done
1075if $ac_cache_corrupted; then
1076 { echo "$as_me:1076: error: changes in the environment can compromise the build" >&5
1077echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1078 { { echo "$as_me:1078: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1079echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1080 { (exit 1); exit 1; }; }
1081fi
1082
1083ac_ext=c
1084ac_cpp='$CPP $CPPFLAGS'
1085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1087ac_compiler_gnu=$ac_cv_c_compiler_gnu
1088
1089case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1090 *c*,-n*) ECHO_N= ECHO_C='
1091' ECHO_T=' ' ;;
1092 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1093 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1094esac
1095echo "#! $SHELL" >conftest.sh
1096echo "exit 0" >>conftest.sh
1097chmod +x conftest.sh
1098if { (echo "$as_me:1098: PATH=\".;.\"; conftest.sh") >&5
1099 (PATH=".;."; conftest.sh) 2>&5
1100 ac_status=$?
1101 echo "$as_me:1101: \$? = $ac_status" >&5
1102 (exit $ac_status); }; then
1103 ac_path_separator=';'
1104else
1105 ac_path_separator=:
1106fi
1107PATH_SEPARATOR="$ac_path_separator"
1108rm -f conftest.sh
1109
1110ac_aux_dir=
1111for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1112 if test -f $ac_dir/install-sh; then
1113 ac_aux_dir=$ac_dir
1114 ac_install_sh="$ac_aux_dir/install-sh -c"
1115 break
1116 elif test -f $ac_dir/install.sh; then
1117 ac_aux_dir=$ac_dir
1118 ac_install_sh="$ac_aux_dir/install.sh -c"
1119 break
1120 elif test -f $ac_dir/shtool; then
1121 ac_aux_dir=$ac_dir
1122 ac_install_sh="$ac_aux_dir/shtool install -c"
1123 break
1124 fi
1125done
1126if test -z "$ac_aux_dir"; then
1127 { { echo "$as_me:1127: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1128echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1129 { (exit 1); exit 1; }; }
1130fi
1131ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1132ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1133ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1134
1135# Find a good install program. We prefer a C program (faster),
1136# so one script is as good as another. But avoid the broken or
1137# incompatible versions:
1138# SysV /etc/install, /usr/sbin/install
1139# SunOS /usr/etc/install
1140# IRIX /sbin/install
1141# AIX /bin/install
1142# AmigaOS /C/install, which installs bootblocks on floppy discs
1143# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1144# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1145# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1146# ./install, which can be erroneously created by make from ./install.sh.
1147echo "$as_me:1147: checking for a BSD compatible install" >&5
1148echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1149if test -z "$INSTALL"; then
1150if test "${ac_cv_path_install+set}" = set; then
1151 echo $ECHO_N "(cached) $ECHO_C" >&6
1152else
1153 ac_save_IFS=$IFS; IFS=$ac_path_separator
1154 for ac_dir in $PATH; do
1155 IFS=$ac_save_IFS
1156 # Account for people who put trailing slashes in PATH elements.
1157 case $ac_dir/ in
1158 / | ./ | .// | /cC/* \
1159 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1160 | /usr/ucb/* ) ;;
1161 *)
1162 # OSF1 and SCO ODT 3.0 have their own names for install.
1163 # Don't use installbsd from OSF since it installs stuff as root
1164 # by default.
1165 for ac_prog in ginstall scoinst install; do
1166 if $as_executable_p "$ac_dir/$ac_prog"; then
1167 if test $ac_prog = install &&
1168 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1169 # AIX install. It has an incompatible calling convention.
1170 :
1171 elif test $ac_prog = install &&
1172 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1173 # program-specific install script used by HP pwplus--don't use.
1174 :
1175 else
1176 ac_cv_path_install="$ac_dir/$ac_prog -c"
1177 break 2
1178 fi
1179 fi
1180 done
1181 ;;
1182 esac
1183 done
1184
1185fi
1186 if test "${ac_cv_path_install+set}" = set; then
1187 INSTALL=$ac_cv_path_install
1188 else
1189 # As a last resort, use the slow shell script. We don't cache a
1190 # path for INSTALL within a source directory, because that will
1191 # break other packages using the cache if that directory is
1192 # removed, or if the path is relative.
1193 INSTALL=$ac_install_sh
1194 fi
1195fi
1196echo "$as_me:1196: result: $INSTALL" >&5
1197echo "${ECHO_T}$INSTALL" >&6
1198
1199# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1200# It thinks the first close brace ends the variable substitution.
1201test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1202
1203test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1204
1205test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1206
1207echo "$as_me:1207: checking whether build environment is sane" >&5
1208echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1209# Just in case
1210sleep 1
1211echo timestamp > conftestfile
1212# Do `set' in a subshell so we don't clobber the current shell's
1213# arguments. Must try -L first in case configure is actually a
1214# symlink; some systems play weird games with the mod time of symlinks
1215# (eg FreeBSD returns the mod time of the symlink's containing
1216# directory).
1217if (
1218 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1219 if test "$*" = "X"; then
1220 # -L didn't work.
1221 set X `ls -t $srcdir/configure conftestfile`
1222 fi
1223 if test "$*" != "X $srcdir/configure conftestfile" \
1224 && test "$*" != "X conftestfile $srcdir/configure"; then
1225
1226 # If neither matched, then we have a broken ls. This can happen
1227 # if, for instance, CONFIG_SHELL is bash and it inherits a
1228 # broken ls alias from the environment. This has actually
1229 # happened. Such a system could not be considered "sane".
1230 { { echo "$as_me:1230: error: ls -t appears to fail. Make sure there is not a broken
1231alias in your environment" >&5
1232echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1233alias in your environment" >&2;}
1234 { (exit 1); exit 1; }; }
1235 fi
1236
1237 test "$2" = conftestfile
1238 )
1239then
1240 # Ok.
1241 :
1242else
1243 { { echo "$as_me:1243: error: newly created file is older than distributed files!
1244Check your system clock" >&5
1245echo "$as_me: error: newly created file is older than distributed files!
1246Check your system clock" >&2;}
1247 { (exit 1); exit 1; }; }
1248fi
1249rm -f conftest*
1250echo "$as_me:1250: result: yes" >&5
1251echo "${ECHO_T}yes" >&6
1252test "$program_prefix" != NONE &&
1253 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1254# Use a double $ so make ignores it.
1255test "$program_suffix" != NONE &&
1256 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1257# Double any \ or $. echo might interpret backslashes.
1258# By default was `s,x,x', remove it if useless.
1259cat <<\_ACEOF >conftest.sed
1260s/[\\$]/&&/g;s/;s,x,x,$//
1261_ACEOF
1262program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1263rm conftest.sed
1264
1265echo "$as_me:1265: checking whether ${MAKE-make} sets \${MAKE}" >&5
1266echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1267set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1268if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1269 echo $ECHO_N "(cached) $ECHO_C" >&6
1270else
1271 cat >conftest.make <<\EOF
1272all:
1273 @echo 'ac_maketemp="${MAKE}"'
1274EOF
1275# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1276eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1277if test -n "$ac_maketemp"; then
1278 eval ac_cv_prog_make_${ac_make}_set=yes
1279else
1280 eval ac_cv_prog_make_${ac_make}_set=no
1281fi
1282rm -f conftest.make
1283fi
1284if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1285 echo "$as_me:1285: result: yes" >&5
1286echo "${ECHO_T}yes" >&6
1287 SET_MAKE=
1288else
1289 echo "$as_me:1289: result: no" >&5
1290echo "${ECHO_T}no" >&6
1291 SET_MAKE="MAKE=${MAKE-make}"
1292fi
1293
1294PACKAGE=libt2n-example1-client
1295
1296VERSION=0.1
1297
1298if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1299 { { echo "$as_me:1299: error: source directory already configured; run \"make distclean\" there first" >&5
1300echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1301 { (exit 1); exit 1; }; }
1302fi
1303
1304cat >>confdefs.h <<EOF
1305#define PACKAGE "$PACKAGE"
1306EOF
1307
1308cat >>confdefs.h <<EOF
1309#define VERSION "$VERSION"
1310EOF
1311
1312missing_dir=`cd $ac_aux_dir && pwd`
1313echo "$as_me:1313: checking for working aclocal" >&5
1314echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1315# Run test in a subshell; some versions of sh will print an error if
1316# an executable is not found, even if stderr is redirected.
1317# Redirect stdin to placate older versions of autoconf. Sigh.
1318if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1319 ACLOCAL=aclocal
1320 echo "$as_me:1320: result: found" >&5
1321echo "${ECHO_T}found" >&6
1322else
1323 ACLOCAL="$missing_dir/missing aclocal"
1324 echo "$as_me:1324: result: missing" >&5
1325echo "${ECHO_T}missing" >&6
1326fi
1327
1328echo "$as_me:1328: checking for working autoconf" >&5
1329echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1330# Run test in a subshell; some versions of sh will print an error if
1331# an executable is not found, even if stderr is redirected.
1332# Redirect stdin to placate older versions of autoconf. Sigh.
1333if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1334 AUTOCONF=autoconf
1335 echo "$as_me:1335: result: found" >&5
1336echo "${ECHO_T}found" >&6
1337else
1338 AUTOCONF="$missing_dir/missing autoconf"
1339 echo "$as_me:1339: result: missing" >&5
1340echo "${ECHO_T}missing" >&6
1341fi
1342
1343echo "$as_me:1343: checking for working automake" >&5
1344echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1345# Run test in a subshell; some versions of sh will print an error if
1346# an executable is not found, even if stderr is redirected.
1347# Redirect stdin to placate older versions of autoconf. Sigh.
1348if (automake --version) < /dev/null > /dev/null 2>&1; then
1349 AUTOMAKE=automake
1350 echo "$as_me:1350: result: found" >&5
1351echo "${ECHO_T}found" >&6
1352else
1353 AUTOMAKE="$missing_dir/missing automake"
1354 echo "$as_me:1354: result: missing" >&5
1355echo "${ECHO_T}missing" >&6
1356fi
1357
1358echo "$as_me:1358: checking for working autoheader" >&5
1359echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1360# Run test in a subshell; some versions of sh will print an error if
1361# an executable is not found, even if stderr is redirected.
1362# Redirect stdin to placate older versions of autoconf. Sigh.
1363if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1364 AUTOHEADER=autoheader
1365 echo "$as_me:1365: result: found" >&5
1366echo "${ECHO_T}found" >&6
1367else
1368 AUTOHEADER="$missing_dir/missing autoheader"
1369 echo "$as_me:1369: result: missing" >&5
1370echo "${ECHO_T}missing" >&6
1371fi
1372
1373echo "$as_me:1373: checking for working makeinfo" >&5
1374echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1375# Run test in a subshell; some versions of sh will print an error if
1376# an executable is not found, even if stderr is redirected.
1377# Redirect stdin to placate older versions of autoconf. Sigh.
1378if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1379 MAKEINFO=makeinfo
1380 echo "$as_me:1380: result: found" >&5
1381echo "${ECHO_T}found" >&6
1382else
1383 MAKEINFO="$missing_dir/missing makeinfo"
1384 echo "$as_me:1384: result: missing" >&5
1385echo "${ECHO_T}missing" >&6
1386fi
1387
1388ac_ext=cc
1389ac_cpp='$CXXCPP $CPPFLAGS'
1390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1393
1394ac_ext=cc
1395ac_cpp='$CXXCPP $CPPFLAGS'
1396ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1397ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1398ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1399if test -n "$ac_tool_prefix"; then
1400 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1401 do
1402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1403set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1404echo "$as_me:1404: checking for $ac_word" >&5
1405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406if test "${ac_cv_prog_CXX+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409 if test -n "$CXX"; then
1410 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1411else
1412 ac_save_IFS=$IFS; IFS=$ac_path_separator
1413ac_dummy="$PATH"
1414for ac_dir in $ac_dummy; do
1415 IFS=$ac_save_IFS
1416 test -z "$ac_dir" && ac_dir=.
1417 $as_executable_p "$ac_dir/$ac_word" || continue
1418ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1419echo "$as_me:1419: found $ac_dir/$ac_word" >&5
1420break
1421done
1422
1423fi
1424fi
1425CXX=$ac_cv_prog_CXX
1426if test -n "$CXX"; then
1427 echo "$as_me:1427: result: $CXX" >&5
1428echo "${ECHO_T}$CXX" >&6
1429else
1430 echo "$as_me:1430: result: no" >&5
1431echo "${ECHO_T}no" >&6
1432fi
1433
1434 test -n "$CXX" && break
1435 done
1436fi
1437if test -z "$CXX"; then
1438 ac_ct_CXX=$CXX
1439 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1440do
1441 # Extract the first word of "$ac_prog", so it can be a program name with args.
1442set dummy $ac_prog; ac_word=$2
1443echo "$as_me:1443: checking for $ac_word" >&5
1444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447else
1448 if test -n "$ac_ct_CXX"; then
1449 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1450else
1451 ac_save_IFS=$IFS; IFS=$ac_path_separator
1452ac_dummy="$PATH"
1453for ac_dir in $ac_dummy; do
1454 IFS=$ac_save_IFS
1455 test -z "$ac_dir" && ac_dir=.
1456 $as_executable_p "$ac_dir/$ac_word" || continue
1457ac_cv_prog_ac_ct_CXX="$ac_prog"
1458echo "$as_me:1458: found $ac_dir/$ac_word" >&5
1459break
1460done
1461
1462fi
1463fi
1464ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1465if test -n "$ac_ct_CXX"; then
1466 echo "$as_me:1466: result: $ac_ct_CXX" >&5
1467echo "${ECHO_T}$ac_ct_CXX" >&6
1468else
1469 echo "$as_me:1469: result: no" >&5
1470echo "${ECHO_T}no" >&6
1471fi
1472
1473 test -n "$ac_ct_CXX" && break
1474done
1475test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1476
1477 CXX=$ac_ct_CXX
1478fi
1479
1480# Provide some information about the compiler.
1481echo "$as_me:1481:" \
1482 "checking for C++ compiler version" >&5
1483ac_compiler=`set X $ac_compile; echo $2`
1484{ (eval echo "$as_me:1484: \"$ac_compiler --version </dev/null >&5\"") >&5
1485 (eval $ac_compiler --version </dev/null >&5) 2>&5
1486 ac_status=$?
1487 echo "$as_me:1487: \$? = $ac_status" >&5
1488 (exit $ac_status); }
1489{ (eval echo "$as_me:1489: \"$ac_compiler -v </dev/null >&5\"") >&5
1490 (eval $ac_compiler -v </dev/null >&5) 2>&5
1491 ac_status=$?
1492 echo "$as_me:1492: \$? = $ac_status" >&5
1493 (exit $ac_status); }
1494{ (eval echo "$as_me:1494: \"$ac_compiler -V </dev/null >&5\"") >&5
1495 (eval $ac_compiler -V </dev/null >&5) 2>&5
1496 ac_status=$?
1497 echo "$as_me:1497: \$? = $ac_status" >&5
1498 (exit $ac_status); }
1499
1500cat >conftest.$ac_ext <<_ACEOF
1501#line 1501 "configure"
1502#include "confdefs.h"
1503
1504int
1505main ()
1506{
1507
1508 ;
1509 return 0;
1510}
1511_ACEOF
1512ac_clean_files_save=$ac_clean_files
1513ac_clean_files="$ac_clean_files a.out a.exe"
1514# Try to create an executable without -o first, disregard a.out.
1515# It will help us diagnose broken compilers, and finding out an intuition
1516# of exeext.
1517echo "$as_me:1517: checking for C++ compiler default output" >&5
1518echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1519ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1520if { (eval echo "$as_me:1520: \"$ac_link_default\"") >&5
1521 (eval $ac_link_default) 2>&5
1522 ac_status=$?
1523 echo "$as_me:1523: \$? = $ac_status" >&5
1524 (exit $ac_status); }; then
1525 # Find the output, starting from the most likely. This scheme is
1526# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1527# resort.
1528for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1529 ls a.out conftest 2>/dev/null;
1530 ls a.* conftest.* 2>/dev/null`; do
1531 case $ac_file in
1532 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1533 a.out ) # We found the default executable, but exeext='' is most
1534 # certainly right.
1535 break;;
1536 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1537 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1538 export ac_cv_exeext
1539 break;;
1540 * ) break;;
1541 esac
1542done
1543else
1544 echo "$as_me: failed program was:" >&5
1545cat conftest.$ac_ext >&5
1546{ { echo "$as_me:1546: error: C++ compiler cannot create executables" >&5
1547echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1548 { (exit 77); exit 77; }; }
1549fi
1550
1551ac_exeext=$ac_cv_exeext
1552echo "$as_me:1552: result: $ac_file" >&5
1553echo "${ECHO_T}$ac_file" >&6
1554
1555# Check the compiler produces executables we can run. If not, either
1556# the compiler is broken, or we cross compile.
1557echo "$as_me:1557: checking whether the C++ compiler works" >&5
1558echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1559# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1560# If not cross compiling, check that we can run a simple program.
1561if test "$cross_compiling" != yes; then
1562 if { ac_try='./$ac_file'
1563 { (eval echo "$as_me:1563: \"$ac_try\"") >&5
1564 (eval $ac_try) 2>&5
1565 ac_status=$?
1566 echo "$as_me:1566: \$? = $ac_status" >&5
1567 (exit $ac_status); }; }; then
1568 cross_compiling=no
1569 else
1570 if test "$cross_compiling" = maybe; then
1571 cross_compiling=yes
1572 else
1573 { { echo "$as_me:1573: error: cannot run C++ compiled programs.
1574If you meant to cross compile, use \`--host'." >&5
1575echo "$as_me: error: cannot run C++ compiled programs.
1576If you meant to cross compile, use \`--host'." >&2;}
1577 { (exit 1); exit 1; }; }
1578 fi
1579 fi
1580fi
1581echo "$as_me:1581: result: yes" >&5
1582echo "${ECHO_T}yes" >&6
1583
1584rm -f a.out a.exe conftest$ac_cv_exeext
1585ac_clean_files=$ac_clean_files_save
1586# Check the compiler produces executables we can run. If not, either
1587# the compiler is broken, or we cross compile.
1588echo "$as_me:1588: checking whether we are cross compiling" >&5
1589echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1590echo "$as_me:1590: result: $cross_compiling" >&5
1591echo "${ECHO_T}$cross_compiling" >&6
1592
1593echo "$as_me:1593: checking for executable suffix" >&5
1594echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1595if { (eval echo "$as_me:1595: \"$ac_link\"") >&5
1596 (eval $ac_link) 2>&5
1597 ac_status=$?
1598 echo "$as_me:1598: \$? = $ac_status" >&5
1599 (exit $ac_status); }; then
1600 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1601# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1602# work properly (i.e., refer to `conftest.exe'), while it won't with
1603# `rm'.
1604for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1605 case $ac_file in
1606 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1607 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1608 export ac_cv_exeext
1609 break;;
1610 * ) break;;
1611 esac
1612done
1613else
1614 { { echo "$as_me:1614: error: cannot compute EXEEXT: cannot compile and link" >&5
1615echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1616 { (exit 1); exit 1; }; }
1617fi
1618
1619rm -f conftest$ac_cv_exeext
1620echo "$as_me:1620: result: $ac_cv_exeext" >&5
1621echo "${ECHO_T}$ac_cv_exeext" >&6
1622
1623rm -f conftest.$ac_ext
1624EXEEXT=$ac_cv_exeext
1625ac_exeext=$EXEEXT
1626echo "$as_me:1626: checking for object suffix" >&5
1627echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1628if test "${ac_cv_objext+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631 cat >conftest.$ac_ext <<_ACEOF
1632#line 1632 "configure"
1633#include "confdefs.h"
1634
1635int
1636main ()
1637{
1638
1639 ;
1640 return 0;
1641}
1642_ACEOF
1643rm -f conftest.o conftest.obj
1644if { (eval echo "$as_me:1644: \"$ac_compile\"") >&5
1645 (eval $ac_compile) 2>&5
1646 ac_status=$?
1647 echo "$as_me:1647: \$? = $ac_status" >&5
1648 (exit $ac_status); }; then
1649 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1650 case $ac_file in
1651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1652 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1653 break;;
1654 esac
1655done
1656else
1657 echo "$as_me: failed program was:" >&5
1658cat conftest.$ac_ext >&5
1659{ { echo "$as_me:1659: error: cannot compute OBJEXT: cannot compile" >&5
1660echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1661 { (exit 1); exit 1; }; }
1662fi
1663
1664rm -f conftest.$ac_cv_objext conftest.$ac_ext
1665fi
1666echo "$as_me:1666: result: $ac_cv_objext" >&5
1667echo "${ECHO_T}$ac_cv_objext" >&6
1668OBJEXT=$ac_cv_objext
1669ac_objext=$OBJEXT
1670echo "$as_me:1670: checking whether we are using the GNU C++ compiler" >&5
1671echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1672if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
1675 cat >conftest.$ac_ext <<_ACEOF
1676#line 1676 "configure"
1677#include "confdefs.h"
1678
1679int
1680main ()
1681{
1682#ifndef __GNUC__
1683 choke me
1684#endif
1685
1686 ;
1687 return 0;
1688}
1689_ACEOF
1690rm -f conftest.$ac_objext
1691if { (eval echo "$as_me:1691: \"$ac_compile\"") >&5
1692 (eval $ac_compile) 2>&5
1693 ac_status=$?
1694 echo "$as_me:1694: \$? = $ac_status" >&5
1695 (exit $ac_status); } &&
1696 { ac_try='test -s conftest.$ac_objext'
1697 { (eval echo "$as_me:1697: \"$ac_try\"") >&5
1698 (eval $ac_try) 2>&5
1699 ac_status=$?
1700 echo "$as_me:1700: \$? = $ac_status" >&5
1701 (exit $ac_status); }; }; then
1702 ac_compiler_gnu=yes
1703else
1704 echo "$as_me: failed program was:" >&5
1705cat conftest.$ac_ext >&5
1706ac_compiler_gnu=no
1707fi
1708rm -f conftest.$ac_objext conftest.$ac_ext
1709ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1710
1711fi
1712echo "$as_me:1712: result: $ac_cv_cxx_compiler_gnu" >&5
1713echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1714GXX=`test $ac_compiler_gnu = yes && echo yes`
1715ac_test_CXXFLAGS=${CXXFLAGS+set}
1716ac_save_CXXFLAGS=$CXXFLAGS
1717CXXFLAGS="-g"
1718echo "$as_me:1718: checking whether $CXX accepts -g" >&5
1719echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1720if test "${ac_cv_prog_cxx_g+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1722else
1723 cat >conftest.$ac_ext <<_ACEOF
1724#line 1724 "configure"
1725#include "confdefs.h"
1726
1727int
1728main ()
1729{
1730
1731 ;
1732 return 0;
1733}
1734_ACEOF
1735rm -f conftest.$ac_objext
1736if { (eval echo "$as_me:1736: \"$ac_compile\"") >&5
1737 (eval $ac_compile) 2>&5
1738 ac_status=$?
1739 echo "$as_me:1739: \$? = $ac_status" >&5
1740 (exit $ac_status); } &&
1741 { ac_try='test -s conftest.$ac_objext'
1742 { (eval echo "$as_me:1742: \"$ac_try\"") >&5
1743 (eval $ac_try) 2>&5
1744 ac_status=$?
1745 echo "$as_me:1745: \$? = $ac_status" >&5
1746 (exit $ac_status); }; }; then
1747 ac_cv_prog_cxx_g=yes
1748else
1749 echo "$as_me: failed program was:" >&5
1750cat conftest.$ac_ext >&5
1751ac_cv_prog_cxx_g=no
1752fi
1753rm -f conftest.$ac_objext conftest.$ac_ext
1754fi
1755echo "$as_me:1755: result: $ac_cv_prog_cxx_g" >&5
1756echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1757if test "$ac_test_CXXFLAGS" = set; then
1758 CXXFLAGS=$ac_save_CXXFLAGS
1759elif test $ac_cv_prog_cxx_g = yes; then
1760 if test "$GXX" = yes; then
1761 CXXFLAGS="-g -O2"
1762 else
1763 CXXFLAGS="-g"
1764 fi
1765else
1766 if test "$GXX" = yes; then
1767 CXXFLAGS="-O2"
1768 else
1769 CXXFLAGS=
1770 fi
1771fi
1772for ac_declaration in \
1773 ''\
1774 '#include <stdlib.h>' \
1775 'extern "C" void std::exit (int) throw (); using std::exit;' \
1776 'extern "C" void std::exit (int); using std::exit;' \
1777 'extern "C" void exit (int) throw ();' \
1778 'extern "C" void exit (int);' \
1779 'void exit (int);'
1780do
1781 cat >conftest.$ac_ext <<_ACEOF
1782#line 1782 "configure"
1783#include "confdefs.h"
1784#include <stdlib.h>
1785$ac_declaration
1786int
1787main ()
1788{
1789exit (42);
1790 ;
1791 return 0;
1792}
1793_ACEOF
1794rm -f conftest.$ac_objext
1795if { (eval echo "$as_me:1795: \"$ac_compile\"") >&5
1796 (eval $ac_compile) 2>&5
1797 ac_status=$?
1798 echo "$as_me:1798: \$? = $ac_status" >&5
1799 (exit $ac_status); } &&
1800 { ac_try='test -s conftest.$ac_objext'
1801 { (eval echo "$as_me:1801: \"$ac_try\"") >&5
1802 (eval $ac_try) 2>&5
1803 ac_status=$?
1804 echo "$as_me:1804: \$? = $ac_status" >&5
1805 (exit $ac_status); }; }; then
1806 :
1807else
1808 echo "$as_me: failed program was:" >&5
1809cat conftest.$ac_ext >&5
1810continue
1811fi
1812rm -f conftest.$ac_objext conftest.$ac_ext
1813 cat >conftest.$ac_ext <<_ACEOF
1814#line 1814 "configure"
1815#include "confdefs.h"
1816$ac_declaration
1817int
1818main ()
1819{
1820exit (42);
1821 ;
1822 return 0;
1823}
1824_ACEOF
1825rm -f conftest.$ac_objext
1826if { (eval echo "$as_me:1826: \"$ac_compile\"") >&5
1827 (eval $ac_compile) 2>&5
1828 ac_status=$?
1829 echo "$as_me:1829: \$? = $ac_status" >&5
1830 (exit $ac_status); } &&
1831 { ac_try='test -s conftest.$ac_objext'
1832 { (eval echo "$as_me:1832: \"$ac_try\"") >&5
1833 (eval $ac_try) 2>&5
1834 ac_status=$?
1835 echo "$as_me:1835: \$? = $ac_status" >&5
1836 (exit $ac_status); }; }; then
1837 break
1838else
1839 echo "$as_me: failed program was:" >&5
1840cat conftest.$ac_ext >&5
1841fi
1842rm -f conftest.$ac_objext conftest.$ac_ext
1843done
1844rm -f conftest*
1845if test -n "$ac_declaration"; then
1846 echo '#ifdef __cplusplus' >>confdefs.h
1847 echo $ac_declaration >>confdefs.h
1848 echo '#endif' >>confdefs.h
1849fi
1850
1851ac_ext=cc
1852ac_cpp='$CXXCPP $CPPFLAGS'
1853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1856
1857# Check whether --enable-shared or --disable-shared was given.
1858if test "${enable_shared+set}" = set; then
1859 enableval="$enable_shared"
1860 p=${PACKAGE-default}
1861case $enableval in
1862yes) enable_shared=yes ;;
1863no) enable_shared=no ;;
1864*)
1865 enable_shared=no
1866 # Look at the argument we got. We use all the common list separators.
1867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1868 for pkg in $enableval; do
1869 if test "X$pkg" = "X$p"; then
1870 enable_shared=yes
1871 fi
1872 done
1873 IFS="$ac_save_ifs"
1874 ;;
1875esac
1876else
1877 enable_shared=yes
1878fi;
1879# Check whether --enable-static or --disable-static was given.
1880if test "${enable_static+set}" = set; then
1881 enableval="$enable_static"
1882 p=${PACKAGE-default}
1883case $enableval in
1884yes) enable_static=yes ;;
1885no) enable_static=no ;;
1886*)
1887 enable_static=no
1888 # Look at the argument we got. We use all the common list separators.
1889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1890 for pkg in $enableval; do
1891 if test "X$pkg" = "X$p"; then
1892 enable_static=yes
1893 fi
1894 done
1895 IFS="$ac_save_ifs"
1896 ;;
1897esac
1898else
1899 enable_static=yes
1900fi;
1901# Check whether --enable-fast-install or --disable-fast-install was given.
1902if test "${enable_fast_install+set}" = set; then
1903 enableval="$enable_fast_install"
1904 p=${PACKAGE-default}
1905case $enableval in
1906yes) enable_fast_install=yes ;;
1907no) enable_fast_install=no ;;
1908*)
1909 enable_fast_install=no
1910 # Look at the argument we got. We use all the common list separators.
1911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1912 for pkg in $enableval; do
1913 if test "X$pkg" = "X$p"; then
1914 enable_fast_install=yes
1915 fi
1916 done
1917 IFS="$ac_save_ifs"
1918 ;;
1919esac
1920else
1921 enable_fast_install=yes
1922fi;
1923# Make sure we can run config.sub.
1924$ac_config_sub sun4 >/dev/null 2>&1 ||
1925 { { echo "$as_me:1925: error: cannot run $ac_config_sub" >&5
1926echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1927 { (exit 1); exit 1; }; }
1928
1929echo "$as_me:1929: checking build system type" >&5
1930echo $ECHO_N "checking build system type... $ECHO_C" >&6
1931if test "${ac_cv_build+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933else
1934 ac_cv_build_alias=$build_alias
1935test -z "$ac_cv_build_alias" &&
1936 ac_cv_build_alias=`$ac_config_guess`
1937test -z "$ac_cv_build_alias" &&
1938 { { echo "$as_me:1938: error: cannot guess build type; you must specify one" >&5
1939echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940 { (exit 1); exit 1; }; }
1941ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1942 { { echo "$as_me:1942: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1943echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1944 { (exit 1); exit 1; }; }
1945
1946fi
1947echo "$as_me:1947: result: $ac_cv_build" >&5
1948echo "${ECHO_T}$ac_cv_build" >&6
1949build=$ac_cv_build
1950build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1951build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1952build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1953
1954echo "$as_me:1954: checking host system type" >&5
1955echo $ECHO_N "checking host system type... $ECHO_C" >&6
1956if test "${ac_cv_host+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958else
1959 ac_cv_host_alias=$host_alias
1960test -z "$ac_cv_host_alias" &&
1961 ac_cv_host_alias=$ac_cv_build_alias
1962ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1963 { { echo "$as_me:1963: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1964echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1965 { (exit 1); exit 1; }; }
1966
1967fi
1968echo "$as_me:1968: result: $ac_cv_host" >&5
1969echo "${ECHO_T}$ac_cv_host" >&6
1970host=$ac_cv_host
1971host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1972host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1973host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1974
1975ac_ext=c
1976ac_cpp='$CPP $CPPFLAGS'
1977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1979ac_compiler_gnu=$ac_cv_c_compiler_gnu
1980if test -n "$ac_tool_prefix"; then
1981 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1982set dummy ${ac_tool_prefix}gcc; ac_word=$2
1983echo "$as_me:1983: checking for $ac_word" >&5
1984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1985if test "${ac_cv_prog_CC+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987else
1988 if test -n "$CC"; then
1989 ac_cv_prog_CC="$CC" # Let the user override the test.
1990else
1991 ac_save_IFS=$IFS; IFS=$ac_path_separator
1992ac_dummy="$PATH"
1993for ac_dir in $ac_dummy; do
1994 IFS=$ac_save_IFS
1995 test -z "$ac_dir" && ac_dir=.
1996 $as_executable_p "$ac_dir/$ac_word" || continue
1997ac_cv_prog_CC="${ac_tool_prefix}gcc"
1998echo "$as_me:1998: found $ac_dir/$ac_word" >&5
1999break
2000done
2001
2002fi
2003fi
2004CC=$ac_cv_prog_CC
2005if test -n "$CC"; then
2006 echo "$as_me:2006: result: $CC" >&5
2007echo "${ECHO_T}$CC" >&6
2008else
2009 echo "$as_me:2009: result: no" >&5
2010echo "${ECHO_T}no" >&6
2011fi
2012
2013fi
2014if test -z "$ac_cv_prog_CC"; then
2015 ac_ct_CC=$CC
2016 # Extract the first word of "gcc", so it can be a program name with args.
2017set dummy gcc; ac_word=$2
2018echo "$as_me:2018: checking for $ac_word" >&5
2019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2020if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2022else
2023 if test -n "$ac_ct_CC"; then
2024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2025else
2026 ac_save_IFS=$IFS; IFS=$ac_path_separator
2027ac_dummy="$PATH"
2028for ac_dir in $ac_dummy; do
2029 IFS=$ac_save_IFS
2030 test -z "$ac_dir" && ac_dir=.
2031 $as_executable_p "$ac_dir/$ac_word" || continue
2032ac_cv_prog_ac_ct_CC="gcc"
2033echo "$as_me:2033: found $ac_dir/$ac_word" >&5
2034break
2035done
2036
2037fi
2038fi
2039ac_ct_CC=$ac_cv_prog_ac_ct_CC
2040if test -n "$ac_ct_CC"; then
2041 echo "$as_me:2041: result: $ac_ct_CC" >&5
2042echo "${ECHO_T}$ac_ct_CC" >&6
2043else
2044 echo "$as_me:2044: result: no" >&5
2045echo "${ECHO_T}no" >&6
2046fi
2047
2048 CC=$ac_ct_CC
2049else
2050 CC="$ac_cv_prog_CC"
2051fi
2052
2053if test -z "$CC"; then
2054 if test -n "$ac_tool_prefix"; then
2055 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2056set dummy ${ac_tool_prefix}cc; ac_word=$2
2057echo "$as_me:2057: checking for $ac_word" >&5
2058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059if test "${ac_cv_prog_CC+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2061else
2062 if test -n "$CC"; then
2063 ac_cv_prog_CC="$CC" # Let the user override the test.
2064else
2065 ac_save_IFS=$IFS; IFS=$ac_path_separator
2066ac_dummy="$PATH"
2067for ac_dir in $ac_dummy; do
2068 IFS=$ac_save_IFS
2069 test -z "$ac_dir" && ac_dir=.
2070 $as_executable_p "$ac_dir/$ac_word" || continue
2071ac_cv_prog_CC="${ac_tool_prefix}cc"
2072echo "$as_me:2072: found $ac_dir/$ac_word" >&5
2073break
2074done
2075
2076fi
2077fi
2078CC=$ac_cv_prog_CC
2079if test -n "$CC"; then
2080 echo "$as_me:2080: result: $CC" >&5
2081echo "${ECHO_T}$CC" >&6
2082else
2083 echo "$as_me:2083: result: no" >&5
2084echo "${ECHO_T}no" >&6
2085fi
2086
2087fi
2088if test -z "$ac_cv_prog_CC"; then
2089 ac_ct_CC=$CC
2090 # Extract the first word of "cc", so it can be a program name with args.
2091set dummy cc; ac_word=$2
2092echo "$as_me:2092: checking for $ac_word" >&5
2093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2094if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2096else
2097 if test -n "$ac_ct_CC"; then
2098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2099else
2100 ac_save_IFS=$IFS; IFS=$ac_path_separator
2101ac_dummy="$PATH"
2102for ac_dir in $ac_dummy; do
2103 IFS=$ac_save_IFS
2104 test -z "$ac_dir" && ac_dir=.
2105 $as_executable_p "$ac_dir/$ac_word" || continue
2106ac_cv_prog_ac_ct_CC="cc"
2107echo "$as_me:2107: found $ac_dir/$ac_word" >&5
2108break
2109done
2110
2111fi
2112fi
2113ac_ct_CC=$ac_cv_prog_ac_ct_CC
2114if test -n "$ac_ct_CC"; then
2115 echo "$as_me:2115: result: $ac_ct_CC" >&5
2116echo "${ECHO_T}$ac_ct_CC" >&6
2117else
2118 echo "$as_me:2118: result: no" >&5
2119echo "${ECHO_T}no" >&6
2120fi
2121
2122 CC=$ac_ct_CC
2123else
2124 CC="$ac_cv_prog_CC"
2125fi
2126
2127fi
2128if test -z "$CC"; then
2129 # Extract the first word of "cc", so it can be a program name with args.
2130set dummy cc; ac_word=$2
2131echo "$as_me:2131: checking for $ac_word" >&5
2132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133if test "${ac_cv_prog_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135else
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC="$CC" # Let the user override the test.
2138else
2139 ac_prog_rejected=no
2140 ac_save_IFS=$IFS; IFS=$ac_path_separator
2141ac_dummy="$PATH"
2142for ac_dir in $ac_dummy; do
2143 IFS=$ac_save_IFS
2144 test -z "$ac_dir" && ac_dir=.
2145 $as_executable_p "$ac_dir/$ac_word" || continue
2146if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2147 ac_prog_rejected=yes
2148 continue
2149fi
2150ac_cv_prog_CC="cc"
2151echo "$as_me:2151: found $ac_dir/$ac_word" >&5
2152break
2153done
2154
2155if test $ac_prog_rejected = yes; then
2156 # We found a bogon in the path, so make sure we never use it.
2157 set dummy $ac_cv_prog_CC
2158 shift
2159 if test $# != 0; then
2160 # We chose a different compiler from the bogus one.
2161 # However, it has the same basename, so the bogon will be chosen
2162 # first if we set CC to just the basename; use the full file name.
2163 shift
2164 set dummy "$ac_dir/$ac_word" ${1+"$@"}
2165 shift
2166 ac_cv_prog_CC="$@"
2167 fi
2168fi
2169fi
2170fi
2171CC=$ac_cv_prog_CC
2172if test -n "$CC"; then
2173 echo "$as_me:2173: result: $CC" >&5
2174echo "${ECHO_T}$CC" >&6
2175else
2176 echo "$as_me:2176: result: no" >&5
2177echo "${ECHO_T}no" >&6
2178fi
2179
2180fi
2181if test -z "$CC"; then
2182 if test -n "$ac_tool_prefix"; then
2183 for ac_prog in cl
2184 do
2185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2186set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2187echo "$as_me:2187: checking for $ac_word" >&5
2188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2189if test "${ac_cv_prog_CC+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2191else
2192 if test -n "$CC"; then
2193 ac_cv_prog_CC="$CC" # Let the user override the test.
2194else
2195 ac_save_IFS=$IFS; IFS=$ac_path_separator
2196ac_dummy="$PATH"
2197for ac_dir in $ac_dummy; do
2198 IFS=$ac_save_IFS
2199 test -z "$ac_dir" && ac_dir=.
2200 $as_executable_p "$ac_dir/$ac_word" || continue
2201ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2202echo "$as_me:2202: found $ac_dir/$ac_word" >&5
2203break
2204done
2205
2206fi
2207fi
2208CC=$ac_cv_prog_CC
2209if test -n "$CC"; then
2210 echo "$as_me:2210: result: $CC" >&5
2211echo "${ECHO_T}$CC" >&6
2212else
2213 echo "$as_me:2213: result: no" >&5
2214echo "${ECHO_T}no" >&6
2215fi
2216
2217 test -n "$CC" && break
2218 done
2219fi
2220if test -z "$CC"; then
2221 ac_ct_CC=$CC
2222 for ac_prog in cl
2223do
2224 # Extract the first word of "$ac_prog", so it can be a program name with args.
2225set dummy $ac_prog; ac_word=$2
2226echo "$as_me:2226: checking for $ac_word" >&5
2227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2230else
2231 if test -n "$ac_ct_CC"; then
2232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2233else
2234 ac_save_IFS=$IFS; IFS=$ac_path_separator
2235ac_dummy="$PATH"
2236for ac_dir in $ac_dummy; do
2237 IFS=$ac_save_IFS
2238 test -z "$ac_dir" && ac_dir=.
2239 $as_executable_p "$ac_dir/$ac_word" || continue
2240ac_cv_prog_ac_ct_CC="$ac_prog"
2241echo "$as_me:2241: found $ac_dir/$ac_word" >&5
2242break
2243done
2244
2245fi
2246fi
2247ac_ct_CC=$ac_cv_prog_ac_ct_CC
2248if test -n "$ac_ct_CC"; then
2249 echo "$as_me:2249: result: $ac_ct_CC" >&5
2250echo "${ECHO_T}$ac_ct_CC" >&6
2251else
2252 echo "$as_me:2252: result: no" >&5
2253echo "${ECHO_T}no" >&6
2254fi
2255
2256 test -n "$ac_ct_CC" && break
2257done
2258
2259 CC=$ac_ct_CC
2260fi
2261
2262fi
2263
2264test -z "$CC" && { { echo "$as_me:2264: error: no acceptable cc found in \$PATH" >&5
2265echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2266 { (exit 1); exit 1; }; }
2267
2268# Provide some information about the compiler.
2269echo "$as_me:2269:" \
2270 "checking for C compiler version" >&5
2271ac_compiler=`set X $ac_compile; echo $2`
2272{ (eval echo "$as_me:2272: \"$ac_compiler --version </dev/null >&5\"") >&5
2273 (eval $ac_compiler --version </dev/null >&5) 2>&5
2274 ac_status=$?
2275 echo "$as_me:2275: \$? = $ac_status" >&5
2276 (exit $ac_status); }
2277{ (eval echo "$as_me:2277: \"$ac_compiler -v </dev/null >&5\"") >&5
2278 (eval $ac_compiler -v </dev/null >&5) 2>&5
2279 ac_status=$?
2280 echo "$as_me:2280: \$? = $ac_status" >&5
2281 (exit $ac_status); }
2282{ (eval echo "$as_me:2282: \"$ac_compiler -V </dev/null >&5\"") >&5
2283 (eval $ac_compiler -V </dev/null >&5) 2>&5
2284 ac_status=$?
2285 echo "$as_me:2285: \$? = $ac_status" >&5
2286 (exit $ac_status); }
2287
2288echo "$as_me:2288: checking whether we are using the GNU C compiler" >&5
2289echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2290if test "${ac_cv_c_compiler_gnu+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2292else
2293 cat >conftest.$ac_ext <<_ACEOF
2294#line 2294 "configure"
2295#include "confdefs.h"
2296
2297int
2298main ()
2299{
2300#ifndef __GNUC__
2301 choke me
2302#endif
2303
2304 ;
2305 return 0;
2306}
2307_ACEOF
2308rm -f conftest.$ac_objext
2309if { (eval echo "$as_me:2309: \"$ac_compile\"") >&5
2310 (eval $ac_compile) 2>&5
2311 ac_status=$?
2312 echo "$as_me:2312: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -s conftest.$ac_objext'
2315 { (eval echo "$as_me:2315: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5
2317 ac_status=$?
2318 echo "$as_me:2318: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2320 ac_compiler_gnu=yes
2321else
2322 echo "$as_me: failed program was:" >&5
2323cat conftest.$ac_ext >&5
2324ac_compiler_gnu=no
2325fi
2326rm -f conftest.$ac_objext conftest.$ac_ext
2327ac_cv_c_compiler_gnu=$ac_compiler_gnu
2328
2329fi
2330echo "$as_me:2330: result: $ac_cv_c_compiler_gnu" >&5
2331echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2332GCC=`test $ac_compiler_gnu = yes && echo yes`
2333ac_test_CFLAGS=${CFLAGS+set}
2334ac_save_CFLAGS=$CFLAGS
2335CFLAGS="-g"
2336echo "$as_me:2336: checking whether $CC accepts -g" >&5
2337echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2338if test "${ac_cv_prog_cc_g+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340else
2341 cat >conftest.$ac_ext <<_ACEOF
2342#line 2342 "configure"
2343#include "confdefs.h"
2344
2345int
2346main ()
2347{
2348
2349 ;
2350 return 0;
2351}
2352_ACEOF
2353rm -f conftest.$ac_objext
2354if { (eval echo "$as_me:2354: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>&5
2356 ac_status=$?
2357 echo "$as_me:2357: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try='test -s conftest.$ac_objext'
2360 { (eval echo "$as_me:2360: \"$ac_try\"") >&5
2361 (eval $ac_try) 2>&5
2362 ac_status=$?
2363 echo "$as_me:2363: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2365 ac_cv_prog_cc_g=yes
2366else
2367 echo "$as_me: failed program was:" >&5
2368cat conftest.$ac_ext >&5
2369ac_cv_prog_cc_g=no
2370fi
2371rm -f conftest.$ac_objext conftest.$ac_ext
2372fi
2373echo "$as_me:2373: result: $ac_cv_prog_cc_g" >&5
2374echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2375if test "$ac_test_CFLAGS" = set; then
2376 CFLAGS=$ac_save_CFLAGS
2377elif test $ac_cv_prog_cc_g = yes; then
2378 if test "$GCC" = yes; then
2379 CFLAGS="-g -O2"
2380 else
2381 CFLAGS="-g"
2382 fi
2383else
2384 if test "$GCC" = yes; then
2385 CFLAGS="-O2"
2386 else
2387 CFLAGS=
2388 fi
2389fi
2390# Some people use a C++ compiler to compile C. Since we use `exit',
2391# in C++ we need to declare it. In case someone uses the same compiler
2392# for both compiling C and C++ we need to have the C++ compiler decide
2393# the declaration of exit, since it's the most demanding environment.
2394cat >conftest.$ac_ext <<_ACEOF
2395#ifndef __cplusplus
2396 choke me
2397#endif
2398_ACEOF
2399rm -f conftest.$ac_objext
2400if { (eval echo "$as_me:2400: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>&5
2402 ac_status=$?
2403 echo "$as_me:2403: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:2406: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:2409: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 for ac_declaration in \
2412 ''\
2413 '#include <stdlib.h>' \
2414 'extern "C" void std::exit (int) throw (); using std::exit;' \
2415 'extern "C" void std::exit (int); using std::exit;' \
2416 'extern "C" void exit (int) throw ();' \
2417 'extern "C" void exit (int);' \
2418 'void exit (int);'
2419do
2420 cat >conftest.$ac_ext <<_ACEOF
2421#line 2421 "configure"
2422#include "confdefs.h"
2423#include <stdlib.h>
2424$ac_declaration
2425int
2426main ()
2427{
2428exit (42);
2429 ;
2430 return 0;
2431}
2432_ACEOF
2433rm -f conftest.$ac_objext
2434if { (eval echo "$as_me:2434: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>&5
2436 ac_status=$?
2437 echo "$as_me:2437: \$? = $ac_status" >&5
2438 (exit $ac_status); } &&
2439 { ac_try='test -s conftest.$ac_objext'
2440 { (eval echo "$as_me:2440: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:2443: \$? = $ac_status" >&5
2444 (exit $ac_status); }; }; then
2445 :
2446else
2447 echo "$as_me: failed program was:" >&5
2448cat conftest.$ac_ext >&5
2449continue
2450fi
2451rm -f conftest.$ac_objext conftest.$ac_ext
2452 cat >conftest.$ac_ext <<_ACEOF
2453#line 2453 "configure"
2454#include "confdefs.h"
2455$ac_declaration
2456int
2457main ()
2458{
2459exit (42);
2460 ;
2461 return 0;
2462}
2463_ACEOF
2464rm -f conftest.$ac_objext
2465if { (eval echo "$as_me:2465: \"$ac_compile\"") >&5
2466 (eval $ac_compile) 2>&5
2467 ac_status=$?
2468 echo "$as_me:2468: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:2471: \"$ac_try\"") >&5
2472 (eval $ac_try) 2>&5
2473 ac_status=$?
2474 echo "$as_me:2474: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 break
2477else
2478 echo "$as_me: failed program was:" >&5
2479cat conftest.$ac_ext >&5
2480fi
2481rm -f conftest.$ac_objext conftest.$ac_ext
2482done
2483rm -f conftest*
2484if test -n "$ac_declaration"; then
2485 echo '#ifdef __cplusplus' >>confdefs.h
2486 echo $ac_declaration >>confdefs.h
2487 echo '#endif' >>confdefs.h
2488fi
2489
2490else
2491 echo "$as_me: failed program was:" >&5
2492cat conftest.$ac_ext >&5
2493fi
2494rm -f conftest.$ac_objext conftest.$ac_ext
2495ac_ext=cc
2496ac_cpp='$CXXCPP $CPPFLAGS'
2497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2500
2501# Find the correct PATH separator. Usually this is `:', but
2502# DJGPP uses `;' like DOS.
2503if test "X${PATH_SEPARATOR+set}" != Xset; then
2504 UNAME=${UNAME-`uname 2>/dev/null`}
2505 case X$UNAME in
2506 *-DOS) lt_cv_sys_path_separator=';' ;;
2507 *) lt_cv_sys_path_separator=':' ;;
2508 esac
2509 PATH_SEPARATOR=$lt_cv_sys_path_separator
2510fi
2511
2512# Check whether --with-gnu-ld or --without-gnu-ld was given.
2513if test "${with_gnu_ld+set}" = set; then
2514 withval="$with_gnu_ld"
2515 test "$withval" = no || with_gnu_ld=yes
2516else
2517 with_gnu_ld=no
2518fi;
2519ac_prog=ld
2520if test "$GCC" = yes; then
2521 # Check if gcc -print-prog-name=ld gives a path.
2522 echo "$as_me:2522: checking for ld used by GCC" >&5
2523echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2524 case $host in
2525 *-*-mingw*)
2526 # gcc leaves a trailing carriage return which upsets mingw
2527 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2528 *)
2529 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2530 esac
2531 case $ac_prog in
2532 # Accept absolute paths.
2533 [\\/]* | [A-Za-z]:[\\/]*)
2534 re_direlt='/[^/][^/]*/\.\./'
2535 # Canonicalize the path of ld
2536 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2537 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2538 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2539 done
2540 test -z "$LD" && LD="$ac_prog"
2541 ;;
2542 "")
2543 # If it fails, then pretend we aren't using GCC.
2544 ac_prog=ld
2545 ;;
2546 *)
2547 # If it is relative, then search for the first ld in PATH.
2548 with_gnu_ld=unknown
2549 ;;
2550 esac
2551elif test "$with_gnu_ld" = yes; then
2552 echo "$as_me:2552: checking for GNU ld" >&5
2553echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2554else
2555 echo "$as_me:2555: checking for non-GNU ld" >&5
2556echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2557fi
2558if test "${lt_cv_path_LD+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2560else
2561 if test -z "$LD"; then
2562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2563 for ac_dir in $PATH; do
2564 test -z "$ac_dir" && ac_dir=.
2565 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2566 lt_cv_path_LD="$ac_dir/$ac_prog"
2567 # Check to see if the program is GNU ld. I'd rather use --version,
2568 # but apparently some GNU ld's only accept -v.
2569 # Break only if it was the GNU/non-GNU ld that we prefer.
2570 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2571 test "$with_gnu_ld" != no && break
2572 else
2573 test "$with_gnu_ld" != yes && break
2574 fi
2575 fi
2576 done
2577 IFS="$ac_save_ifs"
2578else
2579 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2580fi
2581fi
2582
2583LD="$lt_cv_path_LD"
2584if test -n "$LD"; then
2585 echo "$as_me:2585: result: $LD" >&5
2586echo "${ECHO_T}$LD" >&6
2587else
2588 echo "$as_me:2588: result: no" >&5
2589echo "${ECHO_T}no" >&6
2590fi
2591test -z "$LD" && { { echo "$as_me:2591: error: no acceptable ld found in \$PATH" >&5
2592echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2593 { (exit 1); exit 1; }; }
2594echo "$as_me:2594: checking if the linker ($LD) is GNU ld" >&5
2595echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2596if test "${lt_cv_prog_gnu_ld+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2598else
2599 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2600if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2601 lt_cv_prog_gnu_ld=yes
2602else
2603 lt_cv_prog_gnu_ld=no
2604fi
2605fi
2606echo "$as_me:2606: result: $lt_cv_prog_gnu_ld" >&5
2607echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2608with_gnu_ld=$lt_cv_prog_gnu_ld
2609
2610echo "$as_me:2610: checking for $LD option to reload object files" >&5
2611echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2612if test "${lt_cv_ld_reload_flag+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2614else
2615 lt_cv_ld_reload_flag='-r'
2616fi
2617echo "$as_me:2617: result: $lt_cv_ld_reload_flag" >&5
2618echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2619reload_flag=$lt_cv_ld_reload_flag
2620test -n "$reload_flag" && reload_flag=" $reload_flag"
2621
2622echo "$as_me:2622: checking for BSD-compatible nm" >&5
2623echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2624if test "${lt_cv_path_NM+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626else
2627 if test -n "$NM"; then
2628 # Let the user override the test.
2629 lt_cv_path_NM="$NM"
2630else
2631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2632 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2633 test -z "$ac_dir" && ac_dir=.
2634 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2635 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2636 # Check to see if the nm accepts a BSD-compat flag.
2637 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2638 # nm: unknown option "B" ignored
2639 # Tru64's nm complains that /dev/null is an invalid object file
2640 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2641 lt_cv_path_NM="$tmp_nm -B"
2642 break
2643 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2644 lt_cv_path_NM="$tmp_nm -p"
2645 break
2646 else
2647 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2648 continue # so that we can try to find one that supports BSD flags
2649 fi
2650 fi
2651 done
2652 IFS="$ac_save_ifs"
2653 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2654fi
2655fi
2656
2657NM="$lt_cv_path_NM"
2658echo "$as_me:2658: result: $NM" >&5
2659echo "${ECHO_T}$NM" >&6
2660
2661echo "$as_me:2661: checking whether ln -s works" >&5
2662echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2663LN_S=$as_ln_s
2664if test "$LN_S" = "ln -s"; then
2665 echo "$as_me:2665: result: yes" >&5
2666echo "${ECHO_T}yes" >&6
2667else
2668 echo "$as_me:2668: result: no, using $LN_S" >&5
2669echo "${ECHO_T}no, using $LN_S" >&6
2670fi
2671
2672echo "$as_me:2672: checking how to recognise dependant libraries" >&5
2673echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2674if test "${lt_cv_deplibs_check_method+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676else
2677 lt_cv_file_magic_cmd='$MAGIC_CMD'
2678lt_cv_file_magic_test_file=
2679lt_cv_deplibs_check_method='unknown'
2680# Need to set the preceding variable on all platforms that support
2681# interlibrary dependencies.
2682# 'none' -- dependencies not supported.
2683# `unknown' -- same as none, but documents that we really don't know.
2684# 'pass_all' -- all dependencies passed with no checks.
2685# 'test_compile' -- check by making test program.
2686# 'file_magic [[regex]]' -- check by looking for files in library path
2687# which responds to the $file_magic_cmd with a given egrep regex.
2688# If you have `file' or equivalent on your system and you're not sure
2689# whether `pass_all' will *always* work, you probably want this one.
2690
2691case $host_os in
2692aix4* | aix5*)
2693 lt_cv_deplibs_check_method=pass_all
2694 ;;
2695
2696beos*)
2697 lt_cv_deplibs_check_method=pass_all
2698 ;;
2699
2700bsdi4*)
2701 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2702 lt_cv_file_magic_cmd='/usr/bin/file -L'
2703 lt_cv_file_magic_test_file=/shlib/libc.so
2704 ;;
2705
2706cygwin* | mingw* | pw32*)
2707 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2708 lt_cv_file_magic_cmd='$OBJDUMP -f'
2709 ;;
2710
2711darwin* | rhapsody*)
2712 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2713 lt_cv_file_magic_cmd='/usr/bin/file -L'
2714 case "$host_os" in
2715 rhapsody* | darwin1.[012])
2716 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2717 ;;
2718 *) # Darwin 1.3 on
2719 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2720 ;;
2721 esac
2722 ;;
2723
2724freebsd*)
2725 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2726 case $host_cpu in
2727 i*86 )
2728 # Not sure whether the presence of OpenBSD here was a mistake.
2729 # Let's accept both of them until this is cleared up.
2730 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2731 lt_cv_file_magic_cmd=/usr/bin/file
2732 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2733 ;;
2734 esac
2735 else
2736 lt_cv_deplibs_check_method=pass_all
2737 fi
2738 ;;
2739
2740gnu*)
2741 lt_cv_deplibs_check_method=pass_all
2742 ;;
2743
2744hpux10.20*|hpux11*)
2745 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2746 lt_cv_file_magic_cmd=/usr/bin/file
2747 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2748 ;;
2749
2750irix5* | irix6*)
2751 case $host_os in
2752 irix5*)
2753 # this will be overridden with pass_all, but let us keep it just in case
2754 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2755 ;;
2756 *)
2757 case $LD in
2758 *-32|*"-32 ") libmagic=32-bit;;
2759 *-n32|*"-n32 ") libmagic=N32;;
2760 *-64|*"-64 ") libmagic=64-bit;;
2761 *) libmagic=never-match;;
2762 esac
2763 # this will be overridden with pass_all, but let us keep it just in case
2764 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2765 ;;
2766 esac
2767 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2768 lt_cv_deplibs_check_method=pass_all
2769 ;;
2770
2771# This must be Linux ELF.
2772linux-gnu*)
2773 case $host_cpu in
2774 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2775 lt_cv_deplibs_check_method=pass_all ;;
2776 *)
2777 # glibc up to 2.1.1 does not perform some relocations on ARM
2778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2779 esac
2780 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2781 ;;
2782
2783netbsd*)
2784 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2785 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2786 else
2787 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2788 fi
2789 ;;
2790
2791newos6*)
2792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2793 lt_cv_file_magic_cmd=/usr/bin/file
2794 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2795 ;;
2796
2797openbsd*)
2798 lt_cv_file_magic_cmd=/usr/bin/file
2799 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2800 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2801 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2802 else
2803 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2804 fi
2805 ;;
2806
2807osf3* | osf4* | osf5*)
2808 # this will be overridden with pass_all, but let us keep it just in case
2809 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2810 lt_cv_file_magic_test_file=/shlib/libc.so
2811 lt_cv_deplibs_check_method=pass_all
2812 ;;
2813
2814sco3.2v5*)
2815 lt_cv_deplibs_check_method=pass_all
2816 ;;
2817
2818solaris*)
2819 lt_cv_deplibs_check_method=pass_all
2820 lt_cv_file_magic_test_file=/lib/libc.so
2821 ;;
2822
2823sysv5uw[78]* | sysv4*uw2*)
2824 lt_cv_deplibs_check_method=pass_all
2825 ;;
2826
2827sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2828 case $host_vendor in
2829 motorola)
2830 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]'
2831 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2832 ;;
2833 ncr)
2834 lt_cv_deplibs_check_method=pass_all
2835 ;;
2836 sequent)
2837 lt_cv_file_magic_cmd='/bin/file'
2838 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2839 ;;
2840 sni)
2841 lt_cv_file_magic_cmd='/bin/file'
2842 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2843 lt_cv_file_magic_test_file=/lib/libc.so
2844 ;;
2845 esac
2846 ;;
2847esac
2848
2849fi
2850echo "$as_me:2850: result: $lt_cv_deplibs_check_method" >&5
2851echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2852file_magic_cmd=$lt_cv_file_magic_cmd
2853deplibs_check_method=$lt_cv_deplibs_check_method
2854
2855# Check for command to grab the raw symbol name followed by C symbol from nm.
2856echo "$as_me:2856: checking command to parse $NM output" >&5
2857echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2858if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2860else
2861
2862# These are sane defaults that work on at least a few old systems.
2863# [They come from Ultrix. What could be older than Ultrix?!! ;)]
2864
2865# Character class describing NM global symbol codes.
2866symcode='[BCDEGRST]'
2867
2868# Regexp to match symbols that can be accessed directly from C.
2869sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2870
2871# Transform the above into a raw symbol and a C symbol.
2872symxfrm='\1 \2\3 \3'
2873
2874# Transform an extracted symbol line into a proper C declaration
2875lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2876
2877# Transform an extracted symbol line into symbol name and symbol address
2878lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2879
2880# Define system-specific variables.
2881case $host_os in
2882aix*)
2883 symcode='[BCDT]'
2884 ;;
2885cygwin* | mingw* | pw32*)
2886 symcode='[ABCDGISTW]'
2887 ;;
2888hpux*) # Its linker distinguishes data from code symbols
2889 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2890 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2891 ;;
2892irix*)
2893 symcode='[BCDEGRST]'
2894 ;;
2895solaris* | sysv5*)
2896 symcode='[BDT]'
2897 ;;
2898sysv4)
2899 symcode='[DFNSTU]'
2900 ;;
2901esac
2902
2903# Handle CRLF in mingw tool chain
2904opt_cr=
2905case $host_os in
2906mingw*)
2907 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2908 ;;
2909esac
2910
2911# If we're using GNU nm, then use its standard symbol codes.
2912if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2913 symcode='[ABCDGISTW]'
2914fi
2915
2916# Try without a prefix undercore, then with it.
2917for ac_symprfx in "" "_"; do
2918
2919 # Write the raw and C identifiers.
2920lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2921
2922 # Check to see that the pipe works correctly.
2923 pipe_works=no
2924 rm -f conftest*
2925 cat > conftest.$ac_ext <<EOF
2926#ifdef __cplusplus
2927extern "C" {
2928#endif
2929char nm_test_var;
2930void nm_test_func(){}
2931#ifdef __cplusplus
2932}
2933#endif
2934int main(){nm_test_var='a';nm_test_func();return(0);}
2935EOF
2936
2937 if { (eval echo "$as_me:2937: \"$ac_compile\"") >&5
2938 (eval $ac_compile) 2>&5
2939 ac_status=$?
2940 echo "$as_me:2940: \$? = $ac_status" >&5
2941 (exit $ac_status); }; then
2942 # Now try to grab the symbols.
2943 nlist=conftest.nm
2944 if { (eval echo "$as_me:2944: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
2945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
2946 ac_status=$?
2947 echo "$as_me:2947: \$? = $ac_status" >&5
2948 (exit $ac_status); } && test -s "$nlist"; then
2949 # Try sorting and uniquifying the output.
2950 if sort "$nlist" | uniq > "$nlist"T; then
2951 mv -f "$nlist"T "$nlist"
2952 else
2953 rm -f "$nlist"T
2954 fi
2955
2956 # Make sure that we snagged all the symbols we need.
2957 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2958 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2959 cat <<EOF > conftest.$ac_ext
2960#ifdef __cplusplus
2961extern "C" {
2962#endif
2963
2964EOF
2965 # Now generate the symbol file.
2966 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2967
2968 cat <<EOF >> conftest.$ac_ext
2969#if defined (__STDC__) && __STDC__
2970# define lt_ptr void *
2971#else
2972# define lt_ptr char *
2973# define const
2974#endif
2975
2976/* The mapping between symbol names and symbols. */
2977const struct {
2978 const char *name;
2979 lt_ptr address;
2980}
2981lt_preloaded_symbols[] =
2982{
2983EOF
2984 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2985 cat <<\EOF >> conftest.$ac_ext
2986 {0, (lt_ptr) 0}
2987};
2988
2989#ifdef __cplusplus
2990}
2991#endif
2992EOF
2993 # Now try linking the two files.
2994 mv conftest.$ac_objext conftstm.$ac_objext
2995 save_LIBS="$LIBS"
2996 save_CFLAGS="$CFLAGS"
2997 LIBS="conftstm.$ac_objext"
2998 CFLAGS="$CFLAGS$no_builtin_flag"
2999 if { (eval echo "$as_me:2999: \"$ac_link\"") >&5
3000 (eval $ac_link) 2>&5
3001 ac_status=$?
3002 echo "$as_me:3002: \$? = $ac_status" >&5
3003 (exit $ac_status); } && test -s conftest; then
3004 pipe_works=yes
3005 fi
3006 LIBS="$save_LIBS"
3007 CFLAGS="$save_CFLAGS"
3008 else
3009 echo "cannot find nm_test_func in $nlist" >&5
3010 fi
3011 else
3012 echo "cannot find nm_test_var in $nlist" >&5
3013 fi
3014 else
3015 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3016 fi
3017 else
3018 echo "$progname: failed program was:" >&5
3019 cat conftest.$ac_ext >&5
3020 fi
3021 rm -f conftest* conftst*
3022
3023 # Do not use the global_symbol_pipe unless it works.
3024 if test "$pipe_works" = yes; then
3025 break
3026 else
3027 lt_cv_sys_global_symbol_pipe=
3028 fi
3029done
3030
3031fi
3032
3033global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3034if test -z "$lt_cv_sys_global_symbol_pipe"; then
3035 global_symbol_to_cdecl=
3036 global_symbol_to_c_name_address=
3037else
3038 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3039 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3040fi
3041if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3042then
3043 echo "$as_me:3043: result: failed" >&5
3044echo "${ECHO_T}failed" >&6
3045else
3046 echo "$as_me:3046: result: ok" >&5
3047echo "${ECHO_T}ok" >&6
3048fi
3049
3050ac_ext=cc
3051ac_cpp='$CXXCPP $CPPFLAGS'
3052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3055echo "$as_me:3055: checking how to run the C++ preprocessor" >&5
3056echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3057if test -z "$CXXCPP"; then
3058 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3060else
3061 # Double quotes because CXXCPP needs to be expanded
3062 for CXXCPP in "$CXX -E" "/lib/cpp"
3063 do
3064 ac_preproc_ok=false
3065for ac_cxx_preproc_warn_flag in '' yes
3066do
3067 # Use a header file that comes with gcc, so configuring glibc
3068 # with a fresh cross-compiler works.
3069 # On the NeXT, cc -E runs the code through the compiler's parser,
3070 # not just through cpp. "Syntax error" is here to catch this case.
3071 cat >conftest.$ac_ext <<_ACEOF
3072#line 3072 "configure"
3073#include "confdefs.h"
3074#include <assert.h>
3075 Syntax error
3076_ACEOF
3077if { (eval echo "$as_me:3077: \"$ac_cpp conftest.$ac_ext\"") >&5
3078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3079 ac_status=$?
3080 egrep -v '^ *\+' conftest.er1 >conftest.err
3081 rm -f conftest.er1
3082 cat conftest.err >&5
3083 echo "$as_me:3083: \$? = $ac_status" >&5
3084 (exit $ac_status); } >/dev/null; then
3085 if test -s conftest.err; then
3086 ac_cpp_err=$ac_cxx_preproc_warn_flag
3087 else
3088 ac_cpp_err=
3089 fi
3090else
3091 ac_cpp_err=yes
3092fi
3093if test -z "$ac_cpp_err"; then
3094 :
3095else
3096 echo "$as_me: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3098 # Broken: fails on valid input.
3099continue
3100fi
3101rm -f conftest.err conftest.$ac_ext
3102
3103 # OK, works on sane cases. Now check whether non-existent headers
3104 # can be detected and how.
3105 cat >conftest.$ac_ext <<_ACEOF
3106#line 3106 "configure"
3107#include "confdefs.h"
3108#include <ac_nonexistent.h>
3109_ACEOF
3110if { (eval echo "$as_me:3110: \"$ac_cpp conftest.$ac_ext\"") >&5
3111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3112 ac_status=$?
3113 egrep -v '^ *\+' conftest.er1 >conftest.err
3114 rm -f conftest.er1
3115 cat conftest.err >&5
3116 echo "$as_me:3116: \$? = $ac_status" >&5
3117 (exit $ac_status); } >/dev/null; then
3118 if test -s conftest.err; then
3119 ac_cpp_err=$ac_cxx_preproc_warn_flag
3120 else
3121 ac_cpp_err=
3122 fi
3123else
3124 ac_cpp_err=yes
3125fi
3126if test -z "$ac_cpp_err"; then
3127 # Broken: success on invalid input.
3128continue
3129else
3130 echo "$as_me: failed program was:" >&5
3131 cat conftest.$ac_ext >&5
3132 # Passes both tests.
3133ac_preproc_ok=:
3134break
3135fi
3136rm -f conftest.err conftest.$ac_ext
3137
3138done
3139# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3140rm -f conftest.err conftest.$ac_ext
3141if $ac_preproc_ok; then
3142 break
3143fi
3144
3145 done
3146 ac_cv_prog_CXXCPP=$CXXCPP
3147
3148fi
3149 CXXCPP=$ac_cv_prog_CXXCPP
3150else
3151 ac_cv_prog_CXXCPP=$CXXCPP
3152fi
3153echo "$as_me:3153: result: $CXXCPP" >&5
3154echo "${ECHO_T}$CXXCPP" >&6
3155ac_preproc_ok=false
3156for ac_cxx_preproc_warn_flag in '' yes
3157do
3158 # Use a header file that comes with gcc, so configuring glibc
3159 # with a fresh cross-compiler works.
3160 # On the NeXT, cc -E runs the code through the compiler's parser,
3161 # not just through cpp. "Syntax error" is here to catch this case.
3162 cat >conftest.$ac_ext <<_ACEOF
3163#line 3163 "configure"
3164#include "confdefs.h"
3165#include <assert.h>
3166 Syntax error
3167_ACEOF
3168if { (eval echo "$as_me:3168: \"$ac_cpp conftest.$ac_ext\"") >&5
3169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3170 ac_status=$?
3171 egrep -v '^ *\+' conftest.er1 >conftest.err
3172 rm -f conftest.er1
3173 cat conftest.err >&5
3174 echo "$as_me:3174: \$? = $ac_status" >&5
3175 (exit $ac_status); } >/dev/null; then
3176 if test -s conftest.err; then
3177 ac_cpp_err=$ac_cxx_preproc_warn_flag
3178 else
3179 ac_cpp_err=
3180 fi
3181else
3182 ac_cpp_err=yes
3183fi
3184if test -z "$ac_cpp_err"; then
3185 :
3186else
3187 echo "$as_me: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3189 # Broken: fails on valid input.
3190continue
3191fi
3192rm -f conftest.err conftest.$ac_ext
3193
3194 # OK, works on sane cases. Now check whether non-existent headers
3195 # can be detected and how.
3196 cat >conftest.$ac_ext <<_ACEOF
3197#line 3197 "configure"
3198#include "confdefs.h"
3199#include <ac_nonexistent.h>
3200_ACEOF
3201if { (eval echo "$as_me:3201: \"$ac_cpp conftest.$ac_ext\"") >&5
3202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3203 ac_status=$?
3204 egrep -v '^ *\+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:3207: \$? = $ac_status" >&5
3208 (exit $ac_status); } >/dev/null; then
3209 if test -s conftest.err; then
3210 ac_cpp_err=$ac_cxx_preproc_warn_flag
3211 else
3212 ac_cpp_err=
3213 fi
3214else
3215 ac_cpp_err=yes
3216fi
3217if test -z "$ac_cpp_err"; then
3218 # Broken: success on invalid input.
3219continue
3220else
3221 echo "$as_me: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3223 # Passes both tests.
3224ac_preproc_ok=:
3225break
3226fi
3227rm -f conftest.err conftest.$ac_ext
3228
3229done
3230# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3231rm -f conftest.err conftest.$ac_ext
3232if $ac_preproc_ok; then
3233 :
3234else
3235 { { echo "$as_me:3235: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
3236echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
3237 { (exit 1); exit 1; }; }
3238fi
3239
3240ac_ext=cc
3241ac_cpp='$CXXCPP $CPPFLAGS'
3242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3245
3246for ac_header in dlfcn.h
3247do
3248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3249echo "$as_me:3249: checking for $ac_header" >&5
3250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3251if eval "test \"\${$as_ac_Header+set}\" = set"; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253else
3254 cat >conftest.$ac_ext <<_ACEOF
3255#line 3255 "configure"
3256#include "confdefs.h"
3257#include <$ac_header>
3258_ACEOF
3259if { (eval echo "$as_me:3259: \"$ac_cpp conftest.$ac_ext\"") >&5
3260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3261 ac_status=$?
3262 egrep -v '^ *\+' conftest.er1 >conftest.err
3263 rm -f conftest.er1
3264 cat conftest.err >&5
3265 echo "$as_me:3265: \$? = $ac_status" >&5
3266 (exit $ac_status); } >/dev/null; then
3267 if test -s conftest.err; then
3268 ac_cpp_err=$ac_cxx_preproc_warn_flag
3269 else
3270 ac_cpp_err=
3271 fi
3272else
3273 ac_cpp_err=yes
3274fi
3275if test -z "$ac_cpp_err"; then
3276 eval "$as_ac_Header=yes"
3277else
3278 echo "$as_me: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3280 eval "$as_ac_Header=no"
3281fi
3282rm -f conftest.err conftest.$ac_ext
3283fi
3284echo "$as_me:3284: result: `eval echo '${'$as_ac_Header'}'`" >&5
3285echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3286if test `eval echo '${'$as_ac_Header'}'` = yes; then
3287 cat >>confdefs.h <<EOF
3288#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3289EOF
3290
3291fi
3292done
3293
3294# Only perform the check for file, if the check method requires it
3295case $deplibs_check_method in
3296file_magic*)
3297 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3298 echo "$as_me:3298: checking for ${ac_tool_prefix}file" >&5
3299echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3300if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3302else
3303 case $MAGIC_CMD in
3304 /*)
3305 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3306 ;;
3307 ?:/*)
3308 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3309 ;;
3310 *)
3311 ac_save_MAGIC_CMD="$MAGIC_CMD"
3312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3313 ac_dummy="/usr/bin:$PATH"
3314 for ac_dir in $ac_dummy; do
3315 test -z "$ac_dir" && ac_dir=.
3316 if test -f $ac_dir/${ac_tool_prefix}file; then
3317 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3318 if test -n "$file_magic_test_file"; then
3319 case $deplibs_check_method in
3320 "file_magic "*)
3321 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3322 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3323 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3324 egrep "$file_magic_regex" > /dev/null; then
3325 :
3326 else
3327 cat <<EOF 1>&2
3328
3329*** Warning: the command libtool uses to detect shared libraries,
3330*** $file_magic_cmd, produces output that libtool cannot recognize.
3331*** The result is that libtool may fail to recognize shared libraries
3332*** as such. This will affect the creation of libtool libraries that
3333*** depend on shared libraries, but programs linked with such libtool
3334*** libraries will work regardless of this problem. Nevertheless, you
3335*** may want to report the problem to your system manager and/or to
3336*** bug-libtool@gnu.org
3337
3338EOF
3339 fi ;;
3340 esac
3341 fi
3342 break
3343 fi
3344 done
3345 IFS="$ac_save_ifs"
3346 MAGIC_CMD="$ac_save_MAGIC_CMD"
3347 ;;
3348esac
3349fi
3350
3351MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3352if test -n "$MAGIC_CMD"; then
3353 echo "$as_me:3353: result: $MAGIC_CMD" >&5
3354echo "${ECHO_T}$MAGIC_CMD" >&6
3355else
3356 echo "$as_me:3356: result: no" >&5
3357echo "${ECHO_T}no" >&6
3358fi
3359
3360if test -z "$lt_cv_path_MAGIC_CMD"; then
3361 if test -n "$ac_tool_prefix"; then
3362 echo "$as_me:3362: checking for file" >&5
3363echo $ECHO_N "checking for file... $ECHO_C" >&6
3364if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3366else
3367 case $MAGIC_CMD in
3368 /*)
3369 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3370 ;;
3371 ?:/*)
3372 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3373 ;;
3374 *)
3375 ac_save_MAGIC_CMD="$MAGIC_CMD"
3376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3377 ac_dummy="/usr/bin:$PATH"
3378 for ac_dir in $ac_dummy; do
3379 test -z "$ac_dir" && ac_dir=.
3380 if test -f $ac_dir/file; then
3381 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3382 if test -n "$file_magic_test_file"; then
3383 case $deplibs_check_method in
3384 "file_magic "*)
3385 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3386 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3387 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3388 egrep "$file_magic_regex" > /dev/null; then
3389 :
3390 else
3391 cat <<EOF 1>&2
3392
3393*** Warning: the command libtool uses to detect shared libraries,
3394*** $file_magic_cmd, produces output that libtool cannot recognize.
3395*** The result is that libtool may fail to recognize shared libraries
3396*** as such. This will affect the creation of libtool libraries that
3397*** depend on shared libraries, but programs linked with such libtool
3398*** libraries will work regardless of this problem. Nevertheless, you
3399*** may want to report the problem to your system manager and/or to
3400*** bug-libtool@gnu.org
3401
3402EOF
3403 fi ;;
3404 esac
3405 fi
3406 break
3407 fi
3408 done
3409 IFS="$ac_save_ifs"
3410 MAGIC_CMD="$ac_save_MAGIC_CMD"
3411 ;;
3412esac
3413fi
3414
3415MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3416if test -n "$MAGIC_CMD"; then
3417 echo "$as_me:3417: result: $MAGIC_CMD" >&5
3418echo "${ECHO_T}$MAGIC_CMD" >&6
3419else
3420 echo "$as_me:3420: result: no" >&5
3421echo "${ECHO_T}no" >&6
3422fi
3423
3424 else
3425 MAGIC_CMD=:
3426 fi
3427fi
3428
3429 fi
3430 ;;
3431esac
3432
3433if test -n "$ac_tool_prefix"; then
3434 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3435set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3436echo "$as_me:3436: checking for $ac_word" >&5
3437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3438if test "${ac_cv_prog_RANLIB+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440else
3441 if test -n "$RANLIB"; then
3442 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3443else
3444 ac_save_IFS=$IFS; IFS=$ac_path_separator
3445ac_dummy="$PATH"
3446for ac_dir in $ac_dummy; do
3447 IFS=$ac_save_IFS
3448 test -z "$ac_dir" && ac_dir=.
3449 $as_executable_p "$ac_dir/$ac_word" || continue
3450ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3451echo "$as_me:3451: found $ac_dir/$ac_word" >&5
3452break
3453done
3454
3455fi
3456fi
3457RANLIB=$ac_cv_prog_RANLIB
3458if test -n "$RANLIB"; then
3459 echo "$as_me:3459: result: $RANLIB" >&5
3460echo "${ECHO_T}$RANLIB" >&6
3461else
3462 echo "$as_me:3462: result: no" >&5
3463echo "${ECHO_T}no" >&6
3464fi
3465
3466fi
3467if test -z "$ac_cv_prog_RANLIB"; then
3468 ac_ct_RANLIB=$RANLIB
3469 # Extract the first word of "ranlib", so it can be a program name with args.
3470set dummy ranlib; ac_word=$2
3471echo "$as_me:3471: checking for $ac_word" >&5
3472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3473if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475else
3476 if test -n "$ac_ct_RANLIB"; then
3477 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3478else
3479 ac_save_IFS=$IFS; IFS=$ac_path_separator
3480ac_dummy="$PATH"
3481for ac_dir in $ac_dummy; do
3482 IFS=$ac_save_IFS
3483 test -z "$ac_dir" && ac_dir=.
3484 $as_executable_p "$ac_dir/$ac_word" || continue
3485ac_cv_prog_ac_ct_RANLIB="ranlib"
3486echo "$as_me:3486: found $ac_dir/$ac_word" >&5
3487break
3488done
3489
3490 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3491fi
3492fi
3493ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3494if test -n "$ac_ct_RANLIB"; then
3495 echo "$as_me:3495: result: $ac_ct_RANLIB" >&5
3496echo "${ECHO_T}$ac_ct_RANLIB" >&6
3497else
3498 echo "$as_me:3498: result: no" >&5
3499echo "${ECHO_T}no" >&6
3500fi
3501
3502 RANLIB=$ac_ct_RANLIB
3503else
3504 RANLIB="$ac_cv_prog_RANLIB"
3505fi
3506
3507if test -n "$ac_tool_prefix"; then
3508 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3509set dummy ${ac_tool_prefix}strip; ac_word=$2
3510echo "$as_me:3510: checking for $ac_word" >&5
3511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512if test "${ac_cv_prog_STRIP+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514else
3515 if test -n "$STRIP"; then
3516 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3517else
3518 ac_save_IFS=$IFS; IFS=$ac_path_separator
3519ac_dummy="$PATH"
3520for ac_dir in $ac_dummy; do
3521 IFS=$ac_save_IFS
3522 test -z "$ac_dir" && ac_dir=.
3523 $as_executable_p "$ac_dir/$ac_word" || continue
3524ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3525echo "$as_me:3525: found $ac_dir/$ac_word" >&5
3526break
3527done
3528
3529fi
3530fi
3531STRIP=$ac_cv_prog_STRIP
3532if test -n "$STRIP"; then
3533 echo "$as_me:3533: result: $STRIP" >&5
3534echo "${ECHO_T}$STRIP" >&6
3535else
3536 echo "$as_me:3536: result: no" >&5
3537echo "${ECHO_T}no" >&6
3538fi
3539
3540fi
3541if test -z "$ac_cv_prog_STRIP"; then
3542 ac_ct_STRIP=$STRIP
3543 # Extract the first word of "strip", so it can be a program name with args.
3544set dummy strip; ac_word=$2
3545echo "$as_me:3545: checking for $ac_word" >&5
3546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550 if test -n "$ac_ct_STRIP"; then
3551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3552else
3553 ac_save_IFS=$IFS; IFS=$ac_path_separator
3554ac_dummy="$PATH"
3555for ac_dir in $ac_dummy; do
3556 IFS=$ac_save_IFS
3557 test -z "$ac_dir" && ac_dir=.
3558 $as_executable_p "$ac_dir/$ac_word" || continue
3559ac_cv_prog_ac_ct_STRIP="strip"
3560echo "$as_me:3560: found $ac_dir/$ac_word" >&5
3561break
3562done
3563
3564 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3565fi
3566fi
3567ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3568if test -n "$ac_ct_STRIP"; then
3569 echo "$as_me:3569: result: $ac_ct_STRIP" >&5
3570echo "${ECHO_T}$ac_ct_STRIP" >&6
3571else
3572 echo "$as_me:3572: result: no" >&5
3573echo "${ECHO_T}no" >&6
3574fi
3575
3576 STRIP=$ac_ct_STRIP
3577else
3578 STRIP="$ac_cv_prog_STRIP"
3579fi
3580
3581enable_dlopen=no
3582enable_win32_dll=no
3583
3584# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3585if test "${enable_libtool_lock+set}" = set; then
3586 enableval="$enable_libtool_lock"
3587
3588fi;
3589test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3590
3591# Some flags need to be propagated to the compiler or linker for good
3592# libtool support.
3593case $host in
3594*-*-irix6*)
3595 # Find out which ABI we are using.
3596 echo '#line 3596 "configure"' > conftest.$ac_ext
3597 if { (eval echo "$as_me:3597: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>&5
3599 ac_status=$?
3600 echo "$as_me:3600: \$? = $ac_status" >&5
3601 (exit $ac_status); }; then
3602 case `/usr/bin/file conftest.$ac_objext` in
3603 *32-bit*)
3604 LD="${LD-ld} -32"
3605 ;;
3606 *N32*)
3607 LD="${LD-ld} -n32"
3608 ;;
3609 *64-bit*)
3610 LD="${LD-ld} -64"
3611 ;;
3612 esac
3613 fi
3614 rm -rf conftest*
3615 ;;
3616
3617*-*-sco3.2v5*)
3618 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3619 SAVE_CFLAGS="$CFLAGS"
3620 CFLAGS="$CFLAGS -belf"
3621 echo "$as_me:3621: checking whether the C compiler needs -belf" >&5
3622echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3623if test "${lt_cv_cc_needs_belf+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626
3627 ac_ext=c
3628ac_cpp='$CPP $CPPFLAGS'
3629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632
3633 cat >conftest.$ac_ext <<_ACEOF
3634#line 3634 "configure"
3635#include "confdefs.h"
3636
3637int
3638main ()
3639{
3640
3641 ;
3642 return 0;
3643}
3644_ACEOF
3645rm -f conftest.$ac_objext conftest$ac_exeext
3646if { (eval echo "$as_me:3646: \"$ac_link\"") >&5
3647 (eval $ac_link) 2>&5
3648 ac_status=$?
3649 echo "$as_me:3649: \$? = $ac_status" >&5
3650 (exit $ac_status); } &&
3651 { ac_try='test -s conftest$ac_exeext'
3652 { (eval echo "$as_me:3652: \"$ac_try\"") >&5
3653 (eval $ac_try) 2>&5
3654 ac_status=$?
3655 echo "$as_me:3655: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3657 lt_cv_cc_needs_belf=yes
3658else
3659 echo "$as_me: failed program was:" >&5
3660cat conftest.$ac_ext >&5
3661lt_cv_cc_needs_belf=no
3662fi
3663rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3664 ac_ext=cc
3665ac_cpp='$CXXCPP $CPPFLAGS'
3666ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3669
3670fi
3671echo "$as_me:3671: result: $lt_cv_cc_needs_belf" >&5
3672echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3673 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3674 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3675 CFLAGS="$SAVE_CFLAGS"
3676 fi
3677 ;;
3678
3679esac
3680
3681# Sed substitution that helps us do robust quoting. It backslashifies
3682# metacharacters that are still active within double-quoted strings.
3683Xsed='sed -e s/^X//'
3684sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3685
3686# Same as above, but do not quote variable references.
3687double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3688
3689# Sed substitution to delay expansion of an escaped shell variable in a
3690# double_quote_subst'ed string.
3691delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3692
3693# Constants:
3694rm="rm -f"
3695
3696# Global variables:
3697default_ofile=libtool
3698can_build_shared=yes
3699
3700# All known linkers require a `.a' archive for static linking (except M$VC,
3701# which needs '.lib').
3702libext=a
3703ltmain="$ac_aux_dir/ltmain.sh"
3704ofile="$default_ofile"
3705with_gnu_ld="$lt_cv_prog_gnu_ld"
3706need_locks="$enable_libtool_lock"
3707
3708old_CC="$CC"
3709old_CFLAGS="$CFLAGS"
3710
3711# Set sane defaults for various variables
3712test -z "$AR" && AR=ar
3713test -z "$AR_FLAGS" && AR_FLAGS=cru
3714test -z "$AS" && AS=as
3715test -z "$CC" && CC=cc
3716test -z "$DLLTOOL" && DLLTOOL=dlltool
3717test -z "$LD" && LD=ld
3718test -z "$LN_S" && LN_S="ln -s"
3719test -z "$MAGIC_CMD" && MAGIC_CMD=file
3720test -z "$NM" && NM=nm
3721test -z "$OBJDUMP" && OBJDUMP=objdump
3722test -z "$RANLIB" && RANLIB=:
3723test -z "$STRIP" && STRIP=:
3724test -z "$ac_objext" && ac_objext=o
3725
3726if test x"$host" != x"$build"; then
3727 ac_tool_prefix=${host_alias}-
3728else
3729 ac_tool_prefix=
3730fi
3731
3732# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3733case $host_os in
3734linux-gnu*) ;;
3735linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3736esac
3737
3738case $host_os in
3739aix3*)
3740 # AIX sometimes has problems with the GCC collect2 program. For some
3741 # reason, if we set the COLLECT_NAMES environment variable, the problems
3742 # vanish in a puff of smoke.
3743 if test "X${COLLECT_NAMES+set}" != Xset; then
3744 COLLECT_NAMES=
3745 export COLLECT_NAMES
3746 fi
3747 ;;
3748esac
3749
3750# Determine commands to create old-style static archives.
3751old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3752old_postinstall_cmds='chmod 644 $oldlib'
3753old_postuninstall_cmds=
3754
3755if test -n "$RANLIB"; then
3756 case $host_os in
3757 openbsd*)
3758 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3759 ;;
3760 *)