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