]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/configure
Suck in HEAD changes since 2.1alpha
[openldap] / contrib / ldapc++ / configure
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.
12 if 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 fi
19
20 # Check that we are running under the correct shell.
21 SHELL=${CONFIG_SHELL-/bin/sh}
22
23 case X$ECHO in
24 X*--fallback-echo)
25   # Remove one level of quotation (which was required for Make).
26   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
27   ;;
28 esac
29
30 echo=${ECHO-echo}
31 if test "X$1" = X--no-reexec; then
32   # Discard the --no-reexec flag, and continue.
33   shift
34 elif test "X$1" = X--fallback-echo; then
35   # Avoid inline document here, it may be left over
36   :
37 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
38   # Yippee, $echo works!
39   :
40 else
41   # Restart under the correct shell.
42   exec $SHELL "$0" --no-reexec ${1+"$@"}
43 fi
44
45 if test "X$1" = X--fallback-echo; then
46   # used as fallback echo
47   shift
48   cat <<EOF
49
50 EOF
51   exit 0
52 fi
53
54 # The HP-UX ksh and POSIX shell print the target directory to stdout
55 # if CDPATH is set.
56 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
57
58 if test -z "$ECHO"; then
59 if test "X${echo_test_string+set}" != Xset; then
60 # find a string as large as possible, as long as the shell can cope with it
61   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
62     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
63     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
64        echo_test_string="`eval $cmd`" &&
65        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
66     then
67       break
68     fi
69   done
70 fi
71
72 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
73    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
74    test "X$echo_testing_string" = "X$echo_test_string"; then
75   :
76 else
77   # The Solaris, AIX, and Digital Unix default echo programs unquote
78   # backslashes.  This makes it impossible to quote backslashes using
79   #   echo "$something" | sed 's/\\/\\\\/g'
80   #
81   # So, first we look for a working echo in the user's PATH.
82
83   IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
84   for dir in $PATH /usr/ucb; do
85     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
86        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
87        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
88        test "X$echo_testing_string" = "X$echo_test_string"; then
89       echo="$dir/echo"
90       break
91     fi
92   done
93   IFS="$save_ifs"
94
95   if test "X$echo" = Xecho; then
96     # We didn't find a better echo, so look for alternatives.
97     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
98        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
99        test "X$echo_testing_string" = "X$echo_test_string"; then
100       # This shell has a builtin print -r that does the trick.
101       echo='print -r'
102     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
103          test "X$CONFIG_SHELL" != X/bin/ksh; then
104       # If we have ksh, try running configure again with it.
105       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
106       export ORIGINAL_CONFIG_SHELL
107       CONFIG_SHELL=/bin/ksh
108       export CONFIG_SHELL
109       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
110     else
111       # Try using printf.
112       echo='printf %s\n'
113       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
114          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
115          test "X$echo_testing_string" = "X$echo_test_string"; then
116         # Cool, printf works
117         :
118       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
119            test "X$echo_testing_string" = 'X\t' &&
120            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
121            test "X$echo_testing_string" = "X$echo_test_string"; then
122         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
123         export CONFIG_SHELL
124         SHELL="$CONFIG_SHELL"
125         export SHELL
126         echo="$CONFIG_SHELL $0 --fallback-echo"
127       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
128            test "X$echo_testing_string" = 'X\t' &&
129            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
130            test "X$echo_testing_string" = "X$echo_test_string"; then
131         echo="$CONFIG_SHELL $0 --fallback-echo"
132       else
133         # maybe with a smaller string...
134         prev=:
135
136         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
137           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
138           then
139             break
140           fi
141           prev="$cmd"
142         done
143
144         if test "$prev" != 'sed 50q "$0"'; then
145           echo_test_string=`eval $prev`
146           export echo_test_string
147           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
148         else
149           # Oops.  We lost completely, so just stick with echo.
150           echo=echo
151         fi
152       fi
153     fi
154   fi
155 fi
156 fi
157
158 # Copy echo and quote the copy suitably for passing to libtool from
159 # the Makefile, instead of quoting the original, which is used later.
160 ECHO=$echo
161 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
162    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
163 fi
164
165 # Avoid depending upon Character Ranges.
166 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
167 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
168 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
169 as_cr_digits='0123456789'
170 as_cr_alnum=$as_cr_Letters$as_cr_digits
171
172 # Sed expression to map a string onto a valid variable name.
173 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
174
175 # Sed expression to map a string onto a valid CPP name.
176 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
177
178 # Be Bourne compatible
179 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
180   emulate sh
181   NULLCMD=:
182 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
183   set -o posix
184 fi
185
186 # Name of the executable.
187 as_me=`echo "$0" |sed 's,.*[\\/],,'`
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190   as_expr=expr
191 else
192   as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198   # We could just check for DJGPP; but this test a) works b) is more generic
199   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200   if test -f conf$$.exe; then
201     # Don't use ln at all; we don't have any links
202     as_ln_s='cp -p'
203   else
204     as_ln_s='ln -s'
205   fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207   as_ln_s=ln
208 else
209   as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Support unset when possible.
216 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
217   as_unset=unset
218 else
219   as_unset=false
220 fi
221
222 # NLS nuisances.
223 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
224 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
225 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
226 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
227 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
228 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
229 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
230 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
231
232 # IFS
233 # We need space, tab and new line, in precisely that order.
234 as_nl='
235 '
236 IFS="   $as_nl"
237
238 # CDPATH.
239 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
240
241 # Name of the host.
242 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
243 # so uname gets run too.
244 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
245
246 exec 6>&1
247
248 #
249 # Initializations.
250 #
251 ac_default_prefix=/usr/local
252 cross_compiling=no
253 subdirs=
254 MFLAGS= MAKEFLAGS=
255 SHELL=${CONFIG_SHELL-/bin/sh}
256
257 # Maximum number of lines to put in a shell here document.
258 # This variable seems obsolete.  It should probably be removed, and
259 # only ac_max_sed_lines should be used.
260 : ${ac_max_here_lines=38}
261
262 ac_unique_file="src/main.cpp"
263
264 # Initialize some variables set by options.
265 ac_init_help=
266 ac_init_version=false
267 # The variables have the same names as the options, with
268 # dashes changed to underlines.
269 cache_file=/dev/null
270 exec_prefix=NONE
271 no_create=
272 no_recursion=
273 prefix=NONE
274 program_prefix=NONE
275 program_suffix=NONE
276 program_transform_name=s,x,x,
277 silent=
278 site=
279 srcdir=
280 verbose=
281 x_includes=NONE
282 x_libraries=NONE
283
284 # Installation directory options.
285 # These are left unexpanded so users can "make install exec_prefix=/foo"
286 # and all the variables that are supposed to be based on exec_prefix
287 # by default will actually change.
288 # Use braces instead of parens because sh, perl, etc. also accept them.
289 bindir='${exec_prefix}/bin'
290 sbindir='${exec_prefix}/sbin'
291 libexecdir='${exec_prefix}/libexec'
292 datadir='${prefix}/share'
293 sysconfdir='${prefix}/etc'
294 sharedstatedir='${prefix}/com'
295 localstatedir='${prefix}/var'
296 libdir='${exec_prefix}/lib'
297 includedir='${prefix}/include'
298 oldincludedir='/usr/include'
299 infodir='${prefix}/info'
300 mandir='${prefix}/man'
301
302 # Identity of this package.
303 PACKAGE_NAME=
304 PACKAGE_TARNAME=
305 PACKAGE_VERSION=
306 PACKAGE_STRING=
307 PACKAGE_BUGREPORT=
308
309 ac_prev=
310 for ac_option
311 do
312   # If the previous option needs an argument, assign it.
313   if test -n "$ac_prev"; then
314     eval "$ac_prev=\$ac_option"
315     ac_prev=
316     continue
317   fi
318
319   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
320
321   # Accept the important Cygnus configure options, so we can diagnose typos.
322
323   case $ac_option in
324
325   -bindir | --bindir | --bindi | --bind | --bin | --bi)
326     ac_prev=bindir ;;
327   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
328     bindir=$ac_optarg ;;
329
330   -build | --build | --buil | --bui | --bu)
331     ac_prev=build_alias ;;
332   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
333     build_alias=$ac_optarg ;;
334
335   -cache-file | --cache-file | --cache-fil | --cache-fi \
336   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
337     ac_prev=cache_file ;;
338   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
339   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
340     cache_file=$ac_optarg ;;
341
342   --config-cache | -C)
343     cache_file=config.cache ;;
344
345   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
346     ac_prev=datadir ;;
347   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
348   | --da=*)
349     datadir=$ac_optarg ;;
350
351   -disable-* | --disable-*)
352     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
353     # Reject names that are not valid shell variable names.
354     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
355       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
356    { (exit 1); exit 1; }; }
357     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
358     eval "enable_$ac_feature=no" ;;
359
360   -enable-* | --enable-*)
361     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
362     # Reject names that are not valid shell variable names.
363     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
364       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
365    { (exit 1); exit 1; }; }
366     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
367     case $ac_option in
368       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
369       *) ac_optarg=yes ;;
370     esac
371     eval "enable_$ac_feature='$ac_optarg'" ;;
372
373   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
374   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
375   | --exec | --exe | --ex)
376     ac_prev=exec_prefix ;;
377   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
378   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
379   | --exec=* | --exe=* | --ex=*)
380     exec_prefix=$ac_optarg ;;
381
382   -gas | --gas | --ga | --g)
383     # Obsolete; use --with-gas.
384     with_gas=yes ;;
385
386   -help | --help | --hel | --he | -h)
387     ac_init_help=long ;;
388   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
389     ac_init_help=recursive ;;
390   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
391     ac_init_help=short ;;
392
393   -host | --host | --hos | --ho)
394     ac_prev=host_alias ;;
395   -host=* | --host=* | --hos=* | --ho=*)
396     host_alias=$ac_optarg ;;
397
398   -includedir | --includedir | --includedi | --included | --include \
399   | --includ | --inclu | --incl | --inc)
400     ac_prev=includedir ;;
401   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
402   | --includ=* | --inclu=* | --incl=* | --inc=*)
403     includedir=$ac_optarg ;;
404
405   -infodir | --infodir | --infodi | --infod | --info | --inf)
406     ac_prev=infodir ;;
407   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
408     infodir=$ac_optarg ;;
409
410   -libdir | --libdir | --libdi | --libd)
411     ac_prev=libdir ;;
412   -libdir=* | --libdir=* | --libdi=* | --libd=*)
413     libdir=$ac_optarg ;;
414
415   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
416   | --libexe | --libex | --libe)
417     ac_prev=libexecdir ;;
418   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
419   | --libexe=* | --libex=* | --libe=*)
420     libexecdir=$ac_optarg ;;
421
422   -localstatedir | --localstatedir | --localstatedi | --localstated \
423   | --localstate | --localstat | --localsta | --localst \
424   | --locals | --local | --loca | --loc | --lo)
425     ac_prev=localstatedir ;;
426   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
427   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
428   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
429     localstatedir=$ac_optarg ;;
430
431   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
432     ac_prev=mandir ;;
433   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
434     mandir=$ac_optarg ;;
435
436   -nfp | --nfp | --nf)
437     # Obsolete; use --without-fp.
438     with_fp=no ;;
439
440   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441   | --no-cr | --no-c)
442     no_create=yes ;;
443
444   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
446     no_recursion=yes ;;
447
448   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
449   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
450   | --oldin | --oldi | --old | --ol | --o)
451     ac_prev=oldincludedir ;;
452   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
453   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
454   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
455     oldincludedir=$ac_optarg ;;
456
457   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
458     ac_prev=prefix ;;
459   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
460     prefix=$ac_optarg ;;
461
462   -program-prefix | --program-prefix | --program-prefi | --program-pref \
463   | --program-pre | --program-pr | --program-p)
464     ac_prev=program_prefix ;;
465   -program-prefix=* | --program-prefix=* | --program-prefi=* \
466   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
467     program_prefix=$ac_optarg ;;
468
469   -program-suffix | --program-suffix | --program-suffi | --program-suff \
470   | --program-suf | --program-su | --program-s)
471     ac_prev=program_suffix ;;
472   -program-suffix=* | --program-suffix=* | --program-suffi=* \
473   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
474     program_suffix=$ac_optarg ;;
475
476   -program-transform-name | --program-transform-name \
477   | --program-transform-nam | --program-transform-na \
478   | --program-transform-n | --program-transform- \
479   | --program-transform | --program-transfor \
480   | --program-transfo | --program-transf \
481   | --program-trans | --program-tran \
482   | --progr-tra | --program-tr | --program-t)
483     ac_prev=program_transform_name ;;
484   -program-transform-name=* | --program-transform-name=* \
485   | --program-transform-nam=* | --program-transform-na=* \
486   | --program-transform-n=* | --program-transform-=* \
487   | --program-transform=* | --program-transfor=* \
488   | --program-transfo=* | --program-transf=* \
489   | --program-trans=* | --program-tran=* \
490   | --progr-tra=* | --program-tr=* | --program-t=*)
491     program_transform_name=$ac_optarg ;;
492
493   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
494   | -silent | --silent | --silen | --sile | --sil)
495     silent=yes ;;
496
497   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
498     ac_prev=sbindir ;;
499   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
500   | --sbi=* | --sb=*)
501     sbindir=$ac_optarg ;;
502
503   -sharedstatedir | --sharedstatedir | --sharedstatedi \
504   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
505   | --sharedst | --shareds | --shared | --share | --shar \
506   | --sha | --sh)
507     ac_prev=sharedstatedir ;;
508   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
509   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
510   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
511   | --sha=* | --sh=*)
512     sharedstatedir=$ac_optarg ;;
513
514   -site | --site | --sit)
515     ac_prev=site ;;
516   -site=* | --site=* | --sit=*)
517     site=$ac_optarg ;;
518
519   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
520     ac_prev=srcdir ;;
521   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
522     srcdir=$ac_optarg ;;
523
524   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
525   | --syscon | --sysco | --sysc | --sys | --sy)
526     ac_prev=sysconfdir ;;
527   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
528   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
529     sysconfdir=$ac_optarg ;;
530
531   -target | --target | --targe | --targ | --tar | --ta | --t)
532     ac_prev=target_alias ;;
533   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
534     target_alias=$ac_optarg ;;
535
536   -v | -verbose | --verbose | --verbos | --verbo | --verb)
537     verbose=yes ;;
538
539   -version | --version | --versio | --versi | --vers | -V)
540     ac_init_version=: ;;
541
542   -with-* | --with-*)
543     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
544     # Reject names that are not valid shell variable names.
545     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
546       { echo "$as_me: error: invalid package name: $ac_package" >&2
547    { (exit 1); exit 1; }; }
548     ac_package=`echo $ac_package| sed 's/-/_/g'`
549     case $ac_option in
550       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
551       *) ac_optarg=yes ;;
552     esac
553     eval "with_$ac_package='$ac_optarg'" ;;
554
555   -without-* | --without-*)
556     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
557     # Reject names that are not valid shell variable names.
558     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559       { echo "$as_me: error: invalid package name: $ac_package" >&2
560    { (exit 1); exit 1; }; }
561     ac_package=`echo $ac_package | sed 's/-/_/g'`
562     eval "with_$ac_package=no" ;;
563
564   --x)
565     # Obsolete; use --with-x.
566     with_x=yes ;;
567
568   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
569   | --x-incl | --x-inc | --x-in | --x-i)
570     ac_prev=x_includes ;;
571   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
572   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
573     x_includes=$ac_optarg ;;
574
575   -x-libraries | --x-libraries | --x-librarie | --x-librari \
576   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
577     ac_prev=x_libraries ;;
578   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
579   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
580     x_libraries=$ac_optarg ;;
581
582   -*) { echo "$as_me: error: unrecognized option: $ac_option
583 Try \`$0 --help' for more information." >&2
584    { (exit 1); exit 1; }; }
585     ;;
586
587   *=*)
588     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
592    { (exit 1); exit 1; }; }
593     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
594     eval "$ac_envvar='$ac_optarg'"
595     export $ac_envvar ;;
596
597   *)
598     # FIXME: should be removed in autoconf 3.0.
599     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
600     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
601       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
602     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
603     ;;
604
605   esac
606 done
607
608 if test -n "$ac_prev"; then
609   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
610   { echo "$as_me: error: missing argument to $ac_option" >&2
611    { (exit 1); exit 1; }; }
612 fi
613
614 # Be sure to have absolute paths.
615 for ac_var in exec_prefix prefix
616 do
617   eval ac_val=$`echo $ac_var`
618   case $ac_val in
619     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
620     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
621    { (exit 1); exit 1; }; };;
622   esac
623 done
624
625 # Be sure to have absolute paths.
626 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
627               localstatedir libdir includedir oldincludedir infodir mandir
628 do
629   eval ac_val=$`echo $ac_var`
630   case $ac_val in
631     [\\/$]* | ?:[\\/]* ) ;;
632     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
633    { (exit 1); exit 1; }; };;
634   esac
635 done
636
637 # There might be people who depend on the old broken behavior: `$host'
638 # used to hold the argument of --host etc.
639 build=$build_alias
640 host=$host_alias
641 target=$target_alias
642
643 # FIXME: should be removed in autoconf 3.0.
644 if test "x$host_alias" != x; then
645   if test "x$build_alias" = x; then
646     cross_compiling=maybe
647     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
648     If a cross compiler is detected then cross compile mode will be used." >&2
649   elif test "x$build_alias" != "x$host_alias"; then
650     cross_compiling=yes
651   fi
652 fi
653
654 ac_tool_prefix=
655 test -n "$host_alias" && ac_tool_prefix=$host_alias-
656
657 test "$silent" = yes && exec 6>/dev/null
658
659 # Find the source files, if location was not specified.
660 if test -z "$srcdir"; then
661   ac_srcdir_defaulted=yes
662   # Try the directory containing this script, then its parent.
663   ac_prog=$0
664   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
665   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
666   srcdir=$ac_confdir
667   if test ! -r $srcdir/$ac_unique_file; then
668     srcdir=..
669   fi
670 else
671   ac_srcdir_defaulted=no
672 fi
673 if test ! -r $srcdir/$ac_unique_file; then
674   if test "$ac_srcdir_defaulted" = yes; then
675     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
676    { (exit 1); exit 1; }; }
677   else
678     { echo "$as_me: error: cannot find sources in $srcdir" >&2
679    { (exit 1); exit 1; }; }
680   fi
681 fi
682 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
683 ac_env_build_alias_set=${build_alias+set}
684 ac_env_build_alias_value=$build_alias
685 ac_cv_env_build_alias_set=${build_alias+set}
686 ac_cv_env_build_alias_value=$build_alias
687 ac_env_host_alias_set=${host_alias+set}
688 ac_env_host_alias_value=$host_alias
689 ac_cv_env_host_alias_set=${host_alias+set}
690 ac_cv_env_host_alias_value=$host_alias
691 ac_env_target_alias_set=${target_alias+set}
692 ac_env_target_alias_value=$target_alias
693 ac_cv_env_target_alias_set=${target_alias+set}
694 ac_cv_env_target_alias_value=$target_alias
695 ac_env_CXX_set=${CXX+set}
696 ac_env_CXX_value=$CXX
697 ac_cv_env_CXX_set=${CXX+set}
698 ac_cv_env_CXX_value=$CXX
699 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
700 ac_env_CXXFLAGS_value=$CXXFLAGS
701 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
702 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
703 ac_env_LDFLAGS_set=${LDFLAGS+set}
704 ac_env_LDFLAGS_value=$LDFLAGS
705 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
706 ac_cv_env_LDFLAGS_value=$LDFLAGS
707 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
708 ac_env_CPPFLAGS_value=$CPPFLAGS
709 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
710 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
711 ac_env_CC_set=${CC+set}
712 ac_env_CC_value=$CC
713 ac_cv_env_CC_set=${CC+set}
714 ac_cv_env_CC_value=$CC
715 ac_env_CFLAGS_set=${CFLAGS+set}
716 ac_env_CFLAGS_value=$CFLAGS
717 ac_cv_env_CFLAGS_set=${CFLAGS+set}
718 ac_cv_env_CFLAGS_value=$CFLAGS
719 ac_env_CPP_set=${CPP+set}
720 ac_env_CPP_value=$CPP
721 ac_cv_env_CPP_set=${CPP+set}
722 ac_cv_env_CPP_value=$CPP
723
724 #
725 # Report the --help message.
726 #
727 if test "$ac_init_help" = "long"; then
728   # Omit some internal or obsolete options to make the list less imposing.
729   # This message is too long to be a string in the A/UX 3.1 sh.
730   cat <<EOF
731 \`configure' configures this package to adapt to many kinds of systems.
732
733 Usage: $0 [OPTION]... [VAR=VALUE]...
734
735 To assign environment variables (e.g., CC, CFLAGS...), specify them as
736 VAR=VALUE.  See below for descriptions of some of the useful variables.
737
738 Defaults for the options are specified in brackets.
739
740 Configuration:
741   -h, --help              display this help and exit
742       --help=short        display options specific to this package
743       --help=recursive    display the short help of all the included packages
744   -V, --version           display version information and exit
745   -q, --quiet, --silent   do not print \`checking...' messages
746       --cache-file=FILE   cache test results in FILE [disabled]
747   -C, --config-cache      alias for \`--cache-file=config.cache'
748   -n, --no-create         do not create output files
749       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
750
751 EOF
752
753   cat <<EOF
754 Installation directories:
755   --prefix=PREFIX         install architecture-independent files in PREFIX
756                           [$ac_default_prefix]
757   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
758                           [PREFIX]
759
760 By default, \`make install' will install all the files in
761 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
762 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
763 for instance \`--prefix=\$HOME'.
764
765 For better control, use the options below.
766
767 Fine tuning of the installation directories:
768   --bindir=DIR           user executables [EPREFIX/bin]
769   --sbindir=DIR          system admin executables [EPREFIX/sbin]
770   --libexecdir=DIR       program executables [EPREFIX/libexec]
771   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
772   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
773   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
774   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
775   --libdir=DIR           object code libraries [EPREFIX/lib]
776   --includedir=DIR       C header files [PREFIX/include]
777   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
778   --infodir=DIR          info documentation [PREFIX/info]
779   --mandir=DIR           man documentation [PREFIX/man]
780 EOF
781
782   cat <<\EOF
783
784 Program names:
785   --program-prefix=PREFIX            prepend PREFIX to installed program names
786   --program-suffix=SUFFIX            append SUFFIX to installed program names
787   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
788
789 System types:
790   --build=BUILD     configure for building on BUILD [guessed]
791   --host=HOST       build programs to run on HOST [BUILD]
792 EOF
793 fi
794
795 if test -n "$ac_init_help"; then
796
797   cat <<\EOF
798
799 Optional Features:
800   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
801   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
802   --enable-shared=PKGS  build shared libraries default=yes
803   --enable-static=PKGS  build static libraries default=yes
804   --enable-fast-install=PKGS  optimize for fast installation default=yes
805   --disable-libtool-lock  avoid locking (might break parallel builds)
806 --enable-debug
807
808 Optional 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   --with-libldap=DIR          Path to the libldap library /usr/local/lib
814   --with-ldap-includes=DIR    Path to the libldap include files /usr/local/include
815
816 Some influential environment variables:
817   CXX         C++ compiler command
818   CXXFLAGS    C++ compiler flags
819   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
820               nonstandard directory <lib dir>
821   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
822               headers in a nonstandard directory <include dir>
823   CC          C compiler command
824   CFLAGS      C compiler flags
825   CPP         C preprocessor
826
827 Use these variables to override the choices made by `configure' or to help
828 it to find libraries and programs with nonstandard names/locations.
829
830 EOF
831 fi
832
833 if test "$ac_init_help" = "recursive"; then
834   # If there are subdirs, report their specific --help.
835   ac_popdir=`pwd`
836   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
837     cd $ac_subdir
838     # A "../" for each directory in /$ac_subdir.
839     ac_dots=`echo $ac_subdir |
840              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
841
842     case $srcdir in
843     .) # No --srcdir option.  We are building in place.
844       ac_sub_srcdir=$srcdir ;;
845     [\\/]* | ?:[\\/]* ) # Absolute path.
846       ac_sub_srcdir=$srcdir/$ac_subdir ;;
847     *) # Relative path.
848       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
849     esac
850
851     # Check for guested configure; otherwise get Cygnus style configure.
852     if test -f $ac_sub_srcdir/configure.gnu; then
853       echo
854       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
855     elif test -f $ac_sub_srcdir/configure; then
856       echo
857       $SHELL $ac_sub_srcdir/configure  --help=recursive
858     elif test -f $ac_sub_srcdir/configure.ac ||
859            test -f $ac_sub_srcdir/configure.in; then
860       echo
861       $ac_configure --help
862     else
863       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
864     fi
865     cd $ac_popdir
866   done
867 fi
868
869 test -n "$ac_init_help" && exit 0
870 if $ac_init_version; then
871   cat <<\EOF
872
873 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
874 Free Software Foundation, Inc.
875 This configure script is free software; the Free Software Foundation
876 gives unlimited permission to copy, distribute and modify it.
877 EOF
878   exit 0
879 fi
880 exec 5>config.log
881 cat >&5 <<EOF
882 This file contains any messages produced by compilers while
883 running configure, to aid debugging if configure makes a mistake.
884
885 It was created by $as_me, which was
886 generated by GNU Autoconf 2.52.  Invocation command line was
887
888   $ $0 $@
889
890 EOF
891 {
892 cat <<_ASUNAME
893 ## ---------- ##
894 ## Platform.  ##
895 ## ---------- ##
896
897 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
898 uname -m = `(uname -m) 2>/dev/null || echo unknown`
899 uname -r = `(uname -r) 2>/dev/null || echo unknown`
900 uname -s = `(uname -s) 2>/dev/null || echo unknown`
901 uname -v = `(uname -v) 2>/dev/null || echo unknown`
902
903 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
904 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
905
906 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
907 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
908 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
909 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
910 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
911 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
912 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
913
914 PATH = $PATH
915
916 _ASUNAME
917 } >&5
918
919 cat >&5 <<EOF
920 ## ------------ ##
921 ## Core tests.  ##
922 ## ------------ ##
923
924 EOF
925
926 # Keep a trace of the command line.
927 # Strip out --no-create and --no-recursion so they do not pile up.
928 # Also quote any args containing shell meta-characters.
929 ac_configure_args=
930 ac_sep=
931 for ac_arg
932 do
933   case $ac_arg in
934   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
935   | --no-cr | --no-c) ;;
936   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
937   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
938   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
939     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
940     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
941     ac_sep=" " ;;
942   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
943      ac_sep=" " ;;
944   esac
945   # Get rid of the leading space.
946 done
947
948 # When interrupted or exit'd, cleanup temporary files, and complete
949 # config.log.  We remove comments because anyway the quotes in there
950 # would cause problems or look ugly.
951 trap 'exit_status=$?
952   # Save into config.log some information that might help in debugging.
953   echo >&5
954   echo "## ----------------- ##" >&5
955   echo "## Cache variables.  ##" >&5
956   echo "## ----------------- ##" >&5
957   echo >&5
958   # The following way of writing the cache mishandles newlines in values,
959 {
960   (set) 2>&1 |
961     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
962     *ac_space=\ *)
963       sed -n \
964         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
965           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
966       ;;
967     *)
968       sed -n \
969         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
970       ;;
971     esac;
972 } >&5
973   sed "/^$/d" confdefs.h >conftest.log
974   if test -s conftest.log; then
975     echo >&5
976     echo "## ------------ ##" >&5
977     echo "## confdefs.h.  ##" >&5
978     echo "## ------------ ##" >&5
979     echo >&5
980     cat conftest.log >&5
981   fi
982   (echo; echo) >&5
983   test "$ac_signal" != 0 &&
984     echo "$as_me: caught signal $ac_signal" >&5
985   echo "$as_me: exit $exit_status" >&5
986   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
987     exit $exit_status
988      ' 0
989 for ac_signal in 1 2 13 15; do
990   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
991 done
992 ac_signal=0
993
994 # confdefs.h avoids OS command line length limits that DEFS can exceed.
995 rm -rf conftest* confdefs.h
996 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
997 echo >confdefs.h
998
999 # Let the site file select an alternate cache file if it wants to.
1000 # Prefer explicitly selected file to automatically selected ones.
1001 if test -z "$CONFIG_SITE"; then
1002   if test "x$prefix" != xNONE; then
1003     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1004   else
1005     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1006   fi
1007 fi
1008 for ac_site_file in $CONFIG_SITE; do
1009   if test -r "$ac_site_file"; then
1010     { echo "$as_me:1010: loading site script $ac_site_file" >&5
1011 echo "$as_me: loading site script $ac_site_file" >&6;}
1012     cat "$ac_site_file" >&5
1013     . "$ac_site_file"
1014   fi
1015 done
1016
1017 if test -r "$cache_file"; then
1018   # Some versions of bash will fail to source /dev/null (special
1019   # files actually), so we avoid doing that.
1020   if test -f "$cache_file"; then
1021     { echo "$as_me:1021: loading cache $cache_file" >&5
1022 echo "$as_me: loading cache $cache_file" >&6;}
1023     case $cache_file in
1024       [\\/]* | ?:[\\/]* ) . $cache_file;;
1025       *)                      . ./$cache_file;;
1026     esac
1027   fi
1028 else
1029   { echo "$as_me:1029: creating cache $cache_file" >&5
1030 echo "$as_me: creating cache $cache_file" >&6;}
1031   >$cache_file
1032 fi
1033
1034 # Check that the precious variables saved in the cache have kept the same
1035 # value.
1036 ac_cache_corrupted=false
1037 for ac_var in `(set) 2>&1 |
1038                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1039   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1040   eval ac_new_set=\$ac_env_${ac_var}_set
1041   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1042   eval ac_new_val="\$ac_env_${ac_var}_value"
1043   case $ac_old_set,$ac_new_set in
1044     set,)
1045       { echo "$as_me:1045: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1046 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1047       ac_cache_corrupted=: ;;
1048     ,set)
1049       { echo "$as_me:1049: error: \`$ac_var' was not set in the previous run" >&5
1050 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1051       ac_cache_corrupted=: ;;
1052     ,);;
1053     *)
1054       if test "x$ac_old_val" != "x$ac_new_val"; then
1055         { echo "$as_me:1055: error: \`$ac_var' has changed since the previous run:" >&5
1056 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1057         { echo "$as_me:1057:   former value:  $ac_old_val" >&5
1058 echo "$as_me:   former value:  $ac_old_val" >&2;}
1059         { echo "$as_me:1059:   current value: $ac_new_val" >&5
1060 echo "$as_me:   current value: $ac_new_val" >&2;}
1061         ac_cache_corrupted=:
1062       fi;;
1063   esac
1064   # Pass precious variables to config.status.  It doesn't matter if
1065   # we pass some twice (in addition to the command line arguments).
1066   if test "$ac_new_set" = set; then
1067     case $ac_new_val in
1068     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1070       ac_configure_args="$ac_configure_args '$ac_arg'"
1071       ;;
1072     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1073        ;;
1074     esac
1075   fi
1076 done
1077 if $ac_cache_corrupted; then
1078   { echo "$as_me:1078: error: changes in the environment can compromise the build" >&5
1079 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1080   { { echo "$as_me:1080: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1081 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1082    { (exit 1); exit 1; }; }
1083 fi
1084
1085 ac_ext=c
1086 ac_cpp='$CPP $CPPFLAGS'
1087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1090
1091 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1092   *c*,-n*) ECHO_N= ECHO_C='
1093 ' ECHO_T='      ' ;;
1094   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1095   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1096 esac
1097 echo "#! $SHELL" >conftest.sh
1098 echo  "exit 0"   >>conftest.sh
1099 chmod +x conftest.sh
1100 if { (echo "$as_me:1100: PATH=\".;.\"; conftest.sh") >&5
1101   (PATH=".;."; conftest.sh) 2>&5
1102   ac_status=$?
1103   echo "$as_me:1103: \$? = $ac_status" >&5
1104   (exit $ac_status); }; then
1105   ac_path_separator=';'
1106 else
1107   ac_path_separator=:
1108 fi
1109 PATH_SEPARATOR="$ac_path_separator"
1110 rm -f conftest.sh
1111
1112 ac_aux_dir=
1113 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1114   if test -f $ac_dir/install-sh; then
1115     ac_aux_dir=$ac_dir
1116     ac_install_sh="$ac_aux_dir/install-sh -c"
1117     break
1118   elif test -f $ac_dir/install.sh; then
1119     ac_aux_dir=$ac_dir
1120     ac_install_sh="$ac_aux_dir/install.sh -c"
1121     break
1122   elif test -f $ac_dir/shtool; then
1123     ac_aux_dir=$ac_dir
1124     ac_install_sh="$ac_aux_dir/shtool install -c"
1125     break
1126   fi
1127 done
1128 if test -z "$ac_aux_dir"; then
1129   { { echo "$as_me:1129: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1130 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1131    { (exit 1); exit 1; }; }
1132 fi
1133 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1134 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1135 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1136
1137 # Find a good install program.  We prefer a C program (faster),
1138 # so one script is as good as another.  But avoid the broken or
1139 # incompatible versions:
1140 # SysV /etc/install, /usr/sbin/install
1141 # SunOS /usr/etc/install
1142 # IRIX /sbin/install
1143 # AIX /bin/install
1144 # AmigaOS /C/install, which installs bootblocks on floppy discs
1145 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1146 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1147 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1148 # ./install, which can be erroneously created by make from ./install.sh.
1149 echo "$as_me:1149: checking for a BSD compatible install" >&5
1150 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1151 if test -z "$INSTALL"; then
1152 if test "${ac_cv_path_install+set}" = set; then
1153   echo $ECHO_N "(cached) $ECHO_C" >&6
1154 else
1155     ac_save_IFS=$IFS; IFS=$ac_path_separator
1156   for ac_dir in $PATH; do
1157     IFS=$ac_save_IFS
1158     # Account for people who put trailing slashes in PATH elements.
1159     case $ac_dir/ in
1160     / | ./ | .// | /cC/* \
1161     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1162     | /usr/ucb/* ) ;;
1163     *)
1164       # OSF1 and SCO ODT 3.0 have their own names for install.
1165       # Don't use installbsd from OSF since it installs stuff as root
1166       # by default.
1167       for ac_prog in ginstall scoinst install; do
1168         if $as_executable_p "$ac_dir/$ac_prog"; then
1169           if test $ac_prog = install &&
1170             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1171             # AIX install.  It has an incompatible calling convention.
1172             :
1173           elif test $ac_prog = install &&
1174             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1175             # program-specific install script used by HP pwplus--don't use.
1176             :
1177           else
1178             ac_cv_path_install="$ac_dir/$ac_prog -c"
1179             break 2
1180           fi
1181         fi
1182       done
1183       ;;
1184     esac
1185   done
1186
1187 fi
1188   if test "${ac_cv_path_install+set}" = set; then
1189     INSTALL=$ac_cv_path_install
1190   else
1191     # As a last resort, use the slow shell script.  We don't cache a
1192     # path for INSTALL within a source directory, because that will
1193     # break other packages using the cache if that directory is
1194     # removed, or if the path is relative.
1195     INSTALL=$ac_install_sh
1196   fi
1197 fi
1198 echo "$as_me:1198: result: $INSTALL" >&5
1199 echo "${ECHO_T}$INSTALL" >&6
1200
1201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1202 # It thinks the first close brace ends the variable substitution.
1203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1204
1205 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1206
1207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1208
1209 echo "$as_me:1209: checking whether build environment is sane" >&5
1210 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1211 # Just in case
1212 sleep 1
1213 echo timestamp > conftestfile
1214 # Do `set' in a subshell so we don't clobber the current shell's
1215 # arguments.  Must try -L first in case configure is actually a
1216 # symlink; some systems play weird games with the mod time of symlinks
1217 # (eg FreeBSD returns the mod time of the symlink's containing
1218 # directory).
1219 if (
1220    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1221    if test "$*" = "X"; then
1222       # -L didn't work.
1223       set X `ls -t $srcdir/configure conftestfile`
1224    fi
1225    if test "$*" != "X $srcdir/configure conftestfile" \
1226       && test "$*" != "X conftestfile $srcdir/configure"; then
1227
1228       # If neither matched, then we have a broken ls.  This can happen
1229       # if, for instance, CONFIG_SHELL is bash and it inherits a
1230       # broken ls alias from the environment.  This has actually
1231       # happened.  Such a system could not be considered "sane".
1232       { { echo "$as_me:1232: error: ls -t appears to fail.  Make sure there is not a broken
1233 alias in your environment" >&5
1234 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1235 alias in your environment" >&2;}
1236    { (exit 1); exit 1; }; }
1237    fi
1238
1239    test "$2" = conftestfile
1240    )
1241 then
1242    # Ok.
1243    :
1244 else
1245    { { echo "$as_me:1245: error: newly created file is older than distributed files!
1246 Check your system clock" >&5
1247 echo "$as_me: error: newly created file is older than distributed files!
1248 Check your system clock" >&2;}
1249    { (exit 1); exit 1; }; }
1250 fi
1251 rm -f conftest*
1252 echo "$as_me:1252: result: yes" >&5
1253 echo "${ECHO_T}yes" >&6
1254 test "$program_prefix" != NONE &&
1255   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1256 # Use a double $ so make ignores it.
1257 test "$program_suffix" != NONE &&
1258   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1259 # Double any \ or $.  echo might interpret backslashes.
1260 # By default was `s,x,x', remove it if useless.
1261 cat <<\_ACEOF >conftest.sed
1262 s/[\\$]/&&/g;s/;s,x,x,$//
1263 _ACEOF
1264 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1265 rm conftest.sed
1266
1267 echo "$as_me:1267: checking whether ${MAKE-make} sets \${MAKE}" >&5
1268 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1269 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1270 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1271   echo $ECHO_N "(cached) $ECHO_C" >&6
1272 else
1273   cat >conftest.make <<\EOF
1274 all:
1275         @echo 'ac_maketemp="${MAKE}"'
1276 EOF
1277 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1278 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1279 if test -n "$ac_maketemp"; then
1280   eval ac_cv_prog_make_${ac_make}_set=yes
1281 else
1282   eval ac_cv_prog_make_${ac_make}_set=no
1283 fi
1284 rm -f conftest.make
1285 fi
1286 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1287   echo "$as_me:1287: result: yes" >&5
1288 echo "${ECHO_T}yes" >&6
1289   SET_MAKE=
1290 else
1291   echo "$as_me:1291: result: no" >&5
1292 echo "${ECHO_T}no" >&6
1293   SET_MAKE="MAKE=${MAKE-make}"
1294 fi
1295
1296 PACKAGE=main
1297
1298 VERSION=0.0.1
1299
1300 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1301   { { echo "$as_me:1301: error: source directory already configured; run \"make distclean\" there first" >&5
1302 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1303    { (exit 1); exit 1; }; }
1304 fi
1305
1306 cat >>confdefs.h <<EOF
1307 #define PACKAGE "$PACKAGE"
1308 EOF
1309
1310 cat >>confdefs.h <<EOF
1311 #define VERSION "$VERSION"
1312 EOF
1313
1314 missing_dir=`cd $ac_aux_dir && pwd`
1315 echo "$as_me:1315: checking for working aclocal" >&5
1316 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1317 # Run test in a subshell; some versions of sh will print an error if
1318 # an executable is not found, even if stderr is redirected.
1319 # Redirect stdin to placate older versions of autoconf.  Sigh.
1320 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1321    ACLOCAL=aclocal
1322    echo "$as_me:1322: result: found" >&5
1323 echo "${ECHO_T}found" >&6
1324 else
1325    ACLOCAL="$missing_dir/missing aclocal"
1326    echo "$as_me:1326: result: missing" >&5
1327 echo "${ECHO_T}missing" >&6
1328 fi
1329
1330 echo "$as_me:1330: checking for working autoconf" >&5
1331 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1332 # Run test in a subshell; some versions of sh will print an error if
1333 # an executable is not found, even if stderr is redirected.
1334 # Redirect stdin to placate older versions of autoconf.  Sigh.
1335 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1336    AUTOCONF=autoconf
1337    echo "$as_me:1337: result: found" >&5
1338 echo "${ECHO_T}found" >&6
1339 else
1340    AUTOCONF="$missing_dir/missing autoconf"
1341    echo "$as_me:1341: result: missing" >&5
1342 echo "${ECHO_T}missing" >&6
1343 fi
1344
1345 echo "$as_me:1345: checking for working automake" >&5
1346 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1347 # Run test in a subshell; some versions of sh will print an error if
1348 # an executable is not found, even if stderr is redirected.
1349 # Redirect stdin to placate older versions of autoconf.  Sigh.
1350 if (automake --version) < /dev/null > /dev/null 2>&1; then
1351    AUTOMAKE=automake
1352    echo "$as_me:1352: result: found" >&5
1353 echo "${ECHO_T}found" >&6
1354 else
1355    AUTOMAKE="$missing_dir/missing automake"
1356    echo "$as_me:1356: result: missing" >&5
1357 echo "${ECHO_T}missing" >&6
1358 fi
1359
1360 echo "$as_me:1360: checking for working autoheader" >&5
1361 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1362 # Run test in a subshell; some versions of sh will print an error if
1363 # an executable is not found, even if stderr is redirected.
1364 # Redirect stdin to placate older versions of autoconf.  Sigh.
1365 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1366    AUTOHEADER=autoheader
1367    echo "$as_me:1367: result: found" >&5
1368 echo "${ECHO_T}found" >&6
1369 else
1370    AUTOHEADER="$missing_dir/missing autoheader"
1371    echo "$as_me:1371: result: missing" >&5
1372 echo "${ECHO_T}missing" >&6
1373 fi
1374
1375 echo "$as_me:1375: checking for working makeinfo" >&5
1376 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1377 # Run test in a subshell; some versions of sh will print an error if
1378 # an executable is not found, even if stderr is redirected.
1379 # Redirect stdin to placate older versions of autoconf.  Sigh.
1380 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1381    MAKEINFO=makeinfo
1382    echo "$as_me:1382: result: found" >&5
1383 echo "${ECHO_T}found" >&6
1384 else
1385    MAKEINFO="$missing_dir/missing makeinfo"
1386    echo "$as_me:1386: result: missing" >&5
1387 echo "${ECHO_T}missing" >&6
1388 fi
1389
1390 ac_config_headers="$ac_config_headers src/config.h"
1391
1392 ac_config_commands="$ac_config_commands default-1"
1393
1394 # Find a good install program.  We prefer a C program (faster),
1395 # so one script is as good as another.  But avoid the broken or
1396 # incompatible versions:
1397 # SysV /etc/install, /usr/sbin/install
1398 # SunOS /usr/etc/install
1399 # IRIX /sbin/install
1400 # AIX /bin/install
1401 # AmigaOS /C/install, which installs bootblocks on floppy discs
1402 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1403 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1404 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1405 # ./install, which can be erroneously created by make from ./install.sh.
1406 echo "$as_me:1406: checking for a BSD compatible install" >&5
1407 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1408 if test -z "$INSTALL"; then
1409 if test "${ac_cv_path_install+set}" = set; then
1410   echo $ECHO_N "(cached) $ECHO_C" >&6
1411 else
1412     ac_save_IFS=$IFS; IFS=$ac_path_separator
1413   for ac_dir in $PATH; do
1414     IFS=$ac_save_IFS
1415     # Account for people who put trailing slashes in PATH elements.
1416     case $ac_dir/ in
1417     / | ./ | .// | /cC/* \
1418     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1419     | /usr/ucb/* ) ;;
1420     *)
1421       # OSF1 and SCO ODT 3.0 have their own names for install.
1422       # Don't use installbsd from OSF since it installs stuff as root
1423       # by default.
1424       for ac_prog in ginstall scoinst install; do
1425         if $as_executable_p "$ac_dir/$ac_prog"; then
1426           if test $ac_prog = install &&
1427             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1428             # AIX install.  It has an incompatible calling convention.
1429             :
1430           elif test $ac_prog = install &&
1431             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1432             # program-specific install script used by HP pwplus--don't use.
1433             :
1434           else
1435             ac_cv_path_install="$ac_dir/$ac_prog -c"
1436             break 2
1437           fi
1438         fi
1439       done
1440       ;;
1441     esac
1442   done
1443
1444 fi
1445   if test "${ac_cv_path_install+set}" = set; then
1446     INSTALL=$ac_cv_path_install
1447   else
1448     # As a last resort, use the slow shell script.  We don't cache a
1449     # path for INSTALL within a source directory, because that will
1450     # break other packages using the cache if that directory is
1451     # removed, or if the path is relative.
1452     INSTALL=$ac_install_sh
1453   fi
1454 fi
1455 echo "$as_me:1455: result: $INSTALL" >&5
1456 echo "${ECHO_T}$INSTALL" >&6
1457
1458 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1459 # It thinks the first close brace ends the variable substitution.
1460 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1461
1462 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1463
1464 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1465
1466 ac_ext=cc
1467 ac_cpp='$CXXCPP $CPPFLAGS'
1468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1471 if test -n "$ac_tool_prefix"; then
1472   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1473   do
1474     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1475 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1476 echo "$as_me:1476: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CXX+set}" = set; then
1479   echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481   if test -n "$CXX"; then
1482   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1483 else
1484   ac_save_IFS=$IFS; IFS=$ac_path_separator
1485 ac_dummy="$PATH"
1486 for ac_dir in $ac_dummy; do
1487   IFS=$ac_save_IFS
1488   test -z "$ac_dir" && ac_dir=.
1489   $as_executable_p "$ac_dir/$ac_word" || continue
1490 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1491 echo "$as_me:1491: found $ac_dir/$ac_word" >&5
1492 break
1493 done
1494
1495 fi
1496 fi
1497 CXX=$ac_cv_prog_CXX
1498 if test -n "$CXX"; then
1499   echo "$as_me:1499: result: $CXX" >&5
1500 echo "${ECHO_T}$CXX" >&6
1501 else
1502   echo "$as_me:1502: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1504 fi
1505
1506     test -n "$CXX" && break
1507   done
1508 fi
1509 if test -z "$CXX"; then
1510   ac_ct_CXX=$CXX
1511   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1512 do
1513   # Extract the first word of "$ac_prog", so it can be a program name with args.
1514 set dummy $ac_prog; ac_word=$2
1515 echo "$as_me:1515: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1518   echo $ECHO_N "(cached) $ECHO_C" >&6
1519 else
1520   if test -n "$ac_ct_CXX"; then
1521   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1522 else
1523   ac_save_IFS=$IFS; IFS=$ac_path_separator
1524 ac_dummy="$PATH"
1525 for ac_dir in $ac_dummy; do
1526   IFS=$ac_save_IFS
1527   test -z "$ac_dir" && ac_dir=.
1528   $as_executable_p "$ac_dir/$ac_word" || continue
1529 ac_cv_prog_ac_ct_CXX="$ac_prog"
1530 echo "$as_me:1530: found $ac_dir/$ac_word" >&5
1531 break
1532 done
1533
1534 fi
1535 fi
1536 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1537 if test -n "$ac_ct_CXX"; then
1538   echo "$as_me:1538: result: $ac_ct_CXX" >&5
1539 echo "${ECHO_T}$ac_ct_CXX" >&6
1540 else
1541   echo "$as_me:1541: result: no" >&5
1542 echo "${ECHO_T}no" >&6
1543 fi
1544
1545   test -n "$ac_ct_CXX" && break
1546 done
1547 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1548
1549   CXX=$ac_ct_CXX
1550 fi
1551
1552 # Provide some information about the compiler.
1553 echo "$as_me:1553:" \
1554      "checking for C++ compiler version" >&5
1555 ac_compiler=`set X $ac_compile; echo $2`
1556 { (eval echo "$as_me:1556: \"$ac_compiler --version </dev/null >&5\"") >&5
1557   (eval $ac_compiler --version </dev/null >&5) 2>&5
1558   ac_status=$?
1559   echo "$as_me:1559: \$? = $ac_status" >&5
1560   (exit $ac_status); }
1561 { (eval echo "$as_me:1561: \"$ac_compiler -v </dev/null >&5\"") >&5
1562   (eval $ac_compiler -v </dev/null >&5) 2>&5
1563   ac_status=$?
1564   echo "$as_me:1564: \$? = $ac_status" >&5
1565   (exit $ac_status); }
1566 { (eval echo "$as_me:1566: \"$ac_compiler -V </dev/null >&5\"") >&5
1567   (eval $ac_compiler -V </dev/null >&5) 2>&5
1568   ac_status=$?
1569   echo "$as_me:1569: \$? = $ac_status" >&5
1570   (exit $ac_status); }
1571
1572 cat >conftest.$ac_ext <<_ACEOF
1573 #line 1573 "configure"
1574 #include "confdefs.h"
1575
1576 int
1577 main ()
1578 {
1579
1580   ;
1581   return 0;
1582 }
1583 _ACEOF
1584 ac_clean_files_save=$ac_clean_files
1585 ac_clean_files="$ac_clean_files a.out a.exe"
1586 # Try to create an executable without -o first, disregard a.out.
1587 # It will help us diagnose broken compilers, and finding out an intuition
1588 # of exeext.
1589 echo "$as_me:1589: checking for C++ compiler default output" >&5
1590 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1591 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1592 if { (eval echo "$as_me:1592: \"$ac_link_default\"") >&5
1593   (eval $ac_link_default) 2>&5
1594   ac_status=$?
1595   echo "$as_me:1595: \$? = $ac_status" >&5
1596   (exit $ac_status); }; then
1597   # Find the output, starting from the most likely.  This scheme is
1598 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1599 # resort.
1600 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1601                 ls a.out conftest 2>/dev/null;
1602                 ls a.* conftest.* 2>/dev/null`; do
1603   case $ac_file in
1604     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1605     a.out ) # We found the default executable, but exeext='' is most
1606             # certainly right.
1607             break;;
1608     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1609           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1610           export ac_cv_exeext
1611           break;;
1612     * ) break;;
1613   esac
1614 done
1615 else
1616   echo "$as_me: failed program was:" >&5
1617 cat conftest.$ac_ext >&5
1618 { { echo "$as_me:1618: error: C++ compiler cannot create executables" >&5
1619 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1620    { (exit 77); exit 77; }; }
1621 fi
1622
1623 ac_exeext=$ac_cv_exeext
1624 echo "$as_me:1624: result: $ac_file" >&5
1625 echo "${ECHO_T}$ac_file" >&6
1626
1627 # Check the compiler produces executables we can run.  If not, either
1628 # the compiler is broken, or we cross compile.
1629 echo "$as_me:1629: checking whether the C++ compiler works" >&5
1630 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1631 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1632 # If not cross compiling, check that we can run a simple program.
1633 if test "$cross_compiling" != yes; then
1634   if { ac_try='./$ac_file'
1635   { (eval echo "$as_me:1635: \"$ac_try\"") >&5
1636   (eval $ac_try) 2>&5
1637   ac_status=$?
1638   echo "$as_me:1638: \$? = $ac_status" >&5
1639   (exit $ac_status); }; }; then
1640     cross_compiling=no
1641   else
1642     if test "$cross_compiling" = maybe; then
1643         cross_compiling=yes
1644     else
1645         { { echo "$as_me:1645: error: cannot run C++ compiled programs.
1646 If you meant to cross compile, use \`--host'." >&5
1647 echo "$as_me: error: cannot run C++ compiled programs.
1648 If you meant to cross compile, use \`--host'." >&2;}
1649    { (exit 1); exit 1; }; }
1650     fi
1651   fi
1652 fi
1653 echo "$as_me:1653: result: yes" >&5
1654 echo "${ECHO_T}yes" >&6
1655
1656 rm -f a.out a.exe conftest$ac_cv_exeext
1657 ac_clean_files=$ac_clean_files_save
1658 # Check the compiler produces executables we can run.  If not, either
1659 # the compiler is broken, or we cross compile.
1660 echo "$as_me:1660: checking whether we are cross compiling" >&5
1661 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1662 echo "$as_me:1662: result: $cross_compiling" >&5
1663 echo "${ECHO_T}$cross_compiling" >&6
1664
1665 echo "$as_me:1665: checking for executable suffix" >&5
1666 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1667 if { (eval echo "$as_me:1667: \"$ac_link\"") >&5
1668   (eval $ac_link) 2>&5
1669   ac_status=$?
1670   echo "$as_me:1670: \$? = $ac_status" >&5
1671   (exit $ac_status); }; then
1672   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1673 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1674 # work properly (i.e., refer to `conftest.exe'), while it won't with
1675 # `rm'.
1676 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1677   case $ac_file in
1678     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1679     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1680           export ac_cv_exeext
1681           break;;
1682     * ) break;;
1683   esac
1684 done
1685 else
1686   { { echo "$as_me:1686: error: cannot compute EXEEXT: cannot compile and link" >&5
1687 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1688    { (exit 1); exit 1; }; }
1689 fi
1690
1691 rm -f conftest$ac_cv_exeext
1692 echo "$as_me:1692: result: $ac_cv_exeext" >&5
1693 echo "${ECHO_T}$ac_cv_exeext" >&6
1694
1695 rm -f conftest.$ac_ext
1696 EXEEXT=$ac_cv_exeext
1697 ac_exeext=$EXEEXT
1698 echo "$as_me:1698: checking for object suffix" >&5
1699 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1700 if test "${ac_cv_objext+set}" = set; then
1701   echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703   cat >conftest.$ac_ext <<_ACEOF
1704 #line 1704 "configure"
1705 #include "confdefs.h"
1706
1707 int
1708 main ()
1709 {
1710
1711   ;
1712   return 0;
1713 }
1714 _ACEOF
1715 rm -f conftest.o conftest.obj
1716 if { (eval echo "$as_me:1716: \"$ac_compile\"") >&5
1717   (eval $ac_compile) 2>&5
1718   ac_status=$?
1719   echo "$as_me:1719: \$? = $ac_status" >&5
1720   (exit $ac_status); }; then
1721   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1722   case $ac_file in
1723     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1724     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1725        break;;
1726   esac
1727 done
1728 else
1729   echo "$as_me: failed program was:" >&5
1730 cat conftest.$ac_ext >&5
1731 { { echo "$as_me:1731: error: cannot compute OBJEXT: cannot compile" >&5
1732 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1733    { (exit 1); exit 1; }; }
1734 fi
1735
1736 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1737 fi
1738 echo "$as_me:1738: result: $ac_cv_objext" >&5
1739 echo "${ECHO_T}$ac_cv_objext" >&6
1740 OBJEXT=$ac_cv_objext
1741 ac_objext=$OBJEXT
1742 echo "$as_me:1742: checking whether we are using the GNU C++ compiler" >&5
1743 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1744 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1745   echo $ECHO_N "(cached) $ECHO_C" >&6
1746 else
1747   cat >conftest.$ac_ext <<_ACEOF
1748 #line 1748 "configure"
1749 #include "confdefs.h"
1750
1751 int
1752 main ()
1753 {
1754 #ifndef __GNUC__
1755        choke me
1756 #endif
1757
1758   ;
1759   return 0;
1760 }
1761 _ACEOF
1762 rm -f conftest.$ac_objext
1763 if { (eval echo "$as_me:1763: \"$ac_compile\"") >&5
1764   (eval $ac_compile) 2>&5
1765   ac_status=$?
1766   echo "$as_me:1766: \$? = $ac_status" >&5
1767   (exit $ac_status); } &&
1768          { ac_try='test -s conftest.$ac_objext'
1769   { (eval echo "$as_me:1769: \"$ac_try\"") >&5
1770   (eval $ac_try) 2>&5
1771   ac_status=$?
1772   echo "$as_me:1772: \$? = $ac_status" >&5
1773   (exit $ac_status); }; }; then
1774   ac_compiler_gnu=yes
1775 else
1776   echo "$as_me: failed program was:" >&5
1777 cat conftest.$ac_ext >&5
1778 ac_compiler_gnu=no
1779 fi
1780 rm -f conftest.$ac_objext conftest.$ac_ext
1781 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1782
1783 fi
1784 echo "$as_me:1784: result: $ac_cv_cxx_compiler_gnu" >&5
1785 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1786 GXX=`test $ac_compiler_gnu = yes && echo yes`
1787 ac_test_CXXFLAGS=${CXXFLAGS+set}
1788 ac_save_CXXFLAGS=$CXXFLAGS
1789 CXXFLAGS="-g"
1790 echo "$as_me:1790: checking whether $CXX accepts -g" >&5
1791 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1792 if test "${ac_cv_prog_cxx_g+set}" = set; then
1793   echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795   cat >conftest.$ac_ext <<_ACEOF
1796 #line 1796 "configure"
1797 #include "confdefs.h"
1798
1799 int
1800 main ()
1801 {
1802
1803   ;
1804   return 0;
1805 }
1806 _ACEOF
1807 rm -f conftest.$ac_objext
1808 if { (eval echo "$as_me:1808: \"$ac_compile\"") >&5
1809   (eval $ac_compile) 2>&5
1810   ac_status=$?
1811   echo "$as_me:1811: \$? = $ac_status" >&5
1812   (exit $ac_status); } &&
1813          { ac_try='test -s conftest.$ac_objext'
1814   { (eval echo "$as_me:1814: \"$ac_try\"") >&5
1815   (eval $ac_try) 2>&5
1816   ac_status=$?
1817   echo "$as_me:1817: \$? = $ac_status" >&5
1818   (exit $ac_status); }; }; then
1819   ac_cv_prog_cxx_g=yes
1820 else
1821   echo "$as_me: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1823 ac_cv_prog_cxx_g=no
1824 fi
1825 rm -f conftest.$ac_objext conftest.$ac_ext
1826 fi
1827 echo "$as_me:1827: result: $ac_cv_prog_cxx_g" >&5
1828 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1829 if test "$ac_test_CXXFLAGS" = set; then
1830   CXXFLAGS=$ac_save_CXXFLAGS
1831 elif test $ac_cv_prog_cxx_g = yes; then
1832   if test "$GXX" = yes; then
1833     CXXFLAGS="-g -O2"
1834   else
1835     CXXFLAGS="-g"
1836   fi
1837 else
1838   if test "$GXX" = yes; then
1839     CXXFLAGS="-O2"
1840   else
1841     CXXFLAGS=
1842   fi
1843 fi
1844 for ac_declaration in \
1845    ''\
1846    '#include <stdlib.h>' \
1847    'extern "C" void std::exit (int) throw (); using std::exit;' \
1848    'extern "C" void std::exit (int); using std::exit;' \
1849    'extern "C" void exit (int) throw ();' \
1850    'extern "C" void exit (int);' \
1851    'void exit (int);'
1852 do
1853   cat >conftest.$ac_ext <<_ACEOF
1854 #line 1854 "configure"
1855 #include "confdefs.h"
1856 #include <stdlib.h>
1857 $ac_declaration
1858 int
1859 main ()
1860 {
1861 exit (42);
1862   ;
1863   return 0;
1864 }
1865 _ACEOF
1866 rm -f conftest.$ac_objext
1867 if { (eval echo "$as_me:1867: \"$ac_compile\"") >&5
1868   (eval $ac_compile) 2>&5
1869   ac_status=$?
1870   echo "$as_me:1870: \$? = $ac_status" >&5
1871   (exit $ac_status); } &&
1872          { ac_try='test -s conftest.$ac_objext'
1873   { (eval echo "$as_me:1873: \"$ac_try\"") >&5
1874   (eval $ac_try) 2>&5
1875   ac_status=$?
1876   echo "$as_me:1876: \$? = $ac_status" >&5
1877   (exit $ac_status); }; }; then
1878   :
1879 else
1880   echo "$as_me: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1882 continue
1883 fi
1884 rm -f conftest.$ac_objext conftest.$ac_ext
1885   cat >conftest.$ac_ext <<_ACEOF
1886 #line 1886 "configure"
1887 #include "confdefs.h"
1888 $ac_declaration
1889 int
1890 main ()
1891 {
1892 exit (42);
1893   ;
1894   return 0;
1895 }
1896 _ACEOF
1897 rm -f conftest.$ac_objext
1898 if { (eval echo "$as_me:1898: \"$ac_compile\"") >&5
1899   (eval $ac_compile) 2>&5
1900   ac_status=$?
1901   echo "$as_me:1901: \$? = $ac_status" >&5
1902   (exit $ac_status); } &&
1903          { ac_try='test -s conftest.$ac_objext'
1904   { (eval echo "$as_me:1904: \"$ac_try\"") >&5
1905   (eval $ac_try) 2>&5
1906   ac_status=$?
1907   echo "$as_me:1907: \$? = $ac_status" >&5
1908   (exit $ac_status); }; }; then
1909   break
1910 else
1911   echo "$as_me: failed program was:" >&5
1912 cat conftest.$ac_ext >&5
1913 fi
1914 rm -f conftest.$ac_objext conftest.$ac_ext
1915 done
1916 rm -f conftest*
1917 if test -n "$ac_declaration"; then
1918   echo '#ifdef __cplusplus' >>confdefs.h
1919   echo $ac_declaration      >>confdefs.h
1920   echo '#endif'             >>confdefs.h
1921 fi
1922
1923 ac_ext=c
1924 ac_cpp='$CPP $CPPFLAGS'
1925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1928
1929 # Check whether --enable-shared or --disable-shared was given.
1930 if test "${enable_shared+set}" = set; then
1931   enableval="$enable_shared"
1932   p=${PACKAGE-default}
1933 case $enableval in
1934 yes) enable_shared=yes ;;
1935 no) enable_shared=no ;;
1936 *)
1937   enable_shared=no
1938   # Look at the argument we got.  We use all the common list separators.
1939   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1940   for pkg in $enableval; do
1941     if test "X$pkg" = "X$p"; then
1942       enable_shared=yes
1943     fi
1944   done
1945   IFS="$ac_save_ifs"
1946   ;;
1947 esac
1948 else
1949   enable_shared=yes
1950 fi;
1951 # Check whether --enable-static or --disable-static was given.
1952 if test "${enable_static+set}" = set; then
1953   enableval="$enable_static"
1954   p=${PACKAGE-default}
1955 case $enableval in
1956 yes) enable_static=yes ;;
1957 no) enable_static=no ;;
1958 *)
1959   enable_static=no
1960   # Look at the argument we got.  We use all the common list separators.
1961   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1962   for pkg in $enableval; do
1963     if test "X$pkg" = "X$p"; then
1964       enable_static=yes
1965     fi
1966   done
1967   IFS="$ac_save_ifs"
1968   ;;
1969 esac
1970 else
1971   enable_static=yes
1972 fi;
1973 # Check whether --enable-fast-install or --disable-fast-install was given.
1974 if test "${enable_fast_install+set}" = set; then
1975   enableval="$enable_fast_install"
1976   p=${PACKAGE-default}
1977 case $enableval in
1978 yes) enable_fast_install=yes ;;
1979 no) enable_fast_install=no ;;
1980 *)
1981   enable_fast_install=no
1982   # Look at the argument we got.  We use all the common list separators.
1983   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1984   for pkg in $enableval; do
1985     if test "X$pkg" = "X$p"; then
1986       enable_fast_install=yes
1987     fi
1988   done
1989   IFS="$ac_save_ifs"
1990   ;;
1991 esac
1992 else
1993   enable_fast_install=yes
1994 fi;
1995 # Make sure we can run config.sub.
1996 $ac_config_sub sun4 >/dev/null 2>&1 ||
1997   { { echo "$as_me:1997: error: cannot run $ac_config_sub" >&5
1998 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1999    { (exit 1); exit 1; }; }
2000
2001 echo "$as_me:2001: checking build system type" >&5
2002 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2003 if test "${ac_cv_build+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   ac_cv_build_alias=$build_alias
2007 test -z "$ac_cv_build_alias" &&
2008   ac_cv_build_alias=`$ac_config_guess`
2009 test -z "$ac_cv_build_alias" &&
2010   { { echo "$as_me:2010: error: cannot guess build type; you must specify one" >&5
2011 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2012    { (exit 1); exit 1; }; }
2013 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2014   { { echo "$as_me:2014: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2015 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2016    { (exit 1); exit 1; }; }
2017
2018 fi
2019 echo "$as_me:2019: result: $ac_cv_build" >&5
2020 echo "${ECHO_T}$ac_cv_build" >&6
2021 build=$ac_cv_build
2022 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2023 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2024 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2025
2026 test -z "$build_alias" &&
2027   build_alias=$ac_cv_build
2028
2029 echo "$as_me:2029: checking host system type" >&5
2030 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2031 if test "${ac_cv_host+set}" = set; then
2032   echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034   ac_cv_host_alias=$host_alias
2035 test -z "$ac_cv_host_alias" &&
2036   ac_cv_host_alias=$ac_cv_build_alias
2037 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2038   { { echo "$as_me:2038: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2039 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2040    { (exit 1); exit 1; }; }
2041
2042 fi
2043 echo "$as_me:2043: result: $ac_cv_host" >&5
2044 echo "${ECHO_T}$ac_cv_host" >&6
2045 host=$ac_cv_host
2046 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2047 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2048 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2049
2050 test -z "$host_alias" &&
2051   host_alias=$ac_cv_host
2052
2053 ac_ext=c
2054 ac_cpp='$CPP $CPPFLAGS'
2055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2058 if test -n "$ac_tool_prefix"; then
2059   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2060 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2061 echo "$as_me:2061: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063 if test "${ac_cv_prog_CC+set}" = set; then
2064   echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066   if test -n "$CC"; then
2067   ac_cv_prog_CC="$CC" # Let the user override the test.
2068 else
2069   ac_save_IFS=$IFS; IFS=$ac_path_separator
2070 ac_dummy="$PATH"
2071 for ac_dir in $ac_dummy; do
2072   IFS=$ac_save_IFS
2073   test -z "$ac_dir" && ac_dir=.
2074   $as_executable_p "$ac_dir/$ac_word" || continue
2075 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2076 echo "$as_me:2076: found $ac_dir/$ac_word" >&5
2077 break
2078 done
2079
2080 fi
2081 fi
2082 CC=$ac_cv_prog_CC
2083 if test -n "$CC"; then
2084   echo "$as_me:2084: result: $CC" >&5
2085 echo "${ECHO_T}$CC" >&6
2086 else
2087   echo "$as_me:2087: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2089 fi
2090
2091 fi
2092 if test -z "$ac_cv_prog_CC"; then
2093   ac_ct_CC=$CC
2094   # Extract the first word of "gcc", so it can be a program name with args.
2095 set dummy gcc; ac_word=$2
2096 echo "$as_me:2096: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2099   echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101   if test -n "$ac_ct_CC"; then
2102   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2103 else
2104   ac_save_IFS=$IFS; IFS=$ac_path_separator
2105 ac_dummy="$PATH"
2106 for ac_dir in $ac_dummy; do
2107   IFS=$ac_save_IFS
2108   test -z "$ac_dir" && ac_dir=.
2109   $as_executable_p "$ac_dir/$ac_word" || continue
2110 ac_cv_prog_ac_ct_CC="gcc"
2111 echo "$as_me:2111: found $ac_dir/$ac_word" >&5
2112 break
2113 done
2114
2115 fi
2116 fi
2117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2118 if test -n "$ac_ct_CC"; then
2119   echo "$as_me:2119: result: $ac_ct_CC" >&5
2120 echo "${ECHO_T}$ac_ct_CC" >&6
2121 else
2122   echo "$as_me:2122: result: no" >&5
2123 echo "${ECHO_T}no" >&6
2124 fi
2125
2126   CC=$ac_ct_CC
2127 else
2128   CC="$ac_cv_prog_CC"
2129 fi
2130
2131 if test -z "$CC"; then
2132   if test -n "$ac_tool_prefix"; then
2133   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2134 set dummy ${ac_tool_prefix}cc; ac_word=$2
2135 echo "$as_me:2135: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138   echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140   if test -n "$CC"; then
2141   ac_cv_prog_CC="$CC" # Let the user override the test.
2142 else
2143   ac_save_IFS=$IFS; IFS=$ac_path_separator
2144 ac_dummy="$PATH"
2145 for ac_dir in $ac_dummy; do
2146   IFS=$ac_save_IFS
2147   test -z "$ac_dir" && ac_dir=.
2148   $as_executable_p "$ac_dir/$ac_word" || continue
2149 ac_cv_prog_CC="${ac_tool_prefix}cc"
2150 echo "$as_me:2150: found $ac_dir/$ac_word" >&5
2151 break
2152 done
2153
2154 fi
2155 fi
2156 CC=$ac_cv_prog_CC
2157 if test -n "$CC"; then
2158   echo "$as_me:2158: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6
2160 else
2161   echo "$as_me:2161: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2163 fi
2164
2165 fi
2166 if test -z "$ac_cv_prog_CC"; then
2167   ac_ct_CC=$CC
2168   # Extract the first word of "cc", so it can be a program name with args.
2169 set dummy cc; ac_word=$2
2170 echo "$as_me:2170: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2173   echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175   if test -n "$ac_ct_CC"; then
2176   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2177 else
2178   ac_save_IFS=$IFS; IFS=$ac_path_separator
2179 ac_dummy="$PATH"
2180 for ac_dir in $ac_dummy; do
2181   IFS=$ac_save_IFS
2182   test -z "$ac_dir" && ac_dir=.
2183   $as_executable_p "$ac_dir/$ac_word" || continue
2184 ac_cv_prog_ac_ct_CC="cc"
2185 echo "$as_me:2185: found $ac_dir/$ac_word" >&5
2186 break
2187 done
2188
2189 fi
2190 fi
2191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2192 if test -n "$ac_ct_CC"; then
2193   echo "$as_me:2193: result: $ac_ct_CC" >&5
2194 echo "${ECHO_T}$ac_ct_CC" >&6
2195 else
2196   echo "$as_me:2196: result: no" >&5
2197 echo "${ECHO_T}no" >&6
2198 fi
2199
2200   CC=$ac_ct_CC
2201 else
2202   CC="$ac_cv_prog_CC"
2203 fi
2204
2205 fi
2206 if test -z "$CC"; then
2207   # Extract the first word of "cc", so it can be a program name with args.
2208 set dummy cc; ac_word=$2
2209 echo "$as_me:2209: checking for $ac_word" >&5
2210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2211 if test "${ac_cv_prog_CC+set}" = set; then
2212   echo $ECHO_N "(cached) $ECHO_C" >&6
2213 else
2214   if test -n "$CC"; then
2215   ac_cv_prog_CC="$CC" # Let the user override the test.
2216 else
2217   ac_prog_rejected=no
2218   ac_save_IFS=$IFS; IFS=$ac_path_separator
2219 ac_dummy="$PATH"
2220 for ac_dir in $ac_dummy; do
2221   IFS=$ac_save_IFS
2222   test -z "$ac_dir" && ac_dir=.
2223   $as_executable_p "$ac_dir/$ac_word" || continue
2224 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2225   ac_prog_rejected=yes
2226   continue
2227 fi
2228 ac_cv_prog_CC="cc"
2229 echo "$as_me:2229: found $ac_dir/$ac_word" >&5
2230 break
2231 done
2232
2233 if test $ac_prog_rejected = yes; then
2234   # We found a bogon in the path, so make sure we never use it.
2235   set dummy $ac_cv_prog_CC
2236   shift
2237   if test $# != 0; then
2238     # We chose a different compiler from the bogus one.
2239     # However, it has the same basename, so the bogon will be chosen
2240     # first if we set CC to just the basename; use the full file name.
2241     shift
2242     set dummy "$ac_dir/$ac_word" ${1+"$@"}
2243     shift
2244     ac_cv_prog_CC="$@"
2245   fi
2246 fi
2247 fi
2248 fi
2249 CC=$ac_cv_prog_CC
2250 if test -n "$CC"; then
2251   echo "$as_me:2251: result: $CC" >&5
2252 echo "${ECHO_T}$CC" >&6
2253 else
2254   echo "$as_me:2254: result: no" >&5
2255 echo "${ECHO_T}no" >&6
2256 fi
2257
2258 fi
2259 if test -z "$CC"; then
2260   if test -n "$ac_tool_prefix"; then
2261   for ac_prog in cl
2262   do
2263     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2265 echo "$as_me:2265: checking for $ac_word" >&5
2266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2267 if test "${ac_cv_prog_CC+set}" = set; then
2268   echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270   if test -n "$CC"; then
2271   ac_cv_prog_CC="$CC" # Let the user override the test.
2272 else
2273   ac_save_IFS=$IFS; IFS=$ac_path_separator
2274 ac_dummy="$PATH"
2275 for ac_dir in $ac_dummy; do
2276   IFS=$ac_save_IFS
2277   test -z "$ac_dir" && ac_dir=.
2278   $as_executable_p "$ac_dir/$ac_word" || continue
2279 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2280 echo "$as_me:2280: found $ac_dir/$ac_word" >&5
2281 break
2282 done
2283
2284 fi
2285 fi
2286 CC=$ac_cv_prog_CC
2287 if test -n "$CC"; then
2288   echo "$as_me:2288: result: $CC" >&5
2289 echo "${ECHO_T}$CC" >&6
2290 else
2291   echo "$as_me:2291: result: no" >&5
2292 echo "${ECHO_T}no" >&6
2293 fi
2294
2295     test -n "$CC" && break
2296   done
2297 fi
2298 if test -z "$CC"; then
2299   ac_ct_CC=$CC
2300   for ac_prog in cl
2301 do
2302   # Extract the first word of "$ac_prog", so it can be a program name with args.
2303 set dummy $ac_prog; ac_word=$2
2304 echo "$as_me:2304: checking for $ac_word" >&5
2305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2306 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2307   echo $ECHO_N "(cached) $ECHO_C" >&6
2308 else
2309   if test -n "$ac_ct_CC"; then
2310   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2311 else
2312   ac_save_IFS=$IFS; IFS=$ac_path_separator
2313 ac_dummy="$PATH"
2314 for ac_dir in $ac_dummy; do
2315   IFS=$ac_save_IFS
2316   test -z "$ac_dir" && ac_dir=.
2317   $as_executable_p "$ac_dir/$ac_word" || continue
2318 ac_cv_prog_ac_ct_CC="$ac_prog"
2319 echo "$as_me:2319: found $ac_dir/$ac_word" >&5
2320 break
2321 done
2322
2323 fi
2324 fi
2325 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2326 if test -n "$ac_ct_CC"; then
2327   echo "$as_me:2327: result: $ac_ct_CC" >&5
2328 echo "${ECHO_T}$ac_ct_CC" >&6
2329 else
2330   echo "$as_me:2330: result: no" >&5
2331 echo "${ECHO_T}no" >&6
2332 fi
2333
2334   test -n "$ac_ct_CC" && break
2335 done
2336
2337   CC=$ac_ct_CC
2338 fi
2339
2340 fi
2341
2342 test -z "$CC" && { { echo "$as_me:2342: error: no acceptable cc found in \$PATH" >&5
2343 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2344    { (exit 1); exit 1; }; }
2345
2346 # Provide some information about the compiler.
2347 echo "$as_me:2347:" \
2348      "checking for C compiler version" >&5
2349 ac_compiler=`set X $ac_compile; echo $2`
2350 { (eval echo "$as_me:2350: \"$ac_compiler --version </dev/null >&5\"") >&5
2351   (eval $ac_compiler --version </dev/null >&5) 2>&5
2352   ac_status=$?
2353   echo "$as_me:2353: \$? = $ac_status" >&5
2354   (exit $ac_status); }
2355 { (eval echo "$as_me:2355: \"$ac_compiler -v </dev/null >&5\"") >&5
2356   (eval $ac_compiler -v </dev/null >&5) 2>&5
2357   ac_status=$?
2358   echo "$as_me:2358: \$? = $ac_status" >&5
2359   (exit $ac_status); }
2360 { (eval echo "$as_me:2360: \"$ac_compiler -V </dev/null >&5\"") >&5
2361   (eval $ac_compiler -V </dev/null >&5) 2>&5
2362   ac_status=$?
2363   echo "$as_me:2363: \$? = $ac_status" >&5
2364   (exit $ac_status); }
2365
2366 echo "$as_me:2366: checking whether we are using the GNU C compiler" >&5
2367 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2368 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2369   echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371   cat >conftest.$ac_ext <<_ACEOF
2372 #line 2372 "configure"
2373 #include "confdefs.h"
2374
2375 int
2376 main ()
2377 {
2378 #ifndef __GNUC__
2379        choke me
2380 #endif
2381
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:2387: \"$ac_compile\"") >&5
2388   (eval $ac_compile) 2>&5
2389   ac_status=$?
2390   echo "$as_me:2390: \$? = $ac_status" >&5
2391   (exit $ac_status); } &&
2392          { ac_try='test -s conftest.$ac_objext'
2393   { (eval echo "$as_me:2393: \"$ac_try\"") >&5
2394   (eval $ac_try) 2>&5
2395   ac_status=$?
2396   echo "$as_me:2396: \$? = $ac_status" >&5
2397   (exit $ac_status); }; }; then
2398   ac_compiler_gnu=yes
2399 else
2400   echo "$as_me: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2402 ac_compiler_gnu=no
2403 fi
2404 rm -f conftest.$ac_objext conftest.$ac_ext
2405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2406
2407 fi
2408 echo "$as_me:2408: result: $ac_cv_c_compiler_gnu" >&5
2409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2410 GCC=`test $ac_compiler_gnu = yes && echo yes`
2411 ac_test_CFLAGS=${CFLAGS+set}
2412 ac_save_CFLAGS=$CFLAGS
2413 CFLAGS="-g"
2414 echo "$as_me:2414: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417   echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419   cat >conftest.$ac_ext <<_ACEOF
2420 #line 2420 "configure"
2421 #include "confdefs.h"
2422
2423 int
2424 main ()
2425 {
2426
2427   ;
2428   return 0;
2429 }
2430 _ACEOF
2431 rm -f conftest.$ac_objext
2432 if { (eval echo "$as_me:2432: \"$ac_compile\"") >&5
2433   (eval $ac_compile) 2>&5
2434   ac_status=$?
2435   echo "$as_me:2435: \$? = $ac_status" >&5
2436   (exit $ac_status); } &&
2437          { ac_try='test -s conftest.$ac_objext'
2438   { (eval echo "$as_me:2438: \"$ac_try\"") >&5
2439   (eval $ac_try) 2>&5
2440   ac_status=$?
2441   echo "$as_me:2441: \$? = $ac_status" >&5
2442   (exit $ac_status); }; }; then
2443   ac_cv_prog_cc_g=yes
2444 else
2445   echo "$as_me: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2447 ac_cv_prog_cc_g=no
2448 fi
2449 rm -f conftest.$ac_objext conftest.$ac_ext
2450 fi
2451 echo "$as_me:2451: result: $ac_cv_prog_cc_g" >&5
2452 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2453 if test "$ac_test_CFLAGS" = set; then
2454   CFLAGS=$ac_save_CFLAGS
2455 elif test $ac_cv_prog_cc_g = yes; then
2456   if test "$GCC" = yes; then
2457     CFLAGS="-g -O2"
2458   else
2459     CFLAGS="-g"
2460   fi
2461 else
2462   if test "$GCC" = yes; then
2463     CFLAGS="-O2"
2464   else
2465     CFLAGS=
2466   fi
2467 fi
2468 # Some people use a C++ compiler to compile C.  Since we use `exit',
2469 # in C++ we need to declare it.  In case someone uses the same compiler
2470 # for both compiling C and C++ we need to have the C++ compiler decide
2471 # the declaration of exit, since it's the most demanding environment.
2472 cat >conftest.$ac_ext <<_ACEOF
2473 #ifndef __cplusplus
2474   choke me
2475 #endif
2476 _ACEOF
2477 rm -f conftest.$ac_objext
2478 if { (eval echo "$as_me:2478: \"$ac_compile\"") >&5
2479   (eval $ac_compile) 2>&5
2480   ac_status=$?
2481   echo "$as_me:2481: \$? = $ac_status" >&5
2482   (exit $ac_status); } &&
2483          { ac_try='test -s conftest.$ac_objext'
2484   { (eval echo "$as_me:2484: \"$ac_try\"") >&5
2485   (eval $ac_try) 2>&5
2486   ac_status=$?
2487   echo "$as_me:2487: \$? = $ac_status" >&5
2488   (exit $ac_status); }; }; then
2489   for ac_declaration in \
2490    ''\
2491    '#include <stdlib.h>' \
2492    'extern "C" void std::exit (int) throw (); using std::exit;' \
2493    'extern "C" void std::exit (int); using std::exit;' \
2494    'extern "C" void exit (int) throw ();' \
2495    'extern "C" void exit (int);' \
2496    'void exit (int);'
2497 do
2498   cat >conftest.$ac_ext <<_ACEOF
2499 #line 2499 "configure"
2500 #include "confdefs.h"
2501 #include <stdlib.h>
2502 $ac_declaration
2503 int
2504 main ()
2505 {
2506 exit (42);
2507   ;
2508   return 0;
2509 }
2510 _ACEOF
2511 rm -f conftest.$ac_objext
2512 if { (eval echo "$as_me:2512: \"$ac_compile\"") >&5
2513   (eval $ac_compile) 2>&5
2514   ac_status=$?
2515   echo "$as_me:2515: \$? = $ac_status" >&5
2516   (exit $ac_status); } &&
2517          { ac_try='test -s conftest.$ac_objext'
2518   { (eval echo "$as_me:2518: \"$ac_try\"") >&5
2519   (eval $ac_try) 2>&5
2520   ac_status=$?
2521   echo "$as_me:2521: \$? = $ac_status" >&5
2522   (exit $ac_status); }; }; then
2523   :
2524 else
2525   echo "$as_me: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2527 continue
2528 fi
2529 rm -f conftest.$ac_objext conftest.$ac_ext
2530   cat >conftest.$ac_ext <<_ACEOF
2531 #line 2531 "configure"
2532 #include "confdefs.h"
2533 $ac_declaration
2534 int
2535 main ()
2536 {
2537 exit (42);
2538   ;
2539   return 0;
2540 }
2541 _ACEOF
2542 rm -f conftest.$ac_objext
2543 if { (eval echo "$as_me:2543: \"$ac_compile\"") >&5
2544   (eval $ac_compile) 2>&5
2545   ac_status=$?
2546   echo "$as_me:2546: \$? = $ac_status" >&5
2547   (exit $ac_status); } &&
2548          { ac_try='test -s conftest.$ac_objext'
2549   { (eval echo "$as_me:2549: \"$ac_try\"") >&5
2550   (eval $ac_try) 2>&5
2551   ac_status=$?
2552   echo "$as_me:2552: \$? = $ac_status" >&5
2553   (exit $ac_status); }; }; then
2554   break
2555 else
2556   echo "$as_me: failed program was:" >&5
2557 cat conftest.$ac_ext >&5
2558 fi
2559 rm -f conftest.$ac_objext conftest.$ac_ext
2560 done
2561 rm -f conftest*
2562 if test -n "$ac_declaration"; then
2563   echo '#ifdef __cplusplus' >>confdefs.h
2564   echo $ac_declaration      >>confdefs.h
2565   echo '#endif'             >>confdefs.h
2566 fi
2567
2568 else
2569   echo "$as_me: failed program was:" >&5
2570 cat conftest.$ac_ext >&5
2571 fi
2572 rm -f conftest.$ac_objext conftest.$ac_ext
2573 ac_ext=c
2574 ac_cpp='$CPP $CPPFLAGS'
2575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2578
2579 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2580 if test "${with_gnu_ld+set}" = set; then
2581   withval="$with_gnu_ld"
2582   test "$withval" = no || with_gnu_ld=yes
2583 else
2584   with_gnu_ld=no
2585 fi;
2586 ac_prog=ld
2587 if test "$GCC" = yes; then
2588   # Check if gcc -print-prog-name=ld gives a path.
2589   echo "$as_me:2589: checking for ld used by GCC" >&5
2590 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2591   case $host in
2592   *-*-mingw*)
2593     # gcc leaves a trailing carriage return which upsets mingw
2594     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2595   *)
2596     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2597   esac
2598   case $ac_prog in
2599     # Accept absolute paths.
2600     [\\/]* | [A-Za-z]:[\\/]*)
2601       re_direlt='/[^/][^/]*/\.\./'
2602       # Canonicalize the path of ld
2603       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2604       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2605         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2606       done
2607       test -z "$LD" && LD="$ac_prog"
2608       ;;
2609   "")
2610     # If it fails, then pretend we aren't using GCC.
2611     ac_prog=ld
2612     ;;
2613   *)
2614     # If it is relative, then search for the first ld in PATH.
2615     with_gnu_ld=unknown
2616     ;;
2617   esac
2618 elif test "$with_gnu_ld" = yes; then
2619   echo "$as_me:2619: checking for GNU ld" >&5
2620 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2621 else
2622   echo "$as_me:2622: checking for non-GNU ld" >&5
2623 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2624 fi
2625 if test "${lt_cv_path_LD+set}" = set; then
2626   echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628   if test -z "$LD"; then
2629   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2630   for ac_dir in $PATH; do
2631     test -z "$ac_dir" && ac_dir=.
2632     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2633       lt_cv_path_LD="$ac_dir/$ac_prog"
2634       # Check to see if the program is GNU ld.  I'd rather use --version,
2635       # but apparently some GNU ld's only accept -v.
2636       # Break only if it was the GNU/non-GNU ld that we prefer.
2637       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2638         test "$with_gnu_ld" != no && break
2639       else
2640         test "$with_gnu_ld" != yes && break
2641       fi
2642     fi
2643   done
2644   IFS="$ac_save_ifs"
2645 else
2646   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2647 fi
2648 fi
2649
2650 LD="$lt_cv_path_LD"
2651 if test -n "$LD"; then
2652   echo "$as_me:2652: result: $LD" >&5
2653 echo "${ECHO_T}$LD" >&6
2654 else
2655   echo "$as_me:2655: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2657 fi
2658 test -z "$LD" && { { echo "$as_me:2658: error: no acceptable ld found in \$PATH" >&5
2659 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2660    { (exit 1); exit 1; }; }
2661 echo "$as_me:2661: checking if the linker ($LD) is GNU ld" >&5
2662 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2663 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2664   echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2667 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2668   lt_cv_prog_gnu_ld=yes
2669 else
2670   lt_cv_prog_gnu_ld=no
2671 fi
2672 fi
2673 echo "$as_me:2673: result: $lt_cv_prog_gnu_ld" >&5
2674 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2675 with_gnu_ld=$lt_cv_prog_gnu_ld
2676
2677 echo "$as_me:2677: checking for $LD option to reload object files" >&5
2678 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2679 if test "${lt_cv_ld_reload_flag+set}" = set; then
2680   echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682   lt_cv_ld_reload_flag='-r'
2683 fi
2684 echo "$as_me:2684: result: $lt_cv_ld_reload_flag" >&5
2685 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2686 reload_flag=$lt_cv_ld_reload_flag
2687 test -n "$reload_flag" && reload_flag=" $reload_flag"
2688
2689 echo "$as_me:2689: checking for BSD-compatible nm" >&5
2690 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2691 if test "${lt_cv_path_NM+set}" = set; then
2692   echo $ECHO_N "(cached) $ECHO_C" >&6
2693 else
2694   if test -n "$NM"; then
2695   # Let the user override the test.
2696   lt_cv_path_NM="$NM"
2697 else
2698   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2699   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2700     test -z "$ac_dir" && ac_dir=.
2701     tmp_nm=$ac_dir/${ac_tool_prefix}nm
2702     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2703       # Check to see if the nm accepts a BSD-compat flag.
2704       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2705       #   nm: unknown option "B" ignored
2706       # Tru64's nm complains that /dev/null is an invalid object file
2707       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2708         lt_cv_path_NM="$tmp_nm -B"
2709         break
2710       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2711         lt_cv_path_NM="$tmp_nm -p"
2712         break
2713       else
2714         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2715         continue # so that we can try to find one that supports BSD flags
2716       fi
2717     fi
2718   done
2719   IFS="$ac_save_ifs"
2720   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2721 fi
2722 fi
2723
2724 NM="$lt_cv_path_NM"
2725 echo "$as_me:2725: result: $NM" >&5
2726 echo "${ECHO_T}$NM" >&6
2727
2728 echo "$as_me:2728: checking whether ln -s works" >&5
2729 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2730 LN_S=$as_ln_s
2731 if test "$LN_S" = "ln -s"; then
2732   echo "$as_me:2732: result: yes" >&5
2733 echo "${ECHO_T}yes" >&6
2734 else
2735   echo "$as_me:2735: result: no, using $LN_S" >&5
2736 echo "${ECHO_T}no, using $LN_S" >&6
2737 fi
2738
2739 echo "$as_me:2739: checking how to recognise dependant libraries" >&5
2740 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2741 if test "${lt_cv_deplibs_check_method+set}" = set; then
2742   echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744   lt_cv_file_magic_cmd='$MAGIC_CMD'
2745 lt_cv_file_magic_test_file=
2746 lt_cv_deplibs_check_method='unknown'
2747 # Need to set the preceding variable on all platforms that support
2748 # interlibrary dependencies.
2749 # 'none' -- dependencies not supported.
2750 # `unknown' -- same as none, but documents that we really don't know.
2751 # 'pass_all' -- all dependencies passed with no checks.
2752 # 'test_compile' -- check by making test program.
2753 # ['file_magic [regex]'] -- check by looking for files in library path
2754 # which responds to the $file_magic_cmd with a given egrep regex.
2755 # If you have `file' or equivalent on your system and you're not sure
2756 # whether `pass_all' will *always* work, you probably want this one.
2757
2758 case $host_os in
2759 aix4* | aix5*)
2760   lt_cv_deplibs_check_method=pass_all
2761   ;;
2762
2763 beos*)
2764   lt_cv_deplibs_check_method=pass_all
2765   ;;
2766
2767 bsdi4*)
2768   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2769   lt_cv_file_magic_cmd='/usr/bin/file -L'
2770   lt_cv_file_magic_test_file=/shlib/libc.so
2771   ;;
2772
2773 cygwin* | mingw* | pw32*)
2774   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2775   lt_cv_file_magic_cmd='$OBJDUMP -f'
2776   ;;
2777
2778 darwin* | rhapsody*)
2779   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2780   lt_cv_file_magic_cmd='/usr/bin/file -L'
2781   case "$host_os" in
2782   rhapsody* | darwin1.[012])
2783     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2784     ;;
2785   *) # Darwin 1.3 on
2786     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2787     ;;
2788   esac
2789   ;;
2790
2791 freebsd*)
2792   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2793     case $host_cpu in
2794     i*86 )
2795       # Not sure whether the presence of OpenBSD here was a mistake.
2796       # Let's accept both of them until this is cleared up.
2797       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2798       lt_cv_file_magic_cmd=/usr/bin/file
2799       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2800       ;;
2801     esac
2802   else
2803     lt_cv_deplibs_check_method=pass_all
2804   fi
2805   ;;
2806
2807 gnu*)
2808   lt_cv_deplibs_check_method=pass_all
2809   ;;
2810
2811 hpux10.20*|hpux11*)
2812   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2813   lt_cv_file_magic_cmd=/usr/bin/file
2814   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2815   ;;
2816
2817 irix5* | irix6*)
2818   case $host_os in
2819   irix5*)
2820     # this will be overridden with pass_all, but let us keep it just in case
2821     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2822     ;;
2823   *)
2824     case $LD in
2825     *-32|*"-32 ") libmagic=32-bit;;
2826     *-n32|*"-n32 ") libmagic=N32;;
2827     *-64|*"-64 ") libmagic=64-bit;;
2828     *) libmagic=never-match;;
2829     esac
2830     # this will be overridden with pass_all, but let us keep it just in case
2831     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2832     ;;
2833   esac
2834   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2835   lt_cv_deplibs_check_method=pass_all
2836   ;;
2837
2838 # This must be Linux ELF.
2839 linux*)
2840   case $host_cpu in
2841   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* | m68* )
2842     lt_cv_deplibs_check_method=pass_all ;;
2843   *)
2844     # glibc up to 2.1.1 does not perform some relocations on ARM
2845     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2846   esac
2847   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2848   ;;
2849
2850 netbsd*)
2851   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2852     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2853   else
2854     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2855   fi
2856   ;;
2857
2858 newos6*)
2859   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2860   lt_cv_file_magic_cmd=/usr/bin/file
2861   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2862   ;;
2863
2864 openbsd*)
2865   lt_cv_file_magic_cmd=/usr/bin/file
2866   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2867   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2868     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2869   else
2870     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2871   fi
2872   ;;
2873
2874 osf3* | osf4* | osf5*)
2875   # this will be overridden with pass_all, but let us keep it just in case
2876   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2877   lt_cv_file_magic_test_file=/shlib/libc.so
2878   lt_cv_deplibs_check_method=pass_all
2879   ;;
2880
2881 sco3.2v5*)
2882   lt_cv_deplibs_check_method=pass_all
2883   ;;
2884
2885 solaris*)
2886   lt_cv_deplibs_check_method=pass_all
2887   lt_cv_file_magic_test_file=/lib/libc.so
2888   ;;
2889
2890 sysv5uw[78]* | sysv4*uw2*)
2891   lt_cv_deplibs_check_method=pass_all
2892   ;;
2893
2894 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2895   case $host_vendor in
2896   motorola)
2897     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]'
2898     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2899     ;;
2900   ncr)
2901     lt_cv_deplibs_check_method=pass_all
2902     ;;
2903   sequent)
2904     lt_cv_file_magic_cmd='/bin/file'
2905     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2906     ;;
2907   sni)
2908     lt_cv_file_magic_cmd='/bin/file'
2909     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2910     lt_cv_file_magic_test_file=/lib/libc.so
2911     ;;
2912   esac
2913   ;;
2914 esac
2915
2916 fi
2917 echo "$as_me:2917: result: $lt_cv_deplibs_check_method" >&5
2918 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2919 file_magic_cmd=$lt_cv_file_magic_cmd
2920 deplibs_check_method=$lt_cv_deplibs_check_method
2921
2922 # Check for command to grab the raw symbol name followed by C symbol from nm.
2923 echo "$as_me:2923: checking command to parse $NM output" >&5
2924 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2925 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2926   echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928
2929 # These are sane defaults that work on at least a few old systems.
2930 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
2931
2932 # Character class describing NM global symbol codes.
2933 symcode='[BCDEGRST]'
2934
2935 # Regexp to match symbols that can be accessed directly from C.
2936 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2937
2938 # Transform the above into a raw symbol and a C symbol.
2939 symxfrm='\1 \2\3 \3'
2940
2941 # Transform an extracted symbol line into a proper C declaration
2942 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2943
2944 # Transform an extracted symbol line into symbol name and symbol address
2945 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'"
2946
2947 # Define system-specific variables.
2948 case $host_os in
2949 aix*)
2950   symcode='[BCDT]'
2951   ;;
2952 cygwin* | mingw* | pw32*)
2953   symcode='[ABCDGISTW]'
2954   ;;
2955 hpux*) # Its linker distinguishes data from code symbols
2956   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2957   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'"
2958   ;;
2959 irix*)
2960   symcode='[BCDEGRST]'
2961   ;;
2962 solaris* | sysv5*)
2963   symcode='[BDT]'
2964   ;;
2965 sysv4)
2966   symcode='[DFNSTU]'
2967   ;;
2968 esac
2969
2970 # Handle CRLF in mingw tool chain
2971 opt_cr=
2972 case $host_os in
2973 mingw*)
2974   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2975   ;;
2976 esac
2977
2978 # If we're using GNU nm, then use its standard symbol codes.
2979 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2980   symcode='[ABCDGISTW]'
2981 fi
2982
2983 # Try without a prefix undercore, then with it.
2984 for ac_symprfx in "" "_"; do
2985
2986   # Write the raw and C identifiers.
2987 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2988
2989   # Check to see that the pipe works correctly.
2990   pipe_works=no
2991   rm -f conftest*
2992   cat > conftest.$ac_ext <<EOF
2993 #ifdef __cplusplus
2994 extern "C" {
2995 #endif
2996 char nm_test_var;
2997 void nm_test_func(){}
2998 #ifdef __cplusplus
2999 }
3000 #endif
3001 int main(){nm_test_var='a';nm_test_func();return(0);}
3002 EOF
3003
3004   if { (eval echo "$as_me:3004: \"$ac_compile\"") >&5
3005   (eval $ac_compile) 2>&5
3006   ac_status=$?
3007   echo "$as_me:3007: \$? = $ac_status" >&5
3008   (exit $ac_status); }; then
3009     # Now try to grab the symbols.
3010     nlist=conftest.nm
3011     if { (eval echo "$as_me:3011: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3012   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3013   ac_status=$?
3014   echo "$as_me:3014: \$? = $ac_status" >&5
3015   (exit $ac_status); } && test -s "$nlist"; then
3016       # Try sorting and uniquifying the output.
3017       if sort "$nlist" | uniq > "$nlist"T; then
3018         mv -f "$nlist"T "$nlist"
3019       else
3020         rm -f "$nlist"T
3021       fi
3022
3023       # Make sure that we snagged all the symbols we need.
3024       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3025         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3026           cat <<EOF > conftest.$ac_ext
3027 #ifdef __cplusplus
3028 extern "C" {
3029 #endif
3030
3031 EOF
3032           # Now generate the symbol file.
3033           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3034
3035           cat <<EOF >> conftest.$ac_ext
3036 #if defined (__STDC__) && __STDC__
3037 # define lt_ptr void *
3038 #else
3039 # define lt_ptr char *
3040 # define const
3041 #endif
3042
3043 /* The mapping between symbol names and symbols. */
3044 const struct {
3045   const char *name;
3046   lt_ptr address;
3047 }
3048 lt_preloaded_symbols[] =
3049 {
3050 EOF
3051           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3052           cat <<\EOF >> conftest.$ac_ext
3053   {0, (lt_ptr) 0}
3054 };
3055
3056 #ifdef __cplusplus
3057 }
3058 #endif
3059 EOF
3060           # Now try linking the two files.
3061           mv conftest.$ac_objext conftstm.$ac_objext
3062           save_LIBS="$LIBS"
3063           save_CFLAGS="$CFLAGS"
3064           LIBS="conftstm.$ac_objext"
3065           CFLAGS="$CFLAGS$no_builtin_flag"
3066           if { (eval echo "$as_me:3066: \"$ac_link\"") >&5
3067   (eval $ac_link) 2>&5
3068   ac_status=$?
3069   echo "$as_me:3069: \$? = $ac_status" >&5
3070   (exit $ac_status); } && test -s conftest; then
3071             pipe_works=yes
3072           fi
3073           LIBS="$save_LIBS"
3074           CFLAGS="$save_CFLAGS"
3075         else
3076           echo "cannot find nm_test_func in $nlist" >&5
3077         fi
3078       else
3079         echo "cannot find nm_test_var in $nlist" >&5
3080       fi
3081     else
3082       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3083     fi
3084   else
3085     echo "$progname: failed program was:" >&5
3086     cat conftest.$ac_ext >&5
3087   fi
3088   rm -f conftest* conftst*
3089
3090   # Do not use the global_symbol_pipe unless it works.
3091   if test "$pipe_works" = yes; then
3092     break
3093   else
3094     lt_cv_sys_global_symbol_pipe=
3095   fi
3096 done
3097
3098 fi
3099
3100 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3101 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3102   global_symbol_to_cdecl=
3103   global_symbol_to_c_name_address=
3104 else
3105   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3106   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3107 fi
3108 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3109 then
3110   echo "$as_me:3110: result: failed" >&5
3111 echo "${ECHO_T}failed" >&6
3112 else
3113   echo "$as_me:3113: result: ok" >&5
3114 echo "${ECHO_T}ok" >&6
3115 fi
3116
3117 ac_ext=c
3118 ac_cpp='$CPP $CPPFLAGS'
3119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122 echo "$as_me:3122: checking how to run the C preprocessor" >&5
3123 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3124 # On Suns, sometimes $CPP names a directory.
3125 if test -n "$CPP" && test -d "$CPP"; then
3126   CPP=
3127 fi
3128 if test -z "$CPP"; then
3129   if test "${ac_cv_prog_CPP+set}" = set; then
3130   echo $ECHO_N "(cached) $ECHO_C" >&6
3131 else
3132       # Double quotes because CPP needs to be expanded
3133     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3134     do
3135       ac_preproc_ok=false
3136 for ac_c_preproc_warn_flag in '' yes
3137 do
3138   # Use a header file that comes with gcc, so configuring glibc
3139   # with a fresh cross-compiler works.
3140   # On the NeXT, cc -E runs the code through the compiler's parser,
3141   # not just through cpp. "Syntax error" is here to catch this case.
3142   cat >conftest.$ac_ext <<_ACEOF
3143 #line 3143 "configure"
3144 #include "confdefs.h"
3145 #include <assert.h>
3146                      Syntax error
3147 _ACEOF
3148 if { (eval echo "$as_me:3148: \"$ac_cpp conftest.$ac_ext\"") >&5
3149   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3150   ac_status=$?
3151   egrep -v '^ *\+' conftest.er1 >conftest.err
3152   rm -f conftest.er1
3153   cat conftest.err >&5
3154   echo "$as_me:3154: \$? = $ac_status" >&5
3155   (exit $ac_status); } >/dev/null; then
3156   if test -s conftest.err; then
3157     ac_cpp_err=$ac_c_preproc_warn_flag
3158   else
3159     ac_cpp_err=
3160   fi
3161 else
3162   ac_cpp_err=yes
3163 fi
3164 if test -z "$ac_cpp_err"; then
3165   :
3166 else
3167   echo "$as_me: failed program was:" >&5
3168   cat conftest.$ac_ext >&5
3169   # Broken: fails on valid input.
3170 continue
3171 fi
3172 rm -f conftest.err conftest.$ac_ext
3173
3174   # OK, works on sane cases.  Now check whether non-existent headers
3175   # can be detected and how.
3176   cat >conftest.$ac_ext <<_ACEOF
3177 #line 3177 "configure"
3178 #include "confdefs.h"
3179 #include <ac_nonexistent.h>
3180 _ACEOF
3181 if { (eval echo "$as_me:3181: \"$ac_cpp conftest.$ac_ext\"") >&5
3182   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3183   ac_status=$?
3184   egrep -v '^ *\+' conftest.er1 >conftest.err
3185   rm -f conftest.er1
3186   cat conftest.err >&5
3187   echo "$as_me:3187: \$? = $ac_status" >&5
3188   (exit $ac_status); } >/dev/null; then
3189   if test -s conftest.err; then
3190     ac_cpp_err=$ac_c_preproc_warn_flag
3191   else
3192     ac_cpp_err=
3193   fi
3194 else
3195   ac_cpp_err=yes
3196 fi
3197 if test -z "$ac_cpp_err"; then
3198   # Broken: success on invalid input.
3199 continue
3200 else
3201   echo "$as_me: failed program was:" >&5
3202   cat conftest.$ac_ext >&5
3203   # Passes both tests.
3204 ac_preproc_ok=:
3205 break
3206 fi
3207 rm -f conftest.err conftest.$ac_ext
3208
3209 done
3210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3211 rm -f conftest.err conftest.$ac_ext
3212 if $ac_preproc_ok; then
3213   break
3214 fi
3215
3216     done
3217     ac_cv_prog_CPP=$CPP
3218
3219 fi
3220   CPP=$ac_cv_prog_CPP
3221 else
3222   ac_cv_prog_CPP=$CPP
3223 fi
3224 echo "$as_me:3224: result: $CPP" >&5
3225 echo "${ECHO_T}$CPP" >&6
3226 ac_preproc_ok=false
3227 for ac_c_preproc_warn_flag in '' yes
3228 do
3229   # Use a header file that comes with gcc, so configuring glibc
3230   # with a fresh cross-compiler works.
3231   # On the NeXT, cc -E runs the code through the compiler's parser,
3232   # not just through cpp. "Syntax error" is here to catch this case.
3233   cat >conftest.$ac_ext <<_ACEOF
3234 #line 3234 "configure"
3235 #include "confdefs.h"
3236 #include <assert.h>
3237                      Syntax error
3238 _ACEOF
3239 if { (eval echo "$as_me:3239: \"$ac_cpp conftest.$ac_ext\"") >&5
3240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241   ac_status=$?
3242   egrep -v '^ *\+' conftest.er1 >conftest.err
3243   rm -f conftest.er1
3244   cat conftest.err >&5
3245   echo "$as_me:3245: \$? = $ac_status" >&5
3246   (exit $ac_status); } >/dev/null; then
3247   if test -s conftest.err; then
3248     ac_cpp_err=$ac_c_preproc_warn_flag
3249   else
3250     ac_cpp_err=
3251   fi
3252 else
3253   ac_cpp_err=yes
3254 fi
3255 if test -z "$ac_cpp_err"; then
3256   :
3257 else
3258   echo "$as_me: failed program was:" >&5
3259   cat conftest.$ac_ext >&5
3260   # Broken: fails on valid input.
3261 continue
3262 fi
3263 rm -f conftest.err conftest.$ac_ext
3264
3265   # OK, works on sane cases.  Now check whether non-existent headers
3266   # can be detected and how.
3267   cat >conftest.$ac_ext <<_ACEOF
3268 #line 3268 "configure"
3269 #include "confdefs.h"
3270 #include <ac_nonexistent.h>
3271 _ACEOF
3272 if { (eval echo "$as_me:3272: \"$ac_cpp conftest.$ac_ext\"") >&5
3273   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3274   ac_status=$?
3275   egrep -v '^ *\+' conftest.er1 >conftest.err
3276   rm -f conftest.er1
3277   cat conftest.err >&5
3278   echo "$as_me:3278: \$? = $ac_status" >&5
3279   (exit $ac_status); } >/dev/null; then
3280   if test -s conftest.err; then
3281     ac_cpp_err=$ac_c_preproc_warn_flag
3282   else
3283     ac_cpp_err=
3284   fi
3285 else
3286   ac_cpp_err=yes
3287 fi
3288 if test -z "$ac_cpp_err"; then
3289   # Broken: success on invalid input.
3290 continue
3291 else
3292   echo "$as_me: failed program was:" >&5
3293   cat conftest.$ac_ext >&5
3294   # Passes both tests.
3295 ac_preproc_ok=:
3296 break
3297 fi
3298 rm -f conftest.err conftest.$ac_ext
3299
3300 done
3301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3302 rm -f conftest.err conftest.$ac_ext
3303 if $ac_preproc_ok; then
3304   :
3305 else
3306   { { echo "$as_me:3306: error: C preprocessor \"$CPP\" fails sanity check" >&5
3307 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3308    { (exit 1); exit 1; }; }
3309 fi
3310
3311 ac_ext=c
3312 ac_cpp='$CPP $CPPFLAGS'
3313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3316
3317 for ac_header in dlfcn.h
3318 do
3319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3320 echo "$as_me:3320: checking for $ac_header" >&5
3321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3323   echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325   cat >conftest.$ac_ext <<_ACEOF
3326 #line 3326 "configure"
3327 #include "confdefs.h"
3328 #include <$ac_header>
3329 _ACEOF
3330 if { (eval echo "$as_me:3330: \"$ac_cpp conftest.$ac_ext\"") >&5
3331   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3332   ac_status=$?
3333   egrep -v '^ *\+' conftest.er1 >conftest.err
3334   rm -f conftest.er1
3335   cat conftest.err >&5
3336   echo "$as_me:3336: \$? = $ac_status" >&5
3337   (exit $ac_status); } >/dev/null; then
3338   if test -s conftest.err; then
3339     ac_cpp_err=$ac_c_preproc_warn_flag
3340   else
3341     ac_cpp_err=
3342   fi
3343 else
3344   ac_cpp_err=yes
3345 fi
3346 if test -z "$ac_cpp_err"; then
3347   eval "$as_ac_Header=yes"
3348 else
3349   echo "$as_me: failed program was:" >&5
3350   cat conftest.$ac_ext >&5
3351   eval "$as_ac_Header=no"
3352 fi
3353 rm -f conftest.err conftest.$ac_ext
3354 fi
3355 echo "$as_me:3355: result: `eval echo '${'$as_ac_Header'}'`" >&5
3356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3358   cat >>confdefs.h <<EOF
3359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3360 EOF
3361
3362 fi
3363 done
3364
3365 # Only perform the check for file, if the check method requires it
3366 case $deplibs_check_method in
3367 file_magic*)
3368   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3369     echo "$as_me:3369: checking for ${ac_tool_prefix}file" >&5
3370 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3371 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3372   echo $ECHO_N "(cached) $ECHO_C" >&6
3373 else
3374   case $MAGIC_CMD in
3375   /*)
3376   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3377   ;;
3378   ?:/*)
3379   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3380   ;;
3381   *)
3382   ac_save_MAGIC_CMD="$MAGIC_CMD"
3383   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3384   ac_dummy="/usr/bin:$PATH"
3385   for ac_dir in $ac_dummy; do
3386     test -z "$ac_dir" && ac_dir=.
3387     if test -f $ac_dir/${ac_tool_prefix}file; then
3388       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3389       if test -n "$file_magic_test_file"; then
3390         case $deplibs_check_method in
3391         "file_magic "*)
3392           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3393           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3394           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3395             egrep "$file_magic_regex" > /dev/null; then
3396             :
3397           else
3398             cat <<EOF 1>&2
3399
3400 *** Warning: the command libtool uses to detect shared libraries,
3401 *** $file_magic_cmd, produces output that libtool cannot recognize.
3402 *** The result is that libtool may fail to recognize shared libraries
3403 *** as such.  This will affect the creation of libtool libraries that
3404 *** depend on shared libraries, but programs linked with such libtool
3405 *** libraries will work regardless of this problem.  Nevertheless, you
3406 *** may want to report the problem to your system manager and/or to
3407 *** bug-libtool@gnu.org
3408
3409 EOF
3410           fi ;;
3411         esac
3412       fi
3413       break
3414     fi
3415   done
3416   IFS="$ac_save_ifs"
3417   MAGIC_CMD="$ac_save_MAGIC_CMD"
3418   ;;
3419 esac
3420 fi
3421
3422 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3423 if test -n "$MAGIC_CMD"; then
3424   echo "$as_me:3424: result: $MAGIC_CMD" >&5
3425 echo "${ECHO_T}$MAGIC_CMD" >&6
3426 else
3427   echo "$as_me:3427: result: no" >&5
3428 echo "${ECHO_T}no" >&6
3429 fi
3430
3431 if test -z "$lt_cv_path_MAGIC_CMD"; then
3432   if test -n "$ac_tool_prefix"; then
3433     echo "$as_me:3433: checking for file" >&5
3434 echo $ECHO_N "checking for file... $ECHO_C" >&6
3435 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3436   echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438   case $MAGIC_CMD in
3439   /*)
3440   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3441   ;;
3442   ?:/*)
3443   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3444   ;;
3445   *)
3446   ac_save_MAGIC_CMD="$MAGIC_CMD"
3447   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3448   ac_dummy="/usr/bin:$PATH"
3449   for ac_dir in $ac_dummy; do
3450     test -z "$ac_dir" && ac_dir=.
3451     if test -f $ac_dir/file; then
3452       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3453       if test -n "$file_magic_test_file"; then
3454         case $deplibs_check_method in
3455         "file_magic "*)
3456           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3457           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3458           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3459             egrep "$file_magic_regex" > /dev/null; then
3460             :
3461           else
3462             cat <<EOF 1>&2
3463
3464 *** Warning: the command libtool uses to detect shared libraries,
3465 *** $file_magic_cmd, produces output that libtool cannot recognize.
3466 *** The result is that libtool may fail to recognize shared libraries
3467 *** as such.  This will affect the creation of libtool libraries that
3468 *** depend on shared libraries, but programs linked with such libtool
3469 *** libraries will work regardless of this problem.  Nevertheless, you
3470 *** may want to report the problem to your system manager and/or to
3471 *** bug-libtool@gnu.org
3472
3473 EOF
3474           fi ;;
3475         esac
3476       fi
3477       break
3478     fi
3479   done
3480   IFS="$ac_save_ifs"
3481   MAGIC_CMD="$ac_save_MAGIC_CMD"
3482   ;;
3483 esac
3484 fi
3485
3486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3487 if test -n "$MAGIC_CMD"; then
3488   echo "$as_me:3488: result: $MAGIC_CMD" >&5
3489 echo "${ECHO_T}$MAGIC_CMD" >&6
3490 else
3491   echo "$as_me:3491: result: no" >&5
3492 echo "${ECHO_T}no" >&6
3493 fi
3494
3495   else
3496     MAGIC_CMD=:
3497   fi
3498 fi
3499
3500   fi
3501   ;;
3502 esac
3503
3504 if test -n "$ac_tool_prefix"; then
3505   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3506 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3507 echo "$as_me:3507: checking for $ac_word" >&5
3508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3509 if test "${ac_cv_prog_RANLIB+set}" = set; then
3510   echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512   if test -n "$RANLIB"; then
3513   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3514 else
3515   ac_save_IFS=$IFS; IFS=$ac_path_separator
3516 ac_dummy="$PATH"
3517 for ac_dir in $ac_dummy; do
3518   IFS=$ac_save_IFS
3519   test -z "$ac_dir" && ac_dir=.
3520   $as_executable_p "$ac_dir/$ac_word" || continue
3521 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3522 echo "$as_me:3522: found $ac_dir/$ac_word" >&5
3523 break
3524 done
3525
3526 fi
3527 fi
3528 RANLIB=$ac_cv_prog_RANLIB
3529 if test -n "$RANLIB"; then
3530   echo "$as_me:3530: result: $RANLIB" >&5
3531 echo "${ECHO_T}$RANLIB" >&6
3532 else
3533   echo "$as_me:3533: result: no" >&5
3534 echo "${ECHO_T}no" >&6
3535 fi
3536
3537 fi
3538 if test -z "$ac_cv_prog_RANLIB"; then
3539   ac_ct_RANLIB=$RANLIB
3540   # Extract the first word of "ranlib", so it can be a program name with args.
3541 set dummy ranlib; ac_word=$2
3542 echo "$as_me:3542: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547   if test -n "$ac_ct_RANLIB"; then
3548   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3549 else
3550   ac_save_IFS=$IFS; IFS=$ac_path_separator
3551 ac_dummy="$PATH"
3552 for ac_dir in $ac_dummy; do
3553   IFS=$ac_save_IFS
3554   test -z "$ac_dir" && ac_dir=.
3555   $as_executable_p "$ac_dir/$ac_word" || continue
3556 ac_cv_prog_ac_ct_RANLIB="ranlib"
3557 echo "$as_me:3557: found $ac_dir/$ac_word" >&5
3558 break
3559 done
3560
3561   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3562 fi
3563 fi
3564 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3565 if test -n "$ac_ct_RANLIB"; then
3566   echo "$as_me:3566: result: $ac_ct_RANLIB" >&5
3567 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3568 else
3569   echo "$as_me:3569: result: no" >&5
3570 echo "${ECHO_T}no" >&6
3571 fi
3572
3573   RANLIB=$ac_ct_RANLIB
3574 else
3575   RANLIB="$ac_cv_prog_RANLIB"
3576 fi
3577
3578 if test -n "$ac_tool_prefix"; then
3579   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3580 set dummy ${ac_tool_prefix}strip; ac_word=$2
3581 echo "$as_me:3581: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3583 if test "${ac_cv_prog_STRIP+set}" = set; then
3584   echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586   if test -n "$STRIP"; then
3587   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3588 else
3589   ac_save_IFS=$IFS; IFS=$ac_path_separator
3590 ac_dummy="$PATH"
3591 for ac_dir in $ac_dummy; do
3592   IFS=$ac_save_IFS
3593   test -z "$ac_dir" && ac_dir=.
3594   $as_executable_p "$ac_dir/$ac_word" || continue
3595 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3596 echo "$as_me:3596: found $ac_dir/$ac_word" >&5
3597 break
3598 done
3599
3600 fi
3601 fi
3602 STRIP=$ac_cv_prog_STRIP
3603 if test -n "$STRIP"; then
3604   echo "$as_me:3604: result: $STRIP" >&5
3605 echo "${ECHO_T}$STRIP" >&6
3606 else
3607   echo "$as_me:3607: result: no" >&5
3608 echo "${ECHO_T}no" >&6
3609 fi
3610
3611 fi
3612 if test -z "$ac_cv_prog_STRIP"; then
3613   ac_ct_STRIP=$STRIP
3614   # Extract the first word of "strip", so it can be a program name with args.
3615 set dummy strip; ac_word=$2
3616 echo "$as_me:3616: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   if test -n "$ac_ct_STRIP"; then
3622   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3623 else
3624   ac_save_IFS=$IFS; IFS=$ac_path_separator
3625 ac_dummy="$PATH"
3626 for ac_dir in $ac_dummy; do
3627   IFS=$ac_save_IFS
3628   test -z "$ac_dir" && ac_dir=.
3629   $as_executable_p "$ac_dir/$ac_word" || continue
3630 ac_cv_prog_ac_ct_STRIP="strip"
3631 echo "$as_me:3631: found $ac_dir/$ac_word" >&5
3632 break
3633 done
3634
3635   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3636 fi
3637 fi
3638 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3639 if test -n "$ac_ct_STRIP"; then
3640   echo "$as_me:3640: result: $ac_ct_STRIP" >&5
3641 echo "${ECHO_T}$ac_ct_STRIP" >&6
3642 else
3643   echo "$as_me:3643: result: no" >&5
3644 echo "${ECHO_T}no" >&6
3645 fi
3646
3647   STRIP=$ac_ct_STRIP
3648 else
3649   STRIP="$ac_cv_prog_STRIP"
3650 fi
3651
3652 enable_dlopen=no
3653 enable_win32_dll=no
3654
3655 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3656 if test "${enable_libtool_lock+set}" = set; then
3657   enableval="$enable_libtool_lock"
3658
3659 fi;
3660 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3661
3662 # Some flags need to be propagated to the compiler or linker for good
3663 # libtool support.
3664 case $host in
3665 *-*-irix6*)
3666   # Find out which ABI we are using.
3667   echo '#line 3667 "configure"' > conftest.$ac_ext
3668   if { (eval echo "$as_me:3668: \"$ac_compile\"") >&5
3669   (eval $ac_compile) 2>&5
3670   ac_status=$?
3671   echo "$as_me:3671: \$? = $ac_status" >&5
3672   (exit $ac_status); }; then
3673     case `/usr/bin/file conftest.$ac_objext` in
3674     *32-bit*)
3675       LD="${LD-ld} -32"
3676       ;;
3677     *N32*)
3678       LD="${LD-ld} -n32"
3679       ;;
3680     *64-bit*)
3681       LD="${LD-ld} -64"
3682       ;;
3683     esac
3684   fi
3685   rm -rf conftest*
3686   ;;
3687
3688 *-*-sco3.2v5*)
3689   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3690   SAVE_CFLAGS="$CFLAGS"
3691   CFLAGS="$CFLAGS -belf"
3692   echo "$as_me:3692: checking whether the C compiler needs -belf" >&5
3693 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3694 if test "${lt_cv_cc_needs_belf+set}" = set; then
3695   echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697
3698      ac_ext=c
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703
3704      cat >conftest.$ac_ext <<_ACEOF
3705 #line 3705 "configure"
3706 #include "confdefs.h"
3707
3708 int
3709 main ()
3710 {
3711
3712   ;
3713   return 0;
3714 }
3715 _ACEOF
3716 rm -f conftest.$ac_objext conftest$ac_exeext
3717 if { (eval echo "$as_me:3717: \"$ac_link\"") >&5
3718   (eval $ac_link) 2>&5
3719   ac_status=$?
3720   echo "$as_me:3720: \$? = $ac_status" >&5
3721   (exit $ac_status); } &&
3722          { ac_try='test -s conftest$ac_exeext'
3723   { (eval echo "$as_me:3723: \"$ac_try\"") >&5
3724   (eval $ac_try) 2>&5
3725   ac_status=$?
3726   echo "$as_me:3726: \$? = $ac_status" >&5
3727   (exit $ac_status); }; }; then
3728   lt_cv_cc_needs_belf=yes
3729 else
3730   echo "$as_me: failed program was:" >&5
3731 cat conftest.$ac_ext >&5
3732 lt_cv_cc_needs_belf=no
3733 fi
3734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3735      ac_ext=c
3736 ac_cpp='$CPP $CPPFLAGS'
3737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740
3741 fi
3742 echo "$as_me:3742: result: $lt_cv_cc_needs_belf" >&5
3743 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3744   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3745     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3746     CFLAGS="$SAVE_CFLAGS"
3747   fi
3748   ;;
3749
3750 esac
3751
3752 # Sed substitution that helps us do robust quoting.  It backslashifies
3753 # metacharacters that are still active within double-quoted strings.
3754 Xsed='sed -e s/^X//'
3755 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3756
3757 # Same as above, but do not quote variable references.
3758 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3759
3760 # Sed substitution to delay expansion of an escaped shell variable in a
3761 # double_quote_subst'ed string.
3762 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3763
3764 # Constants:
3765 rm="rm -f"
3766
3767 # Global variables:
3768 default_ofile=libtool
3769 can_build_shared=yes
3770
3771 # All known linkers require a `.a' archive for static linking (except M$VC,
3772 # which needs '.lib').
3773 libext=a
3774 ltmain="$ac_aux_dir/ltmain.sh"
3775 ofile="$default_ofile"
3776 with_gnu_ld="$lt_cv_prog_gnu_ld"
3777 need_locks="$enable_libtool_lock"
3778
3779 old_CC="$CC"
3780 old_CFLAGS="$CFLAGS"
3781
3782 # Set sane defaults for various variables
3783 test -z "$AR" && AR=ar
3784 test -z "$AR_FLAGS" && AR_FLAGS=cru
3785 test -z "$AS" && AS=as
3786 test -z "$CC" && CC=cc
3787 test -z "$DLLTOOL" && DLLTOOL=dlltool
3788 test -z "$LD" && LD=ld
3789 test -z "$LN_S" && LN_S="ln -s"
3790 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3791 test -z "$NM" && NM=nm
3792 test -z "$OBJDUMP" && OBJDUMP=objdump
3793 test -z "$RANLIB" && RANLIB=:
3794 test -z "$STRIP" && STRIP=:
3795 test -z "$ac_objext" && ac_objext=o
3796
3797 if test x"$host" != x"$build"; then
3798   ac_tool_prefix=${host_alias}-
3799 else
3800   ac_tool_prefix=
3801 fi
3802
3803 case $host_os in
3804 aix3*)
3805   # AIX sometimes has problems with the GCC collect2 program.  For some
3806   # reason, if we set the COLLECT_NAMES environment variable, the problems
3807   # vanish in a puff of smoke.
3808   if test "X${COLLECT_NAMES+set}" != Xset; then
3809     COLLECT_NAMES=
3810     export COLLECT_NAMES
3811   fi
3812   ;;
3813 esac
3814
3815 # Determine commands to create old-style static archives.
3816 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3817 old_postinstall_cmds='chmod 644 $oldlib'
3818 old_postuninstall_cmds=
3819
3820 if test -n "$RANLIB"; then
3821   case $host_os in
3822   openbsd*)
3823     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3824     ;;
3825   *)
3826     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3827     ;;
3828   esac
3829   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3830 fi
3831
3832 # Allow CC to be a program name with arguments.
3833 set dummy $CC
3834 compiler="$2"
3835
3836 echo "$as_me:3836: checking for objdir" >&5
3837 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3838 rm -f .libs 2>/dev/null
3839 mkdir .libs 2>/dev/null
3840 if test -d .libs; then
3841   objdir=.libs
3842 else
3843   # MS-DOS does not allow filenames that begin with a dot.
3844   objdir=_libs
3845 fi
3846 rmdir .libs 2>/dev/null
3847 echo "$as_me:3847: result: $objdir" >&5
3848 echo "${ECHO_T}$objdir" >&6
3849
3850 # Check whether --with-pic or --without-pic was given.
3851 if test "${with_pic+set}" = set; then
3852   withval="$with_pic"
3853   pic_mode="$withval"
3854 else
3855   pic_mode=default
3856 fi;
3857 test -z "$pic_mode" && pic_mode=default
3858
3859 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3860 # in isolation, and that seeing it set (from the cache) indicates that
3861 # the associated values are set (in the cache) correctly too.
3862 echo "$as_me:3862: checking for $compiler option to produce PIC" >&5
3863 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3864 if test "${lt_cv_prog_cc_pic+set}" = set; then
3865   echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867    lt_cv_prog_cc_pic=
3868   lt_cv_prog_cc_shlib=
3869   lt_cv_prog_cc_wl=
3870   lt_cv_prog_cc_static=
3871   lt_cv_prog_cc_no_builtin=
3872   lt_cv_prog_cc_can_build_shared=$can_build_shared
3873
3874   if test "$GCC" = yes; then
3875     lt_cv_prog_cc_wl='-Wl,'
3876     lt_cv_prog_cc_static='-static'
3877
3878     case $host_os in
3879     aix*)
3880       # Below there is a dirty hack to force normal static linking with -ldl
3881       # The problem is because libdl dynamically linked with both libc and
3882       # libC (AIX C++ library), which obviously doesn't included in libraries
3883       # list by gcc. This cause undefined symbols with -static flags.
3884       # This hack allows C programs to be linked with "-static -ldl", but
3885       # not sure about C++ programs.
3886       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3887       ;;
3888     amigaos*)
3889       # FIXME: we need at least 68020 code to build shared libraries, but
3890       # adding the `-m68020' flag to GCC prevents building anything better,
3891       # like `-m68040'.
3892       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3893       ;;
3894     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3895       # PIC is the default for these OSes.
3896       ;;
3897     darwin* | rhapsody*)
3898       # PIC is the default on this platform
3899       # Common symbols not allowed in MH_DYLIB files
3900       lt_cv_prog_cc_pic='-fno-common'
3901       ;;
3902     cygwin* | mingw* | pw32* | os2*)
3903       # This hack is so that the source file can tell whether it is being
3904       # built for inclusion in a dll (and should export symbols for example).
3905       lt_cv_prog_cc_pic='-DDLL_EXPORT'
3906       ;;
3907     sysv4*MP*)
3908       if test -d /usr/nec; then
3909          lt_cv_prog_cc_pic=-Kconform_pic
3910       fi
3911       ;;
3912     *)
3913       lt_cv_prog_cc_pic='-fPIC'
3914       ;;
3915     esac
3916   else
3917     # PORTME Check for PIC flags for the system compiler.
3918     case $host_os in
3919     aix3* | aix4* | aix5*)
3920       lt_cv_prog_cc_wl='-Wl,'
3921       # All AIX code is PIC.
3922       if test "$host_cpu" = ia64; then
3923         # AIX 5 now supports IA64 processor
3924         lt_cv_prog_cc_static='-Bstatic'
3925       else
3926         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3927       fi
3928       ;;
3929
3930     hpux9* | hpux10* | hpux11*)
3931       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3932       lt_cv_prog_cc_wl='-Wl,'
3933       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3934       lt_cv_prog_cc_pic='+Z'
3935       ;;
3936
3937     irix5* | irix6*)
3938       lt_cv_prog_cc_wl='-Wl,'
3939       lt_cv_prog_cc_static='-non_shared'
3940       # PIC (with -KPIC) is the default.
3941       ;;
3942
3943     cygwin* | mingw* | pw32* | os2*)
3944       # This hack is so that the source file can tell whether it is being
3945       # built for inclusion in a dll (and should export symbols for example).
3946       lt_cv_prog_cc_pic='-DDLL_EXPORT'
3947       ;;
3948
3949     newsos6)
3950       lt_cv_prog_cc_pic='-KPIC'
3951       lt_cv_prog_cc_static='-Bstatic'
3952       ;;
3953
3954     osf3* | osf4* | osf5*)
3955       # All OSF/1 code is PIC.
3956       lt_cv_prog_cc_wl='-Wl,'
3957       lt_cv_prog_cc_static='-non_shared'
3958       ;;
3959
3960     sco3.2v5*)
3961       lt_cv_prog_cc_pic='-Kpic'
3962       lt_cv_prog_cc_static='-dn'
3963       lt_cv_prog_cc_shlib='-belf'
3964       ;;
3965
3966     solaris*)
3967       lt_cv_prog_cc_pic='-KPIC'
3968       lt_cv_prog_cc_static='-Bstatic'
3969       lt_cv_prog_cc_wl='-Wl,'
3970       ;;
3971
3972     sunos4*)
3973       lt_cv_prog_cc_pic='-PIC'
3974       lt_cv_prog_cc_static='-Bstatic'
3975       lt_cv_prog_cc_wl='-Qoption ld '
3976       ;;
3977
3978     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3979       lt_cv_prog_cc_pic='-KPIC'
3980       lt_cv_prog_cc_static='-Bstatic'
3981       if test "x$host_vendor" = xsni; then
3982         lt_cv_prog_cc_wl='-LD'
3983       else
3984         lt_cv_prog_cc_wl='-Wl,'
3985       fi
3986       ;;
3987
3988     uts4*)
3989       lt_cv_prog_cc_pic='-pic'
3990       lt_cv_prog_cc_static='-Bstatic'
3991       ;;
3992
3993     sysv4*MP*)
3994       if test -d /usr/nec ;then
3995         lt_cv_prog_cc_pic='-Kconform_pic'
3996         lt_cv_prog_cc_static='-Bstatic'
3997       fi
3998       ;;
3999
4000     *)
4001       lt_cv_prog_cc_can_build_shared=no
4002       ;;
4003     esac
4004   fi
4005
4006 fi
4007
4008 if test -z "$lt_cv_prog_cc_pic"; then
4009   echo "$as_me:4009: result: none" >&5
4010 echo "${ECHO_T}none" >&6
4011 else
4012   echo "$as_me:4012: result: $lt_cv_prog_cc_pic" >&5
4013 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4014
4015   # Check to make sure the pic_flag actually works.
4016   echo "$as_me:4016: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4017 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4018   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4019   echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021       save_CFLAGS="$CFLAGS"
4022     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4023     cat >conftest.$ac_ext <<_ACEOF
4024 #line 4024 "configure"
4025 #include "confdefs.h"
4026
4027 int
4028 main ()
4029 {
4030
4031   ;
4032   return 0;
4033 }
4034 _ACEOF
4035 rm -f conftest.$ac_objext
4036 if { (eval echo "$as_me:4036: \"$ac_compile\"") >&5
4037   (eval $ac_compile) 2>&5
4038   ac_status=$?
4039   echo "$as_me:4039: \$? = $ac_status" >&5
4040   (exit $ac_status); } &&
4041          { ac_try='test -s conftest.$ac_objext'
4042   { (eval echo "$as_me:4042: \"$ac_try\"") >&5
4043   (eval $ac_try) 2>&5
4044   ac_status=$?
4045   echo "$as_me:4045: \$? = $ac_status" >&5
4046   (exit $ac_status); }; }; then
4047         case $host_os in
4048       hpux9* | hpux10* | hpux11*)
4049         # On HP-UX, both CC and GCC only warn that PIC is supported... then
4050         # they create non-PIC objects.  So, if there were any warnings, we
4051         # assume that PIC is not supported.
4052         if test -s conftest.err; then
4053           lt_cv_prog_cc_pic_works=no
4054         else
4055           lt_cv_prog_cc_pic_works=yes
4056         fi
4057         ;;
4058       *)
4059         lt_cv_prog_cc_pic_works=yes
4060         ;;
4061       esac
4062
4063 else
4064   echo "$as_me: failed program was:" >&5
4065 cat conftest.$ac_ext >&5
4066       lt_cv_prog_cc_pic_works=no
4067
4068 fi
4069 rm -f conftest.$ac_objext conftest.$ac_ext
4070     CFLAGS="$save_CFLAGS"
4071
4072 fi
4073
4074   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4075     lt_cv_prog_cc_pic=
4076     lt_cv_prog_cc_can_build_shared=no
4077   else
4078     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4079   fi
4080
4081   echo "$as_me:4081: result: $lt_cv_prog_cc_pic_works" >&5
4082 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4083 fi
4084
4085 # Check for any special shared library compilation flags.
4086 if test -n "$lt_cv_prog_cc_shlib"; then
4087   { echo "$as_me:4087: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4088 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4089   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
4090   else
4091    { echo "$as_me:4091: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4092 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4093     lt_cv_prog_cc_can_build_shared=no
4094   fi
4095 fi
4096
4097 echo "$as_me:4097: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4098 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4099 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4100   echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102     lt_cv_prog_cc_static_works=no
4103   save_LDFLAGS="$LDFLAGS"
4104   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4105   cat >conftest.$ac_ext <<_ACEOF
4106 #line 4106 "configure"
4107 #include "confdefs.h"
4108
4109 int
4110 main ()
4111 {
4112
4113   ;
4114   return 0;
4115 }
4116 _ACEOF
4117 rm -f conftest.$ac_objext conftest$ac_exeext
4118 if { (eval echo "$as_me:4118: \"$ac_link\"") >&5
4119   (eval $ac_link) 2>&5
4120   ac_status=$?
4121   echo "$as_me:4121: \$? = $ac_status" >&5
4122   (exit $ac_status); } &&
4123          { ac_try='test -s conftest$ac_exeext'
4124   { (eval echo "$as_me:4124: \"$ac_try\"") >&5
4125   (eval $ac_try) 2>&5
4126   ac_status=$?
4127   echo "$as_me:4127: \$? = $ac_status" >&5
4128   (exit $ac_status); }; }; then
4129   lt_cv_prog_cc_static_works=yes
4130 else
4131   echo "$as_me: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4133 fi
4134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4135   LDFLAGS="$save_LDFLAGS"
4136
4137 fi
4138
4139 # Belt *and* braces to stop my trousers falling down:
4140 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4141 echo "$as_me:4141: result: $lt_cv_prog_cc_static_works" >&5
4142 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4143
4144 pic_flag="$lt_cv_prog_cc_pic"
4145 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4146 wl="$lt_cv_prog_cc_wl"
4147 link_static_flag="$lt_cv_prog_cc_static"
4148 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4149 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4150
4151 # Check to see if options -o and -c are simultaneously supported by compiler
4152 echo "$as_me:4152: checking if $compiler supports -c -o file.$ac_objext" >&5
4153 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4154 if test "${lt_cv_compiler_c_o+set}" = set; then
4155   echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157
4158 $rm -r conftest 2>/dev/null
4159 mkdir conftest
4160 cd conftest
4161 echo "int some_variable = 0;" > conftest.$ac_ext
4162 mkdir out
4163 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4164 # that will create temporary files in the current directory regardless of
4165 # the output directory.  Thus, making CWD read-only will cause this test
4166 # to fail, enabling locking or at least warning the user not to do parallel
4167 # builds.
4168 chmod -w .
4169 save_CFLAGS="$CFLAGS"
4170 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4171 compiler_c_o=no
4172 if { (eval echo configure:4172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4173   # The compiler can only warn and ignore the option if not recognized
4174   # So say no if there are warnings
4175   if test -s out/conftest.err; then
4176     lt_cv_compiler_c_o=no
4177   else
4178     lt_cv_compiler_c_o=yes
4179   fi
4180 else
4181   # Append any errors to the config.log.
4182   cat out/conftest.err 1>&5
4183   lt_cv_compiler_c_o=no
4184 fi
4185 CFLAGS="$save_CFLAGS"
4186 chmod u+w .
4187 $rm conftest* out/*
4188 rmdir out
4189 cd ..
4190 rmdir conftest
4191 $rm -r conftest 2>/dev/null
4192
4193 fi
4194
4195 compiler_c_o=$lt_cv_compiler_c_o
4196 echo "$as_me:4196: result: $compiler_c_o" >&5
4197 echo "${ECHO_T}$compiler_c_o" >&6
4198
4199 if test x"$compiler_c_o" = x"yes"; then
4200   # Check to see if we can write to a .lo
4201   echo "$as_me:4201: checking if $compiler supports -c -o file.lo" >&5
4202 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4203   if test "${lt_cv_compiler_o_lo+set}" = set; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206
4207   lt_cv_compiler_o_lo=no
4208   save_CFLAGS="$CFLAGS"
4209   CFLAGS="$CFLAGS -c -o conftest.lo"
4210   save_objext="$ac_objext"
4211   ac_objext=lo
4212   cat >conftest.$ac_ext <<_ACEOF
4213 #line 4213 "configure"
4214 #include "confdefs.h"
4215
4216 int
4217 main ()
4218 {
4219 int some_variable = 0;
4220   ;
4221   return 0;
4222 }
4223 _ACEOF
4224 rm -f conftest.$ac_objext
4225 if { (eval echo "$as_me:4225: \"$ac_compile\"") >&5
4226   (eval $ac_compile) 2>&5
4227   ac_status=$?
4228   echo "$as_me:4228: \$? = $ac_status" >&5
4229   (exit $ac_status); } &&
4230          { ac_try='test -s conftest.$ac_objext'
4231   { (eval echo "$as_me:4231: \"$ac_try\"") >&5
4232   (eval $ac_try) 2>&5
4233   ac_status=$?
4234   echo "$as_me:4234: \$? = $ac_status" >&5
4235   (exit $ac_status); }; }; then
4236       # The compiler can only warn and ignore the option if not recognized
4237     # So say no if there are warnings
4238     if test -s conftest.err; then
4239       lt_cv_compiler_o_lo=no
4240     else
4241       lt_cv_compiler_o_lo=yes
4242     fi
4243
4244 else
4245   echo "$as_me: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4247 fi
4248 rm -f conftest.$ac_objext conftest.$ac_ext
4249   ac_objext="$save_objext"
4250   CFLAGS="$save_CFLAGS"
4251
4252 fi
4253
4254   compiler_o_lo=$lt_cv_compiler_o_lo
4255   echo "$as_me:4255: result: $compiler_o_lo" >&5
4256 echo "${ECHO_T}$compiler_o_lo" >&6
4257 else
4258   compiler_o_lo=no
4259 fi
4260
4261 # Check to see if we can do hard links to lock some files if needed
4262 hard_links="nottested"
4263 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4264   # do not overwrite the value of need_locks provided by the user
4265   echo "$as_me:4265: checking if we can lock with hard links" >&5
4266 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4267   hard_links=yes
4268   $rm conftest*
4269   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4270   touch conftest.a
4271   ln conftest.a conftest.b 2>&5 || hard_links=no
4272   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4273   echo "$as_me:4273: result: $hard_links" >&5
4274 echo "${ECHO_T}$hard_links" >&6
4275   if test "$hard_links" = no; then
4276     { echo "$as_me:4276: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4277 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4278     need_locks=warn
4279   fi
4280 else
4281   need_locks=no
4282 fi
4283
4284 if test "$GCC" = yes; then
4285   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4286   echo "$as_me:4286: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4287 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4288   echo "int some_variable = 0;" > conftest.$ac_ext
4289   save_CFLAGS="$CFLAGS"
4290   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4291   compiler_rtti_exceptions=no
4292   cat >conftest.$ac_ext <<_ACEOF
4293 #line 4293 "configure"
4294 #include "confdefs.h"
4295
4296 int
4297 main ()
4298 {
4299 int some_variable = 0;
4300   ;
4301   return 0;
4302 }
4303 _ACEOF
4304 rm -f conftest.$ac_objext
4305 if { (eval echo "$as_me:4305: \"$ac_compile\"") >&5
4306   (eval $ac_compile) 2>&5
4307   ac_status=$?
4308   echo "$as_me:4308: \$? = $ac_status" >&5
4309   (exit $ac_status); } &&
4310          { ac_try='test -s conftest.$ac_objext'
4311   { (eval echo "$as_me:4311: \"$ac_try\"") >&5
4312   (eval $ac_try) 2>&5
4313   ac_status=$?
4314   echo "$as_me:4314: \$? = $ac_status" >&5
4315   (exit $ac_status); }; }; then
4316       # The compiler can only warn and ignore the option if not recognized
4317     # So say no if there are warnings
4318     if test -s conftest.err; then
4319       compiler_rtti_exceptions=no
4320     else
4321       compiler_rtti_exceptions=yes
4322     fi
4323
4324 else
4325   echo "$as_me: failed program was:" >&5
4326 cat conftest.$ac_ext >&5
4327 fi
4328 rm -f conftest.$ac_objext conftest.$ac_ext
4329   CFLAGS="$save_CFLAGS"
4330   echo "$as_me:4330: result: $compiler_rtti_exceptions" >&5
4331 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4332
4333   if test "$compiler_rtti_exceptions" = "yes"; then
4334     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4335   else
4336     no_builtin_flag=' -fno-builtin'
4337   fi
4338 fi
4339
4340 # See if the linker supports building shared libraries.
4341 echo "$as_me:4341: checking whether the linker ($LD) supports shared libraries" >&5
4342 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4343
4344 allow_undefined_flag=
4345 no_undefined_flag=
4346 need_lib_prefix=unknown
4347 need_version=unknown
4348 # when you set need_version to no, make sure it does not cause -set_version
4349 # flags to be left without arguments
4350 archive_cmds=
4351 archive_expsym_cmds=
4352 old_archive_from_new_cmds=
4353 old_archive_from_expsyms_cmds=
4354 export_dynamic_flag_spec=
4355 whole_archive_flag_spec=
4356 thread_safe_flag_spec=
4357 hardcode_into_libs=no
4358 hardcode_libdir_flag_spec=
4359 hardcode_libdir_separator=
4360 hardcode_direct=no
4361 hardcode_minus_L=no
4362 hardcode_shlibpath_var=unsupported
4363 runpath_var=
4364 link_all_deplibs=unknown
4365 always_export_symbols=no
4366 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4367 # include_expsyms should be a list of space-separated symbols to be *always*
4368 # included in the symbol list
4369 include_expsyms=
4370 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4371 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4372 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4373 # as well as any symbol that contains `d'.
4374 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4375 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4376 # platforms (ab)use it in PIC code, but their linkers get confused if
4377 # the symbol is explicitly referenced.  Since portable code cannot
4378 # rely on this symbol name, it's probably fine to never include it in
4379 # preloaded symbol tables.
4380 extract_expsyms_cmds=
4381
4382 case $host_os in
4383 cygwin* | mingw* | pw32*)
4384   # FIXME: the MSVC++ port hasn't been tested in a loooong time
4385   # When not using gcc, we currently assume that we are using
4386   # Microsoft Visual C++.
4387   if test "$GCC" != yes; then
4388     with_gnu_ld=no
4389   fi
4390   ;;
4391 openbsd*)
4392   with_gnu_ld=no
4393   ;;
4394 esac
4395
4396 ld_shlibs=yes
4397 if test "$with_gnu_ld" = yes; then
4398   # If archive_cmds runs LD, not CC, wlarc should be empty
4399   wlarc='${wl}'
4400
4401   # See if GNU ld supports shared libraries.
4402   case $host_os in
4403   aix3* | aix4* | aix5*)
4404     # On AIX, the GNU linker is very broken
4405     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4406     ld_shlibs=no
4407     cat <<EOF 1>&2
4408
4409 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4410 *** to be unable to reliably create shared libraries on AIX.
4411 *** Therefore, libtool is disabling shared libraries support.  If you
4412 *** really care for shared libraries, you may want to modify your PATH
4413 *** so that a non-GNU linker is found, and then restart.
4414
4415 EOF
4416     ;;
4417
4418   amigaos*)
4419     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4420     hardcode_libdir_flag_spec='-L$libdir'
4421     hardcode_minus_L=yes
4422
4423     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4424     # that the semantics of dynamic libraries on AmigaOS, at least up
4425     # to version 4, is to share data among multiple programs linked
4426     # with the same dynamic library.  Since this doesn't match the
4427     # behavior of shared libraries on other platforms, we can use
4428     # them.
4429     ld_shlibs=no
4430     ;;
4431
4432   beos*)
4433     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4434       allow_undefined_flag=unsupported
4435       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4436       # support --undefined.  This deserves some investigation.  FIXME
4437       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4438     else
4439       ld_shlibs=no
4440     fi
4441     ;;
4442
4443   cygwin* | mingw* | pw32*)
4444     # hardcode_libdir_flag_spec is actually meaningless, as there is
4445     # no search path for DLLs.
4446     hardcode_libdir_flag_spec='-L$libdir'
4447     allow_undefined_flag=unsupported
4448     always_export_symbols=yes
4449
4450     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4451       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4452       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4453       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4454       else $CC -o impgen impgen.c ; fi)~
4455       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4456
4457     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4458
4459     # cygwin and mingw dlls have different entry points and sets of symbols
4460     # to exclude.
4461     # FIXME: what about values for MSVC?
4462     dll_entry=__cygwin_dll_entry@12
4463     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4464     case $host_os in
4465     mingw*)
4466       # mingw values
4467       dll_entry=_DllMainCRTStartup@12
4468       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4469       ;;
4470     esac
4471
4472     # mingw and cygwin differ, and it's simplest to just exclude the union
4473     # of the two symbol sets.
4474     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4475
4476     # recent cygwin and mingw systems supply a stub DllMain which the user
4477     # can override, but on older systems we have to supply one (in ltdll.c)
4478     if test "x$lt_cv_need_dllmain" = "xyes"; then
4479       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4480       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
4481         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4482     else
4483       ltdll_obj=
4484       ltdll_cmds=
4485     fi
4486
4487     # Extract the symbol export list from an `--export-all' def file,
4488     # then regenerate the def file from the symbol export list, so that
4489     # the compiled dll only exports the symbol export list.
4490     # Be careful not to strip the DATA tag left be newer dlltools.
4491     export_symbols_cmds="$ltdll_cmds"'
4492       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4493       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4494
4495     # If the export-symbols file already is a .def file (1st line
4496     # is EXPORTS), use it as is.
4497     # If DATA tags from a recent dlltool are present, honour them!
4498     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4499         cp $export_symbols $output_objdir/$soname-def;
4500       else
4501         echo EXPORTS > $output_objdir/$soname-def;
4502         _lt_hint=1;
4503         cat $export_symbols | while read symbol; do
4504          set dummy \$symbol;
4505          case \$# in
4506            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4507            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4508          esac;
4509          _lt_hint=`expr 1 + \$_lt_hint`;
4510         done;
4511       fi~
4512       '"$ltdll_cmds"'
4513       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4514       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4515       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4516       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4517       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4518     ;;
4519
4520   netbsd*)
4521     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4522       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4523       wlarc=
4524     else
4525       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4526       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4527     fi
4528     ;;
4529
4530   solaris* | sysv5*)
4531     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4532       ld_shlibs=no
4533       cat <<EOF 1>&2
4534
4535 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4536 *** create shared libraries on Solaris systems.  Therefore, libtool
4537 *** is disabling shared libraries support.  We urge you to upgrade GNU
4538 *** binutils to release 2.9.1 or newer.  Another option is to modify
4539 *** your PATH or compiler configuration so that the native linker is
4540 *** used, and then restart.
4541
4542 EOF
4543     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4544       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4545       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4546     else
4547       ld_shlibs=no
4548     fi
4549     ;;
4550
4551   sunos4*)
4552     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4553     wlarc=
4554     hardcode_direct=yes
4555     hardcode_shlibpath_var=no
4556     ;;
4557
4558   *)
4559     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4560       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4561       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4562     else
4563       ld_shlibs=no
4564     fi
4565     ;;
4566   esac
4567
4568   if test "$ld_shlibs" = yes; then
4569     runpath_var=LD_RUN_PATH
4570     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4571     export_dynamic_flag_spec='${wl}--export-dynamic'
4572     case $host_os in
4573     cygwin* | mingw* | pw32*)
4574       # dlltool doesn't understand --whole-archive et. al.
4575       whole_archive_flag_spec=
4576       ;;
4577     *)
4578       # ancient GNU ld didn't support --whole-archive et. al.
4579       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4580         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4581       else
4582         whole_archive_flag_spec=
4583       fi
4584       ;;
4585     esac
4586   fi
4587 else
4588   # PORTME fill in a description of your system's linker (not GNU ld)
4589   case $host_os in
4590   aix3*)
4591     allow_undefined_flag=unsupported
4592     always_export_symbols=yes
4593     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4594     # Note: this linker hardcodes the directories in LIBPATH if there
4595     # are no directories specified by -L.
4596     hardcode_minus_L=yes
4597     if test "$GCC" = yes && test -z "$link_static_flag"; then
4598       # Neither direct hardcoding nor static linking is supported with a
4599       # broken collect2.
4600       hardcode_direct=unsupported
4601     fi
4602     ;;
4603
4604   aix4* | aix5*)
4605     if test "$host_cpu" = ia64; then
4606       # On IA64, the linker does run time linking by default, so we don't
4607       # have to do anything special.
4608       aix_use_runtimelinking=no
4609       exp_sym_flag='-Bexport'
4610       no_entry_flag=""
4611     else
4612       aix_use_runtimelinking=no
4613
4614       # Test if we are trying to use run time linking or normal
4615       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4616       # need to do runtime linking.
4617       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4618         for ld_flag in $LDFLAGS; do
4619           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4620             aix_use_runtimelinking=yes
4621             break
4622           fi
4623         done
4624       esac
4625
4626       exp_sym_flag='-bexport'
4627       no_entry_flag='-bnoentry'
4628     fi
4629
4630     # When large executables or shared objects are built, AIX ld can
4631     # have problems creating the table of contents.  If linking a library
4632     # or program results in "error TOC overflow" add -mminimal-toc to
4633     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
4634     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4635
4636     hardcode_direct=yes
4637     archive_cmds=''
4638     hardcode_libdir_separator=':'
4639     if test "$GCC" = yes; then
4640       case $host_os in aix4.[012]|aix4.[012].*)
4641         collect2name=`${CC} -print-prog-name=collect2`
4642         if test -f "$collect2name" && \
4643           strings "$collect2name" | grep resolve_lib_name >/dev/null
4644         then
4645           # We have reworked collect2
4646           hardcode_direct=yes
4647         else
4648           # We have old collect2
4649           hardcode_direct=unsupported
4650           # It fails to find uninstalled libraries when the uninstalled
4651           # path is not listed in the libpath.  Setting hardcode_minus_L
4652           # to unsupported forces relinking
4653           hardcode_minus_L=yes
4654           hardcode_libdir_flag_spec='-L$libdir'
4655           hardcode_libdir_separator=
4656         fi
4657       esac
4658
4659       shared_flag='-shared'
4660     else
4661       # not using gcc
4662       if test "$host_cpu" = ia64; then
4663         shared_flag='${wl}-G'
4664       else
4665         if test "$aix_use_runtimelinking" = yes; then
4666           shared_flag='${wl}-G'
4667         else
4668           shared_flag='${wl}-bM:SRE'
4669         fi
4670       fi
4671     fi
4672
4673     # It seems that -bexpall can do strange things, so it is better to
4674     # generate a list of symbols to export.
4675     always_export_symbols=yes
4676     if test "$aix_use_runtimelinking" = yes; then
4677       # Warning - without using the other runtime loading flags (-brtl),
4678       # -berok will link without error, but may produce a broken library.
4679       allow_undefined_flag='-berok'
4680       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4681       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4682     else
4683       if test "$host_cpu" = ia64; then
4684         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4685         allow_undefined_flag="-z nodefs"
4686         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4687       else
4688         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4689         # Warning - without using the other run time loading flags,
4690         # -berok will link without error, but may produce a broken library.
4691         allow_undefined_flag='${wl}-berok'
4692         # This is a bit strange, but is similar to how AIX traditionally builds
4693         # it's shared libraries.
4694         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
4695       fi
4696     fi
4697     ;;
4698
4699   amigaos*)
4700     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4701     hardcode_libdir_flag_spec='-L$libdir'
4702     hardcode_minus_L=yes
4703     # see comment about different semantics on the GNU ld section
4704     ld_shlibs=no
4705     ;;
4706
4707   cygwin* | mingw* | pw32*)
4708     # When not using gcc, we currently assume that we are using
4709     # Microsoft Visual C++.
4710     # hardcode_libdir_flag_spec is actually meaningless, as there is
4711     # no search path for DLLs.
4712     hardcode_libdir_flag_spec=' '
4713     allow_undefined_flag=unsupported
4714     # Tell ltmain to make .lib files, not .a files.
4715     libext=lib
4716     # FIXME: Setting linknames here is a bad hack.
4717     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4718     # The linker will automatically build a .lib file if we build a DLL.
4719     old_archive_from_new_cmds='true'
4720     # FIXME: Should let the user specify the lib program.
4721     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4722     fix_srcfile_path='`cygpath -w "$srcfile"`'
4723     ;;
4724
4725   darwin* | rhapsody*)
4726     case "$host_os" in
4727     rhapsody* | darwin1.[012])
4728       allow_undefined_flag='-undefined suppress'
4729       ;;
4730     *) # Darwin 1.3 on
4731       allow_undefined_flag='-flat_namespace -undefined suppress'
4732       ;;
4733     esac
4734     # FIXME: Relying on posixy $() will cause problems for
4735     #        cross-compilation, but unfortunately the echo tests do not
4736     #        yet detect zsh echo's removal of \ escapes.
4737     archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
4738     # We need to add '_' to the symbols in $export_symbols first
4739     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4740     hardcode_direct=yes
4741     hardcode_shlibpath_var=no
4742     whole_archive_flag_spec='-all_load $convenience'
4743     ;;
4744
4745   freebsd1*)
4746     ld_shlibs=no
4747     ;;
4748
4749   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4750   # support.  Future versions do this automatically, but an explicit c++rt0.o
4751   # does not break anything, and helps significantly (at the cost of a little
4752   # extra space).
4753   freebsd2.2*)
4754     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4755     hardcode_libdir_flag_spec='-R$libdir'
4756     hardcode_direct=yes
4757     hardcode_shlibpath_var=no
4758     ;;
4759
4760   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4761   freebsd2*)
4762     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4763     hardcode_direct=yes
4764     hardcode_minus_L=yes
4765     hardcode_shlibpath_var=no
4766     ;;
4767
4768   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4769   freebsd*)
4770     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4771     hardcode_libdir_flag_spec='-R$libdir'
4772     hardcode_direct=yes
4773     hardcode_shlibpath_var=no
4774     ;;
4775
4776   hpux9* | hpux10* | hpux11*)
4777     case $host_os in
4778     hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
4779     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4780     esac
4781     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4782     hardcode_libdir_separator=:
4783     hardcode_direct=yes
4784     hardcode_minus_L=yes # Not in the search PATH, but as the default
4785                          # location of the library.
4786     export_dynamic_flag_spec='${wl}-E'
4787     ;;
4788
4789   irix5* | irix6*)
4790     if test "$GCC" = yes; then
4791       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4792     else
4793       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4794     fi
4795     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4796     hardcode_libdir_separator=:
4797     link_all_deplibs=yes
4798     ;;
4799
4800   netbsd*)
4801     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4802       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4803     else
4804       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
4805     fi
4806     hardcode_libdir_flag_spec='-R$libdir'
4807     hardcode_direct=yes
4808     hardcode_shlibpath_var=no
4809     ;;
4810
4811   newsos6)
4812     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4813     hardcode_direct=yes
4814     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4815     hardcode_libdir_separator=:
4816     hardcode_shlibpath_var=no
4817     ;;
4818
4819   openbsd*)
4820     hardcode_direct=yes
4821     hardcode_shlibpath_var=no
4822     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4823       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4824       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4825       export_dynamic_flag_spec='${wl}-E'
4826     else
4827       case "$host_os" in
4828       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
4829         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4830         hardcode_libdir_flag_spec='-R$libdir'
4831         ;;
4832       *)
4833         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4834         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4835         ;;
4836       esac
4837     fi
4838     ;;
4839
4840   os2*)
4841     hardcode_libdir_flag_spec='-L$libdir'
4842     hardcode_minus_L=yes
4843     allow_undefined_flag=unsupported
4844     archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4845     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4846     ;;
4847
4848   osf3*)
4849     if test "$GCC" = yes; then
4850       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4851       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4852     else
4853       allow_undefined_flag=' -expect_unresolved \*'
4854       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4855     fi
4856     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4857     hardcode_libdir_separator=:
4858     ;;
4859
4860   osf4* | osf5*)        # as osf3* with the addition of -msym flag
4861     if test "$GCC" = yes; then
4862       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4863       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4864       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4865     else
4866       allow_undefined_flag=' -expect_unresolved \*'
4867       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4868       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4869       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
4870
4871       #Both c and cxx compiler support -rpath directly
4872       hardcode_libdir_flag_spec='-rpath $libdir'
4873     fi
4874     hardcode_libdir_separator=:
4875     ;;
4876
4877   sco3.2v5*)
4878     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4879     hardcode_shlibpath_var=no
4880     runpath_var=LD_RUN_PATH
4881     hardcode_runpath_var=yes
4882     export_dynamic_flag_spec='${wl}-Bexport'
4883     ;;
4884
4885   solaris*)
4886     no_undefined_flag=' -z defs'
4887     # $CC -shared without GNU ld will not create a library from C++
4888     # object files and a static libstdc++, better avoid it by now
4889     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4890     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4891                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4892     hardcode_libdir_flag_spec='-R$libdir'
4893     hardcode_shlibpath_var=no
4894     case $host_os in
4895     solaris2.[0-5] | solaris2.[0-5].*) ;;
4896     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4897       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4898     esac
4899     link_all_deplibs=yes
4900     ;;
4901
4902   sunos4*)
4903     if test "x$host_vendor" = xsequent; then
4904       # Use $CC to link under sequent, because it throws in some extra .o
4905       # files that make .init and .fini sections work.
4906       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4907     else
4908       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4909     fi
4910     hardcode_libdir_flag_spec='-L$libdir'
4911     hardcode_direct=yes
4912     hardcode_minus_L=yes
4913     hardcode_shlibpath_var=no
4914     ;;
4915
4916   sysv4)
4917     if test "x$host_vendor" = xsno; then
4918       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
4919       hardcode_direct=yes # is this really true???
4920     else
4921       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4922       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4923     fi
4924     runpath_var='LD_RUN_PATH'
4925     hardcode_shlibpath_var=no
4926     ;;
4927
4928   sysv4.3*)
4929     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4930     hardcode_shlibpath_var=no
4931     export_dynamic_flag_spec='-Bexport'
4932     ;;
4933
4934   sysv5*)
4935     no_undefined_flag=' -z text'
4936     # $CC -shared without GNU ld will not create a library from C++
4937     # object files and a static libstdc++, better avoid it by now
4938     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4939     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4940                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4941     hardcode_libdir_flag_spec=
4942     hardcode_shlibpath_var=no
4943     runpath_var='LD_RUN_PATH'
4944     ;;
4945
4946   uts4*)
4947     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4948     hardcode_libdir_flag_spec='-L$libdir'
4949     hardcode_shlibpath_var=no
4950     ;;
4951
4952   dgux*)
4953     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4954     hardcode_libdir_flag_spec='-L$libdir'
4955     hardcode_shlibpath_var=no
4956     ;;
4957
4958   sysv4*MP*)
4959     if test -d /usr/nec; then
4960       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4961       hardcode_shlibpath_var=no
4962       runpath_var=LD_RUN_PATH
4963       hardcode_runpath_var=yes
4964       ld_shlibs=yes
4965     fi
4966     ;;
4967
4968   sysv4.2uw2*)
4969     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4970     hardcode_direct=yes
4971     hardcode_minus_L=no
4972     hardcode_shlibpath_var=no
4973     hardcode_runpath_var=yes
4974     runpath_var=LD_RUN_PATH
4975     ;;
4976
4977   sysv5uw7* | unixware7*)
4978     no_undefined_flag='${wl}-z ${wl}text'
4979     if test "$GCC" = yes; then
4980       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4981     else
4982       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4983     fi
4984     runpath_var='LD_RUN_PATH'
4985     hardcode_shlibpath_var=no
4986     ;;
4987
4988   *)
4989     ld_shlibs=no
4990     ;;
4991   esac
4992 fi
4993 echo "$as_me:4993: result: $ld_shlibs" >&5
4994 echo "${ECHO_T}$ld_shlibs" >&6
4995 test "$ld_shlibs" = no && can_build_shared=no
4996
4997 # Check hardcoding attributes.
4998 echo "$as_me:4998: checking how to hardcode library paths into programs" >&5
4999 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5000 hardcode_action=
5001 if test -n "$hardcode_libdir_flag_spec" || \
5002    test -n "$runpath_var"; then
5003
5004   # We can hardcode non-existant directories.
5005   if test "$hardcode_direct" != no &&
5006      # If the only mechanism to avoid hardcoding is shlibpath_var, we
5007      # have to relink, otherwise we might link with an installed library
5008      # when we should be linking with a yet-to-be-installed one
5009      ## test "$hardcode_shlibpath_var" != no &&
5010      test "$hardcode_minus_L" != no; then
5011     # Linking always hardcodes the temporary library directory.
5012     hardcode_action=relink
5013   else
5014     # We can link without hardcoding, and we can hardcode nonexisting dirs.
5015     hardcode_action=immediate
5016   fi
5017 else
5018   # We cannot hardcode anything, or else we can only hardcode existing
5019   # directories.
5020   hardcode_action=unsupported
5021 fi
5022 echo "$as_me:5022: result: $hardcode_action" >&5
5023 echo "${ECHO_T}$hardcode_action" >&6
5024
5025 striplib=
5026 old_striplib=
5027 echo "$as_me:5027: checking whether stripping libraries is possible" >&5
5028 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5029 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5030   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5031   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5032   echo "$as_me:5032: result: yes" >&5
5033 echo "${ECHO_T}yes" >&6
5034 else
5035   echo "$as_me:5035: result: no" >&5
5036 echo "${ECHO_T}no" >&6
5037 fi
5038
5039 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5040 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5041
5042 # PORTME Fill in your ld.so characteristics
5043 echo "$as_me:5043: checking dynamic linker characteristics" >&5
5044 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5045 library_names_spec=
5046 libname_spec='lib$name'
5047 soname_spec=
5048 postinstall_cmds=
5049 postuninstall_cmds=
5050 finish_cmds=
5051 finish_eval=
5052 shlibpath_var=
5053 shlibpath_overrides_runpath=unknown
5054 version_type=none
5055 dynamic_linker="$host_os ld.so"
5056 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5057 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5058
5059 case $host_os in
5060 aix3*)
5061   version_type=linux
5062   library_names_spec='${libname}${release}.so$versuffix $libname.a'
5063   shlibpath_var=LIBPATH
5064
5065   # AIX has no versioning support, so we append a major version to the name.
5066   soname_spec='${libname}${release}.so$major'
5067   ;;
5068
5069 aix4* | aix5*)
5070   version_type=linux
5071   if test "$host_cpu" = ia64; then
5072     # AIX 5 supports IA64
5073     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5074     shlibpath_var=LD_LIBRARY_PATH
5075   else
5076     # With GCC up to 2.95.x, collect2 would create an import file
5077     # for dependence libraries.  The import file would start with
5078     # the line `#! .'.  This would cause the generated library to
5079     # depend on `.', always an invalid library.  This was fixed in
5080     # development snapshots of GCC prior to 3.0.
5081     case $host_os in
5082        aix4 | aix4.[01] | aix4.[01].*)
5083       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5084            echo ' yes '
5085            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5086         :
5087       else
5088         can_build_shared=no
5089       fi
5090       ;;
5091     esac
5092     # AIX (on Power*) has no versioning support, so currently we can
5093     # not hardcode correct soname into executable. Probably we can
5094     # add versioning support to collect2, so additional links can
5095     # be useful in future.
5096     if test "$aix_use_runtimelinking" = yes; then
5097       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5098       # instead of lib<name>.a to let people know that these are not
5099       # typical AIX shared libraries.
5100       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5101     else
5102       # We preserve .a as extension for shared libraries through AIX4.2
5103       # and later when we are not doing run time linking.
5104       library_names_spec='${libname}${release}.a $libname.a'
5105       soname_spec='${libname}${release}.so$major'
5106     fi
5107     shlibpath_var=LIBPATH
5108   fi
5109   ;;
5110
5111 amigaos*)
5112   library_names_spec='$libname.ixlibrary $libname.a'
5113   # Create ${libname}_ixlibrary.a entries in /sys/libs.
5114   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
5115   ;;
5116
5117 beos*)
5118   library_names_spec='${libname}.so'
5119   dynamic_linker="$host_os ld.so"
5120   shlibpath_var=LIBRARY_PATH
5121   ;;
5122
5123 bsdi4*)
5124   version_type=linux
5125   need_version=no
5126   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5127   soname_spec='${libname}${release}.so$major'
5128   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5129   shlibpath_var=LD_LIBRARY_PATH
5130   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5131   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5132   export_dynamic_flag_spec=-rdynamic
5133   # the default ld.so.conf also contains /usr/contrib/lib and
5134   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5135   # libtool to hard-code these into programs
5136   ;;
5137
5138 cygwin* | mingw* | pw32*)
5139   version_type=windows
5140   need_version=no
5141   need_lib_prefix=no
5142   case $GCC,$host_os in
5143   yes,cygwin*)
5144     library_names_spec='$libname.dll.a'
5145     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5146     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5147       dldir=$destdir/`dirname \$dlpath`~
5148       test -d \$dldir || mkdir -p \$dldir~
5149       $install_prog .libs/$dlname \$dldir/$dlname'
5150     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5151       dlpath=$dir/\$dldll~
5152        $rm \$dlpath'
5153     ;;
5154   yes,mingw*)
5155     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5156     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5157     ;;
5158   yes,pw32*)
5159     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5160     ;;
5161   *)
5162     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5163     ;;
5164   esac
5165   dynamic_linker='Win32 ld.exe'
5166   # FIXME: first we should search . and the directory the executable is in
5167   shlibpath_var=PATH
5168   ;;
5169
5170 darwin* | rhapsody*)
5171   dynamic_linker="$host_os dyld"
5172   version_type=darwin
5173   need_lib_prefix=no
5174   need_version=no
5175   # FIXME: Relying on posixy $() will cause problems for
5176   #        cross-compilation, but unfortunately the echo tests do not
5177   #        yet detect zsh echo's removal of \ escapes.
5178   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5179   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5180   shlibpath_overrides_runpath=yes
5181   shlibpath_var=DYLD_LIBRARY_PATH
5182   ;;
5183
5184 freebsd1*)
5185   dynamic_linker=no
5186   ;;
5187
5188 freebsd*)
5189   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5190   version_type=freebsd-$objformat
5191   case $version_type in
5192     freebsd-elf*)
5193       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5194       need_version=no
5195       need_lib_prefix=no
5196       ;;
5197     freebsd-*)
5198       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5199       need_version=yes
5200       ;;
5201   esac
5202   shlibpath_var=LD_LIBRARY_PATH
5203   case $host_os in
5204   freebsd2*)
5205     shlibpath_overrides_runpath=yes
5206     ;;
5207   *)
5208     shlibpath_overrides_runpath=no
5209     hardcode_into_libs=yes
5210     ;;
5211   esac
5212   ;;
5213
5214 gnu*)
5215   version_type=linux
5216   need_lib_prefix=no
5217   need_version=no
5218   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5219   soname_spec='${libname}${release}.so$major'
5220   shlibpath_var=LD_LIBRARY_PATH
5221   hardcode_into_libs=yes
5222   ;;
5223
5224 hpux9* | hpux10* | hpux11*)
5225   # Give a soname corresponding to the major version so that dld.sl refuses to
5226   # link against other versions.
5227   dynamic_linker="$host_os dld.sl"
5228   version_type=sunos
5229   need_lib_prefix=no
5230   need_version=no
5231   shlibpath_var=SHLIB_PATH
5232   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5233   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5234   soname_spec='${libname}${release}.sl$major'
5235   # HP-UX runs *really* slowly unless shared libraries are mode 555.
5236   postinstall_cmds='chmod 555 $lib'
5237   ;;
5238
5239 irix5* | irix6*)
5240   version_type=irix
5241   need_lib_prefix=no
5242   need_version=no
5243   soname_spec='${libname}${release}.so$major'
5244   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5245   case $host_os in
5246   irix5*)
5247     libsuff= shlibsuff=
5248     ;;
5249   *)
5250     case $LD in # libtool.m4 will add one of these switches to LD
5251     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5252     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5253     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5254     *) libsuff= shlibsuff= libmagic=never-match;;
5255     esac
5256     ;;
5257   esac
5258   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5259   shlibpath_overrides_runpath=no
5260   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5261   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5262   ;;
5263
5264 # No shared lib support for Linux oldld, aout, or coff.
5265 linux*oldld* | linux*aout* | linux*coff*)
5266   dynamic_linker=no
5267   ;;
5268
5269 # This must be Linux ELF.
5270 linux*)
5271   version_type=linux
5272   need_lib_prefix=no
5273   need_version=no
5274   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5275   soname_spec='${libname}${release}.so$major'
5276   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5277   shlibpath_var=LD_LIBRARY_PATH
5278   shlibpath_overrides_runpath=no
5279   # This implies no fast_install, which is unacceptable.
5280   # Some rework will be needed to allow for fast_install
5281   # before this can be enabled.
5282   hardcode_into_libs=yes
5283
5284   # We used to test for /lib/ld.so.1 and disable shared libraries on
5285   # powerpc, because MkLinux only supported shared libraries with the
5286   # GNU dynamic linker.  Since this was broken with cross compilers,
5287   # most powerpc-linux boxes support dynamic linking these days and
5288   # people can always --disable-shared, the test was removed, and we
5289   # assume the GNU/Linux dynamic linker is in use.
5290   dynamic_linker='GNU/Linux ld.so'
5291   ;;
5292
5293 netbsd*)
5294   version_type=sunos
5295   need_lib_prefix=no
5296   need_version=no
5297   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5298     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5299     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5300     dynamic_linker='NetBSD (a.out) ld.so'
5301   else
5302     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5303     soname_spec='${libname}${release}.so$major'
5304     dynamic_linker='NetBSD ld.elf_so'
5305   fi
5306   shlibpath_var=LD_LIBRARY_PATH
5307   shlibpath_overrides_runpath=yes
5308   hardcode_into_libs=yes
5309   ;;
5310
5311 newsos6)
5312   version_type=linux
5313   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5314   shlibpath_var=LD_LIBRARY_PATH
5315   shlibpath_overrides_runpath=yes
5316   ;;
5317
5318 openbsd*)
5319   version_type=sunos
5320   need_lib_prefix=no
5321   need_version=no
5322   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5323     case "$host_os" in
5324     openbsd2.[89] | openbsd2.[89].*)
5325       shlibpath_overrides_runpath=no
5326       ;;
5327     *)
5328       shlibpath_overrides_runpath=yes
5329       ;;
5330     esac
5331   else
5332     shlibpath_overrides_runpath=yes
5333   fi
5334   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5335   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5336   shlibpath_var=LD_LIBRARY_PATH
5337   ;;
5338
5339 os2*)
5340   libname_spec='$name'
5341   need_lib_prefix=no
5342   library_names_spec='$libname.dll $libname.a'
5343   dynamic_linker='OS/2 ld.exe'
5344   shlibpath_var=LIBPATH
5345   ;;
5346
5347 osf3* | osf4* | osf5*)
5348   version_type=osf
5349   need_version=no
5350   soname_spec='${libname}${release}.so'
5351   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5352   shlibpath_var=LD_LIBRARY_PATH
5353   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5354   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5355   ;;
5356
5357 sco3.2v5*)
5358   version_type=osf
5359   soname_spec='${libname}${release}.so$major'
5360   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5361   shlibpath_var=LD_LIBRARY_PATH
5362   ;;
5363
5364 solaris*)
5365   version_type=linux
5366   need_lib_prefix=no
5367   need_version=no
5368   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5369   soname_spec='${libname}${release}.so$major'
5370   shlibpath_var=LD_LIBRARY_PATH
5371   shlibpath_overrides_runpath=yes
5372   hardcode_into_libs=yes
5373   # ldd complains unless libraries are executable
5374   postinstall_cmds='chmod +x $lib'
5375   ;;
5376
5377 sunos4*)
5378   version_type=sunos
5379   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5380   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5381   shlibpath_var=LD_LIBRARY_PATH
5382   shlibpath_overrides_runpath=yes
5383   if test "$with_gnu_ld" = yes; then
5384     need_lib_prefix=no
5385   fi
5386   need_version=yes
5387   ;;
5388
5389 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5390   version_type=linux
5391   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5392   soname_spec='${libname}${release}.so$major'
5393   shlibpath_var=LD_LIBRARY_PATH
5394   case $host_vendor in
5395     sni)
5396       shlibpath_overrides_runpath=no
5397       ;;
5398     motorola)
5399       need_lib_prefix=no
5400       need_version=no
5401       shlibpath_overrides_runpath=no
5402       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5403       ;;
5404   esac
5405   ;;
5406
5407 uts4*)
5408   version_type=linux
5409   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5410   soname_spec='${libname}${release}.so$major'
5411   shlibpath_var=LD_LIBRARY_PATH
5412   ;;
5413
5414 dgux*)
5415   version_type=linux
5416   need_lib_prefix=no
5417   need_version=no
5418   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5419   soname_spec='${libname}${release}.so$major'
5420   shlibpath_var=LD_LIBRARY_PATH
5421   ;;
5422
5423 sysv4*MP*)
5424   if test -d /usr/nec ;then
5425     version_type=linux
5426     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5427     soname_spec='$libname.so.$major'
5428     shlibpath_var=LD_LIBRARY_PATH
5429   fi
5430   ;;
5431
5432 *)
5433   dynamic_linker=no
5434   ;;
5435 esac
5436 echo "$as_me:5436: result: $dynamic_linker" >&5
5437 echo "${ECHO_T}$dynamic_linker" >&6
5438 test "$dynamic_linker" = no && can_build_shared=no
5439
5440 # Report the final consequences.
5441 echo "$as_me:5441: checking if libtool supports shared libraries" >&5
5442 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5443 echo "$as_me:5443: result: $can_build_shared" >&5
5444 echo "${ECHO_T}$can_build_shared" >&6
5445
5446 echo "$as_me:5446: checking whether to build shared libraries" >&5
5447 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5448 test "$can_build_shared" = "no" && enable_shared=no
5449
5450 # On AIX, shared libraries and static libraries use the same namespace, and
5451 # are all built from PIC.
5452 case "$host_os" in
5453 aix3*)
5454   test "$enable_shared" = yes && enable_static=no
5455   if test -n "$RANLIB"; then
5456     archive_cmds="$archive_cmds~\$RANLIB \$lib"
5457     postinstall_cmds='$RANLIB $lib'
5458   fi
5459   ;;
5460
5461 aix4*)
5462   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5463     test "$enable_shared" = yes && enable_static=no
5464   fi
5465   ;;
5466 esac
5467 echo "$as_me:5467: result: $enable_shared" >&5
5468 echo "${ECHO_T}$enable_shared" >&6
5469
5470 echo "$as_me:5470: checking whether to build static libraries" >&5
5471 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5472 # Make sure either enable_shared or enable_static is yes.
5473 test "$enable_shared" = yes || enable_static=yes
5474 echo "$as_me:5474: result: $enable_static" >&5
5475 echo "${ECHO_T}$enable_static" >&6
5476
5477 if test "$hardcode_action" = relink; then
5478   # Fast installation is not supported
5479   enable_fast_install=no
5480 elif test "$shlibpath_overrides_runpath" = yes ||
5481      test "$enable_shared" = no; then
5482   # Fast installation is not necessary
5483   enable_fast_install=needless
5484 fi
5485
5486 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5487 if test "$GCC" = yes; then
5488   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5489 fi
5490
5491 if test "x$enable_dlopen" != xyes; then
5492   enable_dlopen=unknown
5493   enable_dlopen_self=unknown
5494   enable_dlopen_self_static=unknown
5495 else
5496   lt_cv_dlopen=no
5497   lt_cv_dlopen_libs=
5498
5499   case $host_os in
5500   beos*)
5501     lt_cv_dlopen="load_add_on"
5502     lt_cv_dlopen_libs=
5503     lt_cv_dlopen_self=yes
5504     ;;
5505
5506   cygwin* | mingw* | pw32*)
5507     lt_cv_dlopen="LoadLibrary"
5508     lt_cv_dlopen_libs=
5509    ;;
5510
5511   *)
5512     echo "$as_me:5512: checking for shl_load" >&5
5513 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5514 if test "${ac_cv_func_shl_load+set}" = set; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517   cat >conftest.$ac_ext <<_ACEOF
5518 #line 5518 "configure"
5519 #include "confdefs.h"
5520 /* System header to define __stub macros and hopefully few prototypes,
5521     which can conflict with char shl_load (); below.  */
5522 #include <assert.h>
5523 /* Override any gcc2 internal prototype to avoid an error.  */
5524 #ifdef __cplusplus
5525 extern "C"
5526 #endif
5527 /* We use char because int might match the return type of a gcc2
5528    builtin and then its argument prototype would still apply.  */
5529 char shl_load ();
5530 char (*f) ();
5531
5532 int
5533 main ()
5534 {
5535 /* The GNU C library defines this for functions which it implements
5536     to always fail with ENOSYS.  Some functions are actually named
5537     something starting with __ and the normal name is an alias.  */
5538 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5539 choke me
5540 #else
5541 f = shl_load;
5542 #endif
5543
5544   ;
5545   return 0;
5546 }
5547 _ACEOF
5548 rm -f conftest.$ac_objext conftest$ac_exeext
5549 if { (eval echo "$as_me:5549: \"$ac_link\"") >&5
5550   (eval $ac_link) 2>&5
5551   ac_status=$?
5552   echo "$as_me:5552: \$? = $ac_status" >&5
5553   (exit $ac_status); } &&
5554          { ac_try='test -s conftest$ac_exeext'
5555   { (eval echo "$as_me:5555: \"$ac_try\"") >&5
5556   (eval $ac_try) 2>&5
5557   ac_status=$?
5558   echo "$as_me:5558: \$? = $ac_status" >&5
5559   (exit $ac_status); }; }; then
5560   ac_cv_func_shl_load=yes
5561 else
5562   echo "$as_me: failed program was:" >&5
5563 cat conftest.$ac_ext >&5
5564 ac_cv_func_shl_load=no
5565 fi
5566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5567 fi
5568 echo "$as_me:5568: result: $ac_cv_func_shl_load" >&5
5569 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5570 if test $ac_cv_func_shl_load = yes; then
5571   lt_cv_dlopen="shl_load"
5572 else
5573   echo "$as_me:5573: checking for shl_load in -ldld" >&5
5574 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5575 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5576   echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578   ac_check_lib_save_LIBS=$LIBS
5579 LIBS="-ldld  $LIBS"
5580 cat >conftest.$ac_ext <<_ACEOF
5581 #line 5581 "configure"
5582 #include "confdefs.h"
5583
5584 /* Override any gcc2 internal prototype to avoid an error.  */
5585 #ifdef __cplusplus
5586 extern "C"
5587 #endif
5588 /* We use char because int might match the return type of a gcc2
5589    builtin and then its argument prototype would still apply.  */
5590 char shl_load ();
5591 int
5592 main ()
5593 {
5594 shl_load ();
5595   ;
5596   return 0;
5597 }
5598 _ACEOF
5599 rm -f conftest.$ac_objext conftest$ac_exeext
5600 if { (eval echo "$as_me:5600: \"$ac_link\"") >&5
5601   (eval $ac_link) 2>&5
5602   ac_status=$?
5603   echo "$as_me:5603: \$? = $ac_status" >&5
5604   (exit $ac_status); } &&
5605          { ac_try='test -s conftest$ac_exeext'
5606   { (eval echo "$as_me:5606: \"$ac_try\"") >&5
5607   (eval $ac_try) 2>&5
5608   ac_status=$?
5609   echo "$as_me:5609: \$? = $ac_status" >&5
5610   (exit $ac_status); }; }; then
5611   ac_cv_lib_dld_shl_load=yes
5612 else
5613   echo "$as_me: failed program was:" >&5
5614 cat conftest.$ac_ext >&5
5615 ac_cv_lib_dld_shl_load=no
5616 fi
5617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5618 LIBS=$ac_check_lib_save_LIBS
5619 fi
5620 echo "$as_me:5620: result: $ac_cv_lib_dld_shl_load" >&5
5621 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5622 if test $ac_cv_lib_dld_shl_load = yes; then
5623   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5624 else
5625   echo "$as_me:5625: checking for dlopen" >&5
5626 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5627 if test "${ac_cv_func_dlopen+set}" = set; then
5628   echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630   cat >conftest.$ac_ext <<_ACEOF
5631 #line 5631 "configure"
5632 #include "confdefs.h"
5633 /* System header to define __stub macros and hopefully few prototypes,
5634     which can conflict with char dlopen (); below.  */
5635 #include <assert.h>
5636 /* Override any gcc2 internal prototype to avoid an error.  */
5637 #ifdef __cplusplus
5638 extern "C"
5639 #endif
5640 /* We use char because int might match the return type of a gcc2
5641    builtin and then its argument prototype would still apply.  */
5642 char dlopen ();
5643 char (*f) ();
5644
5645 int
5646 main ()
5647 {
5648 /* The GNU C library defines this for functions which it implements
5649     to always fail with ENOSYS.  Some functions are actually named
5650     something starting with __ and the normal name is an alias.  */
5651 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5652 choke me
5653 #else
5654 f = dlopen;
5655 #endif
5656
5657   ;
5658   return 0;
5659 }
5660 _ACEOF
5661 rm -f conftest.$ac_objext conftest$ac_exeext
5662 if { (eval echo "$as_me:5662: \"$ac_link\"") >&5
5663   (eval $ac_link) 2>&5
5664   ac_status=$?
5665   echo "$as_me:5665: \$? = $ac_status" >&5
5666   (exit $ac_status); } &&
5667          { ac_try='test -s conftest$ac_exeext'
5668   { (eval echo "$as_me:5668: \"$ac_try\"") >&5
5669   (eval $ac_try) 2>&5
5670   ac_status=$?
5671   echo "$as_me:5671: \$? = $ac_status" >&5
5672   (exit $ac_status); }; }; then
5673   ac_cv_func_dlopen=yes
5674 else
5675   echo "$as_me: failed program was:" >&5
5676 cat conftest.$ac_ext >&5
5677 ac_cv_func_dlopen=no
5678 fi
5679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5680 fi
5681 echo "$as_me:5681: result: $ac_cv_func_dlopen" >&5
5682 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5683 if test $ac_cv_func_dlopen = yes; then
5684   lt_cv_dlopen="dlopen"
5685 else
5686   echo "$as_me:5686: checking for dlopen in -ldl" >&5
5687 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5688 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5689   echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691   ac_check_lib_save_LIBS=$LIBS
5692 LIBS="-ldl  $LIBS"
5693 cat >conftest.$ac_ext <<_ACEOF
5694 #line 5694 "configure"
5695 #include "confdefs.h"
5696
5697 /* Override any gcc2 internal prototype to avoid an error.  */
5698 #ifdef __cplusplus
5699 extern "C"
5700 #endif
5701 /* We use char because int might match the return type of a gcc2
5702    builtin and then its argument prototype would still apply.  */
5703 char dlopen ();
5704 int
5705 main ()
5706 {
5707 dlopen ();
5708   ;
5709   return 0;
5710 }
5711 _ACEOF
5712 rm -f conftest.$ac_objext conftest$ac_exeext
5713 if { (eval echo "$as_me:5713: \"$ac_link\"") >&5
5714   (eval $ac_link) 2>&5
5715   ac_status=$?
5716   echo "$as_me:5716: \$? = $ac_status" >&5
5717   (exit $ac_status); } &&
5718          { ac_try='test -s conftest$ac_exeext'
5719   { (eval echo "$as_me:5719: \"$ac_try\"") >&5
5720   (eval $ac_try) 2>&5
5721   ac_status=$?
5722   echo "$as_me:5722: \$? = $ac_status" >&5
5723   (exit $ac_status); }; }; then
5724   ac_cv_lib_dl_dlopen=yes
5725 else
5726   echo "$as_me: failed program was:" >&5
5727 cat conftest.$ac_ext >&5
5728 ac_cv_lib_dl_dlopen=no
5729 fi
5730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5731 LIBS=$ac_check_lib_save_LIBS
5732 fi
5733 echo "$as_me:5733: result: $ac_cv_lib_dl_dlopen" >&5
5734 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5735 if test $ac_cv_lib_dl_dlopen = yes; then
5736   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5737 else
5738   echo "$as_me:5738: checking for dlopen in -lsvld" >&5
5739 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5740 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5741   echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743   ac_check_lib_save_LIBS=$LIBS
5744 LIBS="-lsvld  $LIBS"
5745 cat >conftest.$ac_ext <<_ACEOF
5746 #line 5746 "configure"
5747 #include "confdefs.h"
5748
5749 /* Override any gcc2 internal prototype to avoid an error.  */
5750 #ifdef __cplusplus
5751 extern "C"
5752 #endif
5753 /* We use char because int might match the return type of a gcc2
5754    builtin and then its argument prototype would still apply.  */
5755 char dlopen ();
5756 int
5757 main ()
5758 {
5759 dlopen ();
5760   ;
5761   return 0;
5762 }
5763 _ACEOF
5764 rm -f conftest.$ac_objext conftest$ac_exeext
5765 if { (eval echo "$as_me:5765: \"$ac_link\"") >&5
5766   (eval $ac_link) 2>&5
5767   ac_status=$?
5768   echo "$as_me:5768: \$? = $ac_status" >&5
5769   (exit $ac_status); } &&
5770          { ac_try='test -s conftest$ac_exeext'
5771   { (eval echo "$as_me:5771: \"$ac_try\"") >&5
5772   (eval $ac_try) 2>&5
5773   ac_status=$?
5774   echo "$as_me:5774: \$? = $ac_status" >&5
5775   (exit $ac_status); }; }; then
5776   ac_cv_lib_svld_dlopen=yes
5777 else
5778   echo "$as_me: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5780 ac_cv_lib_svld_dlopen=no
5781 fi
5782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5783 LIBS=$ac_check_lib_save_LIBS
5784 fi
5785 echo "$as_me:5785: result: $ac_cv_lib_svld_dlopen" >&5
5786 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5787 if test $ac_cv_lib_svld_dlopen = yes; then
5788   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5789 else
5790   echo "$as_me:5790: checking for dld_link in -ldld" >&5
5791 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
5792 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
5793   echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795   ac_check_lib_save_LIBS=$LIBS
5796 LIBS="-ldld  $LIBS"
5797 cat >conftest.$ac_ext <<_ACEOF
5798 #line 5798 "configure"
5799 #include "confdefs.h"
5800
5801 /* Override any gcc2 internal prototype to avoid an error.  */
5802 #ifdef __cplusplus
5803 extern "C"
5804 #endif
5805 /* We use char because int might match the return type of a gcc2
5806    builtin and then its argument prototype would still apply.  */
5807 char dld_link ();
5808 int
5809 main ()
5810 {
5811 dld_link ();
5812   ;
5813   return 0;
5814 }
5815 _ACEOF
5816 rm -f conftest.$ac_objext conftest$ac_exeext
5817 if { (eval echo "$as_me:5817: \"$ac_link\"") >&5
5818   (eval $ac_link) 2>&5
5819   ac_status=$?
5820   echo "$as_me:5820: \$? = $ac_status" >&5
5821   (exit $ac_status); } &&
5822          { ac_try='test -s conftest$ac_exeext'
5823   { (eval echo "$as_me:5823: \"$ac_try\"") >&5
5824   (eval $ac_try) 2>&5
5825   ac_status=$?
5826   echo "$as_me:5826: \$? = $ac_status" >&5
5827   (exit $ac_status); }; }; then
5828   ac_cv_lib_dld_dld_link=yes
5829 else
5830   echo "$as_me: failed program was:" >&5
5831 cat conftest.$ac_ext >&5
5832 ac_cv_lib_dld_dld_link=no
5833 fi
5834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5835 LIBS=$ac_check_lib_save_LIBS
5836 fi
5837 echo "$as_me:5837: result: $ac_cv_lib_dld_dld_link" >&5
5838 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
5839 if test $ac_cv_lib_dld_dld_link = yes; then
5840   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5841 fi
5842
5843 fi
5844
5845 fi
5846
5847 fi
5848
5849 fi
5850
5851 fi
5852
5853     ;;
5854   esac
5855
5856   if test "x$lt_cv_dlopen" != xno; then
5857     enable_dlopen=yes
5858   else
5859     enable_dlopen=no
5860   fi
5861
5862   case $lt_cv_dlopen in
5863   dlopen)
5864     save_CPPFLAGS="$CPPFLAGS"
5865         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5866
5867     save_LDFLAGS="$LDFLAGS"
5868     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5869
5870     save_LIBS="$LIBS"
5871     LIBS="$lt_cv_dlopen_libs $LIBS"
5872
5873     echo "$as_me:5873: checking whether a program can dlopen itself" >&5
5874 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5875 if test "${lt_cv_dlopen_self+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878           if test "$cross_compiling" = yes; then :
5879   lt_cv_dlopen_self=cross
5880 else
5881     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5882   lt_status=$lt_dlunknown
5883   cat > conftest.$ac_ext <<EOF
5884 #line 5884 "configure"
5885 #include "confdefs.h"
5886
5887 #if HAVE_DLFCN_H
5888 #include <dlfcn.h>
5889 #endif
5890
5891 #include <stdio.h>
5892
5893 #ifdef RTLD_GLOBAL
5894 #  define LT_DLGLOBAL           RTLD_GLOBAL
5895 #else
5896 #  ifdef DL_GLOBAL
5897 #    define LT_DLGLOBAL         DL_GLOBAL
5898 #  else
5899 #    define LT_DLGLOBAL         0
5900 #  endif
5901 #endif
5902
5903 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5904    find out it does not work in some platform. */
5905 #ifndef LT_DLLAZY_OR_NOW
5906 #  ifdef RTLD_LAZY
5907 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
5908 #  else
5909 #    ifdef DL_LAZY
5910 #      define LT_DLLAZY_OR_NOW          DL_LAZY
5911 #    else
5912 #      ifdef RTLD_NOW
5913 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
5914 #      else
5915 #        ifdef DL_NOW
5916 #          define LT_DLLAZY_OR_NOW      DL_NOW
5917 #        else
5918 #          define LT_DLLAZY_OR_NOW      0
5919 #        endif
5920 #      endif
5921 #    endif
5922 #  endif
5923 #endif
5924
5925 #ifdef __cplusplus
5926 extern "C" void exit (int);
5927 #endif
5928
5929 void fnord() { int i=42;}
5930 int main ()
5931 {
5932   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5933   int status = $lt_dlunknown;
5934
5935   if (self)
5936     {
5937       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
5938       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5939       /* dlclose (self); */
5940     }
5941
5942     exit (status);
5943 }
5944 EOF
5945   if { (eval echo "$as_me:5945: \"$ac_link\"") >&5
5946   (eval $ac_link) 2>&5
5947   ac_status=$?
5948   echo "$as_me:5948: \$? = $ac_status" >&5
5949   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5950     (./conftest; exit; ) 2>/dev/null
5951     lt_status=$?
5952     case x$lt_status in
5953       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5954       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5955       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5956     esac
5957   else :
5958     # compilation failed
5959     lt_cv_dlopen_self=no
5960   fi
5961 fi
5962 rm -fr conftest*
5963
5964 fi
5965 echo "$as_me:5965: result: $lt_cv_dlopen_self" >&5
5966 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
5967
5968     if test "x$lt_cv_dlopen_self" = xyes; then
5969       LDFLAGS="$LDFLAGS $link_static_flag"
5970       echo "$as_me:5970: checking whether a statically linked program can dlopen itself" >&5
5971 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
5972 if test "${lt_cv_dlopen_self_static+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975           if test "$cross_compiling" = yes; then :
5976   lt_cv_dlopen_self_static=cross
5977 else
5978     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5979   lt_status=$lt_dlunknown
5980   cat > conftest.$ac_ext <<EOF
5981 #line 5981 "configure"
5982 #include "confdefs.h"
5983
5984 #if HAVE_DLFCN_H
5985 #include <dlfcn.h>
5986 #endif
5987
5988 #include <stdio.h>
5989
5990 #ifdef RTLD_GLOBAL
5991 #  define LT_DLGLOBAL           RTLD_GLOBAL
5992 #else
5993 #  ifdef DL_GLOBAL
5994 #    define LT_DLGLOBAL         DL_GLOBAL
5995 #  else
5996 #    define LT_DLGLOBAL         0
5997 #  endif
5998 #endif
5999
6000 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6001    find out it does not work in some platform. */
6002 #ifndef LT_DLLAZY_OR_NOW
6003 #  ifdef RTLD_LAZY
6004 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6005 #  else
6006 #    ifdef DL_LAZY
6007 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6008 #    else
6009 #      ifdef RTLD_NOW
6010 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6011 #      else
6012 #        ifdef DL_NOW
6013 #          define LT_DLLAZY_OR_NOW      DL_NOW
6014 #        else
6015 #          define LT_DLLAZY_OR_NOW      0
6016 #        endif
6017 #      endif
6018 #    endif
6019 #  endif
6020 #endif
6021
6022 #ifdef __cplusplus
6023 extern "C" void exit (int);
6024 #endif
6025
6026 void fnord() { int i=42;}
6027 int main ()
6028 {
6029   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6030   int status = $lt_dlunknown;
6031
6032   if (self)
6033     {
6034       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6035       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6036       /* dlclose (self); */
6037     }
6038
6039     exit (status);
6040 }
6041 EOF
6042   if { (eval echo "$as_me:6042: \"$ac_link\"") >&5
6043   (eval $ac_link) 2>&5
6044   ac_status=$?
6045   echo "$as_me:6045: \$? = $ac_status" >&5
6046   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6047     (./conftest; exit; ) 2>/dev/null
6048     lt_status=$?
6049     case x$lt_status in
6050       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6051       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6052       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6053     esac
6054   else :
6055     # compilation failed
6056     lt_cv_dlopen_self_static=no
6057   fi
6058 fi
6059 rm -fr conftest*
6060
6061 fi
6062 echo "$as_me:6062: result: $lt_cv_dlopen_self_static" >&5
6063 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6064     fi
6065
6066     CPPFLAGS="$save_CPPFLAGS"
6067     LDFLAGS="$save_LDFLAGS"
6068     LIBS="$save_LIBS"
6069     ;;
6070   esac
6071
6072   case $lt_cv_dlopen_self in
6073   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6074   *) enable_dlopen_self=unknown ;;
6075   esac
6076
6077   case $lt_cv_dlopen_self_static in
6078   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6079   *) enable_dlopen_self_static=unknown ;;
6080   esac
6081 fi
6082
6083 if test "$enable_shared" = yes && test "$GCC" = yes; then
6084   case $archive_cmds in
6085   *'~'*)
6086     # FIXME: we may have to deal with multi-command sequences.
6087     ;;
6088   '$CC '*)
6089     # Test whether the compiler implicitly links with -lc since on some
6090     # systems, -lgcc has to come before -lc. If gcc already passes -lc
6091     # to ld, don't add -lc before -lgcc.
6092     echo "$as_me:6092: checking whether -lc should be explicitly linked in" >&5
6093 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6094     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6095   echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097   $rm conftest*
6098     echo 'static int dummy;' > conftest.$ac_ext
6099
6100     if { (eval echo "$as_me:6100: \"$ac_compile\"") >&5
6101   (eval $ac_compile) 2>&5
6102   ac_status=$?
6103   echo "$as_me:6103: \$? = $ac_status" >&5
6104   (exit $ac_status); }; then
6105       soname=conftest
6106       lib=conftest
6107       libobjs=conftest.$ac_objext
6108       deplibs=
6109       wl=$lt_cv_prog_cc_wl
6110       compiler_flags=-v
6111       linker_flags=-v
6112       verstring=
6113       output_objdir=.
6114       libname=conftest
6115       save_allow_undefined_flag=$allow_undefined_flag
6116       allow_undefined_flag=
6117       if { (eval echo "$as_me:6117: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6118   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6119   ac_status=$?
6120   echo "$as_me:6120: \$? = $ac_status" >&5
6121   (exit $ac_status); }
6122       then
6123         lt_cv_archive_cmds_need_lc=no
6124       else
6125         lt_cv_archive_cmds_need_lc=yes
6126       fi
6127       allow_undefined_flag=$save_allow_undefined_flag
6128     else
6129       cat conftest.err 1>&5
6130     fi
6131 fi
6132
6133     echo "$as_me:6133: result: $lt_cv_archive_cmds_need_lc" >&5
6134 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6135     ;;
6136   esac
6137 fi
6138 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6139
6140 # The second clause should only fire when bootstrapping the
6141 # libtool distribution, otherwise you forgot to ship ltmain.sh
6142 # with your package, and you will get complaints that there are
6143 # no rules to generate ltmain.sh.
6144 if test -f "$ltmain"; then
6145   :
6146 else
6147   # If there is no Makefile yet, we rely on a make rule to execute
6148   # `config.status --recheck' to rerun these tests and create the
6149   # libtool script then.
6150   test -f Makefile && make "$ltmain"
6151 fi
6152
6153 if test -f "$ltmain"; then
6154   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6155   $rm -f "${ofile}T"
6156
6157   echo creating $ofile
6158
6159   # Now quote all the things that may contain metacharacters while being
6160   # careful not to overquote the AC_SUBSTed values.  We take copies of the
6161   # variables and quote the copies for generation of the libtool script.
6162   for var in echo old_CC old_CFLAGS \
6163     AR AR_FLAGS CC LD LN_S NM SHELL \
6164     reload_flag reload_cmds wl \
6165     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6166     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6167     library_names_spec soname_spec \
6168     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6169     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6170     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6171     old_striplib striplib file_magic_cmd export_symbols_cmds \
6172     deplibs_check_method allow_undefined_flag no_undefined_flag \
6173     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6174     global_symbol_to_c_name_address \
6175     hardcode_libdir_flag_spec hardcode_libdir_separator  \
6176     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6177     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6178
6179     case $var in
6180     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6181     old_postinstall_cmds | old_postuninstall_cmds | \
6182     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6183     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6184     postinstall_cmds | postuninstall_cmds | \
6185     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6186       # Double-quote double-evaled strings.
6187       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6188       ;;
6189     *)
6190       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6191       ;;
6192     esac
6193   done
6194
6195   cat <<__EOF__ > "${ofile}T"
6196 #! $SHELL
6197
6198 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6199 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6200 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6201 #
6202 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6203 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6204 #
6205 # This program is free software; you can redistribute it and/or modify
6206 # it under the terms of the GNU General Public License as published by
6207 # the Free Software Foundation; either version 2 of the License, or
6208 # (at your option) any later version.
6209 #
6210 # This program is distributed in the hope that it will be useful, but
6211 # WITHOUT ANY WARRANTY; without even the implied warranty of
6212 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6213 # General Public License for more details.
6214 #
6215 # You should have received a copy of the GNU General Public License
6216 # along with this program; if not, write to the Free Software
6217 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6218 #
6219 # As a special exception to the GNU General Public License, if you
6220 # distribute this file as part of a program that contains a
6221 # configuration script generated by Autoconf, you may include it under
6222 # the same distribution terms that you use for the rest of that program.
6223
6224 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6225 Xsed="sed -e s/^X//"
6226
6227 # The HP-UX ksh and POSIX shell print the target directory to stdout
6228 # if CDPATH is set.
6229 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6230
6231 # ### BEGIN LIBTOOL CONFIG
6232
6233 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6234
6235 # Shell to use when invoking shell scripts.
6236 SHELL=$lt_SHELL
6237
6238 # Whether or not to build shared libraries.
6239 build_libtool_libs=$enable_shared
6240
6241 # Whether or not to build static libraries.
6242 build_old_libs=$enable_static
6243
6244 # Whether or not to add -lc for building shared libraries.
6245 build_libtool_need_lc=$need_lc
6246
6247 # Whether or not to optimize for fast installation.
6248 fast_install=$enable_fast_install
6249
6250 # The host system.
6251 host_alias=$host_alias
6252 host=$host
6253
6254 # An echo program that does not interpret backslashes.
6255 echo=$lt_echo
6256
6257 # The archiver.
6258 AR=$lt_AR
6259 AR_FLAGS=$lt_AR_FLAGS
6260
6261 # The default C compiler.
6262 CC=$lt_CC
6263
6264 # Is the compiler the GNU C compiler?
6265 with_gcc=$GCC
6266
6267 # The linker used to build libraries.
6268 LD=$lt_LD
6269
6270 # Whether we need hard or soft links.
6271 LN_S=$lt_LN_S
6272
6273 # A BSD-compatible nm program.
6274 NM=$lt_NM
6275
6276 # A symbol stripping program
6277 STRIP=$STRIP
6278
6279 # Used to examine libraries when file_magic_cmd begins "file"
6280 MAGIC_CMD=$MAGIC_CMD
6281
6282 # Used on cygwin: DLL creation program.
6283 DLLTOOL="$DLLTOOL"
6284
6285 # Used on cygwin: object dumper.
6286 OBJDUMP="$OBJDUMP"
6287
6288 # Used on cygwin: assembler.
6289 AS="$AS"
6290
6291 # The name of the directory that contains temporary libtool files.
6292 objdir=$objdir
6293
6294 # How to create reloadable object files.
6295 reload_flag=$lt_reload_flag
6296 reload_cmds=$lt_reload_cmds
6297
6298 # How to pass a linker flag through the compiler.
6299 wl=$lt_wl
6300
6301 # Object file suffix (normally "o").
6302 objext="$ac_objext"
6303
6304 # Old archive suffix (normally "a").
6305 libext="$libext"
6306
6307 # Executable file suffix (normally "").
6308 exeext="$exeext"
6309
6310 # Additional compiler flags for building library objects.
6311 pic_flag=$lt_pic_flag
6312 pic_mode=$pic_mode
6313
6314 # Does compiler simultaneously support -c and -o options?
6315 compiler_c_o=$lt_compiler_c_o
6316
6317 # Can we write directly to a .lo ?
6318 compiler_o_lo=$lt_compiler_o_lo
6319
6320 # Must we lock files when doing compilation ?
6321 need_locks=$lt_need_locks
6322
6323 # Do we need the lib prefix for modules?
6324 need_lib_prefix=$need_lib_prefix
6325
6326 # Do we need a version for libraries?
6327 need_version=$need_version
6328
6329 # Whether dlopen is supported.
6330 dlopen_support=$enable_dlopen
6331
6332 # Whether dlopen of programs is supported.
6333 dlopen_self=$enable_dlopen_self
6334
6335 # Whether dlopen of statically linked programs is supported.
6336 dlopen_self_static=$enable_dlopen_self_static
6337
6338 # Compiler flag to prevent dynamic linking.
6339 link_static_flag=$lt_link_static_flag
6340
6341 # Compiler flag to turn off builtin functions.
6342 no_builtin_flag=$lt_no_builtin_flag
6343
6344 # Compiler flag to allow reflexive dlopens.
6345 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6346
6347 # Compiler flag to generate shared objects directly from archives.
6348 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6349
6350 # Compiler flag to generate thread-safe objects.
6351 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6352
6353 # Library versioning type.
6354 version_type=$version_type
6355
6356 # Format of library name prefix.
6357 libname_spec=$lt_libname_spec
6358
6359 # List of archive names.  First name is the real one, the rest are links.
6360 # The last name is the one that the linker finds with -lNAME.
6361 library_names_spec=$lt_library_names_spec
6362
6363 # The coded name of the library, if different from the real name.
6364 soname_spec=$lt_soname_spec
6365
6366 # Commands used to build and install an old-style archive.
6367 RANLIB=$lt_RANLIB
6368 old_archive_cmds=$lt_old_archive_cmds
6369 old_postinstall_cmds=$lt_old_postinstall_cmds
6370 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6371
6372 # Create an old-style archive from a shared archive.
6373 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6374
6375 # Create a temporary old-style archive to link instead of a shared archive.
6376 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6377
6378 # Commands used to build and install a shared archive.
6379 archive_cmds=$lt_archive_cmds
6380 archive_expsym_cmds=$lt_archive_expsym_cmds
6381 postinstall_cmds=$lt_postinstall_cmds
6382 postuninstall_cmds=$lt_postuninstall_cmds
6383
6384 # Commands to strip libraries.
6385 old_striplib=$lt_old_striplib
6386 striplib=$lt_striplib
6387
6388 # Method to check whether dependent libraries are shared objects.
6389 deplibs_check_method=$lt_deplibs_check_method
6390
6391 # Command to use when deplibs_check_method == file_magic.
6392 file_magic_cmd=$lt_file_magic_cmd
6393
6394 # Flag that allows shared libraries with undefined symbols to be built.
6395 allow_undefined_flag=$lt_allow_undefined_flag
6396
6397 # Flag that forces no undefined symbols.
6398 no_undefined_flag=$lt_no_undefined_flag
6399
6400 # Commands used to finish a libtool library installation in a directory.
6401 finish_cmds=$lt_finish_cmds
6402
6403 # Same as above, but a single script fragment to be evaled but not shown.
6404 finish_eval=$lt_finish_eval
6405
6406 # Take the output of nm and produce a listing of raw symbols and C names.
6407 global_symbol_pipe=$lt_global_symbol_pipe
6408
6409 # Transform the output of nm in a proper C declaration
6410 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6411
6412 # Transform the output of nm in a C name address pair
6413 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6414
6415 # This is the shared library runtime path variable.
6416 runpath_var=$runpath_var
6417
6418 # This is the shared library path variable.
6419 shlibpath_var=$shlibpath_var
6420
6421 # Is shlibpath searched before the hard-coded library search path?
6422 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6423
6424 # How to hardcode a shared library path into an executable.
6425 hardcode_action=$hardcode_action
6426
6427 # Whether we should hardcode library paths into libraries.
6428 hardcode_into_libs=$hardcode_into_libs
6429
6430 # Flag to hardcode \$libdir into a binary during linking.
6431 # This must work even if \$libdir does not exist.
6432 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6433
6434 # Whether we need a single -rpath flag with a separated argument.
6435 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6436
6437 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6438 # resulting binary.
6439 hardcode_direct=$hardcode_direct
6440
6441 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6442 # resulting binary.
6443 hardcode_minus_L=$hardcode_minus_L
6444
6445 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6446 # the resulting binary.
6447 hardcode_shlibpath_var=$hardcode_shlibpath_var
6448
6449 # Variables whose values should be saved in libtool wrapper scripts and
6450 # restored at relink time.
6451 variables_saved_for_relink="$variables_saved_for_relink"
6452
6453 # Whether libtool must link a program against all its dependency libraries.
6454 link_all_deplibs=$link_all_deplibs
6455
6456 # Compile-time system search path for libraries
6457 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6458
6459 # Run-time system search path for libraries
6460 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6461
6462 # Fix the shell variable \$srcfile for the compiler.
6463 fix_srcfile_path="$fix_srcfile_path"
6464
6465 # Set to yes if exported symbols are required.
6466 always_export_symbols=$always_export_symbols
6467
6468 # The commands to list exported symbols.
6469 export_symbols_cmds=$lt_export_symbols_cmds
6470
6471 # The commands to extract the exported symbol list from a shared archive.
6472 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6473
6474 # Symbols that should not be listed in the preloaded symbols.
6475 exclude_expsyms=$lt_exclude_expsyms
6476
6477 # Symbols that must always be exported.
6478 include_expsyms=$lt_include_expsyms
6479
6480 # ### END LIBTOOL CONFIG
6481
6482 __EOF__
6483
6484   case $host_os in
6485   aix3*)
6486     cat <<\EOF >> "${ofile}T"
6487
6488 # AIX sometimes has problems with the GCC collect2 program.  For some
6489 # reason, if we set the COLLECT_NAMES environment variable, the problems
6490 # vanish in a puff of smoke.
6491 if test "X${COLLECT_NAMES+set}" != Xset; then
6492   COLLECT_NAMES=
6493   export COLLECT_NAMES
6494 fi
6495 EOF
6496     ;;
6497   esac
6498
6499   case $host_os in
6500   cygwin* | mingw* | pw32* | os2*)
6501     cat <<'EOF' >> "${ofile}T"
6502       # This is a source program that is used to create dlls on Windows
6503       # Don't remove nor modify the starting and closing comments
6504 # /* ltdll.c starts here */
6505 # #define WIN32_LEAN_AND_MEAN
6506 # #include <windows.h>
6507 # #undef WIN32_LEAN_AND_MEAN
6508 # #include <stdio.h>
6509 #
6510 # #ifndef __CYGWIN__
6511 # #  ifdef __CYGWIN32__
6512 # #    define __CYGWIN__ __CYGWIN32__
6513 # #  endif
6514 # #endif
6515 #
6516 # #ifdef __cplusplus
6517 # extern "C" {
6518 # #endif
6519 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6520 # #ifdef __cplusplus
6521 # }
6522 # #endif
6523 #
6524 # #ifdef __CYGWIN__
6525 # #include <cygwin/cygwin_dll.h>
6526 # DECLARE_CYGWIN_DLL( DllMain );
6527 # #endif
6528 # HINSTANCE __hDllInstance_base;
6529 #
6530 # BOOL APIENTRY
6531 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6532 # {
6533 #   __hDllInstance_base = hInst;
6534 #   return TRUE;
6535 # }
6536 # /* ltdll.c ends here */
6537         # This is a source program that is used to create import libraries
6538         # on Windows for dlls which lack them. Don't remove nor modify the
6539         # starting and closing comments
6540 # /* impgen.c starts here */
6541 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
6542 #
6543 #  This file is part of GNU libtool.
6544 #
6545 #  This program is free software; you can redistribute it and/or modify
6546 #  it under the terms of the GNU General Public License as published by
6547 #  the Free Software Foundation; either version 2 of the License, or
6548 #  (at your option) any later version.
6549 #
6550 #  This program is distributed in the hope that it will be useful,
6551 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
6552 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6553 #  GNU General Public License for more details.
6554 #
6555 #  You should have received a copy of the GNU General Public License
6556 #  along with this program; if not, write to the Free Software
6557 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6558 #  */
6559 #
6560 # #include <stdio.h>            /* for printf() */
6561 # #include <unistd.h>           /* for open(), lseek(), read() */
6562 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
6563 # #include <string.h>           /* for strdup() */
6564 #
6565 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6566 # #ifndef O_BINARY
6567 # #define O_BINARY 0
6568 # #endif
6569 #
6570 # static unsigned int
6571 # pe_get16 (fd, offset)
6572 #      int fd;
6573 #      int offset;
6574 # {
6575 #   unsigned char b[2];
6576 #   lseek (fd, offset, SEEK_SET);
6577 #   read (fd, b, 2);
6578 #   return b[0] + (b[1]<<8);
6579 # }
6580 #
6581 # static unsigned int
6582 # pe_get32 (fd, offset)
6583 #     int fd;
6584 #     int offset;
6585 # {
6586 #   unsigned char b[4];
6587 #   lseek (fd, offset, SEEK_SET);
6588 #   read (fd, b, 4);
6589 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6590 # }
6591 #
6592 # static unsigned int
6593 # pe_as32 (ptr)
6594 #      void *ptr;
6595 # {
6596 #   unsigned char *b = ptr;
6597 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6598 # }
6599 #
6600 # int
6601 # main (argc, argv)
6602 #     int argc;
6603 #     char *argv[];
6604 # {
6605 #     int dll;
6606 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6607 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
6608 #     unsigned long name_rvas, nexp;
6609 #     unsigned char *expdata, *erva;
6610 #     char *filename, *dll_name;
6611 #
6612 #     filename = argv[1];
6613 #
6614 #     dll = open(filename, O_RDONLY|O_BINARY);
6615 #     if (dll < 1)
6616 #       return 1;
6617 #
6618 #     dll_name = filename;
6619 #
6620 #     for (i=0; filename[i]; i++)
6621 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
6622 #           dll_name = filename + i +1;
6623 #
6624 #     pe_header_offset = pe_get32 (dll, 0x3c);
6625 #     opthdr_ofs = pe_header_offset + 4 + 20;
6626 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
6627 #
6628 #     if (num_entries < 1) /* no exports */
6629 #       return 1;
6630 #
6631 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
6632 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
6633 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6634 #     secptr = (pe_header_offset + 4 + 20 +
6635 #             pe_get16 (dll, pe_header_offset + 4 + 16));
6636 #
6637 #     expptr = 0;
6638 #     for (i = 0; i < nsections; i++)
6639 #     {
6640 #       char sname[8];
6641 #       unsigned long secptr1 = secptr + 40 * i;
6642 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6643 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6644 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6645 #       lseek(dll, secptr1, SEEK_SET);
6646 #       read(dll, sname, 8);
6647 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
6648 #       {
6649 #           expptr = fptr + (export_rva - vaddr);
6650 #           if (export_rva + export_size > vaddr + vsize)
6651 #               export_size = vsize - (export_rva - vaddr);
6652 #           break;
6653 #       }
6654 #     }
6655 #
6656 #     expdata = (unsigned char*)malloc(export_size);
6657 #     lseek (dll, expptr, SEEK_SET);
6658 #     read (dll, expdata, export_size);
6659 #     erva = expdata - export_rva;
6660 #
6661 #     nexp = pe_as32 (expdata+24);
6662 #     name_rvas = pe_as32 (expdata+32);
6663 #
6664 #     printf ("EXPORTS\n");
6665 #     for (i = 0; i<nexp; i++)
6666 #     {
6667 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6668 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6669 #     }
6670 #
6671 #     return 0;
6672 # }
6673 # /* impgen.c ends here */
6674
6675 EOF
6676     ;;
6677   esac
6678
6679   # We use sed instead of cat because bash on DJGPP gets confused if
6680   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
6681   # text mode, it properly converts lines to CR/LF.  This bash problem
6682   # is reportedly fixed, but why not run on old versions too?
6683   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6684
6685   mv -f "${ofile}T" "$ofile" || \
6686     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6687   chmod +x "$ofile"
6688 fi
6689
6690 # This can be used to rebuild libtool when needed
6691 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6692
6693 # Always use our own libtool.
6694 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6695
6696 # Prevent multiple expansion
6697
6698 # Check whether --enable-debug or --disable-debug was given.
6699 if test "${enable_debug+set}" = set; then
6700   enableval="$enable_debug"
6701
6702         CXXFLAGS="-g -O0 -Wall"
6703     cat >>confdefs.h <<\EOF
6704 #define WITH_DEBUG 1
6705 EOF
6706
6707 else
6708
6709         CXXFLAGS="-O0"
6710
6711 fi;
6712
6713 # Check whether --with-libldap or --without-libldap was given.
6714 if test "${with_libldap+set}" = set; then
6715   withval="$with_libldap"
6716
6717         LIBS="-L$with_libldap $LIBS "
6718
6719 else
6720
6721         LIBS="-L/usr/local/lib $LIBS "
6722
6723 fi;
6724
6725 # Check whether --with-ldap-includes or --without-ldap-includes was given.
6726 if test "${with_ldap_includes+set}" = set; then
6727   withval="$with_ldap_includes"
6728
6729         CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
6730
6731 else
6732
6733         CPPFLAGS="-I/usr/local/include $CPPFLAGS "
6734
6735 fi;
6736
6737 echo "$as_me:6737: checking for main in -lresolv" >&5
6738 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
6739 if test "${ac_cv_lib_resolv_main+set}" = set; then
6740   echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742   ac_check_lib_save_LIBS=$LIBS
6743 LIBS="-lresolv  $LIBS"
6744 cat >conftest.$ac_ext <<_ACEOF
6745 #line 6745 "configure"
6746 #include "confdefs.h"
6747
6748 int
6749 main ()
6750 {
6751 main ();
6752   ;
6753   return 0;
6754 }
6755 _ACEOF
6756 rm -f conftest.$ac_objext conftest$ac_exeext
6757 if { (eval echo "$as_me:6757: \"$ac_link\"") >&5
6758   (eval $ac_link) 2>&5
6759   ac_status=$?
6760   echo "$as_me:6760: \$? = $ac_status" >&5
6761   (exit $ac_status); } &&
6762          { ac_try='test -s conftest$ac_exeext'
6763   { (eval echo "$as_me:6763: \"$ac_try\"") >&5
6764   (eval $ac_try) 2>&5
6765   ac_status=$?
6766   echo "$as_me:6766: \$? = $ac_status" >&5
6767   (exit $ac_status); }; }; then
6768   ac_cv_lib_resolv_main=yes
6769 else
6770   echo "$as_me: failed program was:" >&5
6771 cat conftest.$ac_ext >&5
6772 ac_cv_lib_resolv_main=no
6773 fi
6774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6775 LIBS=$ac_check_lib_save_LIBS
6776 fi
6777 echo "$as_me:6777: result: $ac_cv_lib_resolv_main" >&5
6778 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6779 if test $ac_cv_lib_resolv_main = yes; then
6780   cat >>confdefs.h <<EOF
6781 #define HAVE_LIBRESOLV 1
6782 EOF
6783
6784   LIBS="-lresolv $LIBS"
6785
6786 fi
6787
6788 echo "$as_me:6788: checking for ber_strdup in -llber" >&5
6789 echo $ECHO_N "checking for ber_strdup in -llber... $ECHO_C" >&6
6790 if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   ac_check_lib_save_LIBS=$LIBS
6794 LIBS="-llber  $LIBS"
6795 cat >conftest.$ac_ext <<_ACEOF
6796 #line 6796 "configure"
6797 #include "confdefs.h"
6798
6799 /* Override any gcc2 internal prototype to avoid an error.  */
6800 #ifdef __cplusplus
6801 extern "C"
6802 #endif
6803 /* We use char because int might match the return type of a gcc2
6804    builtin and then its argument prototype would still apply.  */
6805 char ber_strdup ();
6806 int
6807 main ()
6808 {
6809 ber_strdup ();
6810   ;
6811   return 0;
6812 }
6813 _ACEOF
6814 rm -f conftest.$ac_objext conftest$ac_exeext
6815 if { (eval echo "$as_me:6815: \"$ac_link\"") >&5
6816   (eval $ac_link) 2>&5
6817   ac_status=$?
6818   echo "$as_me:6818: \$? = $ac_status" >&5
6819   (exit $ac_status); } &&
6820          { ac_try='test -s conftest$ac_exeext'
6821   { (eval echo "$as_me:6821: \"$ac_try\"") >&5
6822   (eval $ac_try) 2>&5
6823   ac_status=$?
6824   echo "$as_me:6824: \$? = $ac_status" >&5
6825   (exit $ac_status); }; }; then
6826   ac_cv_lib_lber_ber_strdup=yes
6827 else
6828   echo "$as_me: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6830 ac_cv_lib_lber_ber_strdup=no
6831 fi
6832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6833 LIBS=$ac_check_lib_save_LIBS
6834 fi
6835 echo "$as_me:6835: result: $ac_cv_lib_lber_ber_strdup" >&5
6836 echo "${ECHO_T}$ac_cv_lib_lber_ber_strdup" >&6
6837 if test $ac_cv_lib_lber_ber_strdup = yes; then
6838
6839         :
6840
6841 else
6842
6843         echo "        didn't find ber_strdup in liblber !";
6844         echo "        Check for the right version (>= 2.0) of the OpenLDAP libraries";
6845         echo "        or try the --with-libldap option.";
6846         exit
6847
6848 fi
6849
6850 echo "$as_me:6850: checking for ldap_add_ext in -lldap" >&5
6851 echo $ECHO_N "checking for ldap_add_ext in -lldap... $ECHO_C" >&6
6852 if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then
6853   echo $ECHO_N "(cached) $ECHO_C" >&6
6854 else
6855   ac_check_lib_save_LIBS=$LIBS
6856 LIBS="-lldap
6857     -llber
6858      $LIBS"
6859 cat >conftest.$ac_ext <<_ACEOF
6860 #line 6860 "configure"
6861 #include "confdefs.h"
6862
6863 /* Override any gcc2 internal prototype to avoid an error.  */
6864 #ifdef __cplusplus
6865 extern "C"
6866 #endif
6867 /* We use char because int might match the return type of a gcc2
6868    builtin and then its argument prototype would still apply.  */
6869 char ldap_add_ext ();
6870 int
6871 main ()
6872 {
6873 ldap_add_ext ();
6874   ;
6875   return 0;
6876 }
6877 _ACEOF
6878 rm -f conftest.$ac_objext conftest$ac_exeext
6879 if { (eval echo "$as_me:6879: \"$ac_link\"") >&5
6880   (eval $ac_link) 2>&5
6881   ac_status=$?
6882   echo "$as_me:6882: \$? = $ac_status" >&5
6883   (exit $ac_status); } &&
6884          { ac_try='test -s conftest$ac_exeext'
6885   { (eval echo "$as_me:6885: \"$ac_try\"") >&5
6886   (eval $ac_try) 2>&5
6887   ac_status=$?
6888   echo "$as_me:6888: \$? = $ac_status" >&5
6889   (exit $ac_status); }; }; then
6890   ac_cv_lib_ldap_ldap_add_ext=yes
6891 else
6892   echo "$as_me: failed program was:" >&5
6893 cat conftest.$ac_ext >&5
6894 ac_cv_lib_ldap_ldap_add_ext=no
6895 fi
6896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6897 LIBS=$ac_check_lib_save_LIBS
6898 fi
6899 echo "$as_me:6899: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
6900 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_add_ext" >&6
6901 if test $ac_cv_lib_ldap_ldap_add_ext = yes; then
6902
6903         :
6904
6905 else
6906
6907         echo "        didn't find ldap_add_ext in libldap !";
6908         echo "        Check for the right version (>= 2.0) of the OpenLDAP libraries";
6909         echo "        or try the --with-libldap option.";
6910         exit
6911
6912 fi
6913
6914 echo "$as_me:6914: checking whether time.h and sys/time.h may both be included" >&5
6915 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6916 if test "${ac_cv_header_time+set}" = set; then
6917   echo $ECHO_N "(cached) $ECHO_C" >&6
6918 else
6919   cat >conftest.$ac_ext <<_ACEOF
6920 #line 6920 "configure"
6921 #include "confdefs.h"
6922 #include <sys/types.h>
6923 #include <sys/time.h>
6924 #include <time.h>
6925
6926 int
6927 main ()
6928 {
6929 if ((struct tm *) 0)
6930 return 0;
6931   ;
6932   return 0;
6933 }
6934 _ACEOF
6935 rm -f conftest.$ac_objext
6936 if { (eval echo "$as_me:6936: \"$ac_compile\"") >&5
6937   (eval $ac_compile) 2>&5
6938   ac_status=$?
6939   echo "$as_me:6939: \$? = $ac_status" >&5
6940   (exit $ac_status); } &&
6941          { ac_try='test -s conftest.$ac_objext'
6942   { (eval echo "$as_me:6942: \"$ac_try\"") >&5
6943   (eval $ac_try) 2>&5
6944   ac_status=$?
6945   echo "$as_me:6945: \$? = $ac_status" >&5
6946   (exit $ac_status); }; }; then
6947   ac_cv_header_time=yes
6948 else
6949   echo "$as_me: failed program was:" >&5
6950 cat conftest.$ac_ext >&5
6951 ac_cv_header_time=no
6952 fi
6953 rm -f conftest.$ac_objext conftest.$ac_ext
6954 fi
6955 echo "$as_me:6955: result: $ac_cv_header_time" >&5
6956 echo "${ECHO_T}$ac_cv_header_time" >&6
6957 if test $ac_cv_header_time = yes; then
6958
6959 cat >>confdefs.h <<\EOF
6960 #define TIME_WITH_SYS_TIME 1
6961 EOF
6962
6963 fi
6964
6965 echo "$as_me:6965: checking for ldap.h" >&5
6966 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
6967 if test "${ac_cv_header_ldap_h+set}" = set; then
6968   echo $ECHO_N "(cached) $ECHO_C" >&6
6969 else
6970   cat >conftest.$ac_ext <<_ACEOF
6971 #line 6971 "configure"
6972 #include "confdefs.h"
6973 #include <ldap.h>
6974 _ACEOF
6975 if { (eval echo "$as_me:6975: \"$ac_cpp conftest.$ac_ext\"") >&5
6976   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6977   ac_status=$?
6978   egrep -v '^ *\+' conftest.er1 >conftest.err
6979   rm -f conftest.er1
6980   cat conftest.err >&5
6981   echo "$as_me:6981: \$? = $ac_status" >&5
6982   (exit $ac_status); } >/dev/null; then
6983   if test -s conftest.err; then
6984     ac_cpp_err=$ac_c_preproc_warn_flag
6985   else
6986     ac_cpp_err=
6987   fi
6988 else
6989   ac_cpp_err=yes
6990 fi
6991 if test -z "$ac_cpp_err"; then
6992   ac_cv_header_ldap_h=yes
6993 else
6994   echo "$as_me: failed program was:" >&5
6995   cat conftest.$ac_ext >&5
6996   ac_cv_header_ldap_h=no
6997 fi
6998 rm -f conftest.err conftest.$ac_ext
6999 fi
7000 echo "$as_me:7000: result: $ac_cv_header_ldap_h" >&5
7001 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
7002
7003 cat >conftest.$ac_ext <<_ACEOF
7004 #line 7004 "configure"
7005 #include "confdefs.h"
7006 #include <ldap.h>
7007
7008 _ACEOF
7009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010   egrep "ldap_add_ext" >/dev/null 2>&1; then
7011
7012         :
7013
7014 else
7015
7016         echo "        didn't find ldap_add_ext in ldap.h!";
7017         echo "        Check for the right version (>= 2.0) of the OpenLDAP includes";
7018         echo "        or try --with-ldap-includes option.";
7019         exit
7020
7021 fi
7022 rm -f conftest*
7023
7024 echo "$as_me:7024: checking for lber.h" >&5
7025 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
7026 if test "${ac_cv_header_lber_h+set}" = set; then
7027   echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029   cat >conftest.$ac_ext <<_ACEOF
7030 #line 7030 "configure"
7031 #include "confdefs.h"
7032 #include <lber.h>
7033 _ACEOF
7034 if { (eval echo "$as_me:7034: \"$ac_cpp conftest.$ac_ext\"") >&5
7035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7036   ac_status=$?
7037   egrep -v '^ *\+' conftest.er1 >conftest.err
7038   rm -f conftest.er1
7039   cat conftest.err >&5
7040   echo "$as_me:7040: \$? = $ac_status" >&5
7041   (exit $ac_status); } >/dev/null; then
7042   if test -s conftest.err; then
7043     ac_cpp_err=$ac_c_preproc_warn_flag
7044   else
7045     ac_cpp_err=
7046   fi
7047 else
7048   ac_cpp_err=yes
7049 fi
7050 if test -z "$ac_cpp_err"; then
7051   ac_cv_header_lber_h=yes
7052 else
7053   echo "$as_me: failed program was:" >&5
7054   cat conftest.$ac_ext >&5
7055   ac_cv_header_lber_h=no
7056 fi
7057 rm -f conftest.err conftest.$ac_ext
7058 fi
7059 echo "$as_me:7059: result: $ac_cv_header_lber_h" >&5
7060 echo "${ECHO_T}$ac_cv_header_lber_h" >&6
7061
7062 cat >conftest.$ac_ext <<_ACEOF
7063 #line 7063 "configure"
7064 #include "confdefs.h"
7065 #include <lber.h>
7066
7067 _ACEOF
7068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7069   egrep "ber_strdup" >/dev/null 2>&1; then
7070
7071         :
7072
7073 else
7074
7075         echo "        didn't find ber_strdup in lber.h!";
7076         echo "        Check for the right version (>= 2.0) of the OpenLDAP includes";
7077         echo "        or try --with-ldap-includes option.";
7078         exit
7079
7080 fi
7081 rm -f conftest*
7082
7083 ac_config_files="$ac_config_files Makefile src/Makefile"
7084 cat >confcache <<\_ACEOF
7085 # This file is a shell script that caches the results of configure
7086 # tests run on this system so they can be shared between configure
7087 # scripts and configure runs, see configure's option --config-cache.
7088 # It is not useful on other systems.  If it contains results you don't
7089 # want to keep, you may remove or edit it.
7090 #
7091 # config.status only pays attention to the cache file if you give it
7092 # the --recheck option to rerun configure.
7093 #
7094 # `ac_cv_env_foo' variables (set or unset) will be overriden when
7095 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7096 # following values.
7097
7098 _ACEOF
7099
7100 # The following way of writing the cache mishandles newlines in values,
7101 # but we know of no workaround that is simple, portable, and efficient.
7102 # So, don't put newlines in cache variables' values.
7103 # Ultrix sh set writes to stderr and can't be redirected directly,
7104 # and sets the high bit in the cache file unless we assign to the vars.
7105 {
7106   (set) 2>&1 |
7107     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7108     *ac_space=\ *)
7109       # `set' does not quote correctly, so add quotes (double-quote
7110       # substitution turns \\\\ into \\, and sed turns \\ into \).
7111       sed -n \
7112         "s/'/'\\\\''/g;
7113           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7114       ;;
7115     *)
7116       # `set' quotes correctly as required by POSIX, so do not add quotes.
7117       sed -n \
7118         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7119       ;;
7120     esac;
7121 } |
7122   sed '
7123      t clear
7124      : clear
7125      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7126      t end
7127      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7128      : end' >>confcache
7129 if cmp -s $cache_file confcache; then :; else
7130   if test -w $cache_file; then
7131     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7132     cat confcache >$cache_file
7133   else
7134     echo "not updating unwritable cache $cache_file"
7135   fi
7136 fi
7137 rm -f confcache
7138
7139 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7140 # Let make expand exec_prefix.
7141 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7142
7143 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7144 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7145 # trailing colons and then remove the whole line if VPATH becomes empty
7146 # (actually we leave an empty line to preserve line numbers).
7147 if test "x$srcdir" = x.; then
7148   ac_vpsub='/^[         ]*VPATH[        ]*=/{
7149 s/:*\$(srcdir):*/:/;
7150 s/:*\${srcdir}:*/:/;
7151 s/:*@srcdir@:*/:/;
7152 s/^\([^=]*=[    ]*\):*/\1/;
7153 s/:*$//;
7154 s/^[^=]*=[      ]*$//;
7155 }'
7156 fi
7157
7158 DEFS=-DHAVE_CONFIG_H
7159
7160 : ${CONFIG_STATUS=./config.status}
7161 ac_clean_files_save=$ac_clean_files
7162 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7163 { echo "$as_me:7163: creating $CONFIG_STATUS" >&5
7164 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7165 cat >$CONFIG_STATUS <<_ACEOF
7166 #! $SHELL
7167 # Generated automatically by configure.
7168 # Run this file to recreate the current configuration.
7169 # Compiler output produced by configure, useful for debugging
7170 # configure, is in config.log if it exists.
7171
7172 debug=false
7173 SHELL=\${CONFIG_SHELL-$SHELL}
7174 ac_cs_invocation="\$0 \$@"
7175
7176 _ACEOF
7177
7178 cat >>$CONFIG_STATUS <<\_ACEOF
7179 # Be Bourne compatible
7180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7181   emulate sh
7182   NULLCMD=:
7183 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7184   set -o posix
7185 fi
7186
7187 # Name of the executable.
7188 as_me=`echo "$0" |sed 's,.*[\\/],,'`
7189
7190 if expr a : '\(a\)' >/dev/null 2>&1; then
7191   as_expr=expr
7192 else
7193   as_expr=false
7194 fi
7195
7196 rm -f conf$$ conf$$.exe conf$$.file
7197 echo >conf$$.file
7198 if ln -s conf$$.file conf$$ 2>/dev/null; then
7199   # We could just check for DJGPP; but this test a) works b) is more generic
7200   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7201   if test -f conf$$.exe; then
7202     # Don't use ln at all; we don't have any links
7203     as_ln_s='cp -p'
7204   else
7205     as_ln_s='ln -s'
7206   fi
7207 elif ln conf$$.file conf$$ 2>/dev/null; then
7208   as_ln_s=ln
7209 else
7210   as_ln_s='cp -p'
7211 fi
7212 rm -f conf$$ conf$$.exe conf$$.file
7213
7214 as_executable_p="test -f"
7215
7216 # Support unset when possible.
7217 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7218   as_unset=unset
7219 else
7220   as_unset=false
7221 fi
7222
7223 # NLS nuisances.
7224 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
7225 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
7226 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
7227 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
7228 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
7229 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
7230 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
7231 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7232
7233 # IFS
7234 # We need space, tab and new line, in precisely that order.
7235 as_nl='
7236 '
7237 IFS="   $as_nl"
7238
7239 # CDPATH.
7240 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7241
7242 exec 6>&1
7243
7244 _ACEOF
7245
7246 # Files that config.status was made for.
7247 if test -n "$ac_config_files"; then
7248   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7249 fi
7250
7251 if test -n "$ac_config_headers"; then
7252   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7253 fi
7254
7255 if test -n "$ac_config_links"; then
7256   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7257 fi
7258
7259 if test -n "$ac_config_commands"; then
7260   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7261 fi
7262
7263 cat >>$CONFIG_STATUS <<\EOF
7264
7265 ac_cs_usage="\
7266 \`$as_me' instantiates files from templates according to the
7267 current configuration.
7268
7269 Usage: $0 [OPTIONS] [FILE]...
7270
7271   -h, --help       print this help, then exit
7272   -V, --version    print version number, then exit
7273   -d, --debug      don't remove temporary files
7274       --recheck    update $as_me by reconfiguring in the same conditions
7275   --file=FILE[:TEMPLATE]
7276                    instantiate the configuration file FILE
7277   --header=FILE[:TEMPLATE]
7278                    instantiate the configuration header FILE
7279
7280 Configuration files:
7281 $config_files
7282
7283 Configuration headers:
7284 $config_headers
7285
7286 Configuration commands:
7287 $config_commands
7288
7289 Report bugs to <bug-autoconf@gnu.org>."
7290 EOF
7291
7292 cat >>$CONFIG_STATUS <<EOF
7293 ac_cs_version="\\
7294 config.status
7295 configured by $0, generated by GNU Autoconf 2.52,
7296   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7297
7298 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7299 Free Software Foundation, Inc.
7300 This config.status script is free software; the Free Software Foundation
7301 gives unlimited permission to copy, distribute and modify it."
7302 srcdir=$srcdir
7303 INSTALL="$INSTALL"
7304 EOF
7305
7306 cat >>$CONFIG_STATUS <<\EOF
7307 # If no file are specified by the user, then we need to provide default
7308 # value.  By we need to know if files were specified by the user.
7309 ac_need_defaults=:
7310 while test $# != 0
7311 do
7312   case $1 in
7313   --*=*)
7314     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7315     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7316     shift
7317     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7318     shift
7319     ;;
7320   -*);;
7321   *) # This is not an option, so the user has probably given explicit
7322      # arguments.
7323      ac_need_defaults=false;;
7324   esac
7325
7326   case $1 in
7327   # Handling of the options.
7328 EOF
7329 cat >>$CONFIG_STATUS <<EOF
7330   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7331     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7332     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7333 EOF
7334 cat >>$CONFIG_STATUS <<\EOF
7335   --version | --vers* | -V )
7336     echo "$ac_cs_version"; exit 0 ;;
7337   --he | --h)
7338     # Conflict between --help and --header
7339     { { echo "$as_me:7339: error: ambiguous option: $1
7340 Try \`$0 --help' for more information." >&5
7341 echo "$as_me: error: ambiguous option: $1
7342 Try \`$0 --help' for more information." >&2;}
7343    { (exit 1); exit 1; }; };;
7344   --help | --hel | -h )
7345     echo "$ac_cs_usage"; exit 0 ;;
7346   --debug | --d* | -d )
7347     debug=: ;;
7348   --file | --fil | --fi | --f )
7349     shift
7350     CONFIG_FILES="$CONFIG_FILES $1"
7351     ac_need_defaults=false;;
7352   --header | --heade | --head | --hea )
7353     shift
7354     CONFIG_HEADERS="$CONFIG_HEADERS $1"
7355     ac_need_defaults=false;;
7356
7357   # This is an error.
7358   -*) { { echo "$as_me:7358: error: unrecognized option: $1
7359 Try \`$0 --help' for more information." >&5
7360 echo "$as_me: error: unrecognized option: $1
7361 Try \`$0 --help' for more information." >&2;}
7362    { (exit 1); exit 1; }; } ;;
7363
7364   *) ac_config_targets="$ac_config_targets $1" ;;
7365
7366   esac
7367   shift
7368 done
7369
7370 exec 5>>config.log
7371 cat >&5 << _ACEOF
7372
7373 ## ----------------------- ##
7374 ## Running config.status.  ##
7375 ## ----------------------- ##
7376
7377 This file was extended by $as_me 2.52, executed with
7378   CONFIG_FILES    = $CONFIG_FILES
7379   CONFIG_HEADERS  = $CONFIG_HEADERS
7380   CONFIG_LINKS    = $CONFIG_LINKS
7381   CONFIG_COMMANDS = $CONFIG_COMMANDS
7382   > $ac_cs_invocation
7383 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7384
7385 _ACEOF
7386 EOF
7387
7388 cat >>$CONFIG_STATUS <<EOF
7389 #
7390 # INIT-COMMANDS section.
7391 #
7392
7393 EOF
7394
7395 cat >>$CONFIG_STATUS <<\EOF
7396 for ac_config_target in $ac_config_targets
7397 do
7398   case "$ac_config_target" in
7399   # Handling of arguments.
7400   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7401   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7402   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7403   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
7404   *) { { echo "$as_me:7404: error: invalid argument: $ac_config_target" >&5
7405 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7406    { (exit 1); exit 1; }; };;
7407   esac
7408 done
7409
7410 # If the user did not use the arguments to specify the items to instantiate,
7411 # then the envvar interface is used.  Set only those that are not.
7412 # We use the long form for the default assignment because of an extremely
7413 # bizarre bug on SunOS 4.1.3.
7414 if $ac_need_defaults; then
7415   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7416   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7417   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7418 fi
7419
7420 # Create a temporary directory, and hook for its removal unless debugging.
7421 $debug ||
7422 {
7423   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7424   trap '{ (exit 1); exit 1; }' 1 2 13 15
7425 }
7426
7427 # Create a (secure) tmp directory for tmp files.
7428 : ${TMPDIR=/tmp}
7429 {
7430   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7431   test -n "$tmp" && test -d "$tmp"
7432 }  ||
7433 {
7434   tmp=$TMPDIR/cs$$-$RANDOM
7435   (umask 077 && mkdir $tmp)
7436 } ||
7437 {
7438    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7439    { (exit 1); exit 1; }
7440 }
7441
7442 EOF
7443
7444 cat >>$CONFIG_STATUS <<EOF
7445
7446 #
7447 # CONFIG_FILES section.
7448 #
7449
7450 # No need to generate the scripts if there are no CONFIG_FILES.
7451 # This happens for instance when ./config.status config.h
7452 if test -n "\$CONFIG_FILES"; then
7453   # Protect against being on the right side of a sed subst in config.status.
7454   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7455    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7456 s,@SHELL@,$SHELL,;t t
7457 s,@exec_prefix@,$exec_prefix,;t t
7458 s,@prefix@,$prefix,;t t
7459 s,@program_transform_name@,$program_transform_name,;t t
7460 s,@bindir@,$bindir,;t t
7461 s,@sbindir@,$sbindir,;t t
7462 s,@libexecdir@,$libexecdir,;t t
7463 s,@datadir@,$datadir,;t t
7464 s,@sysconfdir@,$sysconfdir,;t t
7465 s,@sharedstatedir@,$sharedstatedir,;t t
7466 s,@localstatedir@,$localstatedir,;t t
7467 s,@libdir@,$libdir,;t t
7468 s,@includedir@,$includedir,;t t
7469 s,@oldincludedir@,$oldincludedir,;t t
7470 s,@infodir@,$infodir,;t t
7471 s,@mandir@,$mandir,;t t
7472 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7473 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7474 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7475 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7476 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7477 s,@build_alias@,$build_alias,;t t
7478 s,@host_alias@,$host_alias,;t t
7479 s,@target_alias@,$target_alias,;t t
7480 s,@ECHO_C@,$ECHO_C,;t t
7481 s,@ECHO_N@,$ECHO_N,;t t
7482 s,@ECHO_T@,$ECHO_T,;t t
7483 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7484 s,@DEFS@,$DEFS,;t t
7485 s,@LIBS@,$LIBS,;t t
7486 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7487 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7488 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7489 s,@PACKAGE@,$PACKAGE,;t t
7490 s,@VERSION@,$VERSION,;t t
7491 s,@ACLOCAL@,$ACLOCAL,;t t
7492 s,@AUTOCONF@,$AUTOCONF,;t t
7493 s,@AUTOMAKE@,$AUTOMAKE,;t t
7494 s,@AUTOHEADER@,$AUTOHEADER,;t t
7495 s,@MAKEINFO@,$MAKEINFO,;t t
7496 s,@SET_MAKE@,$SET_MAKE,;t t
7497 s,@CXX@,$CXX,;t t
7498 s,@CXXFLAGS@,$CXXFLAGS,;t t
7499 s,@LDFLAGS@,$LDFLAGS,;t t
7500 s,@CPPFLAGS@,$CPPFLAGS,;t t
7501 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7502 s,@EXEEXT@,$EXEEXT,;t t
7503 s,@OBJEXT@,$OBJEXT,;t t
7504 s,@build@,$build,;t t
7505 s,@build_cpu@,$build_cpu,;t t
7506 s,@build_vendor@,$build_vendor,;t t
7507 s,@build_os@,$build_os,;t t
7508 s,@host@,$host,;t t
7509 s,@host_cpu@,$host_cpu,;t t
7510 s,@host_vendor@,$host_vendor,;t t
7511 s,@host_os@,$host_os,;t t
7512 s,@CC@,$CC,;t t
7513 s,@CFLAGS@,$CFLAGS,;t t
7514 s,@ac_ct_CC@,$ac_ct_CC,;t t
7515 s,@LN_S@,$LN_S,;t t
7516 s,@ECHO@,$ECHO,;t t
7517 s,@RANLIB@,$RANLIB,;t t
7518 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7519 s,@STRIP@,$STRIP,;t t
7520 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7521 s,@CPP@,$CPP,;t t
7522 s,@LIBTOOL@,$LIBTOOL,;t t
7523 CEOF
7524
7525 EOF
7526
7527   cat >>$CONFIG_STATUS <<\EOF
7528   # Split the substitutions into bite-sized pieces for seds with
7529   # small command number limits, like on Digital OSF/1 and HP-UX.
7530   ac_max_sed_lines=48
7531   ac_sed_frag=1 # Number of current file.
7532   ac_beg=1 # First line for current file.
7533   ac_end=$ac_max_sed_lines # Line after last line for current file.
7534   ac_more_lines=:
7535   ac_sed_cmds=
7536   while $ac_more_lines; do
7537     if test $ac_beg -gt 1; then
7538       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7539     else
7540       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7541     fi
7542     if test ! -s $tmp/subs.frag; then
7543       ac_more_lines=false
7544     else
7545       # The purpose of the label and of the branching condition is to
7546       # speed up the sed processing (if there are no `@' at all, there
7547       # is no need to browse any of the substitutions).
7548       # These are the two extra sed commands mentioned above.
7549       (echo ':t
7550   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7551       if test -z "$ac_sed_cmds"; then
7552         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7553       else
7554         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7555       fi
7556       ac_sed_frag=`expr $ac_sed_frag + 1`
7557       ac_beg=$ac_end
7558       ac_end=`expr $ac_end + $ac_max_sed_lines`
7559     fi
7560   done
7561   if test -z "$ac_sed_cmds"; then
7562     ac_sed_cmds=cat
7563   fi
7564 fi # test -n "$CONFIG_FILES"
7565
7566 EOF
7567 cat >>$CONFIG_STATUS <<\EOF
7568 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7569   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7570   case $ac_file in
7571   - | *:- | *:-:* ) # input from stdin
7572         cat >$tmp/stdin
7573         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7574         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7575   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7576         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7577   * )   ac_file_in=$ac_file.in ;;
7578   esac
7579
7580   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7581   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7582          X"$ac_file" : 'X\(//\)[^/]' \| \
7583          X"$ac_file" : 'X\(//\)$' \| \
7584          X"$ac_file" : 'X\(/\)' \| \
7585          .     : '\(.\)' 2>/dev/null ||
7586 echo X"$ac_file" |
7587     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7588           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7589           /^X\(\/\/\)$/{ s//\1/; q; }
7590           /^X\(\/\).*/{ s//\1/; q; }
7591           s/.*/./; q'`
7592   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7593     { case "$ac_dir" in
7594   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7595   *)                      as_incr_dir=.;;
7596 esac
7597 as_dummy="$ac_dir"
7598 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7599   case $as_mkdir_dir in
7600     # Skip DOS drivespec
7601     ?:) as_incr_dir=$as_mkdir_dir ;;
7602     *)
7603       as_incr_dir=$as_incr_dir/$as_mkdir_dir
7604       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7605     ;;
7606   esac
7607 done; }
7608
7609     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
7610     # A "../" for each directory in $ac_dir_suffix.
7611     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7612   else
7613     ac_dir_suffix= ac_dots=
7614   fi
7615
7616   case $srcdir in
7617   .)  ac_srcdir=.
7618       if test -z "$ac_dots"; then
7619          ac_top_srcdir=.
7620       else
7621          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
7622       fi ;;
7623   [\\/]* | ?:[\\/]* )
7624       ac_srcdir=$srcdir$ac_dir_suffix;
7625       ac_top_srcdir=$srcdir ;;
7626   *) # Relative path.
7627     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
7628     ac_top_srcdir=$ac_dots$srcdir ;;
7629   esac
7630
7631   case $INSTALL in
7632   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7633   *) ac_INSTALL=$ac_dots$INSTALL ;;
7634   esac
7635
7636   if test x"$ac_file" != x-; then
7637     { echo "$as_me:7637: creating $ac_file" >&5
7638 echo "$as_me: creating $ac_file" >&6;}
7639     rm -f "$ac_file"
7640   fi
7641   # Let's still pretend it is `configure' which instantiates (i.e., don't
7642   # use $as_me), people would be surprised to read:
7643   #    /* config.h.  Generated automatically by config.status.  */
7644   configure_input="Generated automatically from `echo $ac_file_in |
7645                                                  sed 's,.*/,,'` by configure."
7646
7647   # First look for the input files in the build tree, otherwise in the
7648   # src tree.
7649   ac_file_inputs=`IFS=:
7650     for f in $ac_file_in; do
7651       case $f in
7652       -) echo $tmp/stdin ;;
7653       [\\/$]*)
7654          # Absolute (can't be DOS-style, as IFS=:)
7655          test -f "$f" || { { echo "$as_me:7655: error: cannot find input file: $f" >&5
7656 echo "$as_me: error: cannot find input file: $f" >&2;}
7657    { (exit 1); exit 1; }; }
7658          echo $f;;
7659       *) # Relative
7660          if test -f "$f"; then
7661            # Build tree
7662            echo $f
7663          elif test -f "$srcdir/$f"; then
7664            # Source tree
7665            echo $srcdir/$f
7666          else
7667            # /dev/null tree
7668            { { echo "$as_me:7668: error: cannot find input file: $f" >&5
7669 echo "$as_me: error: cannot find input file: $f" >&2;}
7670    { (exit 1); exit 1; }; }
7671          fi;;
7672       esac
7673     done` || { (exit 1); exit 1; }
7674 EOF
7675 cat >>$CONFIG_STATUS <<EOF
7676   sed "$ac_vpsub
7677 $extrasub
7678 EOF
7679 cat >>$CONFIG_STATUS <<\EOF
7680 :t
7681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7682 s,@configure_input@,$configure_input,;t t
7683 s,@srcdir@,$ac_srcdir,;t t
7684 s,@top_srcdir@,$ac_top_srcdir,;t t
7685 s,@INSTALL@,$ac_INSTALL,;t t
7686 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7687   rm -f $tmp/stdin
7688   if test x"$ac_file" != x-; then
7689     mv $tmp/out $ac_file
7690   else
7691     cat $tmp/out
7692     rm -f $tmp/out
7693   fi
7694
7695 done
7696 EOF
7697 cat >>$CONFIG_STATUS <<\EOF
7698
7699 #
7700 # CONFIG_HEADER section.
7701 #
7702
7703 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7704 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7705 #
7706 # ac_d sets the value in "#define NAME VALUE" lines.
7707 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7708 ac_dB='[        ].*$,\1#\2'
7709 ac_dC=' '
7710 ac_dD=',;t'
7711 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7712 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7713 ac_uB='$,\1#\2define\3'
7714 ac_uC=' '
7715 ac_uD=',;t'
7716
7717 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7718   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7719   case $ac_file in
7720   - | *:- | *:-:* ) # input from stdin
7721         cat >$tmp/stdin
7722         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7723         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7724   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7725         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7726   * )   ac_file_in=$ac_file.in ;;
7727   esac
7728
7729   test x"$ac_file" != x- && { echo "$as_me:7729: creating $ac_file" >&5
7730 echo "$as_me: creating $ac_file" >&6;}
7731
7732   # First look for the input files in the build tree, otherwise in the
7733   # src tree.
7734   ac_file_inputs=`IFS=:
7735     for f in $ac_file_in; do
7736       case $f in
7737       -) echo $tmp/stdin ;;
7738       [\\/$]*)
7739          # Absolute (can't be DOS-style, as IFS=:)
7740          test -f "$f" || { { echo "$as_me:7740: error: cannot find input file: $f" >&5
7741 echo "$as_me: error: cannot find input file: $f" >&2;}
7742    { (exit 1); exit 1; }; }
7743          echo $f;;
7744       *) # Relative
7745          if test -f "$f"; then
7746            # Build tree
7747            echo $f
7748          elif test -f "$srcdir/$f"; then
7749            # Source tree
7750            echo $srcdir/$f
7751          else
7752            # /dev/null tree
7753            { { echo "$as_me:7753: error: cannot find input file: $f" >&5
7754 echo "$as_me: error: cannot find input file: $f" >&2;}
7755    { (exit 1); exit 1; }; }
7756          fi;;
7757       esac
7758     done` || { (exit 1); exit 1; }
7759   # Remove the trailing spaces.
7760   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
7761
7762 EOF
7763
7764 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7765 # `conftest.undefs', that substitutes the proper values into
7766 # config.h.in to produce config.h.  The first handles `#define'
7767 # templates, and the second `#undef' templates.
7768 # And first: Protect against being on the right side of a sed subst in
7769 # config.status.  Protect against being in an unquoted here document
7770 # in config.status.
7771 rm -f conftest.defines conftest.undefs
7772 # Using a here document instead of a string reduces the quoting nightmare.
7773 # Putting comments in sed scripts is not portable.
7774 #
7775 # `end' is used to avoid that the second main sed command (meant for
7776 # 0-ary CPP macros) applies to n-ary macro definitions.
7777 # See the Autoconf documentation for `clear'.
7778 cat >confdef2sed.sed <<\EOF
7779 s/[\\&,]/\\&/g
7780 s,[\\$`],\\&,g
7781 t clear
7782 : clear
7783 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7784 t end
7785 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7786 : end
7787 EOF
7788 # If some macros were called several times there might be several times
7789 # the same #defines, which is useless.  Nevertheless, we may not want to
7790 # sort them, since we want the *last* AC-DEFINE to be honored.
7791 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7792 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7793 rm -f confdef2sed.sed
7794
7795 # This sed command replaces #undef with comments.  This is necessary, for
7796 # example, in the case of _POSIX_SOURCE, which is predefined and required
7797 # on some systems where configure will not decide to define it.
7798 cat >>conftest.undefs <<\EOF
7799 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7800 EOF
7801
7802 # Break up conftest.defines because some shells have a limit on the size
7803 # of here documents, and old seds have small limits too (100 cmds).
7804 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7805 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7806 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7807 echo '  :' >>$CONFIG_STATUS
7808 rm -f conftest.tail
7809 while grep . conftest.defines >/dev/null
7810 do
7811   # Write a limited-size here document to $tmp/defines.sed.
7812   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7813   # Speed up: don't consider the non `#define' lines.
7814   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
7815   # Work around the forget-to-reset-the-flag bug.
7816   echo 't clr' >>$CONFIG_STATUS
7817   echo ': clr' >>$CONFIG_STATUS
7818   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7819   echo 'CEOF
7820   sed -f $tmp/defines.sed $tmp/in >$tmp/out
7821   rm -f $tmp/in
7822   mv $tmp/out $tmp/in
7823 ' >>$CONFIG_STATUS
7824   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7825   rm -f conftest.defines
7826   mv conftest.tail conftest.defines
7827 done
7828 rm -f conftest.defines
7829 echo '  fi # egrep' >>$CONFIG_STATUS
7830 echo >>$CONFIG_STATUS
7831
7832 # Break up conftest.undefs because some shells have a limit on the size
7833 # of here documents, and old seds have small limits too (100 cmds).
7834 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7835 rm -f conftest.tail
7836 while grep . conftest.undefs >/dev/null
7837 do
7838   # Write a limited-size here document to $tmp/undefs.sed.
7839   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7840   # Speed up: don't consider the non `#undef'
7841   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7842   # Work around the forget-to-reset-the-flag bug.
7843   echo 't clr' >>$CONFIG_STATUS
7844   echo ': clr' >>$CONFIG_STATUS
7845   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7846   echo 'CEOF
7847   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7848   rm -f $tmp/in
7849   mv $tmp/out $tmp/in
7850 ' >>$CONFIG_STATUS
7851   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7852   rm -f conftest.undefs
7853   mv conftest.tail conftest.undefs
7854 done
7855 rm -f conftest.undefs
7856
7857 cat >>$CONFIG_STATUS <<\EOF
7858   # Let's still pretend it is `configure' which instantiates (i.e., don't
7859   # use $as_me), people would be surprised to read:
7860   #    /* config.h.  Generated automatically by config.status.  */
7861   if test x"$ac_file" = x-; then
7862     echo "/* Generated automatically by configure.  */" >$tmp/config.h
7863   else
7864     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
7865   fi
7866   cat $tmp/in >>$tmp/config.h
7867   rm -f $tmp/in
7868   if test x"$ac_file" != x-; then
7869     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7870       { echo "$as_me:7870: $ac_file is unchanged" >&5
7871 echo "$as_me: $ac_file is unchanged" >&6;}
7872     else
7873       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7874          X"$ac_file" : 'X\(//\)[^/]' \| \
7875          X"$ac_file" : 'X\(//\)$' \| \
7876          X"$ac_file" : 'X\(/\)' \| \
7877          .     : '\(.\)' 2>/dev/null ||
7878 echo X"$ac_file" |
7879     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7880           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7881           /^X\(\/\/\)$/{ s//\1/; q; }
7882           /^X\(\/\).*/{ s//\1/; q; }
7883           s/.*/./; q'`
7884       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7885         { case "$ac_dir" in
7886   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7887   *)                      as_incr_dir=.;;
7888 esac
7889 as_dummy="$ac_dir"
7890 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7891   case $as_mkdir_dir in
7892     # Skip DOS drivespec
7893     ?:) as_incr_dir=$as_mkdir_dir ;;
7894     *)
7895       as_incr_dir=$as_incr_dir/$as_mkdir_dir
7896       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7897     ;;
7898   esac
7899 done; }
7900
7901       fi
7902       rm -f $ac_file
7903       mv $tmp/config.h $ac_file
7904     fi
7905   else
7906     cat $tmp/config.h
7907     rm -f $tmp/config.h
7908   fi
7909 done
7910 EOF
7911 cat >>$CONFIG_STATUS <<\EOF
7912
7913 #
7914 # CONFIG_COMMANDS section.
7915 #
7916 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7917   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7918   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7919
7920   case $ac_dest in
7921     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h ;;
7922   esac
7923 done
7924 EOF
7925
7926 cat >>$CONFIG_STATUS <<\EOF
7927
7928 { (exit 0); exit 0; }
7929 EOF
7930 chmod +x $CONFIG_STATUS
7931 ac_clean_files=$ac_clean_files_save
7932
7933 # configure is writing to config.log, and then calls config.status.
7934 # config.status does its own redirection, appending to config.log.
7935 # Unfortunately, on DOS this fails, as config.log is still kept open
7936 # by configure, so config.status won't be able to write to it; its
7937 # output is simply discarded.  So we exec the FD to /dev/null,
7938 # effectively closing config.log, so it can be properly (re)opened and
7939 # appended to by config.status.  When coming back to configure, we
7940 # need to make the FD available again.
7941 if test "$no_create" != yes; then
7942   ac_cs_success=:
7943   exec 5>/dev/null
7944   $SHELL $CONFIG_STATUS || ac_cs_success=false
7945   exec 5>>config.log
7946   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7947   # would make configure fail if this is the last instruction.
7948   $ac_cs_success || { (exit 1); exit 1; }
7949 fi
7950