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