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