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