Generated from configure.in
[swftools.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Find the correct PATH separator.  Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247   UNAME=${UNAME-`uname 2>/dev/null`}
248   case X$UNAME in
249     *-DOS) lt_cv_sys_path_separator=';' ;;
250     *)     lt_cv_sys_path_separator=':' ;;
251   esac
252   PATH_SEPARATOR=$lt_cv_sys_path_separator
253 fi
254
255
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
258
259 case X$ECHO in
260 X*--fallback-echo)
261   # Remove one level of quotation (which was required for Make).
262   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
263   ;;
264 esac
265
266 echo=${ECHO-echo}
267 if test "X$1" = X--no-reexec; then
268   # Discard the --no-reexec flag, and continue.
269   shift
270 elif test "X$1" = X--fallback-echo; then
271   # Avoid inline document here, it may be left over
272   :
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274   # Yippee, $echo works!
275   :
276 else
277   # Restart under the correct shell.
278   exec $SHELL "$0" --no-reexec ${1+"$@"}
279 fi
280
281 if test "X$1" = X--fallback-echo; then
282   # used as fallback echo
283   shift
284   cat <<EOF
285
286 EOF
287   exit 0
288 fi
289
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
291 # if CDPATH is set.
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300        echo_test_string="`eval $cmd`" &&
301        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
302     then
303       break
304     fi
305   done
306 fi
307
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310    test "X$echo_testing_string" = "X$echo_test_string"; then
311   :
312 else
313   # The Solaris, AIX, and Digital Unix default echo programs unquote
314   # backslashes.  This makes it impossible to quote backslashes using
315   #   echo "$something" | sed 's/\\/\\\\/g'
316   #
317   # So, first we look for a working echo in the user's PATH.
318
319   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320   for dir in $PATH /usr/ucb; do
321     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324        test "X$echo_testing_string" = "X$echo_test_string"; then
325       echo="$dir/echo"
326       break
327     fi
328   done
329   IFS="$save_ifs"
330
331   if test "X$echo" = Xecho; then
332     # We didn't find a better echo, so look for alternatives.
333     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335        test "X$echo_testing_string" = "X$echo_test_string"; then
336       # This shell has a builtin print -r that does the trick.
337       echo='print -r'
338     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339          test "X$CONFIG_SHELL" != X/bin/ksh; then
340       # If we have ksh, try running configure again with it.
341       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342       export ORIGINAL_CONFIG_SHELL
343       CONFIG_SHELL=/bin/ksh
344       export CONFIG_SHELL
345       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
346     else
347       # Try using printf.
348       echo='printf %s\n'
349       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351          test "X$echo_testing_string" = "X$echo_test_string"; then
352         # Cool, printf works
353         :
354       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359         export CONFIG_SHELL
360         SHELL="$CONFIG_SHELL"
361         export SHELL
362         echo="$CONFIG_SHELL $0 --fallback-echo"
363       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364            test "X$echo_testing_string" = 'X\t' &&
365            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366            test "X$echo_testing_string" = "X$echo_test_string"; then
367         echo="$CONFIG_SHELL $0 --fallback-echo"
368       else
369         # maybe with a smaller string...
370         prev=:
371
372         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374           then
375             break
376           fi
377           prev="$cmd"
378         done
379
380         if test "$prev" != 'sed 50q "$0"'; then
381           echo_test_string=`eval $prev`
382           export echo_test_string
383           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384         else
385           # Oops.  We lost completely, so just stick with echo.
386           echo=echo
387         fi
388       fi
389     fi
390   fi
391 fi
392 fi
393
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
396 ECHO=$echo
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 fi
400
401
402
403 # Name of the host.
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
407
408 exec 6>&1
409
410 #
411 # Initializations.
412 #
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
415 cross_compiling=no
416 subdirs=
417 MFLAGS=
418 MAKEFLAGS=
419 SHELL=${CONFIG_SHELL-/bin/sh}
420
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete.  It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
425
426 # Identity of this package.
427 PACKAGE_NAME=
428 PACKAGE_TARNAME=
429 PACKAGE_VERSION=
430 PACKAGE_STRING=
431 PACKAGE_BUGREPORT=
432
433 ac_unique_file="src/"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
436 #include <stdio.h>
437 #if HAVE_SYS_TYPES_H
438 # include <sys/types.h>
439 #endif
440 #if HAVE_SYS_STAT_H
441 # include <sys/stat.h>
442 #endif
443 #if STDC_HEADERS
444 # include <stdlib.h>
445 # include <stddef.h>
446 #else
447 # if HAVE_STDLIB_H
448 #  include <stdlib.h>
449 # endif
450 #endif
451 #if HAVE_STRING_H
452 # if !STDC_HEADERS && HAVE_MEMORY_H
453 #  include <memory.h>
454 # endif
455 # include <string.h>
456 #endif
457 #if HAVE_STRINGS_H
458 # include <strings.h>
459 #endif
460 #if HAVE_INTTYPES_H
461 # include <inttypes.h>
462 #else
463 # if HAVE_STDINT_H
464 #  include <stdint.h>
465 # endif
466 #endif
467 #if HAVE_UNISTD_H
468 # include <unistd.h>
469 #endif"
470
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S ECHO STRIP ac_ct_STRIP EGREP LIBTOOL UNCOMPRESS AR SLEXT target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H FREETYPE_CONFIG lame_objects AVIFILE_CONFIG USE_GZIP PYTHON_LIB PYTHON_INCLUDES JPEG2SWF PNG2SWF LIBOBJS LTLIBOBJS'
472 ac_subst_files=''
473
474 # Initialize some variables set by options.
475 ac_init_help=
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
479 cache_file=/dev/null
480 exec_prefix=NONE
481 no_create=
482 no_recursion=
483 prefix=NONE
484 program_prefix=NONE
485 program_suffix=NONE
486 program_transform_name=s,x,x,
487 silent=
488 site=
489 srcdir=
490 verbose=
491 x_includes=NONE
492 x_libraries=NONE
493
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
511
512 ac_prev=
513 for ac_option
514 do
515   # If the previous option needs an argument, assign it.
516   if test -n "$ac_prev"; then
517     eval "$ac_prev=\$ac_option"
518     ac_prev=
519     continue
520   fi
521
522   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523
524   # Accept the important Cygnus configure options, so we can diagnose typos.
525
526   case $ac_option in
527
528   -bindir | --bindir | --bindi | --bind | --bin | --bi)
529     ac_prev=bindir ;;
530   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531     bindir=$ac_optarg ;;
532
533   -build | --build | --buil | --bui | --bu)
534     ac_prev=build_alias ;;
535   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536     build_alias=$ac_optarg ;;
537
538   -cache-file | --cache-file | --cache-fil | --cache-fi \
539   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540     ac_prev=cache_file ;;
541   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543     cache_file=$ac_optarg ;;
544
545   --config-cache | -C)
546     cache_file=config.cache ;;
547
548   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549     ac_prev=datadir ;;
550   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551   | --da=*)
552     datadir=$ac_optarg ;;
553
554   -disable-* | --disable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     eval "enable_$ac_feature=no" ;;
562
563   -enable-* | --enable-*)
564     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565     # Reject names that are not valid shell variable names.
566     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568    { (exit 1); exit 1; }; }
569     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570     case $ac_option in
571       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572       *) ac_optarg=yes ;;
573     esac
574     eval "enable_$ac_feature='$ac_optarg'" ;;
575
576   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578   | --exec | --exe | --ex)
579     ac_prev=exec_prefix ;;
580   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582   | --exec=* | --exe=* | --ex=*)
583     exec_prefix=$ac_optarg ;;
584
585   -gas | --gas | --ga | --g)
586     # Obsolete; use --with-gas.
587     with_gas=yes ;;
588
589   -help | --help | --hel | --he | -h)
590     ac_init_help=long ;;
591   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592     ac_init_help=recursive ;;
593   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594     ac_init_help=short ;;
595
596   -host | --host | --hos | --ho)
597     ac_prev=host_alias ;;
598   -host=* | --host=* | --hos=* | --ho=*)
599     host_alias=$ac_optarg ;;
600
601   -includedir | --includedir | --includedi | --included | --include \
602   | --includ | --inclu | --incl | --inc)
603     ac_prev=includedir ;;
604   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605   | --includ=* | --inclu=* | --incl=* | --inc=*)
606     includedir=$ac_optarg ;;
607
608   -infodir | --infodir | --infodi | --infod | --info | --inf)
609     ac_prev=infodir ;;
610   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611     infodir=$ac_optarg ;;
612
613   -libdir | --libdir | --libdi | --libd)
614     ac_prev=libdir ;;
615   -libdir=* | --libdir=* | --libdi=* | --libd=*)
616     libdir=$ac_optarg ;;
617
618   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619   | --libexe | --libex | --libe)
620     ac_prev=libexecdir ;;
621   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622   | --libexe=* | --libex=* | --libe=*)
623     libexecdir=$ac_optarg ;;
624
625   -localstatedir | --localstatedir | --localstatedi | --localstated \
626   | --localstate | --localstat | --localsta | --localst \
627   | --locals | --local | --loca | --loc | --lo)
628     ac_prev=localstatedir ;;
629   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632     localstatedir=$ac_optarg ;;
633
634   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635     ac_prev=mandir ;;
636   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637     mandir=$ac_optarg ;;
638
639   -nfp | --nfp | --nf)
640     # Obsolete; use --without-fp.
641     with_fp=no ;;
642
643   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644   | --no-cr | --no-c | -n)
645     no_create=yes ;;
646
647   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649     no_recursion=yes ;;
650
651   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653   | --oldin | --oldi | --old | --ol | --o)
654     ac_prev=oldincludedir ;;
655   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658     oldincludedir=$ac_optarg ;;
659
660   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661     ac_prev=prefix ;;
662   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663     prefix=$ac_optarg ;;
664
665   -program-prefix | --program-prefix | --program-prefi | --program-pref \
666   | --program-pre | --program-pr | --program-p)
667     ac_prev=program_prefix ;;
668   -program-prefix=* | --program-prefix=* | --program-prefi=* \
669   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670     program_prefix=$ac_optarg ;;
671
672   -program-suffix | --program-suffix | --program-suffi | --program-suff \
673   | --program-suf | --program-su | --program-s)
674     ac_prev=program_suffix ;;
675   -program-suffix=* | --program-suffix=* | --program-suffi=* \
676   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677     program_suffix=$ac_optarg ;;
678
679   -program-transform-name | --program-transform-name \
680   | --program-transform-nam | --program-transform-na \
681   | --program-transform-n | --program-transform- \
682   | --program-transform | --program-transfor \
683   | --program-transfo | --program-transf \
684   | --program-trans | --program-tran \
685   | --progr-tra | --program-tr | --program-t)
686     ac_prev=program_transform_name ;;
687   -program-transform-name=* | --program-transform-name=* \
688   | --program-transform-nam=* | --program-transform-na=* \
689   | --program-transform-n=* | --program-transform-=* \
690   | --program-transform=* | --program-transfor=* \
691   | --program-transfo=* | --program-transf=* \
692   | --program-trans=* | --program-tran=* \
693   | --progr-tra=* | --program-tr=* | --program-t=*)
694     program_transform_name=$ac_optarg ;;
695
696   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697   | -silent | --silent | --silen | --sile | --sil)
698     silent=yes ;;
699
700   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701     ac_prev=sbindir ;;
702   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703   | --sbi=* | --sb=*)
704     sbindir=$ac_optarg ;;
705
706   -sharedstatedir | --sharedstatedir | --sharedstatedi \
707   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708   | --sharedst | --shareds | --shared | --share | --shar \
709   | --sha | --sh)
710     ac_prev=sharedstatedir ;;
711   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714   | --sha=* | --sh=*)
715     sharedstatedir=$ac_optarg ;;
716
717   -site | --site | --sit)
718     ac_prev=site ;;
719   -site=* | --site=* | --sit=*)
720     site=$ac_optarg ;;
721
722   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723     ac_prev=srcdir ;;
724   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725     srcdir=$ac_optarg ;;
726
727   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728   | --syscon | --sysco | --sysc | --sys | --sy)
729     ac_prev=sysconfdir ;;
730   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732     sysconfdir=$ac_optarg ;;
733
734   -target | --target | --targe | --targ | --tar | --ta | --t)
735     ac_prev=target_alias ;;
736   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737     target_alias=$ac_optarg ;;
738
739   -v | -verbose | --verbose | --verbos | --verbo | --verb)
740     verbose=yes ;;
741
742   -version | --version | --versio | --versi | --vers | -V)
743     ac_init_version=: ;;
744
745   -with-* | --with-*)
746     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747     # Reject names that are not valid shell variable names.
748     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749       { echo "$as_me: error: invalid package name: $ac_package" >&2
750    { (exit 1); exit 1; }; }
751     ac_package=`echo $ac_package| sed 's/-/_/g'`
752     case $ac_option in
753       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754       *) ac_optarg=yes ;;
755     esac
756     eval "with_$ac_package='$ac_optarg'" ;;
757
758   -without-* | --without-*)
759     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760     # Reject names that are not valid shell variable names.
761     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762       { echo "$as_me: error: invalid package name: $ac_package" >&2
763    { (exit 1); exit 1; }; }
764     ac_package=`echo $ac_package | sed 's/-/_/g'`
765     eval "with_$ac_package=no" ;;
766
767   --x)
768     # Obsolete; use --with-x.
769     with_x=yes ;;
770
771   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772   | --x-incl | --x-inc | --x-in | --x-i)
773     ac_prev=x_includes ;;
774   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776     x_includes=$ac_optarg ;;
777
778   -x-libraries | --x-libraries | --x-librarie | --x-librari \
779   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780     ac_prev=x_libraries ;;
781   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783     x_libraries=$ac_optarg ;;
784
785   -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787    { (exit 1); exit 1; }; }
788     ;;
789
790   *=*)
791     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792     # Reject names that are not valid shell variable names.
793     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795    { (exit 1); exit 1; }; }
796     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797     eval "$ac_envvar='$ac_optarg'"
798     export $ac_envvar ;;
799
800   *)
801     # FIXME: should be removed in autoconf 3.0.
802     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806     ;;
807
808   esac
809 done
810
811 if test -n "$ac_prev"; then
812   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813   { echo "$as_me: error: missing argument to $ac_option" >&2
814    { (exit 1); exit 1; }; }
815 fi
816
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
819 do
820   eval ac_val=$`echo $ac_var`
821   case $ac_val in
822     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824    { (exit 1); exit 1; }; };;
825   esac
826 done
827
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830               localstatedir libdir includedir oldincludedir infodir mandir
831 do
832   eval ac_val=$`echo $ac_var`
833   case $ac_val in
834     [\\/$]* | ?:[\\/]* ) ;;
835     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836    { (exit 1); exit 1; }; };;
837   esac
838 done
839
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
843 build=$build_alias
844 host=$host_alias
845 target=$target_alias
846
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849   if test "x$build_alias" = x; then
850     cross_compiling=maybe
851     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852     If a cross compiler is detected then cross compile mode will be used." >&2
853   elif test "x$build_alias" != "x$host_alias"; then
854     cross_compiling=yes
855   fi
856 fi
857
858 ac_tool_prefix=
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860
861 test "$silent" = yes && exec 6>/dev/null
862
863
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866   ac_srcdir_defaulted=yes
867   # Try the directory containing this script, then its parent.
868   ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870          X"$0" : 'X\(//\)[^/]' \| \
871          X"$0" : 'X\(//\)$' \| \
872          X"$0" : 'X\(/\)' \| \
873          .     : '\(.\)' 2>/dev/null ||
874 echo X"$0" |
875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877           /^X\(\/\/\)$/{ s//\1/; q; }
878           /^X\(\/\).*/{ s//\1/; q; }
879           s/.*/./; q'`
880   srcdir=$ac_confdir
881   if test ! -r $srcdir/$ac_unique_file; then
882     srcdir=..
883   fi
884 else
885   ac_srcdir_defaulted=no
886 fi
887 if test ! -r $srcdir/$ac_unique_file; then
888   if test "$ac_srcdir_defaulted" = yes; then
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890    { (exit 1); exit 1; }; }
891   else
892     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893    { (exit 1); exit 1; }; }
894   fi
895 fi
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898    { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
913 ac_env_CC_value=$CC
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940
941 #
942 # Report the --help message.
943 #
944 if test "$ac_init_help" = "long"; then
945   # Omit some internal or obsolete options to make the list less imposing.
946   # This message is too long to be a string in the A/UX 3.1 sh.
947   cat <<_ACEOF
948 \`configure' configures this package to adapt to many kinds of systems.
949
950 Usage: $0 [OPTION]... [VAR=VALUE]...
951
952 To assign environment variables (e.g., CC, CFLAGS...), specify them as
953 VAR=VALUE.  See below for descriptions of some of the useful variables.
954
955 Defaults for the options are specified in brackets.
956
957 Configuration:
958   -h, --help              display this help and exit
959       --help=short        display options specific to this package
960       --help=recursive    display the short help of all the included packages
961   -V, --version           display version information and exit
962   -q, --quiet, --silent   do not print \`checking...' messages
963       --cache-file=FILE   cache test results in FILE [disabled]
964   -C, --config-cache      alias for \`--cache-file=config.cache'
965   -n, --no-create         do not create output files
966       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
967
968 _ACEOF
969
970   cat <<_ACEOF
971 Installation directories:
972   --prefix=PREFIX         install architecture-independent files in PREFIX
973                           [$ac_default_prefix]
974   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
975                           [PREFIX]
976
977 By default, \`make install' will install all the files in
978 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
979 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
980 for instance \`--prefix=\$HOME'.
981
982 For better control, use the options below.
983
984 Fine tuning of the installation directories:
985   --bindir=DIR           user executables [EPREFIX/bin]
986   --sbindir=DIR          system admin executables [EPREFIX/sbin]
987   --libexecdir=DIR       program executables [EPREFIX/libexec]
988   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
989   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
990   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
991   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
992   --libdir=DIR           object code libraries [EPREFIX/lib]
993   --includedir=DIR       C header files [PREFIX/include]
994   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
995   --infodir=DIR          info documentation [PREFIX/info]
996   --mandir=DIR           man documentation [PREFIX/man]
997 _ACEOF
998
999   cat <<\_ACEOF
1000
1001 Program names:
1002   --program-prefix=PREFIX            prepend PREFIX to installed program names
1003   --program-suffix=SUFFIX            append SUFFIX to installed program names
1004   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1005
1006 System types:
1007   --build=BUILD     configure for building on BUILD [guessed]
1008   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1009   --target=TARGET   configure for building compilers for TARGET [HOST]
1010 _ACEOF
1011 fi
1012
1013 if test -n "$ac_init_help"; then
1014
1015   cat <<\_ACEOF
1016
1017 Optional Features:
1018   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1019   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1020   --enable-checkmem       turn on ccmalloc debugging
1021   --enable-debug          turn on debugging
1022   --enable-warnings        turn on compiler warnings
1023   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1024   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1025   --enable-shared=PKGS  build shared libraries default=yes
1026   --enable-static=PKGS  build static libraries default=yes
1027   --enable-fast-install=PKGS  optimize for fast installation default=yes
1028   --disable-libtool-lock  avoid locking (might break parallel builds)
1029
1030 Optional Packages:
1031   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1032   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1033   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1034   --with-pic              try to use only PIC/non-PIC objects default=use both
1035
1036 Some influential environment variables:
1037   CC          C compiler command
1038   CFLAGS      C compiler flags
1039   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1040               nonstandard directory <lib dir>
1041   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042               headers in a nonstandard directory <include dir>
1043   CXX         C++ compiler command
1044   CXXFLAGS    C++ compiler flags
1045   CPP         C preprocessor
1046
1047 Use these variables to override the choices made by `configure' or to help
1048 it to find libraries and programs with nonstandard names/locations.
1049
1050 _ACEOF
1051 fi
1052
1053 if test "$ac_init_help" = "recursive"; then
1054   # If there are subdirs, report their specific --help.
1055   ac_popdir=`pwd`
1056   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057     test -d $ac_dir || continue
1058     ac_builddir=.
1059
1060 if test "$ac_dir" != .; then
1061   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062   # A "../" for each directory in $ac_dir_suffix.
1063   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064 else
1065   ac_dir_suffix= ac_top_builddir=
1066 fi
1067
1068 case $srcdir in
1069   .)  # No --srcdir option.  We are building in place.
1070     ac_srcdir=.
1071     if test -z "$ac_top_builddir"; then
1072        ac_top_srcdir=.
1073     else
1074        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075     fi ;;
1076   [\\/]* | ?:[\\/]* )  # Absolute path.
1077     ac_srcdir=$srcdir$ac_dir_suffix;
1078     ac_top_srcdir=$srcdir ;;
1079   *) # Relative path.
1080     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082 esac
1083
1084 # Do not use `cd foo && pwd` to compute absolute paths, because
1085 # the directories may not exist.
1086 case `pwd` in
1087 .) ac_abs_builddir="$ac_dir";;
1088 *)
1089   case "$ac_dir" in
1090   .) ac_abs_builddir=`pwd`;;
1091   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093   esac;;
1094 esac
1095 case $ac_abs_builddir in
1096 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1097 *)
1098   case ${ac_top_builddir}. in
1099   .) ac_abs_top_builddir=$ac_abs_builddir;;
1100   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102   esac;;
1103 esac
1104 case $ac_abs_builddir in
1105 .) ac_abs_srcdir=$ac_srcdir;;
1106 *)
1107   case $ac_srcdir in
1108   .) ac_abs_srcdir=$ac_abs_builddir;;
1109   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111   esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1115 *)
1116   case $ac_top_srcdir in
1117   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1120   esac;;
1121 esac
1122
1123     cd $ac_dir
1124     # Check for guested configure; otherwise get Cygnus style configure.
1125     if test -f $ac_srcdir/configure.gnu; then
1126       echo
1127       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1128     elif test -f $ac_srcdir/configure; then
1129       echo
1130       $SHELL $ac_srcdir/configure  --help=recursive
1131     elif test -f $ac_srcdir/configure.ac ||
1132            test -f $ac_srcdir/configure.in; then
1133       echo
1134       $ac_configure --help
1135     else
1136       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1137     fi
1138     cd $ac_popdir
1139   done
1140 fi
1141
1142 test -n "$ac_init_help" && exit 0
1143 if $ac_init_version; then
1144   cat <<\_ACEOF
1145
1146 Copyright (C) 2003 Free Software Foundation, Inc.
1147 This configure script is free software; the Free Software Foundation
1148 gives unlimited permission to copy, distribute and modify it.
1149 _ACEOF
1150   exit 0
1151 fi
1152 exec 5>config.log
1153 cat >&5 <<_ACEOF
1154 This file contains any messages produced by compilers while
1155 running configure, to aid debugging if configure makes a mistake.
1156
1157 It was created by $as_me, which was
1158 generated by GNU Autoconf 2.59.  Invocation command line was
1159
1160   $ $0 $@
1161
1162 _ACEOF
1163 {
1164 cat <<_ASUNAME
1165 ## --------- ##
1166 ## Platform. ##
1167 ## --------- ##
1168
1169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1174
1175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1177
1178 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1179 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1181 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1182 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1183 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1184 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1185
1186 _ASUNAME
1187
1188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189 for as_dir in $PATH
1190 do
1191   IFS=$as_save_IFS
1192   test -z "$as_dir" && as_dir=.
1193   echo "PATH: $as_dir"
1194 done
1195
1196 } >&5
1197
1198 cat >&5 <<_ACEOF
1199
1200
1201 ## ----------- ##
1202 ## Core tests. ##
1203 ## ----------- ##
1204
1205 _ACEOF
1206
1207
1208 # Keep a trace of the command line.
1209 # Strip out --no-create and --no-recursion so they do not pile up.
1210 # Strip out --silent because we don't want to record it for future runs.
1211 # Also quote any args containing shell meta-characters.
1212 # Make two passes to allow for proper duplicate-argument suppression.
1213 ac_configure_args=
1214 ac_configure_args0=
1215 ac_configure_args1=
1216 ac_sep=
1217 ac_must_keep_next=false
1218 for ac_pass in 1 2
1219 do
1220   for ac_arg
1221   do
1222     case $ac_arg in
1223     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225     | -silent | --silent | --silen | --sile | --sil)
1226       continue ;;
1227     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229     esac
1230     case $ac_pass in
1231     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1232     2)
1233       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234       if test $ac_must_keep_next = true; then
1235         ac_must_keep_next=false # Got value, back to normal.
1236       else
1237         case $ac_arg in
1238           *=* | --config-cache | -C | -disable-* | --disable-* \
1239           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241           | -with-* | --with-* | -without-* | --without-* | --x)
1242             case "$ac_configure_args0 " in
1243               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1244             esac
1245             ;;
1246           -* ) ac_must_keep_next=true ;;
1247         esac
1248       fi
1249       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250       # Get rid of the leading space.
1251       ac_sep=" "
1252       ;;
1253     esac
1254   done
1255 done
1256 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1258
1259 # When interrupted or exit'd, cleanup temporary files, and complete
1260 # config.log.  We remove comments because anyway the quotes in there
1261 # would cause problems or look ugly.
1262 # WARNING: Be sure not to use single quotes in there, as some shells,
1263 # such as our DU 5.0 friend, will then `close' the trap.
1264 trap 'exit_status=$?
1265   # Save into config.log some information that might help in debugging.
1266   {
1267     echo
1268
1269     cat <<\_ASBOX
1270 ## ---------------- ##
1271 ## Cache variables. ##
1272 ## ---------------- ##
1273 _ASBOX
1274     echo
1275     # The following way of writing the cache mishandles newlines in values,
1276 {
1277   (set) 2>&1 |
1278     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279     *ac_space=\ *)
1280       sed -n \
1281         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283       ;;
1284     *)
1285       sed -n \
1286         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1287       ;;
1288     esac;
1289 }
1290     echo
1291
1292     cat <<\_ASBOX
1293 ## ----------------- ##
1294 ## Output variables. ##
1295 ## ----------------- ##
1296 _ASBOX
1297     echo
1298     for ac_var in $ac_subst_vars
1299     do
1300       eval ac_val=$`echo $ac_var`
1301       echo "$ac_var='"'"'$ac_val'"'"'"
1302     done | sort
1303     echo
1304
1305     if test -n "$ac_subst_files"; then
1306       cat <<\_ASBOX
1307 ## ------------- ##
1308 ## Output files. ##
1309 ## ------------- ##
1310 _ASBOX
1311       echo
1312       for ac_var in $ac_subst_files
1313       do
1314         eval ac_val=$`echo $ac_var`
1315         echo "$ac_var='"'"'$ac_val'"'"'"
1316       done | sort
1317       echo
1318     fi
1319
1320     if test -s confdefs.h; then
1321       cat <<\_ASBOX
1322 ## ----------- ##
1323 ## confdefs.h. ##
1324 ## ----------- ##
1325 _ASBOX
1326       echo
1327       sed "/^$/d" confdefs.h | sort
1328       echo
1329     fi
1330     test "$ac_signal" != 0 &&
1331       echo "$as_me: caught signal $ac_signal"
1332     echo "$as_me: exit $exit_status"
1333   } >&5
1334   rm -f core *.core &&
1335   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1336     exit $exit_status
1337      ' 0
1338 for ac_signal in 1 2 13 15; do
1339   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340 done
1341 ac_signal=0
1342
1343 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1344 rm -rf conftest* confdefs.h
1345 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1346 echo >confdefs.h
1347
1348 # Predefined preprocessor variables.
1349
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_NAME "$PACKAGE_NAME"
1352 _ACEOF
1353
1354
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357 _ACEOF
1358
1359
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1362 _ACEOF
1363
1364
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_STRING "$PACKAGE_STRING"
1367 _ACEOF
1368
1369
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372 _ACEOF
1373
1374
1375 # Let the site file select an alternate cache file if it wants to.
1376 # Prefer explicitly selected file to automatically selected ones.
1377 if test -z "$CONFIG_SITE"; then
1378   if test "x$prefix" != xNONE; then
1379     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1380   else
1381     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382   fi
1383 fi
1384 for ac_site_file in $CONFIG_SITE; do
1385   if test -r "$ac_site_file"; then
1386     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387 echo "$as_me: loading site script $ac_site_file" >&6;}
1388     sed 's/^/| /' "$ac_site_file" >&5
1389     . "$ac_site_file"
1390   fi
1391 done
1392
1393 if test -r "$cache_file"; then
1394   # Some versions of bash will fail to source /dev/null (special
1395   # files actually), so we avoid doing that.
1396   if test -f "$cache_file"; then
1397     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398 echo "$as_me: loading cache $cache_file" >&6;}
1399     case $cache_file in
1400       [\\/]* | ?:[\\/]* ) . $cache_file;;
1401       *)                      . ./$cache_file;;
1402     esac
1403   fi
1404 else
1405   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406 echo "$as_me: creating cache $cache_file" >&6;}
1407   >$cache_file
1408 fi
1409
1410 # Check that the precious variables saved in the cache have kept the same
1411 # value.
1412 ac_cache_corrupted=false
1413 for ac_var in `(set) 2>&1 |
1414                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1415   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416   eval ac_new_set=\$ac_env_${ac_var}_set
1417   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418   eval ac_new_val="\$ac_env_${ac_var}_value"
1419   case $ac_old_set,$ac_new_set in
1420     set,)
1421       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423       ac_cache_corrupted=: ;;
1424     ,set)
1425       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427       ac_cache_corrupted=: ;;
1428     ,);;
1429     *)
1430       if test "x$ac_old_val" != "x$ac_new_val"; then
1431         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1432 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1433         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1434 echo "$as_me:   former value:  $ac_old_val" >&2;}
1435         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1436 echo "$as_me:   current value: $ac_new_val" >&2;}
1437         ac_cache_corrupted=:
1438       fi;;
1439   esac
1440   # Pass precious variables to config.status.
1441   if test "$ac_new_set" = set; then
1442     case $ac_new_val in
1443     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1444       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1445     *) ac_arg=$ac_var=$ac_new_val ;;
1446     esac
1447     case " $ac_configure_args " in
1448       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1449       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1450     esac
1451   fi
1452 done
1453 if $ac_cache_corrupted; then
1454   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1455 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1456   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1457 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1458    { (exit 1); exit 1; }; }
1459 fi
1460
1461 ac_ext=c
1462 ac_cpp='$CPP $CPPFLAGS'
1463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487 # Check whether --enable-checkmem or --disable-checkmem was given.
1488 if test "${enable_checkmem+set}" = set; then
1489   enableval="$enable_checkmem"
1490   CHECKMEM=true
1491 fi;
1492 # Check whether --enable-debug or --disable-debug was given.
1493 if test "${enable_debug+set}" = set; then
1494   enableval="$enable_debug"
1495   DEBUG=true
1496 fi;
1497 # Check whether --enable-warnings or --disable-warnings was given.
1498 if test "${enable_warnings+set}" = set; then
1499   enableval="$enable_warnings"
1500   ENABLE_WARNINGS=true
1501 fi;
1502 # Check whether --enable-optimizations or --disable-optimizations was given.
1503 if test "${enable_optimizations+set}" = set; then
1504   enableval="$enable_optimizations"
1505   OPTIMIZE=true
1506 fi;
1507 # Check whether --enable-lame or --disable-lame was given.
1508 if test "${enable_lame+set}" = set; then
1509   enableval="$enable_lame"
1510   DISABLE_LAME=true
1511 fi;
1512
1513 PACKAGE=swftools
1514 VERSION=2004-09-02-2157
1515
1516 # ------------------------------------------------------------------
1517
1518 if test "x${srcdir}" != "x."; then
1519     echo "--srcdir is not supported"
1520     exit 1
1521 fi
1522
1523 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1524 if test "x$ENABLE_WARNINGS" '!=' "x";then
1525     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1526 fi
1527
1528 if test "x$CHECKMEM" '!=' "x";then
1529     DEBUG=yes
1530 fi
1531 if test "x$DEBUG" '!=' "x";then
1532     CFLAGS="$WARNINGS -g $CFLAGS"
1533     CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1534 else if test "x$OPTIMIZE" '!=' "x"; then
1535     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1536     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1537 else
1538     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1539     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1540 fi
1541 fi
1542 #OLDGCC=1
1543 #if test "x$OLDGCC" '!=' "x";then
1544 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1545 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1546 #     CFLAGS="$CFLAGS -ansi -pendantic"
1547 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1548 #fi
1549
1550 export PACKAGE VERSION CFLAGS CXXFLAGS
1551
1552  ac_aux_dir=
1553 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1554   if test -f $ac_dir/install-sh; then
1555     ac_aux_dir=$ac_dir
1556     ac_install_sh="$ac_aux_dir/install-sh -c"
1557     break
1558   elif test -f $ac_dir/install.sh; then
1559     ac_aux_dir=$ac_dir
1560     ac_install_sh="$ac_aux_dir/install.sh -c"
1561     break
1562   elif test -f $ac_dir/shtool; then
1563     ac_aux_dir=$ac_dir
1564     ac_install_sh="$ac_aux_dir/shtool install -c"
1565     break
1566   fi
1567 done
1568 if test -z "$ac_aux_dir"; then
1569   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1570 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1571    { (exit 1); exit 1; }; }
1572 fi
1573 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1574 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1575 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1576
1577 # Make sure we can run config.sub.
1578 $ac_config_sub sun4 >/dev/null 2>&1 ||
1579   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1580 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1581    { (exit 1); exit 1; }; }
1582
1583 echo "$as_me:$LINENO: checking build system type" >&5
1584 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1585 if test "${ac_cv_build+set}" = set; then
1586   echo $ECHO_N "(cached) $ECHO_C" >&6
1587 else
1588   ac_cv_build_alias=$build_alias
1589 test -z "$ac_cv_build_alias" &&
1590   ac_cv_build_alias=`$ac_config_guess`
1591 test -z "$ac_cv_build_alias" &&
1592   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1593 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1594    { (exit 1); exit 1; }; }
1595 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1596   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1597 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1598    { (exit 1); exit 1; }; }
1599
1600 fi
1601 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1602 echo "${ECHO_T}$ac_cv_build" >&6
1603 build=$ac_cv_build
1604 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1605 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1606 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1607
1608
1609 echo "$as_me:$LINENO: checking host system type" >&5
1610 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1611 if test "${ac_cv_host+set}" = set; then
1612   echo $ECHO_N "(cached) $ECHO_C" >&6
1613 else
1614   ac_cv_host_alias=$host_alias
1615 test -z "$ac_cv_host_alias" &&
1616   ac_cv_host_alias=$ac_cv_build_alias
1617 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1618   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1619 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1620    { (exit 1); exit 1; }; }
1621
1622 fi
1623 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1624 echo "${ECHO_T}$ac_cv_host" >&6
1625 host=$ac_cv_host
1626 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1627 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1628 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1629
1630
1631 MACOSX=
1632 case $host_os in
1633     *darwin* )
1634         MACOSX=yes
1635         CFLAGS="$CFLAGS -fno-rtti"
1636         CXXFLAGS="$CXXFLAGS -fno-rtti"
1637         ;;
1638 esac
1639  ac_ext=c
1640 ac_cpp='$CPP $CPPFLAGS'
1641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1644 if test -n "$ac_tool_prefix"; then
1645   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1646 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_CC+set}" = set; then
1650   echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652   if test -n "$CC"; then
1653   ac_cv_prog_CC="$CC" # Let the user override the test.
1654 else
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658   IFS=$as_save_IFS
1659   test -z "$as_dir" && as_dir=.
1660   for ac_exec_ext in '' $ac_executable_extensions; do
1661   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664     break 2
1665   fi
1666 done
1667 done
1668
1669 fi
1670 fi
1671 CC=$ac_cv_prog_CC
1672 if test -n "$CC"; then
1673   echo "$as_me:$LINENO: result: $CC" >&5
1674 echo "${ECHO_T}$CC" >&6
1675 else
1676   echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1678 fi
1679
1680 fi
1681 if test -z "$ac_cv_prog_CC"; then
1682   ac_ct_CC=$CC
1683   # Extract the first word of "gcc", so it can be a program name with args.
1684 set dummy gcc; ac_word=$2
1685 echo "$as_me:$LINENO: checking for $ac_word" >&5
1686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1688   echo $ECHO_N "(cached) $ECHO_C" >&6
1689 else
1690   if test -n "$ac_ct_CC"; then
1691   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1692 else
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 for as_dir in $PATH
1695 do
1696   IFS=$as_save_IFS
1697   test -z "$as_dir" && as_dir=.
1698   for ac_exec_ext in '' $ac_executable_extensions; do
1699   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700     ac_cv_prog_ac_ct_CC="gcc"
1701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702     break 2
1703   fi
1704 done
1705 done
1706
1707 fi
1708 fi
1709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1710 if test -n "$ac_ct_CC"; then
1711   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1712 echo "${ECHO_T}$ac_ct_CC" >&6
1713 else
1714   echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1716 fi
1717
1718   CC=$ac_ct_CC
1719 else
1720   CC="$ac_cv_prog_CC"
1721 fi
1722
1723 if test -z "$CC"; then
1724   if test -n "$ac_tool_prefix"; then
1725   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1726 set dummy ${ac_tool_prefix}cc; ac_word=$2
1727 echo "$as_me:$LINENO: checking for $ac_word" >&5
1728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729 if test "${ac_cv_prog_CC+set}" = set; then
1730   echo $ECHO_N "(cached) $ECHO_C" >&6
1731 else
1732   if test -n "$CC"; then
1733   ac_cv_prog_CC="$CC" # Let the user override the test.
1734 else
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 for as_dir in $PATH
1737 do
1738   IFS=$as_save_IFS
1739   test -z "$as_dir" && as_dir=.
1740   for ac_exec_ext in '' $ac_executable_extensions; do
1741   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742     ac_cv_prog_CC="${ac_tool_prefix}cc"
1743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744     break 2
1745   fi
1746 done
1747 done
1748
1749 fi
1750 fi
1751 CC=$ac_cv_prog_CC
1752 if test -n "$CC"; then
1753   echo "$as_me:$LINENO: result: $CC" >&5
1754 echo "${ECHO_T}$CC" >&6
1755 else
1756   echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1758 fi
1759
1760 fi
1761 if test -z "$ac_cv_prog_CC"; then
1762   ac_ct_CC=$CC
1763   # Extract the first word of "cc", so it can be a program name with args.
1764 set dummy cc; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1768   echo $ECHO_N "(cached) $ECHO_C" >&6
1769 else
1770   if test -n "$ac_ct_CC"; then
1771   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1772 else
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 for as_dir in $PATH
1775 do
1776   IFS=$as_save_IFS
1777   test -z "$as_dir" && as_dir=.
1778   for ac_exec_ext in '' $ac_executable_extensions; do
1779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780     ac_cv_prog_ac_ct_CC="cc"
1781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782     break 2
1783   fi
1784 done
1785 done
1786
1787 fi
1788 fi
1789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1790 if test -n "$ac_ct_CC"; then
1791   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1792 echo "${ECHO_T}$ac_ct_CC" >&6
1793 else
1794   echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796 fi
1797
1798   CC=$ac_ct_CC
1799 else
1800   CC="$ac_cv_prog_CC"
1801 fi
1802
1803 fi
1804 if test -z "$CC"; then
1805   # Extract the first word of "cc", so it can be a program name with args.
1806 set dummy cc; ac_word=$2
1807 echo "$as_me:$LINENO: checking for $ac_word" >&5
1808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809 if test "${ac_cv_prog_CC+set}" = set; then
1810   echo $ECHO_N "(cached) $ECHO_C" >&6
1811 else
1812   if test -n "$CC"; then
1813   ac_cv_prog_CC="$CC" # Let the user override the test.
1814 else
1815   ac_prog_rejected=no
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 for as_dir in $PATH
1818 do
1819   IFS=$as_save_IFS
1820   test -z "$as_dir" && as_dir=.
1821   for ac_exec_ext in '' $ac_executable_extensions; do
1822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1824        ac_prog_rejected=yes
1825        continue
1826      fi
1827     ac_cv_prog_CC="cc"
1828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829     break 2
1830   fi
1831 done
1832 done
1833
1834 if test $ac_prog_rejected = yes; then
1835   # We found a bogon in the path, so make sure we never use it.
1836   set dummy $ac_cv_prog_CC
1837   shift
1838   if test $# != 0; then
1839     # We chose a different compiler from the bogus one.
1840     # However, it has the same basename, so the bogon will be chosen
1841     # first if we set CC to just the basename; use the full file name.
1842     shift
1843     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1844   fi
1845 fi
1846 fi
1847 fi
1848 CC=$ac_cv_prog_CC
1849 if test -n "$CC"; then
1850   echo "$as_me:$LINENO: result: $CC" >&5
1851 echo "${ECHO_T}$CC" >&6
1852 else
1853   echo "$as_me:$LINENO: result: no" >&5
1854 echo "${ECHO_T}no" >&6
1855 fi
1856
1857 fi
1858 if test -z "$CC"; then
1859   if test -n "$ac_tool_prefix"; then
1860   for ac_prog in cl
1861   do
1862     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_CC+set}" = set; then
1867   echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869   if test -n "$CC"; then
1870   ac_cv_prog_CC="$CC" # Let the user override the test.
1871 else
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875   IFS=$as_save_IFS
1876   test -z "$as_dir" && as_dir=.
1877   for ac_exec_ext in '' $ac_executable_extensions; do
1878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881     break 2
1882   fi
1883 done
1884 done
1885
1886 fi
1887 fi
1888 CC=$ac_cv_prog_CC
1889 if test -n "$CC"; then
1890   echo "$as_me:$LINENO: result: $CC" >&5
1891 echo "${ECHO_T}$CC" >&6
1892 else
1893   echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895 fi
1896
1897     test -n "$CC" && break
1898   done
1899 fi
1900 if test -z "$CC"; then
1901   ac_ct_CC=$CC
1902   for ac_prog in cl
1903 do
1904   # Extract the first word of "$ac_prog", so it can be a program name with args.
1905 set dummy $ac_prog; ac_word=$2
1906 echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1909   echo $ECHO_N "(cached) $ECHO_C" >&6
1910 else
1911   if test -n "$ac_ct_CC"; then
1912   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1913 else
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1916 do
1917   IFS=$as_save_IFS
1918   test -z "$as_dir" && as_dir=.
1919   for ac_exec_ext in '' $ac_executable_extensions; do
1920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921     ac_cv_prog_ac_ct_CC="$ac_prog"
1922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923     break 2
1924   fi
1925 done
1926 done
1927
1928 fi
1929 fi
1930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1931 if test -n "$ac_ct_CC"; then
1932   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1933 echo "${ECHO_T}$ac_ct_CC" >&6
1934 else
1935   echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1937 fi
1938
1939   test -n "$ac_ct_CC" && break
1940 done
1941
1942   CC=$ac_ct_CC
1943 fi
1944
1945 fi
1946
1947
1948 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: no acceptable C compiler found in \$PATH
1951 See \`config.log' for more details." >&2;}
1952    { (exit 1); exit 1; }; }
1953
1954 # Provide some information about the compiler.
1955 echo "$as_me:$LINENO:" \
1956      "checking for C compiler version" >&5
1957 ac_compiler=`set X $ac_compile; echo $2`
1958 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1959   (eval $ac_compiler --version </dev/null >&5) 2>&5
1960   ac_status=$?
1961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962   (exit $ac_status); }
1963 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1964   (eval $ac_compiler -v </dev/null >&5) 2>&5
1965   ac_status=$?
1966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967   (exit $ac_status); }
1968 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1969   (eval $ac_compiler -V </dev/null >&5) 2>&5
1970   ac_status=$?
1971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972   (exit $ac_status); }
1973
1974 cat >conftest.$ac_ext <<_ACEOF
1975 /* confdefs.h.  */
1976 _ACEOF
1977 cat confdefs.h >>conftest.$ac_ext
1978 cat >>conftest.$ac_ext <<_ACEOF
1979 /* end confdefs.h.  */
1980
1981 int
1982 main ()
1983 {
1984
1985   ;
1986   return 0;
1987 }
1988 _ACEOF
1989 ac_clean_files_save=$ac_clean_files
1990 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1991 # Try to create an executable without -o first, disregard a.out.
1992 # It will help us diagnose broken compilers, and finding out an intuition
1993 # of exeext.
1994 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1995 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1996 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1997 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1998   (eval $ac_link_default) 2>&5
1999   ac_status=$?
2000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001   (exit $ac_status); }; then
2002   # Find the output, starting from the most likely.  This scheme is
2003 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2004 # resort.
2005
2006 # Be careful to initialize this variable, since it used to be cached.
2007 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2008 ac_cv_exeext=
2009 # b.out is created by i960 compilers.
2010 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2011 do
2012   test -f "$ac_file" || continue
2013   case $ac_file in
2014     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2015         ;;
2016     conftest.$ac_ext )
2017         # This is the source file.
2018         ;;
2019     [ab].out )
2020         # We found the default executable, but exeext='' is most
2021         # certainly right.
2022         break;;
2023     *.* )
2024         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2025         # FIXME: I believe we export ac_cv_exeext for Libtool,
2026         # but it would be cool to find out if it's true.  Does anybody
2027         # maintain Libtool? --akim.
2028         export ac_cv_exeext
2029         break;;
2030     * )
2031         break;;
2032   esac
2033 done
2034 else
2035   echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2037
2038 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2039 See \`config.log' for more details." >&5
2040 echo "$as_me: error: C compiler cannot create executables
2041 See \`config.log' for more details." >&2;}
2042    { (exit 77); exit 77; }; }
2043 fi
2044
2045 ac_exeext=$ac_cv_exeext
2046 echo "$as_me:$LINENO: result: $ac_file" >&5
2047 echo "${ECHO_T}$ac_file" >&6
2048
2049 # Check the compiler produces executables we can run.  If not, either
2050 # the compiler is broken, or we cross compile.
2051 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2052 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2053 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2054 # If not cross compiling, check that we can run a simple program.
2055 if test "$cross_compiling" != yes; then
2056   if { ac_try='./$ac_file'
2057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058   (eval $ac_try) 2>&5
2059   ac_status=$?
2060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061   (exit $ac_status); }; }; then
2062     cross_compiling=no
2063   else
2064     if test "$cross_compiling" = maybe; then
2065         cross_compiling=yes
2066     else
2067         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2068 If you meant to cross compile, use \`--host'.
2069 See \`config.log' for more details." >&5
2070 echo "$as_me: error: cannot run C compiled programs.
2071 If you meant to cross compile, use \`--host'.
2072 See \`config.log' for more details." >&2;}
2073    { (exit 1); exit 1; }; }
2074     fi
2075   fi
2076 fi
2077 echo "$as_me:$LINENO: result: yes" >&5
2078 echo "${ECHO_T}yes" >&6
2079
2080 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2081 ac_clean_files=$ac_clean_files_save
2082 # Check the compiler produces executables we can run.  If not, either
2083 # the compiler is broken, or we cross compile.
2084 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2085 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2086 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2087 echo "${ECHO_T}$cross_compiling" >&6
2088
2089 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2090 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2092   (eval $ac_link) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }; then
2096   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2097 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2098 # work properly (i.e., refer to `conftest.exe'), while it won't with
2099 # `rm'.
2100 for ac_file in conftest.exe conftest conftest.*; do
2101   test -f "$ac_file" || continue
2102   case $ac_file in
2103     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2104     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2105           export ac_cv_exeext
2106           break;;
2107     * ) break;;
2108   esac
2109 done
2110 else
2111   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2112 See \`config.log' for more details." >&5
2113 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2114 See \`config.log' for more details." >&2;}
2115    { (exit 1); exit 1; }; }
2116 fi
2117
2118 rm -f conftest$ac_cv_exeext
2119 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2120 echo "${ECHO_T}$ac_cv_exeext" >&6
2121
2122 rm -f conftest.$ac_ext
2123 EXEEXT=$ac_cv_exeext
2124 ac_exeext=$EXEEXT
2125 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2126 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2127 if test "${ac_cv_objext+set}" = set; then
2128   echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130   cat >conftest.$ac_ext <<_ACEOF
2131 /* confdefs.h.  */
2132 _ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h.  */
2136
2137 int
2138 main ()
2139 {
2140
2141   ;
2142   return 0;
2143 }
2144 _ACEOF
2145 rm -f conftest.o conftest.obj
2146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147   (eval $ac_compile) 2>&5
2148   ac_status=$?
2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150   (exit $ac_status); }; then
2151   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2152   case $ac_file in
2153     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2154     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2155        break;;
2156   esac
2157 done
2158 else
2159   echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2161
2162 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2165 See \`config.log' for more details." >&2;}
2166    { (exit 1); exit 1; }; }
2167 fi
2168
2169 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2170 fi
2171 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2172 echo "${ECHO_T}$ac_cv_objext" >&6
2173 OBJEXT=$ac_cv_objext
2174 ac_objext=$OBJEXT
2175 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2176 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2177 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2178   echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180   cat >conftest.$ac_ext <<_ACEOF
2181 /* confdefs.h.  */
2182 _ACEOF
2183 cat confdefs.h >>conftest.$ac_ext
2184 cat >>conftest.$ac_ext <<_ACEOF
2185 /* end confdefs.h.  */
2186
2187 int
2188 main ()
2189 {
2190 #ifndef __GNUC__
2191        choke me
2192 #endif
2193
2194   ;
2195   return 0;
2196 }
2197 _ACEOF
2198 rm -f conftest.$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200   (eval $ac_compile) 2>conftest.er1
2201   ac_status=$?
2202   grep -v '^ *+' conftest.er1 >conftest.err
2203   rm -f conftest.er1
2204   cat conftest.err >&5
2205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206   (exit $ac_status); } &&
2207          { ac_try='test -z "$ac_c_werror_flag"
2208                          || test ! -s conftest.err'
2209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210   (eval $ac_try) 2>&5
2211   ac_status=$?
2212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213   (exit $ac_status); }; } &&
2214          { ac_try='test -s conftest.$ac_objext'
2215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216   (eval $ac_try) 2>&5
2217   ac_status=$?
2218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219   (exit $ac_status); }; }; then
2220   ac_compiler_gnu=yes
2221 else
2222   echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2224
2225 ac_compiler_gnu=no
2226 fi
2227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2228 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2229
2230 fi
2231 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2232 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2233 GCC=`test $ac_compiler_gnu = yes && echo yes`
2234 ac_test_CFLAGS=${CFLAGS+set}
2235 ac_save_CFLAGS=$CFLAGS
2236 CFLAGS="-g"
2237 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2238 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2239 if test "${ac_cv_prog_cc_g+set}" = set; then
2240   echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242   cat >conftest.$ac_ext <<_ACEOF
2243 /* confdefs.h.  */
2244 _ACEOF
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h.  */
2248
2249 int
2250 main ()
2251 {
2252
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 rm -f conftest.$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259   (eval $ac_compile) 2>conftest.er1
2260   ac_status=$?
2261   grep -v '^ *+' conftest.er1 >conftest.err
2262   rm -f conftest.er1
2263   cat conftest.err >&5
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); } &&
2266          { ac_try='test -z "$ac_c_werror_flag"
2267                          || test ! -s conftest.err'
2268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269   (eval $ac_try) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; } &&
2273          { ac_try='test -s conftest.$ac_objext'
2274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275   (eval $ac_try) 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); }; }; then
2279   ac_cv_prog_cc_g=yes
2280 else
2281   echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2283
2284 ac_cv_prog_cc_g=no
2285 fi
2286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2287 fi
2288 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2289 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2290 if test "$ac_test_CFLAGS" = set; then
2291   CFLAGS=$ac_save_CFLAGS
2292 elif test $ac_cv_prog_cc_g = yes; then
2293   if test "$GCC" = yes; then
2294     CFLAGS="-g -O2"
2295   else
2296     CFLAGS="-g"
2297   fi
2298 else
2299   if test "$GCC" = yes; then
2300     CFLAGS="-O2"
2301   else
2302     CFLAGS=
2303   fi
2304 fi
2305 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2306 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2307 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2308   echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310   ac_cv_prog_cc_stdc=no
2311 ac_save_CC=$CC
2312 cat >conftest.$ac_ext <<_ACEOF
2313 /* confdefs.h.  */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h.  */
2318 #include <stdarg.h>
2319 #include <stdio.h>
2320 #include <sys/types.h>
2321 #include <sys/stat.h>
2322 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2323 struct buf { int x; };
2324 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2325 static char *e (p, i)
2326      char **p;
2327      int i;
2328 {
2329   return p[i];
2330 }
2331 static char *f (char * (*g) (char **, int), char **p, ...)
2332 {
2333   char *s;
2334   va_list v;
2335   va_start (v,p);
2336   s = g (p, va_arg (v,int));
2337   va_end (v);
2338   return s;
2339 }
2340
2341 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2342    function prototypes and stuff, but not '\xHH' hex character constants.
2343    These don't provoke an error unfortunately, instead are silently treated
2344    as 'x'.  The following induces an error, until -std1 is added to get
2345    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2346    array size at least.  It's necessary to write '\x00'==0 to get something
2347    that's true only with -std1.  */
2348 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2349
2350 int test (int i, double x);
2351 struct s1 {int (*f) (int a);};
2352 struct s2 {int (*f) (double a);};
2353 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2354 int argc;
2355 char **argv;
2356 int
2357 main ()
2358 {
2359 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2360   ;
2361   return 0;
2362 }
2363 _ACEOF
2364 # Don't try gcc -ansi; that turns off useful extensions and
2365 # breaks some systems' header files.
2366 # AIX                   -qlanglvl=ansi
2367 # Ultrix and OSF/1      -std1
2368 # HP-UX 10.20 and later -Ae
2369 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2370 # SVR4                  -Xc -D__EXTENSIONS__
2371 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2372 do
2373   CC="$ac_save_CC $ac_arg"
2374   rm -f conftest.$ac_objext
2375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376   (eval $ac_compile) 2>conftest.er1
2377   ac_status=$?
2378   grep -v '^ *+' conftest.er1 >conftest.err
2379   rm -f conftest.er1
2380   cat conftest.err >&5
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); } &&
2383          { ac_try='test -z "$ac_c_werror_flag"
2384                          || test ! -s conftest.err'
2385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386   (eval $ac_try) 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; } &&
2390          { ac_try='test -s conftest.$ac_objext'
2391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392   (eval $ac_try) 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); }; }; then
2396   ac_cv_prog_cc_stdc=$ac_arg
2397 break
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 fi
2403 rm -f conftest.err conftest.$ac_objext
2404 done
2405 rm -f conftest.$ac_ext conftest.$ac_objext
2406 CC=$ac_save_CC
2407
2408 fi
2409
2410 case "x$ac_cv_prog_cc_stdc" in
2411   x|xno)
2412     echo "$as_me:$LINENO: result: none needed" >&5
2413 echo "${ECHO_T}none needed" >&6 ;;
2414   *)
2415     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2416 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2417     CC="$CC $ac_cv_prog_cc_stdc" ;;
2418 esac
2419
2420 # Some people use a C++ compiler to compile C.  Since we use `exit',
2421 # in C++ we need to declare it.  In case someone uses the same compiler
2422 # for both compiling C and C++ we need to have the C++ compiler decide
2423 # the declaration of exit, since it's the most demanding environment.
2424 cat >conftest.$ac_ext <<_ACEOF
2425 #ifndef __cplusplus
2426   choke me
2427 #endif
2428 _ACEOF
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431   (eval $ac_compile) 2>conftest.er1
2432   ac_status=$?
2433   grep -v '^ *+' conftest.er1 >conftest.err
2434   rm -f conftest.er1
2435   cat conftest.err >&5
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); } &&
2438          { ac_try='test -z "$ac_c_werror_flag"
2439                          || test ! -s conftest.err'
2440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441   (eval $ac_try) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }; } &&
2445          { ac_try='test -s conftest.$ac_objext'
2446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447   (eval $ac_try) 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; }; then
2451   for ac_declaration in \
2452    '' \
2453    'extern "C" void std::exit (int) throw (); using std::exit;' \
2454    'extern "C" void std::exit (int); using std::exit;' \
2455    'extern "C" void exit (int) throw ();' \
2456    'extern "C" void exit (int);' \
2457    'void exit (int);'
2458 do
2459   cat >conftest.$ac_ext <<_ACEOF
2460 /* confdefs.h.  */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h.  */
2465 $ac_declaration
2466 #include <stdlib.h>
2467 int
2468 main ()
2469 {
2470 exit (42);
2471   ;
2472   return 0;
2473 }
2474 _ACEOF
2475 rm -f conftest.$ac_objext
2476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477   (eval $ac_compile) 2>conftest.er1
2478   ac_status=$?
2479   grep -v '^ *+' conftest.er1 >conftest.err
2480   rm -f conftest.er1
2481   cat conftest.err >&5
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); } &&
2484          { ac_try='test -z "$ac_c_werror_flag"
2485                          || test ! -s conftest.err'
2486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487   (eval $ac_try) 2>&5
2488   ac_status=$?
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); }; } &&
2491          { ac_try='test -s conftest.$ac_objext'
2492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493   (eval $ac_try) 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }; }; then
2497   :
2498 else
2499   echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2501
2502 continue
2503 fi
2504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2505   cat >conftest.$ac_ext <<_ACEOF
2506 /* confdefs.h.  */
2507 _ACEOF
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h.  */
2511 $ac_declaration
2512 int
2513 main ()
2514 {
2515 exit (42);
2516   ;
2517   return 0;
2518 }
2519 _ACEOF
2520 rm -f conftest.$ac_objext
2521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522   (eval $ac_compile) 2>conftest.er1
2523   ac_status=$?
2524   grep -v '^ *+' conftest.er1 >conftest.err
2525   rm -f conftest.er1
2526   cat conftest.err >&5
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -z "$ac_c_werror_flag"
2530                          || test ! -s conftest.err'
2531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532   (eval $ac_try) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; } &&
2536          { ac_try='test -s conftest.$ac_objext'
2537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538   (eval $ac_try) 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; }; then
2542   break
2543 else
2544   echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2546
2547 fi
2548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549 done
2550 rm -f conftest*
2551 if test -n "$ac_declaration"; then
2552   echo '#ifdef __cplusplus' >>confdefs.h
2553   echo $ac_declaration      >>confdefs.h
2554   echo '#endif'             >>confdefs.h
2555 fi
2556
2557 else
2558   echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2560
2561 fi
2562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568
2569  ac_ext=cc
2570 ac_cpp='$CXXCPP $CPPFLAGS'
2571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2574 if test -n "$ac_tool_prefix"; then
2575   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2576   do
2577     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2579 echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2581 if test "${ac_cv_prog_CXX+set}" = set; then
2582   echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584   if test -n "$CXX"; then
2585   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590   IFS=$as_save_IFS
2591   test -z "$as_dir" && as_dir=.
2592   for ac_exec_ext in '' $ac_executable_extensions; do
2593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596     break 2
2597   fi
2598 done
2599 done
2600
2601 fi
2602 fi
2603 CXX=$ac_cv_prog_CXX
2604 if test -n "$CXX"; then
2605   echo "$as_me:$LINENO: result: $CXX" >&5
2606 echo "${ECHO_T}$CXX" >&6
2607 else
2608   echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6
2610 fi
2611
2612     test -n "$CXX" && break
2613   done
2614 fi
2615 if test -z "$CXX"; then
2616   ac_ct_CXX=$CXX
2617   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2618 do
2619   # Extract the first word of "$ac_prog", so it can be a program name with args.
2620 set dummy $ac_prog; ac_word=$2
2621 echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2624   echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626   if test -n "$ac_ct_CXX"; then
2627   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632   IFS=$as_save_IFS
2633   test -z "$as_dir" && as_dir=.
2634   for ac_exec_ext in '' $ac_executable_extensions; do
2635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636     ac_cv_prog_ac_ct_CXX="$ac_prog"
2637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638     break 2
2639   fi
2640 done
2641 done
2642
2643 fi
2644 fi
2645 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2646 if test -n "$ac_ct_CXX"; then
2647   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2648 echo "${ECHO_T}$ac_ct_CXX" >&6
2649 else
2650   echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6
2652 fi
2653
2654   test -n "$ac_ct_CXX" && break
2655 done
2656 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2657
2658   CXX=$ac_ct_CXX
2659 fi
2660
2661
2662 # Provide some information about the compiler.
2663 echo "$as_me:$LINENO:" \
2664      "checking for C++ compiler version" >&5
2665 ac_compiler=`set X $ac_compile; echo $2`
2666 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2667   (eval $ac_compiler --version </dev/null >&5) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }
2671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2672   (eval $ac_compiler -v </dev/null >&5) 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); }
2676 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2677   (eval $ac_compiler -V </dev/null >&5) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }
2681
2682 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2683 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2684 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2685   echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687   cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h.  */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h.  */
2693
2694 int
2695 main ()
2696 {
2697 #ifndef __GNUC__
2698        choke me
2699 #endif
2700
2701   ;
2702   return 0;
2703 }
2704 _ACEOF
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707   (eval $ac_compile) 2>conftest.er1
2708   ac_status=$?
2709   grep -v '^ *+' conftest.er1 >conftest.err
2710   rm -f conftest.er1
2711   cat conftest.err >&5
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); } &&
2714          { ac_try='test -z "$ac_cxx_werror_flag"
2715                          || test ! -s conftest.err'
2716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717   (eval $ac_try) 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }; } &&
2721          { ac_try='test -s conftest.$ac_objext'
2722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723   (eval $ac_try) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; }; then
2727   ac_compiler_gnu=yes
2728 else
2729   echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731
2732 ac_compiler_gnu=no
2733 fi
2734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2736
2737 fi
2738 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2739 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2740 GXX=`test $ac_compiler_gnu = yes && echo yes`
2741 ac_test_CXXFLAGS=${CXXFLAGS+set}
2742 ac_save_CXXFLAGS=$CXXFLAGS
2743 CXXFLAGS="-g"
2744 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2745 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2746 if test "${ac_cv_prog_cxx_g+set}" = set; then
2747   echo $ECHO_N "(cached) $ECHO_C" >&6
2748 else
2749   cat >conftest.$ac_ext <<_ACEOF
2750 /* confdefs.h.  */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h.  */
2755
2756 int
2757 main ()
2758 {
2759
2760   ;
2761   return 0;
2762 }
2763 _ACEOF
2764 rm -f conftest.$ac_objext
2765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766   (eval $ac_compile) 2>conftest.er1
2767   ac_status=$?
2768   grep -v '^ *+' conftest.er1 >conftest.err
2769   rm -f conftest.er1
2770   cat conftest.err >&5
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); } &&
2773          { ac_try='test -z "$ac_cxx_werror_flag"
2774                          || test ! -s conftest.err'
2775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776   (eval $ac_try) 2>&5
2777   ac_status=$?
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); }; } &&
2780          { ac_try='test -s conftest.$ac_objext'
2781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782   (eval $ac_try) 2>&5
2783   ac_status=$?
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); }; }; then
2786   ac_cv_prog_cxx_g=yes
2787 else
2788   echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2790
2791 ac_cv_prog_cxx_g=no
2792 fi
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 fi
2795 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2796 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2797 if test "$ac_test_CXXFLAGS" = set; then
2798   CXXFLAGS=$ac_save_CXXFLAGS
2799 elif test $ac_cv_prog_cxx_g = yes; then
2800   if test "$GXX" = yes; then
2801     CXXFLAGS="-g -O2"
2802   else
2803     CXXFLAGS="-g"
2804   fi
2805 else
2806   if test "$GXX" = yes; then
2807     CXXFLAGS="-O2"
2808   else
2809     CXXFLAGS=
2810   fi
2811 fi
2812 for ac_declaration in \
2813    '' \
2814    'extern "C" void std::exit (int) throw (); using std::exit;' \
2815    'extern "C" void std::exit (int); using std::exit;' \
2816    'extern "C" void exit (int) throw ();' \
2817    'extern "C" void exit (int);' \
2818    'void exit (int);'
2819 do
2820   cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h.  */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h.  */
2826 $ac_declaration
2827 #include <stdlib.h>
2828 int
2829 main ()
2830 {
2831 exit (42);
2832   ;
2833   return 0;
2834 }
2835 _ACEOF
2836 rm -f conftest.$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838   (eval $ac_compile) 2>conftest.er1
2839   ac_status=$?
2840   grep -v '^ *+' conftest.er1 >conftest.err
2841   rm -f conftest.er1
2842   cat conftest.err >&5
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); } &&
2845          { ac_try='test -z "$ac_cxx_werror_flag"
2846                          || test ! -s conftest.err'
2847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848   (eval $ac_try) 2>&5
2849   ac_status=$?
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); }; } &&
2852          { ac_try='test -s conftest.$ac_objext'
2853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; }; then
2858   :
2859 else
2860   echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863 continue
2864 fi
2865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2866   cat >conftest.$ac_ext <<_ACEOF
2867 /* confdefs.h.  */
2868 _ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h.  */
2872 $ac_declaration
2873 int
2874 main ()
2875 {
2876 exit (42);
2877   ;
2878   return 0;
2879 }
2880 _ACEOF
2881 rm -f conftest.$ac_objext
2882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2883   (eval $ac_compile) 2>conftest.er1
2884   ac_status=$?
2885   grep -v '^ *+' conftest.er1 >conftest.err
2886   rm -f conftest.er1
2887   cat conftest.err >&5
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); } &&
2890          { ac_try='test -z "$ac_cxx_werror_flag"
2891                          || test ! -s conftest.err'
2892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893   (eval $ac_try) 2>&5
2894   ac_status=$?
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); }; } &&
2897          { ac_try='test -s conftest.$ac_objext'
2898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899   (eval $ac_try) 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }; }; then
2903   break
2904 else
2905   echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2907
2908 fi
2909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2910 done
2911 rm -f conftest*
2912 if test -n "$ac_declaration"; then
2913   echo '#ifdef __cplusplus' >>confdefs.h
2914   echo $ac_declaration      >>confdefs.h
2915   echo '#endif'             >>confdefs.h
2916 fi
2917
2918 ac_ext=c
2919 ac_cpp='$CPP $CPPFLAGS'
2920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2923
2924
2925 if test "x$CHECKMEM" '!=' "x";then
2926     CC="ccmalloc $CC"
2927     CXX="ccmalloc $CXX"
2928     #echo running again
2929     #unset ac_cv_prog_CC
2930     #unset ac_cv_prog_CXX
2931     #AC_PROG_CC
2932     #AC_PROG_CXX
2933 fi
2934  ac_ext=c
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2940 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2941 # On Suns, sometimes $CPP names a directory.
2942 if test -n "$CPP" && test -d "$CPP"; then
2943   CPP=
2944 fi
2945 if test -z "$CPP"; then
2946   if test "${ac_cv_prog_CPP+set}" = set; then
2947   echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949       # Double quotes because CPP needs to be expanded
2950     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2951     do
2952       ac_preproc_ok=false
2953 for ac_c_preproc_warn_flag in '' yes
2954 do
2955   # Use a header file that comes with gcc, so configuring glibc
2956   # with a fresh cross-compiler works.
2957   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2958   # <limits.h> exists even on freestanding compilers.
2959   # On the NeXT, cc -E runs the code through the compiler's parser,
2960   # not just through cpp. "Syntax error" is here to catch this case.
2961   cat >conftest.$ac_ext <<_ACEOF
2962 /* confdefs.h.  */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h.  */
2967 #ifdef __STDC__
2968 # include <limits.h>
2969 #else
2970 # include <assert.h>
2971 #endif
2972                      Syntax error
2973 _ACEOF
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976   ac_status=$?
2977   grep -v '^ *+' conftest.er1 >conftest.err
2978   rm -f conftest.er1
2979   cat conftest.err >&5
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } >/dev/null; then
2982   if test -s conftest.err; then
2983     ac_cpp_err=$ac_c_preproc_warn_flag
2984     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2985   else
2986     ac_cpp_err=
2987   fi
2988 else
2989   ac_cpp_err=yes
2990 fi
2991 if test -z "$ac_cpp_err"; then
2992   :
2993 else
2994   echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2996
2997   # Broken: fails on valid input.
2998 continue
2999 fi
3000 rm -f conftest.err conftest.$ac_ext
3001
3002   # OK, works on sane cases.  Now check whether non-existent headers
3003   # can be detected and how.
3004   cat >conftest.$ac_ext <<_ACEOF
3005 /* confdefs.h.  */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h.  */
3010 #include <ac_nonexistent.h>
3011 _ACEOF
3012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3013   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3014   ac_status=$?
3015   grep -v '^ *+' conftest.er1 >conftest.err
3016   rm -f conftest.er1
3017   cat conftest.err >&5
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); } >/dev/null; then
3020   if test -s conftest.err; then
3021     ac_cpp_err=$ac_c_preproc_warn_flag
3022     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3023   else
3024     ac_cpp_err=
3025   fi
3026 else
3027   ac_cpp_err=yes
3028 fi
3029 if test -z "$ac_cpp_err"; then
3030   # Broken: success on invalid input.
3031 continue
3032 else
3033   echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3035
3036   # Passes both tests.
3037 ac_preproc_ok=:
3038 break
3039 fi
3040 rm -f conftest.err conftest.$ac_ext
3041
3042 done
3043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3044 rm -f conftest.err conftest.$ac_ext
3045 if $ac_preproc_ok; then
3046   break
3047 fi
3048
3049     done
3050     ac_cv_prog_CPP=$CPP
3051
3052 fi
3053   CPP=$ac_cv_prog_CPP
3054 else
3055   ac_cv_prog_CPP=$CPP
3056 fi
3057 echo "$as_me:$LINENO: result: $CPP" >&5
3058 echo "${ECHO_T}$CPP" >&6
3059 ac_preproc_ok=false
3060 for ac_c_preproc_warn_flag in '' yes
3061 do
3062   # Use a header file that comes with gcc, so configuring glibc
3063   # with a fresh cross-compiler works.
3064   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3065   # <limits.h> exists even on freestanding compilers.
3066   # On the NeXT, cc -E runs the code through the compiler's parser,
3067   # not just through cpp. "Syntax error" is here to catch this case.
3068   cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h.  */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h.  */
3074 #ifdef __STDC__
3075 # include <limits.h>
3076 #else
3077 # include <assert.h>
3078 #endif
3079                      Syntax error
3080 _ACEOF
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083   ac_status=$?
3084   grep -v '^ *+' conftest.er1 >conftest.err
3085   rm -f conftest.er1
3086   cat conftest.err >&5
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); } >/dev/null; then
3089   if test -s conftest.err; then
3090     ac_cpp_err=$ac_c_preproc_warn_flag
3091     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3092   else
3093     ac_cpp_err=
3094   fi
3095 else
3096   ac_cpp_err=yes
3097 fi
3098 if test -z "$ac_cpp_err"; then
3099   :
3100 else
3101   echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3103
3104   # Broken: fails on valid input.
3105 continue
3106 fi
3107 rm -f conftest.err conftest.$ac_ext
3108
3109   # OK, works on sane cases.  Now check whether non-existent headers
3110   # can be detected and how.
3111   cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h.  */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h.  */
3117 #include <ac_nonexistent.h>
3118 _ACEOF
3119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3121   ac_status=$?
3122   grep -v '^ *+' conftest.er1 >conftest.err
3123   rm -f conftest.er1
3124   cat conftest.err >&5
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); } >/dev/null; then
3127   if test -s conftest.err; then
3128     ac_cpp_err=$ac_c_preproc_warn_flag
3129     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3130   else
3131     ac_cpp_err=
3132   fi
3133 else
3134   ac_cpp_err=yes
3135 fi
3136 if test -z "$ac_cpp_err"; then
3137   # Broken: success on invalid input.
3138 continue
3139 else
3140   echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3142
3143   # Passes both tests.
3144 ac_preproc_ok=:
3145 break
3146 fi
3147 rm -f conftest.err conftest.$ac_ext
3148
3149 done
3150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3151 rm -f conftest.err conftest.$ac_ext
3152 if $ac_preproc_ok; then
3153   :
3154 else
3155   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3156 See \`config.log' for more details." >&5
3157 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3158 See \`config.log' for more details." >&2;}
3159    { (exit 1); exit 1; }; }
3160 fi
3161
3162 ac_ext=c
3163 ac_cpp='$CPP $CPPFLAGS'
3164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3167
3168
3169  if test -n "$ac_tool_prefix"; then
3170   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3171 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3172 echo "$as_me:$LINENO: checking for $ac_word" >&5
3173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3174 if test "${ac_cv_prog_RANLIB+set}" = set; then
3175   echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177   if test -n "$RANLIB"; then
3178   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183   IFS=$as_save_IFS
3184   test -z "$as_dir" && as_dir=.
3185   for ac_exec_ext in '' $ac_executable_extensions; do
3186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3189     break 2
3190   fi
3191 done
3192 done
3193
3194 fi
3195 fi
3196 RANLIB=$ac_cv_prog_RANLIB
3197 if test -n "$RANLIB"; then
3198   echo "$as_me:$LINENO: result: $RANLIB" >&5
3199 echo "${ECHO_T}$RANLIB" >&6
3200 else
3201   echo "$as_me:$LINENO: result: no" >&5
3202 echo "${ECHO_T}no" >&6
3203 fi
3204
3205 fi
3206 if test -z "$ac_cv_prog_RANLIB"; then
3207   ac_ct_RANLIB=$RANLIB
3208   # Extract the first word of "ranlib", so it can be a program name with args.
3209 set dummy ranlib; ac_word=$2
3210 echo "$as_me:$LINENO: checking for $ac_word" >&5
3211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3212 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3213   echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215   if test -n "$ac_ct_RANLIB"; then
3216   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221   IFS=$as_save_IFS
3222   test -z "$as_dir" && as_dir=.
3223   for ac_exec_ext in '' $ac_executable_extensions; do
3224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225     ac_cv_prog_ac_ct_RANLIB="ranlib"
3226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3227     break 2
3228   fi
3229 done
3230 done
3231
3232   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3233 fi
3234 fi
3235 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3236 if test -n "$ac_ct_RANLIB"; then
3237   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3238 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3239 else
3240   echo "$as_me:$LINENO: result: no" >&5
3241 echo "${ECHO_T}no" >&6
3242 fi
3243
3244   RANLIB=$ac_ct_RANLIB
3245 else
3246   RANLIB="$ac_cv_prog_RANLIB"
3247 fi
3248
3249  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3250 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3251 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3252 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3253   echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255   cat >conftest.make <<\_ACEOF
3256 all:
3257         @echo 'ac_maketemp="$(MAKE)"'
3258 _ACEOF
3259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3260 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3261 if test -n "$ac_maketemp"; then
3262   eval ac_cv_prog_make_${ac_make}_set=yes
3263 else
3264   eval ac_cv_prog_make_${ac_make}_set=no
3265 fi
3266 rm -f conftest.make
3267 fi
3268 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3269   echo "$as_me:$LINENO: result: yes" >&5
3270 echo "${ECHO_T}yes" >&6
3271   SET_MAKE=
3272 else
3273   echo "$as_me:$LINENO: result: no" >&5
3274 echo "${ECHO_T}no" >&6
3275   SET_MAKE="MAKE=${MAKE-make}"
3276 fi
3277
3278  # Find a good install program.  We prefer a C program (faster),
3279 # so one script is as good as another.  But avoid the broken or
3280 # incompatible versions:
3281 # SysV /etc/install, /usr/sbin/install
3282 # SunOS /usr/etc/install
3283 # IRIX /sbin/install
3284 # AIX /bin/install
3285 # AmigaOS /C/install, which installs bootblocks on floppy discs
3286 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3287 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3288 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3289 # OS/2's system install, which has a completely different semantic
3290 # ./install, which can be erroneously created by make from ./install.sh.
3291 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3292 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3293 if test -z "$INSTALL"; then
3294 if test "${ac_cv_path_install+set}" = set; then
3295   echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH
3299 do
3300   IFS=$as_save_IFS
3301   test -z "$as_dir" && as_dir=.
3302   # Account for people who put trailing slashes in PATH elements.
3303 case $as_dir/ in
3304   ./ | .// | /cC/* | \
3305   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3306   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3307   /usr/ucb/* ) ;;
3308   *)
3309     # OSF1 and SCO ODT 3.0 have their own names for install.
3310     # Don't use installbsd from OSF since it installs stuff as root
3311     # by default.
3312     for ac_prog in ginstall scoinst install; do
3313       for ac_exec_ext in '' $ac_executable_extensions; do
3314         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3315           if test $ac_prog = install &&
3316             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3317             # AIX install.  It has an incompatible calling convention.
3318             :
3319           elif test $ac_prog = install &&
3320             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3321             # program-specific install script used by HP pwplus--don't use.
3322             :
3323           else
3324             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3325             break 3
3326           fi
3327         fi
3328       done
3329     done
3330     ;;
3331 esac
3332 done
3333
3334
3335 fi
3336   if test "${ac_cv_path_install+set}" = set; then
3337     INSTALL=$ac_cv_path_install
3338   else
3339     # As a last resort, use the slow shell script.  We don't cache a
3340     # path for INSTALL within a source directory, because that will
3341     # break other packages using the cache if that directory is
3342     # removed, or if the path is relative.
3343     INSTALL=$ac_install_sh
3344   fi
3345 fi
3346 echo "$as_me:$LINENO: result: $INSTALL" >&5
3347 echo "${ECHO_T}$INSTALL" >&6
3348
3349 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3350 # It thinks the first close brace ends the variable substitution.
3351 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3352
3353 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3354
3355 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3356
3357  echo "$as_me:$LINENO: checking whether ln -s works" >&5
3358 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3359 LN_S=$as_ln_s
3360 if test "$LN_S" = "ln -s"; then
3361   echo "$as_me:$LINENO: result: yes" >&5
3362 echo "${ECHO_T}yes" >&6
3363 else
3364   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3365 echo "${ECHO_T}no, using $LN_S" >&6
3366 fi
3367
3368  # Check whether --enable-shared or --disable-shared was given.
3369 if test "${enable_shared+set}" = set; then
3370   enableval="$enable_shared"
3371   p=${PACKAGE-default}
3372 case $enableval in
3373 yes) enable_shared=yes ;;
3374 no) enable_shared=no ;;
3375 *)
3376   enable_shared=no
3377   # Look at the argument we got.  We use all the common list separators.
3378   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3379   for pkg in $enableval; do
3380     if test "X$pkg" = "X$p"; then
3381       enable_shared=yes
3382     fi
3383   done
3384   IFS="$ac_save_ifs"
3385   ;;
3386 esac
3387 else
3388   enable_shared=yes
3389 fi;
3390 # Check whether --enable-static or --disable-static was given.
3391 if test "${enable_static+set}" = set; then
3392   enableval="$enable_static"
3393   p=${PACKAGE-default}
3394 case $enableval in
3395 yes) enable_static=yes ;;
3396 no) enable_static=no ;;
3397 *)
3398   enable_static=no
3399   # Look at the argument we got.  We use all the common list separators.
3400   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3401   for pkg in $enableval; do
3402     if test "X$pkg" = "X$p"; then
3403       enable_static=yes
3404     fi
3405   done
3406   IFS="$ac_save_ifs"
3407   ;;
3408 esac
3409 else
3410   enable_static=yes
3411 fi;
3412 # Check whether --enable-fast-install or --disable-fast-install was given.
3413 if test "${enable_fast_install+set}" = set; then
3414   enableval="$enable_fast_install"
3415   p=${PACKAGE-default}
3416 case $enableval in
3417 yes) enable_fast_install=yes ;;
3418 no) enable_fast_install=no ;;
3419 *)
3420   enable_fast_install=no
3421   # Look at the argument we got.  We use all the common list separators.
3422   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3423   for pkg in $enableval; do
3424     if test "X$pkg" = "X$p"; then
3425       enable_fast_install=yes
3426     fi
3427   done
3428   IFS="$ac_save_ifs"
3429   ;;
3430 esac
3431 else
3432   enable_fast_install=yes
3433 fi;
3434 # Find the correct PATH separator.  Usually this is `:', but
3435 # DJGPP uses `;' like DOS.
3436 if test "X${PATH_SEPARATOR+set}" != Xset; then
3437   UNAME=${UNAME-`uname 2>/dev/null`}
3438   case X$UNAME in
3439     *-DOS) lt_cv_sys_path_separator=';' ;;
3440     *)     lt_cv_sys_path_separator=':' ;;
3441   esac
3442   PATH_SEPARATOR=$lt_cv_sys_path_separator
3443 fi
3444
3445
3446 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3447 if test "${with_gnu_ld+set}" = set; then
3448   withval="$with_gnu_ld"
3449   test "$withval" = no || with_gnu_ld=yes
3450 else
3451   with_gnu_ld=no
3452 fi;
3453 ac_prog=ld
3454 if test "$GCC" = yes; then
3455   # Check if gcc -print-prog-name=ld gives a path.
3456   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3457 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3458   case $host in
3459   *-*-mingw*)
3460     # gcc leaves a trailing carriage return which upsets mingw
3461     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3462   *)
3463     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3464   esac
3465   case $ac_prog in
3466     # Accept absolute paths.
3467     [\\/]* | [A-Za-z]:[\\/]*)
3468       re_direlt='/[^/][^/]*/\.\./'
3469       # Canonicalize the path of ld
3470       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3471       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3472         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3473       done
3474       test -z "$LD" && LD="$ac_prog"
3475       ;;
3476   "")
3477     # If it fails, then pretend we aren't using GCC.
3478     ac_prog=ld
3479     ;;
3480   *)
3481     # If it is relative, then search for the first ld in PATH.
3482     with_gnu_ld=unknown
3483     ;;
3484   esac
3485 elif test "$with_gnu_ld" = yes; then
3486   echo "$as_me:$LINENO: checking for GNU ld" >&5
3487 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3488 else
3489   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3490 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3491 fi
3492 if test "${lt_cv_path_LD+set}" = set; then
3493   echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495   if test -z "$LD"; then
3496   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3497   for ac_dir in $PATH; do
3498     test -z "$ac_dir" && ac_dir=.
3499     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3500       lt_cv_path_LD="$ac_dir/$ac_prog"
3501       # Check to see if the program is GNU ld.  I'd rather use --version,
3502       # but apparently some GNU ld's only accept -v.
3503       # Break only if it was the GNU/non-GNU ld that we prefer.
3504       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3505         test "$with_gnu_ld" != no && break
3506       else
3507         test "$with_gnu_ld" != yes && break
3508       fi
3509     fi
3510   done
3511   IFS="$ac_save_ifs"
3512 else
3513   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3514 fi
3515 fi
3516
3517 LD="$lt_cv_path_LD"
3518 if test -n "$LD"; then
3519   echo "$as_me:$LINENO: result: $LD" >&5
3520 echo "${ECHO_T}$LD" >&6
3521 else
3522   echo "$as_me:$LINENO: result: no" >&5
3523 echo "${ECHO_T}no" >&6
3524 fi
3525 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3526 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3527    { (exit 1); exit 1; }; }
3528 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3529 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3530 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3531   echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3534 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3535   lt_cv_prog_gnu_ld=yes
3536 else
3537   lt_cv_prog_gnu_ld=no
3538 fi
3539 fi
3540 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3541 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3542 with_gnu_ld=$lt_cv_prog_gnu_ld
3543
3544
3545 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3546 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3547 if test "${lt_cv_ld_reload_flag+set}" = set; then
3548   echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550   lt_cv_ld_reload_flag='-r'
3551 fi
3552 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3553 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3554 reload_flag=$lt_cv_ld_reload_flag
3555 test -n "$reload_flag" && reload_flag=" $reload_flag"
3556
3557 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3558 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3559 if test "${lt_cv_path_NM+set}" = set; then
3560   echo $ECHO_N "(cached) $ECHO_C" >&6
3561 else
3562   if test -n "$NM"; then
3563   # Let the user override the test.
3564   lt_cv_path_NM="$NM"
3565 else
3566   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3567   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3568     test -z "$ac_dir" && ac_dir=.
3569     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3570     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3571       # Check to see if the nm accepts a BSD-compat flag.
3572       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3573       #   nm: unknown option "B" ignored
3574       # Tru64's nm complains that /dev/null is an invalid object file
3575       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3576         lt_cv_path_NM="$tmp_nm -B"
3577         break
3578       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3579         lt_cv_path_NM="$tmp_nm -p"
3580         break
3581       else
3582         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3583         continue # so that we can try to find one that supports BSD flags
3584       fi
3585     fi
3586   done
3587   IFS="$ac_save_ifs"
3588   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3589 fi
3590 fi
3591
3592 NM="$lt_cv_path_NM"
3593 echo "$as_me:$LINENO: result: $NM" >&5
3594 echo "${ECHO_T}$NM" >&6
3595
3596 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3597 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3598 if test "${lt_cv_path_SED+set}" = set; then
3599   echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601   # Loop through the user's path and test for sed and gsed.
3602 # Then use that list of sed's as ones to test for truncation.
3603 as_executable_p="test -f"
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 for as_dir in $PATH
3606 do
3607   IFS=$as_save_IFS
3608   test -z "$as_dir" && as_dir=.
3609   for ac_prog in sed gsed; do
3610     for ac_exec_ext in '' $ac_executable_extensions; do
3611       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3612         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3613       fi
3614     done
3615   done
3616 done
3617
3618   # Create a temporary directory, and hook for its removal unless debugging.
3619 $debug ||
3620 {
3621   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3622   trap '{ (exit 1); exit 1; }' 1 2 13 15
3623 }
3624
3625 # Create a (secure) tmp directory for tmp files.
3626 : ${TMPDIR=/tmp}
3627 {
3628   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3629   test -n "$tmp" && test -d "$tmp"
3630 }  ||
3631 {
3632   tmp=$TMPDIR/sed$$-$RANDOM
3633   (umask 077 && mkdir $tmp)
3634 } ||
3635 {
3636    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3637    { (exit 1); exit 1; }
3638 }
3639   _max=0
3640   _count=0
3641   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3642   # along with /bin/sed that truncates output.
3643   for _sed in $_sed_list /usr/xpg4/bin/sed; do
3644     test ! -f ${_sed} && break
3645     cat /dev/null > "$tmp/sed.in"
3646     _count=0
3647     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3648     # Check for GNU sed and select it if it is found.
3649     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3650       lt_cv_path_SED=${_sed}
3651       break
3652     fi
3653     while true; do
3654       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3655       mv "$tmp/sed.tmp" "$tmp/sed.in"
3656       cp "$tmp/sed.in" "$tmp/sed.nl"
3657       echo >>"$tmp/sed.nl"
3658       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3659       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3660       # 40000 chars as input seems more than enough
3661       test $_count -gt 10 && break
3662       _count=`expr $_count + 1`
3663       if test $_count -gt $_max; then
3664         _max=$_count
3665         lt_cv_path_SED=$_sed
3666       fi
3667     done
3668   done
3669   rm -rf "$tmp"
3670
3671 fi
3672
3673 if test "X$SED" != "X"; then
3674   lt_cv_path_SED=$SED
3675 else
3676   SED=$lt_cv_path_SED
3677 fi
3678 echo "$as_me:$LINENO: result: $SED" >&5
3679 echo "${ECHO_T}$SED" >&6
3680
3681 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3682 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3683 if test "${lt_cv_deplibs_check_method+set}" = set; then
3684   echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686   lt_cv_file_magic_cmd='$MAGIC_CMD'
3687 lt_cv_file_magic_test_file=
3688 lt_cv_deplibs_check_method='unknown'
3689 # Need to set the preceding variable on all platforms that support
3690 # interlibrary dependencies.
3691 # 'none' -- dependencies not supported.
3692 # `unknown' -- same as none, but documents that we really don't know.
3693 # 'pass_all' -- all dependencies passed with no checks.
3694 # 'test_compile' -- check by making test program.
3695 # 'file_magic [[regex]]' -- check by looking for files in library path
3696 # which responds to the $file_magic_cmd with a given egrep regex.
3697 # If you have `file' or equivalent on your system and you're not sure
3698 # whether `pass_all' will *always* work, you probably want this one.
3699
3700 case $host_os in
3701 aix4* | aix5*)
3702   lt_cv_deplibs_check_method=pass_all
3703   ;;
3704
3705 beos*)
3706   lt_cv_deplibs_check_method=pass_all
3707   ;;
3708
3709 bsdi4*)
3710   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3711   lt_cv_file_magic_cmd='/usr/bin/file -L'
3712   lt_cv_file_magic_test_file=/shlib/libc.so
3713   ;;
3714
3715 cygwin* | mingw* | pw32*)
3716   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3717   lt_cv_file_magic_cmd='$OBJDUMP -f'
3718   ;;
3719
3720 darwin* | rhapsody*)
3721   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3722   lt_cv_file_magic_cmd='/usr/bin/file -L'
3723   case "$host_os" in
3724   rhapsody* | darwin1.[012])
3725     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3726     ;;
3727   *) # Darwin 1.3 on
3728     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3729     ;;
3730   esac
3731   ;;
3732
3733 freebsd*)
3734   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3735     case $host_cpu in
3736     i*86 )
3737       # Not sure whether the presence of OpenBSD here was a mistake.
3738       # Let's accept both of them until this is cleared up.
3739       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3740       lt_cv_file_magic_cmd=/usr/bin/file
3741       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3742       ;;
3743     esac
3744   else
3745     lt_cv_deplibs_check_method=pass_all
3746   fi
3747   ;;
3748
3749 gnu*)
3750   lt_cv_deplibs_check_method=pass_all
3751   ;;
3752
3753 hpux10.20*|hpux11*)
3754   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3755   lt_cv_file_magic_cmd=/usr/bin/file
3756   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3757   ;;
3758
3759 irix5* | irix6* | nonstopux*)
3760   case $host_os in
3761   irix5* | nonstopux*)
3762     # this will be overridden with pass_all, but let us keep it just in case
3763     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3764     ;;
3765   *)
3766     case $LD in
3767     *-32|*"-32 ") libmagic=32-bit;;
3768     *-n32|*"-n32 ") libmagic=N32;;
3769     *-64|*"-64 ") libmagic=64-bit;;
3770     *) libmagic=never-match;;
3771     esac
3772     # this will be overridden with pass_all, but let us keep it just in case
3773     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3774     ;;
3775   esac
3776   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3777   lt_cv_deplibs_check_method=pass_all
3778   ;;
3779
3780 # This must be Linux ELF.
3781 linux-gnu*)
3782   case $host_cpu in
3783   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3784     lt_cv_deplibs_check_method=pass_all ;;
3785   *)
3786     # glibc up to 2.1.1 does not perform some relocations on ARM
3787     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3788   esac
3789   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3790   ;;
3791
3792 netbsd*)
3793   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3794     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3795   else
3796     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3797   fi
3798   ;;
3799
3800 newos6*)
3801   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3802   lt_cv_file_magic_cmd=/usr/bin/file
3803   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3804   ;;
3805
3806 openbsd*)
3807   lt_cv_file_magic_cmd=/usr/bin/file
3808   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3809   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3810     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3811   else
3812     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3813   fi
3814   ;;
3815
3816 osf3* | osf4* | osf5*)
3817   # this will be overridden with pass_all, but let us keep it just in case
3818   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3819   lt_cv_file_magic_test_file=/shlib/libc.so
3820   lt_cv_deplibs_check_method=pass_all
3821   ;;
3822
3823 sco3.2v5*)
3824   lt_cv_deplibs_check_method=pass_all
3825   ;;
3826
3827 solaris*)
3828   lt_cv_deplibs_check_method=pass_all
3829   lt_cv_file_magic_test_file=/lib/libc.so
3830   ;;
3831
3832 sysv5uw[78]* | sysv4*uw2*)
3833   lt_cv_deplibs_check_method=pass_all
3834   ;;
3835
3836 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3837   case $host_vendor in
3838   motorola)
3839     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]'
3840     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3841     ;;
3842   ncr)
3843     lt_cv_deplibs_check_method=pass_all
3844     ;;
3845   sequent)
3846     lt_cv_file_magic_cmd='/bin/file'
3847     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3848     ;;
3849   sni)
3850     lt_cv_file_magic_cmd='/bin/file'
3851     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3852     lt_cv_file_magic_test_file=/lib/libc.so
3853     ;;
3854   siemens)
3855     lt_cv_deplibs_check_method=pass_all
3856     ;;
3857   esac
3858   ;;
3859 esac
3860
3861 fi
3862 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3863 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3864 file_magic_cmd=$lt_cv_file_magic_cmd
3865 deplibs_check_method=$lt_cv_deplibs_check_method
3866
3867
3868
3869
3870
3871
3872
3873
3874 # Check for command to grab the raw symbol name followed by C symbol from nm.
3875 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3876 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3877 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3878   echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880
3881 # These are sane defaults that work on at least a few old systems.
3882 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3883
3884 # Character class describing NM global symbol codes.
3885 symcode='[BCDEGRST]'
3886
3887 # Regexp to match symbols that can be accessed directly from C.
3888 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3889
3890 # Transform the above into a raw symbol and a C symbol.
3891 symxfrm='\1 \2\3 \3'
3892
3893 # Transform an extracted symbol line into a proper C declaration
3894 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3895
3896 # Transform an extracted symbol line into symbol name and symbol address
3897 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'"
3898
3899 # Define system-specific variables.
3900 case $host_os in
3901 aix*)
3902   symcode='[BCDT]'
3903   ;;
3904 cygwin* | mingw* | pw32*)
3905   symcode='[ABCDGISTW]'
3906   ;;
3907 hpux*) # Its linker distinguishes data from code symbols
3908   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3909   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'"
3910   ;;
3911 irix* | nonstopux*)
3912   symcode='[BCDEGRST]'
3913   ;;
3914 osf*)
3915   symcode='[BCDEGQRST]'
3916   ;;
3917 solaris* | sysv5*)
3918   symcode='[BDT]'
3919   ;;
3920 sysv4)
3921   symcode='[DFNSTU]'
3922   ;;
3923 esac
3924
3925 # Handle CRLF in mingw tool chain
3926 opt_cr=
3927 case $host_os in
3928 mingw*)
3929   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3930   ;;
3931 esac
3932
3933 # If we're using GNU nm, then use its standard symbol codes.
3934 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3935   symcode='[ABCDGISTW]'
3936 fi
3937
3938 # Try without a prefix undercore, then with it.
3939 for ac_symprfx in "" "_"; do
3940
3941   # Write the raw and C identifiers.
3942 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3943
3944   # Check to see that the pipe works correctly.
3945   pipe_works=no
3946   rm -f conftest*
3947   cat > conftest.$ac_ext <<EOF
3948 #ifdef __cplusplus
3949 extern "C" {
3950 #endif
3951 char nm_test_var;
3952 void nm_test_func(){}
3953 #ifdef __cplusplus
3954 }
3955 #endif
3956 int main(){nm_test_var='a';nm_test_func();return(0);}
3957 EOF
3958
3959   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3960   (eval $ac_compile) 2>&5
3961   ac_status=$?
3962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963   (exit $ac_status); }; then
3964     # Now try to grab the symbols.
3965     nlist=conftest.nm
3966     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3967   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3968   ac_status=$?
3969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970   (exit $ac_status); } && test -s "$nlist"; then
3971       # Try sorting and uniquifying the output.
3972       if sort "$nlist" | uniq > "$nlist"T; then
3973         mv -f "$nlist"T "$nlist"
3974       else
3975         rm -f "$nlist"T
3976       fi
3977
3978       # Make sure that we snagged all the symbols we need.
3979       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3980         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3981           cat <<EOF > conftest.$ac_ext
3982 #ifdef __cplusplus
3983 extern "C" {
3984 #endif
3985
3986 EOF
3987           # Now generate the symbol file.
3988           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3989
3990           cat <<EOF >> conftest.$ac_ext
3991 #if defined (__STDC__) && __STDC__
3992 # define lt_ptr void *
3993 #else
3994 # define lt_ptr char *
3995 # define const
3996 #endif
3997
3998 /* The mapping between symbol names and symbols. */
3999 const struct {
4000   const char *name;
4001   lt_ptr address;
4002 }
4003 lt_preloaded_symbols[] =
4004 {
4005 EOF
4006           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4007           cat <<\EOF >> conftest.$ac_ext
4008   {0, (lt_ptr) 0}
4009 };
4010
4011 #ifdef __cplusplus
4012 }
4013 #endif
4014 EOF
4015           # Now try linking the two files.
4016           mv conftest.$ac_objext conftstm.$ac_objext
4017           save_LIBS="$LIBS"
4018           save_CFLAGS="$CFLAGS"
4019           LIBS="conftstm.$ac_objext"
4020           CFLAGS="$CFLAGS$no_builtin_flag"
4021           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4022   (eval $ac_link) 2>&5
4023   ac_status=$?
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); } && test -s conftest$ac_exeext; then
4026             pipe_works=yes
4027           fi
4028           LIBS="$save_LIBS"
4029           CFLAGS="$save_CFLAGS"
4030         else
4031           echo "cannot find nm_test_func in $nlist" >&5
4032         fi
4033       else
4034         echo "cannot find nm_test_var in $nlist" >&5
4035       fi
4036     else
4037       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4038     fi
4039   else
4040     echo "$progname: failed program was:" >&5
4041     cat conftest.$ac_ext >&5
4042   fi
4043   rm -f conftest* conftst*
4044
4045   # Do not use the global_symbol_pipe unless it works.
4046   if test "$pipe_works" = yes; then
4047     break
4048   else
4049     lt_cv_sys_global_symbol_pipe=
4050   fi
4051 done
4052
4053 fi
4054
4055 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4056 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4057   global_symbol_to_cdecl=
4058   global_symbol_to_c_name_address=
4059 else
4060   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4061   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4062 fi
4063 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4064 then
4065   echo "$as_me:$LINENO: result: failed" >&5
4066 echo "${ECHO_T}failed" >&6
4067 else
4068   echo "$as_me:$LINENO: result: ok" >&5
4069 echo "${ECHO_T}ok" >&6
4070 fi
4071
4072
4073 echo "$as_me:$LINENO: checking for egrep" >&5
4074 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4075 if test "${ac_cv_prog_egrep+set}" = set; then
4076   echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4079     then ac_cv_prog_egrep='grep -E'
4080     else ac_cv_prog_egrep='egrep'
4081     fi
4082 fi
4083 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4084 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4085  EGREP=$ac_cv_prog_egrep
4086
4087
4088 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4089 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4090 if test "${ac_cv_header_stdc+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   cat >conftest.$ac_ext <<_ACEOF
4094 /* confdefs.h.  */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h.  */
4099 #include <stdlib.h>
4100 #include <stdarg.h>
4101 #include <string.h>
4102 #include <float.h>
4103
4104 int
4105 main ()
4106 {
4107
4108   ;
4109   return 0;
4110 }
4111 _ACEOF
4112 rm -f conftest.$ac_objext
4113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114   (eval $ac_compile) 2>conftest.er1
4115   ac_status=$?
4116   grep -v '^ *+' conftest.er1 >conftest.err
4117   rm -f conftest.er1
4118   cat conftest.err >&5
4119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120   (exit $ac_status); } &&
4121          { ac_try='test -z "$ac_c_werror_flag"
4122                          || test ! -s conftest.err'
4123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124   (eval $ac_try) 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); }; } &&
4128          { ac_try='test -s conftest.$ac_objext'
4129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130   (eval $ac_try) 2>&5
4131   ac_status=$?
4132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133   (exit $ac_status); }; }; then
4134   ac_cv_header_stdc=yes
4135 else
4136   echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4138
4139 ac_cv_header_stdc=no
4140 fi
4141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4142
4143 if test $ac_cv_header_stdc = yes; then
4144   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4145   cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h.  */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h.  */
4151 #include <string.h>
4152
4153 _ACEOF
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155   $EGREP "memchr" >/dev/null 2>&1; then
4156   :
4157 else
4158   ac_cv_header_stdc=no
4159 fi
4160 rm -f conftest*
4161
4162 fi
4163
4164 if test $ac_cv_header_stdc = yes; then
4165   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4166   cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h.  */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h.  */
4172 #include <stdlib.h>
4173
4174 _ACEOF
4175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176   $EGREP "free" >/dev/null 2>&1; then
4177   :
4178 else
4179   ac_cv_header_stdc=no
4180 fi
4181 rm -f conftest*
4182
4183 fi
4184
4185 if test $ac_cv_header_stdc = yes; then
4186   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4187   if test "$cross_compiling" = yes; then
4188   :
4189 else
4190   cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h.  */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h.  */
4196 #include <ctype.h>
4197 #if ((' ' & 0x0FF) == 0x020)
4198 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4199 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4200 #else
4201 # define ISLOWER(c) \
4202                    (('a' <= (c) && (c) <= 'i') \
4203                      || ('j' <= (c) && (c) <= 'r') \
4204                      || ('s' <= (c) && (c) <= 'z'))
4205 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4206 #endif
4207
4208 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4209 int
4210 main ()
4211 {
4212   int i;
4213   for (i = 0; i < 256; i++)
4214     if (XOR (islower (i), ISLOWER (i))
4215         || toupper (i) != TOUPPER (i))
4216       exit(2);
4217   exit (0);
4218 }
4219 _ACEOF
4220 rm -f conftest$ac_exeext
4221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4222   (eval $ac_link) 2>&5
4223   ac_status=$?
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227   (eval $ac_try) 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); }; }; then
4231   :
4232 else
4233   echo "$as_me: program exited with status $ac_status" >&5
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4236
4237 ( exit $ac_status )
4238 ac_cv_header_stdc=no
4239 fi
4240 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4241 fi
4242 fi
4243 fi
4244 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4245 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4246 if test $ac_cv_header_stdc = yes; then
4247
4248 cat >>confdefs.h <<\_ACEOF
4249 #define STDC_HEADERS 1
4250 _ACEOF
4251
4252 fi
4253
4254 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4265                   inttypes.h stdint.h unistd.h
4266 do
4267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4268 echo "$as_me:$LINENO: checking for $ac_header" >&5
4269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4271   echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273   cat >conftest.$ac_ext <<_ACEOF
4274 /* confdefs.h.  */
4275 _ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h.  */
4279 $ac_includes_default
4280
4281 #include <$ac_header>
4282 _ACEOF
4283 rm -f conftest.$ac_objext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285   (eval $ac_compile) 2>conftest.er1
4286   ac_status=$?
4287   grep -v '^ *+' conftest.er1 >conftest.err
4288   rm -f conftest.er1
4289   cat conftest.err >&5
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); } &&
4292          { ac_try='test -z "$ac_c_werror_flag"
4293                          || test ! -s conftest.err'
4294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295   (eval $ac_try) 2>&5
4296   ac_status=$?
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); }; } &&
4299          { ac_try='test -s conftest.$ac_objext'
4300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301   (eval $ac_try) 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }; }; then
4305   eval "$as_ac_Header=yes"
4306 else
4307   echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4309
4310 eval "$as_ac_Header=no"
4311 fi
4312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4313 fi
4314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4317   cat >>confdefs.h <<_ACEOF
4318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4319 _ACEOF
4320
4321 fi
4322
4323 done
4324
4325
4326
4327 for ac_header in dlfcn.h
4328 do
4329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4331   echo "$as_me:$LINENO: checking for $ac_header" >&5
4332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4334   echo $ECHO_N "(cached) $ECHO_C" >&6
4335 fi
4336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4338 else
4339   # Is the header compilable?
4340 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4342 cat >conftest.$ac_ext <<_ACEOF
4343 /* confdefs.h.  */
4344 _ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h.  */
4348 $ac_includes_default
4349 #include <$ac_header>
4350 _ACEOF
4351 rm -f conftest.$ac_objext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4353   (eval $ac_compile) 2>conftest.er1
4354   ac_status=$?
4355   grep -v '^ *+' conftest.er1 >conftest.err
4356   rm -f conftest.er1
4357   cat conftest.err >&5
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); } &&
4360          { ac_try='test -z "$ac_c_werror_flag"
4361                          || test ! -s conftest.err'
4362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363   (eval $ac_try) 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; } &&
4367          { ac_try='test -s conftest.$ac_objext'
4368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369   (eval $ac_try) 2>&5
4370   ac_status=$?
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); }; }; then
4373   ac_header_compiler=yes
4374 else
4375   echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4377
4378 ac_header_compiler=no
4379 fi
4380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4381 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4382 echo "${ECHO_T}$ac_header_compiler" >&6
4383
4384 # Is the header present?
4385 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4387 cat >conftest.$ac_ext <<_ACEOF
4388 /* confdefs.h.  */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h.  */
4393 #include <$ac_header>
4394 _ACEOF
4395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4396   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4397   ac_status=$?
4398   grep -v '^ *+' conftest.er1 >conftest.err
4399   rm -f conftest.er1
4400   cat conftest.err >&5
4401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402   (exit $ac_status); } >/dev/null; then
4403   if test -s conftest.err; then
4404     ac_cpp_err=$ac_c_preproc_warn_flag
4405     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4406   else
4407     ac_cpp_err=
4408   fi
4409 else
4410   ac_cpp_err=yes
4411 fi
4412 if test -z "$ac_cpp_err"; then
4413   ac_header_preproc=yes
4414 else
4415   echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4417
4418   ac_header_preproc=no
4419 fi
4420 rm -f conftest.err conftest.$ac_ext
4421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4422 echo "${ECHO_T}$ac_header_preproc" >&6
4423
4424 # So?  What about this header?
4425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4426   yes:no: )
4427     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4431     ac_header_preproc=yes
4432     ;;
4433   no:yes:* )
4434     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4436     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4437 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4438     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4440     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4441 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4444     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4446     (
4447       cat <<\_ASBOX
4448 ## ------------------------------------------ ##
4449 ## Report this to the AC_PACKAGE_NAME lists.  ##
4450 ## ------------------------------------------ ##
4451 _ASBOX
4452     ) |
4453       sed "s/^/$as_me: WARNING:     /" >&2
4454     ;;
4455 esac
4456 echo "$as_me:$LINENO: checking for $ac_header" >&5
4457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4459   echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461   eval "$as_ac_Header=\$ac_header_preproc"
4462 fi
4463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4465
4466 fi
4467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4468   cat >>confdefs.h <<_ACEOF
4469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4470 _ACEOF
4471
4472 fi
4473
4474 done
4475
4476
4477
4478
4479
4480
4481 # Only perform the check for file, if the check method requires it
4482 case $deplibs_check_method in
4483 file_magic*)
4484   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4485     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4486 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4487 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4488   echo $ECHO_N "(cached) $ECHO_C" >&6
4489 else
4490   case $MAGIC_CMD in
4491   /*)
4492   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4493   ;;
4494   ?:/*)
4495   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4496   ;;
4497   *)
4498   ac_save_MAGIC_CMD="$MAGIC_CMD"
4499   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4500   ac_dummy="/usr/bin:$PATH"
4501   for ac_dir in $ac_dummy; do
4502     test -z "$ac_dir" && ac_dir=.
4503     if test -f $ac_dir/${ac_tool_prefix}file; then
4504       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4505       if test -n "$file_magic_test_file"; then
4506         case $deplibs_check_method in
4507         "file_magic "*)
4508           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4509           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4510           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4511             egrep "$file_magic_regex" > /dev/null; then
4512             :
4513           else
4514             cat <<EOF 1>&2
4515
4516 *** Warning: the command libtool uses to detect shared libraries,
4517 *** $file_magic_cmd, produces output that libtool cannot recognize.
4518 *** The result is that libtool may fail to recognize shared libraries
4519 *** as such.  This will affect the creation of libtool libraries that
4520 *** depend on shared libraries, but programs linked with such libtool
4521 *** libraries will work regardless of this problem.  Nevertheless, you
4522 *** may want to report the problem to your system manager and/or to
4523 *** bug-libtool@gnu.org
4524
4525 EOF
4526           fi ;;
4527         esac
4528       fi
4529       break
4530     fi
4531   done
4532   IFS="$ac_save_ifs"
4533   MAGIC_CMD="$ac_save_MAGIC_CMD"
4534   ;;
4535 esac
4536 fi
4537
4538 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4539 if test -n "$MAGIC_CMD"; then
4540   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4541 echo "${ECHO_T}$MAGIC_CMD" >&6
4542 else
4543   echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6
4545 fi
4546
4547 if test -z "$lt_cv_path_MAGIC_CMD"; then
4548   if test -n "$ac_tool_prefix"; then
4549     echo "$as_me:$LINENO: checking for file" >&5
4550 echo $ECHO_N "checking for file... $ECHO_C" >&6
4551 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   case $MAGIC_CMD in
4555   /*)
4556   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4557   ;;
4558   ?:/*)
4559   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4560   ;;
4561   *)
4562   ac_save_MAGIC_CMD="$MAGIC_CMD"
4563   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4564   ac_dummy="/usr/bin:$PATH"
4565   for ac_dir in $ac_dummy; do
4566     test -z "$ac_dir" && ac_dir=.
4567     if test -f $ac_dir/file; then
4568       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4569       if test -n "$file_magic_test_file"; then
4570         case $deplibs_check_method in
4571         "file_magic "*)
4572           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4573           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4574           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4575             egrep "$file_magic_regex" > /dev/null; then
4576             :
4577           else
4578             cat <<EOF 1>&2
4579
4580 *** Warning: the command libtool uses to detect shared libraries,
4581 *** $file_magic_cmd, produces output that libtool cannot recognize.
4582 *** The result is that libtool may fail to recognize shared libraries
4583 *** as such.  This will affect the creation of libtool libraries that
4584 *** depend on shared libraries, but programs linked with such libtool
4585 *** libraries will work regardless of this problem.  Nevertheless, you
4586 *** may want to report the problem to your system manager and/or to
4587 *** bug-libtool@gnu.org
4588
4589 EOF
4590           fi ;;
4591         esac
4592       fi
4593       break
4594     fi
4595   done
4596   IFS="$ac_save_ifs"
4597   MAGIC_CMD="$ac_save_MAGIC_CMD"
4598   ;;
4599 esac
4600 fi
4601
4602 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4603 if test -n "$MAGIC_CMD"; then
4604   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4605 echo "${ECHO_T}$MAGIC_CMD" >&6
4606 else
4607   echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6
4609 fi
4610
4611   else
4612     MAGIC_CMD=:
4613   fi
4614 fi
4615
4616   fi
4617   ;;
4618 esac
4619
4620 if test -n "$ac_tool_prefix"; then
4621   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4622 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4623 echo "$as_me:$LINENO: checking for $ac_word" >&5
4624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4625 if test "${ac_cv_prog_RANLIB+set}" = set; then
4626   echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628   if test -n "$RANLIB"; then
4629   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4630 else
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4633 do
4634   IFS=$as_save_IFS
4635   test -z "$as_dir" && as_dir=.
4636   for ac_exec_ext in '' $ac_executable_extensions; do
4637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4638     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640     break 2
4641   fi
4642 done
4643 done
4644
4645 fi
4646 fi
4647 RANLIB=$ac_cv_prog_RANLIB
4648 if test -n "$RANLIB"; then
4649   echo "$as_me:$LINENO: result: $RANLIB" >&5
4650 echo "${ECHO_T}$RANLIB" >&6
4651 else
4652   echo "$as_me:$LINENO: result: no" >&5
4653 echo "${ECHO_T}no" >&6
4654 fi
4655
4656 fi
4657 if test -z "$ac_cv_prog_RANLIB"; then
4658   ac_ct_RANLIB=$RANLIB
4659   # Extract the first word of "ranlib", so it can be a program name with args.
4660 set dummy ranlib; ac_word=$2
4661 echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4663 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4664   echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666   if test -n "$ac_ct_RANLIB"; then
4667   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674   for ac_exec_ext in '' $ac_executable_extensions; do
4675   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676     ac_cv_prog_ac_ct_RANLIB="ranlib"
4677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678     break 2
4679   fi
4680 done
4681 done
4682
4683   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4684 fi
4685 fi
4686 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4687 if test -n "$ac_ct_RANLIB"; then
4688   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4689 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4690 else
4691   echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6
4693 fi
4694
4695   RANLIB=$ac_ct_RANLIB
4696 else
4697   RANLIB="$ac_cv_prog_RANLIB"
4698 fi
4699
4700 if test -n "$ac_tool_prefix"; then
4701   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4702 set dummy ${ac_tool_prefix}strip; ac_word=$2
4703 echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4705 if test "${ac_cv_prog_STRIP+set}" = set; then
4706   echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708   if test -n "$STRIP"; then
4709   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714   IFS=$as_save_IFS
4715   test -z "$as_dir" && as_dir=.
4716   for ac_exec_ext in '' $ac_executable_extensions; do
4717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4718     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720     break 2
4721   fi
4722 done
4723 done
4724
4725 fi
4726 fi
4727 STRIP=$ac_cv_prog_STRIP
4728 if test -n "$STRIP"; then
4729   echo "$as_me:$LINENO: result: $STRIP" >&5
4730 echo "${ECHO_T}$STRIP" >&6
4731 else
4732   echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6
4734 fi
4735
4736 fi
4737 if test -z "$ac_cv_prog_STRIP"; then
4738   ac_ct_STRIP=$STRIP
4739   # Extract the first word of "strip", so it can be a program name with args.
4740 set dummy strip; ac_word=$2
4741 echo "$as_me:$LINENO: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   if test -n "$ac_ct_STRIP"; then
4747   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754   for ac_exec_ext in '' $ac_executable_extensions; do
4755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756     ac_cv_prog_ac_ct_STRIP="strip"
4757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761 done
4762
4763   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4764 fi
4765 fi
4766 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4767 if test -n "$ac_ct_STRIP"; then
4768   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4769 echo "${ECHO_T}$ac_ct_STRIP" >&6
4770 else
4771   echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6
4773 fi
4774
4775   STRIP=$ac_ct_STRIP
4776 else
4777   STRIP="$ac_cv_prog_STRIP"
4778 fi
4779
4780
4781 enable_dlopen=no
4782 enable_win32_dll=no
4783
4784 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4785 if test "${enable_libtool_lock+set}" = set; then
4786   enableval="$enable_libtool_lock"
4787
4788 fi;
4789 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4790
4791 # Some flags need to be propagated to the compiler or linker for good
4792 # libtool support.
4793 case $host in
4794 *-*-irix6*)
4795   # Find out which ABI we are using.
4796   echo '#line 4796 "configure"' > conftest.$ac_ext
4797   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798   (eval $ac_compile) 2>&5
4799   ac_status=$?
4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); }; then
4802     case `/usr/bin/file conftest.$ac_objext` in
4803     *32-bit*)
4804       LD="${LD-ld} -32"
4805       ;;
4806     *N32*)
4807       LD="${LD-ld} -n32"
4808       ;;
4809     *64-bit*)
4810       LD="${LD-ld} -64"
4811       ;;
4812     esac
4813   fi
4814   rm -rf conftest*
4815   ;;
4816
4817 *-*-linux*)
4818   # Test if the compiler is 64bit
4819   echo 'int i;' > conftest.$ac_ext
4820   lt_cv_cc_64bit_output=no
4821   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822   (eval $ac_compile) 2>&5
4823   ac_status=$?
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); }; then
4826     case `/usr/bin/file conftest.$ac_objext` in
4827     *"ELF 64"*)
4828       lt_cv_cc_64bit_output=yes
4829       ;;
4830     esac
4831   fi
4832   rm -rf conftest*
4833   ;;
4834
4835 *-*-sco3.2v5*)
4836   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4837   SAVE_CFLAGS="$CFLAGS"
4838   CFLAGS="$CFLAGS -belf"
4839   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4840 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4841 if test "${lt_cv_cc_needs_belf+set}" = set; then
4842   echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844
4845
4846      ac_ext=c
4847 ac_cpp='$CPP $CPPFLAGS'
4848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851
4852      cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h.  */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h.  */
4858
4859 int
4860 main ()
4861 {
4862
4863   ;
4864   return 0;
4865 }
4866 _ACEOF
4867 rm -f conftest.$ac_objext conftest$ac_exeext
4868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4869   (eval $ac_link) 2>conftest.er1
4870   ac_status=$?
4871   grep -v '^ *+' conftest.er1 >conftest.err
4872   rm -f conftest.er1
4873   cat conftest.err >&5
4874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875   (exit $ac_status); } &&
4876          { ac_try='test -z "$ac_c_werror_flag"
4877                          || test ! -s conftest.err'
4878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879   (eval $ac_try) 2>&5
4880   ac_status=$?
4881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882   (exit $ac_status); }; } &&
4883          { ac_try='test -s conftest$ac_exeext'
4884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885   (eval $ac_try) 2>&5
4886   ac_status=$?
4887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888   (exit $ac_status); }; }; then
4889   lt_cv_cc_needs_belf=yes
4890 else
4891   echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4893
4894 lt_cv_cc_needs_belf=no
4895 fi
4896 rm -f conftest.err conftest.$ac_objext \
4897       conftest$ac_exeext conftest.$ac_ext
4898      ac_ext=c
4899 ac_cpp='$CPP $CPPFLAGS'
4900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4903
4904 fi
4905 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4906 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4907   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4908     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4909     CFLAGS="$SAVE_CFLAGS"
4910   fi
4911   ;;
4912
4913
4914 esac
4915
4916 # Sed substitution that helps us do robust quoting.  It backslashifies
4917 # metacharacters that are still active within double-quoted strings.
4918 Xsed='sed -e s/^X//'
4919 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4920
4921 # Same as above, but do not quote variable references.
4922 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4923
4924 # Sed substitution to delay expansion of an escaped shell variable in a
4925 # double_quote_subst'ed string.
4926 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4927
4928 # Constants:
4929 rm="rm -f"
4930
4931 # Global variables:
4932 default_ofile=libtool
4933 can_build_shared=yes
4934
4935 # All known linkers require a `.a' archive for static linking (except M$VC,
4936 # which needs '.lib').
4937 libext=a
4938 ltmain="$ac_aux_dir/ltmain.sh"
4939 ofile="$default_ofile"
4940 with_gnu_ld="$lt_cv_prog_gnu_ld"
4941 need_locks="$enable_libtool_lock"
4942
4943 old_CC="$CC"
4944 old_CFLAGS="$CFLAGS"
4945
4946 # Set sane defaults for various variables
4947 test -z "$AR" && AR=ar
4948 test -z "$AR_FLAGS" && AR_FLAGS=cru
4949 test -z "$AS" && AS=as
4950 test -z "$CC" && CC=cc
4951 test -z "$DLLTOOL" && DLLTOOL=dlltool
4952 test -z "$LD" && LD=ld
4953 test -z "$LN_S" && LN_S="ln -s"
4954 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4955 test -z "$NM" && NM=nm
4956 test -z "$OBJDUMP" && OBJDUMP=objdump
4957 test -z "$RANLIB" && RANLIB=:
4958 test -z "$STRIP" && STRIP=:
4959 test -z "$ac_objext" && ac_objext=o
4960
4961 if test x"$host" != x"$build"; then
4962   ac_tool_prefix=${host_alias}-
4963 else
4964   ac_tool_prefix=
4965 fi
4966
4967 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4968 case $host_os in
4969 linux-gnu*) ;;
4970 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4971 esac
4972
4973 case $host_os in
4974 aix3*)
4975   # AIX sometimes has problems with the GCC collect2 program.  For some
4976   # reason, if we set the COLLECT_NAMES environment variable, the problems
4977   # vanish in a puff of smoke.
4978   if test "X${COLLECT_NAMES+set}" != Xset; then
4979     COLLECT_NAMES=
4980     export COLLECT_NAMES
4981   fi
4982   ;;
4983 esac
4984
4985 # Determine commands to create old-style static archives.
4986 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4987 old_postinstall_cmds='chmod 644 $oldlib'
4988 old_postuninstall_cmds=
4989
4990 if test -n "$RANLIB"; then
4991   case $host_os in
4992   openbsd*)
4993     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4994     ;;
4995   *)
4996     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4997     ;;
4998   esac
4999   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5000 fi
5001
5002 # Allow CC to be a program name with arguments.
5003 set dummy $CC
5004 compiler="$2"
5005
5006 echo "$as_me:$LINENO: checking for objdir" >&5
5007 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5008 rm -f .libs 2>/dev/null
5009 mkdir .libs 2>/dev/null
5010 if test -d .libs; then
5011   objdir=.libs
5012 else
5013   # MS-DOS does not allow filenames that begin with a dot.
5014   objdir=_libs
5015 fi
5016 rmdir .libs 2>/dev/null
5017 echo "$as_me:$LINENO: result: $objdir" >&5
5018 echo "${ECHO_T}$objdir" >&6
5019
5020
5021
5022 # Check whether --with-pic or --without-pic was given.
5023 if test "${with_pic+set}" = set; then
5024   withval="$with_pic"
5025   pic_mode="$withval"
5026 else
5027   pic_mode=default
5028 fi;
5029 test -z "$pic_mode" && pic_mode=default
5030
5031 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5032 # in isolation, and that seeing it set (from the cache) indicates that
5033 # the associated values are set (in the cache) correctly too.
5034 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5035 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5036 if test "${lt_cv_prog_cc_pic+set}" = set; then
5037   echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039    lt_cv_prog_cc_pic=
5040   lt_cv_prog_cc_shlib=
5041   lt_cv_prog_cc_wl=
5042   lt_cv_prog_cc_static=
5043   lt_cv_prog_cc_no_builtin=
5044   lt_cv_prog_cc_can_build_shared=$can_build_shared
5045
5046   if test "$GCC" = yes; then
5047     lt_cv_prog_cc_wl='-Wl,'
5048     lt_cv_prog_cc_static='-static'
5049
5050     case $host_os in
5051     aix*)
5052       # Below there is a dirty hack to force normal static linking with -ldl
5053       # The problem is because libdl dynamically linked with both libc and
5054       # libC (AIX C++ library), which obviously doesn't included in libraries
5055       # list by gcc. This cause undefined symbols with -static flags.
5056       # This hack allows C programs to be linked with "-static -ldl", but
5057       # not sure about C++ programs.
5058       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5059       ;;
5060     amigaos*)
5061       # FIXME: we need at least 68020 code to build shared libraries, but
5062       # adding the `-m68020' flag to GCC prevents building anything better,
5063       # like `-m68040'.
5064       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5065       ;;
5066     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5067       # PIC is the default for these OSes.
5068       ;;
5069     darwin* | rhapsody*)
5070       # PIC is the default on this platform
5071       # Common symbols not allowed in MH_DYLIB files
5072       lt_cv_prog_cc_pic='-fno-common'
5073       ;;
5074     cygwin* | mingw* | pw32* | os2*)
5075       # This hack is so that the source file can tell whether it is being
5076       # built for inclusion in a dll (and should export symbols for example).
5077       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5078       ;;
5079     sysv4*MP*)
5080       if test -d /usr/nec; then
5081          lt_cv_prog_cc_pic=-Kconform_pic
5082       fi
5083       ;;
5084     *)
5085       lt_cv_prog_cc_pic='-fPIC'
5086       ;;
5087     esac
5088   else
5089     # PORTME Check for PIC flags for the system compiler.
5090     case $host_os in
5091     aix3* | aix4* | aix5*)
5092       lt_cv_prog_cc_wl='-Wl,'
5093       # All AIX code is PIC.
5094       if test "$host_cpu" = ia64; then
5095         # AIX 5 now supports IA64 processor
5096         lt_cv_prog_cc_static='-Bstatic'
5097       else
5098         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5099       fi
5100       ;;
5101
5102     hpux9* | hpux10* | hpux11*)
5103       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5104       lt_cv_prog_cc_wl='-Wl,'
5105       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5106       lt_cv_prog_cc_pic='+Z'
5107       ;;
5108
5109     irix5* | irix6* | nonstopux*)
5110       lt_cv_prog_cc_wl='-Wl,'
5111       lt_cv_prog_cc_static='-non_shared'
5112       # PIC (with -KPIC) is the default.
5113       ;;
5114
5115     cygwin* | mingw* | pw32* | os2*)
5116       # This hack is so that the source file can tell whether it is being
5117       # built for inclusion in a dll (and should export symbols for example).
5118       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5119       ;;
5120
5121     newsos6)
5122       lt_cv_prog_cc_pic='-KPIC'
5123       lt_cv_prog_cc_static='-Bstatic'
5124       ;;
5125
5126     osf3* | osf4* | osf5*)
5127       # All OSF/1 code is PIC.
5128       lt_cv_prog_cc_wl='-Wl,'
5129       lt_cv_prog_cc_static='-non_shared'
5130       ;;
5131
5132     sco3.2v5*)
5133       lt_cv_prog_cc_pic='-Kpic'
5134       lt_cv_prog_cc_static='-dn'
5135       lt_cv_prog_cc_shlib='-belf'
5136       ;;
5137
5138     solaris*)
5139       lt_cv_prog_cc_pic='-KPIC'
5140       lt_cv_prog_cc_static='-Bstatic'
5141       lt_cv_prog_cc_wl='-Wl,'
5142       ;;
5143
5144     sunos4*)
5145       lt_cv_prog_cc_pic='-PIC'
5146       lt_cv_prog_cc_static='-Bstatic'
5147       lt_cv_prog_cc_wl='-Qoption ld '
5148       ;;
5149
5150     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5151       lt_cv_prog_cc_pic='-KPIC'
5152       lt_cv_prog_cc_static='-Bstatic'
5153       lt_cv_prog_cc_wl='-Wl,'
5154       ;;
5155
5156     uts4*)
5157       lt_cv_prog_cc_pic='-pic'
5158       lt_cv_prog_cc_static='-Bstatic'
5159       ;;
5160
5161     sysv4*MP*)
5162       if test -d /usr/nec ;then
5163         lt_cv_prog_cc_pic='-Kconform_pic'
5164         lt_cv_prog_cc_static='-Bstatic'
5165       fi
5166       ;;
5167
5168     *)
5169       lt_cv_prog_cc_can_build_shared=no
5170       ;;
5171     esac
5172   fi
5173
5174 fi
5175
5176 if test -z "$lt_cv_prog_cc_pic"; then
5177   echo "$as_me:$LINENO: result: none" >&5
5178 echo "${ECHO_T}none" >&6
5179 else
5180   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5181 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5182
5183   # Check to make sure the pic_flag actually works.
5184   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5185 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5186   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5187   echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189       save_CFLAGS="$CFLAGS"
5190     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5191     cat >conftest.$ac_ext <<_ACEOF
5192 /* confdefs.h.  */
5193 _ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h.  */
5197
5198 int
5199 main ()
5200 {
5201
5202   ;
5203   return 0;
5204 }
5205 _ACEOF
5206 rm -f conftest.$ac_objext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208   (eval $ac_compile) 2>conftest.er1
5209   ac_status=$?
5210   grep -v '^ *+' conftest.er1 >conftest.err
5211   rm -f conftest.er1
5212   cat conftest.err >&5
5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214   (exit $ac_status); } &&
5215          { ac_try='test -z "$ac_c_werror_flag"
5216                          || test ! -s conftest.err'
5217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218   (eval $ac_try) 2>&5
5219   ac_status=$?
5220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221   (exit $ac_status); }; } &&
5222          { ac_try='test -s conftest.$ac_objext'
5223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224   (eval $ac_try) 2>&5
5225   ac_status=$?
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); }; }; then
5228         case $host_os in
5229       hpux9* | hpux10* | hpux11*)
5230         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5231         # they create non-PIC objects.  So, if there were any warnings, we
5232         # assume that PIC is not supported.
5233         if test -s conftest.err; then
5234           lt_cv_prog_cc_pic_works=no
5235         else
5236           lt_cv_prog_cc_pic_works=yes
5237         fi
5238         ;;
5239       *)
5240         lt_cv_prog_cc_pic_works=yes
5241         ;;
5242       esac
5243
5244 else
5245   echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5247
5248       lt_cv_prog_cc_pic_works=no
5249
5250 fi
5251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5252     CFLAGS="$save_CFLAGS"
5253
5254 fi
5255
5256
5257   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5258     lt_cv_prog_cc_pic=
5259     lt_cv_prog_cc_can_build_shared=no
5260   else
5261     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5262   fi
5263
5264   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5265 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5266 fi
5267
5268 # Check for any special shared library compilation flags.
5269 if test -n "$lt_cv_prog_cc_shlib"; then
5270   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5271 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5272   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5273   else
5274    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5275 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5276     lt_cv_prog_cc_can_build_shared=no
5277   fi
5278 fi
5279
5280 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5281 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5282 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5283   echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285     lt_cv_prog_cc_static_works=no
5286   save_LDFLAGS="$LDFLAGS"
5287   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5288   cat >conftest.$ac_ext <<_ACEOF
5289 /* confdefs.h.  */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h.  */
5294
5295 int
5296 main ()
5297 {
5298
5299   ;
5300   return 0;
5301 }
5302 _ACEOF
5303 rm -f conftest.$ac_objext conftest$ac_exeext
5304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5305   (eval $ac_link) 2>conftest.er1
5306   ac_status=$?
5307   grep -v '^ *+' conftest.er1 >conftest.err
5308   rm -f conftest.er1
5309   cat conftest.err >&5
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); } &&
5312          { ac_try='test -z "$ac_c_werror_flag"
5313                          || test ! -s conftest.err'
5314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315   (eval $ac_try) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; } &&
5319          { ac_try='test -s conftest$ac_exeext'
5320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321   (eval $ac_try) 2>&5
5322   ac_status=$?
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); }; }; then
5325   lt_cv_prog_cc_static_works=yes
5326 else
5327   echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330 fi
5331 rm -f conftest.err conftest.$ac_objext \
5332       conftest$ac_exeext conftest.$ac_ext
5333   LDFLAGS="$save_LDFLAGS"
5334
5335 fi
5336
5337
5338 # Belt *and* braces to stop my trousers falling down:
5339 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5340 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5341 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5342
5343 pic_flag="$lt_cv_prog_cc_pic"
5344 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5345 wl="$lt_cv_prog_cc_wl"
5346 link_static_flag="$lt_cv_prog_cc_static"
5347 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5348 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5349
5350
5351 # Check to see if options -o and -c are simultaneously supported by compiler
5352 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5353 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5354 if test "${lt_cv_compiler_c_o+set}" = set; then
5355   echo $ECHO_N "(cached) $ECHO_C" >&6
5356 else
5357
5358 $rm -r conftest 2>/dev/null
5359 mkdir conftest
5360 cd conftest
5361 echo "int some_variable = 0;" > conftest.$ac_ext
5362 mkdir out
5363 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5364 # that will create temporary files in the current directory regardless of
5365 # the output directory.  Thus, making CWD read-only will cause this test
5366 # to fail, enabling locking or at least warning the user not to do parallel
5367 # builds.
5368 chmod -w .
5369 save_CFLAGS="$CFLAGS"
5370 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5371 compiler_c_o=no
5372 if { (eval echo configure:5372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5373   # The compiler can only warn and ignore the option if not recognized
5374   # So say no if there are warnings
5375   if test -s out/conftest.err; then
5376     lt_cv_compiler_c_o=no
5377   else
5378     lt_cv_compiler_c_o=yes
5379   fi
5380 else
5381   # Append any errors to the config.log.
5382   cat out/conftest.err 1>&5
5383   lt_cv_compiler_c_o=no
5384 fi
5385 CFLAGS="$save_CFLAGS"
5386 chmod u+w .
5387 $rm conftest* out/*
5388 rmdir out
5389 cd ..
5390 rmdir conftest
5391 $rm -r conftest 2>/dev/null
5392
5393 fi
5394
5395 compiler_c_o=$lt_cv_compiler_c_o
5396 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5397 echo "${ECHO_T}$compiler_c_o" >&6
5398
5399 if test x"$compiler_c_o" = x"yes"; then
5400   # Check to see if we can write to a .lo
5401   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5402 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5403   if test "${lt_cv_compiler_o_lo+set}" = set; then
5404   echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406
5407   lt_cv_compiler_o_lo=no
5408   save_CFLAGS="$CFLAGS"
5409   CFLAGS="$CFLAGS -c -o conftest.lo"
5410   save_objext="$ac_objext"
5411   ac_objext=lo
5412   cat >conftest.$ac_ext <<_ACEOF
5413 /* confdefs.h.  */
5414 _ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h.  */
5418
5419 int
5420 main ()
5421 {
5422 int some_variable = 0;
5423   ;
5424   return 0;
5425 }
5426 _ACEOF
5427 rm -f conftest.$ac_objext
5428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5429   (eval $ac_compile) 2>conftest.er1
5430   ac_status=$?
5431   grep -v '^ *+' conftest.er1 >conftest.err
5432   rm -f conftest.er1
5433   cat conftest.err >&5
5434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435   (exit $ac_status); } &&
5436          { ac_try='test -z "$ac_c_werror_flag"
5437                          || test ! -s conftest.err'
5438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439   (eval $ac_try) 2>&5
5440   ac_status=$?
5441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442   (exit $ac_status); }; } &&
5443          { ac_try='test -s conftest.$ac_objext'
5444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445   (eval $ac_try) 2>&5
5446   ac_status=$?
5447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448   (exit $ac_status); }; }; then
5449       # The compiler can only warn and ignore the option if not recognized
5450     # So say no if there are warnings
5451     if test -s conftest.err; then
5452       lt_cv_compiler_o_lo=no
5453     else
5454       lt_cv_compiler_o_lo=yes
5455     fi
5456
5457 else
5458   echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5460
5461 fi
5462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5463   ac_objext="$save_objext"
5464   CFLAGS="$save_CFLAGS"
5465
5466 fi
5467
5468   compiler_o_lo=$lt_cv_compiler_o_lo
5469   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5470 echo "${ECHO_T}$compiler_o_lo" >&6
5471 else
5472   compiler_o_lo=no
5473 fi
5474
5475 # Check to see if we can do hard links to lock some files if needed
5476 hard_links="nottested"
5477 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5478   # do not overwrite the value of need_locks provided by the user
5479   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5480 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5481   hard_links=yes
5482   $rm conftest*
5483   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5484   touch conftest.a
5485   ln conftest.a conftest.b 2>&5 || hard_links=no
5486   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5487   echo "$as_me:$LINENO: result: $hard_links" >&5
5488 echo "${ECHO_T}$hard_links" >&6
5489   if test "$hard_links" = no; then
5490     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5491 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5492     need_locks=warn
5493   fi
5494 else
5495   need_locks=no
5496 fi
5497
5498 if test "$GCC" = yes; then
5499   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5500   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5501 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5502   echo "int some_variable = 0;" > conftest.$ac_ext
5503   save_CFLAGS="$CFLAGS"
5504   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5505   compiler_rtti_exceptions=no
5506   cat >conftest.$ac_ext <<_ACEOF
5507 /* confdefs.h.  */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h.  */
5512
5513 int
5514 main ()
5515 {
5516 int some_variable = 0;
5517   ;
5518   return 0;
5519 }
5520 _ACEOF
5521 rm -f conftest.$ac_objext
5522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5523   (eval $ac_compile) 2>conftest.er1
5524   ac_status=$?
5525   grep -v '^ *+' conftest.er1 >conftest.err
5526   rm -f conftest.er1
5527   cat conftest.err >&5
5528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529   (exit $ac_status); } &&
5530          { ac_try='test -z "$ac_c_werror_flag"
5531                          || test ! -s conftest.err'
5532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533   (eval $ac_try) 2>&5
5534   ac_status=$?
5535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536   (exit $ac_status); }; } &&
5537          { ac_try='test -s conftest.$ac_objext'
5538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539   (eval $ac_try) 2>&5
5540   ac_status=$?
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); }; }; then
5543       # The compiler can only warn and ignore the option if not recognized
5544     # So say no if there are warnings
5545     if test -s conftest.err; then
5546       compiler_rtti_exceptions=no
5547     else
5548       compiler_rtti_exceptions=yes
5549     fi
5550
5551 else
5552   echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555 fi
5556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5557   CFLAGS="$save_CFLAGS"
5558   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5559 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5560
5561   if test "$compiler_rtti_exceptions" = "yes"; then
5562     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5563   else
5564     no_builtin_flag=' -fno-builtin'
5565   fi
5566 fi
5567
5568 # See if the linker supports building shared libraries.
5569 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5570 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5571
5572 allow_undefined_flag=
5573 no_undefined_flag=
5574 need_lib_prefix=unknown
5575 need_version=unknown
5576 # when you set need_version to no, make sure it does not cause -set_version
5577 # flags to be left without arguments
5578 archive_cmds=
5579 archive_expsym_cmds=
5580 old_archive_from_new_cmds=
5581 old_archive_from_expsyms_cmds=
5582 export_dynamic_flag_spec=
5583 whole_archive_flag_spec=
5584 thread_safe_flag_spec=
5585 hardcode_into_libs=no
5586 hardcode_libdir_flag_spec=
5587 hardcode_libdir_separator=
5588 hardcode_direct=no
5589 hardcode_minus_L=no
5590 hardcode_shlibpath_var=unsupported
5591 runpath_var=
5592 link_all_deplibs=unknown
5593 always_export_symbols=no
5594 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5595 # include_expsyms should be a list of space-separated symbols to be *always*
5596 # included in the symbol list
5597 include_expsyms=
5598 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5599 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5600 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5601 # as well as any symbol that contains `d'.
5602 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5603 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5604 # platforms (ab)use it in PIC code, but their linkers get confused if
5605 # the symbol is explicitly referenced.  Since portable code cannot
5606 # rely on this symbol name, it's probably fine to never include it in
5607 # preloaded symbol tables.
5608 extract_expsyms_cmds=
5609
5610 case $host_os in
5611 cygwin* | mingw* | pw32*)
5612   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5613   # When not using gcc, we currently assume that we are using
5614   # Microsoft Visual C++.
5615   if test "$GCC" != yes; then
5616     with_gnu_ld=no
5617   fi
5618   ;;
5619 openbsd*)
5620   with_gnu_ld=no
5621   ;;
5622 esac
5623
5624 ld_shlibs=yes
5625 if test "$with_gnu_ld" = yes; then
5626   # If archive_cmds runs LD, not CC, wlarc should be empty
5627   wlarc='${wl}'
5628
5629   # See if GNU ld supports shared libraries.
5630   case $host_os in
5631   aix3* | aix4* | aix5*)
5632     # On AIX, the GNU linker is very broken
5633     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5634     ld_shlibs=no
5635     cat <<EOF 1>&2
5636
5637 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5638 *** to be unable to reliably create shared libraries on AIX.
5639 *** Therefore, libtool is disabling shared libraries support.  If you
5640 *** really care for shared libraries, you may want to modify your PATH
5641 *** so that a non-GNU linker is found, and then restart.
5642
5643 EOF
5644     ;;
5645
5646   amigaos*)
5647     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)'
5648     hardcode_libdir_flag_spec='-L$libdir'
5649     hardcode_minus_L=yes
5650
5651     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5652     # that the semantics of dynamic libraries on AmigaOS, at least up
5653     # to version 4, is to share data among multiple programs linked
5654     # with the same dynamic library.  Since this doesn't match the
5655     # behavior of shared libraries on other platforms, we can use
5656     # them.
5657     ld_shlibs=no
5658     ;;
5659
5660   beos*)
5661     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5662       allow_undefined_flag=unsupported
5663       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5664       # support --undefined.  This deserves some investigation.  FIXME
5665       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5666     else
5667       ld_shlibs=no
5668     fi
5669     ;;
5670
5671   cygwin* | mingw* | pw32*)
5672     # hardcode_libdir_flag_spec is actually meaningless, as there is
5673     # no search path for DLLs.
5674     hardcode_libdir_flag_spec='-L$libdir'
5675     allow_undefined_flag=unsupported
5676     always_export_symbols=yes
5677
5678     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5679       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5680       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5681       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5682       else $CC -o impgen impgen.c ; fi)~
5683       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5684
5685     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5686
5687     # cygwin and mingw dlls have different entry points and sets of symbols
5688     # to exclude.
5689     # FIXME: what about values for MSVC?
5690     dll_entry=__cygwin_dll_entry@12
5691     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5692     case $host_os in
5693     mingw*)
5694       # mingw values
5695       dll_entry=_DllMainCRTStartup@12
5696       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5697       ;;
5698     esac
5699
5700     # mingw and cygwin differ, and it's simplest to just exclude the union
5701     # of the two symbol sets.
5702     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5703
5704     # recent cygwin and mingw systems supply a stub DllMain which the user
5705     # can override, but on older systems we have to supply one (in ltdll.c)
5706     if test "x$lt_cv_need_dllmain" = "xyes"; then
5707       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5708       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~
5709         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5710     else
5711       ltdll_obj=
5712       ltdll_cmds=
5713     fi
5714
5715     # Extract the symbol export list from an `--export-all' def file,
5716     # then regenerate the def file from the symbol export list, so that
5717     # the compiled dll only exports the symbol export list.
5718     # Be careful not to strip the DATA tag left be newer dlltools.
5719     export_symbols_cmds="$ltdll_cmds"'
5720       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5721       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5722
5723     # If the export-symbols file already is a .def file (1st line
5724     # is EXPORTS), use it as is.
5725     # If DATA tags from a recent dlltool are present, honour them!
5726     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5727         cp $export_symbols $output_objdir/$soname-def;
5728       else
5729         echo EXPORTS > $output_objdir/$soname-def;
5730         _lt_hint=1;
5731         cat $export_symbols | while read symbol; do
5732          set dummy \$symbol;
5733          case \$# in
5734            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5735            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5736            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5737          esac;
5738          _lt_hint=`expr 1 + \$_lt_hint`;
5739         done;
5740       fi~
5741       '"$ltdll_cmds"'
5742       $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~
5743       $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~
5744       $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~
5745       $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~
5746       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5747     ;;
5748
5749   netbsd*)
5750     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5751       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5752       wlarc=
5753     else
5754       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5755       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5756     fi
5757     ;;
5758
5759   solaris* | sysv5*)
5760     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5761       ld_shlibs=no
5762       cat <<EOF 1>&2
5763
5764 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5765 *** create shared libraries on Solaris systems.  Therefore, libtool
5766 *** is disabling shared libraries support.  We urge you to upgrade GNU
5767 *** binutils to release 2.9.1 or newer.  Another option is to modify
5768 *** your PATH or compiler configuration so that the native linker is
5769 *** used, and then restart.
5770
5771 EOF
5772     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5773       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5774       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5775     else
5776       ld_shlibs=no
5777     fi
5778     ;;
5779
5780   sunos4*)
5781     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5782     wlarc=
5783     hardcode_direct=yes
5784     hardcode_shlibpath_var=no
5785     ;;
5786
5787   linux*)
5788     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5789       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5790       supports_anon_versioning=no
5791       case `$LD -v 2>/dev/null` in
5792         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5793         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5794         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5795         *\ 2.11.*) ;; # other 2.11 versions
5796         *) supports_anon_versioning=yes ;;
5797       esac
5798       if test $supports_anon_versioning = yes; then
5799         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5800 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5801 $echo "local: *; };" >> $output_objdir/$libname.ver~
5802         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5803       else
5804         $archive_expsym_cmds="$archive_cmds"
5805       fi
5806     else
5807       ld_shlibs=no
5808     fi
5809     ;;
5810
5811   *)
5812     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5813       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5814       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5815     else
5816       ld_shlibs=no
5817     fi
5818     ;;
5819   esac
5820
5821   if test "$ld_shlibs" = yes; then
5822     runpath_var=LD_RUN_PATH
5823     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5824     export_dynamic_flag_spec='${wl}--export-dynamic'
5825     case $host_os in
5826     cygwin* | mingw* | pw32*)
5827       # dlltool doesn't understand --whole-archive et. al.
5828       whole_archive_flag_spec=
5829       ;;
5830     *)
5831       # ancient GNU ld didn't support --whole-archive et. al.
5832       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5833         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5834       else
5835         whole_archive_flag_spec=
5836       fi
5837       ;;
5838     esac
5839   fi
5840 else
5841   # PORTME fill in a description of your system's linker (not GNU ld)
5842   case $host_os in
5843   aix3*)
5844     allow_undefined_flag=unsupported
5845     always_export_symbols=yes
5846     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'
5847     # Note: this linker hardcodes the directories in LIBPATH if there
5848     # are no directories specified by -L.
5849     hardcode_minus_L=yes
5850     if test "$GCC" = yes && test -z "$link_static_flag"; then
5851       # Neither direct hardcoding nor static linking is supported with a
5852       # broken collect2.
5853       hardcode_direct=unsupported
5854     fi
5855     ;;
5856
5857   aix4* | aix5*)
5858     if test "$host_cpu" = ia64; then
5859       # On IA64, the linker does run time linking by default, so we don't
5860       # have to do anything special.
5861       aix_use_runtimelinking=no
5862       exp_sym_flag='-Bexport'
5863       no_entry_flag=""
5864     else
5865       aix_use_runtimelinking=no
5866
5867       # Test if we are trying to use run time linking or normal
5868       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5869       # need to do runtime linking.
5870       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5871         for ld_flag in $LDFLAGS; do
5872           case $ld_flag in
5873           *-brtl*)
5874             aix_use_runtimelinking=yes
5875             break
5876           ;;
5877           esac
5878         done
5879       esac
5880
5881       exp_sym_flag='-bexport'
5882       no_entry_flag='-bnoentry'
5883     fi
5884
5885     # When large executables or shared objects are built, AIX ld can
5886     # have problems creating the table of contents.  If linking a library
5887     # or program results in "error TOC overflow" add -mminimal-toc to
5888     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5889     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5890
5891     hardcode_direct=yes
5892     archive_cmds=''
5893     hardcode_libdir_separator=':'
5894     if test "$GCC" = yes; then
5895       case $host_os in aix4.[012]|aix4.[012].*)
5896         collect2name=`${CC} -print-prog-name=collect2`
5897         if test -f "$collect2name" && \
5898           strings "$collect2name" | grep resolve_lib_name >/dev/null
5899         then
5900           # We have reworked collect2
5901           hardcode_direct=yes
5902         else
5903           # We have old collect2
5904           hardcode_direct=unsupported
5905           # It fails to find uninstalled libraries when the uninstalled
5906           # path is not listed in the libpath.  Setting hardcode_minus_L
5907           # to unsupported forces relinking
5908           hardcode_minus_L=yes
5909           hardcode_libdir_flag_spec='-L$libdir'
5910           hardcode_libdir_separator=
5911         fi
5912       esac
5913
5914       shared_flag='-shared'
5915     else
5916       # not using gcc
5917       if test "$host_cpu" = ia64; then
5918         shared_flag='${wl}-G'
5919       else
5920         if test "$aix_use_runtimelinking" = yes; then
5921           shared_flag='${wl}-G'
5922         else
5923           shared_flag='${wl}-bM:SRE'
5924         fi
5925       fi
5926     fi
5927
5928     # It seems that -bexpall can do strange things, so it is better to
5929     # generate a list of symbols to export.
5930     always_export_symbols=yes
5931     if test "$aix_use_runtimelinking" = yes; then
5932       # Warning - without using the other runtime loading flags (-brtl),
5933       # -berok will link without error, but may produce a broken library.
5934       allow_undefined_flag='-berok'
5935       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5936       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"
5937     else
5938       if test "$host_cpu" = ia64; then
5939         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5940         allow_undefined_flag="-z nodefs"
5941         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"
5942       else
5943         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5944         # Warning - without using the other run time loading flags,
5945         # -berok will link without error, but may produce a broken library.
5946         allow_undefined_flag='${wl}-berok'
5947         # This is a bit strange, but is similar to how AIX traditionally builds
5948         # it's shared libraries.
5949         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'
5950       fi
5951     fi
5952     ;;
5953
5954   amigaos*)
5955     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)'
5956     hardcode_libdir_flag_spec='-L$libdir'
5957     hardcode_minus_L=yes
5958     # see comment about different semantics on the GNU ld section
5959     ld_shlibs=no
5960     ;;
5961
5962   cygwin* | mingw* | pw32*)
5963     # When not using gcc, we currently assume that we are using
5964     # Microsoft Visual C++.
5965     # hardcode_libdir_flag_spec is actually meaningless, as there is
5966     # no search path for DLLs.
5967     hardcode_libdir_flag_spec=' '
5968     allow_undefined_flag=unsupported
5969     # Tell ltmain to make .lib files, not .a files.
5970     libext=lib
5971     # FIXME: Setting linknames here is a bad hack.
5972     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5973     # The linker will automatically build a .lib file if we build a DLL.
5974     old_archive_from_new_cmds='true'
5975     # FIXME: Should let the user specify the lib program.
5976     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5977     fix_srcfile_path='`cygpath -w "$srcfile"`'
5978     ;;
5979
5980   darwin* | rhapsody*)
5981     case "$host_os" in
5982     rhapsody* | darwin1.[012])
5983       allow_undefined_flag='-undefined suppress'
5984       ;;
5985     *) # Darwin 1.3 on
5986       allow_undefined_flag='-flat_namespace -undefined suppress'
5987       ;;
5988     esac
5989     # FIXME: Relying on posixy $() will cause problems for
5990     #        cross-compilation, but unfortunately the echo tests do not
5991     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5992     #        `"' quotes if we put them in here... so don't!
5993     archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5994     # We need to add '_' to the symbols in $export_symbols first
5995     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5996     hardcode_direct=yes
5997     hardcode_shlibpath_var=no
5998     whole_archive_flag_spec='-all_load $convenience'
5999     ;;
6000
6001   freebsd1*)
6002     ld_shlibs=no
6003     ;;
6004
6005   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6006   # support.  Future versions do this automatically, but an explicit c++rt0.o
6007   # does not break anything, and helps significantly (at the cost of a little
6008   # extra space).
6009   freebsd2.2*)
6010     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6011     hardcode_libdir_flag_spec='-R$libdir'
6012     hardcode_direct=yes
6013     hardcode_shlibpath_var=no
6014     ;;
6015
6016   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6017   freebsd2*)
6018     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6019     hardcode_direct=yes
6020     hardcode_minus_L=yes
6021     hardcode_shlibpath_var=no
6022     ;;
6023
6024   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6025   freebsd*)
6026     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6027     hardcode_libdir_flag_spec='-R$libdir'
6028     hardcode_direct=yes
6029     hardcode_shlibpath_var=no
6030     ;;
6031
6032   hpux9* | hpux10* | hpux11*)
6033     case $host_os in
6034     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' ;;
6035     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6036     esac
6037     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6038     hardcode_libdir_separator=:
6039     hardcode_direct=yes
6040     hardcode_minus_L=yes # Not in the search PATH, but as the default
6041                          # location of the library.
6042     export_dynamic_flag_spec='${wl}-E'
6043     ;;
6044
6045   irix5* | irix6* | nonstopux*)
6046     if test "$GCC" = yes; then
6047       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'
6048       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6049     else
6050       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'
6051       hardcode_libdir_flag_spec='-rpath $libdir'
6052     fi
6053     hardcode_libdir_separator=:
6054     link_all_deplibs=yes
6055     ;;
6056
6057   netbsd*)
6058     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6059       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6060     else
6061       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6062     fi
6063     hardcode_libdir_flag_spec='-R$libdir'
6064     hardcode_direct=yes
6065     hardcode_shlibpath_var=no
6066     ;;
6067
6068   newsos6)
6069     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6070     hardcode_direct=yes
6071     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6072     hardcode_libdir_separator=:
6073     hardcode_shlibpath_var=no
6074     ;;
6075
6076   openbsd*)
6077     hardcode_direct=yes
6078     hardcode_shlibpath_var=no
6079     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6080       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6081       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6082       export_dynamic_flag_spec='${wl}-E'
6083     else
6084       case "$host_os" in
6085       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6086         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6087         hardcode_libdir_flag_spec='-R$libdir'
6088         ;;
6089       *)
6090         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6091         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6092         ;;
6093       esac
6094     fi
6095     ;;
6096
6097   os2*)
6098     hardcode_libdir_flag_spec='-L$libdir'
6099     hardcode_minus_L=yes
6100     allow_undefined_flag=unsupported
6101     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'
6102     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6103     ;;
6104
6105   osf3*)
6106     if test "$GCC" = yes; then
6107       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6108       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'
6109     else
6110       allow_undefined_flag=' -expect_unresolved \*'
6111       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'
6112     fi
6113     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6114     hardcode_libdir_separator=:
6115     ;;
6116
6117   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6118     if test "$GCC" = yes; then
6119       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6120       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'
6121       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6122     else
6123       allow_undefined_flag=' -expect_unresolved \*'
6124       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'
6125       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6126       $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'
6127
6128       #Both c and cxx compiler support -rpath directly
6129       hardcode_libdir_flag_spec='-rpath $libdir'
6130     fi
6131     hardcode_libdir_separator=:
6132     ;;
6133
6134   sco3.2v5*)
6135     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6136     hardcode_shlibpath_var=no
6137     runpath_var=LD_RUN_PATH
6138     hardcode_runpath_var=yes
6139     export_dynamic_flag_spec='${wl}-Bexport'
6140     ;;
6141
6142   solaris*)
6143     # gcc --version < 3.0 without binutils cannot create self contained
6144     # shared libraries reliably, requiring libgcc.a to resolve some of
6145     # the object symbols generated in some cases.  Libraries that use
6146     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6147     # a copy of libgcc.a into every shared library to guarantee resolving
6148     # such symbols causes other problems:  According to Tim Van Holder
6149     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6150     # (to the application) exception stack for one thing.
6151     no_undefined_flag=' -z defs'
6152     if test "$GCC" = yes; then
6153       case `$CC --version 2>/dev/null` in
6154       [12].*)
6155         cat <<EOF 1>&2
6156
6157 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6158 *** create self contained shared libraries on Solaris systems, without
6159 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6160 *** -no-undefined support, which will at least allow you to build shared
6161 *** libraries.  However, you may find that when you link such libraries
6162 *** into an application without using GCC, you have to manually add
6163 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6164 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6165 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6166
6167 EOF
6168         no_undefined_flag=
6169         ;;
6170       esac
6171     fi
6172     # $CC -shared without GNU ld will not create a library from C++
6173     # object files and a static libstdc++, better avoid it by now
6174     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6175     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6176                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6177     hardcode_libdir_flag_spec='-R$libdir'
6178     hardcode_shlibpath_var=no
6179     case $host_os in
6180     solaris2.[0-5] | solaris2.[0-5].*) ;;
6181     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6182       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6183     esac
6184     link_all_deplibs=yes
6185     ;;
6186
6187   sunos4*)
6188     if test "x$host_vendor" = xsequent; then
6189       # Use $CC to link under sequent, because it throws in some extra .o
6190       # files that make .init and .fini sections work.
6191       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6192     else
6193       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6194     fi
6195     hardcode_libdir_flag_spec='-L$libdir'
6196     hardcode_direct=yes
6197     hardcode_minus_L=yes
6198     hardcode_shlibpath_var=no
6199     ;;
6200
6201   sysv4)
6202     case $host_vendor in
6203       sni)
6204         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6205         hardcode_direct=yes # is this really true???
6206         ;;
6207       siemens)
6208         ## LD is ld it makes a PLAMLIB
6209         ## CC just makes a GrossModule.
6210         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6211         reload_cmds='$CC -r -o $output$reload_objs'
6212         hardcode_direct=no
6213         ;;
6214       motorola)
6215         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6216         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6217         ;;
6218     esac
6219     runpath_var='LD_RUN_PATH'
6220     hardcode_shlibpath_var=no
6221     ;;
6222
6223   sysv4.3*)
6224     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6225     hardcode_shlibpath_var=no
6226     export_dynamic_flag_spec='-Bexport'
6227     ;;
6228
6229   sysv5*)
6230     no_undefined_flag=' -z text'
6231     # $CC -shared without GNU ld will not create a library from C++
6232     # object files and a static libstdc++, better avoid it by now
6233     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6234     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6235                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6236     hardcode_libdir_flag_spec=
6237     hardcode_shlibpath_var=no
6238     runpath_var='LD_RUN_PATH'
6239     ;;
6240
6241   uts4*)
6242     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6243     hardcode_libdir_flag_spec='-L$libdir'
6244     hardcode_shlibpath_var=no
6245     ;;
6246
6247   dgux*)
6248     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6249     hardcode_libdir_flag_spec='-L$libdir'
6250     hardcode_shlibpath_var=no
6251     ;;
6252
6253   sysv4*MP*)
6254     if test -d /usr/nec; then
6255       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6256       hardcode_shlibpath_var=no
6257       runpath_var=LD_RUN_PATH
6258       hardcode_runpath_var=yes
6259       ld_shlibs=yes
6260     fi
6261     ;;
6262
6263   sysv4.2uw2*)
6264     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6265     hardcode_direct=yes
6266     hardcode_minus_L=no
6267     hardcode_shlibpath_var=no
6268     hardcode_runpath_var=yes
6269     runpath_var=LD_RUN_PATH
6270     ;;
6271
6272   sysv5uw7* | unixware7*)
6273     no_undefined_flag='${wl}-z ${wl}text'
6274     if test "$GCC" = yes; then
6275       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6276     else
6277       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6278     fi
6279     runpath_var='LD_RUN_PATH'
6280     hardcode_shlibpath_var=no
6281     ;;
6282
6283   *)
6284     ld_shlibs=no
6285     ;;
6286   esac
6287 fi
6288 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6289 echo "${ECHO_T}$ld_shlibs" >&6
6290 test "$ld_shlibs" = no && can_build_shared=no
6291
6292 # Check hardcoding attributes.
6293 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6294 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6295 hardcode_action=
6296 if test -n "$hardcode_libdir_flag_spec" || \
6297    test -n "$runpath_var"; then
6298
6299   # We can hardcode non-existant directories.
6300   if test "$hardcode_direct" != no &&
6301      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6302      # have to relink, otherwise we might link with an installed library
6303      # when we should be linking with a yet-to-be-installed one
6304      ## test "$hardcode_shlibpath_var" != no &&
6305      test "$hardcode_minus_L" != no; then
6306     # Linking always hardcodes the temporary library directory.
6307     hardcode_action=relink
6308   else
6309     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6310     hardcode_action=immediate
6311   fi
6312 else
6313   # We cannot hardcode anything, or else we can only hardcode existing
6314   # directories.
6315   hardcode_action=unsupported
6316 fi
6317 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6318 echo "${ECHO_T}$hardcode_action" >&6
6319
6320 striplib=
6321 old_striplib=
6322 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6323 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6324 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6325   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6326   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6327   echo "$as_me:$LINENO: result: yes" >&5
6328 echo "${ECHO_T}yes" >&6
6329 else
6330   echo "$as_me:$LINENO: result: no" >&5
6331 echo "${ECHO_T}no" >&6
6332 fi
6333
6334 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6335 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6336
6337 # PORTME Fill in your ld.so characteristics
6338 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6339 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6340 library_names_spec=
6341 libname_spec='lib$name'
6342 soname_spec=
6343 postinstall_cmds=
6344 postuninstall_cmds=
6345 finish_cmds=
6346 finish_eval=
6347 shlibpath_var=
6348 shlibpath_overrides_runpath=unknown
6349 version_type=none
6350 dynamic_linker="$host_os ld.so"
6351 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6352 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6353
6354 case $host_os in
6355 aix3*)
6356   version_type=linux
6357   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6358   shlibpath_var=LIBPATH
6359
6360   # AIX has no versioning support, so we append a major version to the name.
6361   soname_spec='${libname}${release}.so$major'
6362   ;;
6363
6364 aix4* | aix5*)
6365   version_type=linux
6366   need_lib_prefix=no
6367   need_version=no
6368   hardcode_into_libs=yes
6369   if test "$host_cpu" = ia64; then
6370     # AIX 5 supports IA64
6371     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6372     shlibpath_var=LD_LIBRARY_PATH
6373   else
6374     # With GCC up to 2.95.x, collect2 would create an import file
6375     # for dependence libraries.  The import file would start with
6376     # the line `#! .'.  This would cause the generated library to
6377     # depend on `.', always an invalid library.  This was fixed in
6378     # development snapshots of GCC prior to 3.0.
6379     case $host_os in
6380       aix4 | aix4.[01] | aix4.[01].*)
6381         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6382              echo ' yes '
6383              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6384           :
6385         else
6386           can_build_shared=no
6387         fi
6388         ;;
6389     esac
6390     # AIX (on Power*) has no versioning support, so currently we can
6391     # not hardcode correct soname into executable. Probably we can
6392     # add versioning support to collect2, so additional links can
6393     # be useful in future.
6394     if test "$aix_use_runtimelinking" = yes; then
6395       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6396       # instead of lib<name>.a to let people know that these are not
6397       # typical AIX shared libraries.
6398       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6399     else
6400       # We preserve .a as extension for shared libraries through AIX4.2
6401       # and later when we are not doing run time linking.
6402       library_names_spec='${libname}${release}.a $libname.a'
6403       soname_spec='${libname}${release}.so$major'
6404     fi
6405     shlibpath_var=LIBPATH
6406   fi
6407   hardcode_into_libs=yes
6408   ;;
6409
6410 amigaos*)
6411   library_names_spec='$libname.ixlibrary $libname.a'
6412   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6413   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'
6414   ;;
6415
6416 beos*)
6417   library_names_spec='${libname}.so'
6418   dynamic_linker="$host_os ld.so"
6419   shlibpath_var=LIBRARY_PATH
6420   ;;
6421
6422 bsdi4*)
6423   version_type=linux
6424   need_version=no
6425   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6426   soname_spec='${libname}${release}.so$major'
6427   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6428   shlibpath_var=LD_LIBRARY_PATH
6429   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6430   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6431   export_dynamic_flag_spec=-rdynamic
6432   # the default ld.so.conf also contains /usr/contrib/lib and
6433   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6434   # libtool to hard-code these into programs
6435   ;;
6436
6437 cygwin* | mingw* | pw32*)
6438   version_type=windows
6439   need_version=no
6440   need_lib_prefix=no
6441   case $GCC,$host_os in
6442   yes,cygwin*)
6443     library_names_spec='$libname.dll.a'
6444     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6445     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6446       dldir=$destdir/`dirname \$dlpath`~
6447       test -d \$dldir || mkdir -p \$dldir~
6448       $install_prog .libs/$dlname \$dldir/$dlname'
6449     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6450       dlpath=$dir/\$dldll~
6451        $rm \$dlpath'
6452     ;;
6453   yes,mingw*)
6454     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6455     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6456     ;;
6457   yes,pw32*)
6458     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6459     ;;
6460   *)
6461     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6462     ;;
6463   esac
6464   dynamic_linker='Win32 ld.exe'
6465   # FIXME: first we should search . and the directory the executable is in
6466   shlibpath_var=PATH
6467   ;;
6468
6469 darwin* | rhapsody*)
6470   dynamic_linker="$host_os dyld"
6471   version_type=darwin
6472   need_lib_prefix=no
6473   need_version=no
6474   # FIXME: Relying on posixy $() will cause problems for
6475   #        cross-compilation, but unfortunately the echo tests do not
6476   #        yet detect zsh echo's removal of \ escapes.
6477   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)'
6478   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6479   shlibpath_overrides_runpath=yes
6480   shlibpath_var=DYLD_LIBRARY_PATH
6481   ;;
6482
6483 freebsd1*)
6484   dynamic_linker=no
6485   ;;
6486
6487 freebsd*)
6488   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6489   version_type=freebsd-$objformat
6490   case $version_type in
6491     freebsd-elf*)
6492       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6493       need_version=no
6494       need_lib_prefix=no
6495       ;;
6496     freebsd-*)
6497       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6498       need_version=yes
6499       ;;
6500   esac
6501   shlibpath_var=LD_LIBRARY_PATH
6502   case $host_os in
6503   freebsd2*)
6504     shlibpath_overrides_runpath=yes
6505     ;;
6506   *)
6507     shlibpath_overrides_runpath=no
6508     hardcode_into_libs=yes
6509     ;;
6510   esac
6511   ;;
6512
6513 gnu*)
6514   version_type=linux
6515   need_lib_prefix=no
6516   need_version=no
6517   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6518   soname_spec='${libname}${release}.so$major'
6519   shlibpath_var=LD_LIBRARY_PATH
6520   hardcode_into_libs=yes
6521   ;;
6522
6523 hpux9* | hpux10* | hpux11*)
6524   # Give a soname corresponding to the major version so that dld.sl refuses to
6525   # link against other versions.
6526   dynamic_linker="$host_os dld.sl"
6527   version_type=sunos
6528   need_lib_prefix=no
6529   need_version=no
6530   shlibpath_var=SHLIB_PATH
6531   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6532   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6533   soname_spec='${libname}${release}.sl$major'
6534   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6535   postinstall_cmds='chmod 555 $lib'
6536   ;;
6537
6538 irix5* | irix6* | nonstopux*)
6539   case $host_os in
6540     nonstopux*) version_type=nonstopux ;;
6541     *)          version_type=irix ;;
6542   esac
6543   need_lib_prefix=no
6544   need_version=no
6545   soname_spec='${libname}${release}.so$major'
6546   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6547   case $host_os in
6548   irix5* | nonstopux*)
6549     libsuff= shlibsuff=
6550     ;;
6551   *)
6552     case $LD in # libtool.m4 will add one of these switches to LD
6553     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6554     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6555     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6556     *) libsuff= shlibsuff= libmagic=never-match;;
6557     esac
6558     ;;
6559   esac
6560   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6561   shlibpath_overrides_runpath=no
6562   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6563   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6564   ;;
6565
6566 # No shared lib support for Linux oldld, aout, or coff.
6567 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6568   dynamic_linker=no
6569   ;;
6570
6571 # This must be Linux ELF.
6572 linux-gnu*)
6573   version_type=linux
6574   need_lib_prefix=no
6575   need_version=no
6576   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6577   soname_spec='${libname}${release}.so$major'
6578   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6579   shlibpath_var=LD_LIBRARY_PATH
6580   shlibpath_overrides_runpath=no
6581   # This implies no fast_install, which is unacceptable.
6582   # Some rework will be needed to allow for fast_install
6583   # before this can be enabled.
6584   hardcode_into_libs=yes
6585
6586   case $host_cpu:$lt_cv_cc_64bit_output in
6587   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6588     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6589     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6590     ;;
6591   esac
6592
6593   # We used to test for /lib/ld.so.1 and disable shared libraries on
6594   # powerpc, because MkLinux only supported shared libraries with the
6595   # GNU dynamic linker.  Since this was broken with cross compilers,
6596   # most powerpc-linux boxes support dynamic linking these days and
6597   # people can always --disable-shared, the test was removed, and we
6598   # assume the GNU/Linux dynamic linker is in use.
6599   dynamic_linker='GNU/Linux ld.so'
6600
6601   # Find out which ABI we are using (multilib Linux x86_64 hack).
6602   libsuff=
6603   case "$host_cpu" in
6604   x86_64*)
6605     echo '#line 6605 "configure"' > conftest.$ac_ext
6606     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607   (eval $ac_compile) 2>&5
6608   ac_status=$?
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); }; then
6611       case `/usr/bin/file conftest.$ac_objext` in
6612       *64-bit*)
6613         libsuff=64
6614         ;;
6615       esac
6616     fi
6617     rm -rf conftest*
6618     ;;
6619   *)
6620     ;;
6621   esac
6622   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6623   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6624   ;;
6625
6626 netbsd*)
6627   version_type=sunos
6628   need_lib_prefix=no
6629   need_version=no
6630   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6631     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6632     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6633     dynamic_linker='NetBSD (a.out) ld.so'
6634   else
6635     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6636     soname_spec='${libname}${release}.so$major'
6637     dynamic_linker='NetBSD ld.elf_so'
6638   fi
6639   shlibpath_var=LD_LIBRARY_PATH
6640   shlibpath_overrides_runpath=yes
6641   hardcode_into_libs=yes
6642   ;;
6643
6644 newsos6)
6645   version_type=linux
6646   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6647   shlibpath_var=LD_LIBRARY_PATH
6648   shlibpath_overrides_runpath=yes
6649   ;;
6650
6651 openbsd*)
6652   version_type=sunos
6653   need_lib_prefix=no
6654   need_version=no
6655   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6656     case "$host_os" in
6657     openbsd2.[89] | openbsd2.[89].*)
6658       shlibpath_overrides_runpath=no
6659       ;;
6660     *)
6661       shlibpath_overrides_runpath=yes
6662       ;;
6663     esac
6664   else
6665     shlibpath_overrides_runpath=yes
6666   fi
6667   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6668   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6669   shlibpath_var=LD_LIBRARY_PATH
6670   ;;
6671
6672 os2*)
6673   libname_spec='$name'
6674   need_lib_prefix=no
6675   library_names_spec='$libname.dll $libname.a'
6676   dynamic_linker='OS/2 ld.exe'
6677   shlibpath_var=LIBPATH
6678   ;;
6679
6680 osf3* | osf4* | osf5*)
6681   version_type=osf
6682   need_version=no
6683   soname_spec='${libname}${release}.so$major'
6684   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6685   shlibpath_var=LD_LIBRARY_PATH
6686   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6687   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6688   hardcode_into_libs=yes
6689   ;;
6690
6691 sco3.2v5*)
6692   version_type=osf
6693   soname_spec='${libname}${release}.so$major'
6694   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6695   shlibpath_var=LD_LIBRARY_PATH
6696   ;;
6697
6698 solaris*)
6699   version_type=linux
6700   need_lib_prefix=no
6701   need_version=no
6702   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6703   soname_spec='${libname}${release}.so$major'
6704   shlibpath_var=LD_LIBRARY_PATH
6705   shlibpath_overrides_runpath=yes
6706   hardcode_into_libs=yes
6707   # ldd complains unless libraries are executable
6708   postinstall_cmds='chmod +x $lib'
6709   ;;
6710
6711 sunos4*)
6712   version_type=sunos
6713   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6714   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6715   shlibpath_var=LD_LIBRARY_PATH
6716   shlibpath_overrides_runpath=yes
6717   if test "$with_gnu_ld" = yes; then
6718     need_lib_prefix=no
6719   fi
6720   need_version=yes
6721   ;;
6722
6723 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6724   version_type=linux
6725   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6726   soname_spec='${libname}${release}.so$major'
6727   shlibpath_var=LD_LIBRARY_PATH
6728   case $host_vendor in
6729     sni)
6730       shlibpath_overrides_runpath=no
6731       need_lib_prefix=no
6732       export_dynamic_flag_spec='${wl}-Blargedynsym'
6733       runpath_var=LD_RUN_PATH
6734       ;;
6735     siemens)
6736       need_lib_prefix=no
6737       ;;
6738     motorola)
6739       need_lib_prefix=no
6740       need_version=no
6741       shlibpath_overrides_runpath=no
6742       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6743       ;;
6744   esac
6745   ;;
6746
6747 uts4*)
6748   version_type=linux
6749   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6750   soname_spec='${libname}${release}.so$major'
6751   shlibpath_var=LD_LIBRARY_PATH
6752   ;;
6753
6754 dgux*)
6755   version_type=linux
6756   need_lib_prefix=no
6757   need_version=no
6758   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6759   soname_spec='${libname}${release}.so$major'
6760   shlibpath_var=LD_LIBRARY_PATH
6761   ;;
6762
6763 sysv4*MP*)
6764   if test -d /usr/nec ;then
6765     version_type=linux
6766     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6767     soname_spec='$libname.so.$major'
6768     shlibpath_var=LD_LIBRARY_PATH
6769   fi
6770   ;;
6771
6772 *)
6773   dynamic_linker=no
6774   ;;
6775 esac
6776 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6777 echo "${ECHO_T}$dynamic_linker" >&6
6778 test "$dynamic_linker" = no && can_build_shared=no
6779
6780 # Report the final consequences.
6781 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6782 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6783 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6784 echo "${ECHO_T}$can_build_shared" >&6
6785
6786 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6787 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6788 test "$can_build_shared" = "no" && enable_shared=no
6789
6790 # On AIX, shared libraries and static libraries use the same namespace, and
6791 # are all built from PIC.
6792 case "$host_os" in
6793 aix3*)
6794   test "$enable_shared" = yes && enable_static=no
6795   if test -n "$RANLIB"; then
6796     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6797     postinstall_cmds='$RANLIB $lib'
6798   fi
6799   ;;
6800
6801 aix4*)
6802   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6803     test "$enable_shared" = yes && enable_static=no
6804   fi
6805   ;;
6806 esac
6807 echo "$as_me:$LINENO: result: $enable_shared" >&5
6808 echo "${ECHO_T}$enable_shared" >&6
6809
6810 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6811 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6812 # Make sure either enable_shared or enable_static is yes.
6813 test "$enable_shared" = yes || enable_static=yes
6814 echo "$as_me:$LINENO: result: $enable_static" >&5
6815 echo "${ECHO_T}$enable_static" >&6
6816
6817 if test "$hardcode_action" = relink; then
6818   # Fast installation is not supported
6819   enable_fast_install=no
6820 elif test "$shlibpath_overrides_runpath" = yes ||
6821      test "$enable_shared" = no; then
6822   # Fast installation is not necessary
6823   enable_fast_install=needless
6824 fi
6825
6826 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6827 if test "$GCC" = yes; then
6828   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6829 fi
6830
6831 if test "x$enable_dlopen" != xyes; then
6832   enable_dlopen=unknown
6833   enable_dlopen_self=unknown
6834   enable_dlopen_self_static=unknown
6835 else
6836   lt_cv_dlopen=no
6837   lt_cv_dlopen_libs=
6838
6839   case $host_os in
6840   beos*)
6841     lt_cv_dlopen="load_add_on"
6842     lt_cv_dlopen_libs=
6843     lt_cv_dlopen_self=yes
6844     ;;
6845
6846   cygwin* | mingw* | pw32*)
6847     lt_cv_dlopen="LoadLibrary"
6848     lt_cv_dlopen_libs=
6849    ;;
6850
6851   *)
6852     echo "$as_me:$LINENO: checking for shl_load" >&5
6853 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6854 if test "${ac_cv_func_shl_load+set}" = set; then
6855   echo $ECHO_N "(cached) $ECHO_C" >&6
6856 else
6857   cat >conftest.$ac_ext <<_ACEOF
6858 /* confdefs.h.  */
6859 _ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h.  */
6863 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6865 #define shl_load innocuous_shl_load
6866
6867 /* System header to define __stub macros and hopefully few prototypes,
6868     which can conflict with char shl_load (); below.
6869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6870     <limits.h> exists even on freestanding compilers.  */
6871
6872 #ifdef __STDC__
6873 # include <limits.h>
6874 #else
6875 # include <assert.h>
6876 #endif
6877
6878 #undef shl_load
6879
6880 /* Override any gcc2 internal prototype to avoid an error.  */
6881 #ifdef __cplusplus
6882 extern "C"
6883 {
6884 #endif
6885 /* We use char because int might match the return type of a gcc2
6886    builtin and then its argument prototype would still apply.  */
6887 char shl_load ();
6888 /* The GNU C library defines this for functions which it implements
6889     to always fail with ENOSYS.  Some functions are actually named
6890     something starting with __ and the normal name is an alias.  */
6891 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6892 choke me
6893 #else
6894 char (*f) () = shl_load;
6895 #endif
6896 #ifdef __cplusplus
6897 }
6898 #endif
6899
6900 int
6901 main ()
6902 {
6903 return f != shl_load;
6904   ;
6905   return 0;
6906 }
6907 _ACEOF
6908 rm -f conftest.$ac_objext conftest$ac_exeext
6909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910   (eval $ac_link) 2>conftest.er1
6911   ac_status=$?
6912   grep -v '^ *+' conftest.er1 >conftest.err
6913   rm -f conftest.er1
6914   cat conftest.err >&5
6915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916   (exit $ac_status); } &&
6917          { ac_try='test -z "$ac_c_werror_flag"
6918                          || test ! -s conftest.err'
6919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920   (eval $ac_try) 2>&5
6921   ac_status=$?
6922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); }; } &&
6924          { ac_try='test -s conftest$ac_exeext'
6925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926   (eval $ac_try) 2>&5
6927   ac_status=$?
6928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929   (exit $ac_status); }; }; then
6930   ac_cv_func_shl_load=yes
6931 else
6932   echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6934
6935 ac_cv_func_shl_load=no
6936 fi
6937 rm -f conftest.err conftest.$ac_objext \
6938       conftest$ac_exeext conftest.$ac_ext
6939 fi
6940 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6941 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6942 if test $ac_cv_func_shl_load = yes; then
6943   lt_cv_dlopen="shl_load"
6944 else
6945   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6946 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6947 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6948   echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950   ac_check_lib_save_LIBS=$LIBS
6951 LIBS="-ldld  $LIBS"
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h.  */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h.  */
6958
6959 /* Override any gcc2 internal prototype to avoid an error.  */
6960 #ifdef __cplusplus
6961 extern "C"
6962 #endif
6963 /* We use char because int might match the return type of a gcc2
6964    builtin and then its argument prototype would still apply.  */
6965 char shl_load ();
6966 int
6967 main ()
6968 {
6969 shl_load ();
6970   ;
6971   return 0;
6972 }
6973 _ACEOF
6974 rm -f conftest.$ac_objext conftest$ac_exeext
6975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6976   (eval $ac_link) 2>conftest.er1
6977   ac_status=$?
6978   grep -v '^ *+' conftest.er1 >conftest.err
6979   rm -f conftest.er1
6980   cat conftest.err >&5
6981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982   (exit $ac_status); } &&
6983          { ac_try='test -z "$ac_c_werror_flag"
6984                          || test ! -s conftest.err'
6985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986   (eval $ac_try) 2>&5
6987   ac_status=$?
6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); }; } &&
6990          { ac_try='test -s conftest$ac_exeext'
6991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992   (eval $ac_try) 2>&5
6993   ac_status=$?
6994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995   (exit $ac_status); }; }; then
6996   ac_cv_lib_dld_shl_load=yes
6997 else
6998   echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7000
7001 ac_cv_lib_dld_shl_load=no
7002 fi
7003 rm -f conftest.err conftest.$ac_objext \
7004       conftest$ac_exeext conftest.$ac_ext
7005 LIBS=$ac_check_lib_save_LIBS
7006 fi
7007 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7008 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7009 if test $ac_cv_lib_dld_shl_load = yes; then
7010   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7011 else
7012   echo "$as_me:$LINENO: checking for dlopen" >&5
7013 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7014 if test "${ac_cv_func_dlopen+set}" = set; then
7015   echo $ECHO_N "(cached) $ECHO_C" >&6
7016 else
7017   cat >conftest.$ac_ext <<_ACEOF
7018 /* confdefs.h.  */
7019 _ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h.  */
7023 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7025 #define dlopen innocuous_dlopen
7026
7027 /* System header to define __stub macros and hopefully few prototypes,
7028     which can conflict with char dlopen (); below.
7029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7030     <limits.h> exists even on freestanding compilers.  */
7031
7032 #ifdef __STDC__
7033 # include <limits.h>
7034 #else
7035 # include <assert.h>
7036 #endif
7037
7038 #undef dlopen
7039
7040 /* Override any gcc2 internal prototype to avoid an error.  */
7041 #ifdef __cplusplus
7042 extern "C"
7043 {
7044 #endif
7045 /* We use char because int might match the return type of a gcc2
7046    builtin and then its argument prototype would still apply.  */
7047 char dlopen ();
7048 /* The GNU C library defines this for functions which it implements
7049     to always fail with ENOSYS.  Some functions are actually named
7050     something starting with __ and the normal name is an alias.  */
7051 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7052 choke me
7053 #else
7054 char (*f) () = dlopen;
7055 #endif
7056 #ifdef __cplusplus
7057 }
7058 #endif
7059
7060 int
7061 main ()
7062 {
7063 return f != dlopen;
7064   ;
7065   return 0;
7066 }
7067 _ACEOF
7068 rm -f conftest.$ac_objext conftest$ac_exeext
7069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7070   (eval $ac_link) 2>conftest.er1
7071   ac_status=$?
7072   grep -v '^ *+' conftest.er1 >conftest.err
7073   rm -f conftest.er1
7074   cat conftest.err >&5
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); } &&
7077          { ac_try='test -z "$ac_c_werror_flag"
7078                          || test ! -s conftest.err'
7079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080   (eval $ac_try) 2>&5
7081   ac_status=$?
7082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083   (exit $ac_status); }; } &&
7084          { ac_try='test -s conftest$ac_exeext'
7085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086   (eval $ac_try) 2>&5
7087   ac_status=$?
7088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); }; }; then
7090   ac_cv_func_dlopen=yes
7091 else
7092   echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.$ac_ext >&5
7094
7095 ac_cv_func_dlopen=no
7096 fi
7097 rm -f conftest.err conftest.$ac_objext \
7098       conftest$ac_exeext conftest.$ac_ext
7099 fi
7100 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7101 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7102 if test $ac_cv_func_dlopen = yes; then
7103   lt_cv_dlopen="dlopen"
7104 else
7105   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7106 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7107 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110   ac_check_lib_save_LIBS=$LIBS
7111 LIBS="-ldl  $LIBS"
7112 cat >conftest.$ac_ext <<_ACEOF
7113 /* confdefs.h.  */
7114 _ACEOF
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h.  */
7118
7119 /* Override any gcc2 internal prototype to avoid an error.  */
7120 #ifdef __cplusplus
7121 extern "C"
7122 #endif
7123 /* We use char because int might match the return type of a gcc2
7124    builtin and then its argument prototype would still apply.  */
7125 char dlopen ();
7126 int
7127 main ()
7128 {
7129 dlopen ();
7130   ;
7131   return 0;
7132 }
7133 _ACEOF
7134 rm -f conftest.$ac_objext conftest$ac_exeext
7135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7136   (eval $ac_link) 2>conftest.er1
7137   ac_status=$?
7138   grep -v '^ *+' conftest.er1 >conftest.err
7139   rm -f conftest.er1
7140   cat conftest.err >&5
7141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142   (exit $ac_status); } &&
7143          { ac_try='test -z "$ac_c_werror_flag"
7144                          || test ! -s conftest.err'
7145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146   (eval $ac_try) 2>&5
7147   ac_status=$?
7148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149   (exit $ac_status); }; } &&
7150          { ac_try='test -s conftest$ac_exeext'
7151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152   (eval $ac_try) 2>&5
7153   ac_status=$?
7154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155   (exit $ac_status); }; }; then
7156   ac_cv_lib_dl_dlopen=yes
7157 else
7158   echo "$as_me: failed program was:" >&5
7159 sed 's/^/| /' conftest.$ac_ext >&5
7160
7161 ac_cv_lib_dl_dlopen=no
7162 fi
7163 rm -f conftest.err conftest.$ac_objext \
7164       conftest$ac_exeext conftest.$ac_ext
7165 LIBS=$ac_check_lib_save_LIBS
7166 fi
7167 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7168 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7169 if test $ac_cv_lib_dl_dlopen = yes; then
7170   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7171 else
7172   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7173 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7174 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177   ac_check_lib_save_LIBS=$LIBS
7178 LIBS="-lsvld  $LIBS"
7179 cat >conftest.$ac_ext <<_ACEOF
7180 /* confdefs.h.  */
7181 _ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h.  */
7185
7186 /* Override any gcc2 internal prototype to avoid an error.  */
7187 #ifdef __cplusplus
7188 extern "C"
7189 #endif
7190 /* We use char because int might match the return type of a gcc2
7191    builtin and then its argument prototype would still apply.  */
7192 char dlopen ();
7193 int
7194 main ()
7195 {
7196 dlopen ();
7197   ;
7198   return 0;
7199 }
7200 _ACEOF
7201 rm -f conftest.$ac_objext conftest$ac_exeext
7202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7203   (eval $ac_link) 2>conftest.er1
7204   ac_status=$?
7205   grep -v '^ *+' conftest.er1 >conftest.err
7206   rm -f conftest.er1
7207   cat conftest.err >&5
7208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209   (exit $ac_status); } &&
7210          { ac_try='test -z "$ac_c_werror_flag"
7211                          || test ! -s conftest.err'
7212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213   (eval $ac_try) 2>&5
7214   ac_status=$?
7215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); }; } &&
7217          { ac_try='test -s conftest$ac_exeext'
7218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219   (eval $ac_try) 2>&5
7220   ac_status=$?
7221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   (exit $ac_status); }; }; then
7223   ac_cv_lib_svld_dlopen=yes
7224 else
7225   echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7227
7228 ac_cv_lib_svld_dlopen=no
7229 fi
7230 rm -f conftest.err conftest.$ac_objext \
7231       conftest$ac_exeext conftest.$ac_ext
7232 LIBS=$ac_check_lib_save_LIBS
7233 fi
7234 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7235 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7236 if test $ac_cv_lib_svld_dlopen = yes; then
7237   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7238 else
7239   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7240 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7241 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7242   echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244   ac_check_lib_save_LIBS=$LIBS
7245 LIBS="-ldld  $LIBS"
7246 cat >conftest.$ac_ext <<_ACEOF
7247 /* confdefs.h.  */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h.  */
7252
7253 /* Override any gcc2 internal prototype to avoid an error.  */
7254 #ifdef __cplusplus
7255 extern "C"
7256 #endif
7257 /* We use char because int might match the return type of a gcc2
7258    builtin and then its argument prototype would still apply.  */
7259 char dld_link ();
7260 int
7261 main ()
7262 {
7263 dld_link ();
7264   ;
7265   return 0;
7266 }
7267 _ACEOF
7268 rm -f conftest.$ac_objext conftest$ac_exeext
7269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7270   (eval $ac_link) 2>conftest.er1
7271   ac_status=$?
7272   grep -v '^ *+' conftest.er1 >conftest.err
7273   rm -f conftest.er1
7274   cat conftest.err >&5
7275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); } &&
7277          { ac_try='test -z "$ac_c_werror_flag"
7278                          || test ! -s conftest.err'
7279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280   (eval $ac_try) 2>&5
7281   ac_status=$?
7282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283   (exit $ac_status); }; } &&
7284          { ac_try='test -s conftest$ac_exeext'
7285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286   (eval $ac_try) 2>&5
7287   ac_status=$?
7288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289   (exit $ac_status); }; }; then
7290   ac_cv_lib_dld_dld_link=yes
7291 else
7292   echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7294
7295 ac_cv_lib_dld_dld_link=no
7296 fi
7297 rm -f conftest.err conftest.$ac_objext \
7298       conftest$ac_exeext conftest.$ac_ext
7299 LIBS=$ac_check_lib_save_LIBS
7300 fi
7301 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7302 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7303 if test $ac_cv_lib_dld_dld_link = yes; then
7304   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7305 fi
7306
7307
7308 fi
7309
7310
7311 fi
7312
7313
7314 fi
7315
7316
7317 fi
7318
7319
7320 fi
7321
7322     ;;
7323   esac
7324
7325   if test "x$lt_cv_dlopen" != xno; then
7326     enable_dlopen=yes
7327   else
7328     enable_dlopen=no
7329   fi
7330
7331   case $lt_cv_dlopen in
7332   dlopen)
7333     save_CPPFLAGS="$CPPFLAGS"
7334         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7335
7336     save_LDFLAGS="$LDFLAGS"
7337     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7338
7339     save_LIBS="$LIBS"
7340     LIBS="$lt_cv_dlopen_libs $LIBS"
7341
7342     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7343 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7344 if test "${lt_cv_dlopen_self+set}" = set; then
7345   echo $ECHO_N "(cached) $ECHO_C" >&6
7346 else
7347           if test "$cross_compiling" = yes; then :
7348   lt_cv_dlopen_self=cross
7349 else
7350     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7351   lt_status=$lt_dlunknown
7352   cat > conftest.$ac_ext <<EOF
7353 #line 7353 "configure"
7354 #include "confdefs.h"
7355
7356 #if HAVE_DLFCN_H
7357 #include <dlfcn.h>
7358 #endif
7359
7360 #include <stdio.h>
7361
7362 #ifdef RTLD_GLOBAL
7363 #  define LT_DLGLOBAL           RTLD_GLOBAL
7364 #else
7365 #  ifdef DL_GLOBAL
7366 #    define LT_DLGLOBAL         DL_GLOBAL
7367 #  else
7368 #    define LT_DLGLOBAL         0
7369 #  endif
7370 #endif
7371
7372 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7373    find out it does not work in some platform. */
7374 #ifndef LT_DLLAZY_OR_NOW
7375 #  ifdef RTLD_LAZY
7376 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7377 #  else
7378 #    ifdef DL_LAZY
7379 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7380 #    else
7381 #      ifdef RTLD_NOW
7382 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7383 #      else
7384 #        ifdef DL_NOW
7385 #          define LT_DLLAZY_OR_NOW      DL_NOW
7386 #        else
7387 #          define LT_DLLAZY_OR_NOW      0
7388 #        endif
7389 #      endif
7390 #    endif
7391 #  endif
7392 #endif
7393
7394 #ifdef __cplusplus
7395 extern "C" void exit (int);
7396 #endif
7397
7398 void fnord() { int i=42;}
7399 int main ()
7400 {
7401   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7402   int status = $lt_dlunknown;
7403
7404   if (self)
7405     {
7406       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7407       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7408       /* dlclose (self); */
7409     }
7410
7411     exit (status);
7412 }
7413 EOF
7414   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7415   (eval $ac_link) 2>&5
7416   ac_status=$?
7417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7419     (./conftest; exit; ) 2>/dev/null
7420     lt_status=$?
7421     case x$lt_status in
7422       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7423       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7424       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7425     esac
7426   else :
7427     # compilation failed
7428     lt_cv_dlopen_self=no
7429   fi
7430 fi
7431 rm -fr conftest*
7432
7433
7434 fi
7435 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7436 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7437
7438     if test "x$lt_cv_dlopen_self" = xyes; then
7439       LDFLAGS="$LDFLAGS $link_static_flag"
7440       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7441 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7442 if test "${lt_cv_dlopen_self_static+set}" = set; then
7443   echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445           if test "$cross_compiling" = yes; then :
7446   lt_cv_dlopen_self_static=cross
7447 else
7448     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7449   lt_status=$lt_dlunknown
7450   cat > conftest.$ac_ext <<EOF
7451 #line 7451 "configure"
7452 #include "confdefs.h"
7453
7454 #if HAVE_DLFCN_H
7455 #include <dlfcn.h>
7456 #endif
7457
7458 #include <stdio.h>
7459
7460 #ifdef RTLD_GLOBAL
7461 #  define LT_DLGLOBAL           RTLD_GLOBAL
7462 #else
7463 #  ifdef DL_GLOBAL
7464 #    define LT_DLGLOBAL         DL_GLOBAL
7465 #  else
7466 #    define LT_DLGLOBAL         0
7467 #  endif
7468 #endif
7469
7470 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7471    find out it does not work in some platform. */
7472 #ifndef LT_DLLAZY_OR_NOW
7473 #  ifdef RTLD_LAZY
7474 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7475 #  else
7476 #    ifdef DL_LAZY
7477 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7478 #    else
7479 #      ifdef RTLD_NOW
7480 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7481 #      else
7482 #        ifdef DL_NOW
7483 #          define LT_DLLAZY_OR_NOW      DL_NOW
7484 #        else
7485 #          define LT_DLLAZY_OR_NOW      0
7486 #        endif
7487 #      endif
7488 #    endif
7489 #  endif
7490 #endif
7491
7492 #ifdef __cplusplus
7493 extern "C" void exit (int);
7494 #endif
7495
7496 void fnord() { int i=42;}
7497 int main ()
7498 {
7499   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7500   int status = $lt_dlunknown;
7501
7502   if (self)
7503     {
7504       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7505       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7506       /* dlclose (self); */
7507     }
7508
7509     exit (status);
7510 }
7511 EOF
7512   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7513   (eval $ac_link) 2>&5
7514   ac_status=$?
7515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7517     (./conftest; exit; ) 2>/dev/null
7518     lt_status=$?
7519     case x$lt_status in
7520       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7521       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7522       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7523     esac
7524   else :
7525     # compilation failed
7526     lt_cv_dlopen_self_static=no
7527   fi
7528 fi
7529 rm -fr conftest*
7530
7531
7532 fi
7533 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7534 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7535     fi
7536
7537     CPPFLAGS="$save_CPPFLAGS"
7538     LDFLAGS="$save_LDFLAGS"
7539     LIBS="$save_LIBS"
7540     ;;
7541   esac
7542
7543   case $lt_cv_dlopen_self in
7544   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7545   *) enable_dlopen_self=unknown ;;
7546   esac
7547
7548   case $lt_cv_dlopen_self_static in
7549   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7550   *) enable_dlopen_self_static=unknown ;;
7551   esac
7552 fi
7553
7554
7555 if test "$enable_shared" = yes && test "$GCC" = yes; then
7556   case $archive_cmds in
7557   *'~'*)
7558     # FIXME: we may have to deal with multi-command sequences.
7559     ;;
7560   '$CC '*)
7561     # Test whether the compiler implicitly links with -lc since on some
7562     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7563     # to ld, don't add -lc before -lgcc.
7564     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7565 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7566     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7567   echo $ECHO_N "(cached) $ECHO_C" >&6
7568 else
7569   $rm conftest*
7570     echo 'static int dummy;' > conftest.$ac_ext
7571
7572     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7573   (eval $ac_compile) 2>&5
7574   ac_status=$?
7575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); }; then
7577       soname=conftest
7578       lib=conftest
7579       libobjs=conftest.$ac_objext
7580       deplibs=
7581       wl=$lt_cv_prog_cc_wl
7582       compiler_flags=-v
7583       linker_flags=-v
7584       verstring=
7585       output_objdir=.
7586       libname=conftest
7587       save_allow_undefined_flag=$allow_undefined_flag
7588       allow_undefined_flag=
7589       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7590   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7591   ac_status=$?
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); }
7594       then
7595         lt_cv_archive_cmds_need_lc=no
7596       else
7597         lt_cv_archive_cmds_need_lc=yes
7598       fi
7599       allow_undefined_flag=$save_allow_undefined_flag
7600     else
7601       cat conftest.err 1>&5
7602     fi
7603 fi
7604
7605     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7606 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7607     ;;
7608   esac
7609 fi
7610 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7611
7612 # The second clause should only fire when bootstrapping the
7613 # libtool distribution, otherwise you forgot to ship ltmain.sh
7614 # with your package, and you will get complaints that there are
7615 # no rules to generate ltmain.sh.
7616 if test -f "$ltmain"; then
7617   :
7618 else
7619   # If there is no Makefile yet, we rely on a make rule to execute
7620   # `config.status --recheck' to rerun these tests and create the
7621   # libtool script then.
7622   test -f Makefile && make "$ltmain"
7623 fi
7624
7625 if test -f "$ltmain"; then
7626   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7627   $rm -f "${ofile}T"
7628
7629   echo creating $ofile
7630
7631   # Now quote all the things that may contain metacharacters while being
7632   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7633   # variables and quote the copies for generation of the libtool script.
7634   for var in echo old_CC old_CFLAGS SED \
7635     AR AR_FLAGS CC LD LN_S NM SHELL \
7636     reload_flag reload_cmds wl \
7637     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7638     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7639     library_names_spec soname_spec \
7640     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7641     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7642     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7643     old_striplib striplib file_magic_cmd export_symbols_cmds \
7644     deplibs_check_method allow_undefined_flag no_undefined_flag \
7645     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7646     global_symbol_to_c_name_address \
7647     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7648     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7649     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7650
7651     case $var in
7652     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7653     old_postinstall_cmds | old_postuninstall_cmds | \
7654     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7655     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7656     postinstall_cmds | postuninstall_cmds | \
7657     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7658       # Double-quote double-evaled strings.
7659       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7660       ;;
7661     *)
7662       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7663       ;;
7664     esac
7665   done
7666
7667   cat <<__EOF__ > "${ofile}T"
7668 #! $SHELL
7669
7670 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7671 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7672 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7673 #
7674 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7675 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7676 #
7677 # This program is free software; you can redistribute it and/or modify
7678 # it under the terms of the GNU General Public License as published by
7679 # the Free Software Foundation; either version 2 of the License, or
7680 # (at your option) any later version.
7681 #
7682 # This program is distributed in the hope that it will be useful, but
7683 # WITHOUT ANY WARRANTY; without even the implied warranty of
7684 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7685 # General Public License for more details.
7686 #
7687 # You should have received a copy of the GNU General Public License
7688 # along with this program; if not, write to the Free Software
7689 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7690 #
7691 # As a special exception to the GNU General Public License, if you
7692 # distribute this file as part of a program that contains a
7693 # configuration script generated by Autoconf, you may include it under
7694 # the same distribution terms that you use for the rest of that program.
7695
7696 # A sed that does not truncate output.
7697 SED=$lt_SED
7698
7699 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7700 Xsed="${SED} -e s/^X//"
7701
7702 # The HP-UX ksh and POSIX shell print the target directory to stdout
7703 # if CDPATH is set.
7704 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7705
7706 # ### BEGIN LIBTOOL CONFIG
7707
7708 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7709
7710 # Shell to use when invoking shell scripts.
7711 SHELL=$lt_SHELL
7712
7713 # Whether or not to build shared libraries.
7714 build_libtool_libs=$enable_shared
7715
7716 # Whether or not to build static libraries.
7717 build_old_libs=$enable_static
7718
7719 # Whether or not to add -lc for building shared libraries.
7720 build_libtool_need_lc=$need_lc
7721
7722 # Whether or not to optimize for fast installation.
7723 fast_install=$enable_fast_install
7724
7725 # The host system.
7726 host_alias=$host_alias
7727 host=$host
7728
7729 # An echo program that does not interpret backslashes.
7730 echo=$lt_echo
7731
7732 # The archiver.
7733 AR=$lt_AR
7734 AR_FLAGS=$lt_AR_FLAGS
7735
7736 # The default C compiler.
7737 CC=$lt_CC
7738
7739 # Is the compiler the GNU C compiler?
7740 with_gcc=$GCC
7741
7742 # The linker used to build libraries.
7743 LD=$lt_LD
7744
7745 # Whether we need hard or soft links.
7746 LN_S=$lt_LN_S
7747
7748 # A BSD-compatible nm program.
7749 NM=$lt_NM
7750
7751 # A symbol stripping program
7752 STRIP=$STRIP
7753
7754 # Used to examine libraries when file_magic_cmd begins "file"
7755 MAGIC_CMD=$MAGIC_CMD
7756
7757 # Used on cygwin: DLL creation program.
7758 DLLTOOL="$DLLTOOL"
7759
7760 # Used on cygwin: object dumper.
7761 OBJDUMP="$OBJDUMP"
7762
7763 # Used on cygwin: assembler.
7764 AS="$AS"
7765
7766 # The name of the directory that contains temporary libtool files.
7767 objdir=$objdir
7768
7769 # How to create reloadable object files.
7770 reload_flag=$lt_reload_flag
7771 reload_cmds=$lt_reload_cmds
7772
7773 # How to pass a linker flag through the compiler.
7774 wl=$lt_wl
7775
7776 # Object file suffix (normally "o").
7777 objext="$ac_objext"
7778
7779 # Old archive suffix (normally "a").
7780 libext="$libext"
7781
7782 # Executable file suffix (normally "").
7783 exeext="$exeext"
7784
7785 # Additional compiler flags for building library objects.
7786 pic_flag=$lt_pic_flag
7787 pic_mode=$pic_mode
7788
7789 # Does compiler simultaneously support -c and -o options?
7790 compiler_c_o=$lt_compiler_c_o
7791
7792 # Can we write directly to a .lo ?
7793 compiler_o_lo=$lt_compiler_o_lo
7794
7795 # Must we lock files when doing compilation ?
7796 need_locks=$lt_need_locks
7797
7798 # Do we need the lib prefix for modules?
7799 need_lib_prefix=$need_lib_prefix
7800
7801 # Do we need a version for libraries?
7802 need_version=$need_version
7803
7804 # Whether dlopen is supported.
7805 dlopen_support=$enable_dlopen
7806
7807 # Whether dlopen of programs is supported.
7808 dlopen_self=$enable_dlopen_self
7809
7810 # Whether dlopen of statically linked programs is supported.
7811 dlopen_self_static=$enable_dlopen_self_static
7812
7813 # Compiler flag to prevent dynamic linking.
7814 link_static_flag=$lt_link_static_flag
7815
7816 # Compiler flag to turn off builtin functions.
7817 no_builtin_flag=$lt_no_builtin_flag
7818
7819 # Compiler flag to allow reflexive dlopens.
7820 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7821
7822 # Compiler flag to generate shared objects directly from archives.
7823 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7824
7825 # Compiler flag to generate thread-safe objects.
7826 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7827
7828 # Library versioning type.
7829 version_type=$version_type
7830
7831 # Format of library name prefix.
7832 libname_spec=$lt_libname_spec
7833
7834 # List of archive names.  First name is the real one, the rest are links.
7835 # The last name is the one that the linker finds with -lNAME.
7836 library_names_spec=$lt_library_names_spec
7837
7838 # The coded name of the library, if different from the real name.
7839 soname_spec=$lt_soname_spec
7840
7841 # Commands used to build and install an old-style archive.
7842 RANLIB=$lt_RANLIB
7843 old_archive_cmds=$lt_old_archive_cmds
7844 old_postinstall_cmds=$lt_old_postinstall_cmds
7845 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7846
7847 # Create an old-style archive from a shared archive.
7848 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7849
7850 # Create a temporary old-style archive to link instead of a shared archive.
7851 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7852
7853 # Commands used to build and install a shared archive.
7854 archive_cmds=$lt_archive_cmds
7855 archive_expsym_cmds=$lt_archive_expsym_cmds
7856 postinstall_cmds=$lt_postinstall_cmds
7857 postuninstall_cmds=$lt_postuninstall_cmds
7858
7859 # Commands to strip libraries.
7860 old_striplib=$lt_old_striplib
7861 striplib=$lt_striplib
7862
7863 # Method to check whether dependent libraries are shared objects.
7864 deplibs_check_method=$lt_deplibs_check_method
7865
7866 # Command to use when deplibs_check_method == file_magic.
7867 file_magic_cmd=$lt_file_magic_cmd
7868
7869 # Flag that allows shared libraries with undefined symbols to be built.
7870 allow_undefined_flag=$lt_allow_undefined_flag
7871
7872 # Flag that forces no undefined symbols.
7873 no_undefined_flag=$lt_no_undefined_flag
7874
7875 # Commands used to finish a libtool library installation in a directory.
7876 finish_cmds=$lt_finish_cmds
7877
7878 # Same as above, but a single script fragment to be evaled but not shown.
7879 finish_eval=$lt_finish_eval
7880
7881 # Take the output of nm and produce a listing of raw symbols and C names.
7882 global_symbol_pipe=$lt_global_symbol_pipe
7883
7884 # Transform the output of nm in a proper C declaration
7885 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7886
7887 # Transform the output of nm in a C name address pair
7888 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7889
7890 # This is the shared library runtime path variable.
7891 runpath_var=$runpath_var
7892
7893 # This is the shared library path variable.
7894 shlibpath_var=$shlibpath_var
7895
7896 # Is shlibpath searched before the hard-coded library search path?
7897 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7898
7899 # How to hardcode a shared library path into an executable.
7900 hardcode_action=$hardcode_action
7901
7902 # Whether we should hardcode library paths into libraries.
7903 hardcode_into_libs=$hardcode_into_libs
7904
7905 # Flag to hardcode \$libdir into a binary during linking.
7906 # This must work even if \$libdir does not exist.
7907 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7908
7909 # Whether we need a single -rpath flag with a separated argument.
7910 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7911
7912 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7913 # resulting binary.
7914 hardcode_direct=$hardcode_direct
7915
7916 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7917 # resulting binary.
7918 hardcode_minus_L=$hardcode_minus_L
7919
7920 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7921 # the resulting binary.
7922 hardcode_shlibpath_var=$hardcode_shlibpath_var
7923
7924 # Variables whose values should be saved in libtool wrapper scripts and
7925 # restored at relink time.
7926 variables_saved_for_relink="$variables_saved_for_relink"
7927
7928 # Whether libtool must link a program against all its dependency libraries.
7929 link_all_deplibs=$link_all_deplibs
7930
7931 # Compile-time system search path for libraries
7932 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7933
7934 # Run-time system search path for libraries
7935 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7936
7937 # Fix the shell variable \$srcfile for the compiler.
7938 fix_srcfile_path="$fix_srcfile_path"
7939
7940 # Set to yes if exported symbols are required.
7941 always_export_symbols=$always_export_symbols
7942
7943 # The commands to list exported symbols.
7944 export_symbols_cmds=$lt_export_symbols_cmds
7945
7946 # The commands to extract the exported symbol list from a shared archive.
7947 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7948
7949 # Symbols that should not be listed in the preloaded symbols.
7950 exclude_expsyms=$lt_exclude_expsyms
7951
7952 # Symbols that must always be exported.
7953 include_expsyms=$lt_include_expsyms
7954
7955 # ### END LIBTOOL CONFIG
7956
7957 __EOF__
7958
7959   case $host_os in
7960   aix3*)
7961     cat <<\EOF >> "${ofile}T"
7962
7963 # AIX sometimes has problems with the GCC collect2 program.  For some
7964 # reason, if we set the COLLECT_NAMES environment variable, the problems
7965 # vanish in a puff of smoke.
7966 if test "X${COLLECT_NAMES+set}" != Xset; then
7967   COLLECT_NAMES=
7968   export COLLECT_NAMES
7969 fi
7970 EOF
7971     ;;
7972   esac
7973
7974   case $host_os in
7975   cygwin* | mingw* | pw32* | os2*)
7976     cat <<'EOF' >> "${ofile}T"
7977       # This is a source program that is used to create dlls on Windows
7978       # Don't remove nor modify the starting and closing comments
7979 # /* ltdll.c starts here */
7980 # #define WIN32_LEAN_AND_MEAN
7981 # #include <windows.h>
7982 # #undef WIN32_LEAN_AND_MEAN
7983 # #include <stdio.h>
7984 #
7985 # #ifndef __CYGWIN__
7986 # #  ifdef __CYGWIN32__
7987 # #    define __CYGWIN__ __CYGWIN32__
7988 # #  endif
7989 # #endif
7990 #
7991 # #ifdef __cplusplus
7992 # extern "C" {
7993 # #endif
7994 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7995 # #ifdef __cplusplus
7996 # }
7997 # #endif
7998 #
7999 # #ifdef __CYGWIN__
8000 # #include <cygwin/cygwin_dll.h>
8001 # DECLARE_CYGWIN_DLL( DllMain );
8002 # #endif
8003 # HINSTANCE __hDllInstance_base;
8004 #
8005 # BOOL APIENTRY
8006 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8007 # {
8008 #   __hDllInstance_base = hInst;
8009 #   return TRUE;
8010 # }
8011 # /* ltdll.c ends here */
8012         # This is a source program that is used to create import libraries
8013         # on Windows for dlls which lack them. Don't remove nor modify the
8014         # starting and closing comments
8015 # /* impgen.c starts here */
8016 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8017 #
8018 #  This file is part of GNU libtool.
8019 #
8020 #  This program is free software; you can redistribute it and/or modify
8021 #  it under the terms of the GNU General Public License as published by
8022 #  the Free Software Foundation; either version 2 of the License, or
8023 #  (at your option) any later version.
8024 #
8025 #  This program is distributed in the hope that it will be useful,
8026 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8027 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8028 #  GNU General Public License for more details.
8029 #
8030 #  You should have received a copy of the GNU General Public License
8031 #  along with this program; if not, write to the Free Software
8032 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8033 #  */
8034 #
8035 # #include <stdio.h>            /* for printf() */
8036 # #include <unistd.h>           /* for open(), lseek(), read() */
8037 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8038 # #include <string.h>           /* for strdup() */
8039 #
8040 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8041 # #ifndef O_BINARY
8042 # #define O_BINARY 0
8043 # #endif
8044 #
8045 # static unsigned int
8046 # pe_get16 (fd, offset)
8047 #      int fd;
8048 #      int offset;
8049 # {
8050 #   unsigned char b[2];
8051 #   lseek (fd, offset, SEEK_SET);
8052 #   read (fd, b, 2);
8053 #   return b[0] + (b[1]<<8);
8054 # }
8055 #
8056 # static unsigned int
8057 # pe_get32 (fd, offset)
8058 #     int fd;
8059 #     int offset;
8060 # {
8061 #   unsigned char b[4];
8062 #   lseek (fd, offset, SEEK_SET);
8063 #   read (fd, b, 4);
8064 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8065 # }
8066 #
8067 # static unsigned int
8068 # pe_as32 (ptr)
8069 #      void *ptr;
8070 # {
8071 #   unsigned char *b = ptr;
8072 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8073 # }
8074 #
8075 # int
8076 # main (argc, argv)
8077 #     int argc;
8078 #     char *argv[];
8079 # {
8080 #     int dll;
8081 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8082 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8083 #     unsigned long name_rvas, nexp;
8084 #     unsigned char *expdata, *erva;
8085 #     char *filename, *dll_name;
8086 #
8087 #     filename = argv[1];
8088 #
8089 #     dll = open(filename, O_RDONLY|O_BINARY);
8090 #     if (dll < 1)
8091 #       return 1;
8092 #
8093 #     dll_name = filename;
8094 #
8095 #     for (i=0; filename[i]; i++)
8096 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8097 #           dll_name = filename + i +1;
8098 #
8099 #     pe_header_offset = pe_get32 (dll, 0x3c);
8100 #     opthdr_ofs = pe_header_offset + 4 + 20;
8101 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8102 #
8103 #     if (num_entries < 1) /* no exports */
8104 #       return 1;
8105 #
8106 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8107 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8108 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8109 #     secptr = (pe_header_offset + 4 + 20 +
8110 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8111 #
8112 #     expptr = 0;
8113 #     for (i = 0; i < nsections; i++)
8114 #     {
8115 #       char sname[8];
8116 #       unsigned long secptr1 = secptr + 40 * i;
8117 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8118 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8119 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8120 #       lseek(dll, secptr1, SEEK_SET);
8121 #       read(dll, sname, 8);
8122 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8123 #       {
8124 #           expptr = fptr + (export_rva - vaddr);
8125 #           if (export_rva + export_size > vaddr + vsize)
8126 #               export_size = vsize - (export_rva - vaddr);
8127 #           break;
8128 #       }
8129 #     }
8130 #
8131 #     expdata = (unsigned char*)malloc(export_size);
8132 #     lseek (dll, expptr, SEEK_SET);
8133 #     read (dll, expdata, export_size);
8134 #     erva = expdata - export_rva;
8135 #
8136 #     nexp = pe_as32 (expdata+24);
8137 #     name_rvas = pe_as32 (expdata+32);
8138 #
8139 #     printf ("EXPORTS\n");
8140 #     for (i = 0; i<nexp; i++)
8141 #     {
8142 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8143 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8144 #     }
8145 #
8146 #     return 0;
8147 # }
8148 # /* impgen.c ends here */
8149
8150 EOF
8151     ;;
8152   esac
8153
8154   # We use sed instead of cat because bash on DJGPP gets confused if
8155   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8156   # text mode, it properly converts lines to CR/LF.  This bash problem
8157   # is reportedly fixed, but why not run on old versions too?
8158   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8159
8160   mv -f "${ofile}T" "$ofile" || \
8161     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8162   chmod +x "$ofile"
8163 fi
8164
8165
8166
8167
8168
8169 # This can be used to rebuild libtool when needed
8170 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8171
8172 # Always use our own libtool.
8173 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8174
8175 # Prevent multiple expansion
8176
8177
8178  for ac_prog in gzip uncompress compress
8179 do
8180   # Extract the first word of "$ac_prog", so it can be a program name with args.
8181 set dummy $ac_prog; ac_word=$2
8182 echo "$as_me:$LINENO: checking for $ac_word" >&5
8183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8184 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8185   echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187   if test -n "$UNCOMPRESS"; then
8188   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8189 else
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 for as_dir in $PATH
8192 do
8193   IFS=$as_save_IFS
8194   test -z "$as_dir" && as_dir=.
8195   for ac_exec_ext in '' $ac_executable_extensions; do
8196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8197     ac_cv_prog_UNCOMPRESS="$ac_prog"
8198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8199     break 2
8200   fi
8201 done
8202 done
8203
8204 fi
8205 fi
8206 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8207 if test -n "$UNCOMPRESS"; then
8208   echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8209 echo "${ECHO_T}$UNCOMPRESS" >&6
8210 else
8211   echo "$as_me:$LINENO: result: no" >&5
8212 echo "${ECHO_T}no" >&6
8213 fi
8214
8215   test -n "$UNCOMPRESS" && break
8216 done
8217
8218
8219
8220
8221
8222
8223
8224
8225 echo "$as_me:$LINENO: checking for target system" >&5
8226 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8227 CYGWIN=
8228 MINGW=
8229 case $host_os in
8230     *cygwin* ) CYGWIN=yes;;
8231     *mingw* ) MINGW=yes;;
8232 esac
8233
8234 AR=ar
8235 if test "x$MINGW" = "xyes"; then
8236     #fix for the debian distribution of mingw
8237     if test -x "/usr/i586-mingw32msvc/bin/ar";then
8238         AR="/usr/i586-mingw32msvc/bin/ar"
8239     fi
8240     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8241         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8242     fi
8243     #fix for the gentoo distribution of mingw
8244     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8245         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8246     fi
8247     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8248         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8249     fi
8250     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8251         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8252     fi
8253 fi
8254
8255
8256
8257 if test "x${CYGWIN}" = "xyes"; then
8258     cat >>confdefs.h <<_ACEOF
8259 #define CYGWIN 1
8260 _ACEOF
8261
8262     echo "$as_me:$LINENO: result: cygwin" >&5
8263 echo "${ECHO_T}cygwin" >&6
8264 else
8265     if test "x${MINGW}" = "xyes"; then
8266         cat >>confdefs.h <<_ACEOF
8267 #define MINGW 1
8268 _ACEOF
8269
8270         WIN32=1
8271         cat >>confdefs.h <<_ACEOF
8272 #define WIN32 1
8273 _ACEOF
8274
8275         LIBS="$LIBS -lws2_32"
8276         echo "$as_me:$LINENO: result: mingw" >&5
8277 echo "${ECHO_T}mingw" >&6
8278     else
8279         LINUX=1
8280         export LINUX
8281         cat >>confdefs.h <<_ACEOF
8282 #define LINUX 1
8283 _ACEOF
8284
8285         echo "$as_me:$LINENO: result: " >&5
8286 echo "${ECHO_T}" >&6
8287     fi
8288 fi
8289
8290
8291 SLEXT="so"
8292 if test "x${MINGW}" != "xyes"; then
8293     # no mingW
8294     cat >>confdefs.h <<_ACEOF
8295 #define O_BINARY 0
8296 _ACEOF
8297
8298 else
8299     # mingW
8300     SLEXT="dll"
8301 fi
8302 export SLEXT
8303
8304
8305 # The following tries to make use of includes and libraries in
8306 # /usr/local, too. Notice: A -I/usr/local/include might break
8307 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8308 # especially on systems which link /usr/local to /usr, so it has yet
8309 # to be seen how useful this is.
8310 if test -d /usr/local/lib; then
8311     LDFLAGS="$LDFLAGS -L/usr/local/lib"
8312 fi
8313 if test -d /usr/local/include; then
8314 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8315 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8316     echo > /dev/null
8317 fi
8318 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8319     # if the user has a special prefix (like /opt), there might also be $prefix/lib
8320     # and $prefix/include, which should be included in our search paths for libraries
8321     # and includes.
8322     LDFLAGS="$LDFLAGS -L${libdir}"
8323     CPPFLAGS="$CPPFLAGS -I${includedir}"
8324     # TODO- test whether gcc still works after this
8325 fi
8326
8327 # this must be done after (I believe) AC_PROG_MAKE_SET
8328 if test "x$DEBUG" '!=' "x";then
8329     STRIP="@echo debug enabled, not stripping "
8330     export STRIP
8331
8332 fi
8333
8334
8335 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8336 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8337 if test "${ac_cv_lib_m_sin+set}" = set; then
8338   echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340   ac_check_lib_save_LIBS=$LIBS
8341 LIBS="-lm  $LIBS"
8342 cat >conftest.$ac_ext <<_ACEOF
8343 /* confdefs.h.  */
8344 _ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h.  */
8348
8349 /* Override any gcc2 internal prototype to avoid an error.  */
8350 #ifdef __cplusplus
8351 extern "C"
8352 #endif
8353 /* We use char because int might match the return type of a gcc2
8354    builtin and then its argument prototype would still apply.  */
8355 char sin ();
8356 int
8357 main ()
8358 {
8359 sin ();
8360   ;
8361   return 0;
8362 }
8363 _ACEOF
8364 rm -f conftest.$ac_objext conftest$ac_exeext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8366   (eval $ac_link) 2>conftest.er1
8367   ac_status=$?
8368   grep -v '^ *+' conftest.er1 >conftest.err
8369   rm -f conftest.er1
8370   cat conftest.err >&5
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); } &&
8373          { ac_try='test -z "$ac_c_werror_flag"
8374                          || test ! -s conftest.err'
8375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376   (eval $ac_try) 2>&5
8377   ac_status=$?
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); }; } &&
8380          { ac_try='test -s conftest$ac_exeext'
8381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382   (eval $ac_try) 2>&5
8383   ac_status=$?
8384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385   (exit $ac_status); }; }; then
8386   ac_cv_lib_m_sin=yes
8387 else
8388   echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8390
8391 ac_cv_lib_m_sin=no
8392 fi
8393 rm -f conftest.err conftest.$ac_objext \
8394       conftest$ac_exeext conftest.$ac_ext
8395 LIBS=$ac_check_lib_save_LIBS
8396 fi
8397 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8398 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8399 if test $ac_cv_lib_m_sin = yes; then
8400   cat >>confdefs.h <<_ACEOF
8401 #define HAVE_LIBM 1
8402 _ACEOF
8403
8404   LIBS="-lm $LIBS"
8405
8406 else
8407   echo "Error: Math library not found.";
8408  exit;
8409
8410 fi
8411
8412
8413 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8414 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8415 if test "${ac_cv_lib_z_deflate+set}" = set; then
8416   echo $ECHO_N "(cached) $ECHO_C" >&6
8417 else
8418   ac_check_lib_save_LIBS=$LIBS
8419 LIBS="-lz  $LIBS"
8420 cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h.  */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h.  */
8426
8427 /* Override any gcc2 internal prototype to avoid an error.  */
8428 #ifdef __cplusplus
8429 extern "C"
8430 #endif
8431 /* We use char because int might match the return type of a gcc2
8432    builtin and then its argument prototype would still apply.  */
8433 char deflate ();
8434 int
8435 main ()
8436 {
8437 deflate ();
8438   ;
8439   return 0;
8440 }
8441 _ACEOF
8442 rm -f conftest.$ac_objext conftest$ac_exeext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8444   (eval $ac_link) 2>conftest.er1
8445   ac_status=$?
8446   grep -v '^ *+' conftest.er1 >conftest.err
8447   rm -f conftest.er1
8448   cat conftest.err >&5
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); } &&
8451          { ac_try='test -z "$ac_c_werror_flag"
8452                          || test ! -s conftest.err'
8453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454   (eval $ac_try) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; } &&
8458          { ac_try='test -s conftest$ac_exeext'
8459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460   (eval $ac_try) 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; }; then
8464   ac_cv_lib_z_deflate=yes
8465 else
8466   echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8468
8469 ac_cv_lib_z_deflate=no
8470 fi
8471 rm -f conftest.err conftest.$ac_objext \
8472       conftest$ac_exeext conftest.$ac_ext
8473 LIBS=$ac_check_lib_save_LIBS
8474 fi
8475 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8476 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8477 if test $ac_cv_lib_z_deflate = yes; then
8478   cat >>confdefs.h <<_ACEOF
8479 #define HAVE_LIBZ 1
8480 _ACEOF
8481
8482   LIBS="-lz $LIBS"
8483
8484 else
8485   ZLIBMISSING=true
8486 fi
8487
8488
8489 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8490 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8491 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8492   echo $ECHO_N "(cached) $ECHO_C" >&6
8493 else
8494   ac_check_lib_save_LIBS=$LIBS
8495 LIBS="-ljpeg  $LIBS"
8496 cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h.  */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h.  */
8502
8503 /* Override any gcc2 internal prototype to avoid an error.  */
8504 #ifdef __cplusplus
8505 extern "C"
8506 #endif
8507 /* We use char because int might match the return type of a gcc2
8508    builtin and then its argument prototype would still apply.  */
8509 char jpeg_write_raw_data ();
8510 int
8511 main ()
8512 {
8513 jpeg_write_raw_data ();
8514   ;
8515   return 0;
8516 }
8517 _ACEOF
8518 rm -f conftest.$ac_objext conftest$ac_exeext
8519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8520   (eval $ac_link) 2>conftest.er1
8521   ac_status=$?
8522   grep -v '^ *+' conftest.er1 >conftest.err
8523   rm -f conftest.er1
8524   cat conftest.err >&5
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); } &&
8527          { ac_try='test -z "$ac_c_werror_flag"
8528                          || test ! -s conftest.err'
8529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530   (eval $ac_try) 2>&5
8531   ac_status=$?
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); }; } &&
8534          { ac_try='test -s conftest$ac_exeext'
8535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536   (eval $ac_try) 2>&5
8537   ac_status=$?
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); }; }; then
8540   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8541 else
8542   echo "$as_me: failed program was:" >&5
8543 sed 's/^/| /' conftest.$ac_ext >&5
8544
8545 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8546 fi
8547 rm -f conftest.err conftest.$ac_objext \
8548       conftest$ac_exeext conftest.$ac_ext
8549 LIBS=$ac_check_lib_save_LIBS
8550 fi
8551 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8552 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8553 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8554   cat >>confdefs.h <<_ACEOF
8555 #define HAVE_LIBJPEG 1
8556 _ACEOF
8557
8558   LIBS="-ljpeg $LIBS"
8559
8560 else
8561   JPEGLIBMISSING=true
8562 fi
8563
8564
8565 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8566 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8567 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8568   echo $ECHO_N "(cached) $ECHO_C" >&6
8569 else
8570   ac_check_lib_save_LIBS=$LIBS
8571 LIBS="-lt1  $LIBS"
8572 cat >conftest.$ac_ext <<_ACEOF
8573 /* confdefs.h.  */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h.  */
8578
8579 /* Override any gcc2 internal prototype to avoid an error.  */
8580 #ifdef __cplusplus
8581 extern "C"
8582 #endif
8583 /* We use char because int might match the return type of a gcc2
8584    builtin and then its argument prototype would still apply.  */
8585 char T1_LoadFont ();
8586 int
8587 main ()
8588 {
8589 T1_LoadFont ();
8590   ;
8591   return 0;
8592 }
8593 _ACEOF
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8596   (eval $ac_link) 2>conftest.er1
8597   ac_status=$?
8598   grep -v '^ *+' conftest.er1 >conftest.err
8599   rm -f conftest.er1
8600   cat conftest.err >&5
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); } &&
8603          { ac_try='test -z "$ac_c_werror_flag"
8604                          || test ! -s conftest.err'
8605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606   (eval $ac_try) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); }; } &&
8610          { ac_try='test -s conftest$ac_exeext'
8611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612   (eval $ac_try) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); }; }; then
8616   ac_cv_lib_t1_T1_LoadFont=yes
8617 else
8618   echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8620
8621 ac_cv_lib_t1_T1_LoadFont=no
8622 fi
8623 rm -f conftest.err conftest.$ac_objext \
8624       conftest$ac_exeext conftest.$ac_ext
8625 LIBS=$ac_check_lib_save_LIBS
8626 fi
8627 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8628 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8629 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8630   cat >>confdefs.h <<_ACEOF
8631 #define HAVE_LIBT1 1
8632 _ACEOF
8633
8634   LIBS="-lt1 $LIBS"
8635
8636 else
8637   T1LIBMISSING=true
8638 fi
8639
8640
8641
8642 echo "$as_me:$LINENO: checking for byte order" >&5
8643 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8644 if test "$cross_compiling" = yes; then
8645   CROSSCOMPILE=1
8646 else
8647   cat >conftest.$ac_ext <<_ACEOF
8648 /* confdefs.h.  */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h.  */
8653
8654 int main (int argc, char *argv[])
8655 {
8656     int i = 1;
8657     return *(char*)&i;
8658 }
8659
8660 _ACEOF
8661 rm -f conftest$ac_exeext
8662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663   (eval $ac_link) 2>&5
8664   ac_status=$?
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668   (eval $ac_try) 2>&5
8669   ac_status=$?
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); }; }; then
8672   BIGENDIAN=1
8673 else
8674   echo "$as_me: program exited with status $ac_status" >&5
8675 echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8677
8678 ( exit $ac_status )
8679 LITTLEENDIAN=1
8680 fi
8681 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8682 fi
8683 export CROSSCOMPILE
8684
8685 if test "x${CROSSCOMPILE}" = "x1"; then
8686  echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
8687 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
8688  echo "$as_me:$LINENO: checking target system type" >&5
8689 echo $ECHO_N "checking target system type... $ECHO_C" >&6
8690 if test "${ac_cv_target+set}" = set; then
8691   echo $ECHO_N "(cached) $ECHO_C" >&6
8692 else
8693   ac_cv_target_alias=$target_alias
8694 test "x$ac_cv_target_alias" = "x" &&
8695   ac_cv_target_alias=$ac_cv_host_alias
8696 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
8697   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
8698 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
8699    { (exit 1); exit 1; }; }
8700
8701 fi
8702 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
8703 echo "${ECHO_T}$ac_cv_target" >&6
8704 target=$ac_cv_target
8705 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8706 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8707 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8708
8709
8710 # The aliases save the names the user supplied, while $host etc.
8711 # will get canonicalized.
8712 test -n "$target_alias" &&
8713   test "$program_prefix$program_suffix$program_transform_name" = \
8714     NONENONEs,x,x, &&
8715   program_prefix=${target_alias}-
8716  echo "$as_me:$LINENO: checking for byte order, try 2" >&5
8717 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
8718  case "${target}" in
8719   *86* | *-pc-* )
8720      LITTLEENDIAN=1
8721      ;;
8722   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
8723      BIGENDIAN=1
8724      ;;
8725  esac
8726 fi
8727
8728 export LITTLEENDIAN
8729 if test "x${LITTLEENDIAN}" = "x1"; then
8730 echo "$as_me:$LINENO: result: little endian" >&5
8731 echo "${ECHO_T}little endian" >&6
8732 BYTEORDERCHECKOK=1
8733 fi
8734 export BIGENDIAN
8735 if test "x${BIGENDIAN}" = "x1"; then
8736 echo "$as_me:$LINENO: result: big endian" >&5
8737 echo "${ECHO_T}big endian" >&6
8738 BYTEORDERCHECKOK=1
8739 WORDS_BIGENDIAN=1
8740 export WORDS_BIGENDIAN
8741 cat >>confdefs.h <<_ACEOF
8742 #define WORDS_BIGENDIAN 1
8743 _ACEOF
8744
8745 fi
8746 if test "x${BYTEORDERCHECKOK}" != "x1"; then
8747 echo "$as_me:$LINENO: result: unknown" >&5
8748 echo "${ECHO_T}unknown" >&6
8749 echo Byte order could not determined.
8750 exit 1
8751 fi
8752
8753
8754
8755 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
8756 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
8757 if test "$cross_compiling" = yes; then
8758   CROSSCOMPILE=1
8759 else
8760   cat >conftest.$ac_ext <<_ACEOF
8761 /* confdefs.h.  */
8762 _ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h.  */
8766
8767 #include "stdlib.h"
8768 int main (int argc, char*argv[])
8769 {
8770     return system("test `touch config.tmp2`");
8771 }
8772
8773 _ACEOF
8774 rm -f conftest$ac_exeext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776   (eval $ac_link) 2>&5
8777   ac_status=$?
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781   (eval $ac_try) 2>&5
8782   ac_status=$?
8783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); }; }; then
8785   OK=OK
8786 else
8787   echo "$as_me: program exited with status $ac_status" >&5
8788 echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8790
8791 fi
8792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8793 fi
8794
8795 if test "x${OK}" = "xOK";then
8796     test -f config.tmp2 || OK=
8797 fi
8798
8799 if test "x${CROSSCOMPILE}" = "x1";then
8800     OK=OK;
8801 fi
8802 if test "x${OK}" = "xOK";then
8803 rm -f config.tmp2
8804 echo "$as_me:$LINENO: result: yes" >&5
8805 echo "${ECHO_T}yes" >&6
8806 SYSTEM_BACKTICKS=1
8807 export SYSTEM_BACKTICKS
8808 cat >>confdefs.h <<_ACEOF
8809 #define SYSTEM_BACKTICKS 1
8810 _ACEOF
8811
8812 else
8813 echo "$as_me:$LINENO: result: no" >&5
8814 echo "${ECHO_T}no" >&6
8815 fi
8816
8817
8818
8819 test "$program_prefix" != NONE &&
8820   program_transform_name="s,^,$program_prefix,;$program_transform_name"
8821 # Use a double $ so make ignores it.
8822 test "$program_suffix" != NONE &&
8823   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8824 # Double any \ or $.  echo might interpret backslashes.
8825 # By default was `s,x,x', remove it if useless.
8826 cat <<\_ACEOF >conftest.sed
8827 s/[\\$]/&&/g;s/;s,x,x,$//
8828 _ACEOF
8829 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8830 rm conftest.sed
8831
8832
8833            ac_config_headers="$ac_config_headers config.h"
8834
8835
8836
8837
8838
8839
8840 ac_header_dirent=no
8841 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8842   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8843 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8844 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8846   echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848   cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h.  */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h.  */
8854 #include <sys/types.h>
8855 #include <$ac_hdr>
8856
8857 int
8858 main ()
8859 {
8860 if ((DIR *) 0)
8861 return 0;
8862   ;
8863   return 0;
8864 }
8865 _ACEOF
8866 rm -f conftest.$ac_objext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8868   (eval $ac_compile) 2>conftest.er1
8869   ac_status=$?
8870   grep -v '^ *+' conftest.er1 >conftest.err
8871   rm -f conftest.er1
8872   cat conftest.err >&5
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); } &&
8875          { ac_try='test -z "$ac_c_werror_flag"
8876                          || test ! -s conftest.err'
8877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878   (eval $ac_try) 2>&5
8879   ac_status=$?
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); }; } &&
8882          { ac_try='test -s conftest.$ac_objext'
8883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884   (eval $ac_try) 2>&5
8885   ac_status=$?
8886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887   (exit $ac_status); }; }; then
8888   eval "$as_ac_Header=yes"
8889 else
8890   echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8892
8893 eval "$as_ac_Header=no"
8894 fi
8895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8896 fi
8897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8900   cat >>confdefs.h <<_ACEOF
8901 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8902 _ACEOF
8903
8904 ac_header_dirent=$ac_hdr; break
8905 fi
8906
8907 done
8908 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8909 if test $ac_header_dirent = dirent.h; then
8910   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8911 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8912 if test "${ac_cv_search_opendir+set}" = set; then
8913   echo $ECHO_N "(cached) $ECHO_C" >&6
8914 else
8915   ac_func_search_save_LIBS=$LIBS
8916 ac_cv_search_opendir=no
8917 cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h.  */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h.  */
8923
8924 /* Override any gcc2 internal prototype to avoid an error.  */
8925 #ifdef __cplusplus
8926 extern "C"
8927 #endif
8928 /* We use char because int might match the return type of a gcc2
8929    builtin and then its argument prototype would still apply.  */
8930 char opendir ();
8931 int
8932 main ()
8933 {
8934 opendir ();
8935   ;
8936   return 0;
8937 }
8938 _ACEOF
8939 rm -f conftest.$ac_objext conftest$ac_exeext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8941   (eval $ac_link) 2>conftest.er1
8942   ac_status=$?
8943   grep -v '^ *+' conftest.er1 >conftest.err
8944   rm -f conftest.er1
8945   cat conftest.err >&5
8946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947   (exit $ac_status); } &&
8948          { ac_try='test -z "$ac_c_werror_flag"
8949                          || test ! -s conftest.err'
8950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951   (eval $ac_try) 2>&5
8952   ac_status=$?
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); }; } &&
8955          { ac_try='test -s conftest$ac_exeext'
8956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957   (eval $ac_try) 2>&5
8958   ac_status=$?
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); }; }; then
8961   ac_cv_search_opendir="none required"
8962 else
8963   echo "$as_me: failed program was:" >&5
8964 sed 's/^/| /' conftest.$ac_ext >&5
8965
8966 fi
8967 rm -f conftest.err conftest.$ac_objext \
8968       conftest$ac_exeext conftest.$ac_ext
8969 if test "$ac_cv_search_opendir" = no; then
8970   for ac_lib in dir; do
8971     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8972     cat >conftest.$ac_ext <<_ACEOF
8973 /* confdefs.h.  */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h.  */
8978
8979 /* Override any gcc2 internal prototype to avoid an error.  */
8980 #ifdef __cplusplus
8981 extern "C"
8982 #endif
8983 /* We use char because int might match the return type of a gcc2
8984    builtin and then its argument prototype would still apply.  */
8985 char opendir ();
8986 int
8987 main ()
8988 {
8989 opendir ();
8990   ;
8991   return 0;
8992 }
8993 _ACEOF
8994 rm -f conftest.$ac_objext conftest$ac_exeext
8995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8996   (eval $ac_link) 2>conftest.er1
8997   ac_status=$?
8998   grep -v '^ *+' conftest.er1 >conftest.err
8999   rm -f conftest.er1
9000   cat conftest.err >&5
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); } &&
9003          { ac_try='test -z "$ac_c_werror_flag"
9004                          || test ! -s conftest.err'
9005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006   (eval $ac_try) 2>&5
9007   ac_status=$?
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); }; } &&
9010          { ac_try='test -s conftest$ac_exeext'
9011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012   (eval $ac_try) 2>&5
9013   ac_status=$?
9014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015   (exit $ac_status); }; }; then
9016   ac_cv_search_opendir="-l$ac_lib"
9017 break
9018 else
9019   echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9021
9022 fi
9023 rm -f conftest.err conftest.$ac_objext \
9024       conftest$ac_exeext conftest.$ac_ext
9025   done
9026 fi
9027 LIBS=$ac_func_search_save_LIBS
9028 fi
9029 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9030 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9031 if test "$ac_cv_search_opendir" != no; then
9032   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9033
9034 fi
9035
9036 else
9037   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9038 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9039 if test "${ac_cv_search_opendir+set}" = set; then
9040   echo $ECHO_N "(cached) $ECHO_C" >&6
9041 else
9042   ac_func_search_save_LIBS=$LIBS
9043 ac_cv_search_opendir=no
9044 cat >conftest.$ac_ext <<_ACEOF
9045 /* confdefs.h.  */
9046 _ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h.  */
9050
9051 /* Override any gcc2 internal prototype to avoid an error.  */
9052 #ifdef __cplusplus
9053 extern "C"
9054 #endif
9055 /* We use char because int might match the return type of a gcc2
9056    builtin and then its argument prototype would still apply.  */
9057 char opendir ();
9058 int
9059 main ()
9060 {
9061 opendir ();
9062   ;
9063   return 0;
9064 }
9065 _ACEOF
9066 rm -f conftest.$ac_objext conftest$ac_exeext
9067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9068   (eval $ac_link) 2>conftest.er1
9069   ac_status=$?
9070   grep -v '^ *+' conftest.er1 >conftest.err
9071   rm -f conftest.er1
9072   cat conftest.err >&5
9073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074   (exit $ac_status); } &&
9075          { ac_try='test -z "$ac_c_werror_flag"
9076                          || test ! -s conftest.err'
9077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078   (eval $ac_try) 2>&5
9079   ac_status=$?
9080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081   (exit $ac_status); }; } &&
9082          { ac_try='test -s conftest$ac_exeext'
9083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084   (eval $ac_try) 2>&5
9085   ac_status=$?
9086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087   (exit $ac_status); }; }; then
9088   ac_cv_search_opendir="none required"
9089 else
9090   echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9092
9093 fi
9094 rm -f conftest.err conftest.$ac_objext \
9095       conftest$ac_exeext conftest.$ac_ext
9096 if test "$ac_cv_search_opendir" = no; then
9097   for ac_lib in x; do
9098     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9099     cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h.  */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h.  */
9105
9106 /* Override any gcc2 internal prototype to avoid an error.  */
9107 #ifdef __cplusplus
9108 extern "C"
9109 #endif
9110 /* We use char because int might match the return type of a gcc2
9111    builtin and then its argument prototype would still apply.  */
9112 char opendir ();
9113 int
9114 main ()
9115 {
9116 opendir ();
9117   ;
9118   return 0;
9119 }
9120 _ACEOF
9121 rm -f conftest.$ac_objext conftest$ac_exeext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9123   (eval $ac_link) 2>conftest.er1
9124   ac_status=$?
9125   grep -v '^ *+' conftest.er1 >conftest.err
9126   rm -f conftest.er1
9127   cat conftest.err >&5
9128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129   (exit $ac_status); } &&
9130          { ac_try='test -z "$ac_c_werror_flag"
9131                          || test ! -s conftest.err'
9132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133   (eval $ac_try) 2>&5
9134   ac_status=$?
9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); }; } &&
9137          { ac_try='test -s conftest$ac_exeext'
9138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139   (eval $ac_try) 2>&5
9140   ac_status=$?
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); }; }; then
9143   ac_cv_search_opendir="-l$ac_lib"
9144 break
9145 else
9146   echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9148
9149 fi
9150 rm -f conftest.err conftest.$ac_objext \
9151       conftest$ac_exeext conftest.$ac_ext
9152   done
9153 fi
9154 LIBS=$ac_func_search_save_LIBS
9155 fi
9156 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9157 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9158 if test "$ac_cv_search_opendir" != no; then
9159   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9160
9161 fi
9162
9163 fi
9164
9165  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9166 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9167 if test "${ac_cv_header_stdc+set}" = set; then
9168   echo $ECHO_N "(cached) $ECHO_C" >&6
9169 else
9170   cat >conftest.$ac_ext <<_ACEOF
9171 /* confdefs.h.  */
9172 _ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h.  */
9176 #include <stdlib.h>
9177 #include <stdarg.h>
9178 #include <string.h>
9179 #include <float.h>
9180
9181 int
9182 main ()
9183 {
9184
9185   ;
9186   return 0;
9187 }
9188 _ACEOF
9189 rm -f conftest.$ac_objext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9191   (eval $ac_compile) 2>conftest.er1
9192   ac_status=$?
9193   grep -v '^ *+' conftest.er1 >conftest.err
9194   rm -f conftest.er1
9195   cat conftest.err >&5
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); } &&
9198          { ac_try='test -z "$ac_c_werror_flag"
9199                          || test ! -s conftest.err'
9200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201   (eval $ac_try) 2>&5
9202   ac_status=$?
9203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204   (exit $ac_status); }; } &&
9205          { ac_try='test -s conftest.$ac_objext'
9206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207   (eval $ac_try) 2>&5
9208   ac_status=$?
9209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210   (exit $ac_status); }; }; then
9211   ac_cv_header_stdc=yes
9212 else
9213   echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9215
9216 ac_cv_header_stdc=no
9217 fi
9218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9219
9220 if test $ac_cv_header_stdc = yes; then
9221   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9222   cat >conftest.$ac_ext <<_ACEOF
9223 /* confdefs.h.  */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h.  */
9228 #include <string.h>
9229
9230 _ACEOF
9231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9232   $EGREP "memchr" >/dev/null 2>&1; then
9233   :
9234 else
9235   ac_cv_header_stdc=no
9236 fi
9237 rm -f conftest*
9238
9239 fi
9240
9241 if test $ac_cv_header_stdc = yes; then
9242   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9243   cat >conftest.$ac_ext <<_ACEOF
9244 /* confdefs.h.  */
9245 _ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h.  */
9249 #include <stdlib.h>
9250
9251 _ACEOF
9252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9253   $EGREP "free" >/dev/null 2>&1; then
9254   :
9255 else
9256   ac_cv_header_stdc=no
9257 fi
9258 rm -f conftest*
9259
9260 fi
9261
9262 if test $ac_cv_header_stdc = yes; then
9263   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9264   if test "$cross_compiling" = yes; then
9265   :
9266 else
9267   cat >conftest.$ac_ext <<_ACEOF
9268 /* confdefs.h.  */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h.  */
9273 #include <ctype.h>
9274 #if ((' ' & 0x0FF) == 0x020)
9275 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9276 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9277 #else
9278 # define ISLOWER(c) \
9279                    (('a' <= (c) && (c) <= 'i') \
9280                      || ('j' <= (c) && (c) <= 'r') \
9281                      || ('s' <= (c) && (c) <= 'z'))
9282 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9283 #endif
9284
9285 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9286 int
9287 main ()
9288 {
9289   int i;
9290   for (i = 0; i < 256; i++)
9291     if (XOR (islower (i), ISLOWER (i))
9292         || toupper (i) != TOUPPER (i))
9293       exit(2);
9294   exit (0);
9295 }
9296 _ACEOF
9297 rm -f conftest$ac_exeext
9298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9299   (eval $ac_link) 2>&5
9300   ac_status=$?
9301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304   (eval $ac_try) 2>&5
9305   ac_status=$?
9306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307   (exit $ac_status); }; }; then
9308   :
9309 else
9310   echo "$as_me: program exited with status $ac_status" >&5
9311 echo "$as_me: failed program was:" >&5
9312 sed 's/^/| /' conftest.$ac_ext >&5
9313
9314 ( exit $ac_status )
9315 ac_cv_header_stdc=no
9316 fi
9317 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9318 fi
9319 fi
9320 fi
9321 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9322 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9323 if test $ac_cv_header_stdc = yes; then
9324
9325 cat >>confdefs.h <<\_ACEOF
9326 #define STDC_HEADERS 1
9327 _ACEOF
9328
9329 fi
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345 for ac_header 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 time.h
9346 do
9347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9349   echo "$as_me:$LINENO: checking for $ac_header" >&5
9350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9352   echo $ECHO_N "(cached) $ECHO_C" >&6
9353 fi
9354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9356 else
9357   # Is the header compilable?
9358 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9360 cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h.  */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h.  */
9366 $ac_includes_default
9367 #include <$ac_header>
9368 _ACEOF
9369 rm -f conftest.$ac_objext
9370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9371   (eval $ac_compile) 2>conftest.er1
9372   ac_status=$?
9373   grep -v '^ *+' conftest.er1 >conftest.err
9374   rm -f conftest.er1
9375   cat conftest.err >&5
9376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377   (exit $ac_status); } &&
9378          { ac_try='test -z "$ac_c_werror_flag"
9379                          || test ! -s conftest.err'
9380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381   (eval $ac_try) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); }; } &&
9385          { ac_try='test -s conftest.$ac_objext'
9386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387   (eval $ac_try) 2>&5
9388   ac_status=$?
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); }; }; then
9391   ac_header_compiler=yes
9392 else
9393   echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9395
9396 ac_header_compiler=no
9397 fi
9398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9399 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9400 echo "${ECHO_T}$ac_header_compiler" >&6
9401
9402 # Is the header present?
9403 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9405 cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h.  */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h.  */
9411 #include <$ac_header>
9412 _ACEOF
9413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9414   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9415   ac_status=$?
9416   grep -v '^ *+' conftest.er1 >conftest.err
9417   rm -f conftest.er1
9418   cat conftest.err >&5
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); } >/dev/null; then
9421   if test -s conftest.err; then
9422     ac_cpp_err=$ac_c_preproc_warn_flag
9423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9424   else
9425     ac_cpp_err=
9426   fi
9427 else
9428   ac_cpp_err=yes
9429 fi
9430 if test -z "$ac_cpp_err"; then
9431   ac_header_preproc=yes
9432 else
9433   echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9435
9436   ac_header_preproc=no
9437 fi
9438 rm -f conftest.err conftest.$ac_ext
9439 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9440 echo "${ECHO_T}$ac_header_preproc" >&6
9441
9442 # So?  What about this header?
9443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9444   yes:no: )
9445     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9449     ac_header_preproc=yes
9450     ;;
9451   no:yes:* )
9452     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9454     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9455 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9456     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9458     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9459 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9462     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9464     (
9465       cat <<\_ASBOX
9466 ## ------------------------------------------ ##
9467 ## Report this to the AC_PACKAGE_NAME lists.  ##
9468 ## ------------------------------------------ ##
9469 _ASBOX
9470     ) |
9471       sed "s/^/$as_me: WARNING:     /" >&2
9472     ;;
9473 esac
9474 echo "$as_me:$LINENO: checking for $ac_header" >&5
9475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9477   echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479   eval "$as_ac_Header=\$ac_header_preproc"
9480 fi
9481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9483
9484 fi
9485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9486   cat >>confdefs.h <<_ACEOF
9487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9488 _ACEOF
9489
9490 fi
9491
9492 done
9493
9494
9495 cat >>confdefs.h <<_ACEOF
9496 #define PACKAGE "$PACKAGE"
9497 _ACEOF
9498
9499 cat >>confdefs.h <<_ACEOF
9500 #define VERSION "$VERSION"
9501 _ACEOF
9502
9503
9504
9505
9506
9507
9508
9509  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9510 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9511 if test "${ac_cv_c_const+set}" = set; then
9512   echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514   cat >conftest.$ac_ext <<_ACEOF
9515 /* confdefs.h.  */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h.  */
9520
9521 int
9522 main ()
9523 {
9524 /* FIXME: Include the comments suggested by Paul. */
9525 #ifndef __cplusplus
9526   /* Ultrix mips cc rejects this.  */
9527   typedef int charset[2];
9528   const charset x;
9529   /* SunOS 4.1.1 cc rejects this.  */
9530   char const *const *ccp;
9531   char **p;
9532   /* NEC SVR4.0.2 mips cc rejects this.  */
9533   struct point {int x, y;};
9534   static struct point const zero = {0,0};
9535   /* AIX XL C 1.02.0.0 rejects this.
9536      It does not let you subtract one const X* pointer from another in
9537      an arm of an if-expression whose if-part is not a constant
9538      expression */
9539   const char *g = "string";
9540   ccp = &g + (g ? g-g : 0);
9541   /* HPUX 7.0 cc rejects these. */
9542   ++ccp;
9543   p = (char**) ccp;
9544   ccp = (char const *const *) p;
9545   { /* SCO 3.2v4 cc rejects this.  */
9546     char *t;
9547     char const *s = 0 ? (char *) 0 : (char const *) 0;
9548
9549     *t++ = 0;
9550   }
9551   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9552     int x[] = {25, 17};
9553     const int *foo = &x[0];
9554     ++foo;
9555   }
9556   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9557     typedef const int *iptr;
9558     iptr p = 0;
9559     ++p;
9560   }
9561   { /* AIX XL C 1.02.0.0 rejects this saying
9562        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9563     struct s { int j; const int *ap[3]; };
9564     struct s *b; b->j = 5;
9565   }
9566   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9567     const int foo = 10;
9568   }
9569 #endif
9570
9571   ;
9572   return 0;
9573 }
9574 _ACEOF
9575 rm -f conftest.$ac_objext
9576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9577   (eval $ac_compile) 2>conftest.er1
9578   ac_status=$?
9579   grep -v '^ *+' conftest.er1 >conftest.err
9580   rm -f conftest.er1
9581   cat conftest.err >&5
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); } &&
9584          { ac_try='test -z "$ac_c_werror_flag"
9585                          || test ! -s conftest.err'
9586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587   (eval $ac_try) 2>&5
9588   ac_status=$?
9589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590   (exit $ac_status); }; } &&
9591          { ac_try='test -s conftest.$ac_objext'
9592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593   (eval $ac_try) 2>&5
9594   ac_status=$?
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); }; }; then
9597   ac_cv_c_const=yes
9598 else
9599   echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9601
9602 ac_cv_c_const=no
9603 fi
9604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9605 fi
9606 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9607 echo "${ECHO_T}$ac_cv_c_const" >&6
9608 if test $ac_cv_c_const = no; then
9609
9610 cat >>confdefs.h <<\_ACEOF
9611 #define const
9612 _ACEOF
9613
9614 fi
9615
9616  echo "$as_me:$LINENO: checking for inline" >&5
9617 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9618 if test "${ac_cv_c_inline+set}" = set; then
9619   echo $ECHO_N "(cached) $ECHO_C" >&6
9620 else
9621   ac_cv_c_inline=no
9622 for ac_kw in inline __inline__ __inline; do
9623   cat >conftest.$ac_ext <<_ACEOF
9624 /* confdefs.h.  */
9625 _ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h.  */
9629 #ifndef __cplusplus
9630 typedef int foo_t;
9631 static $ac_kw foo_t static_foo () {return 0; }
9632 $ac_kw foo_t foo () {return 0; }
9633 #endif
9634
9635 _ACEOF
9636 rm -f conftest.$ac_objext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9638   (eval $ac_compile) 2>conftest.er1
9639   ac_status=$?
9640   grep -v '^ *+' conftest.er1 >conftest.err
9641   rm -f conftest.er1
9642   cat conftest.err >&5
9643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644   (exit $ac_status); } &&
9645          { ac_try='test -z "$ac_c_werror_flag"
9646                          || test ! -s conftest.err'
9647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648   (eval $ac_try) 2>&5
9649   ac_status=$?
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); }; } &&
9652          { ac_try='test -s conftest.$ac_objext'
9653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654   (eval $ac_try) 2>&5
9655   ac_status=$?
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); }; }; then
9658   ac_cv_c_inline=$ac_kw; break
9659 else
9660   echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9662
9663 fi
9664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9665 done
9666
9667 fi
9668 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9669 echo "${ECHO_T}$ac_cv_c_inline" >&6
9670
9671
9672 case $ac_cv_c_inline in
9673   inline | yes) ;;
9674   *)
9675     case $ac_cv_c_inline in
9676       no) ac_val=;;
9677       *) ac_val=$ac_cv_c_inline;;
9678     esac
9679     cat >>confdefs.h <<_ACEOF
9680 #ifndef __cplusplus
9681 #define inline $ac_val
9682 #endif
9683 _ACEOF
9684     ;;
9685 esac
9686
9687  echo "$as_me:$LINENO: checking for off_t" >&5
9688 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9689 if test "${ac_cv_type_off_t+set}" = set; then
9690   echo $ECHO_N "(cached) $ECHO_C" >&6
9691 else
9692   cat >conftest.$ac_ext <<_ACEOF
9693 /* confdefs.h.  */
9694 _ACEOF
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h.  */
9698 $ac_includes_default
9699 int
9700 main ()
9701 {
9702 if ((off_t *) 0)
9703   return 0;
9704 if (sizeof (off_t))
9705   return 0;
9706   ;
9707   return 0;
9708 }
9709 _ACEOF
9710 rm -f conftest.$ac_objext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9712   (eval $ac_compile) 2>conftest.er1
9713   ac_status=$?
9714   grep -v '^ *+' conftest.er1 >conftest.err
9715   rm -f conftest.er1
9716   cat conftest.err >&5
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); } &&
9719          { ac_try='test -z "$ac_c_werror_flag"
9720                          || test ! -s conftest.err'
9721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722   (eval $ac_try) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; } &&
9726          { ac_try='test -s conftest.$ac_objext'
9727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728   (eval $ac_try) 2>&5
9729   ac_status=$?
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); }; }; then
9732   ac_cv_type_off_t=yes
9733 else
9734   echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9736
9737 ac_cv_type_off_t=no
9738 fi
9739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9740 fi
9741 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9742 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9743 if test $ac_cv_type_off_t = yes; then
9744   :
9745 else
9746
9747 cat >>confdefs.h <<_ACEOF
9748 #define off_t long
9749 _ACEOF
9750
9751 fi
9752
9753  echo "$as_me:$LINENO: checking for size_t" >&5
9754 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9755 if test "${ac_cv_type_size_t+set}" = set; then
9756   echo $ECHO_N "(cached) $ECHO_C" >&6
9757 else
9758   cat >conftest.$ac_ext <<_ACEOF
9759 /* confdefs.h.  */
9760 _ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h.  */
9764 $ac_includes_default
9765 int
9766 main ()
9767 {
9768 if ((size_t *) 0)
9769   return 0;
9770 if (sizeof (size_t))
9771   return 0;
9772   ;
9773   return 0;
9774 }
9775 _ACEOF
9776 rm -f conftest.$ac_objext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9778   (eval $ac_compile) 2>conftest.er1
9779   ac_status=$?
9780   grep -v '^ *+' conftest.er1 >conftest.err
9781   rm -f conftest.er1
9782   cat conftest.err >&5
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); } &&
9785          { ac_try='test -z "$ac_c_werror_flag"
9786                          || test ! -s conftest.err'
9787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788   (eval $ac_try) 2>&5
9789   ac_status=$?
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); }; } &&
9792          { ac_try='test -s conftest.$ac_objext'
9793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794   (eval $ac_try) 2>&5
9795   ac_status=$?
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); }; }; then
9798   ac_cv_type_size_t=yes
9799 else
9800   echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803 ac_cv_type_size_t=no
9804 fi
9805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9806 fi
9807 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9808 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9809 if test $ac_cv_type_size_t = yes; then
9810   :
9811 else
9812
9813 cat >>confdefs.h <<_ACEOF
9814 #define size_t unsigned
9815 _ACEOF
9816
9817 fi
9818
9819  echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9820 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9821 if test "${ac_cv_struct_tm+set}" = set; then
9822   echo $ECHO_N "(cached) $ECHO_C" >&6
9823 else
9824   cat >conftest.$ac_ext <<_ACEOF
9825 /* confdefs.h.  */
9826 _ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h.  */
9830 #include <sys/types.h>
9831 #include <time.h>
9832
9833 int
9834 main ()
9835 {
9836 struct tm *tp; tp->tm_sec;
9837   ;
9838   return 0;
9839 }
9840 _ACEOF
9841 rm -f conftest.$ac_objext
9842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9843   (eval $ac_compile) 2>conftest.er1
9844   ac_status=$?
9845   grep -v '^ *+' conftest.er1 >conftest.err
9846   rm -f conftest.er1
9847   cat conftest.err >&5
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); } &&
9850          { ac_try='test -z "$ac_c_werror_flag"
9851                          || test ! -s conftest.err'
9852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853   (eval $ac_try) 2>&5
9854   ac_status=$?
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); }; } &&
9857          { ac_try='test -s conftest.$ac_objext'
9858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859   (eval $ac_try) 2>&5
9860   ac_status=$?
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); }; }; then
9863   ac_cv_struct_tm=time.h
9864 else
9865   echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9867
9868 ac_cv_struct_tm=sys/time.h
9869 fi
9870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9871 fi
9872 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9873 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9874 if test $ac_cv_struct_tm = sys/time.h; then
9875
9876 cat >>confdefs.h <<\_ACEOF
9877 #define TM_IN_SYS_TIME 1
9878 _ACEOF
9879
9880 fi
9881
9882  echo "$as_me:$LINENO: checking for boolean" >&5
9883 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
9884 if test "${ac_cv_type_boolean+set}" = set; then
9885   echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9887   cat >conftest.$ac_ext <<_ACEOF
9888 /* confdefs.h.  */
9889 _ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h.  */
9893 $ac_includes_default
9894 int
9895 main ()
9896 {
9897 if ((boolean *) 0)
9898   return 0;
9899 if (sizeof (boolean))
9900   return 0;
9901   ;
9902   return 0;
9903 }
9904 _ACEOF
9905 rm -f conftest.$ac_objext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9907   (eval $ac_compile) 2>conftest.er1
9908   ac_status=$?
9909   grep -v '^ *+' conftest.er1 >conftest.err
9910   rm -f conftest.er1
9911   cat conftest.err >&5
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } &&
9914          { ac_try='test -z "$ac_c_werror_flag"
9915                          || test ! -s conftest.err'
9916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917   (eval $ac_try) 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; } &&
9921          { ac_try='test -s conftest.$ac_objext'
9922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923   (eval $ac_try) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; }; then
9927   ac_cv_type_boolean=yes
9928 else
9929   echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9931
9932 ac_cv_type_boolean=no
9933 fi
9934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9935 fi
9936 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
9937 echo "${ECHO_T}$ac_cv_type_boolean" >&6
9938 if test $ac_cv_type_boolean = yes; then
9939   :
9940 else
9941
9942 cat >>confdefs.h <<_ACEOF
9943 #define boolean int
9944 _ACEOF
9945
9946 fi
9947  #needed for jpeglib
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
9960 do
9961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9962 echo "$as_me:$LINENO: checking for $ac_func" >&5
9963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9964 if eval "test \"\${$as_ac_var+set}\" = set"; then
9965   echo $ECHO_N "(cached) $ECHO_C" >&6
9966 else
9967   cat >conftest.$ac_ext <<_ACEOF
9968 /* confdefs.h.  */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h.  */
9973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9975 #define $ac_func innocuous_$ac_func
9976
9977 /* System header to define __stub macros and hopefully few prototypes,
9978     which can conflict with char $ac_func (); below.
9979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9980     <limits.h> exists even on freestanding compilers.  */
9981
9982 #ifdef __STDC__
9983 # include <limits.h>
9984 #else
9985 # include <assert.h>
9986 #endif
9987
9988 #undef $ac_func
9989
9990 /* Override any gcc2 internal prototype to avoid an error.  */
9991 #ifdef __cplusplus
9992 extern "C"
9993 {
9994 #endif
9995 /* We use char because int might match the return type of a gcc2
9996    builtin and then its argument prototype would still apply.  */
9997 char $ac_func ();
9998 /* The GNU C library defines this for functions which it implements
9999     to always fail with ENOSYS.  Some functions are actually named
10000     something starting with __ and the normal name is an alias.  */
10001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10002 choke me
10003 #else
10004 char (*f) () = $ac_func;
10005 #endif
10006 #ifdef __cplusplus
10007 }
10008 #endif
10009
10010 int
10011 main ()
10012 {
10013 return f != $ac_func;
10014   ;
10015   return 0;
10016 }
10017 _ACEOF
10018 rm -f conftest.$ac_objext conftest$ac_exeext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10020   (eval $ac_link) 2>conftest.er1
10021   ac_status=$?
10022   grep -v '^ *+' conftest.er1 >conftest.err
10023   rm -f conftest.er1
10024   cat conftest.err >&5
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); } &&
10027          { ac_try='test -z "$ac_c_werror_flag"
10028                          || test ! -s conftest.err'
10029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030   (eval $ac_try) 2>&5
10031   ac_status=$?
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); }; } &&
10034          { ac_try='test -s conftest$ac_exeext'
10035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036   (eval $ac_try) 2>&5
10037   ac_status=$?
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); }; }; then
10040   eval "$as_ac_var=yes"
10041 else
10042   echo "$as_me: failed program was:" >&5
10043 sed 's/^/| /' conftest.$ac_ext >&5
10044
10045 eval "$as_ac_var=no"
10046 fi
10047 rm -f conftest.err conftest.$ac_objext \
10048       conftest$ac_exeext conftest.$ac_ext
10049 fi
10050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10052 if test `eval echo '${'$as_ac_var'}'` = yes; then
10053   cat >>confdefs.h <<_ACEOF
10054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10055 _ACEOF
10056
10057 fi
10058 done
10059
10060
10061 # ------------------------------------------------------------------
10062
10063
10064 for ac_prog in freetype-config
10065 do
10066   # Extract the first word of "$ac_prog", so it can be a program name with args.
10067 set dummy $ac_prog; ac_word=$2
10068 echo "$as_me:$LINENO: checking for $ac_word" >&5
10069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10070 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
10071   echo $ECHO_N "(cached) $ECHO_C" >&6
10072 else
10073   if test -n "$FREETYPE_CONFIG"; then
10074   ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
10075 else
10076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10077 for as_dir in $PATH
10078 do
10079   IFS=$as_save_IFS
10080   test -z "$as_dir" && as_dir=.
10081   for ac_exec_ext in '' $ac_executable_extensions; do
10082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10083     ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
10084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10085     break 2
10086   fi
10087 done
10088 done
10089
10090 fi
10091 fi
10092 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
10093 if test -n "$FREETYPE_CONFIG"; then
10094   echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
10095 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
10096 else
10097   echo "$as_me:$LINENO: result: no" >&5
10098 echo "${ECHO_T}no" >&6
10099 fi
10100
10101   test -n "$FREETYPE_CONFIG" && break
10102 done
10103
10104 OLDCPPFLAGS="${CPPFLAGS}"
10105 OLDLIBS="${LIBS}"
10106 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10107     CPPFLAGS="$CPPFLAGS "`freetype-config --cflags`
10108 else if test -d /usr/include/freetype2; then
10109     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
10110 else if test -d /usr/local/include/freetype2; then
10111     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
10112 fi
10113 fi
10114 fi
10115
10116 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10117 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10118 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10119   echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121   ac_check_lib_save_LIBS=$LIBS
10122 LIBS="-lfreetype  $LIBS"
10123 cat >conftest.$ac_ext <<_ACEOF
10124 /* confdefs.h.  */
10125 _ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h.  */
10129
10130 /* Override any gcc2 internal prototype to avoid an error.  */
10131 #ifdef __cplusplus
10132 extern "C"
10133 #endif
10134 /* We use char because int might match the return type of a gcc2
10135    builtin and then its argument prototype would still apply.  */
10136 char FT_Init_FreeType ();
10137 int
10138 main ()
10139 {
10140 FT_Init_FreeType ();
10141   ;
10142   return 0;
10143 }
10144 _ACEOF
10145 rm -f conftest.$ac_objext conftest$ac_exeext
10146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147   (eval $ac_link) 2>conftest.er1
10148   ac_status=$?
10149   grep -v '^ *+' conftest.er1 >conftest.err
10150   rm -f conftest.er1
10151   cat conftest.err >&5
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); } &&
10154          { ac_try='test -z "$ac_c_werror_flag"
10155                          || test ! -s conftest.err'
10156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157   (eval $ac_try) 2>&5
10158   ac_status=$?
10159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); }; } &&
10161          { ac_try='test -s conftest$ac_exeext'
10162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163   (eval $ac_try) 2>&5
10164   ac_status=$?
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); }; }; then
10167   ac_cv_lib_freetype_FT_Init_FreeType=yes
10168 else
10169   echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10171
10172 ac_cv_lib_freetype_FT_Init_FreeType=no
10173 fi
10174 rm -f conftest.err conftest.$ac_objext \
10175       conftest$ac_exeext conftest.$ac_ext
10176 LIBS=$ac_check_lib_save_LIBS
10177 fi
10178 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10179 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10180 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10181   HAVE_LIB_FREETYPE=1
10182 fi
10183
10184
10185 for ac_header in freetype/freetype.h
10186 do
10187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10189   echo "$as_me:$LINENO: checking for $ac_header" >&5
10190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10192   echo $ECHO_N "(cached) $ECHO_C" >&6
10193 fi
10194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10196 else
10197   # Is the header compilable?
10198 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h.  */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h.  */
10206 $ac_includes_default
10207 #include <$ac_header>
10208 _ACEOF
10209 rm -f conftest.$ac_objext
10210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10211   (eval $ac_compile) 2>conftest.er1
10212   ac_status=$?
10213   grep -v '^ *+' conftest.er1 >conftest.err
10214   rm -f conftest.er1
10215   cat conftest.err >&5
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); } &&
10218          { ac_try='test -z "$ac_c_werror_flag"
10219                          || test ! -s conftest.err'
10220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221   (eval $ac_try) 2>&5
10222   ac_status=$?
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); }; } &&
10225          { ac_try='test -s conftest.$ac_objext'
10226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227   (eval $ac_try) 2>&5
10228   ac_status=$?
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); }; }; then
10231   ac_header_compiler=yes
10232 else
10233   echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10235
10236 ac_header_compiler=no
10237 fi
10238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10239 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10240 echo "${ECHO_T}$ac_header_compiler" >&6
10241
10242 # Is the header present?
10243 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10245 cat >conftest.$ac_ext <<_ACEOF
10246 /* confdefs.h.  */
10247 _ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h.  */
10251 #include <$ac_header>
10252 _ACEOF
10253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10254   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10255   ac_status=$?
10256   grep -v '^ *+' conftest.er1 >conftest.err
10257   rm -f conftest.er1
10258   cat conftest.err >&5
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); } >/dev/null; then
10261   if test -s conftest.err; then
10262     ac_cpp_err=$ac_c_preproc_warn_flag
10263     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10264   else
10265     ac_cpp_err=
10266   fi
10267 else
10268   ac_cpp_err=yes
10269 fi
10270 if test -z "$ac_cpp_err"; then
10271   ac_header_preproc=yes
10272 else
10273   echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10275
10276   ac_header_preproc=no
10277 fi
10278 rm -f conftest.err conftest.$ac_ext
10279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10280 echo "${ECHO_T}$ac_header_preproc" >&6
10281
10282 # So?  What about this header?
10283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10284   yes:no: )
10285     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10287     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10289     ac_header_preproc=yes
10290     ;;
10291   no:yes:* )
10292     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10294     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10295 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10296     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10297 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10298     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10299 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10300     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10302     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10303 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10304     (
10305       cat <<\_ASBOX
10306 ## ------------------------------------------ ##
10307 ## Report this to the AC_PACKAGE_NAME lists.  ##
10308 ## ------------------------------------------ ##
10309 _ASBOX
10310     ) |
10311       sed "s/^/$as_me: WARNING:     /" >&2
10312     ;;
10313 esac
10314 echo "$as_me:$LINENO: checking for $ac_header" >&5
10315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10317   echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319   eval "$as_ac_Header=\$ac_header_preproc"
10320 fi
10321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10323
10324 fi
10325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10326   cat >>confdefs.h <<_ACEOF
10327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10328 _ACEOF
10329  HAVE_FREETYPE_FREETYPE_H=1
10330 fi
10331
10332 done
10333
10334
10335 for ac_header in ft2build.h
10336 do
10337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10339   echo "$as_me:$LINENO: checking for $ac_header" >&5
10340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10342   echo $ECHO_N "(cached) $ECHO_C" >&6
10343 fi
10344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10346 else
10347   # Is the header compilable?
10348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10350 cat >conftest.$ac_ext <<_ACEOF
10351 /* confdefs.h.  */
10352 _ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h.  */
10356 $ac_includes_default
10357 #include <$ac_header>
10358 _ACEOF
10359 rm -f conftest.$ac_objext
10360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10361   (eval $ac_compile) 2>conftest.er1
10362   ac_status=$?
10363   grep -v '^ *+' conftest.er1 >conftest.err
10364   rm -f conftest.er1
10365   cat conftest.err >&5
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); } &&
10368          { ac_try='test -z "$ac_c_werror_flag"
10369                          || test ! -s conftest.err'
10370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371   (eval $ac_try) 2>&5
10372   ac_status=$?
10373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374   (exit $ac_status); }; } &&
10375          { ac_try='test -s conftest.$ac_objext'
10376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377   (eval $ac_try) 2>&5
10378   ac_status=$?
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); }; }; then
10381   ac_header_compiler=yes
10382 else
10383   echo "$as_me: failed program was:" >&5
10384 sed 's/^/| /' conftest.$ac_ext >&5
10385
10386 ac_header_compiler=no
10387 fi
10388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10390 echo "${ECHO_T}$ac_header_compiler" >&6
10391
10392 # Is the header present?
10393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10395 cat >conftest.$ac_ext <<_ACEOF
10396 /* confdefs.h.  */
10397 _ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h.  */
10401 #include <$ac_header>
10402 _ACEOF
10403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10404   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10405   ac_status=$?
10406   grep -v '^ *+' conftest.er1 >conftest.err
10407   rm -f conftest.er1
10408   cat conftest.err >&5
10409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410   (exit $ac_status); } >/dev/null; then
10411   if test -s conftest.err; then
10412     ac_cpp_err=$ac_c_preproc_warn_flag
10413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10414   else
10415     ac_cpp_err=
10416   fi
10417 else
10418   ac_cpp_err=yes
10419 fi
10420 if test -z "$ac_cpp_err"; then
10421   ac_header_preproc=yes
10422 else
10423   echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10425
10426   ac_header_preproc=no
10427 fi
10428 rm -f conftest.err conftest.$ac_ext
10429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10430 echo "${ECHO_T}$ac_header_preproc" >&6
10431
10432 # So?  What about this header?
10433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10434   yes:no: )
10435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10439     ac_header_preproc=yes
10440     ;;
10441   no:yes:* )
10442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10454     (
10455       cat <<\_ASBOX
10456 ## ------------------------------------------ ##
10457 ## Report this to the AC_PACKAGE_NAME lists.  ##
10458 ## ------------------------------------------ ##
10459 _ASBOX
10460     ) |
10461       sed "s/^/$as_me: WARNING:     /" >&2
10462     ;;
10463 esac
10464 echo "$as_me:$LINENO: checking for $ac_header" >&5
10465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10467   echo $ECHO_N "(cached) $ECHO_C" >&6
10468 else
10469   eval "$as_ac_Header=\$ac_header_preproc"
10470 fi
10471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10473
10474 fi
10475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10476   cat >>confdefs.h <<_ACEOF
10477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10478 _ACEOF
10479  HAVE_FT2BUILD_H=1
10480 fi
10481
10482 done
10483
10484
10485 if test "x${HAVE_LIB_FREETYPE}" '!=' "x";then
10486     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
10487         HAVE_FREETYPE=1
10488     fi
10489     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
10490         HAVE_FREETYPE=1
10491     fi
10492 fi
10493
10494 if test "x${HAVE_FREETYPE}" = "x1"; then
10495     if test "x{$FREETYPE_CONFIG}" '!=' "x"; then
10496         LIBS="$LIBS "`freetype-config --libs`
10497     else
10498         LIBS="$LIBS -lfreetype"
10499     fi
10500
10501 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
10502     HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
10503 fi
10504
10505     echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
10506 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
10507
10508     cat > conftest.c << EOF
10509 $HAVE_FT2BUILD_H_DEFINE
10510
10511 #ifdef HAVE_FT2BUILD_H
10512 #include <ft2build.h>
10513 #include FT_FREETYPE_H
10514 #include FT_GLYPH_H
10515 #include FT_SIZES_H
10516 #include FT_SFNT_NAMES_H
10517 #include FT_TRUETYPE_IDS_H
10518 #include FT_OUTLINE_H
10519 #else
10520 #include <freetype/freetype.h>
10521 #include <freetype/ftglyph.h>
10522 #include <freetype/ftsizes.h>
10523 #include <freetype/ftsnames.h>
10524 #include <freetype/ttnameid.h>
10525 #include <freetype/ftoutln.h>
10526 #endif
10527
10528 int main()
10529 {
10530     FT_Library ftlibrary;
10531     FT_Face face;
10532     FT_Error error;
10533     FT_ULong charcode;
10534     FT_UInt gindex;
10535     FT_Glyph glyph;
10536     FT_BBox bbox;
10537     FT_Matrix matrix;
10538     FT_UInt i;
10539     char* name = 0;
10540     char italic, bold;
10541
10542     FT_Init_FreeType(&ftlibrary);
10543     FT_New_Face(ftlibrary, "filename", 0, &face);
10544     i = face->num_glyphs - 1;
10545     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
10546     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
10547     FT_Get_Postscript_Name(face);
10548     FT_Get_Char_Index(face, 33);
10549     FT_Get_First_Char(face, &i);
10550     FT_Get_Next_Char(face, 33, &i);
10551     if(FT_HAS_GLYPH_NAMES(face)) {
10552         FT_Get_Glyph_Name(face, 33, name, 127);
10553     }
10554     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
10555     FT_Get_Glyph(face->glyph, &glyph);
10556     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
10557     FT_Done_Glyph(glyph);
10558     FT_Done_Face(face);
10559     FT_Done_FreeType(ftlibrary);
10560     return 0;
10561 }
10562 EOF
10563
10564     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10565     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10566         echo "$as_me:$LINENO: result: yes" >&5
10567 echo "${ECHO_T}yes" >&6
10568         cat >>confdefs.h <<_ACEOF
10569 #define HAVE_FREETYPE 1
10570 _ACEOF
10571
10572         cat >>confdefs.h <<_ACEOF
10573 #define USE_FREETYPE 1
10574 _ACEOF
10575   # for ttf2tp1
10576     else
10577         echo "configure: failed program was:" >&5
10578         cat conftest.c >&5
10579         HAVE_FREETYPE=0
10580         echo "$as_me:$LINENO: result: no" >&5
10581 echo "${ECHO_T}no" >&6
10582     fi
10583     rm -f conftest*
10584 fi
10585
10586 # if the above didn't work out, reset all changes to the compiler variables.
10587 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
10588     CPPFLAGS=$OLDCPPFLAGS
10589     LIBS=$OLDLIBS
10590 fi
10591
10592
10593
10594 OLDCPPFLAGS="${CPPFLAGS}"
10595 OLDLIBS="${LIBS}"
10596
10597 if test -d /usr/include/fontconfig; then
10598     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
10599 fi
10600
10601 echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
10602 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
10603 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
10604   echo $ECHO_N "(cached) $ECHO_C" >&6
10605 else
10606   ac_check_lib_save_LIBS=$LIBS
10607 LIBS="-lfontconfig  $LIBS"
10608 cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h.  */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h.  */
10614
10615 /* Override any gcc2 internal prototype to avoid an error.  */
10616 #ifdef __cplusplus
10617 extern "C"
10618 #endif
10619 /* We use char because int might match the return type of a gcc2
10620    builtin and then its argument prototype would still apply.  */
10621 char FcInit ();
10622 int
10623 main ()
10624 {
10625 FcInit ();
10626   ;
10627   return 0;
10628 }
10629 _ACEOF
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10632   (eval $ac_link) 2>conftest.er1
10633   ac_status=$?
10634   grep -v '^ *+' conftest.er1 >conftest.err
10635   rm -f conftest.er1
10636   cat conftest.err >&5
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); } &&
10639          { ac_try='test -z "$ac_c_werror_flag"
10640                          || test ! -s conftest.err'
10641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642   (eval $ac_try) 2>&5
10643   ac_status=$?
10644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645   (exit $ac_status); }; } &&
10646          { ac_try='test -s conftest$ac_exeext'
10647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648   (eval $ac_try) 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); }; }; then
10652   ac_cv_lib_fontconfig_FcInit=yes
10653 else
10654   echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10656
10657 ac_cv_lib_fontconfig_FcInit=no
10658 fi
10659 rm -f conftest.err conftest.$ac_objext \
10660       conftest$ac_exeext conftest.$ac_ext
10661 LIBS=$ac_check_lib_save_LIBS
10662 fi
10663 echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
10664 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
10665 if test $ac_cv_lib_fontconfig_FcInit = yes; then
10666   HAVE_LIB_FONTCONFIG=1
10667 fi
10668
10669
10670 for ac_header in fontconfig.h
10671 do
10672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10674   echo "$as_me:$LINENO: checking for $ac_header" >&5
10675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10677   echo $ECHO_N "(cached) $ECHO_C" >&6
10678 fi
10679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10681 else
10682   # Is the header compilable?
10683 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10685 cat >conftest.$ac_ext <<_ACEOF
10686 /* confdefs.h.  */
10687 _ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h.  */
10691 $ac_includes_default
10692 #include <$ac_header>
10693 _ACEOF
10694 rm -f conftest.$ac_objext
10695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10696   (eval $ac_compile) 2>conftest.er1
10697   ac_status=$?
10698   grep -v '^ *+' conftest.er1 >conftest.err
10699   rm -f conftest.er1
10700   cat conftest.err >&5
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); } &&
10703          { ac_try='test -z "$ac_c_werror_flag"
10704                          || test ! -s conftest.err'
10705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706   (eval $ac_try) 2>&5
10707   ac_status=$?
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); }; } &&
10710          { ac_try='test -s conftest.$ac_objext'
10711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712   (eval $ac_try) 2>&5
10713   ac_status=$?
10714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715   (exit $ac_status); }; }; then
10716   ac_header_compiler=yes
10717 else
10718   echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10720
10721 ac_header_compiler=no
10722 fi
10723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10725 echo "${ECHO_T}$ac_header_compiler" >&6
10726
10727 # Is the header present?
10728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10730 cat >conftest.$ac_ext <<_ACEOF
10731 /* confdefs.h.  */
10732 _ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h.  */
10736 #include <$ac_header>
10737 _ACEOF
10738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10739   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10740   ac_status=$?
10741   grep -v '^ *+' conftest.er1 >conftest.err
10742   rm -f conftest.er1
10743   cat conftest.err >&5
10744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745   (exit $ac_status); } >/dev/null; then
10746   if test -s conftest.err; then
10747     ac_cpp_err=$ac_c_preproc_warn_flag
10748     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10749   else
10750     ac_cpp_err=
10751   fi
10752 else
10753   ac_cpp_err=yes
10754 fi
10755 if test -z "$ac_cpp_err"; then
10756   ac_header_preproc=yes
10757 else
10758   echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10760
10761   ac_header_preproc=no
10762 fi
10763 rm -f conftest.err conftest.$ac_ext
10764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10765 echo "${ECHO_T}$ac_header_preproc" >&6
10766
10767 # So?  What about this header?
10768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10769   yes:no: )
10770     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10774     ac_header_preproc=yes
10775     ;;
10776   no:yes:* )
10777     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10779     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10780 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10781     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10783     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10784 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10787     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10789     (
10790       cat <<\_ASBOX
10791 ## ------------------------------------------ ##
10792 ## Report this to the AC_PACKAGE_NAME lists.  ##
10793 ## ------------------------------------------ ##
10794 _ASBOX
10795     ) |
10796       sed "s/^/$as_me: WARNING:     /" >&2
10797     ;;
10798 esac
10799 echo "$as_me:$LINENO: checking for $ac_header" >&5
10800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10802   echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804   eval "$as_ac_Header=\$ac_header_preproc"
10805 fi
10806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10808
10809 fi
10810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10811   cat >>confdefs.h <<_ACEOF
10812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10813 _ACEOF
10814  HAVE_FONTCONFIG_H=1
10815 fi
10816
10817 done
10818
10819
10820 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
10821 if test "x${HAVE_FONTCONFIG_H}" != "x";then
10822     HAVE_FONTCONFIG=1
10823 fi
10824 fi
10825
10826 if test "x${HAVE_FONTCONFIG}" = "x1"; then
10827     LIBS="$LIBS -lfontconfig"
10828 echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
10829 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6
10830
10831 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
10832     #move freetype library to the end of libraries, otherwise fontconfig
10833     #won't compile.
10834     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
10835 fi
10836
10837 cat > conftest.c << EOF
10838 #include <fontconfig.h>
10839
10840 int main()
10841 {
10842     FcPattern *pattern, *match;
10843     FcResult result;
10844     FcChar8 *v;
10845     FcInit();
10846     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
10847     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
10848     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
10849     FcConfigSubstitute(0, pattern, FcMatchPattern);
10850     FcDefaultSubstitute(pattern);
10851     match = FcFontMatch(0, pattern, &result);
10852     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
10853     FcPatternPrint(pattern);
10854     FcPatternDestroy(pattern);
10855     FcPatternDestroy(match);
10856     return 0;
10857 }
10858 EOF
10859
10860     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10861     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10862         echo "$as_me:$LINENO: result: yes" >&5
10863 echo "${ECHO_T}yes" >&6
10864         cat >>confdefs.h <<_ACEOF
10865 #define HAVE_FONTCONFIG 1
10866 _ACEOF
10867
10868     else
10869         echo "configure: failed program was:" >&5
10870         cat conftest.c >&5
10871         HAVE_FONTCONFIG=0
10872         echo "$as_me:$LINENO: result: no" >&5
10873 echo "${ECHO_T}no" >&6
10874     fi
10875     rm -f conftest*
10876 fi
10877
10878 # if the above didn't work out, reset all changes to the compiler variables.
10879 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
10880     CPPFLAGS=$OLDCPPFLAGS
10881     LIBS=$OLDLIBS
10882 fi
10883
10884
10885 # ------------------------------------------------------------------
10886
10887 lame_objects=
10888 lame_makefile=
10889 if test "x${DISABLE_LAME}" = "xtrue"; then
10890     echo "*" Disabling lame support...
10891 else
10892     # old lame code at lib/lame
10893     if test -f lib/lame/Makefile.in; then
10894         lame_objects="lame/psymodel.o lame/fft.o lame/newmdct.o lame/quantize.o lame/takehiro.o lame/reservoir.o lame/quantize_pvt.o lame/vbrquantize.o lame/encoder.o lame/id3tag.o lame/version.o lame/tables.o lame/util.o lame/bitstream.o lame/set_get.o lame/VbrTag.o lame/lame.o"
10895         lame_makefile="lib/lame/Makefile"
10896         CPPFLAGS="$CPPFLAGS -Ilame"
10897         cat >>confdefs.h <<_ACEOF
10898 #define HAVE_LAME 1
10899 _ACEOF
10900
10901     else
10902         if test -d /usr/include/lame; then
10903             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
10904         else
10905             if test -d /usr/local/include/lame; then
10906                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
10907             fi
10908         fi
10909
10910 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
10911 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
10912 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
10913   echo $ECHO_N "(cached) $ECHO_C" >&6
10914 else
10915   ac_check_lib_save_LIBS=$LIBS
10916 LIBS="-lmp3lame  $LIBS"
10917 cat >conftest.$ac_ext <<_ACEOF
10918 /* confdefs.h.  */
10919 _ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h.  */
10923
10924 /* Override any gcc2 internal prototype to avoid an error.  */
10925 #ifdef __cplusplus
10926 extern "C"
10927 #endif
10928 /* We use char because int might match the return type of a gcc2
10929    builtin and then its argument prototype would still apply.  */
10930 char lame_init ();
10931 int
10932 main ()
10933 {
10934 lame_init ();
10935   ;
10936   return 0;
10937 }
10938 _ACEOF
10939 rm -f conftest.$ac_objext conftest$ac_exeext
10940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10941   (eval $ac_link) 2>conftest.er1
10942   ac_status=$?
10943   grep -v '^ *+' conftest.er1 >conftest.err
10944   rm -f conftest.er1
10945   cat conftest.err >&5
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); } &&
10948          { ac_try='test -z "$ac_c_werror_flag"
10949                          || test ! -s conftest.err'
10950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951   (eval $ac_try) 2>&5
10952   ac_status=$?
10953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954   (exit $ac_status); }; } &&
10955          { ac_try='test -s conftest$ac_exeext'
10956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957   (eval $ac_try) 2>&5
10958   ac_status=$?
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); }; }; then
10961   ac_cv_lib_mp3lame_lame_init=yes
10962 else
10963   echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10965
10966 ac_cv_lib_mp3lame_lame_init=no
10967 fi
10968 rm -f conftest.err conftest.$ac_objext \
10969       conftest$ac_exeext conftest.$ac_ext
10970 LIBS=$ac_check_lib_save_LIBS
10971 fi
10972 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
10973 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
10974 if test $ac_cv_lib_mp3lame_lame_init = yes; then
10975   cat >>confdefs.h <<_ACEOF
10976 #define HAVE_LIBMP3LAME 1
10977 _ACEOF
10978
10979   LIBS="-lmp3lame $LIBS"
10980
10981 else
10982   NO_LIBMP3LAME=1
10983 fi
10984
10985
10986 for ac_header in lame.h
10987 do
10988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10990   echo "$as_me:$LINENO: checking for $ac_header" >&5
10991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10993   echo $ECHO_N "(cached) $ECHO_C" >&6
10994 fi
10995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10997 else
10998   # Is the header compilable?
10999 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11001 cat >conftest.$ac_ext <<_ACEOF
11002 /* confdefs.h.  */
11003 _ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h.  */
11007 $ac_includes_default
11008 #include <$ac_header>
11009 _ACEOF
11010 rm -f conftest.$ac_objext
11011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11012   (eval $ac_compile) 2>conftest.er1
11013   ac_status=$?
11014   grep -v '^ *+' conftest.er1 >conftest.err
11015   rm -f conftest.er1
11016   cat conftest.err >&5
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); } &&
11019          { ac_try='test -z "$ac_c_werror_flag"
11020                          || test ! -s conftest.err'
11021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022   (eval $ac_try) 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); }; } &&
11026          { ac_try='test -s conftest.$ac_objext'
11027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028   (eval $ac_try) 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); }; }; then
11032   ac_header_compiler=yes
11033 else
11034   echo "$as_me: failed program was:" >&5
11035 sed 's/^/| /' conftest.$ac_ext >&5
11036
11037 ac_header_compiler=no
11038 fi
11039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11041 echo "${ECHO_T}$ac_header_compiler" >&6
11042
11043 # Is the header present?
11044 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11046 cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h.  */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h.  */
11052 #include <$ac_header>
11053 _ACEOF
11054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11055   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11056   ac_status=$?
11057   grep -v '^ *+' conftest.er1 >conftest.err
11058   rm -f conftest.er1
11059   cat conftest.err >&5
11060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); } >/dev/null; then
11062   if test -s conftest.err; then
11063     ac_cpp_err=$ac_c_preproc_warn_flag
11064     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11065   else
11066     ac_cpp_err=
11067   fi
11068 else
11069   ac_cpp_err=yes
11070 fi
11071 if test -z "$ac_cpp_err"; then
11072   ac_header_preproc=yes
11073 else
11074   echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11076
11077   ac_header_preproc=no
11078 fi
11079 rm -f conftest.err conftest.$ac_ext
11080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11081 echo "${ECHO_T}$ac_header_preproc" >&6
11082
11083 # So?  What about this header?
11084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11085   yes:no: )
11086     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11088     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11090     ac_header_preproc=yes
11091     ;;
11092   no:yes:* )
11093     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11095     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11096 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11097     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11099     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11100 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11103     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11105     (
11106       cat <<\_ASBOX
11107 ## ------------------------------------------ ##
11108 ## Report this to the AC_PACKAGE_NAME lists.  ##
11109 ## ------------------------------------------ ##
11110 _ASBOX
11111     ) |
11112       sed "s/^/$as_me: WARNING:     /" >&2
11113     ;;
11114 esac
11115 echo "$as_me:$LINENO: checking for $ac_header" >&5
11116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11118   echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120   eval "$as_ac_Header=\$ac_header_preproc"
11121 fi
11122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11124
11125 fi
11126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11127   cat >>confdefs.h <<_ACEOF
11128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11129 _ACEOF
11130
11131 fi
11132
11133 done
11134
11135         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
11136             cat >>confdefs.h <<_ACEOF
11137 #define HAVE_LAME 1
11138 _ACEOF
11139
11140         fi
11141     fi
11142 fi
11143
11144
11145 # ------------------------------------------------------------------
11146
11147
11148
11149 for ac_prog in avifile-config
11150 do
11151   # Extract the first word of "$ac_prog", so it can be a program name with args.
11152 set dummy $ac_prog; ac_word=$2
11153 echo "$as_me:$LINENO: checking for $ac_word" >&5
11154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11155 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
11156   echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158   if test -n "$AVIFILE_CONFIG"; then
11159   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
11160 else
11161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162 for as_dir in $PATH
11163 do
11164   IFS=$as_save_IFS
11165   test -z "$as_dir" && as_dir=.
11166   for ac_exec_ext in '' $ac_executable_extensions; do
11167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11168     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
11169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11170     break 2
11171   fi
11172 done
11173 done
11174
11175 fi
11176 fi
11177 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
11178 if test -n "$AVIFILE_CONFIG"; then
11179   echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
11180 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
11181 else
11182   echo "$as_me:$LINENO: result: no" >&5
11183 echo "${ECHO_T}no" >&6
11184 fi
11185
11186   test -n "$AVIFILE_CONFIG" && break
11187 done
11188
11189
11190 if test "x$AVIFILE_CONFIG" '!=' "x";then
11191     OLDCPPFLAGS="$CPPFLAGS"
11192     #OLDLDFLAGS="$LDFLAGS"
11193     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
11194     #LDFLAGS="$LDFLAGS `$AVIFILE_CONFIG --libs`"
11195
11196
11197 for ac_header in avifile/version.h version.h
11198 do
11199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11201   echo "$as_me:$LINENO: checking for $ac_header" >&5
11202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11204   echo $ECHO_N "(cached) $ECHO_C" >&6
11205 fi
11206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11208 else
11209   # Is the header compilable?
11210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11212 cat >conftest.$ac_ext <<_ACEOF
11213 /* confdefs.h.  */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h.  */
11218 $ac_includes_default
11219 #include <$ac_header>
11220 _ACEOF
11221 rm -f conftest.$ac_objext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223   (eval $ac_compile) 2>conftest.er1
11224   ac_status=$?
11225   grep -v '^ *+' conftest.er1 >conftest.err
11226   rm -f conftest.er1
11227   cat conftest.err >&5
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); } &&
11230          { ac_try='test -z "$ac_c_werror_flag"
11231                          || test ! -s conftest.err'
11232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233   (eval $ac_try) 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); }; } &&
11237          { ac_try='test -s conftest.$ac_objext'
11238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239   (eval $ac_try) 2>&5
11240   ac_status=$?
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); }; }; then
11243   ac_header_compiler=yes
11244 else
11245   echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11247
11248 ac_header_compiler=no
11249 fi
11250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11252 echo "${ECHO_T}$ac_header_compiler" >&6
11253
11254 # Is the header present?
11255 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11257 cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h.  */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h.  */
11263 #include <$ac_header>
11264 _ACEOF
11265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11267   ac_status=$?
11268   grep -v '^ *+' conftest.er1 >conftest.err
11269   rm -f conftest.er1
11270   cat conftest.err >&5
11271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272   (exit $ac_status); } >/dev/null; then
11273   if test -s conftest.err; then
11274     ac_cpp_err=$ac_c_preproc_warn_flag
11275     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11276   else
11277     ac_cpp_err=
11278   fi
11279 else
11280   ac_cpp_err=yes
11281 fi
11282 if test -z "$ac_cpp_err"; then
11283   ac_header_preproc=yes
11284 else
11285   echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11287
11288   ac_header_preproc=no
11289 fi
11290 rm -f conftest.err conftest.$ac_ext
11291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11292 echo "${ECHO_T}$ac_header_preproc" >&6
11293
11294 # So?  What about this header?
11295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11296   yes:no: )
11297     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11301     ac_header_preproc=yes
11302     ;;
11303   no:yes:* )
11304     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11306     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11307 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11308     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11310     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11311 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11314     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11316     (
11317       cat <<\_ASBOX
11318 ## ------------------------------------------ ##
11319 ## Report this to the AC_PACKAGE_NAME lists.  ##
11320 ## ------------------------------------------ ##
11321 _ASBOX
11322     ) |
11323       sed "s/^/$as_me: WARNING:     /" >&2
11324     ;;
11325 esac
11326 echo "$as_me:$LINENO: checking for $ac_header" >&5
11327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11329   echo $ECHO_N "(cached) $ECHO_C" >&6
11330 else
11331   eval "$as_ac_Header=\$ac_header_preproc"
11332 fi
11333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11335
11336 fi
11337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11338   cat >>confdefs.h <<_ACEOF
11339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11340 _ACEOF
11341
11342 fi
11343
11344 done
11345
11346     #LDFLAGS="$OLDLDFLAGS"
11347     CPPFLAGS="$OLDCPPFLAGS"
11348 fi
11349
11350 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
11351 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
11352
11353 if test "x${ac_cv_header_version_h}" '=' "xyes";then
11354     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
11355 fi
11356 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
11357     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
11358 fi
11359
11360 cat > conftest.cpp << EOF
11361
11362 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
11363 // so we have to introduce them this way
11364 $HAVE_VERSION_H_DEFINE
11365 $HAVE_AVIFILE_VERSION_H_DEFINE
11366
11367 #ifdef HAVE_VERSION_H
11368   #include <version.h>
11369 #endif
11370 #ifdef HAVE_AVIFILE_VERSION_H
11371   #include <avifile/version.h>
11372 #endif
11373
11374 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
11375    #include <avifile.h>
11376    #include <aviplay.h>
11377    #include <fourcc.h>
11378    #include <creators.h>
11379    #include <StreamInfo.h>
11380    #define VERSION6
11381 #else
11382    #include <avifile.h>
11383    #include <aviplay.h>
11384    #include <aviutil.h>
11385    #define Width width
11386    #define Height height
11387    #define Data data
11388    #define Bpp bpp
11389 #endif
11390
11391 void test()
11392 {
11393   IAviReadFile* player;
11394   IAviReadStream* astream;
11395   IAviReadStream* vstream;
11396   player = CreateIAviReadFile(0);
11397   astream = player->GetStream(0, AviStream::Audio);
11398   vstream = player->GetStream(0, AviStream::Video);
11399   vstream -> StartStreaming();
11400   astream -> StartStreaming();
11401 #ifndef VERSION6
11402   MainAVIHeader head;
11403   player->GetFileHeader(&head);
11404   head.dwMicroSecPerFrame;
11405   head.dwTotalFrames;
11406   head.dwStreams;
11407   head.dwWidth;
11408   head.dwHeight;
11409   head.dwMicroSecPerFrame;
11410   astream->GetEndPos(),
11411   astream->GetEndTime());
11412   player->StreamCount();
11413 #else
11414   StreamInfo*audioinfo;
11415   StreamInfo*videoinfo;
11416   audioinfo = astream->GetStreamInfo();
11417   videoinfo = vstream->GetStreamInfo();
11418   videoinfo->GetVideoWidth();
11419   videoinfo->GetVideoHeight();
11420   audioinfo->GetAudioSamplesPerSec();
11421   videoinfo->GetFps();
11422 #endif
11423   CImage*img = vstream->GetFrame();
11424   img->ToRGB();
11425   img->Data();
11426   img->Bpp();
11427   img->Width();
11428   img->Height();
11429   WAVEFORMATEX wave;
11430   astream->GetAudioFormatInfo(&wave,0);
11431   uint_t a,b;
11432   astream->ReadFrames(0,0,0,a,b);
11433 }
11434 int main (int argc, char*argv)
11435 {
11436     return 0;
11437 }
11438 EOF
11439
11440 if test "x$AVIFILE_CONFIG" '!=' "x";then
11441     ac_link='$CXX $CPPFLAGS $CXXFLAGS `$AVIFILE_CONFIG --cflags` conftest.cpp `$AVIFILE_CONFIG --libs` -o conftest${ac_exeext}'
11442     if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
11443       echo "$as_me:$LINENO: result: yes" >&5
11444 echo "${ECHO_T}yes" >&6
11445       AVIFILE=true
11446       export AVIFILE
11447       cat >>confdefs.h <<_ACEOF
11448 #define AVIFILE true
11449 _ACEOF
11450
11451     else
11452       echo "configure: failed program was:" >&5
11453       cat conftest.cpp >&5
11454       echo "$as_me:$LINENO: result: no" >&5
11455 echo "${ECHO_T}no" >&6
11456     fi
11457 else
11458     echo "$as_me:$LINENO: result: no" >&5
11459 echo "${ECHO_T}no" >&6
11460 fi
11461 rm -f conftest*
11462
11463
11464 # ------------------------------------------------------------------
11465
11466 if test "x${UNCOMPRESS}" = "xgzip"; then
11467     cat >>confdefs.h <<_ACEOF
11468 #define USE_GZIP 1
11469 _ACEOF
11470
11471 fi
11472
11473
11474 # ------------------------------------------------------------------
11475
11476
11477 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
11478 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
11479 # should we support python versions below 2.2?
11480 if test -f "/usr/lib/python2.2/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.2/Python.h";then
11481     PY_VERSION=2.2
11482 fi
11483 if test -f "/usr/lib/python2.3/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.3/Python.h";then
11484     PY_VERSION=2.3
11485 fi
11486 if test -f "/usr/lib/python2.4/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.4/Python.h";then
11487     PY_VERSION=2.4
11488 fi
11489
11490 if test "x$PY_VERSION" "!=" "x"; then
11491     echo "$as_me:$LINENO: result: python$PY_VERSION" >&5
11492 echo "${ECHO_T}python$PY_VERSION" >&6
11493     if test "x$PYTHON_LIB" = "x";then
11494         PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
11495     fi
11496     if test "x$PYTHON_INCLUDES" = "x";then
11497         PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
11498     fi
11499     export PYTHON_INCLUDES PYTHON_LIB
11500
11501
11502     echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
11503 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
11504
11505     cat > conftest.c << EOF
11506 #include <Python.h>
11507 #include <Imaging.h>
11508
11509 int main(int argn, char*argv)
11510 {
11511     return Py_Main(argn, argv);
11512 }
11513 bli bla blo
11514 EOF
11515     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
11516     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11517         echo "$as_me:$LINENO: result: yes" >&5
11518 echo "${ECHO_T}yes" >&6
11519         PYTHON_OK=yes
11520     else
11521         echo "configure: failed program was:" >&5
11522         cat conftest.c >&5
11523         echo "$as_me:$LINENO: result: no" >&5
11524 echo "${ECHO_T}no" >&6
11525     fi
11526     rm -f conftest*
11527 else
11528     echo "$as_me:$LINENO: result: nope" >&5
11529 echo "${ECHO_T}nope" >&6
11530 fi
11531
11532
11533 if test "x$PYTHON_OK" '!=' "xyes";then
11534     echo all install uninstall clean: > lib/python/Makefile
11535     # fail silently- the most users won't have any need for the
11536     # python interface anyway
11537 else
11538     pythonrfxswf="lib/python/Makefile"
11539 fi
11540
11541 # ------------------------------------------------------------------
11542
11543 echo "$as_me:$LINENO: checking for missing libraries" >&5
11544 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
11545
11546 if test "x$ZLIBMISSING" = "xtrue";then
11547     MISSINGLIBS="${MISSINGLIBS} zlib"
11548     DISABLEPNG2SWF=true;
11549 fi
11550 if test "x$JPEGLIBMISSING" = "xtrue";then
11551     MISSINGLIBS="${MISSINGLIBS} jpeglib"
11552     DISABLEPDF2SWF=true;
11553     DISABLEJPEG2SWF=true;
11554 fi
11555 if test "x$T1LIBMISSING" = "xtrue";then
11556     MISSINGLIBS="${MISSINGLIBS} t1lib"
11557 fi
11558
11559 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
11560  DISABLEPDF2SWF=true;
11561  DISABLEJPEG2SWF=true;
11562  MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
11563 fi
11564 if test "x$HAVE_FREETYPE" != "x1"; then
11565  DISABLEPDF2SWF=true;
11566  MISSINGLIBS="${MISSINGLIBS} freetype"
11567 fi
11568 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
11569  DISABLEPDF2SWF=true;
11570  MISSINGLIBS="${MISSINGLIBS} t1lib.h"
11571 fi
11572 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
11573  DISABLEPNG2SWF=true;
11574  MISSINGLIBS="${MISSINGLIBS} zlib.h"
11575 fi
11576 if test "x${AVIFILE}" != "xtrue"; then
11577  MISSINGLIBS="${MISSINGLIBS} avifile"
11578 fi
11579
11580 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11581 echo "${ECHO_T}${MISSINGLIBS}" >&6
11582
11583 # ------------------------------------------------------------------
11584
11585 if test "x${MISSINGLIBS}" '!=' "x"; then
11586   echo "***************************************************"
11587   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11588 fi
11589
11590 avi2swf="avi2swf/Makefile"
11591 if test "x${AVIFILE}" != "xtrue"; then
11592  echo "* Disabling avi2swf tool..."
11593  echo all install uninstall clean: > avi2swf/Makefile
11594  avi2swf=
11595 fi
11596
11597 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
11598 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11599   echo "* Disabling pdf2swf tool..."
11600   rm -f pdf2swf/Makefile
11601   echo all install uninstall clean: > pdf2swf/Makefile
11602   pdf2swf_makefile=""
11603 fi
11604
11605 if test "x${ZLIBMISSING}" = "xtrue"; then
11606   echo
11607   echo "* Warning! Without zlib, you will not be able to read"
11608   echo "* or write compressed Flash MX files!"
11609 fi
11610
11611 JPEG2SWF='jpeg2swf$(E)'
11612 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11613   echo "* Disabling jpeg2swf tool..."
11614   JPEG2SWF=
11615 fi
11616 export JPEG2SWF
11617
11618
11619 PNG2SWF='png2swf$(E)'
11620 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11621   echo "* Disabling png2swf tool..."
11622   PNG2SWF=
11623 fi
11624 export PNG2SWF
11625
11626
11627 if test "x${MISSINGLIBS}" '!=' "x"; then
11628   echo "***************************************************"
11629 fi
11630
11631 # ------------------------------------------------------------------
11632
11633 if test -f "release.in"; then release_in="./release"; fi
11634 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
11635
11636           ac_config_files="$ac_config_files ${FILES}"
11637
11638 cat >confcache <<\_ACEOF
11639 # This file is a shell script that caches the results of configure
11640 # tests run on this system so they can be shared between configure
11641 # scripts and configure runs, see configure's option --config-cache.
11642 # It is not useful on other systems.  If it contains results you don't
11643 # want to keep, you may remove or edit it.
11644 #
11645 # config.status only pays attention to the cache file if you give it
11646 # the --recheck option to rerun configure.
11647 #
11648 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11649 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11650 # following values.
11651
11652 _ACEOF
11653
11654 # The following way of writing the cache mishandles newlines in values,
11655 # but we know of no workaround that is simple, portable, and efficient.
11656 # So, don't put newlines in cache variables' values.
11657 # Ultrix sh set writes to stderr and can't be redirected directly,
11658 # and sets the high bit in the cache file unless we assign to the vars.
11659 {
11660   (set) 2>&1 |
11661     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11662     *ac_space=\ *)
11663       # `set' does not quote correctly, so add quotes (double-quote
11664       # substitution turns \\\\ into \\, and sed turns \\ into \).
11665       sed -n \
11666         "s/'/'\\\\''/g;
11667           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11668       ;;
11669     *)
11670       # `set' quotes correctly as required by POSIX, so do not add quotes.
11671       sed -n \
11672         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11673       ;;
11674     esac;
11675 } |
11676   sed '
11677      t clear
11678      : clear
11679      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11680      t end
11681      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11682      : end' >>confcache
11683 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11684   if test -w $cache_file; then
11685     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11686     cat confcache >$cache_file
11687   else
11688     echo "not updating unwritable cache $cache_file"
11689   fi
11690 fi
11691 rm -f confcache
11692
11693 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11694 # Let make expand exec_prefix.
11695 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11696
11697 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11698 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11699 # trailing colons and then remove the whole line if VPATH becomes empty
11700 # (actually we leave an empty line to preserve line numbers).
11701 if test "x$srcdir" = x.; then
11702   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11703 s/:*\$(srcdir):*/:/;
11704 s/:*\${srcdir}:*/:/;
11705 s/:*@srcdir@:*/:/;
11706 s/^\([^=]*=[     ]*\):*/\1/;
11707 s/:*$//;
11708 s/^[^=]*=[       ]*$//;
11709 }'
11710 fi
11711
11712 DEFS=-DHAVE_CONFIG_H
11713
11714 ac_libobjs=
11715 ac_ltlibobjs=
11716 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11717   # 1. Remove the extension, and $U if already installed.
11718   ac_i=`echo "$ac_i" |
11719          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11720   # 2. Add them.
11721   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11722   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11723 done
11724 LIBOBJS=$ac_libobjs
11725
11726 LTLIBOBJS=$ac_ltlibobjs
11727
11728
11729
11730 : ${CONFIG_STATUS=./config.status}
11731 ac_clean_files_save=$ac_clean_files
11732 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11733 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11734 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11735 cat >$CONFIG_STATUS <<_ACEOF
11736 #! $SHELL
11737 # Generated by $as_me.
11738 # Run this file to recreate the current configuration.
11739 # Compiler output produced by configure, useful for debugging
11740 # configure, is in config.log if it exists.
11741
11742 debug=false
11743 ac_cs_recheck=false
11744 ac_cs_silent=false
11745 SHELL=\${CONFIG_SHELL-$SHELL}
11746 _ACEOF
11747
11748 cat >>$CONFIG_STATUS <<\_ACEOF
11749 ## --------------------- ##
11750 ## M4sh Initialization.  ##
11751 ## --------------------- ##
11752
11753 # Be Bourne compatible
11754 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11755   emulate sh
11756   NULLCMD=:
11757   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11758   # is contrary to our usage.  Disable this feature.
11759   alias -g '${1+"$@"}'='"$@"'
11760 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11761   set -o posix
11762 fi
11763 DUALCASE=1; export DUALCASE # for MKS sh
11764
11765 # Support unset when possible.
11766 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11767   as_unset=unset
11768 else
11769   as_unset=false
11770 fi
11771
11772
11773 # Work around bugs in pre-3.0 UWIN ksh.
11774 $as_unset ENV MAIL MAILPATH
11775 PS1='$ '
11776 PS2='> '
11777 PS4='+ '
11778
11779 # NLS nuisances.
11780 for as_var in \
11781   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11782   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11783   LC_TELEPHONE LC_TIME
11784 do
11785   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11786     eval $as_var=C; export $as_var
11787   else
11788     $as_unset $as_var
11789   fi
11790 done
11791
11792 # Required to use basename.
11793 if expr a : '\(a\)' >/dev/null 2>&1; then
11794   as_expr=expr
11795 else
11796   as_expr=false
11797 fi
11798
11799 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11800   as_basename=basename
11801 else
11802   as_basename=false
11803 fi
11804
11805
11806 # Name of the executable.
11807 as_me=`$as_basename "$0" ||
11808 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11809          X"$0" : 'X\(//\)$' \| \
11810          X"$0" : 'X\(/\)$' \| \
11811          .     : '\(.\)' 2>/dev/null ||
11812 echo X/"$0" |
11813     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11814           /^X\/\(\/\/\)$/{ s//\1/; q; }
11815           /^X\/\(\/\).*/{ s//\1/; q; }
11816           s/.*/./; q'`
11817
11818
11819 # PATH needs CR, and LINENO needs CR and PATH.
11820 # Avoid depending upon Character Ranges.
11821 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11822 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11823 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11824 as_cr_digits='0123456789'
11825 as_cr_alnum=$as_cr_Letters$as_cr_digits
11826
11827 # The user is always right.
11828 if test "${PATH_SEPARATOR+set}" != set; then
11829   echo "#! /bin/sh" >conf$$.sh
11830   echo  "exit 0"   >>conf$$.sh
11831   chmod +x conf$$.sh
11832   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11833     PATH_SEPARATOR=';'
11834   else
11835     PATH_SEPARATOR=:
11836   fi
11837   rm -f conf$$.sh
11838 fi
11839
11840
11841   as_lineno_1=$LINENO
11842   as_lineno_2=$LINENO
11843   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11844   test "x$as_lineno_1" != "x$as_lineno_2" &&
11845   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11846   # Find who we are.  Look in the path if we contain no path at all
11847   # relative or not.
11848   case $0 in
11849     *[\\/]* ) as_myself=$0 ;;
11850     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11851 for as_dir in $PATH
11852 do
11853   IFS=$as_save_IFS
11854   test -z "$as_dir" && as_dir=.
11855   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11856 done
11857
11858        ;;
11859   esac
11860   # We did not find ourselves, most probably we were run as `sh COMMAND'
11861   # in which case we are not to be found in the path.
11862   if test "x$as_myself" = x; then
11863     as_myself=$0
11864   fi
11865   if test ! -f "$as_myself"; then
11866     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11867 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11868    { (exit 1); exit 1; }; }
11869   fi
11870   case $CONFIG_SHELL in
11871   '')
11872     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11874 do
11875   IFS=$as_save_IFS
11876   test -z "$as_dir" && as_dir=.
11877   for as_base in sh bash ksh sh5; do
11878          case $as_dir in
11879          /*)
11880            if ("$as_dir/$as_base" -c '
11881   as_lineno_1=$LINENO
11882   as_lineno_2=$LINENO
11883   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11884   test "x$as_lineno_1" != "x$as_lineno_2" &&
11885   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11886              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11887              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11888              CONFIG_SHELL=$as_dir/$as_base
11889              export CONFIG_SHELL
11890              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11891            fi;;
11892          esac
11893        done
11894 done
11895 ;;
11896   esac
11897
11898   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11899   # uniformly replaced by the line number.  The first 'sed' inserts a
11900   # line-number line before each line; the second 'sed' does the real
11901   # work.  The second script uses 'N' to pair each line-number line
11902   # with the numbered line, and appends trailing '-' during
11903   # substitution so that $LINENO is not a special case at line end.
11904   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11905   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11906   sed '=' <$as_myself |
11907     sed '
11908       N
11909       s,$,-,
11910       : loop
11911       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11912       t loop
11913       s,-$,,
11914       s,^['$as_cr_digits']*\n,,
11915     ' >$as_me.lineno &&
11916   chmod +x $as_me.lineno ||
11917     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11918 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11919    { (exit 1); exit 1; }; }
11920
11921   # Don't try to exec as it changes $[0], causing all sort of problems
11922   # (the dirname of $[0] is not the place where we might find the
11923   # original and so on.  Autoconf is especially sensible to this).
11924   . ./$as_me.lineno
11925   # Exit status is that of the last command.
11926   exit
11927 }
11928
11929
11930 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11931   *c*,-n*) ECHO_N= ECHO_C='
11932 ' ECHO_T='      ' ;;
11933   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11934   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11935 esac
11936
11937 if expr a : '\(a\)' >/dev/null 2>&1; then
11938   as_expr=expr
11939 else
11940   as_expr=false
11941 fi
11942
11943 rm -f conf$$ conf$$.exe conf$$.file
11944 echo >conf$$.file
11945 if ln -s conf$$.file conf$$ 2>/dev/null; then
11946   # We could just check for DJGPP; but this test a) works b) is more generic
11947   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11948   if test -f conf$$.exe; then
11949     # Don't use ln at all; we don't have any links
11950     as_ln_s='cp -p'
11951   else
11952     as_ln_s='ln -s'
11953   fi
11954 elif ln conf$$.file conf$$ 2>/dev/null; then
11955   as_ln_s=ln
11956 else
11957   as_ln_s='cp -p'
11958 fi
11959 rm -f conf$$ conf$$.exe conf$$.file
11960
11961 if mkdir -p . 2>/dev/null; then
11962   as_mkdir_p=:
11963 else
11964   test -d ./-p && rmdir ./-p
11965   as_mkdir_p=false
11966 fi
11967
11968 as_executable_p="test -f"
11969
11970 # Sed expression to map a string onto a valid CPP name.
11971 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11972
11973 # Sed expression to map a string onto a valid variable name.
11974 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11975
11976
11977 # IFS
11978 # We need space, tab and new line, in precisely that order.
11979 as_nl='
11980 '
11981 IFS="   $as_nl"
11982
11983 # CDPATH.
11984 $as_unset CDPATH
11985
11986 exec 6>&1
11987
11988 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11989 # report actual input values of CONFIG_FILES etc. instead of their
11990 # values after options handling.  Logging --version etc. is OK.
11991 exec 5>>config.log
11992 {
11993   echo
11994   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11995 ## Running $as_me. ##
11996 _ASBOX
11997 } >&5
11998 cat >&5 <<_CSEOF
11999
12000 This file was extended by $as_me, which was
12001 generated by GNU Autoconf 2.59.  Invocation command line was
12002
12003   CONFIG_FILES    = $CONFIG_FILES
12004   CONFIG_HEADERS  = $CONFIG_HEADERS
12005   CONFIG_LINKS    = $CONFIG_LINKS
12006   CONFIG_COMMANDS = $CONFIG_COMMANDS
12007   $ $0 $@
12008
12009 _CSEOF
12010 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12011 echo >&5
12012 _ACEOF
12013
12014 # Files that config.status was made for.
12015 if test -n "$ac_config_files"; then
12016   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12017 fi
12018
12019 if test -n "$ac_config_headers"; then
12020   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12021 fi
12022
12023 if test -n "$ac_config_links"; then
12024   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12025 fi
12026
12027 if test -n "$ac_config_commands"; then
12028   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12029 fi
12030
12031 cat >>$CONFIG_STATUS <<\_ACEOF
12032
12033 ac_cs_usage="\
12034 \`$as_me' instantiates files from templates according to the
12035 current configuration.
12036
12037 Usage: $0 [OPTIONS] [FILE]...
12038
12039   -h, --help       print this help, then exit
12040   -V, --version    print version number, then exit
12041   -q, --quiet      do not print progress messages
12042   -d, --debug      don't remove temporary files
12043       --recheck    update $as_me by reconfiguring in the same conditions
12044   --file=FILE[:TEMPLATE]
12045                    instantiate the configuration file FILE
12046   --header=FILE[:TEMPLATE]
12047                    instantiate the configuration header FILE
12048
12049 Configuration files:
12050 $config_files
12051
12052 Configuration headers:
12053 $config_headers
12054
12055 Report bugs to <bug-autoconf@gnu.org>."
12056 _ACEOF
12057
12058 cat >>$CONFIG_STATUS <<_ACEOF
12059 ac_cs_version="\\
12060 config.status
12061 configured by $0, generated by GNU Autoconf 2.59,
12062   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12063
12064 Copyright (C) 2003 Free Software Foundation, Inc.
12065 This config.status script is free software; the Free Software Foundation
12066 gives unlimited permission to copy, distribute and modify it."
12067 srcdir=$srcdir
12068 INSTALL="$INSTALL"
12069 _ACEOF
12070
12071 cat >>$CONFIG_STATUS <<\_ACEOF
12072 # If no file are specified by the user, then we need to provide default
12073 # value.  By we need to know if files were specified by the user.
12074 ac_need_defaults=:
12075 while test $# != 0
12076 do
12077   case $1 in
12078   --*=*)
12079     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12080     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12081     ac_shift=:
12082     ;;
12083   -*)
12084     ac_option=$1
12085     ac_optarg=$2
12086     ac_shift=shift
12087     ;;
12088   *) # This is not an option, so the user has probably given explicit
12089      # arguments.
12090      ac_option=$1
12091      ac_need_defaults=false;;
12092   esac
12093
12094   case $ac_option in
12095   # Handling of the options.
12096 _ACEOF
12097 cat >>$CONFIG_STATUS <<\_ACEOF
12098   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12099     ac_cs_recheck=: ;;
12100   --version | --vers* | -V )
12101     echo "$ac_cs_version"; exit 0 ;;
12102   --he | --h)
12103     # Conflict between --help and --header
12104     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12105 Try \`$0 --help' for more information." >&5
12106 echo "$as_me: error: ambiguous option: $1
12107 Try \`$0 --help' for more information." >&2;}
12108    { (exit 1); exit 1; }; };;
12109   --help | --hel | -h )
12110     echo "$ac_cs_usage"; exit 0 ;;
12111   --debug | --d* | -d )
12112     debug=: ;;
12113   --file | --fil | --fi | --f )
12114     $ac_shift
12115     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12116     ac_need_defaults=false;;
12117   --header | --heade | --head | --hea )
12118     $ac_shift
12119     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12120     ac_need_defaults=false;;
12121   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12122   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12123     ac_cs_silent=: ;;
12124
12125   # This is an error.
12126   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12127 Try \`$0 --help' for more information." >&5
12128 echo "$as_me: error: unrecognized option: $1
12129 Try \`$0 --help' for more information." >&2;}
12130    { (exit 1); exit 1; }; } ;;
12131
12132   *) ac_config_targets="$ac_config_targets $1" ;;
12133
12134   esac
12135   shift
12136 done
12137
12138 ac_configure_extra_args=
12139
12140 if $ac_cs_silent; then
12141   exec 6>/dev/null
12142   ac_configure_extra_args="$ac_configure_extra_args --silent"
12143 fi
12144
12145 _ACEOF
12146 cat >>$CONFIG_STATUS <<_ACEOF
12147 if \$ac_cs_recheck; then
12148   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12149   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12150 fi
12151
12152 _ACEOF
12153
12154
12155
12156
12157
12158 cat >>$CONFIG_STATUS <<\_ACEOF
12159 for ac_config_target in $ac_config_targets
12160 do
12161   case "$ac_config_target" in
12162   # Handling of arguments.
12163   "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
12164   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12165   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12166 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12167    { (exit 1); exit 1; }; };;
12168   esac
12169 done
12170
12171 # If the user did not use the arguments to specify the items to instantiate,
12172 # then the envvar interface is used.  Set only those that are not.
12173 # We use the long form for the default assignment because of an extremely
12174 # bizarre bug on SunOS 4.1.3.
12175 if $ac_need_defaults; then
12176   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12177   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12178 fi
12179
12180 # Have a temporary directory for convenience.  Make it in the build tree
12181 # simply because there is no reason to put it here, and in addition,
12182 # creating and moving files from /tmp can sometimes cause problems.
12183 # Create a temporary directory, and hook for its removal unless debugging.
12184 $debug ||
12185 {
12186   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12187   trap '{ (exit 1); exit 1; }' 1 2 13 15
12188 }
12189
12190 # Create a (secure) tmp directory for tmp files.
12191
12192 {
12193   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12194   test -n "$tmp" && test -d "$tmp"
12195 }  ||
12196 {
12197   tmp=./confstat$$-$RANDOM
12198   (umask 077 && mkdir $tmp)
12199 } ||
12200 {
12201    echo "$me: cannot create a temporary directory in ." >&2
12202    { (exit 1); exit 1; }
12203 }
12204
12205 _ACEOF
12206
12207 cat >>$CONFIG_STATUS <<_ACEOF
12208
12209 #
12210 # CONFIG_FILES section.
12211 #
12212
12213 # No need to generate the scripts if there are no CONFIG_FILES.
12214 # This happens for instance when ./config.status config.h
12215 if test -n "\$CONFIG_FILES"; then
12216   # Protect against being on the right side of a sed subst in config.status.
12217   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12218    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12219 s,@SHELL@,$SHELL,;t t
12220 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12221 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12222 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12223 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12224 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12225 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12226 s,@exec_prefix@,$exec_prefix,;t t
12227 s,@prefix@,$prefix,;t t
12228 s,@program_transform_name@,$program_transform_name,;t t
12229 s,@bindir@,$bindir,;t t
12230 s,@sbindir@,$sbindir,;t t
12231 s,@libexecdir@,$libexecdir,;t t
12232 s,@datadir@,$datadir,;t t
12233 s,@sysconfdir@,$sysconfdir,;t t
12234 s,@sharedstatedir@,$sharedstatedir,;t t
12235 s,@localstatedir@,$localstatedir,;t t
12236 s,@libdir@,$libdir,;t t
12237 s,@includedir@,$includedir,;t t
12238 s,@oldincludedir@,$oldincludedir,;t t
12239 s,@infodir@,$infodir,;t t
12240 s,@mandir@,$mandir,;t t
12241 s,@build_alias@,$build_alias,;t t
12242 s,@host_alias@,$host_alias,;t t
12243 s,@target_alias@,$target_alias,;t t
12244 s,@DEFS@,$DEFS,;t t
12245 s,@ECHO_C@,$ECHO_C,;t t
12246 s,@ECHO_N@,$ECHO_N,;t t
12247 s,@ECHO_T@,$ECHO_T,;t t
12248 s,@LIBS@,$LIBS,;t t
12249 s,@build@,$build,;t t
12250 s,@build_cpu@,$build_cpu,;t t
12251 s,@build_vendor@,$build_vendor,;t t
12252 s,@build_os@,$build_os,;t t
12253 s,@host@,$host,;t t
12254 s,@host_cpu@,$host_cpu,;t t
12255 s,@host_vendor@,$host_vendor,;t t
12256 s,@host_os@,$host_os,;t t
12257 s,@CC@,$CC,;t t
12258 s,@CFLAGS@,$CFLAGS,;t t
12259 s,@LDFLAGS@,$LDFLAGS,;t t
12260 s,@CPPFLAGS@,$CPPFLAGS,;t t
12261 s,@ac_ct_CC@,$ac_ct_CC,;t t
12262 s,@EXEEXT@,$EXEEXT,;t t
12263 s,@OBJEXT@,$OBJEXT,;t t
12264 s,@CXX@,$CXX,;t t
12265 s,@CXXFLAGS@,$CXXFLAGS,;t t
12266 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12267 s,@CPP@,$CPP,;t t
12268 s,@RANLIB@,$RANLIB,;t t
12269 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12270 s,@SET_MAKE@,$SET_MAKE,;t t
12271 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12272 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12273 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12274 s,@LN_S@,$LN_S,;t t
12275 s,@ECHO@,$ECHO,;t t
12276 s,@STRIP@,$STRIP,;t t
12277 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12278 s,@EGREP@,$EGREP,;t t
12279 s,@LIBTOOL@,$LIBTOOL,;t t
12280 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
12281 s,@AR@,$AR,;t t
12282 s,@SLEXT@,$SLEXT,;t t
12283 s,@target@,$target,;t t
12284 s,@target_cpu@,$target_cpu,;t t
12285 s,@target_vendor@,$target_vendor,;t t
12286 s,@target_os@,$target_os,;t t
12287 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
12288 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
12289 s,@PACKAGE@,$PACKAGE,;t t
12290 s,@VERSION@,$VERSION,;t t
12291 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
12292 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
12293 s,@lame_objects@,$lame_objects,;t t
12294 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
12295 s,@USE_GZIP@,$USE_GZIP,;t t
12296 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
12297 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
12298 s,@JPEG2SWF@,$JPEG2SWF,;t t
12299 s,@PNG2SWF@,$PNG2SWF,;t t
12300 s,@LIBOBJS@,$LIBOBJS,;t t
12301 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12302 CEOF
12303
12304 _ACEOF
12305
12306   cat >>$CONFIG_STATUS <<\_ACEOF
12307   # Split the substitutions into bite-sized pieces for seds with
12308   # small command number limits, like on Digital OSF/1 and HP-UX.
12309   ac_max_sed_lines=48
12310   ac_sed_frag=1 # Number of current file.
12311   ac_beg=1 # First line for current file.
12312   ac_end=$ac_max_sed_lines # Line after last line for current file.
12313   ac_more_lines=:
12314   ac_sed_cmds=
12315   while $ac_more_lines; do
12316     if test $ac_beg -gt 1; then
12317       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12318     else
12319       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12320     fi
12321     if test ! -s $tmp/subs.frag; then
12322       ac_more_lines=false
12323     else
12324       # The purpose of the label and of the branching condition is to
12325       # speed up the sed processing (if there are no `@' at all, there
12326       # is no need to browse any of the substitutions).
12327       # These are the two extra sed commands mentioned above.
12328       (echo ':t
12329   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12330       if test -z "$ac_sed_cmds"; then
12331         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12332       else
12333         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12334       fi
12335       ac_sed_frag=`expr $ac_sed_frag + 1`
12336       ac_beg=$ac_end
12337       ac_end=`expr $ac_end + $ac_max_sed_lines`
12338     fi
12339   done
12340   if test -z "$ac_sed_cmds"; then
12341     ac_sed_cmds=cat
12342   fi
12343 fi # test -n "$CONFIG_FILES"
12344
12345 _ACEOF
12346 cat >>$CONFIG_STATUS <<\_ACEOF
12347 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12348   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12349   case $ac_file in
12350   - | *:- | *:-:* ) # input from stdin
12351         cat >$tmp/stdin
12352         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12353         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12354   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12355         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12356   * )   ac_file_in=$ac_file.in ;;
12357   esac
12358
12359   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12360   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12361 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12362          X"$ac_file" : 'X\(//\)[^/]' \| \
12363          X"$ac_file" : 'X\(//\)$' \| \
12364          X"$ac_file" : 'X\(/\)' \| \
12365          .     : '\(.\)' 2>/dev/null ||
12366 echo X"$ac_file" |
12367     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12368           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12369           /^X\(\/\/\)$/{ s//\1/; q; }
12370           /^X\(\/\).*/{ s//\1/; q; }
12371           s/.*/./; q'`
12372   { if $as_mkdir_p; then
12373     mkdir -p "$ac_dir"
12374   else
12375     as_dir="$ac_dir"
12376     as_dirs=
12377     while test ! -d "$as_dir"; do
12378       as_dirs="$as_dir $as_dirs"
12379       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12381          X"$as_dir" : 'X\(//\)[^/]' \| \
12382          X"$as_dir" : 'X\(//\)$' \| \
12383          X"$as_dir" : 'X\(/\)' \| \
12384          .     : '\(.\)' 2>/dev/null ||
12385 echo X"$as_dir" |
12386     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12387           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12388           /^X\(\/\/\)$/{ s//\1/; q; }
12389           /^X\(\/\).*/{ s//\1/; q; }
12390           s/.*/./; q'`
12391     done
12392     test ! -n "$as_dirs" || mkdir $as_dirs
12393   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12394 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12395    { (exit 1); exit 1; }; }; }
12396
12397   ac_builddir=.
12398
12399 if test "$ac_dir" != .; then
12400   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12401   # A "../" for each directory in $ac_dir_suffix.
12402   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12403 else
12404   ac_dir_suffix= ac_top_builddir=
12405 fi
12406
12407 case $srcdir in
12408   .)  # No --srcdir option.  We are building in place.
12409     ac_srcdir=.
12410     if test -z "$ac_top_builddir"; then
12411        ac_top_srcdir=.
12412     else
12413        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12414     fi ;;
12415   [\\/]* | ?:[\\/]* )  # Absolute path.
12416     ac_srcdir=$srcdir$ac_dir_suffix;
12417     ac_top_srcdir=$srcdir ;;
12418   *) # Relative path.
12419     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12420     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12421 esac
12422
12423 # Do not use `cd foo && pwd` to compute absolute paths, because
12424 # the directories may not exist.
12425 case `pwd` in
12426 .) ac_abs_builddir="$ac_dir";;
12427 *)
12428   case "$ac_dir" in
12429   .) ac_abs_builddir=`pwd`;;
12430   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12431   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12432   esac;;
12433 esac
12434 case $ac_abs_builddir in
12435 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12436 *)
12437   case ${ac_top_builddir}. in
12438   .) ac_abs_top_builddir=$ac_abs_builddir;;
12439   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12440   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12441   esac;;
12442 esac
12443 case $ac_abs_builddir in
12444 .) ac_abs_srcdir=$ac_srcdir;;
12445 *)
12446   case $ac_srcdir in
12447   .) ac_abs_srcdir=$ac_abs_builddir;;
12448   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12449   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12450   esac;;
12451 esac
12452 case $ac_abs_builddir in
12453 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12454 *)
12455   case $ac_top_srcdir in
12456   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12457   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12458   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12459   esac;;
12460 esac
12461
12462
12463   case $INSTALL in
12464   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12465   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12466   esac
12467
12468   if test x"$ac_file" != x-; then
12469     { echo "$as_me:$LINENO: creating $ac_file" >&5
12470 echo "$as_me: creating $ac_file" >&6;}
12471     rm -f "$ac_file"
12472   fi
12473   # Let's still pretend it is `configure' which instantiates (i.e., don't
12474   # use $as_me), people would be surprised to read:
12475   #    /* config.h.  Generated by config.status.  */
12476   if test x"$ac_file" = x-; then
12477     configure_input=
12478   else
12479     configure_input="$ac_file.  "
12480   fi
12481   configure_input=$configure_input"Generated from `echo $ac_file_in |
12482                                      sed 's,.*/,,'` by configure."
12483
12484   # First look for the input files in the build tree, otherwise in the
12485   # src tree.
12486   ac_file_inputs=`IFS=:
12487     for f in $ac_file_in; do
12488       case $f in
12489       -) echo $tmp/stdin ;;
12490       [\\/$]*)
12491          # Absolute (can't be DOS-style, as IFS=:)
12492          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12493 echo "$as_me: error: cannot find input file: $f" >&2;}
12494    { (exit 1); exit 1; }; }
12495          echo "$f";;
12496       *) # Relative
12497          if test -f "$f"; then
12498            # Build tree
12499            echo "$f"
12500          elif test -f "$srcdir/$f"; then
12501            # Source tree
12502            echo "$srcdir/$f"
12503          else
12504            # /dev/null tree
12505            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12506 echo "$as_me: error: cannot find input file: $f" >&2;}
12507    { (exit 1); exit 1; }; }
12508          fi;;
12509       esac
12510     done` || { (exit 1); exit 1; }
12511 _ACEOF
12512 cat >>$CONFIG_STATUS <<_ACEOF
12513   sed "$ac_vpsub
12514 $extrasub
12515 _ACEOF
12516 cat >>$CONFIG_STATUS <<\_ACEOF
12517 :t
12518 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12519 s,@configure_input@,$configure_input,;t t
12520 s,@srcdir@,$ac_srcdir,;t t
12521 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12522 s,@top_srcdir@,$ac_top_srcdir,;t t
12523 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12524 s,@builddir@,$ac_builddir,;t t
12525 s,@abs_builddir@,$ac_abs_builddir,;t t
12526 s,@top_builddir@,$ac_top_builddir,;t t
12527 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12528 s,@INSTALL@,$ac_INSTALL,;t t
12529 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12530   rm -f $tmp/stdin
12531   if test x"$ac_file" != x-; then
12532     mv $tmp/out $ac_file
12533   else
12534     cat $tmp/out
12535     rm -f $tmp/out
12536   fi
12537
12538 done
12539 _ACEOF
12540 cat >>$CONFIG_STATUS <<\_ACEOF
12541
12542 #
12543 # CONFIG_HEADER section.
12544 #
12545
12546 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12547 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12548 #
12549 # ac_d sets the value in "#define NAME VALUE" lines.
12550 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12551 ac_dB='[         ].*$,\1#\2'
12552 ac_dC=' '
12553 ac_dD=',;t'
12554 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12555 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12556 ac_uB='$,\1#\2define\3'
12557 ac_uC=' '
12558 ac_uD=',;t'
12559
12560 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12561   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12562   case $ac_file in
12563   - | *:- | *:-:* ) # input from stdin
12564         cat >$tmp/stdin
12565         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12566         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12567   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12568         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12569   * )   ac_file_in=$ac_file.in ;;
12570   esac
12571
12572   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12573 echo "$as_me: creating $ac_file" >&6;}
12574
12575   # First look for the input files in the build tree, otherwise in the
12576   # src tree.
12577   ac_file_inputs=`IFS=:
12578     for f in $ac_file_in; do
12579       case $f in
12580       -) echo $tmp/stdin ;;
12581       [\\/$]*)
12582          # Absolute (can't be DOS-style, as IFS=:)
12583          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12584 echo "$as_me: error: cannot find input file: $f" >&2;}
12585    { (exit 1); exit 1; }; }
12586          # Do quote $f, to prevent DOS paths from being IFS'd.
12587          echo "$f";;
12588       *) # Relative
12589          if test -f "$f"; then
12590            # Build tree
12591            echo "$f"
12592          elif test -f "$srcdir/$f"; then
12593            # Source tree
12594            echo "$srcdir/$f"
12595          else
12596            # /dev/null tree
12597            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12598 echo "$as_me: error: cannot find input file: $f" >&2;}
12599    { (exit 1); exit 1; }; }
12600          fi;;
12601       esac
12602     done` || { (exit 1); exit 1; }
12603   # Remove the trailing spaces.
12604   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12605
12606 _ACEOF
12607
12608 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12609 # `conftest.undefs', that substitutes the proper values into
12610 # config.h.in to produce config.h.  The first handles `#define'
12611 # templates, and the second `#undef' templates.
12612 # And first: Protect against being on the right side of a sed subst in
12613 # config.status.  Protect against being in an unquoted here document
12614 # in config.status.
12615 rm -f conftest.defines conftest.undefs
12616 # Using a here document instead of a string reduces the quoting nightmare.
12617 # Putting comments in sed scripts is not portable.
12618 #
12619 # `end' is used to avoid that the second main sed command (meant for
12620 # 0-ary CPP macros) applies to n-ary macro definitions.
12621 # See the Autoconf documentation for `clear'.
12622 cat >confdef2sed.sed <<\_ACEOF
12623 s/[\\&,]/\\&/g
12624 s,[\\$`],\\&,g
12625 t clear
12626 : clear
12627 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12628 t end
12629 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12630 : end
12631 _ACEOF
12632 # If some macros were called several times there might be several times
12633 # the same #defines, which is useless.  Nevertheless, we may not want to
12634 # sort them, since we want the *last* AC-DEFINE to be honored.
12635 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12636 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12637 rm -f confdef2sed.sed
12638
12639 # This sed command replaces #undef with comments.  This is necessary, for
12640 # example, in the case of _POSIX_SOURCE, which is predefined and required
12641 # on some systems where configure will not decide to define it.
12642 cat >>conftest.undefs <<\_ACEOF
12643 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12644 _ACEOF
12645
12646 # Break up conftest.defines because some shells have a limit on the size
12647 # of here documents, and old seds have small limits too (100 cmds).
12648 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12649 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12650 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12651 echo '  :' >>$CONFIG_STATUS
12652 rm -f conftest.tail
12653 while grep . conftest.defines >/dev/null
12654 do
12655   # Write a limited-size here document to $tmp/defines.sed.
12656   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12657   # Speed up: don't consider the non `#define' lines.
12658   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12659   # Work around the forget-to-reset-the-flag bug.
12660   echo 't clr' >>$CONFIG_STATUS
12661   echo ': clr' >>$CONFIG_STATUS
12662   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12663   echo 'CEOF
12664   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12665   rm -f $tmp/in
12666   mv $tmp/out $tmp/in
12667 ' >>$CONFIG_STATUS
12668   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12669   rm -f conftest.defines
12670   mv conftest.tail conftest.defines
12671 done
12672 rm -f conftest.defines
12673 echo '  fi # grep' >>$CONFIG_STATUS
12674 echo >>$CONFIG_STATUS
12675
12676 # Break up conftest.undefs because some shells have a limit on the size
12677 # of here documents, and old seds have small limits too (100 cmds).
12678 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12679 rm -f conftest.tail
12680 while grep . conftest.undefs >/dev/null
12681 do
12682   # Write a limited-size here document to $tmp/undefs.sed.
12683   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12684   # Speed up: don't consider the non `#undef'
12685   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12686   # Work around the forget-to-reset-the-flag bug.
12687   echo 't clr' >>$CONFIG_STATUS
12688   echo ': clr' >>$CONFIG_STATUS
12689   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12690   echo 'CEOF
12691   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12692   rm -f $tmp/in
12693   mv $tmp/out $tmp/in
12694 ' >>$CONFIG_STATUS
12695   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12696   rm -f conftest.undefs
12697   mv conftest.tail conftest.undefs
12698 done
12699 rm -f conftest.undefs
12700
12701 cat >>$CONFIG_STATUS <<\_ACEOF
12702   # Let's still pretend it is `configure' which instantiates (i.e., don't
12703   # use $as_me), people would be surprised to read:
12704   #    /* config.h.  Generated by config.status.  */
12705   if test x"$ac_file" = x-; then
12706     echo "/* Generated by configure.  */" >$tmp/config.h
12707   else
12708     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12709   fi
12710   cat $tmp/in >>$tmp/config.h
12711   rm -f $tmp/in
12712   if test x"$ac_file" != x-; then
12713     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12714       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12715 echo "$as_me: $ac_file is unchanged" >&6;}
12716     else
12717       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12718 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12719          X"$ac_file" : 'X\(//\)[^/]' \| \
12720          X"$ac_file" : 'X\(//\)$' \| \
12721          X"$ac_file" : 'X\(/\)' \| \
12722          .     : '\(.\)' 2>/dev/null ||
12723 echo X"$ac_file" |
12724     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12725           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12726           /^X\(\/\/\)$/{ s//\1/; q; }
12727           /^X\(\/\).*/{ s//\1/; q; }
12728           s/.*/./; q'`
12729       { if $as_mkdir_p; then
12730     mkdir -p "$ac_dir"
12731   else
12732     as_dir="$ac_dir"
12733     as_dirs=
12734     while test ! -d "$as_dir"; do
12735       as_dirs="$as_dir $as_dirs"
12736       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12737 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12738          X"$as_dir" : 'X\(//\)[^/]' \| \
12739          X"$as_dir" : 'X\(//\)$' \| \
12740          X"$as_dir" : 'X\(/\)' \| \
12741          .     : '\(.\)' 2>/dev/null ||
12742 echo X"$as_dir" |
12743     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12744           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12745           /^X\(\/\/\)$/{ s//\1/; q; }
12746           /^X\(\/\).*/{ s//\1/; q; }
12747           s/.*/./; q'`
12748     done
12749     test ! -n "$as_dirs" || mkdir $as_dirs
12750   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12751 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12752    { (exit 1); exit 1; }; }; }
12753
12754       rm -f $ac_file
12755       mv $tmp/config.h $ac_file
12756     fi
12757   else
12758     cat $tmp/config.h
12759     rm -f $tmp/config.h
12760   fi
12761 done
12762 _ACEOF
12763
12764 cat >>$CONFIG_STATUS <<\_ACEOF
12765
12766 { (exit 0); exit 0; }
12767 _ACEOF
12768 chmod +x $CONFIG_STATUS
12769 ac_clean_files=$ac_clean_files_save
12770
12771
12772 # configure is writing to config.log, and then calls config.status.
12773 # config.status does its own redirection, appending to config.log.
12774 # Unfortunately, on DOS this fails, as config.log is still kept open
12775 # by configure, so config.status won't be able to write to it; its
12776 # output is simply discarded.  So we exec the FD to /dev/null,
12777 # effectively closing config.log, so it can be properly (re)opened and
12778 # appended to by config.status.  When coming back to configure, we
12779 # need to make the FD available again.
12780 if test "$no_create" != yes; then
12781   ac_cs_success=:
12782   ac_config_status_args=
12783   test "$silent" = yes &&
12784     ac_config_status_args="$ac_config_status_args --quiet"
12785   exec 5>/dev/null
12786   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12787   exec 5>>config.log
12788   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12789   # would make configure fail if this is the last instruction.
12790   $ac_cs_success || { (exit 1); exit 1; }
12791 fi
12792
12793