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