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