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.58.
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 SHARED 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 VIDEO_LIBS VIDEO_CFLAGS 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 case "$ac_dir" in
1084 .) ac_abs_builddir=$ac_builddir;;
1085 *)
1086   case $ac_builddir in
1087   .) ac_abs_builddir="$ac_dir";;
1088   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
1089   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
1090   esac;;
1091 esac
1092 case "$ac_dir" in
1093 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1094 *)
1095   case ${ac_top_builddir}. in
1096   .) ac_abs_top_builddir="$ac_dir";;
1097   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1098   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
1099   esac;;
1100 esac
1101 case "$ac_dir" in
1102 .) ac_abs_srcdir=$ac_srcdir;;
1103 *)
1104   case $ac_srcdir in
1105   .) ac_abs_srcdir="$ac_dir";;
1106   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1107   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
1108   esac;;
1109 esac
1110 case "$ac_dir" in
1111 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1112 *)
1113   case $ac_top_srcdir in
1114   .) ac_abs_top_srcdir="$ac_dir";;
1115   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1116   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1117   esac;;
1118 esac
1119
1120     cd $ac_dir
1121     # Check for guested configure; otherwise get Cygnus style configure.
1122     if test -f $ac_srcdir/configure.gnu; then
1123       echo
1124       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1125     elif test -f $ac_srcdir/configure; then
1126       echo
1127       $SHELL $ac_srcdir/configure  --help=recursive
1128     elif test -f $ac_srcdir/configure.ac ||
1129            test -f $ac_srcdir/configure.in; then
1130       echo
1131       $ac_configure --help
1132     else
1133       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1134     fi
1135     cd $ac_popdir
1136   done
1137 fi
1138
1139 test -n "$ac_init_help" && exit 0
1140 if $ac_init_version; then
1141   cat <<\_ACEOF
1142
1143 Copyright (C) 2003 Free Software Foundation, Inc.
1144 This configure script is free software; the Free Software Foundation
1145 gives unlimited permission to copy, distribute and modify it.
1146 _ACEOF
1147   exit 0
1148 fi
1149 exec 5>config.log
1150 cat >&5 <<_ACEOF
1151 This file contains any messages produced by compilers while
1152 running configure, to aid debugging if configure makes a mistake.
1153
1154 It was created by $as_me, which was
1155 generated by GNU Autoconf 2.58.  Invocation command line was
1156
1157   $ $0 $@
1158
1159 _ACEOF
1160 {
1161 cat <<_ASUNAME
1162 ## --------- ##
1163 ## Platform. ##
1164 ## --------- ##
1165
1166 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1167 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1168 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1169 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1170 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1171
1172 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1173 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1174
1175 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1176 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1177 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1178 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1179 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1180 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1181 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1182
1183 _ASUNAME
1184
1185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186 for as_dir in $PATH
1187 do
1188   IFS=$as_save_IFS
1189   test -z "$as_dir" && as_dir=.
1190   echo "PATH: $as_dir"
1191 done
1192
1193 } >&5
1194
1195 cat >&5 <<_ACEOF
1196
1197
1198 ## ----------- ##
1199 ## Core tests. ##
1200 ## ----------- ##
1201
1202 _ACEOF
1203
1204
1205 # Keep a trace of the command line.
1206 # Strip out --no-create and --no-recursion so they do not pile up.
1207 # Strip out --silent because we don't want to record it for future runs.
1208 # Also quote any args containing shell meta-characters.
1209 # Make two passes to allow for proper duplicate-argument suppression.
1210 ac_configure_args=
1211 ac_configure_args0=
1212 ac_configure_args1=
1213 ac_sep=
1214 ac_must_keep_next=false
1215 for ac_pass in 1 2
1216 do
1217   for ac_arg
1218   do
1219     case $ac_arg in
1220     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1221     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222     | -silent | --silent | --silen | --sile | --sil)
1223       continue ;;
1224     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1226     esac
1227     case $ac_pass in
1228     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1229     2)
1230       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1231       if test $ac_must_keep_next = true; then
1232         ac_must_keep_next=false # Got value, back to normal.
1233       else
1234         case $ac_arg in
1235           *=* | --config-cache | -C | -disable-* | --disable-* \
1236           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1237           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1238           | -with-* | --with-* | -without-* | --without-* | --x)
1239             case "$ac_configure_args0 " in
1240               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1241             esac
1242             ;;
1243           -* ) ac_must_keep_next=true ;;
1244         esac
1245       fi
1246       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1247       # Get rid of the leading space.
1248       ac_sep=" "
1249       ;;
1250     esac
1251   done
1252 done
1253 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1254 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1255
1256 # When interrupted or exit'd, cleanup temporary files, and complete
1257 # config.log.  We remove comments because anyway the quotes in there
1258 # would cause problems or look ugly.
1259 # WARNING: Be sure not to use single quotes in there, as some shells,
1260 # such as our DU 5.0 friend, will then `close' the trap.
1261 trap 'exit_status=$?
1262   # Save into config.log some information that might help in debugging.
1263   {
1264     echo
1265
1266     cat <<\_ASBOX
1267 ## ---------------- ##
1268 ## Cache variables. ##
1269 ## ---------------- ##
1270 _ASBOX
1271     echo
1272     # The following way of writing the cache mishandles newlines in values,
1273 {
1274   (set) 2>&1 |
1275     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1276     *ac_space=\ *)
1277       sed -n \
1278         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1279           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1280       ;;
1281     *)
1282       sed -n \
1283         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1284       ;;
1285     esac;
1286 }
1287     echo
1288
1289     cat <<\_ASBOX
1290 ## ----------------- ##
1291 ## Output variables. ##
1292 ## ----------------- ##
1293 _ASBOX
1294     echo
1295     for ac_var in $ac_subst_vars
1296     do
1297       eval ac_val=$`echo $ac_var`
1298       echo "$ac_var='"'"'$ac_val'"'"'"
1299     done | sort
1300     echo
1301
1302     if test -n "$ac_subst_files"; then
1303       cat <<\_ASBOX
1304 ## ------------- ##
1305 ## Output files. ##
1306 ## ------------- ##
1307 _ASBOX
1308       echo
1309       for ac_var in $ac_subst_files
1310       do
1311         eval ac_val=$`echo $ac_var`
1312         echo "$ac_var='"'"'$ac_val'"'"'"
1313       done | sort
1314       echo
1315     fi
1316
1317     if test -s confdefs.h; then
1318       cat <<\_ASBOX
1319 ## ----------- ##
1320 ## confdefs.h. ##
1321 ## ----------- ##
1322 _ASBOX
1323       echo
1324       sed "/^$/d" confdefs.h | sort
1325       echo
1326     fi
1327     test "$ac_signal" != 0 &&
1328       echo "$as_me: caught signal $ac_signal"
1329     echo "$as_me: exit $exit_status"
1330   } >&5
1331   rm -f core *.core &&
1332   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1333     exit $exit_status
1334      ' 0
1335 for ac_signal in 1 2 13 15; do
1336   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1337 done
1338 ac_signal=0
1339
1340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1341 rm -rf conftest* confdefs.h
1342 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1343 echo >confdefs.h
1344
1345 # Predefined preprocessor variables.
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_NAME "$PACKAGE_NAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_STRING "$PACKAGE_STRING"
1364 _ACEOF
1365
1366
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1369 _ACEOF
1370
1371
1372 # Let the site file select an alternate cache file if it wants to.
1373 # Prefer explicitly selected file to automatically selected ones.
1374 if test -z "$CONFIG_SITE"; then
1375   if test "x$prefix" != xNONE; then
1376     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1377   else
1378     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1379   fi
1380 fi
1381 for ac_site_file in $CONFIG_SITE; do
1382   if test -r "$ac_site_file"; then
1383     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1384 echo "$as_me: loading site script $ac_site_file" >&6;}
1385     sed 's/^/| /' "$ac_site_file" >&5
1386     . "$ac_site_file"
1387   fi
1388 done
1389
1390 if test -r "$cache_file"; then
1391   # Some versions of bash will fail to source /dev/null (special
1392   # files actually), so we avoid doing that.
1393   if test -f "$cache_file"; then
1394     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1395 echo "$as_me: loading cache $cache_file" >&6;}
1396     case $cache_file in
1397       [\\/]* | ?:[\\/]* ) . $cache_file;;
1398       *)                      . ./$cache_file;;
1399     esac
1400   fi
1401 else
1402   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1403 echo "$as_me: creating cache $cache_file" >&6;}
1404   >$cache_file
1405 fi
1406
1407 # Check that the precious variables saved in the cache have kept the same
1408 # value.
1409 ac_cache_corrupted=false
1410 for ac_var in `(set) 2>&1 |
1411                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1412   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1413   eval ac_new_set=\$ac_env_${ac_var}_set
1414   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1415   eval ac_new_val="\$ac_env_${ac_var}_value"
1416   case $ac_old_set,$ac_new_set in
1417     set,)
1418       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1420       ac_cache_corrupted=: ;;
1421     ,set)
1422       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1424       ac_cache_corrupted=: ;;
1425     ,);;
1426     *)
1427       if test "x$ac_old_val" != "x$ac_new_val"; then
1428         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1431 echo "$as_me:   former value:  $ac_old_val" >&2;}
1432         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1433 echo "$as_me:   current value: $ac_new_val" >&2;}
1434         ac_cache_corrupted=:
1435       fi;;
1436   esac
1437   # Pass precious variables to config.status.
1438   if test "$ac_new_set" = set; then
1439     case $ac_new_val in
1440     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442     *) ac_arg=$ac_var=$ac_new_val ;;
1443     esac
1444     case " $ac_configure_args " in
1445       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1446       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447     esac
1448   fi
1449 done
1450 if $ac_cache_corrupted; then
1451   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1452 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1453   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1454 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1455    { (exit 1); exit 1; }; }
1456 fi
1457
1458 ac_ext=c
1459 ac_cpp='$CPP $CPPFLAGS'
1460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484 # Check whether --enable-checkmem or --disable-checkmem was given.
1485 if test "${enable_checkmem+set}" = set; then
1486   enableval="$enable_checkmem"
1487   CHECKMEM=true
1488 fi;
1489 # Check whether --enable-debug or --disable-debug was given.
1490 if test "${enable_debug+set}" = set; then
1491   enableval="$enable_debug"
1492   DEBUG=true
1493 fi;
1494 # Check whether --enable-warnings or --disable-warnings was given.
1495 if test "${enable_warnings+set}" = set; then
1496   enableval="$enable_warnings"
1497   ENABLE_WARNINGS=true
1498 fi;
1499 # Check whether --enable-optimizations or --disable-optimizations was given.
1500 if test "${enable_optimizations+set}" = set; then
1501   enableval="$enable_optimizations"
1502   OPTIMIZE=true
1503 fi;
1504 # Check whether --enable-lame or --disable-lame was given.
1505 if test "${enable_lame+set}" = set; then
1506   enableval="$enable_lame"
1507   DISABLE_LAME=true
1508 fi;
1509
1510 PACKAGE=swftools
1511 VERSION=2004-11-07-1822
1512
1513
1514 # ------------------------------------------------------------------
1515
1516 if test "x${srcdir}" != "x."; then
1517     echo "--srcdir is not supported"
1518     exit 1
1519 fi
1520
1521 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1522 if test "x$ENABLE_WARNINGS" '!=' "x";then
1523     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1524 fi
1525
1526 if test "x$CHECKMEM" '!=' "x";then
1527     DEBUG=yes
1528 fi
1529 if test "x$DEBUG" '!=' "x";then
1530     CFLAGS="$WARNINGS -g $CFLAGS"
1531     CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1532 else if test "x$OPTIMIZE" '!=' "x"; then
1533     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1534     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1535 else
1536     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1537     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1538 fi
1539 fi
1540 #OLDGCC=1
1541 #if test "x$OLDGCC" '!=' "x";then
1542 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1543 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1544 #     CFLAGS="$CFLAGS -ansi -pendantic"
1545 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1546 #fi
1547
1548 export PACKAGE VERSION CFLAGS CXXFLAGS
1549
1550
1551 ac_aux_dir=
1552 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1553   if test -f $ac_dir/install-sh; then
1554     ac_aux_dir=$ac_dir
1555     ac_install_sh="$ac_aux_dir/install-sh -c"
1556     break
1557   elif test -f $ac_dir/install.sh; then
1558     ac_aux_dir=$ac_dir
1559     ac_install_sh="$ac_aux_dir/install.sh -c"
1560     break
1561   elif test -f $ac_dir/shtool; then
1562     ac_aux_dir=$ac_dir
1563     ac_install_sh="$ac_aux_dir/shtool install -c"
1564     break
1565   fi
1566 done
1567 if test -z "$ac_aux_dir"; then
1568   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1569 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1570    { (exit 1); exit 1; }; }
1571 fi
1572 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1573 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1574 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1575
1576 # Make sure we can run config.sub.
1577 $ac_config_sub sun4 >/dev/null 2>&1 ||
1578   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1579 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1580    { (exit 1); exit 1; }; }
1581
1582 echo "$as_me:$LINENO: checking build system type" >&5
1583 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1584 if test "${ac_cv_build+set}" = set; then
1585   echo $ECHO_N "(cached) $ECHO_C" >&6
1586 else
1587   ac_cv_build_alias=$build_alias
1588 test -z "$ac_cv_build_alias" &&
1589   ac_cv_build_alias=`$ac_config_guess`
1590 test -z "$ac_cv_build_alias" &&
1591   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1592 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1593    { (exit 1); exit 1; }; }
1594 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1595   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1596 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1597    { (exit 1); exit 1; }; }
1598
1599 fi
1600 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1601 echo "${ECHO_T}$ac_cv_build" >&6
1602 build=$ac_cv_build
1603 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606
1607
1608 echo "$as_me:$LINENO: checking host system type" >&5
1609 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1610 if test "${ac_cv_host+set}" = set; then
1611   echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613   ac_cv_host_alias=$host_alias
1614 test -z "$ac_cv_host_alias" &&
1615   ac_cv_host_alias=$ac_cv_build_alias
1616 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1617   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1618 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1619    { (exit 1); exit 1; }; }
1620
1621 fi
1622 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1623 echo "${ECHO_T}$ac_cv_host" >&6
1624 host=$ac_cv_host
1625 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
1629
1630
1631 SHARED="-shared"
1632 MACOSX=
1633 case $host_os in
1634     *darwin* )
1635         MACOSX=yes
1636         CFLAGS="$CFLAGS -fno-rtti"
1637         CXXFLAGS="$CXXFLAGS -fno-rtti"
1638         SHARED="-bundle"
1639         ;;
1640 esac
1641
1642
1643
1644  ac_ext=c
1645 ac_cpp='$CPP $CPPFLAGS'
1646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1649 if test -n "$ac_tool_prefix"; then
1650   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1651 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1652 echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654 if test "${ac_cv_prog_CC+set}" = set; then
1655   echo $ECHO_N "(cached) $ECHO_C" >&6
1656 else
1657   if test -n "$CC"; then
1658   ac_cv_prog_CC="$CC" # Let the user override the test.
1659 else
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 for as_dir in $PATH
1662 do
1663   IFS=$as_save_IFS
1664   test -z "$as_dir" && as_dir=.
1665   for ac_exec_ext in '' $ac_executable_extensions; do
1666   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1667     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669     break 2
1670   fi
1671 done
1672 done
1673
1674 fi
1675 fi
1676 CC=$ac_cv_prog_CC
1677 if test -n "$CC"; then
1678   echo "$as_me:$LINENO: result: $CC" >&5
1679 echo "${ECHO_T}$CC" >&6
1680 else
1681   echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1683 fi
1684
1685 fi
1686 if test -z "$ac_cv_prog_CC"; then
1687   ac_ct_CC=$CC
1688   # Extract the first word of "gcc", so it can be a program name with args.
1689 set dummy gcc; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1693   echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695   if test -n "$ac_ct_CC"; then
1696   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1697 else
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1700 do
1701   IFS=$as_save_IFS
1702   test -z "$as_dir" && as_dir=.
1703   for ac_exec_ext in '' $ac_executable_extensions; do
1704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705     ac_cv_prog_ac_ct_CC="gcc"
1706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707     break 2
1708   fi
1709 done
1710 done
1711
1712 fi
1713 fi
1714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1715 if test -n "$ac_ct_CC"; then
1716   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1717 echo "${ECHO_T}$ac_ct_CC" >&6
1718 else
1719   echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 fi
1722
1723   CC=$ac_ct_CC
1724 else
1725   CC="$ac_cv_prog_CC"
1726 fi
1727
1728 if test -z "$CC"; then
1729   if test -n "$ac_tool_prefix"; then
1730   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1731 set dummy ${ac_tool_prefix}cc; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_CC+set}" = set; then
1735   echo $ECHO_N "(cached) $ECHO_C" >&6
1736 else
1737   if test -n "$CC"; then
1738   ac_cv_prog_CC="$CC" # Let the user override the test.
1739 else
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1742 do
1743   IFS=$as_save_IFS
1744   test -z "$as_dir" && as_dir=.
1745   for ac_exec_ext in '' $ac_executable_extensions; do
1746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747     ac_cv_prog_CC="${ac_tool_prefix}cc"
1748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749     break 2
1750   fi
1751 done
1752 done
1753
1754 fi
1755 fi
1756 CC=$ac_cv_prog_CC
1757 if test -n "$CC"; then
1758   echo "$as_me:$LINENO: result: $CC" >&5
1759 echo "${ECHO_T}$CC" >&6
1760 else
1761   echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1763 fi
1764
1765 fi
1766 if test -z "$ac_cv_prog_CC"; then
1767   ac_ct_CC=$CC
1768   # Extract the first word of "cc", so it can be a program name with args.
1769 set dummy cc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1773   echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775   if test -n "$ac_ct_CC"; then
1776   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1777 else
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 for as_dir in $PATH
1780 do
1781   IFS=$as_save_IFS
1782   test -z "$as_dir" && as_dir=.
1783   for ac_exec_ext in '' $ac_executable_extensions; do
1784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785     ac_cv_prog_ac_ct_CC="cc"
1786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787     break 2
1788   fi
1789 done
1790 done
1791
1792 fi
1793 fi
1794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1795 if test -n "$ac_ct_CC"; then
1796   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1797 echo "${ECHO_T}$ac_ct_CC" >&6
1798 else
1799   echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1801 fi
1802
1803   CC=$ac_ct_CC
1804 else
1805   CC="$ac_cv_prog_CC"
1806 fi
1807
1808 fi
1809 if test -z "$CC"; then
1810   # Extract the first word of "cc", so it can be a program name with args.
1811 set dummy cc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_CC+set}" = set; then
1815   echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817   if test -n "$CC"; then
1818   ac_cv_prog_CC="$CC" # Let the user override the test.
1819 else
1820   ac_prog_rejected=no
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822 for as_dir in $PATH
1823 do
1824   IFS=$as_save_IFS
1825   test -z "$as_dir" && as_dir=.
1826   for ac_exec_ext in '' $ac_executable_extensions; do
1827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1829        ac_prog_rejected=yes
1830        continue
1831      fi
1832     ac_cv_prog_CC="cc"
1833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834     break 2
1835   fi
1836 done
1837 done
1838
1839 if test $ac_prog_rejected = yes; then
1840   # We found a bogon in the path, so make sure we never use it.
1841   set dummy $ac_cv_prog_CC
1842   shift
1843   if test $# != 0; then
1844     # We chose a different compiler from the bogus one.
1845     # However, it has the same basename, so the bogon will be chosen
1846     # first if we set CC to just the basename; use the full file name.
1847     shift
1848     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1849   fi
1850 fi
1851 fi
1852 fi
1853 CC=$ac_cv_prog_CC
1854 if test -n "$CC"; then
1855   echo "$as_me:$LINENO: result: $CC" >&5
1856 echo "${ECHO_T}$CC" >&6
1857 else
1858   echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1860 fi
1861
1862 fi
1863 if test -z "$CC"; then
1864   if test -n "$ac_tool_prefix"; then
1865   for ac_prog in cl
1866   do
1867     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_CC+set}" = set; then
1872   echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874   if test -n "$CC"; then
1875   ac_cv_prog_CC="$CC" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1879 do
1880   IFS=$as_save_IFS
1881   test -z "$as_dir" && as_dir=.
1882   for ac_exec_ext in '' $ac_executable_extensions; do
1883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886     break 2
1887   fi
1888 done
1889 done
1890
1891 fi
1892 fi
1893 CC=$ac_cv_prog_CC
1894 if test -n "$CC"; then
1895   echo "$as_me:$LINENO: result: $CC" >&5
1896 echo "${ECHO_T}$CC" >&6
1897 else
1898   echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1900 fi
1901
1902     test -n "$CC" && break
1903   done
1904 fi
1905 if test -z "$CC"; then
1906   ac_ct_CC=$CC
1907   for ac_prog in cl
1908 do
1909   # Extract the first word of "$ac_prog", so it can be a program name with args.
1910 set dummy $ac_prog; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1914   echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916   if test -n "$ac_ct_CC"; then
1917   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922   IFS=$as_save_IFS
1923   test -z "$as_dir" && as_dir=.
1924   for ac_exec_ext in '' $ac_executable_extensions; do
1925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926     ac_cv_prog_ac_ct_CC="$ac_prog"
1927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928     break 2
1929   fi
1930 done
1931 done
1932
1933 fi
1934 fi
1935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1936 if test -n "$ac_ct_CC"; then
1937   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1938 echo "${ECHO_T}$ac_ct_CC" >&6
1939 else
1940   echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942 fi
1943
1944   test -n "$ac_ct_CC" && break
1945 done
1946
1947   CC=$ac_ct_CC
1948 fi
1949
1950 fi
1951
1952
1953 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1954 See \`config.log' for more details." >&5
1955 echo "$as_me: error: no acceptable C compiler found in \$PATH
1956 See \`config.log' for more details." >&2;}
1957    { (exit 1); exit 1; }; }
1958
1959 # Provide some information about the compiler.
1960 echo "$as_me:$LINENO:" \
1961      "checking for C compiler version" >&5
1962 ac_compiler=`set X $ac_compile; echo $2`
1963 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1964   (eval $ac_compiler --version </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 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1974   (eval $ac_compiler -V </dev/null >&5) 2>&5
1975   ac_status=$?
1976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977   (exit $ac_status); }
1978
1979 cat >conftest.$ac_ext <<_ACEOF
1980 /* confdefs.h.  */
1981 _ACEOF
1982 cat confdefs.h >>conftest.$ac_ext
1983 cat >>conftest.$ac_ext <<_ACEOF
1984 /* end confdefs.h.  */
1985
1986 int
1987 main ()
1988 {
1989
1990   ;
1991   return 0;
1992 }
1993 _ACEOF
1994 ac_clean_files_save=$ac_clean_files
1995 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1996 # Try to create an executable without -o first, disregard a.out.
1997 # It will help us diagnose broken compilers, and finding out an intuition
1998 # of exeext.
1999 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2000 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2001 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2002 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2003   (eval $ac_link_default) 2>&5
2004   ac_status=$?
2005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006   (exit $ac_status); }; then
2007   # Find the output, starting from the most likely.  This scheme is
2008 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2009 # resort.
2010
2011 # Be careful to initialize this variable, since it used to be cached.
2012 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2013 ac_cv_exeext=
2014 # b.out is created by i960 compilers.
2015 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2016 do
2017   test -f "$ac_file" || continue
2018   case $ac_file in
2019     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2020         ;;
2021     conftest.$ac_ext )
2022         # This is the source file.
2023         ;;
2024     [ab].out )
2025         # We found the default executable, but exeext='' is most
2026         # certainly right.
2027         break;;
2028     *.* )
2029         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2030         # FIXME: I believe we export ac_cv_exeext for Libtool,
2031         # but it would be cool to find out if it's true.  Does anybody
2032         # maintain Libtool? --akim.
2033         export ac_cv_exeext
2034         break;;
2035     * )
2036         break;;
2037   esac
2038 done
2039 else
2040   echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2042
2043 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: C compiler cannot create executables
2046 See \`config.log' for more details." >&2;}
2047    { (exit 77); exit 77; }; }
2048 fi
2049
2050 ac_exeext=$ac_cv_exeext
2051 echo "$as_me:$LINENO: result: $ac_file" >&5
2052 echo "${ECHO_T}$ac_file" >&6
2053
2054 # Check the compiler produces executables we can run.  If not, either
2055 # the compiler is broken, or we cross compile.
2056 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2057 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2058 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2059 # If not cross compiling, check that we can run a simple program.
2060 if test "$cross_compiling" != yes; then
2061   if { ac_try='./$ac_file'
2062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063   (eval $ac_try) 2>&5
2064   ac_status=$?
2065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066   (exit $ac_status); }; }; then
2067     cross_compiling=no
2068   else
2069     if test "$cross_compiling" = maybe; then
2070         cross_compiling=yes
2071     else
2072         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2073 If you meant to cross compile, use \`--host'.
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: cannot run C compiled programs.
2076 If you meant to cross compile, use \`--host'.
2077 See \`config.log' for more details." >&2;}
2078    { (exit 1); exit 1; }; }
2079     fi
2080   fi
2081 fi
2082 echo "$as_me:$LINENO: result: yes" >&5
2083 echo "${ECHO_T}yes" >&6
2084
2085 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2086 ac_clean_files=$ac_clean_files_save
2087 # Check the compiler produces executables we can run.  If not, either
2088 # the compiler is broken, or we cross compile.
2089 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2090 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2091 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2092 echo "${ECHO_T}$cross_compiling" >&6
2093
2094 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2095 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2097   (eval $ac_link) 2>&5
2098   ac_status=$?
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); }; then
2101   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2102 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2103 # work properly (i.e., refer to `conftest.exe'), while it won't with
2104 # `rm'.
2105 for ac_file in conftest.exe conftest conftest.*; do
2106   test -f "$ac_file" || continue
2107   case $ac_file in
2108     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2109     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2110           export ac_cv_exeext
2111           break;;
2112     * ) break;;
2113   esac
2114 done
2115 else
2116   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2117 See \`config.log' for more details." >&5
2118 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2119 See \`config.log' for more details." >&2;}
2120    { (exit 1); exit 1; }; }
2121 fi
2122
2123 rm -f conftest$ac_cv_exeext
2124 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2125 echo "${ECHO_T}$ac_cv_exeext" >&6
2126
2127 rm -f conftest.$ac_ext
2128 EXEEXT=$ac_cv_exeext
2129 ac_exeext=$EXEEXT
2130 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2131 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2132 if test "${ac_cv_objext+set}" = set; then
2133   echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135   cat >conftest.$ac_ext <<_ACEOF
2136 /* confdefs.h.  */
2137 _ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h.  */
2141
2142 int
2143 main ()
2144 {
2145
2146   ;
2147   return 0;
2148 }
2149 _ACEOF
2150 rm -f conftest.o conftest.obj
2151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152   (eval $ac_compile) 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }; then
2156   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2157   case $ac_file in
2158     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2159     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2160        break;;
2161   esac
2162 done
2163 else
2164   echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2166
2167 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2168 See \`config.log' for more details." >&5
2169 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2170 See \`config.log' for more details." >&2;}
2171    { (exit 1); exit 1; }; }
2172 fi
2173
2174 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2175 fi
2176 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2177 echo "${ECHO_T}$ac_cv_objext" >&6
2178 OBJEXT=$ac_cv_objext
2179 ac_objext=$OBJEXT
2180 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2181 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2182 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2183   echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185   cat >conftest.$ac_ext <<_ACEOF
2186 /* confdefs.h.  */
2187 _ACEOF
2188 cat confdefs.h >>conftest.$ac_ext
2189 cat >>conftest.$ac_ext <<_ACEOF
2190 /* end confdefs.h.  */
2191
2192 int
2193 main ()
2194 {
2195 #ifndef __GNUC__
2196        choke me
2197 #endif
2198
2199   ;
2200   return 0;
2201 }
2202 _ACEOF
2203 rm -f conftest.$ac_objext
2204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205   (eval $ac_compile) 2>conftest.er1
2206   ac_status=$?
2207   grep -v '^ *+' conftest.er1 >conftest.err
2208   rm -f conftest.er1
2209   cat conftest.err >&5
2210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211   (exit $ac_status); } &&
2212          { ac_try='test -z "$ac_c_werror_flag"
2213                          || test ! -s conftest.err'
2214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215   (eval $ac_try) 2>&5
2216   ac_status=$?
2217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218   (exit $ac_status); }; } &&
2219          { ac_try='test -s conftest.$ac_objext'
2220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221   (eval $ac_try) 2>&5
2222   ac_status=$?
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); }; }; then
2225   ac_compiler_gnu=yes
2226 else
2227   echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2229
2230 ac_compiler_gnu=no
2231 fi
2232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2234
2235 fi
2236 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2237 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2238 GCC=`test $ac_compiler_gnu = yes && echo yes`
2239 ac_test_CFLAGS=${CFLAGS+set}
2240 ac_save_CFLAGS=$CFLAGS
2241 CFLAGS="-g"
2242 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2243 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2244 if test "${ac_cv_prog_cc_g+set}" = set; then
2245   echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247   cat >conftest.$ac_ext <<_ACEOF
2248 /* confdefs.h.  */
2249 _ACEOF
2250 cat confdefs.h >>conftest.$ac_ext
2251 cat >>conftest.$ac_ext <<_ACEOF
2252 /* end confdefs.h.  */
2253
2254 int
2255 main ()
2256 {
2257
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 rm -f conftest.$ac_objext
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264   (eval $ac_compile) 2>conftest.er1
2265   ac_status=$?
2266   grep -v '^ *+' conftest.er1 >conftest.err
2267   rm -f conftest.er1
2268   cat conftest.err >&5
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); } &&
2271          { ac_try='test -z "$ac_c_werror_flag"
2272                          || test ! -s conftest.err'
2273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274   (eval $ac_try) 2>&5
2275   ac_status=$?
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); }; } &&
2278          { ac_try='test -s conftest.$ac_objext'
2279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280   (eval $ac_try) 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }; }; then
2284   ac_cv_prog_cc_g=yes
2285 else
2286   echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2288
2289 ac_cv_prog_cc_g=no
2290 fi
2291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2292 fi
2293 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2294 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2295 if test "$ac_test_CFLAGS" = set; then
2296   CFLAGS=$ac_save_CFLAGS
2297 elif test $ac_cv_prog_cc_g = yes; then
2298   if test "$GCC" = yes; then
2299     CFLAGS="-g -O2"
2300   else
2301     CFLAGS="-g"
2302   fi
2303 else
2304   if test "$GCC" = yes; then
2305     CFLAGS="-O2"
2306   else
2307     CFLAGS=
2308   fi
2309 fi
2310 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2311 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2312 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2313   echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315   ac_cv_prog_cc_stdc=no
2316 ac_save_CC=$CC
2317 cat >conftest.$ac_ext <<_ACEOF
2318 /* confdefs.h.  */
2319 _ACEOF
2320 cat confdefs.h >>conftest.$ac_ext
2321 cat >>conftest.$ac_ext <<_ACEOF
2322 /* end confdefs.h.  */
2323 #include <stdarg.h>
2324 #include <stdio.h>
2325 #include <sys/types.h>
2326 #include <sys/stat.h>
2327 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2328 struct buf { int x; };
2329 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2330 static char *e (p, i)
2331      char **p;
2332      int i;
2333 {
2334   return p[i];
2335 }
2336 static char *f (char * (*g) (char **, int), char **p, ...)
2337 {
2338   char *s;
2339   va_list v;
2340   va_start (v,p);
2341   s = g (p, va_arg (v,int));
2342   va_end (v);
2343   return s;
2344 }
2345
2346 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2347    function prototypes and stuff, but not '\xHH' hex character constants.
2348    These don't provoke an error unfortunately, instead are silently treated
2349    as 'x'.  The following induces an error, until -std1 is added to get
2350    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2351    array size at least.  It's necessary to write '\x00'==0 to get something
2352    that's true only with -std1.  */
2353 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2354
2355 int test (int i, double x);
2356 struct s1 {int (*f) (int a);};
2357 struct s2 {int (*f) (double a);};
2358 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2359 int argc;
2360 char **argv;
2361 int
2362 main ()
2363 {
2364 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2365   ;
2366   return 0;
2367 }
2368 _ACEOF
2369 # Don't try gcc -ansi; that turns off useful extensions and
2370 # breaks some systems' header files.
2371 # AIX                   -qlanglvl=ansi
2372 # Ultrix and OSF/1      -std1
2373 # HP-UX 10.20 and later -Ae
2374 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2375 # SVR4                  -Xc -D__EXTENSIONS__
2376 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2377 do
2378   CC="$ac_save_CC $ac_arg"
2379   rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381   (eval $ac_compile) 2>conftest.er1
2382   ac_status=$?
2383   grep -v '^ *+' conftest.er1 >conftest.err
2384   rm -f conftest.er1
2385   cat conftest.err >&5
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); } &&
2388          { ac_try='test -z "$ac_c_werror_flag"
2389                          || test ! -s conftest.err'
2390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391   (eval $ac_try) 2>&5
2392   ac_status=$?
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); }; } &&
2395          { ac_try='test -s conftest.$ac_objext'
2396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397   (eval $ac_try) 2>&5
2398   ac_status=$?
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); }; }; then
2401   ac_cv_prog_cc_stdc=$ac_arg
2402 break
2403 else
2404   echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 fi
2408 rm -f conftest.err conftest.$ac_objext
2409 done
2410 rm -f conftest.$ac_ext conftest.$ac_objext
2411 CC=$ac_save_CC
2412
2413 fi
2414
2415 case "x$ac_cv_prog_cc_stdc" in
2416   x|xno)
2417     echo "$as_me:$LINENO: result: none needed" >&5
2418 echo "${ECHO_T}none needed" >&6 ;;
2419   *)
2420     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2421 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2422     CC="$CC $ac_cv_prog_cc_stdc" ;;
2423 esac
2424
2425 # Some people use a C++ compiler to compile C.  Since we use `exit',
2426 # in C++ we need to declare it.  In case someone uses the same compiler
2427 # for both compiling C and C++ we need to have the C++ compiler decide
2428 # the declaration of exit, since it's the most demanding environment.
2429 cat >conftest.$ac_ext <<_ACEOF
2430 #ifndef __cplusplus
2431   choke me
2432 #endif
2433 _ACEOF
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436   (eval $ac_compile) 2>conftest.er1
2437   ac_status=$?
2438   grep -v '^ *+' conftest.er1 >conftest.err
2439   rm -f conftest.er1
2440   cat conftest.err >&5
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); } &&
2443          { ac_try='test -z "$ac_c_werror_flag"
2444                          || test ! -s conftest.err'
2445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446   (eval $ac_try) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }; } &&
2450          { ac_try='test -s conftest.$ac_objext'
2451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452   (eval $ac_try) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; }; then
2456   for ac_declaration in \
2457    '' \
2458    'extern "C" void std::exit (int) throw (); using std::exit;' \
2459    'extern "C" void std::exit (int); using std::exit;' \
2460    'extern "C" void exit (int) throw ();' \
2461    'extern "C" void exit (int);' \
2462    'void exit (int);'
2463 do
2464   cat >conftest.$ac_ext <<_ACEOF
2465 /* confdefs.h.  */
2466 _ACEOF
2467 cat confdefs.h >>conftest.$ac_ext
2468 cat >>conftest.$ac_ext <<_ACEOF
2469 /* end confdefs.h.  */
2470 $ac_declaration
2471 #include <stdlib.h>
2472 int
2473 main ()
2474 {
2475 exit (42);
2476   ;
2477   return 0;
2478 }
2479 _ACEOF
2480 rm -f conftest.$ac_objext
2481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2482   (eval $ac_compile) 2>conftest.er1
2483   ac_status=$?
2484   grep -v '^ *+' conftest.er1 >conftest.err
2485   rm -f conftest.er1
2486   cat conftest.err >&5
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); } &&
2489          { ac_try='test -z "$ac_c_werror_flag"
2490                          || test ! -s conftest.err'
2491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492   (eval $ac_try) 2>&5
2493   ac_status=$?
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); }; } &&
2496          { ac_try='test -s conftest.$ac_objext'
2497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498   (eval $ac_try) 2>&5
2499   ac_status=$?
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); }; }; then
2502   :
2503 else
2504   echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2506
2507 continue
2508 fi
2509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2510   cat >conftest.$ac_ext <<_ACEOF
2511 /* confdefs.h.  */
2512 _ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h.  */
2516 $ac_declaration
2517 int
2518 main ()
2519 {
2520 exit (42);
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527   (eval $ac_compile) 2>conftest.er1
2528   ac_status=$?
2529   grep -v '^ *+' conftest.er1 >conftest.err
2530   rm -f conftest.er1
2531   cat conftest.err >&5
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); } &&
2534          { ac_try='test -z "$ac_c_werror_flag"
2535                          || test ! -s conftest.err'
2536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537   (eval $ac_try) 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }; } &&
2541          { ac_try='test -s conftest.$ac_objext'
2542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543   (eval $ac_try) 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }; }; then
2547   break
2548 else
2549   echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2551
2552 fi
2553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554 done
2555 rm -f conftest*
2556 if test -n "$ac_declaration"; then
2557   echo '#ifdef __cplusplus' >>confdefs.h
2558   echo $ac_declaration      >>confdefs.h
2559   echo '#endif'             >>confdefs.h
2560 fi
2561
2562 else
2563   echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566 fi
2567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2568 ac_ext=c
2569 ac_cpp='$CPP $CPPFLAGS'
2570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573
2574  ac_ext=cc
2575 ac_cpp='$CXXCPP $CPPFLAGS'
2576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2579 if test -n "$ac_tool_prefix"; then
2580   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2581   do
2582     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2584 echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2586 if test "${ac_cv_prog_CXX+set}" = set; then
2587   echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589   if test -n "$CXX"; then
2590   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595   IFS=$as_save_IFS
2596   test -z "$as_dir" && as_dir=.
2597   for ac_exec_ext in '' $ac_executable_extensions; do
2598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601     break 2
2602   fi
2603 done
2604 done
2605
2606 fi
2607 fi
2608 CXX=$ac_cv_prog_CXX
2609 if test -n "$CXX"; then
2610   echo "$as_me:$LINENO: result: $CXX" >&5
2611 echo "${ECHO_T}$CXX" >&6
2612 else
2613   echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6
2615 fi
2616
2617     test -n "$CXX" && break
2618   done
2619 fi
2620 if test -z "$CXX"; then
2621   ac_ct_CXX=$CXX
2622   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2623 do
2624   # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2628 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631   if test -n "$ac_ct_CXX"; then
2632   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639   for ac_exec_ext in '' $ac_executable_extensions; do
2640   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641     ac_cv_prog_ac_ct_CXX="$ac_prog"
2642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646 done
2647
2648 fi
2649 fi
2650 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2651 if test -n "$ac_ct_CXX"; then
2652   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2653 echo "${ECHO_T}$ac_ct_CXX" >&6
2654 else
2655   echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2657 fi
2658
2659   test -n "$ac_ct_CXX" && break
2660 done
2661 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2662
2663   CXX=$ac_ct_CXX
2664 fi
2665
2666
2667 # Provide some information about the compiler.
2668 echo "$as_me:$LINENO:" \
2669      "checking for C++ compiler version" >&5
2670 ac_compiler=`set X $ac_compile; echo $2`
2671 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2672   (eval $ac_compiler --version </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 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2682   (eval $ac_compiler -V </dev/null >&5) 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }
2686
2687 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2688 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2689 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2690   echo $ECHO_N "(cached) $ECHO_C" >&6
2691 else
2692   cat >conftest.$ac_ext <<_ACEOF
2693 /* confdefs.h.  */
2694 _ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h.  */
2698
2699 int
2700 main ()
2701 {
2702 #ifndef __GNUC__
2703        choke me
2704 #endif
2705
2706   ;
2707   return 0;
2708 }
2709 _ACEOF
2710 rm -f conftest.$ac_objext
2711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712   (eval $ac_compile) 2>conftest.er1
2713   ac_status=$?
2714   grep -v '^ *+' conftest.er1 >conftest.err
2715   rm -f conftest.er1
2716   cat conftest.err >&5
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); } &&
2719          { ac_try='test -z "$ac_cxx_werror_flag"
2720                          || test ! -s conftest.err'
2721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722   (eval $ac_try) 2>&5
2723   ac_status=$?
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); }; } &&
2726          { ac_try='test -s conftest.$ac_objext'
2727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728   (eval $ac_try) 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }; }; then
2732   ac_compiler_gnu=yes
2733 else
2734   echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2736
2737 ac_compiler_gnu=no
2738 fi
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2741
2742 fi
2743 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2744 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2745 GXX=`test $ac_compiler_gnu = yes && echo yes`
2746 ac_test_CXXFLAGS=${CXXFLAGS+set}
2747 ac_save_CXXFLAGS=$CXXFLAGS
2748 CXXFLAGS="-g"
2749 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2750 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2751 if test "${ac_cv_prog_cxx_g+set}" = set; then
2752   echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754   cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h.  */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h.  */
2760
2761 int
2762 main ()
2763 {
2764
2765   ;
2766   return 0;
2767 }
2768 _ACEOF
2769 rm -f conftest.$ac_objext
2770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2771   (eval $ac_compile) 2>conftest.er1
2772   ac_status=$?
2773   grep -v '^ *+' conftest.er1 >conftest.err
2774   rm -f conftest.er1
2775   cat conftest.err >&5
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); } &&
2778          { ac_try='test -z "$ac_cxx_werror_flag"
2779                          || test ! -s conftest.err'
2780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781   (eval $ac_try) 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }; } &&
2785          { ac_try='test -s conftest.$ac_objext'
2786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787   (eval $ac_try) 2>&5
2788   ac_status=$?
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); }; }; then
2791   ac_cv_prog_cxx_g=yes
2792 else
2793   echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2795
2796 ac_cv_prog_cxx_g=no
2797 fi
2798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2799 fi
2800 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2801 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2802 if test "$ac_test_CXXFLAGS" = set; then
2803   CXXFLAGS=$ac_save_CXXFLAGS
2804 elif test $ac_cv_prog_cxx_g = yes; then
2805   if test "$GXX" = yes; then
2806     CXXFLAGS="-g -O2"
2807   else
2808     CXXFLAGS="-g"
2809   fi
2810 else
2811   if test "$GXX" = yes; then
2812     CXXFLAGS="-O2"
2813   else
2814     CXXFLAGS=
2815   fi
2816 fi
2817 for ac_declaration in \
2818    '' \
2819    'extern "C" void std::exit (int) throw (); using std::exit;' \
2820    'extern "C" void std::exit (int); using std::exit;' \
2821    'extern "C" void exit (int) throw ();' \
2822    'extern "C" void exit (int);' \
2823    'void exit (int);'
2824 do
2825   cat >conftest.$ac_ext <<_ACEOF
2826 /* confdefs.h.  */
2827 _ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h.  */
2831 $ac_declaration
2832 #include <stdlib.h>
2833 int
2834 main ()
2835 {
2836 exit (42);
2837   ;
2838   return 0;
2839 }
2840 _ACEOF
2841 rm -f conftest.$ac_objext
2842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843   (eval $ac_compile) 2>conftest.er1
2844   ac_status=$?
2845   grep -v '^ *+' conftest.er1 >conftest.err
2846   rm -f conftest.er1
2847   cat conftest.err >&5
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); } &&
2850          { ac_try='test -z "$ac_cxx_werror_flag"
2851                          || test ! -s conftest.err'
2852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853   (eval $ac_try) 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }; } &&
2857          { ac_try='test -s conftest.$ac_objext'
2858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859   (eval $ac_try) 2>&5
2860   ac_status=$?
2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); }; }; then
2863   :
2864 else
2865   echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2867
2868 continue
2869 fi
2870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2871   cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h.  */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h.  */
2877 $ac_declaration
2878 int
2879 main ()
2880 {
2881 exit (42);
2882   ;
2883   return 0;
2884 }
2885 _ACEOF
2886 rm -f conftest.$ac_objext
2887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2888   (eval $ac_compile) 2>conftest.er1
2889   ac_status=$?
2890   grep -v '^ *+' conftest.er1 >conftest.err
2891   rm -f conftest.er1
2892   cat conftest.err >&5
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); } &&
2895          { ac_try='test -z "$ac_cxx_werror_flag"
2896                          || test ! -s conftest.err'
2897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898   (eval $ac_try) 2>&5
2899   ac_status=$?
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); }; } &&
2902          { ac_try='test -s conftest.$ac_objext'
2903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904   (eval $ac_try) 2>&5
2905   ac_status=$?
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); }; }; then
2908   break
2909 else
2910   echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2912
2913 fi
2914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2915 done
2916 rm -f conftest*
2917 if test -n "$ac_declaration"; then
2918   echo '#ifdef __cplusplus' >>confdefs.h
2919   echo $ac_declaration      >>confdefs.h
2920   echo '#endif'             >>confdefs.h
2921 fi
2922
2923 ac_ext=c
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928
2929
2930 if test "x$CHECKMEM" '!=' "x";then
2931     CC="ccmalloc $CC"
2932     CXX="ccmalloc $CXX"
2933     #echo running again
2934     #unset ac_cv_prog_CC
2935     #unset ac_cv_prog_CXX
2936     #AC_PROG_CC
2937     #AC_PROG_CXX
2938 fi
2939  ac_ext=c
2940 ac_cpp='$CPP $CPPFLAGS'
2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2945 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2946 # On Suns, sometimes $CPP names a directory.
2947 if test -n "$CPP" && test -d "$CPP"; then
2948   CPP=
2949 fi
2950 if test -z "$CPP"; then
2951   if test "${ac_cv_prog_CPP+set}" = set; then
2952   echo $ECHO_N "(cached) $ECHO_C" >&6
2953 else
2954       # Double quotes because CPP needs to be expanded
2955     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2956     do
2957       ac_preproc_ok=false
2958 for ac_c_preproc_warn_flag in '' yes
2959 do
2960   # Use a header file that comes with gcc, so configuring glibc
2961   # with a fresh cross-compiler works.
2962   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2963   # <limits.h> exists even on freestanding compilers.
2964   # On the NeXT, cc -E runs the code through the compiler's parser,
2965   # not just through cpp. "Syntax error" is here to catch this case.
2966   cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h.  */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h.  */
2972 #ifdef __STDC__
2973 # include <limits.h>
2974 #else
2975 # include <assert.h>
2976 #endif
2977                      Syntax error
2978 _ACEOF
2979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2980   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2981   ac_status=$?
2982   grep -v '^ *+' conftest.er1 >conftest.err
2983   rm -f conftest.er1
2984   cat conftest.err >&5
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); } >/dev/null; then
2987   if test -s conftest.err; then
2988     ac_cpp_err=$ac_c_preproc_warn_flag
2989     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2990   else
2991     ac_cpp_err=
2992   fi
2993 else
2994   ac_cpp_err=yes
2995 fi
2996 if test -z "$ac_cpp_err"; then
2997   :
2998 else
2999   echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3001
3002   # Broken: fails on valid input.
3003 continue
3004 fi
3005 rm -f conftest.err conftest.$ac_ext
3006
3007   # OK, works on sane cases.  Now check whether non-existent headers
3008   # can be detected and how.
3009   cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015 #include <ac_nonexistent.h>
3016 _ACEOF
3017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3018   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3019   ac_status=$?
3020   grep -v '^ *+' conftest.er1 >conftest.err
3021   rm -f conftest.er1
3022   cat conftest.err >&5
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); } >/dev/null; then
3025   if test -s conftest.err; then
3026     ac_cpp_err=$ac_c_preproc_warn_flag
3027     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3028   else
3029     ac_cpp_err=
3030   fi
3031 else
3032   ac_cpp_err=yes
3033 fi
3034 if test -z "$ac_cpp_err"; then
3035   # Broken: success on invalid input.
3036 continue
3037 else
3038   echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3040
3041   # Passes both tests.
3042 ac_preproc_ok=:
3043 break
3044 fi
3045 rm -f conftest.err conftest.$ac_ext
3046
3047 done
3048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3049 rm -f conftest.err conftest.$ac_ext
3050 if $ac_preproc_ok; then
3051   break
3052 fi
3053
3054     done
3055     ac_cv_prog_CPP=$CPP
3056
3057 fi
3058   CPP=$ac_cv_prog_CPP
3059 else
3060   ac_cv_prog_CPP=$CPP
3061 fi
3062 echo "$as_me:$LINENO: result: $CPP" >&5
3063 echo "${ECHO_T}$CPP" >&6
3064 ac_preproc_ok=false
3065 for ac_c_preproc_warn_flag in '' yes
3066 do
3067   # Use a header file that comes with gcc, so configuring glibc
3068   # with a fresh cross-compiler works.
3069   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3070   # <limits.h> exists even on freestanding compilers.
3071   # On the NeXT, cc -E runs the code through the compiler's parser,
3072   # not just through cpp. "Syntax error" is here to catch this case.
3073   cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h.  */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h.  */
3079 #ifdef __STDC__
3080 # include <limits.h>
3081 #else
3082 # include <assert.h>
3083 #endif
3084                      Syntax error
3085 _ACEOF
3086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } >/dev/null; then
3094   if test -s conftest.err; then
3095     ac_cpp_err=$ac_c_preproc_warn_flag
3096     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3097   else
3098     ac_cpp_err=
3099   fi
3100 else
3101   ac_cpp_err=yes
3102 fi
3103 if test -z "$ac_cpp_err"; then
3104   :
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109   # Broken: fails on valid input.
3110 continue
3111 fi
3112 rm -f conftest.err conftest.$ac_ext
3113
3114   # OK, works on sane cases.  Now check whether non-existent headers
3115   # can be detected and how.
3116   cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122 #include <ac_nonexistent.h>
3123 _ACEOF
3124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3126   ac_status=$?
3127   grep -v '^ *+' conftest.er1 >conftest.err
3128   rm -f conftest.er1
3129   cat conftest.err >&5
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); } >/dev/null; then
3132   if test -s conftest.err; then
3133     ac_cpp_err=$ac_c_preproc_warn_flag
3134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3135   else
3136     ac_cpp_err=
3137   fi
3138 else
3139   ac_cpp_err=yes
3140 fi
3141 if test -z "$ac_cpp_err"; then
3142   # Broken: success on invalid input.
3143 continue
3144 else
3145   echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3147
3148   # Passes both tests.
3149 ac_preproc_ok=:
3150 break
3151 fi
3152 rm -f conftest.err conftest.$ac_ext
3153
3154 done
3155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3156 rm -f conftest.err conftest.$ac_ext
3157 if $ac_preproc_ok; then
3158   :
3159 else
3160   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3161 See \`config.log' for more details." >&5
3162 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3163 See \`config.log' for more details." >&2;}
3164    { (exit 1); exit 1; }; }
3165 fi
3166
3167 ac_ext=c
3168 ac_cpp='$CPP $CPPFLAGS'
3169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172
3173
3174  if test -n "$ac_tool_prefix"; then
3175   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3176 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3177 echo "$as_me:$LINENO: checking for $ac_word" >&5
3178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3179 if test "${ac_cv_prog_RANLIB+set}" = set; then
3180   echo $ECHO_N "(cached) $ECHO_C" >&6
3181 else
3182   if test -n "$RANLIB"; then
3183   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3187 do
3188   IFS=$as_save_IFS
3189   test -z "$as_dir" && as_dir=.
3190   for ac_exec_ext in '' $ac_executable_extensions; do
3191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3194     break 2
3195   fi
3196 done
3197 done
3198
3199 fi
3200 fi
3201 RANLIB=$ac_cv_prog_RANLIB
3202 if test -n "$RANLIB"; then
3203   echo "$as_me:$LINENO: result: $RANLIB" >&5
3204 echo "${ECHO_T}$RANLIB" >&6
3205 else
3206   echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6
3208 fi
3209
3210 fi
3211 if test -z "$ac_cv_prog_RANLIB"; then
3212   ac_ct_RANLIB=$RANLIB
3213   # Extract the first word of "ranlib", so it can be a program name with args.
3214 set dummy ranlib; ac_word=$2
3215 echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220   if test -n "$ac_ct_RANLIB"; then
3221   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226   IFS=$as_save_IFS
3227   test -z "$as_dir" && as_dir=.
3228   for ac_exec_ext in '' $ac_executable_extensions; do
3229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230     ac_cv_prog_ac_ct_RANLIB="ranlib"
3231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3232     break 2
3233   fi
3234 done
3235 done
3236
3237   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3238 fi
3239 fi
3240 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3241 if test -n "$ac_ct_RANLIB"; then
3242   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3243 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3244 else
3245   echo "$as_me:$LINENO: result: no" >&5
3246 echo "${ECHO_T}no" >&6
3247 fi
3248
3249   RANLIB=$ac_ct_RANLIB
3250 else
3251   RANLIB="$ac_cv_prog_RANLIB"
3252 fi
3253
3254  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3255 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3256 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3257 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3258   echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260   cat >conftest.make <<\_ACEOF
3261 all:
3262         @echo 'ac_maketemp="$(MAKE)"'
3263 _ACEOF
3264 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3265 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3266 if test -n "$ac_maketemp"; then
3267   eval ac_cv_prog_make_${ac_make}_set=yes
3268 else
3269   eval ac_cv_prog_make_${ac_make}_set=no
3270 fi
3271 rm -f conftest.make
3272 fi
3273 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3274   echo "$as_me:$LINENO: result: yes" >&5
3275 echo "${ECHO_T}yes" >&6
3276   SET_MAKE=
3277 else
3278   echo "$as_me:$LINENO: result: no" >&5
3279 echo "${ECHO_T}no" >&6
3280   SET_MAKE="MAKE=${MAKE-make}"
3281 fi
3282
3283  # Find a good install program.  We prefer a C program (faster),
3284 # so one script is as good as another.  But avoid the broken or
3285 # incompatible versions:
3286 # SysV /etc/install, /usr/sbin/install
3287 # SunOS /usr/etc/install
3288 # IRIX /sbin/install
3289 # AIX /bin/install
3290 # AmigaOS /C/install, which installs bootblocks on floppy discs
3291 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3292 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3293 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3294 # OS/2's system install, which has a completely different semantic
3295 # ./install, which can be erroneously created by make from ./install.sh.
3296 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3297 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3298 if test -z "$INSTALL"; then
3299 if test "${ac_cv_path_install+set}" = set; then
3300   echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3304 do
3305   IFS=$as_save_IFS
3306   test -z "$as_dir" && as_dir=.
3307   # Account for people who put trailing slashes in PATH elements.
3308 case $as_dir/ in
3309   ./ | .// | /cC/* | \
3310   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3311   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3312   /usr/ucb/* ) ;;
3313   *)
3314     # OSF1 and SCO ODT 3.0 have their own names for install.
3315     # Don't use installbsd from OSF since it installs stuff as root
3316     # by default.
3317     for ac_prog in ginstall scoinst install; do
3318       for ac_exec_ext in '' $ac_executable_extensions; do
3319         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3320           if test $ac_prog = install &&
3321             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3322             # AIX install.  It has an incompatible calling convention.
3323             :
3324           elif test $ac_prog = install &&
3325             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3326             # program-specific install script used by HP pwplus--don't use.
3327             :
3328           else
3329             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3330             break 3
3331           fi
3332         fi
3333       done
3334     done
3335     ;;
3336 esac
3337 done
3338
3339
3340 fi
3341   if test "${ac_cv_path_install+set}" = set; then
3342     INSTALL=$ac_cv_path_install
3343   else
3344     # As a last resort, use the slow shell script.  We don't cache a
3345     # path for INSTALL within a source directory, because that will
3346     # break other packages using the cache if that directory is
3347     # removed, or if the path is relative.
3348     INSTALL=$ac_install_sh
3349   fi
3350 fi
3351 echo "$as_me:$LINENO: result: $INSTALL" >&5
3352 echo "${ECHO_T}$INSTALL" >&6
3353
3354 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3355 # It thinks the first close brace ends the variable substitution.
3356 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3357
3358 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3359
3360 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3361
3362  echo "$as_me:$LINENO: checking whether ln -s works" >&5
3363 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3364 LN_S=$as_ln_s
3365 if test "$LN_S" = "ln -s"; then
3366   echo "$as_me:$LINENO: result: yes" >&5
3367 echo "${ECHO_T}yes" >&6
3368 else
3369   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3370 echo "${ECHO_T}no, using $LN_S" >&6
3371 fi
3372
3373  # Check whether --enable-shared or --disable-shared was given.
3374 if test "${enable_shared+set}" = set; then
3375   enableval="$enable_shared"
3376   p=${PACKAGE-default}
3377 case $enableval in
3378 yes) enable_shared=yes ;;
3379 no) enable_shared=no ;;
3380 *)
3381   enable_shared=no
3382   # Look at the argument we got.  We use all the common list separators.
3383   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3384   for pkg in $enableval; do
3385     if test "X$pkg" = "X$p"; then
3386       enable_shared=yes
3387     fi
3388   done
3389   IFS="$ac_save_ifs"
3390   ;;
3391 esac
3392 else
3393   enable_shared=yes
3394 fi;
3395 # Check whether --enable-static or --disable-static was given.
3396 if test "${enable_static+set}" = set; then
3397   enableval="$enable_static"
3398   p=${PACKAGE-default}
3399 case $enableval in
3400 yes) enable_static=yes ;;
3401 no) enable_static=no ;;
3402 *)
3403   enable_static=no
3404   # Look at the argument we got.  We use all the common list separators.
3405   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3406   for pkg in $enableval; do
3407     if test "X$pkg" = "X$p"; then
3408       enable_static=yes
3409     fi
3410   done
3411   IFS="$ac_save_ifs"
3412   ;;
3413 esac
3414 else
3415   enable_static=yes
3416 fi;
3417 # Check whether --enable-fast-install or --disable-fast-install was given.
3418 if test "${enable_fast_install+set}" = set; then
3419   enableval="$enable_fast_install"
3420   p=${PACKAGE-default}
3421 case $enableval in
3422 yes) enable_fast_install=yes ;;
3423 no) enable_fast_install=no ;;
3424 *)
3425   enable_fast_install=no
3426   # Look at the argument we got.  We use all the common list separators.
3427   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3428   for pkg in $enableval; do
3429     if test "X$pkg" = "X$p"; then
3430       enable_fast_install=yes
3431     fi
3432   done
3433   IFS="$ac_save_ifs"
3434   ;;
3435 esac
3436 else
3437   enable_fast_install=yes
3438 fi;
3439 # Find the correct PATH separator.  Usually this is `:', but
3440 # DJGPP uses `;' like DOS.
3441 if test "X${PATH_SEPARATOR+set}" != Xset; then
3442   UNAME=${UNAME-`uname 2>/dev/null`}
3443   case X$UNAME in
3444     *-DOS) lt_cv_sys_path_separator=';' ;;
3445     *)     lt_cv_sys_path_separator=':' ;;
3446   esac
3447   PATH_SEPARATOR=$lt_cv_sys_path_separator
3448 fi
3449
3450
3451 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3452 if test "${with_gnu_ld+set}" = set; then
3453   withval="$with_gnu_ld"
3454   test "$withval" = no || with_gnu_ld=yes
3455 else
3456   with_gnu_ld=no
3457 fi;
3458 ac_prog=ld
3459 if test "$GCC" = yes; then
3460   # Check if gcc -print-prog-name=ld gives a path.
3461   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3462 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3463   case $host in
3464   *-*-mingw*)
3465     # gcc leaves a trailing carriage return which upsets mingw
3466     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3467   *)
3468     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3469   esac
3470   case $ac_prog in
3471     # Accept absolute paths.
3472     [\\/]* | [A-Za-z]:[\\/]*)
3473       re_direlt='/[^/][^/]*/\.\./'
3474       # Canonicalize the path of ld
3475       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3476       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3477         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3478       done
3479       test -z "$LD" && LD="$ac_prog"
3480       ;;
3481   "")
3482     # If it fails, then pretend we aren't using GCC.
3483     ac_prog=ld
3484     ;;
3485   *)
3486     # If it is relative, then search for the first ld in PATH.
3487     with_gnu_ld=unknown
3488     ;;
3489   esac
3490 elif test "$with_gnu_ld" = yes; then
3491   echo "$as_me:$LINENO: checking for GNU ld" >&5
3492 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3493 else
3494   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3495 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3496 fi
3497 if test "${lt_cv_path_LD+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   if test -z "$LD"; then
3501   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3502   for ac_dir in $PATH; do
3503     test -z "$ac_dir" && ac_dir=.
3504     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3505       lt_cv_path_LD="$ac_dir/$ac_prog"
3506       # Check to see if the program is GNU ld.  I'd rather use --version,
3507       # but apparently some GNU ld's only accept -v.
3508       # Break only if it was the GNU/non-GNU ld that we prefer.
3509       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3510         test "$with_gnu_ld" != no && break
3511       else
3512         test "$with_gnu_ld" != yes && break
3513       fi
3514     fi
3515   done
3516   IFS="$ac_save_ifs"
3517 else
3518   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3519 fi
3520 fi
3521
3522 LD="$lt_cv_path_LD"
3523 if test -n "$LD"; then
3524   echo "$as_me:$LINENO: result: $LD" >&5
3525 echo "${ECHO_T}$LD" >&6
3526 else
3527   echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3529 fi
3530 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3531 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3532    { (exit 1); exit 1; }; }
3533 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3534 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3535 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3536   echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3539 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3540   lt_cv_prog_gnu_ld=yes
3541 else
3542   lt_cv_prog_gnu_ld=no
3543 fi
3544 fi
3545 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3546 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3547 with_gnu_ld=$lt_cv_prog_gnu_ld
3548
3549
3550 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3551 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3552 if test "${lt_cv_ld_reload_flag+set}" = set; then
3553   echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555   lt_cv_ld_reload_flag='-r'
3556 fi
3557 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3558 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3559 reload_flag=$lt_cv_ld_reload_flag
3560 test -n "$reload_flag" && reload_flag=" $reload_flag"
3561
3562 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3563 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3564 if test "${lt_cv_path_NM+set}" = set; then
3565   echo $ECHO_N "(cached) $ECHO_C" >&6
3566 else
3567   if test -n "$NM"; then
3568   # Let the user override the test.
3569   lt_cv_path_NM="$NM"
3570 else
3571   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3572   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3573     test -z "$ac_dir" && ac_dir=.
3574     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3575     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3576       # Check to see if the nm accepts a BSD-compat flag.
3577       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3578       #   nm: unknown option "B" ignored
3579       # Tru64's nm complains that /dev/null is an invalid object file
3580       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3581         lt_cv_path_NM="$tmp_nm -B"
3582         break
3583       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3584         lt_cv_path_NM="$tmp_nm -p"
3585         break
3586       else
3587         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3588         continue # so that we can try to find one that supports BSD flags
3589       fi
3590     fi
3591   done
3592   IFS="$ac_save_ifs"
3593   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3594 fi
3595 fi
3596
3597 NM="$lt_cv_path_NM"
3598 echo "$as_me:$LINENO: result: $NM" >&5
3599 echo "${ECHO_T}$NM" >&6
3600
3601 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3602 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3603 if test "${lt_cv_path_SED+set}" = set; then
3604   echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606   # Loop through the user's path and test for sed and gsed.
3607 # Then use that list of sed's as ones to test for truncation.
3608 as_executable_p="test -f"
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3611 do
3612   IFS=$as_save_IFS
3613   test -z "$as_dir" && as_dir=.
3614   for ac_prog in sed gsed; do
3615     for ac_exec_ext in '' $ac_executable_extensions; do
3616       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3617         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3618       fi
3619     done
3620   done
3621 done
3622
3623   # Create a temporary directory, and hook for its removal unless debugging.
3624 $debug ||
3625 {
3626   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3627   trap '{ (exit 1); exit 1; }' 1 2 13 15
3628 }
3629
3630 # Create a (secure) tmp directory for tmp files.
3631 : ${TMPDIR=/tmp}
3632 {
3633   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3634   test -n "$tmp" && test -d "$tmp"
3635 }  ||
3636 {
3637   tmp=$TMPDIR/sed$$-$RANDOM
3638   (umask 077 && mkdir $tmp)
3639 } ||
3640 {
3641    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3642    { (exit 1); exit 1; }
3643 }
3644   _max=0
3645   _count=0
3646   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3647   # along with /bin/sed that truncates output.
3648   for _sed in $_sed_list /usr/xpg4/bin/sed; do
3649     test ! -f ${_sed} && break
3650     cat /dev/null > "$tmp/sed.in"
3651     _count=0
3652     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3653     # Check for GNU sed and select it if it is found.
3654     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3655       lt_cv_path_SED=${_sed}
3656       break
3657     fi
3658     while true; do
3659       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3660       mv "$tmp/sed.tmp" "$tmp/sed.in"
3661       cp "$tmp/sed.in" "$tmp/sed.nl"
3662       echo >>"$tmp/sed.nl"
3663       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3664       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3665       # 40000 chars as input seems more than enough
3666       test $_count -gt 10 && break
3667       _count=`expr $_count + 1`
3668       if test $_count -gt $_max; then
3669         _max=$_count
3670         lt_cv_path_SED=$_sed
3671       fi
3672     done
3673   done
3674   rm -rf "$tmp"
3675
3676 fi
3677
3678 if test "X$SED" != "X"; then
3679   lt_cv_path_SED=$SED
3680 else
3681   SED=$lt_cv_path_SED
3682 fi
3683 echo "$as_me:$LINENO: result: $SED" >&5
3684 echo "${ECHO_T}$SED" >&6
3685
3686 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3687 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3688 if test "${lt_cv_deplibs_check_method+set}" = set; then
3689   echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691   lt_cv_file_magic_cmd='$MAGIC_CMD'
3692 lt_cv_file_magic_test_file=
3693 lt_cv_deplibs_check_method='unknown'
3694 # Need to set the preceding variable on all platforms that support
3695 # interlibrary dependencies.
3696 # 'none' -- dependencies not supported.
3697 # `unknown' -- same as none, but documents that we really don't know.
3698 # 'pass_all' -- all dependencies passed with no checks.
3699 # 'test_compile' -- check by making test program.
3700 # 'file_magic [[regex]]' -- check by looking for files in library path
3701 # which responds to the $file_magic_cmd with a given egrep regex.
3702 # If you have `file' or equivalent on your system and you're not sure
3703 # whether `pass_all' will *always* work, you probably want this one.
3704
3705 case $host_os in
3706 aix4* | aix5*)
3707   lt_cv_deplibs_check_method=pass_all
3708   ;;
3709
3710 beos*)
3711   lt_cv_deplibs_check_method=pass_all
3712   ;;
3713
3714 bsdi4*)
3715   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3716   lt_cv_file_magic_cmd='/usr/bin/file -L'
3717   lt_cv_file_magic_test_file=/shlib/libc.so
3718   ;;
3719
3720 cygwin* | mingw* | pw32*)
3721   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3722   lt_cv_file_magic_cmd='$OBJDUMP -f'
3723   ;;
3724
3725 darwin* | rhapsody*)
3726   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3727   lt_cv_file_magic_cmd='/usr/bin/file -L'
3728   case "$host_os" in
3729   rhapsody* | darwin1.[012])
3730     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3731     ;;
3732   *) # Darwin 1.3 on
3733     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3734     ;;
3735   esac
3736   ;;
3737
3738 freebsd*)
3739   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3740     case $host_cpu in
3741     i*86 )
3742       # Not sure whether the presence of OpenBSD here was a mistake.
3743       # Let's accept both of them until this is cleared up.
3744       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3745       lt_cv_file_magic_cmd=/usr/bin/file
3746       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3747       ;;
3748     esac
3749   else
3750     lt_cv_deplibs_check_method=pass_all
3751   fi
3752   ;;
3753
3754 gnu*)
3755   lt_cv_deplibs_check_method=pass_all
3756   ;;
3757
3758 hpux10.20*|hpux11*)
3759   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3760   lt_cv_file_magic_cmd=/usr/bin/file
3761   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3762   ;;
3763
3764 irix5* | irix6* | nonstopux*)
3765   case $host_os in
3766   irix5* | nonstopux*)
3767     # this will be overridden with pass_all, but let us keep it just in case
3768     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3769     ;;
3770   *)
3771     case $LD in
3772     *-32|*"-32 ") libmagic=32-bit;;
3773     *-n32|*"-n32 ") libmagic=N32;;
3774     *-64|*"-64 ") libmagic=64-bit;;
3775     *) libmagic=never-match;;
3776     esac
3777     # this will be overridden with pass_all, but let us keep it just in case
3778     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3779     ;;
3780   esac
3781   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3782   lt_cv_deplibs_check_method=pass_all
3783   ;;
3784
3785 # This must be Linux ELF.
3786 linux-gnu*)
3787   case $host_cpu in
3788   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3789     lt_cv_deplibs_check_method=pass_all ;;
3790   *)
3791     # glibc up to 2.1.1 does not perform some relocations on ARM
3792     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3793   esac
3794   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3795   ;;
3796
3797 netbsd*)
3798   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3799     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3800   else
3801     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3802   fi
3803   ;;
3804
3805 newos6*)
3806   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3807   lt_cv_file_magic_cmd=/usr/bin/file
3808   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3809   ;;
3810
3811 openbsd*)
3812   lt_cv_file_magic_cmd=/usr/bin/file
3813   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3814   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3815     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3816   else
3817     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3818   fi
3819   ;;
3820
3821 osf3* | osf4* | osf5*)
3822   # this will be overridden with pass_all, but let us keep it just in case
3823   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3824   lt_cv_file_magic_test_file=/shlib/libc.so
3825   lt_cv_deplibs_check_method=pass_all
3826   ;;
3827
3828 sco3.2v5*)
3829   lt_cv_deplibs_check_method=pass_all
3830   ;;
3831
3832 solaris*)
3833   lt_cv_deplibs_check_method=pass_all
3834   lt_cv_file_magic_test_file=/lib/libc.so
3835   ;;
3836
3837 sysv5uw[78]* | sysv4*uw2*)
3838   lt_cv_deplibs_check_method=pass_all
3839   ;;
3840
3841 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3842   case $host_vendor in
3843   motorola)
3844     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]'
3845     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3846     ;;
3847   ncr)
3848     lt_cv_deplibs_check_method=pass_all
3849     ;;
3850   sequent)
3851     lt_cv_file_magic_cmd='/bin/file'
3852     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3853     ;;
3854   sni)
3855     lt_cv_file_magic_cmd='/bin/file'
3856     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3857     lt_cv_file_magic_test_file=/lib/libc.so
3858     ;;
3859   siemens)
3860     lt_cv_deplibs_check_method=pass_all
3861     ;;
3862   esac
3863   ;;
3864 esac
3865
3866 fi
3867 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3868 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3869 file_magic_cmd=$lt_cv_file_magic_cmd
3870 deplibs_check_method=$lt_cv_deplibs_check_method
3871
3872
3873
3874
3875
3876
3877
3878
3879 # Check for command to grab the raw symbol name followed by C symbol from nm.
3880 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3881 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3882 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3883   echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885
3886 # These are sane defaults that work on at least a few old systems.
3887 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3888
3889 # Character class describing NM global symbol codes.
3890 symcode='[BCDEGRST]'
3891
3892 # Regexp to match symbols that can be accessed directly from C.
3893 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3894
3895 # Transform the above into a raw symbol and a C symbol.
3896 symxfrm='\1 \2\3 \3'
3897
3898 # Transform an extracted symbol line into a proper C declaration
3899 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3900
3901 # Transform an extracted symbol line into symbol name and symbol address
3902 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'"
3903
3904 # Define system-specific variables.
3905 case $host_os in
3906 aix*)
3907   symcode='[BCDT]'
3908   ;;
3909 cygwin* | mingw* | pw32*)
3910   symcode='[ABCDGISTW]'
3911   ;;
3912 hpux*) # Its linker distinguishes data from code symbols
3913   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3914   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'"
3915   ;;
3916 irix* | nonstopux*)
3917   symcode='[BCDEGRST]'
3918   ;;
3919 osf*)
3920   symcode='[BCDEGQRST]'
3921   ;;
3922 solaris* | sysv5*)
3923   symcode='[BDT]'
3924   ;;
3925 sysv4)
3926   symcode='[DFNSTU]'
3927   ;;
3928 esac
3929
3930 # Handle CRLF in mingw tool chain
3931 opt_cr=
3932 case $host_os in
3933 mingw*)
3934   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3935   ;;
3936 esac
3937
3938 # If we're using GNU nm, then use its standard symbol codes.
3939 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3940   symcode='[ABCDGISTW]'
3941 fi
3942
3943 # Try without a prefix undercore, then with it.
3944 for ac_symprfx in "" "_"; do
3945
3946   # Write the raw and C identifiers.
3947 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3948
3949   # Check to see that the pipe works correctly.
3950   pipe_works=no
3951   rm -f conftest*
3952   cat > conftest.$ac_ext <<EOF
3953 #ifdef __cplusplus
3954 extern "C" {
3955 #endif
3956 char nm_test_var;
3957 void nm_test_func(){}
3958 #ifdef __cplusplus
3959 }
3960 #endif
3961 int main(){nm_test_var='a';nm_test_func();return(0);}
3962 EOF
3963
3964   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3965   (eval $ac_compile) 2>&5
3966   ac_status=$?
3967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); }; then
3969     # Now try to grab the symbols.
3970     nlist=conftest.nm
3971     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3972   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3973   ac_status=$?
3974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975   (exit $ac_status); } && test -s "$nlist"; then
3976       # Try sorting and uniquifying the output.
3977       if sort "$nlist" | uniq > "$nlist"T; then
3978         mv -f "$nlist"T "$nlist"
3979       else
3980         rm -f "$nlist"T
3981       fi
3982
3983       # Make sure that we snagged all the symbols we need.
3984       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3985         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3986           cat <<EOF > conftest.$ac_ext
3987 #ifdef __cplusplus
3988 extern "C" {
3989 #endif
3990
3991 EOF
3992           # Now generate the symbol file.
3993           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3994
3995           cat <<EOF >> conftest.$ac_ext
3996 #if defined (__STDC__) && __STDC__
3997 # define lt_ptr void *
3998 #else
3999 # define lt_ptr char *
4000 # define const
4001 #endif
4002
4003 /* The mapping between symbol names and symbols. */
4004 const struct {
4005   const char *name;
4006   lt_ptr address;
4007 }
4008 lt_preloaded_symbols[] =
4009 {
4010 EOF
4011           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4012           cat <<\EOF >> conftest.$ac_ext
4013   {0, (lt_ptr) 0}
4014 };
4015
4016 #ifdef __cplusplus
4017 }
4018 #endif
4019 EOF
4020           # Now try linking the two files.
4021           mv conftest.$ac_objext conftstm.$ac_objext
4022           save_LIBS="$LIBS"
4023           save_CFLAGS="$CFLAGS"
4024           LIBS="conftstm.$ac_objext"
4025           CFLAGS="$CFLAGS$no_builtin_flag"
4026           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4027   (eval $ac_link) 2>&5
4028   ac_status=$?
4029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030   (exit $ac_status); } && test -s conftest$ac_exeext; then
4031             pipe_works=yes
4032           fi
4033           LIBS="$save_LIBS"
4034           CFLAGS="$save_CFLAGS"
4035         else
4036           echo "cannot find nm_test_func in $nlist" >&5
4037         fi
4038       else
4039         echo "cannot find nm_test_var in $nlist" >&5
4040       fi
4041     else
4042       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4043     fi
4044   else
4045     echo "$progname: failed program was:" >&5
4046     cat conftest.$ac_ext >&5
4047   fi
4048   rm -f conftest* conftst*
4049
4050   # Do not use the global_symbol_pipe unless it works.
4051   if test "$pipe_works" = yes; then
4052     break
4053   else
4054     lt_cv_sys_global_symbol_pipe=
4055   fi
4056 done
4057
4058 fi
4059
4060 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4061 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4062   global_symbol_to_cdecl=
4063   global_symbol_to_c_name_address=
4064 else
4065   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4066   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4067 fi
4068 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4069 then
4070   echo "$as_me:$LINENO: result: failed" >&5
4071 echo "${ECHO_T}failed" >&6
4072 else
4073   echo "$as_me:$LINENO: result: ok" >&5
4074 echo "${ECHO_T}ok" >&6
4075 fi
4076
4077
4078 echo "$as_me:$LINENO: checking for egrep" >&5
4079 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4080 if test "${ac_cv_prog_egrep+set}" = set; then
4081   echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4084     then ac_cv_prog_egrep='grep -E'
4085     else ac_cv_prog_egrep='egrep'
4086     fi
4087 fi
4088 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4089 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4090  EGREP=$ac_cv_prog_egrep
4091
4092
4093 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4094 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4095 if test "${ac_cv_header_stdc+set}" = set; then
4096   echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098   cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h.  */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h.  */
4104 #include <stdlib.h>
4105 #include <stdarg.h>
4106 #include <string.h>
4107 #include <float.h>
4108
4109 int
4110 main ()
4111 {
4112
4113   ;
4114   return 0;
4115 }
4116 _ACEOF
4117 rm -f conftest.$ac_objext
4118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4119   (eval $ac_compile) 2>conftest.er1
4120   ac_status=$?
4121   grep -v '^ *+' conftest.er1 >conftest.err
4122   rm -f conftest.er1
4123   cat conftest.err >&5
4124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125   (exit $ac_status); } &&
4126          { ac_try='test -z "$ac_c_werror_flag"
4127                          || test ! -s conftest.err'
4128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129   (eval $ac_try) 2>&5
4130   ac_status=$?
4131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132   (exit $ac_status); }; } &&
4133          { ac_try='test -s conftest.$ac_objext'
4134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135   (eval $ac_try) 2>&5
4136   ac_status=$?
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); }; }; then
4139   ac_cv_header_stdc=yes
4140 else
4141   echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4143
4144 ac_cv_header_stdc=no
4145 fi
4146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4147
4148 if test $ac_cv_header_stdc = yes; then
4149   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4150   cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h.  */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h.  */
4156 #include <string.h>
4157
4158 _ACEOF
4159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4160   $EGREP "memchr" >/dev/null 2>&1; then
4161   :
4162 else
4163   ac_cv_header_stdc=no
4164 fi
4165 rm -f conftest*
4166
4167 fi
4168
4169 if test $ac_cv_header_stdc = yes; then
4170   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4171   cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h.  */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h.  */
4177 #include <stdlib.h>
4178
4179 _ACEOF
4180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4181   $EGREP "free" >/dev/null 2>&1; then
4182   :
4183 else
4184   ac_cv_header_stdc=no
4185 fi
4186 rm -f conftest*
4187
4188 fi
4189
4190 if test $ac_cv_header_stdc = yes; then
4191   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4192   if test "$cross_compiling" = yes; then
4193   :
4194 else
4195   cat >conftest.$ac_ext <<_ACEOF
4196 /* confdefs.h.  */
4197 _ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h.  */
4201 #include <ctype.h>
4202 #if ((' ' & 0x0FF) == 0x020)
4203 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4204 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4205 #else
4206 # define ISLOWER(c) \
4207                    (('a' <= (c) && (c) <= 'i') \
4208                      || ('j' <= (c) && (c) <= 'r') \
4209                      || ('s' <= (c) && (c) <= 'z'))
4210 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4211 #endif
4212
4213 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4214 int
4215 main ()
4216 {
4217   int i;
4218   for (i = 0; i < 256; i++)
4219     if (XOR (islower (i), ISLOWER (i))
4220         || toupper (i) != TOUPPER (i))
4221       exit(2);
4222   exit (0);
4223 }
4224 _ACEOF
4225 rm -f conftest$ac_exeext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4227   (eval $ac_link) 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232   (eval $ac_try) 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); }; }; then
4236   :
4237 else
4238   echo "$as_me: program exited with status $ac_status" >&5
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 ( exit $ac_status )
4243 ac_cv_header_stdc=no
4244 fi
4245 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4246 fi
4247 fi
4248 fi
4249 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4250 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4251 if test $ac_cv_header_stdc = yes; then
4252
4253 cat >>confdefs.h <<\_ACEOF
4254 #define STDC_HEADERS 1
4255 _ACEOF
4256
4257 fi
4258
4259 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4270                   inttypes.h stdint.h unistd.h
4271 do
4272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4273 echo "$as_me:$LINENO: checking for $ac_header" >&5
4274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4276   echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278   cat >conftest.$ac_ext <<_ACEOF
4279 /* confdefs.h.  */
4280 _ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h.  */
4284 $ac_includes_default
4285
4286 #include <$ac_header>
4287 _ACEOF
4288 rm -f conftest.$ac_objext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4290   (eval $ac_compile) 2>conftest.er1
4291   ac_status=$?
4292   grep -v '^ *+' conftest.er1 >conftest.err
4293   rm -f conftest.er1
4294   cat conftest.err >&5
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); } &&
4297          { ac_try='test -z "$ac_c_werror_flag"
4298                          || test ! -s conftest.err'
4299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300   (eval $ac_try) 2>&5
4301   ac_status=$?
4302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303   (exit $ac_status); }; } &&
4304          { ac_try='test -s conftest.$ac_objext'
4305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306   (eval $ac_try) 2>&5
4307   ac_status=$?
4308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309   (exit $ac_status); }; }; then
4310   eval "$as_ac_Header=yes"
4311 else
4312   echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4314
4315 eval "$as_ac_Header=no"
4316 fi
4317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4318 fi
4319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4322   cat >>confdefs.h <<_ACEOF
4323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4324 _ACEOF
4325
4326 fi
4327
4328 done
4329
4330
4331
4332 for ac_header in dlfcn.h
4333 do
4334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4336   echo "$as_me:$LINENO: checking for $ac_header" >&5
4337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4339   echo $ECHO_N "(cached) $ECHO_C" >&6
4340 fi
4341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4343 else
4344   # Is the header compilable?
4345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4347 cat >conftest.$ac_ext <<_ACEOF
4348 /* confdefs.h.  */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h.  */
4353 $ac_includes_default
4354 #include <$ac_header>
4355 _ACEOF
4356 rm -f conftest.$ac_objext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358   (eval $ac_compile) 2>conftest.er1
4359   ac_status=$?
4360   grep -v '^ *+' conftest.er1 >conftest.err
4361   rm -f conftest.er1
4362   cat conftest.err >&5
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); } &&
4365          { ac_try='test -z "$ac_c_werror_flag"
4366                          || test ! -s conftest.err'
4367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368   (eval $ac_try) 2>&5
4369   ac_status=$?
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); }; } &&
4372          { ac_try='test -s conftest.$ac_objext'
4373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374   (eval $ac_try) 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); }; }; then
4378   ac_header_compiler=yes
4379 else
4380   echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4382
4383 ac_header_compiler=no
4384 fi
4385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4387 echo "${ECHO_T}$ac_header_compiler" >&6
4388
4389 # Is the header present?
4390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4392 cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h.  */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h.  */
4398 #include <$ac_header>
4399 _ACEOF
4400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4402   ac_status=$?
4403   grep -v '^ *+' conftest.er1 >conftest.err
4404   rm -f conftest.er1
4405   cat conftest.err >&5
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); } >/dev/null; then
4408   if test -s conftest.err; then
4409     ac_cpp_err=$ac_c_preproc_warn_flag
4410     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4411   else
4412     ac_cpp_err=
4413   fi
4414 else
4415   ac_cpp_err=yes
4416 fi
4417 if test -z "$ac_cpp_err"; then
4418   ac_header_preproc=yes
4419 else
4420   echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4422
4423   ac_header_preproc=no
4424 fi
4425 rm -f conftest.err conftest.$ac_ext
4426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4427 echo "${ECHO_T}$ac_header_preproc" >&6
4428
4429 # So?  What about this header?
4430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4431   yes:no: )
4432     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4436     ac_header_preproc=yes
4437     ;;
4438   no:yes:* )
4439     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4441     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4442 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4443     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4445     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4446 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4449     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4451     (
4452       cat <<\_ASBOX
4453 ## ------------------------------------------ ##
4454 ## Report this to the AC_PACKAGE_NAME lists.  ##
4455 ## ------------------------------------------ ##
4456 _ASBOX
4457     ) |
4458       sed "s/^/$as_me: WARNING:     /" >&2
4459     ;;
4460 esac
4461 echo "$as_me:$LINENO: checking for $ac_header" >&5
4462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466   eval "$as_ac_Header=\$ac_header_preproc"
4467 fi
4468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4470
4471 fi
4472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4473   cat >>confdefs.h <<_ACEOF
4474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4475 _ACEOF
4476
4477 fi
4478
4479 done
4480
4481
4482
4483
4484
4485
4486 # Only perform the check for file, if the check method requires it
4487 case $deplibs_check_method in
4488 file_magic*)
4489   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4490     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4491 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4492 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4493   echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495   case $MAGIC_CMD in
4496   /*)
4497   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4498   ;;
4499   ?:/*)
4500   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4501   ;;
4502   *)
4503   ac_save_MAGIC_CMD="$MAGIC_CMD"
4504   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4505   ac_dummy="/usr/bin:$PATH"
4506   for ac_dir in $ac_dummy; do
4507     test -z "$ac_dir" && ac_dir=.
4508     if test -f $ac_dir/${ac_tool_prefix}file; then
4509       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4510       if test -n "$file_magic_test_file"; then
4511         case $deplibs_check_method in
4512         "file_magic "*)
4513           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4514           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4515           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4516             egrep "$file_magic_regex" > /dev/null; then
4517             :
4518           else
4519             cat <<EOF 1>&2
4520
4521 *** Warning: the command libtool uses to detect shared libraries,
4522 *** $file_magic_cmd, produces output that libtool cannot recognize.
4523 *** The result is that libtool may fail to recognize shared libraries
4524 *** as such.  This will affect the creation of libtool libraries that
4525 *** depend on shared libraries, but programs linked with such libtool
4526 *** libraries will work regardless of this problem.  Nevertheless, you
4527 *** may want to report the problem to your system manager and/or to
4528 *** bug-libtool@gnu.org
4529
4530 EOF
4531           fi ;;
4532         esac
4533       fi
4534       break
4535     fi
4536   done
4537   IFS="$ac_save_ifs"
4538   MAGIC_CMD="$ac_save_MAGIC_CMD"
4539   ;;
4540 esac
4541 fi
4542
4543 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4544 if test -n "$MAGIC_CMD"; then
4545   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4546 echo "${ECHO_T}$MAGIC_CMD" >&6
4547 else
4548   echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6
4550 fi
4551
4552 if test -z "$lt_cv_path_MAGIC_CMD"; then
4553   if test -n "$ac_tool_prefix"; then
4554     echo "$as_me:$LINENO: checking for file" >&5
4555 echo $ECHO_N "checking for file... $ECHO_C" >&6
4556 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   case $MAGIC_CMD in
4560   /*)
4561   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4562   ;;
4563   ?:/*)
4564   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4565   ;;
4566   *)
4567   ac_save_MAGIC_CMD="$MAGIC_CMD"
4568   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4569   ac_dummy="/usr/bin:$PATH"
4570   for ac_dir in $ac_dummy; do
4571     test -z "$ac_dir" && ac_dir=.
4572     if test -f $ac_dir/file; then
4573       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4574       if test -n "$file_magic_test_file"; then
4575         case $deplibs_check_method in
4576         "file_magic "*)
4577           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4578           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4579           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4580             egrep "$file_magic_regex" > /dev/null; then
4581             :
4582           else
4583             cat <<EOF 1>&2
4584
4585 *** Warning: the command libtool uses to detect shared libraries,
4586 *** $file_magic_cmd, produces output that libtool cannot recognize.
4587 *** The result is that libtool may fail to recognize shared libraries
4588 *** as such.  This will affect the creation of libtool libraries that
4589 *** depend on shared libraries, but programs linked with such libtool
4590 *** libraries will work regardless of this problem.  Nevertheless, you
4591 *** may want to report the problem to your system manager and/or to
4592 *** bug-libtool@gnu.org
4593
4594 EOF
4595           fi ;;
4596         esac
4597       fi
4598       break
4599     fi
4600   done
4601   IFS="$ac_save_ifs"
4602   MAGIC_CMD="$ac_save_MAGIC_CMD"
4603   ;;
4604 esac
4605 fi
4606
4607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4608 if test -n "$MAGIC_CMD"; then
4609   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4610 echo "${ECHO_T}$MAGIC_CMD" >&6
4611 else
4612   echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6
4614 fi
4615
4616   else
4617     MAGIC_CMD=:
4618   fi
4619 fi
4620
4621   fi
4622   ;;
4623 esac
4624
4625 if test -n "$ac_tool_prefix"; then
4626   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4627 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4628 echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4630 if test "${ac_cv_prog_RANLIB+set}" = set; then
4631   echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633   if test -n "$RANLIB"; then
4634   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4635 else
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4638 do
4639   IFS=$as_save_IFS
4640   test -z "$as_dir" && as_dir=.
4641   for ac_exec_ext in '' $ac_executable_extensions; do
4642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645     break 2
4646   fi
4647 done
4648 done
4649
4650 fi
4651 fi
4652 RANLIB=$ac_cv_prog_RANLIB
4653 if test -n "$RANLIB"; then
4654   echo "$as_me:$LINENO: result: $RANLIB" >&5
4655 echo "${ECHO_T}$RANLIB" >&6
4656 else
4657   echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6
4659 fi
4660
4661 fi
4662 if test -z "$ac_cv_prog_RANLIB"; then
4663   ac_ct_RANLIB=$RANLIB
4664   # Extract the first word of "ranlib", so it can be a program name with args.
4665 set dummy ranlib; ac_word=$2
4666 echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4668 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4669   echo $ECHO_N "(cached) $ECHO_C" >&6
4670 else
4671   if test -n "$ac_ct_RANLIB"; then
4672   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677   IFS=$as_save_IFS
4678   test -z "$as_dir" && as_dir=.
4679   for ac_exec_ext in '' $ac_executable_extensions; do
4680   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4681     ac_cv_prog_ac_ct_RANLIB="ranlib"
4682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683     break 2
4684   fi
4685 done
4686 done
4687
4688   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4689 fi
4690 fi
4691 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4692 if test -n "$ac_ct_RANLIB"; then
4693   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4694 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4695 else
4696   echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6
4698 fi
4699
4700   RANLIB=$ac_ct_RANLIB
4701 else
4702   RANLIB="$ac_cv_prog_RANLIB"
4703 fi
4704
4705 if test -n "$ac_tool_prefix"; then
4706   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4707 set dummy ${ac_tool_prefix}strip; ac_word=$2
4708 echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4710 if test "${ac_cv_prog_STRIP+set}" = set; then
4711   echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713   if test -n "$STRIP"; then
4714   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719   IFS=$as_save_IFS
4720   test -z "$as_dir" && as_dir=.
4721   for ac_exec_ext in '' $ac_executable_extensions; do
4722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725     break 2
4726   fi
4727 done
4728 done
4729
4730 fi
4731 fi
4732 STRIP=$ac_cv_prog_STRIP
4733 if test -n "$STRIP"; then
4734   echo "$as_me:$LINENO: result: $STRIP" >&5
4735 echo "${ECHO_T}$STRIP" >&6
4736 else
4737   echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6
4739 fi
4740
4741 fi
4742 if test -z "$ac_cv_prog_STRIP"; then
4743   ac_ct_STRIP=$STRIP
4744   # Extract the first word of "strip", so it can be a program name with args.
4745 set dummy strip; ac_word=$2
4746 echo "$as_me:$LINENO: checking for $ac_word" >&5
4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4748 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4749   echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751   if test -n "$ac_ct_STRIP"; then
4752   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4756 do
4757   IFS=$as_save_IFS
4758   test -z "$as_dir" && as_dir=.
4759   for ac_exec_ext in '' $ac_executable_extensions; do
4760   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4761     ac_cv_prog_ac_ct_STRIP="strip"
4762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4763     break 2
4764   fi
4765 done
4766 done
4767
4768   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4769 fi
4770 fi
4771 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4772 if test -n "$ac_ct_STRIP"; then
4773   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4774 echo "${ECHO_T}$ac_ct_STRIP" >&6
4775 else
4776   echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6
4778 fi
4779
4780   STRIP=$ac_ct_STRIP
4781 else
4782   STRIP="$ac_cv_prog_STRIP"
4783 fi
4784
4785
4786 enable_dlopen=no
4787 enable_win32_dll=no
4788
4789 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4790 if test "${enable_libtool_lock+set}" = set; then
4791   enableval="$enable_libtool_lock"
4792
4793 fi;
4794 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4795
4796 # Some flags need to be propagated to the compiler or linker for good
4797 # libtool support.
4798 case $host in
4799 *-*-irix6*)
4800   # Find out which ABI we are using.
4801   echo '#line 4801 "configure"' > conftest.$ac_ext
4802   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4803   (eval $ac_compile) 2>&5
4804   ac_status=$?
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); }; then
4807     case `/usr/bin/file conftest.$ac_objext` in
4808     *32-bit*)
4809       LD="${LD-ld} -32"
4810       ;;
4811     *N32*)
4812       LD="${LD-ld} -n32"
4813       ;;
4814     *64-bit*)
4815       LD="${LD-ld} -64"
4816       ;;
4817     esac
4818   fi
4819   rm -rf conftest*
4820   ;;
4821
4822 *-*-linux*)
4823   # Test if the compiler is 64bit
4824   echo 'int i;' > conftest.$ac_ext
4825   lt_cv_cc_64bit_output=no
4826   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827   (eval $ac_compile) 2>&5
4828   ac_status=$?
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); }; then
4831     case `/usr/bin/file conftest.$ac_objext` in
4832     *"ELF 64"*)
4833       lt_cv_cc_64bit_output=yes
4834       ;;
4835     esac
4836   fi
4837   rm -rf conftest*
4838   ;;
4839
4840 *-*-sco3.2v5*)
4841   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4842   SAVE_CFLAGS="$CFLAGS"
4843   CFLAGS="$CFLAGS -belf"
4844   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4845 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4846 if test "${lt_cv_cc_needs_belf+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849
4850
4851      ac_ext=c
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4856
4857      cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h.  */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h.  */
4863
4864 int
4865 main ()
4866 {
4867
4868   ;
4869   return 0;
4870 }
4871 _ACEOF
4872 rm -f conftest.$ac_objext conftest$ac_exeext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4874   (eval $ac_link) 2>conftest.er1
4875   ac_status=$?
4876   grep -v '^ *+' conftest.er1 >conftest.err
4877   rm -f conftest.er1
4878   cat conftest.err >&5
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); } &&
4881          { ac_try='test -z "$ac_c_werror_flag"
4882                          || test ! -s conftest.err'
4883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884   (eval $ac_try) 2>&5
4885   ac_status=$?
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); }; } &&
4888          { ac_try='test -s conftest$ac_exeext'
4889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890   (eval $ac_try) 2>&5
4891   ac_status=$?
4892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); }; }; then
4894   lt_cv_cc_needs_belf=yes
4895 else
4896   echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4898
4899 lt_cv_cc_needs_belf=no
4900 fi
4901 rm -f conftest.err conftest.$ac_objext \
4902       conftest$ac_exeext conftest.$ac_ext
4903      ac_ext=c
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908
4909 fi
4910 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4911 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4912   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4913     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4914     CFLAGS="$SAVE_CFLAGS"
4915   fi
4916   ;;
4917
4918
4919 esac
4920
4921 # Sed substitution that helps us do robust quoting.  It backslashifies
4922 # metacharacters that are still active within double-quoted strings.
4923 Xsed='sed -e s/^X//'
4924 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4925
4926 # Same as above, but do not quote variable references.
4927 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4928
4929 # Sed substitution to delay expansion of an escaped shell variable in a
4930 # double_quote_subst'ed string.
4931 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4932
4933 # Constants:
4934 rm="rm -f"
4935
4936 # Global variables:
4937 default_ofile=libtool
4938 can_build_shared=yes
4939
4940 # All known linkers require a `.a' archive for static linking (except M$VC,
4941 # which needs '.lib').
4942 libext=a
4943 ltmain="$ac_aux_dir/ltmain.sh"
4944 ofile="$default_ofile"
4945 with_gnu_ld="$lt_cv_prog_gnu_ld"
4946 need_locks="$enable_libtool_lock"
4947
4948 old_CC="$CC"
4949 old_CFLAGS="$CFLAGS"
4950
4951 # Set sane defaults for various variables
4952 test -z "$AR" && AR=ar
4953 test -z "$AR_FLAGS" && AR_FLAGS=cru
4954 test -z "$AS" && AS=as
4955 test -z "$CC" && CC=cc
4956 test -z "$DLLTOOL" && DLLTOOL=dlltool
4957 test -z "$LD" && LD=ld
4958 test -z "$LN_S" && LN_S="ln -s"
4959 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4960 test -z "$NM" && NM=nm
4961 test -z "$OBJDUMP" && OBJDUMP=objdump
4962 test -z "$RANLIB" && RANLIB=:
4963 test -z "$STRIP" && STRIP=:
4964 test -z "$ac_objext" && ac_objext=o
4965
4966 if test x"$host" != x"$build"; then
4967   ac_tool_prefix=${host_alias}-
4968 else
4969   ac_tool_prefix=
4970 fi
4971
4972 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4973 case $host_os in
4974 linux-gnu*) ;;
4975 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4976 esac
4977
4978 case $host_os in
4979 aix3*)
4980   # AIX sometimes has problems with the GCC collect2 program.  For some
4981   # reason, if we set the COLLECT_NAMES environment variable, the problems
4982   # vanish in a puff of smoke.
4983   if test "X${COLLECT_NAMES+set}" != Xset; then
4984     COLLECT_NAMES=
4985     export COLLECT_NAMES
4986   fi
4987   ;;
4988 esac
4989
4990 # Determine commands to create old-style static archives.
4991 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4992 old_postinstall_cmds='chmod 644 $oldlib'
4993 old_postuninstall_cmds=
4994
4995 if test -n "$RANLIB"; then
4996   case $host_os in
4997   openbsd*)
4998     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4999     ;;
5000   *)
5001     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5002     ;;
5003   esac
5004   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5005 fi
5006
5007 # Allow CC to be a program name with arguments.
5008 set dummy $CC
5009 compiler="$2"
5010
5011 echo "$as_me:$LINENO: checking for objdir" >&5
5012 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5013 rm -f .libs 2>/dev/null
5014 mkdir .libs 2>/dev/null
5015 if test -d .libs; then
5016   objdir=.libs
5017 else
5018   # MS-DOS does not allow filenames that begin with a dot.
5019   objdir=_libs
5020 fi
5021 rmdir .libs 2>/dev/null
5022 echo "$as_me:$LINENO: result: $objdir" >&5
5023 echo "${ECHO_T}$objdir" >&6
5024
5025
5026
5027 # Check whether --with-pic or --without-pic was given.
5028 if test "${with_pic+set}" = set; then
5029   withval="$with_pic"
5030   pic_mode="$withval"
5031 else
5032   pic_mode=default
5033 fi;
5034 test -z "$pic_mode" && pic_mode=default
5035
5036 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5037 # in isolation, and that seeing it set (from the cache) indicates that
5038 # the associated values are set (in the cache) correctly too.
5039 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5040 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5041 if test "${lt_cv_prog_cc_pic+set}" = set; then
5042   echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044    lt_cv_prog_cc_pic=
5045   lt_cv_prog_cc_shlib=
5046   lt_cv_prog_cc_wl=
5047   lt_cv_prog_cc_static=
5048   lt_cv_prog_cc_no_builtin=
5049   lt_cv_prog_cc_can_build_shared=$can_build_shared
5050
5051   if test "$GCC" = yes; then
5052     lt_cv_prog_cc_wl='-Wl,'
5053     lt_cv_prog_cc_static='-static'
5054
5055     case $host_os in
5056     aix*)
5057       # Below there is a dirty hack to force normal static linking with -ldl
5058       # The problem is because libdl dynamically linked with both libc and
5059       # libC (AIX C++ library), which obviously doesn't included in libraries
5060       # list by gcc. This cause undefined symbols with -static flags.
5061       # This hack allows C programs to be linked with "-static -ldl", but
5062       # not sure about C++ programs.
5063       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5064       ;;
5065     amigaos*)
5066       # FIXME: we need at least 68020 code to build shared libraries, but
5067       # adding the `-m68020' flag to GCC prevents building anything better,
5068       # like `-m68040'.
5069       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5070       ;;
5071     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5072       # PIC is the default for these OSes.
5073       ;;
5074     darwin* | rhapsody*)
5075       # PIC is the default on this platform
5076       # Common symbols not allowed in MH_DYLIB files
5077       lt_cv_prog_cc_pic='-fno-common'
5078       ;;
5079     cygwin* | mingw* | pw32* | os2*)
5080       # This hack is so that the source file can tell whether it is being
5081       # built for inclusion in a dll (and should export symbols for example).
5082       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5083       ;;
5084     sysv4*MP*)
5085       if test -d /usr/nec; then
5086          lt_cv_prog_cc_pic=-Kconform_pic
5087       fi
5088       ;;
5089     *)
5090       lt_cv_prog_cc_pic='-fPIC'
5091       ;;
5092     esac
5093   else
5094     # PORTME Check for PIC flags for the system compiler.
5095     case $host_os in
5096     aix3* | aix4* | aix5*)
5097       lt_cv_prog_cc_wl='-Wl,'
5098       # All AIX code is PIC.
5099       if test "$host_cpu" = ia64; then
5100         # AIX 5 now supports IA64 processor
5101         lt_cv_prog_cc_static='-Bstatic'
5102       else
5103         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5104       fi
5105       ;;
5106
5107     hpux9* | hpux10* | hpux11*)
5108       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5109       lt_cv_prog_cc_wl='-Wl,'
5110       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5111       lt_cv_prog_cc_pic='+Z'
5112       ;;
5113
5114     irix5* | irix6* | nonstopux*)
5115       lt_cv_prog_cc_wl='-Wl,'
5116       lt_cv_prog_cc_static='-non_shared'
5117       # PIC (with -KPIC) is the default.
5118       ;;
5119
5120     cygwin* | mingw* | pw32* | os2*)
5121       # This hack is so that the source file can tell whether it is being
5122       # built for inclusion in a dll (and should export symbols for example).
5123       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5124       ;;
5125
5126     newsos6)
5127       lt_cv_prog_cc_pic='-KPIC'
5128       lt_cv_prog_cc_static='-Bstatic'
5129       ;;
5130
5131     osf3* | osf4* | osf5*)
5132       # All OSF/1 code is PIC.
5133       lt_cv_prog_cc_wl='-Wl,'
5134       lt_cv_prog_cc_static='-non_shared'
5135       ;;
5136
5137     sco3.2v5*)
5138       lt_cv_prog_cc_pic='-Kpic'
5139       lt_cv_prog_cc_static='-dn'
5140       lt_cv_prog_cc_shlib='-belf'
5141       ;;
5142
5143     solaris*)
5144       lt_cv_prog_cc_pic='-KPIC'
5145       lt_cv_prog_cc_static='-Bstatic'
5146       lt_cv_prog_cc_wl='-Wl,'
5147       ;;
5148
5149     sunos4*)
5150       lt_cv_prog_cc_pic='-PIC'
5151       lt_cv_prog_cc_static='-Bstatic'
5152       lt_cv_prog_cc_wl='-Qoption ld '
5153       ;;
5154
5155     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5156       lt_cv_prog_cc_pic='-KPIC'
5157       lt_cv_prog_cc_static='-Bstatic'
5158       lt_cv_prog_cc_wl='-Wl,'
5159       ;;
5160
5161     uts4*)
5162       lt_cv_prog_cc_pic='-pic'
5163       lt_cv_prog_cc_static='-Bstatic'
5164       ;;
5165
5166     sysv4*MP*)
5167       if test -d /usr/nec ;then
5168         lt_cv_prog_cc_pic='-Kconform_pic'
5169         lt_cv_prog_cc_static='-Bstatic'
5170       fi
5171       ;;
5172
5173     *)
5174       lt_cv_prog_cc_can_build_shared=no
5175       ;;
5176     esac
5177   fi
5178
5179 fi
5180
5181 if test -z "$lt_cv_prog_cc_pic"; then
5182   echo "$as_me:$LINENO: result: none" >&5
5183 echo "${ECHO_T}none" >&6
5184 else
5185   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5186 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5187
5188   # Check to make sure the pic_flag actually works.
5189   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5190 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5191   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194       save_CFLAGS="$CFLAGS"
5195     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5196     cat >conftest.$ac_ext <<_ACEOF
5197 /* confdefs.h.  */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h.  */
5202
5203 int
5204 main ()
5205 {
5206
5207   ;
5208   return 0;
5209 }
5210 _ACEOF
5211 rm -f conftest.$ac_objext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5213   (eval $ac_compile) 2>conftest.er1
5214   ac_status=$?
5215   grep -v '^ *+' conftest.er1 >conftest.err
5216   rm -f conftest.er1
5217   cat conftest.err >&5
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); } &&
5220          { ac_try='test -z "$ac_c_werror_flag"
5221                          || test ! -s conftest.err'
5222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223   (eval $ac_try) 2>&5
5224   ac_status=$?
5225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226   (exit $ac_status); }; } &&
5227          { ac_try='test -s conftest.$ac_objext'
5228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229   (eval $ac_try) 2>&5
5230   ac_status=$?
5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232   (exit $ac_status); }; }; then
5233         case $host_os in
5234       hpux9* | hpux10* | hpux11*)
5235         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5236         # they create non-PIC objects.  So, if there were any warnings, we
5237         # assume that PIC is not supported.
5238         if test -s conftest.err; then
5239           lt_cv_prog_cc_pic_works=no
5240         else
5241           lt_cv_prog_cc_pic_works=yes
5242         fi
5243         ;;
5244       *)
5245         lt_cv_prog_cc_pic_works=yes
5246         ;;
5247       esac
5248
5249 else
5250   echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5252
5253       lt_cv_prog_cc_pic_works=no
5254
5255 fi
5256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5257     CFLAGS="$save_CFLAGS"
5258
5259 fi
5260
5261
5262   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5263     lt_cv_prog_cc_pic=
5264     lt_cv_prog_cc_can_build_shared=no
5265   else
5266     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5267   fi
5268
5269   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5270 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5271 fi
5272
5273 # Check for any special shared library compilation flags.
5274 if test -n "$lt_cv_prog_cc_shlib"; then
5275   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5276 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5277   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5278   else
5279    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5280 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5281     lt_cv_prog_cc_can_build_shared=no
5282   fi
5283 fi
5284
5285 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5286 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5287 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5288   echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290     lt_cv_prog_cc_static_works=no
5291   save_LDFLAGS="$LDFLAGS"
5292   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5293   cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h.  */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h.  */
5299
5300 int
5301 main ()
5302 {
5303
5304   ;
5305   return 0;
5306 }
5307 _ACEOF
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310   (eval $ac_link) 2>conftest.er1
5311   ac_status=$?
5312   grep -v '^ *+' conftest.er1 >conftest.err
5313   rm -f conftest.er1
5314   cat conftest.err >&5
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); } &&
5317          { ac_try='test -z "$ac_c_werror_flag"
5318                          || test ! -s conftest.err'
5319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320   (eval $ac_try) 2>&5
5321   ac_status=$?
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); }; } &&
5324          { ac_try='test -s conftest$ac_exeext'
5325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326   (eval $ac_try) 2>&5
5327   ac_status=$?
5328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329   (exit $ac_status); }; }; then
5330   lt_cv_prog_cc_static_works=yes
5331 else
5332   echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5334
5335 fi
5336 rm -f conftest.err conftest.$ac_objext \
5337       conftest$ac_exeext conftest.$ac_ext
5338   LDFLAGS="$save_LDFLAGS"
5339
5340 fi
5341
5342
5343 # Belt *and* braces to stop my trousers falling down:
5344 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5345 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5346 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5347
5348 pic_flag="$lt_cv_prog_cc_pic"
5349 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5350 wl="$lt_cv_prog_cc_wl"
5351 link_static_flag="$lt_cv_prog_cc_static"
5352 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5353 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5354
5355
5356 # Check to see if options -o and -c are simultaneously supported by compiler
5357 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5358 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5359 if test "${lt_cv_compiler_c_o+set}" = set; then
5360   echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362
5363 $rm -r conftest 2>/dev/null
5364 mkdir conftest
5365 cd conftest
5366 echo "int some_variable = 0;" > conftest.$ac_ext
5367 mkdir out
5368 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5369 # that will create temporary files in the current directory regardless of
5370 # the output directory.  Thus, making CWD read-only will cause this test
5371 # to fail, enabling locking or at least warning the user not to do parallel
5372 # builds.
5373 chmod -w .
5374 save_CFLAGS="$CFLAGS"
5375 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5376 compiler_c_o=no
5377 if { (eval echo configure:5377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5378   # The compiler can only warn and ignore the option if not recognized
5379   # So say no if there are warnings
5380   if test -s out/conftest.err; then
5381     lt_cv_compiler_c_o=no
5382   else
5383     lt_cv_compiler_c_o=yes
5384   fi
5385 else
5386   # Append any errors to the config.log.
5387   cat out/conftest.err 1>&5
5388   lt_cv_compiler_c_o=no
5389 fi
5390 CFLAGS="$save_CFLAGS"
5391 chmod u+w .
5392 $rm conftest* out/*
5393 rmdir out
5394 cd ..
5395 rmdir conftest
5396 $rm -r conftest 2>/dev/null
5397
5398 fi
5399
5400 compiler_c_o=$lt_cv_compiler_c_o
5401 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5402 echo "${ECHO_T}$compiler_c_o" >&6
5403
5404 if test x"$compiler_c_o" = x"yes"; then
5405   # Check to see if we can write to a .lo
5406   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5407 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5408   if test "${lt_cv_compiler_o_lo+set}" = set; then
5409   echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411
5412   lt_cv_compiler_o_lo=no
5413   save_CFLAGS="$CFLAGS"
5414   CFLAGS="$CFLAGS -c -o conftest.lo"
5415   save_objext="$ac_objext"
5416   ac_objext=lo
5417   cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h.  */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h.  */
5423
5424 int
5425 main ()
5426 {
5427 int some_variable = 0;
5428   ;
5429   return 0;
5430 }
5431 _ACEOF
5432 rm -f conftest.$ac_objext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434   (eval $ac_compile) 2>conftest.er1
5435   ac_status=$?
5436   grep -v '^ *+' conftest.er1 >conftest.err
5437   rm -f conftest.er1
5438   cat conftest.err >&5
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); } &&
5441          { ac_try='test -z "$ac_c_werror_flag"
5442                          || test ! -s conftest.err'
5443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444   (eval $ac_try) 2>&5
5445   ac_status=$?
5446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447   (exit $ac_status); }; } &&
5448          { ac_try='test -s conftest.$ac_objext'
5449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450   (eval $ac_try) 2>&5
5451   ac_status=$?
5452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453   (exit $ac_status); }; }; then
5454       # The compiler can only warn and ignore the option if not recognized
5455     # So say no if there are warnings
5456     if test -s conftest.err; then
5457       lt_cv_compiler_o_lo=no
5458     else
5459       lt_cv_compiler_o_lo=yes
5460     fi
5461
5462 else
5463   echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466 fi
5467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5468   ac_objext="$save_objext"
5469   CFLAGS="$save_CFLAGS"
5470
5471 fi
5472
5473   compiler_o_lo=$lt_cv_compiler_o_lo
5474   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5475 echo "${ECHO_T}$compiler_o_lo" >&6
5476 else
5477   compiler_o_lo=no
5478 fi
5479
5480 # Check to see if we can do hard links to lock some files if needed
5481 hard_links="nottested"
5482 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5483   # do not overwrite the value of need_locks provided by the user
5484   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5485 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5486   hard_links=yes
5487   $rm conftest*
5488   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5489   touch conftest.a
5490   ln conftest.a conftest.b 2>&5 || hard_links=no
5491   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5492   echo "$as_me:$LINENO: result: $hard_links" >&5
5493 echo "${ECHO_T}$hard_links" >&6
5494   if test "$hard_links" = no; then
5495     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5496 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5497     need_locks=warn
5498   fi
5499 else
5500   need_locks=no
5501 fi
5502
5503 if test "$GCC" = yes; then
5504   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5505   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5506 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5507   echo "int some_variable = 0;" > conftest.$ac_ext
5508   save_CFLAGS="$CFLAGS"
5509   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5510   compiler_rtti_exceptions=no
5511   cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h.  */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h.  */
5517
5518 int
5519 main ()
5520 {
5521 int some_variable = 0;
5522   ;
5523   return 0;
5524 }
5525 _ACEOF
5526 rm -f conftest.$ac_objext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5528   (eval $ac_compile) 2>conftest.er1
5529   ac_status=$?
5530   grep -v '^ *+' conftest.er1 >conftest.err
5531   rm -f conftest.er1
5532   cat conftest.err >&5
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); } &&
5535          { ac_try='test -z "$ac_c_werror_flag"
5536                          || test ! -s conftest.err'
5537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538   (eval $ac_try) 2>&5
5539   ac_status=$?
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); }; } &&
5542          { ac_try='test -s conftest.$ac_objext'
5543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544   (eval $ac_try) 2>&5
5545   ac_status=$?
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); }; }; then
5548       # The compiler can only warn and ignore the option if not recognized
5549     # So say no if there are warnings
5550     if test -s conftest.err; then
5551       compiler_rtti_exceptions=no
5552     else
5553       compiler_rtti_exceptions=yes
5554     fi
5555
5556 else
5557   echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5559
5560 fi
5561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5562   CFLAGS="$save_CFLAGS"
5563   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5564 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5565
5566   if test "$compiler_rtti_exceptions" = "yes"; then
5567     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5568   else
5569     no_builtin_flag=' -fno-builtin'
5570   fi
5571 fi
5572
5573 # See if the linker supports building shared libraries.
5574 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5575 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5576
5577 allow_undefined_flag=
5578 no_undefined_flag=
5579 need_lib_prefix=unknown
5580 need_version=unknown
5581 # when you set need_version to no, make sure it does not cause -set_version
5582 # flags to be left without arguments
5583 archive_cmds=
5584 archive_expsym_cmds=
5585 old_archive_from_new_cmds=
5586 old_archive_from_expsyms_cmds=
5587 export_dynamic_flag_spec=
5588 whole_archive_flag_spec=
5589 thread_safe_flag_spec=
5590 hardcode_into_libs=no
5591 hardcode_libdir_flag_spec=
5592 hardcode_libdir_separator=
5593 hardcode_direct=no
5594 hardcode_minus_L=no
5595 hardcode_shlibpath_var=unsupported
5596 runpath_var=
5597 link_all_deplibs=unknown
5598 always_export_symbols=no
5599 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5600 # include_expsyms should be a list of space-separated symbols to be *always*
5601 # included in the symbol list
5602 include_expsyms=
5603 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5604 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5605 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5606 # as well as any symbol that contains `d'.
5607 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5608 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5609 # platforms (ab)use it in PIC code, but their linkers get confused if
5610 # the symbol is explicitly referenced.  Since portable code cannot
5611 # rely on this symbol name, it's probably fine to never include it in
5612 # preloaded symbol tables.
5613 extract_expsyms_cmds=
5614
5615 case $host_os in
5616 cygwin* | mingw* | pw32*)
5617   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5618   # When not using gcc, we currently assume that we are using
5619   # Microsoft Visual C++.
5620   if test "$GCC" != yes; then
5621     with_gnu_ld=no
5622   fi
5623   ;;
5624 openbsd*)
5625   with_gnu_ld=no
5626   ;;
5627 esac
5628
5629 ld_shlibs=yes
5630 if test "$with_gnu_ld" = yes; then
5631   # If archive_cmds runs LD, not CC, wlarc should be empty
5632   wlarc='${wl}'
5633
5634   # See if GNU ld supports shared libraries.
5635   case $host_os in
5636   aix3* | aix4* | aix5*)
5637     # On AIX, the GNU linker is very broken
5638     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5639     ld_shlibs=no
5640     cat <<EOF 1>&2
5641
5642 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5643 *** to be unable to reliably create shared libraries on AIX.
5644 *** Therefore, libtool is disabling shared libraries support.  If you
5645 *** really care for shared libraries, you may want to modify your PATH
5646 *** so that a non-GNU linker is found, and then restart.
5647
5648 EOF
5649     ;;
5650
5651   amigaos*)
5652     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)'
5653     hardcode_libdir_flag_spec='-L$libdir'
5654     hardcode_minus_L=yes
5655
5656     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5657     # that the semantics of dynamic libraries on AmigaOS, at least up
5658     # to version 4, is to share data among multiple programs linked
5659     # with the same dynamic library.  Since this doesn't match the
5660     # behavior of shared libraries on other platforms, we can use
5661     # them.
5662     ld_shlibs=no
5663     ;;
5664
5665   beos*)
5666     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5667       allow_undefined_flag=unsupported
5668       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5669       # support --undefined.  This deserves some investigation.  FIXME
5670       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5671     else
5672       ld_shlibs=no
5673     fi
5674     ;;
5675
5676   cygwin* | mingw* | pw32*)
5677     # hardcode_libdir_flag_spec is actually meaningless, as there is
5678     # no search path for DLLs.
5679     hardcode_libdir_flag_spec='-L$libdir'
5680     allow_undefined_flag=unsupported
5681     always_export_symbols=yes
5682
5683     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5684       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5685       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5686       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5687       else $CC -o impgen impgen.c ; fi)~
5688       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5689
5690     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5691
5692     # cygwin and mingw dlls have different entry points and sets of symbols
5693     # to exclude.
5694     # FIXME: what about values for MSVC?
5695     dll_entry=__cygwin_dll_entry@12
5696     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5697     case $host_os in
5698     mingw*)
5699       # mingw values
5700       dll_entry=_DllMainCRTStartup@12
5701       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5702       ;;
5703     esac
5704
5705     # mingw and cygwin differ, and it's simplest to just exclude the union
5706     # of the two symbol sets.
5707     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5708
5709     # recent cygwin and mingw systems supply a stub DllMain which the user
5710     # can override, but on older systems we have to supply one (in ltdll.c)
5711     if test "x$lt_cv_need_dllmain" = "xyes"; then
5712       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5713       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~
5714         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5715     else
5716       ltdll_obj=
5717       ltdll_cmds=
5718     fi
5719
5720     # Extract the symbol export list from an `--export-all' def file,
5721     # then regenerate the def file from the symbol export list, so that
5722     # the compiled dll only exports the symbol export list.
5723     # Be careful not to strip the DATA tag left be newer dlltools.
5724     export_symbols_cmds="$ltdll_cmds"'
5725       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5726       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5727
5728     # If the export-symbols file already is a .def file (1st line
5729     # is EXPORTS), use it as is.
5730     # If DATA tags from a recent dlltool are present, honour them!
5731     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5732         cp $export_symbols $output_objdir/$soname-def;
5733       else
5734         echo EXPORTS > $output_objdir/$soname-def;
5735         _lt_hint=1;
5736         cat $export_symbols | while read symbol; do
5737          set dummy \$symbol;
5738          case \$# in
5739            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5740            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5741            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5742          esac;
5743          _lt_hint=`expr 1 + \$_lt_hint`;
5744         done;
5745       fi~
5746       '"$ltdll_cmds"'
5747       $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~
5748       $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~
5749       $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~
5750       $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~
5751       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5752     ;;
5753
5754   netbsd*)
5755     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5756       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5757       wlarc=
5758     else
5759       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5760       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5761     fi
5762     ;;
5763
5764   solaris* | sysv5*)
5765     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5766       ld_shlibs=no
5767       cat <<EOF 1>&2
5768
5769 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5770 *** create shared libraries on Solaris systems.  Therefore, libtool
5771 *** is disabling shared libraries support.  We urge you to upgrade GNU
5772 *** binutils to release 2.9.1 or newer.  Another option is to modify
5773 *** your PATH or compiler configuration so that the native linker is
5774 *** used, and then restart.
5775
5776 EOF
5777     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5778       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5779       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5780     else
5781       ld_shlibs=no
5782     fi
5783     ;;
5784
5785   sunos4*)
5786     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5787     wlarc=
5788     hardcode_direct=yes
5789     hardcode_shlibpath_var=no
5790     ;;
5791
5792   linux*)
5793     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5794       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5795       supports_anon_versioning=no
5796       case `$LD -v 2>/dev/null` in
5797         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5798         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5799         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5800         *\ 2.11.*) ;; # other 2.11 versions
5801         *) supports_anon_versioning=yes ;;
5802       esac
5803       if test $supports_anon_versioning = yes; then
5804         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5805 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5806 $echo "local: *; };" >> $output_objdir/$libname.ver~
5807         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5808       else
5809         $archive_expsym_cmds="$archive_cmds"
5810       fi
5811     else
5812       ld_shlibs=no
5813     fi
5814     ;;
5815
5816   *)
5817     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5818       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5819       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5820     else
5821       ld_shlibs=no
5822     fi
5823     ;;
5824   esac
5825
5826   if test "$ld_shlibs" = yes; then
5827     runpath_var=LD_RUN_PATH
5828     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5829     export_dynamic_flag_spec='${wl}--export-dynamic'
5830     case $host_os in
5831     cygwin* | mingw* | pw32*)
5832       # dlltool doesn't understand --whole-archive et. al.
5833       whole_archive_flag_spec=
5834       ;;
5835     *)
5836       # ancient GNU ld didn't support --whole-archive et. al.
5837       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5838         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5839       else
5840         whole_archive_flag_spec=
5841       fi
5842       ;;
5843     esac
5844   fi
5845 else
5846   # PORTME fill in a description of your system's linker (not GNU ld)
5847   case $host_os in
5848   aix3*)
5849     allow_undefined_flag=unsupported
5850     always_export_symbols=yes
5851     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'
5852     # Note: this linker hardcodes the directories in LIBPATH if there
5853     # are no directories specified by -L.
5854     hardcode_minus_L=yes
5855     if test "$GCC" = yes && test -z "$link_static_flag"; then
5856       # Neither direct hardcoding nor static linking is supported with a
5857       # broken collect2.
5858       hardcode_direct=unsupported
5859     fi
5860     ;;
5861
5862   aix4* | aix5*)
5863     if test "$host_cpu" = ia64; then
5864       # On IA64, the linker does run time linking by default, so we don't
5865       # have to do anything special.
5866       aix_use_runtimelinking=no
5867       exp_sym_flag='-Bexport'
5868       no_entry_flag=""
5869     else
5870       aix_use_runtimelinking=no
5871
5872       # Test if we are trying to use run time linking or normal
5873       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5874       # need to do runtime linking.
5875       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5876         for ld_flag in $LDFLAGS; do
5877           case $ld_flag in
5878           *-brtl*)
5879             aix_use_runtimelinking=yes
5880             break
5881           ;;
5882           esac
5883         done
5884       esac
5885
5886       exp_sym_flag='-bexport'
5887       no_entry_flag='-bnoentry'
5888     fi
5889
5890     # When large executables or shared objects are built, AIX ld can
5891     # have problems creating the table of contents.  If linking a library
5892     # or program results in "error TOC overflow" add -mminimal-toc to
5893     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5894     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5895
5896     hardcode_direct=yes
5897     archive_cmds=''
5898     hardcode_libdir_separator=':'
5899     if test "$GCC" = yes; then
5900       case $host_os in aix4.[012]|aix4.[012].*)
5901         collect2name=`${CC} -print-prog-name=collect2`
5902         if test -f "$collect2name" && \
5903           strings "$collect2name" | grep resolve_lib_name >/dev/null
5904         then
5905           # We have reworked collect2
5906           hardcode_direct=yes
5907         else
5908           # We have old collect2
5909           hardcode_direct=unsupported
5910           # It fails to find uninstalled libraries when the uninstalled
5911           # path is not listed in the libpath.  Setting hardcode_minus_L
5912           # to unsupported forces relinking
5913           hardcode_minus_L=yes
5914           hardcode_libdir_flag_spec='-L$libdir'
5915           hardcode_libdir_separator=
5916         fi
5917       esac
5918
5919       shared_flag='-shared'
5920     else
5921       # not using gcc
5922       if test "$host_cpu" = ia64; then
5923         shared_flag='${wl}-G'
5924       else
5925         if test "$aix_use_runtimelinking" = yes; then
5926           shared_flag='${wl}-G'
5927         else
5928           shared_flag='${wl}-bM:SRE'
5929         fi
5930       fi
5931     fi
5932
5933     # It seems that -bexpall can do strange things, so it is better to
5934     # generate a list of symbols to export.
5935     always_export_symbols=yes
5936     if test "$aix_use_runtimelinking" = yes; then
5937       # Warning - without using the other runtime loading flags (-brtl),
5938       # -berok will link without error, but may produce a broken library.
5939       allow_undefined_flag='-berok'
5940       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5941       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"
5942     else
5943       if test "$host_cpu" = ia64; then
5944         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5945         allow_undefined_flag="-z nodefs"
5946         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"
5947       else
5948         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5949         # Warning - without using the other run time loading flags,
5950         # -berok will link without error, but may produce a broken library.
5951         allow_undefined_flag='${wl}-berok'
5952         # This is a bit strange, but is similar to how AIX traditionally builds
5953         # it's shared libraries.
5954         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'
5955       fi
5956     fi
5957     ;;
5958
5959   amigaos*)
5960     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)'
5961     hardcode_libdir_flag_spec='-L$libdir'
5962     hardcode_minus_L=yes
5963     # see comment about different semantics on the GNU ld section
5964     ld_shlibs=no
5965     ;;
5966
5967   cygwin* | mingw* | pw32*)
5968     # When not using gcc, we currently assume that we are using
5969     # Microsoft Visual C++.
5970     # hardcode_libdir_flag_spec is actually meaningless, as there is
5971     # no search path for DLLs.
5972     hardcode_libdir_flag_spec=' '
5973     allow_undefined_flag=unsupported
5974     # Tell ltmain to make .lib files, not .a files.
5975     libext=lib
5976     # FIXME: Setting linknames here is a bad hack.
5977     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5978     # The linker will automatically build a .lib file if we build a DLL.
5979     old_archive_from_new_cmds='true'
5980     # FIXME: Should let the user specify the lib program.
5981     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5982     fix_srcfile_path='`cygpath -w "$srcfile"`'
5983     ;;
5984
5985   darwin* | rhapsody*)
5986     case "$host_os" in
5987     rhapsody* | darwin1.[012])
5988       allow_undefined_flag='-undefined suppress'
5989       ;;
5990     *) # Darwin 1.3 on
5991       allow_undefined_flag='-flat_namespace -undefined suppress'
5992       ;;
5993     esac
5994     # FIXME: Relying on posixy $() will cause problems for
5995     #        cross-compilation, but unfortunately the echo tests do not
5996     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5997     #        `"' quotes if we put them in here... so don't!
5998     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)'
5999     # We need to add '_' to the symbols in $export_symbols first
6000     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6001     hardcode_direct=yes
6002     hardcode_shlibpath_var=no
6003     whole_archive_flag_spec='-all_load $convenience'
6004     ;;
6005
6006   freebsd1*)
6007     ld_shlibs=no
6008     ;;
6009
6010   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6011   # support.  Future versions do this automatically, but an explicit c++rt0.o
6012   # does not break anything, and helps significantly (at the cost of a little
6013   # extra space).
6014   freebsd2.2*)
6015     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6016     hardcode_libdir_flag_spec='-R$libdir'
6017     hardcode_direct=yes
6018     hardcode_shlibpath_var=no
6019     ;;
6020
6021   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6022   freebsd2*)
6023     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6024     hardcode_direct=yes
6025     hardcode_minus_L=yes
6026     hardcode_shlibpath_var=no
6027     ;;
6028
6029   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6030   freebsd*)
6031     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6032     hardcode_libdir_flag_spec='-R$libdir'
6033     hardcode_direct=yes
6034     hardcode_shlibpath_var=no
6035     ;;
6036
6037   hpux9* | hpux10* | hpux11*)
6038     case $host_os in
6039     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' ;;
6040     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6041     esac
6042     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6043     hardcode_libdir_separator=:
6044     hardcode_direct=yes
6045     hardcode_minus_L=yes # Not in the search PATH, but as the default
6046                          # location of the library.
6047     export_dynamic_flag_spec='${wl}-E'
6048     ;;
6049
6050   irix5* | irix6* | nonstopux*)
6051     if test "$GCC" = yes; then
6052       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'
6053       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6054     else
6055       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'
6056       hardcode_libdir_flag_spec='-rpath $libdir'
6057     fi
6058     hardcode_libdir_separator=:
6059     link_all_deplibs=yes
6060     ;;
6061
6062   netbsd*)
6063     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6064       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6065     else
6066       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6067     fi
6068     hardcode_libdir_flag_spec='-R$libdir'
6069     hardcode_direct=yes
6070     hardcode_shlibpath_var=no
6071     ;;
6072
6073   newsos6)
6074     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6075     hardcode_direct=yes
6076     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6077     hardcode_libdir_separator=:
6078     hardcode_shlibpath_var=no
6079     ;;
6080
6081   openbsd*)
6082     hardcode_direct=yes
6083     hardcode_shlibpath_var=no
6084     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6085       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6086       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6087       export_dynamic_flag_spec='${wl}-E'
6088     else
6089       case "$host_os" in
6090       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6091         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6092         hardcode_libdir_flag_spec='-R$libdir'
6093         ;;
6094       *)
6095         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6096         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6097         ;;
6098       esac
6099     fi
6100     ;;
6101
6102   os2*)
6103     hardcode_libdir_flag_spec='-L$libdir'
6104     hardcode_minus_L=yes
6105     allow_undefined_flag=unsupported
6106     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'
6107     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6108     ;;
6109
6110   osf3*)
6111     if test "$GCC" = yes; then
6112       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6113       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'
6114     else
6115       allow_undefined_flag=' -expect_unresolved \*'
6116       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'
6117     fi
6118     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6119     hardcode_libdir_separator=:
6120     ;;
6121
6122   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6123     if test "$GCC" = yes; then
6124       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6125       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'
6126       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6127     else
6128       allow_undefined_flag=' -expect_unresolved \*'
6129       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'
6130       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6131       $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'
6132
6133       #Both c and cxx compiler support -rpath directly
6134       hardcode_libdir_flag_spec='-rpath $libdir'
6135     fi
6136     hardcode_libdir_separator=:
6137     ;;
6138
6139   sco3.2v5*)
6140     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6141     hardcode_shlibpath_var=no
6142     runpath_var=LD_RUN_PATH
6143     hardcode_runpath_var=yes
6144     export_dynamic_flag_spec='${wl}-Bexport'
6145     ;;
6146
6147   solaris*)
6148     # gcc --version < 3.0 without binutils cannot create self contained
6149     # shared libraries reliably, requiring libgcc.a to resolve some of
6150     # the object symbols generated in some cases.  Libraries that use
6151     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6152     # a copy of libgcc.a into every shared library to guarantee resolving
6153     # such symbols causes other problems:  According to Tim Van Holder
6154     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6155     # (to the application) exception stack for one thing.
6156     no_undefined_flag=' -z defs'
6157     if test "$GCC" = yes; then
6158       case `$CC --version 2>/dev/null` in
6159       [12].*)
6160         cat <<EOF 1>&2
6161
6162 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6163 *** create self contained shared libraries on Solaris systems, without
6164 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6165 *** -no-undefined support, which will at least allow you to build shared
6166 *** libraries.  However, you may find that when you link such libraries
6167 *** into an application without using GCC, you have to manually add
6168 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6169 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6170 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6171
6172 EOF
6173         no_undefined_flag=
6174         ;;
6175       esac
6176     fi
6177     # $CC -shared without GNU ld will not create a library from C++
6178     # object files and a static libstdc++, better avoid it by now
6179     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6180     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6181                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6182     hardcode_libdir_flag_spec='-R$libdir'
6183     hardcode_shlibpath_var=no
6184     case $host_os in
6185     solaris2.[0-5] | solaris2.[0-5].*) ;;
6186     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6187       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6188     esac
6189     link_all_deplibs=yes
6190     ;;
6191
6192   sunos4*)
6193     if test "x$host_vendor" = xsequent; then
6194       # Use $CC to link under sequent, because it throws in some extra .o
6195       # files that make .init and .fini sections work.
6196       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6197     else
6198       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6199     fi
6200     hardcode_libdir_flag_spec='-L$libdir'
6201     hardcode_direct=yes
6202     hardcode_minus_L=yes
6203     hardcode_shlibpath_var=no
6204     ;;
6205
6206   sysv4)
6207     case $host_vendor in
6208       sni)
6209         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6210         hardcode_direct=yes # is this really true???
6211         ;;
6212       siemens)
6213         ## LD is ld it makes a PLAMLIB
6214         ## CC just makes a GrossModule.
6215         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6216         reload_cmds='$CC -r -o $output$reload_objs'
6217         hardcode_direct=no
6218         ;;
6219       motorola)
6220         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6221         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6222         ;;
6223     esac
6224     runpath_var='LD_RUN_PATH'
6225     hardcode_shlibpath_var=no
6226     ;;
6227
6228   sysv4.3*)
6229     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6230     hardcode_shlibpath_var=no
6231     export_dynamic_flag_spec='-Bexport'
6232     ;;
6233
6234   sysv5*)
6235     no_undefined_flag=' -z text'
6236     # $CC -shared without GNU ld will not create a library from C++
6237     # object files and a static libstdc++, better avoid it by now
6238     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6239     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6240                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6241     hardcode_libdir_flag_spec=
6242     hardcode_shlibpath_var=no
6243     runpath_var='LD_RUN_PATH'
6244     ;;
6245
6246   uts4*)
6247     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6248     hardcode_libdir_flag_spec='-L$libdir'
6249     hardcode_shlibpath_var=no
6250     ;;
6251
6252   dgux*)
6253     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6254     hardcode_libdir_flag_spec='-L$libdir'
6255     hardcode_shlibpath_var=no
6256     ;;
6257
6258   sysv4*MP*)
6259     if test -d /usr/nec; then
6260       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6261       hardcode_shlibpath_var=no
6262       runpath_var=LD_RUN_PATH
6263       hardcode_runpath_var=yes
6264       ld_shlibs=yes
6265     fi
6266     ;;
6267
6268   sysv4.2uw2*)
6269     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6270     hardcode_direct=yes
6271     hardcode_minus_L=no
6272     hardcode_shlibpath_var=no
6273     hardcode_runpath_var=yes
6274     runpath_var=LD_RUN_PATH
6275     ;;
6276
6277   sysv5uw7* | unixware7*)
6278     no_undefined_flag='${wl}-z ${wl}text'
6279     if test "$GCC" = yes; then
6280       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6281     else
6282       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6283     fi
6284     runpath_var='LD_RUN_PATH'
6285     hardcode_shlibpath_var=no
6286     ;;
6287
6288   *)
6289     ld_shlibs=no
6290     ;;
6291   esac
6292 fi
6293 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6294 echo "${ECHO_T}$ld_shlibs" >&6
6295 test "$ld_shlibs" = no && can_build_shared=no
6296
6297 # Check hardcoding attributes.
6298 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6299 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6300 hardcode_action=
6301 if test -n "$hardcode_libdir_flag_spec" || \
6302    test -n "$runpath_var"; then
6303
6304   # We can hardcode non-existant directories.
6305   if test "$hardcode_direct" != no &&
6306      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6307      # have to relink, otherwise we might link with an installed library
6308      # when we should be linking with a yet-to-be-installed one
6309      ## test "$hardcode_shlibpath_var" != no &&
6310      test "$hardcode_minus_L" != no; then
6311     # Linking always hardcodes the temporary library directory.
6312     hardcode_action=relink
6313   else
6314     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6315     hardcode_action=immediate
6316   fi
6317 else
6318   # We cannot hardcode anything, or else we can only hardcode existing
6319   # directories.
6320   hardcode_action=unsupported
6321 fi
6322 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6323 echo "${ECHO_T}$hardcode_action" >&6
6324
6325 striplib=
6326 old_striplib=
6327 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6328 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6329 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6330   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6331   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6332   echo "$as_me:$LINENO: result: yes" >&5
6333 echo "${ECHO_T}yes" >&6
6334 else
6335   echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6
6337 fi
6338
6339 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6340 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6341
6342 # PORTME Fill in your ld.so characteristics
6343 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6344 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6345 library_names_spec=
6346 libname_spec='lib$name'
6347 soname_spec=
6348 postinstall_cmds=
6349 postuninstall_cmds=
6350 finish_cmds=
6351 finish_eval=
6352 shlibpath_var=
6353 shlibpath_overrides_runpath=unknown
6354 version_type=none
6355 dynamic_linker="$host_os ld.so"
6356 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6357 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6358
6359 case $host_os in
6360 aix3*)
6361   version_type=linux
6362   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6363   shlibpath_var=LIBPATH
6364
6365   # AIX has no versioning support, so we append a major version to the name.
6366   soname_spec='${libname}${release}.so$major'
6367   ;;
6368
6369 aix4* | aix5*)
6370   version_type=linux
6371   need_lib_prefix=no
6372   need_version=no
6373   hardcode_into_libs=yes
6374   if test "$host_cpu" = ia64; then
6375     # AIX 5 supports IA64
6376     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6377     shlibpath_var=LD_LIBRARY_PATH
6378   else
6379     # With GCC up to 2.95.x, collect2 would create an import file
6380     # for dependence libraries.  The import file would start with
6381     # the line `#! .'.  This would cause the generated library to
6382     # depend on `.', always an invalid library.  This was fixed in
6383     # development snapshots of GCC prior to 3.0.
6384     case $host_os in
6385       aix4 | aix4.[01] | aix4.[01].*)
6386         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6387              echo ' yes '
6388              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6389           :
6390         else
6391           can_build_shared=no
6392         fi
6393         ;;
6394     esac
6395     # AIX (on Power*) has no versioning support, so currently we can
6396     # not hardcode correct soname into executable. Probably we can
6397     # add versioning support to collect2, so additional links can
6398     # be useful in future.
6399     if test "$aix_use_runtimelinking" = yes; then
6400       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6401       # instead of lib<name>.a to let people know that these are not
6402       # typical AIX shared libraries.
6403       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6404     else
6405       # We preserve .a as extension for shared libraries through AIX4.2
6406       # and later when we are not doing run time linking.
6407       library_names_spec='${libname}${release}.a $libname.a'
6408       soname_spec='${libname}${release}.so$major'
6409     fi
6410     shlibpath_var=LIBPATH
6411   fi
6412   hardcode_into_libs=yes
6413   ;;
6414
6415 amigaos*)
6416   library_names_spec='$libname.ixlibrary $libname.a'
6417   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6418   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'
6419   ;;
6420
6421 beos*)
6422   library_names_spec='${libname}.so'
6423   dynamic_linker="$host_os ld.so"
6424   shlibpath_var=LIBRARY_PATH
6425   ;;
6426
6427 bsdi4*)
6428   version_type=linux
6429   need_version=no
6430   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6431   soname_spec='${libname}${release}.so$major'
6432   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6433   shlibpath_var=LD_LIBRARY_PATH
6434   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6435   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6436   export_dynamic_flag_spec=-rdynamic
6437   # the default ld.so.conf also contains /usr/contrib/lib and
6438   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6439   # libtool to hard-code these into programs
6440   ;;
6441
6442 cygwin* | mingw* | pw32*)
6443   version_type=windows
6444   need_version=no
6445   need_lib_prefix=no
6446   case $GCC,$host_os in
6447   yes,cygwin*)
6448     library_names_spec='$libname.dll.a'
6449     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6450     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6451       dldir=$destdir/`dirname \$dlpath`~
6452       test -d \$dldir || mkdir -p \$dldir~
6453       $install_prog .libs/$dlname \$dldir/$dlname'
6454     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6455       dlpath=$dir/\$dldll~
6456        $rm \$dlpath'
6457     ;;
6458   yes,mingw*)
6459     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6460     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6461     ;;
6462   yes,pw32*)
6463     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6464     ;;
6465   *)
6466     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6467     ;;
6468   esac
6469   dynamic_linker='Win32 ld.exe'
6470   # FIXME: first we should search . and the directory the executable is in
6471   shlibpath_var=PATH
6472   ;;
6473
6474 darwin* | rhapsody*)
6475   dynamic_linker="$host_os dyld"
6476   version_type=darwin
6477   need_lib_prefix=no
6478   need_version=no
6479   # FIXME: Relying on posixy $() will cause problems for
6480   #        cross-compilation, but unfortunately the echo tests do not
6481   #        yet detect zsh echo's removal of \ escapes.
6482   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)'
6483   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6484   shlibpath_overrides_runpath=yes
6485   shlibpath_var=DYLD_LIBRARY_PATH
6486   ;;
6487
6488 freebsd1*)
6489   dynamic_linker=no
6490   ;;
6491
6492 freebsd*)
6493   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6494   version_type=freebsd-$objformat
6495   case $version_type in
6496     freebsd-elf*)
6497       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6498       need_version=no
6499       need_lib_prefix=no
6500       ;;
6501     freebsd-*)
6502       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6503       need_version=yes
6504       ;;
6505   esac
6506   shlibpath_var=LD_LIBRARY_PATH
6507   case $host_os in
6508   freebsd2*)
6509     shlibpath_overrides_runpath=yes
6510     ;;
6511   *)
6512     shlibpath_overrides_runpath=no
6513     hardcode_into_libs=yes
6514     ;;
6515   esac
6516   ;;
6517
6518 gnu*)
6519   version_type=linux
6520   need_lib_prefix=no
6521   need_version=no
6522   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6523   soname_spec='${libname}${release}.so$major'
6524   shlibpath_var=LD_LIBRARY_PATH
6525   hardcode_into_libs=yes
6526   ;;
6527
6528 hpux9* | hpux10* | hpux11*)
6529   # Give a soname corresponding to the major version so that dld.sl refuses to
6530   # link against other versions.
6531   dynamic_linker="$host_os dld.sl"
6532   version_type=sunos
6533   need_lib_prefix=no
6534   need_version=no
6535   shlibpath_var=SHLIB_PATH
6536   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6537   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6538   soname_spec='${libname}${release}.sl$major'
6539   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6540   postinstall_cmds='chmod 555 $lib'
6541   ;;
6542
6543 irix5* | irix6* | nonstopux*)
6544   case $host_os in
6545     nonstopux*) version_type=nonstopux ;;
6546     *)          version_type=irix ;;
6547   esac
6548   need_lib_prefix=no
6549   need_version=no
6550   soname_spec='${libname}${release}.so$major'
6551   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6552   case $host_os in
6553   irix5* | nonstopux*)
6554     libsuff= shlibsuff=
6555     ;;
6556   *)
6557     case $LD in # libtool.m4 will add one of these switches to LD
6558     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6559     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6560     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6561     *) libsuff= shlibsuff= libmagic=never-match;;
6562     esac
6563     ;;
6564   esac
6565   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6566   shlibpath_overrides_runpath=no
6567   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6568   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6569   ;;
6570
6571 # No shared lib support for Linux oldld, aout, or coff.
6572 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6573   dynamic_linker=no
6574   ;;
6575
6576 # This must be Linux ELF.
6577 linux-gnu*)
6578   version_type=linux
6579   need_lib_prefix=no
6580   need_version=no
6581   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6582   soname_spec='${libname}${release}.so$major'
6583   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6584   shlibpath_var=LD_LIBRARY_PATH
6585   shlibpath_overrides_runpath=no
6586   # This implies no fast_install, which is unacceptable.
6587   # Some rework will be needed to allow for fast_install
6588   # before this can be enabled.
6589   hardcode_into_libs=yes
6590
6591   case $host_cpu:$lt_cv_cc_64bit_output in
6592   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6593     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6594     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6595     ;;
6596   esac
6597
6598   # We used to test for /lib/ld.so.1 and disable shared libraries on
6599   # powerpc, because MkLinux only supported shared libraries with the
6600   # GNU dynamic linker.  Since this was broken with cross compilers,
6601   # most powerpc-linux boxes support dynamic linking these days and
6602   # people can always --disable-shared, the test was removed, and we
6603   # assume the GNU/Linux dynamic linker is in use.
6604   dynamic_linker='GNU/Linux ld.so'
6605
6606   # Find out which ABI we are using (multilib Linux x86_64 hack).
6607   libsuff=
6608   case "$host_cpu" in
6609   x86_64*)
6610     echo '#line 6610 "configure"' > conftest.$ac_ext
6611     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6612   (eval $ac_compile) 2>&5
6613   ac_status=$?
6614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615   (exit $ac_status); }; then
6616       case `/usr/bin/file conftest.$ac_objext` in
6617       *64-bit*)
6618         libsuff=64
6619         ;;
6620       esac
6621     fi
6622     rm -rf conftest*
6623     ;;
6624   *)
6625     ;;
6626   esac
6627   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6628   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6629   ;;
6630
6631 netbsd*)
6632   version_type=sunos
6633   need_lib_prefix=no
6634   need_version=no
6635   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6636     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6637     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6638     dynamic_linker='NetBSD (a.out) ld.so'
6639   else
6640     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6641     soname_spec='${libname}${release}.so$major'
6642     dynamic_linker='NetBSD ld.elf_so'
6643   fi
6644   shlibpath_var=LD_LIBRARY_PATH
6645   shlibpath_overrides_runpath=yes
6646   hardcode_into_libs=yes
6647   ;;
6648
6649 newsos6)
6650   version_type=linux
6651   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6652   shlibpath_var=LD_LIBRARY_PATH
6653   shlibpath_overrides_runpath=yes
6654   ;;
6655
6656 openbsd*)
6657   version_type=sunos
6658   need_lib_prefix=no
6659   need_version=no
6660   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6661     case "$host_os" in
6662     openbsd2.[89] | openbsd2.[89].*)
6663       shlibpath_overrides_runpath=no
6664       ;;
6665     *)
6666       shlibpath_overrides_runpath=yes
6667       ;;
6668     esac
6669   else
6670     shlibpath_overrides_runpath=yes
6671   fi
6672   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6673   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6674   shlibpath_var=LD_LIBRARY_PATH
6675   ;;
6676
6677 os2*)
6678   libname_spec='$name'
6679   need_lib_prefix=no
6680   library_names_spec='$libname.dll $libname.a'
6681   dynamic_linker='OS/2 ld.exe'
6682   shlibpath_var=LIBPATH
6683   ;;
6684
6685 osf3* | osf4* | osf5*)
6686   version_type=osf
6687   need_version=no
6688   soname_spec='${libname}${release}.so$major'
6689   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6690   shlibpath_var=LD_LIBRARY_PATH
6691   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6692   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6693   hardcode_into_libs=yes
6694   ;;
6695
6696 sco3.2v5*)
6697   version_type=osf
6698   soname_spec='${libname}${release}.so$major'
6699   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6700   shlibpath_var=LD_LIBRARY_PATH
6701   ;;
6702
6703 solaris*)
6704   version_type=linux
6705   need_lib_prefix=no
6706   need_version=no
6707   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6708   soname_spec='${libname}${release}.so$major'
6709   shlibpath_var=LD_LIBRARY_PATH
6710   shlibpath_overrides_runpath=yes
6711   hardcode_into_libs=yes
6712   # ldd complains unless libraries are executable
6713   postinstall_cmds='chmod +x $lib'
6714   ;;
6715
6716 sunos4*)
6717   version_type=sunos
6718   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6719   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6720   shlibpath_var=LD_LIBRARY_PATH
6721   shlibpath_overrides_runpath=yes
6722   if test "$with_gnu_ld" = yes; then
6723     need_lib_prefix=no
6724   fi
6725   need_version=yes
6726   ;;
6727
6728 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6729   version_type=linux
6730   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6731   soname_spec='${libname}${release}.so$major'
6732   shlibpath_var=LD_LIBRARY_PATH
6733   case $host_vendor in
6734     sni)
6735       shlibpath_overrides_runpath=no
6736       need_lib_prefix=no
6737       export_dynamic_flag_spec='${wl}-Blargedynsym'
6738       runpath_var=LD_RUN_PATH
6739       ;;
6740     siemens)
6741       need_lib_prefix=no
6742       ;;
6743     motorola)
6744       need_lib_prefix=no
6745       need_version=no
6746       shlibpath_overrides_runpath=no
6747       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6748       ;;
6749   esac
6750   ;;
6751
6752 uts4*)
6753   version_type=linux
6754   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6755   soname_spec='${libname}${release}.so$major'
6756   shlibpath_var=LD_LIBRARY_PATH
6757   ;;
6758
6759 dgux*)
6760   version_type=linux
6761   need_lib_prefix=no
6762   need_version=no
6763   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6764   soname_spec='${libname}${release}.so$major'
6765   shlibpath_var=LD_LIBRARY_PATH
6766   ;;
6767
6768 sysv4*MP*)
6769   if test -d /usr/nec ;then
6770     version_type=linux
6771     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6772     soname_spec='$libname.so.$major'
6773     shlibpath_var=LD_LIBRARY_PATH
6774   fi
6775   ;;
6776
6777 *)
6778   dynamic_linker=no
6779   ;;
6780 esac
6781 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6782 echo "${ECHO_T}$dynamic_linker" >&6
6783 test "$dynamic_linker" = no && can_build_shared=no
6784
6785 # Report the final consequences.
6786 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6787 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6788 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6789 echo "${ECHO_T}$can_build_shared" >&6
6790
6791 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6792 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6793 test "$can_build_shared" = "no" && enable_shared=no
6794
6795 # On AIX, shared libraries and static libraries use the same namespace, and
6796 # are all built from PIC.
6797 case "$host_os" in
6798 aix3*)
6799   test "$enable_shared" = yes && enable_static=no
6800   if test -n "$RANLIB"; then
6801     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6802     postinstall_cmds='$RANLIB $lib'
6803   fi
6804   ;;
6805
6806 aix4*)
6807   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6808     test "$enable_shared" = yes && enable_static=no
6809   fi
6810   ;;
6811 esac
6812 echo "$as_me:$LINENO: result: $enable_shared" >&5
6813 echo "${ECHO_T}$enable_shared" >&6
6814
6815 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6816 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6817 # Make sure either enable_shared or enable_static is yes.
6818 test "$enable_shared" = yes || enable_static=yes
6819 echo "$as_me:$LINENO: result: $enable_static" >&5
6820 echo "${ECHO_T}$enable_static" >&6
6821
6822 if test "$hardcode_action" = relink; then
6823   # Fast installation is not supported
6824   enable_fast_install=no
6825 elif test "$shlibpath_overrides_runpath" = yes ||
6826      test "$enable_shared" = no; then
6827   # Fast installation is not necessary
6828   enable_fast_install=needless
6829 fi
6830
6831 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6832 if test "$GCC" = yes; then
6833   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6834 fi
6835
6836 if test "x$enable_dlopen" != xyes; then
6837   enable_dlopen=unknown
6838   enable_dlopen_self=unknown
6839   enable_dlopen_self_static=unknown
6840 else
6841   lt_cv_dlopen=no
6842   lt_cv_dlopen_libs=
6843
6844   case $host_os in
6845   beos*)
6846     lt_cv_dlopen="load_add_on"
6847     lt_cv_dlopen_libs=
6848     lt_cv_dlopen_self=yes
6849     ;;
6850
6851   cygwin* | mingw* | pw32*)
6852     lt_cv_dlopen="LoadLibrary"
6853     lt_cv_dlopen_libs=
6854    ;;
6855
6856   *)
6857     echo "$as_me:$LINENO: checking for shl_load" >&5
6858 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6859 if test "${ac_cv_func_shl_load+set}" = set; then
6860   echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862   cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h.  */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h.  */
6868 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6870 #define shl_load innocuous_shl_load
6871
6872 /* System header to define __stub macros and hopefully few prototypes,
6873     which can conflict with char shl_load (); below.
6874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6875     <limits.h> exists even on freestanding compilers.  */
6876
6877 #ifdef __STDC__
6878 # include <limits.h>
6879 #else
6880 # include <assert.h>
6881 #endif
6882
6883 #undef shl_load
6884
6885 /* Override any gcc2 internal prototype to avoid an error.  */
6886 #ifdef __cplusplus
6887 extern "C"
6888 {
6889 #endif
6890 /* We use char because int might match the return type of a gcc2
6891    builtin and then its argument prototype would still apply.  */
6892 char shl_load ();
6893 /* The GNU C library defines this for functions which it implements
6894     to always fail with ENOSYS.  Some functions are actually named
6895     something starting with __ and the normal name is an alias.  */
6896 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6897 choke me
6898 #else
6899 char (*f) () = shl_load;
6900 #endif
6901 #ifdef __cplusplus
6902 }
6903 #endif
6904
6905 int
6906 main ()
6907 {
6908 return f != shl_load;
6909   ;
6910   return 0;
6911 }
6912 _ACEOF
6913 rm -f conftest.$ac_objext conftest$ac_exeext
6914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6915   (eval $ac_link) 2>conftest.er1
6916   ac_status=$?
6917   grep -v '^ *+' conftest.er1 >conftest.err
6918   rm -f conftest.er1
6919   cat conftest.err >&5
6920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); } &&
6922          { ac_try='test -z "$ac_c_werror_flag"
6923                          || test ! -s conftest.err'
6924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925   (eval $ac_try) 2>&5
6926   ac_status=$?
6927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); }; } &&
6929          { ac_try='test -s conftest$ac_exeext'
6930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931   (eval $ac_try) 2>&5
6932   ac_status=$?
6933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934   (exit $ac_status); }; }; then
6935   ac_cv_func_shl_load=yes
6936 else
6937   echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6939
6940 ac_cv_func_shl_load=no
6941 fi
6942 rm -f conftest.err conftest.$ac_objext \
6943       conftest$ac_exeext conftest.$ac_ext
6944 fi
6945 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6946 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6947 if test $ac_cv_func_shl_load = yes; then
6948   lt_cv_dlopen="shl_load"
6949 else
6950   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6951 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6952 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6953   echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955   ac_check_lib_save_LIBS=$LIBS
6956 LIBS="-ldld  $LIBS"
6957 cat >conftest.$ac_ext <<_ACEOF
6958 /* confdefs.h.  */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h.  */
6963
6964 /* Override any gcc2 internal prototype to avoid an error.  */
6965 #ifdef __cplusplus
6966 extern "C"
6967 #endif
6968 /* We use char because int might match the return type of a gcc2
6969    builtin and then its argument prototype would still apply.  */
6970 char shl_load ();
6971 int
6972 main ()
6973 {
6974 shl_load ();
6975   ;
6976   return 0;
6977 }
6978 _ACEOF
6979 rm -f conftest.$ac_objext conftest$ac_exeext
6980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6981   (eval $ac_link) 2>conftest.er1
6982   ac_status=$?
6983   grep -v '^ *+' conftest.er1 >conftest.err
6984   rm -f conftest.er1
6985   cat conftest.err >&5
6986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987   (exit $ac_status); } &&
6988          { ac_try='test -z "$ac_c_werror_flag"
6989                          || test ! -s conftest.err'
6990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991   (eval $ac_try) 2>&5
6992   ac_status=$?
6993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994   (exit $ac_status); }; } &&
6995          { ac_try='test -s conftest$ac_exeext'
6996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997   (eval $ac_try) 2>&5
6998   ac_status=$?
6999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); }; }; then
7001   ac_cv_lib_dld_shl_load=yes
7002 else
7003   echo "$as_me: failed program was:" >&5
7004 sed 's/^/| /' conftest.$ac_ext >&5
7005
7006 ac_cv_lib_dld_shl_load=no
7007 fi
7008 rm -f conftest.err conftest.$ac_objext \
7009       conftest$ac_exeext conftest.$ac_ext
7010 LIBS=$ac_check_lib_save_LIBS
7011 fi
7012 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7013 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7014 if test $ac_cv_lib_dld_shl_load = yes; then
7015   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7016 else
7017   echo "$as_me:$LINENO: checking for dlopen" >&5
7018 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7019 if test "${ac_cv_func_dlopen+set}" = set; then
7020   echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022   cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h.  */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h.  */
7028 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7030 #define dlopen innocuous_dlopen
7031
7032 /* System header to define __stub macros and hopefully few prototypes,
7033     which can conflict with char dlopen (); below.
7034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7035     <limits.h> exists even on freestanding compilers.  */
7036
7037 #ifdef __STDC__
7038 # include <limits.h>
7039 #else
7040 # include <assert.h>
7041 #endif
7042
7043 #undef dlopen
7044
7045 /* Override any gcc2 internal prototype to avoid an error.  */
7046 #ifdef __cplusplus
7047 extern "C"
7048 {
7049 #endif
7050 /* We use char because int might match the return type of a gcc2
7051    builtin and then its argument prototype would still apply.  */
7052 char dlopen ();
7053 /* The GNU C library defines this for functions which it implements
7054     to always fail with ENOSYS.  Some functions are actually named
7055     something starting with __ and the normal name is an alias.  */
7056 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7057 choke me
7058 #else
7059 char (*f) () = dlopen;
7060 #endif
7061 #ifdef __cplusplus
7062 }
7063 #endif
7064
7065 int
7066 main ()
7067 {
7068 return f != dlopen;
7069   ;
7070   return 0;
7071 }
7072 _ACEOF
7073 rm -f conftest.$ac_objext conftest$ac_exeext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7075   (eval $ac_link) 2>conftest.er1
7076   ac_status=$?
7077   grep -v '^ *+' conftest.er1 >conftest.err
7078   rm -f conftest.er1
7079   cat conftest.err >&5
7080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081   (exit $ac_status); } &&
7082          { ac_try='test -z "$ac_c_werror_flag"
7083                          || test ! -s conftest.err'
7084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085   (eval $ac_try) 2>&5
7086   ac_status=$?
7087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088   (exit $ac_status); }; } &&
7089          { ac_try='test -s conftest$ac_exeext'
7090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091   (eval $ac_try) 2>&5
7092   ac_status=$?
7093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094   (exit $ac_status); }; }; then
7095   ac_cv_func_dlopen=yes
7096 else
7097   echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7099
7100 ac_cv_func_dlopen=no
7101 fi
7102 rm -f conftest.err conftest.$ac_objext \
7103       conftest$ac_exeext conftest.$ac_ext
7104 fi
7105 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7106 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7107 if test $ac_cv_func_dlopen = yes; then
7108   lt_cv_dlopen="dlopen"
7109 else
7110   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7111 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7112 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7113   echo $ECHO_N "(cached) $ECHO_C" >&6
7114 else
7115   ac_check_lib_save_LIBS=$LIBS
7116 LIBS="-ldl  $LIBS"
7117 cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h.  */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h.  */
7123
7124 /* Override any gcc2 internal prototype to avoid an error.  */
7125 #ifdef __cplusplus
7126 extern "C"
7127 #endif
7128 /* We use char because int might match the return type of a gcc2
7129    builtin and then its argument prototype would still apply.  */
7130 char dlopen ();
7131 int
7132 main ()
7133 {
7134 dlopen ();
7135   ;
7136   return 0;
7137 }
7138 _ACEOF
7139 rm -f conftest.$ac_objext conftest$ac_exeext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7141   (eval $ac_link) 2>conftest.er1
7142   ac_status=$?
7143   grep -v '^ *+' conftest.er1 >conftest.err
7144   rm -f conftest.er1
7145   cat conftest.err >&5
7146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147   (exit $ac_status); } &&
7148          { ac_try='test -z "$ac_c_werror_flag"
7149                          || test ! -s conftest.err'
7150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151   (eval $ac_try) 2>&5
7152   ac_status=$?
7153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154   (exit $ac_status); }; } &&
7155          { ac_try='test -s conftest$ac_exeext'
7156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157   (eval $ac_try) 2>&5
7158   ac_status=$?
7159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160   (exit $ac_status); }; }; then
7161   ac_cv_lib_dl_dlopen=yes
7162 else
7163   echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7165
7166 ac_cv_lib_dl_dlopen=no
7167 fi
7168 rm -f conftest.err conftest.$ac_objext \
7169       conftest$ac_exeext conftest.$ac_ext
7170 LIBS=$ac_check_lib_save_LIBS
7171 fi
7172 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7173 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7174 if test $ac_cv_lib_dl_dlopen = yes; then
7175   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7176 else
7177   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7178 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7179 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7180   echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182   ac_check_lib_save_LIBS=$LIBS
7183 LIBS="-lsvld  $LIBS"
7184 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h.  */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h.  */
7190
7191 /* Override any gcc2 internal prototype to avoid an error.  */
7192 #ifdef __cplusplus
7193 extern "C"
7194 #endif
7195 /* We use char because int might match the return type of a gcc2
7196    builtin and then its argument prototype would still apply.  */
7197 char dlopen ();
7198 int
7199 main ()
7200 {
7201 dlopen ();
7202   ;
7203   return 0;
7204 }
7205 _ACEOF
7206 rm -f conftest.$ac_objext conftest$ac_exeext
7207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7208   (eval $ac_link) 2>conftest.er1
7209   ac_status=$?
7210   grep -v '^ *+' conftest.er1 >conftest.err
7211   rm -f conftest.er1
7212   cat conftest.err >&5
7213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214   (exit $ac_status); } &&
7215          { ac_try='test -z "$ac_c_werror_flag"
7216                          || test ! -s conftest.err'
7217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218   (eval $ac_try) 2>&5
7219   ac_status=$?
7220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221   (exit $ac_status); }; } &&
7222          { ac_try='test -s conftest$ac_exeext'
7223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224   (eval $ac_try) 2>&5
7225   ac_status=$?
7226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227   (exit $ac_status); }; }; then
7228   ac_cv_lib_svld_dlopen=yes
7229 else
7230   echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7232
7233 ac_cv_lib_svld_dlopen=no
7234 fi
7235 rm -f conftest.err conftest.$ac_objext \
7236       conftest$ac_exeext conftest.$ac_ext
7237 LIBS=$ac_check_lib_save_LIBS
7238 fi
7239 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7240 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7241 if test $ac_cv_lib_svld_dlopen = yes; then
7242   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7243 else
7244   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7245 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7246 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7247   echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249   ac_check_lib_save_LIBS=$LIBS
7250 LIBS="-ldld  $LIBS"
7251 cat >conftest.$ac_ext <<_ACEOF
7252 /* confdefs.h.  */
7253 _ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h.  */
7257
7258 /* Override any gcc2 internal prototype to avoid an error.  */
7259 #ifdef __cplusplus
7260 extern "C"
7261 #endif
7262 /* We use char because int might match the return type of a gcc2
7263    builtin and then its argument prototype would still apply.  */
7264 char dld_link ();
7265 int
7266 main ()
7267 {
7268 dld_link ();
7269   ;
7270   return 0;
7271 }
7272 _ACEOF
7273 rm -f conftest.$ac_objext conftest$ac_exeext
7274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7275   (eval $ac_link) 2>conftest.er1
7276   ac_status=$?
7277   grep -v '^ *+' conftest.er1 >conftest.err
7278   rm -f conftest.er1
7279   cat conftest.err >&5
7280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281   (exit $ac_status); } &&
7282          { ac_try='test -z "$ac_c_werror_flag"
7283                          || test ! -s conftest.err'
7284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285   (eval $ac_try) 2>&5
7286   ac_status=$?
7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); }; } &&
7289          { ac_try='test -s conftest$ac_exeext'
7290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291   (eval $ac_try) 2>&5
7292   ac_status=$?
7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); }; }; then
7295   ac_cv_lib_dld_dld_link=yes
7296 else
7297   echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7299
7300 ac_cv_lib_dld_dld_link=no
7301 fi
7302 rm -f conftest.err conftest.$ac_objext \
7303       conftest$ac_exeext conftest.$ac_ext
7304 LIBS=$ac_check_lib_save_LIBS
7305 fi
7306 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7307 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7308 if test $ac_cv_lib_dld_dld_link = yes; then
7309   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7310 fi
7311
7312
7313 fi
7314
7315
7316 fi
7317
7318
7319 fi
7320
7321
7322 fi
7323
7324
7325 fi
7326
7327     ;;
7328   esac
7329
7330   if test "x$lt_cv_dlopen" != xno; then
7331     enable_dlopen=yes
7332   else
7333     enable_dlopen=no
7334   fi
7335
7336   case $lt_cv_dlopen in
7337   dlopen)
7338     save_CPPFLAGS="$CPPFLAGS"
7339         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7340
7341     save_LDFLAGS="$LDFLAGS"
7342     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7343
7344     save_LIBS="$LIBS"
7345     LIBS="$lt_cv_dlopen_libs $LIBS"
7346
7347     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7348 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7349 if test "${lt_cv_dlopen_self+set}" = set; then
7350   echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352           if test "$cross_compiling" = yes; then :
7353   lt_cv_dlopen_self=cross
7354 else
7355     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7356   lt_status=$lt_dlunknown
7357   cat > conftest.$ac_ext <<EOF
7358 #line 7358 "configure"
7359 #include "confdefs.h"
7360
7361 #if HAVE_DLFCN_H
7362 #include <dlfcn.h>
7363 #endif
7364
7365 #include <stdio.h>
7366
7367 #ifdef RTLD_GLOBAL
7368 #  define LT_DLGLOBAL           RTLD_GLOBAL
7369 #else
7370 #  ifdef DL_GLOBAL
7371 #    define LT_DLGLOBAL         DL_GLOBAL
7372 #  else
7373 #    define LT_DLGLOBAL         0
7374 #  endif
7375 #endif
7376
7377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7378    find out it does not work in some platform. */
7379 #ifndef LT_DLLAZY_OR_NOW
7380 #  ifdef RTLD_LAZY
7381 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7382 #  else
7383 #    ifdef DL_LAZY
7384 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7385 #    else
7386 #      ifdef RTLD_NOW
7387 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7388 #      else
7389 #        ifdef DL_NOW
7390 #          define LT_DLLAZY_OR_NOW      DL_NOW
7391 #        else
7392 #          define LT_DLLAZY_OR_NOW      0
7393 #        endif
7394 #      endif
7395 #    endif
7396 #  endif
7397 #endif
7398
7399 #ifdef __cplusplus
7400 extern "C" void exit (int);
7401 #endif
7402
7403 void fnord() { int i=42;}
7404 int main ()
7405 {
7406   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7407   int status = $lt_dlunknown;
7408
7409   if (self)
7410     {
7411       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7412       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7413       /* dlclose (self); */
7414     }
7415
7416     exit (status);
7417 }
7418 EOF
7419   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7420   (eval $ac_link) 2>&5
7421   ac_status=$?
7422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7424     (./conftest; exit; ) 2>/dev/null
7425     lt_status=$?
7426     case x$lt_status in
7427       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7428       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7429       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7430     esac
7431   else :
7432     # compilation failed
7433     lt_cv_dlopen_self=no
7434   fi
7435 fi
7436 rm -fr conftest*
7437
7438
7439 fi
7440 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7441 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7442
7443     if test "x$lt_cv_dlopen_self" = xyes; then
7444       LDFLAGS="$LDFLAGS $link_static_flag"
7445       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7446 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7447 if test "${lt_cv_dlopen_self_static+set}" = set; then
7448   echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450           if test "$cross_compiling" = yes; then :
7451   lt_cv_dlopen_self_static=cross
7452 else
7453     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7454   lt_status=$lt_dlunknown
7455   cat > conftest.$ac_ext <<EOF
7456 #line 7456 "configure"
7457 #include "confdefs.h"
7458
7459 #if HAVE_DLFCN_H
7460 #include <dlfcn.h>
7461 #endif
7462
7463 #include <stdio.h>
7464
7465 #ifdef RTLD_GLOBAL
7466 #  define LT_DLGLOBAL           RTLD_GLOBAL
7467 #else
7468 #  ifdef DL_GLOBAL
7469 #    define LT_DLGLOBAL         DL_GLOBAL
7470 #  else
7471 #    define LT_DLGLOBAL         0
7472 #  endif
7473 #endif
7474
7475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7476    find out it does not work in some platform. */
7477 #ifndef LT_DLLAZY_OR_NOW
7478 #  ifdef RTLD_LAZY
7479 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7480 #  else
7481 #    ifdef DL_LAZY
7482 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7483 #    else
7484 #      ifdef RTLD_NOW
7485 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7486 #      else
7487 #        ifdef DL_NOW
7488 #          define LT_DLLAZY_OR_NOW      DL_NOW
7489 #        else
7490 #          define LT_DLLAZY_OR_NOW      0
7491 #        endif
7492 #      endif
7493 #    endif
7494 #  endif
7495 #endif
7496
7497 #ifdef __cplusplus
7498 extern "C" void exit (int);
7499 #endif
7500
7501 void fnord() { int i=42;}
7502 int main ()
7503 {
7504   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7505   int status = $lt_dlunknown;
7506
7507   if (self)
7508     {
7509       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7510       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7511       /* dlclose (self); */
7512     }
7513
7514     exit (status);
7515 }
7516 EOF
7517   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7518   (eval $ac_link) 2>&5
7519   ac_status=$?
7520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7522     (./conftest; exit; ) 2>/dev/null
7523     lt_status=$?
7524     case x$lt_status in
7525       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7526       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7527       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7528     esac
7529   else :
7530     # compilation failed
7531     lt_cv_dlopen_self_static=no
7532   fi
7533 fi
7534 rm -fr conftest*
7535
7536
7537 fi
7538 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7539 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7540     fi
7541
7542     CPPFLAGS="$save_CPPFLAGS"
7543     LDFLAGS="$save_LDFLAGS"
7544     LIBS="$save_LIBS"
7545     ;;
7546   esac
7547
7548   case $lt_cv_dlopen_self in
7549   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7550   *) enable_dlopen_self=unknown ;;
7551   esac
7552
7553   case $lt_cv_dlopen_self_static in
7554   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7555   *) enable_dlopen_self_static=unknown ;;
7556   esac
7557 fi
7558
7559
7560 if test "$enable_shared" = yes && test "$GCC" = yes; then
7561   case $archive_cmds in
7562   *'~'*)
7563     # FIXME: we may have to deal with multi-command sequences.
7564     ;;
7565   '$CC '*)
7566     # Test whether the compiler implicitly links with -lc since on some
7567     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7568     # to ld, don't add -lc before -lgcc.
7569     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7570 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7571     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7572   echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574   $rm conftest*
7575     echo 'static int dummy;' > conftest.$ac_ext
7576
7577     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7578   (eval $ac_compile) 2>&5
7579   ac_status=$?
7580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581   (exit $ac_status); }; then
7582       soname=conftest
7583       lib=conftest
7584       libobjs=conftest.$ac_objext
7585       deplibs=
7586       wl=$lt_cv_prog_cc_wl
7587       compiler_flags=-v
7588       linker_flags=-v
7589       verstring=
7590       output_objdir=.
7591       libname=conftest
7592       save_allow_undefined_flag=$allow_undefined_flag
7593       allow_undefined_flag=
7594       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7595   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7596   ac_status=$?
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); }
7599       then
7600         lt_cv_archive_cmds_need_lc=no
7601       else
7602         lt_cv_archive_cmds_need_lc=yes
7603       fi
7604       allow_undefined_flag=$save_allow_undefined_flag
7605     else
7606       cat conftest.err 1>&5
7607     fi
7608 fi
7609
7610     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7611 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7612     ;;
7613   esac
7614 fi
7615 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7616
7617 # The second clause should only fire when bootstrapping the
7618 # libtool distribution, otherwise you forgot to ship ltmain.sh
7619 # with your package, and you will get complaints that there are
7620 # no rules to generate ltmain.sh.
7621 if test -f "$ltmain"; then
7622   :
7623 else
7624   # If there is no Makefile yet, we rely on a make rule to execute
7625   # `config.status --recheck' to rerun these tests and create the
7626   # libtool script then.
7627   test -f Makefile && make "$ltmain"
7628 fi
7629
7630 if test -f "$ltmain"; then
7631   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7632   $rm -f "${ofile}T"
7633
7634   echo creating $ofile
7635
7636   # Now quote all the things that may contain metacharacters while being
7637   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7638   # variables and quote the copies for generation of the libtool script.
7639   for var in echo old_CC old_CFLAGS SED \
7640     AR AR_FLAGS CC LD LN_S NM SHELL \
7641     reload_flag reload_cmds wl \
7642     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7643     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7644     library_names_spec soname_spec \
7645     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7646     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7647     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7648     old_striplib striplib file_magic_cmd export_symbols_cmds \
7649     deplibs_check_method allow_undefined_flag no_undefined_flag \
7650     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7651     global_symbol_to_c_name_address \
7652     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7653     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7654     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7655
7656     case $var in
7657     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7658     old_postinstall_cmds | old_postuninstall_cmds | \
7659     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7660     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7661     postinstall_cmds | postuninstall_cmds | \
7662     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7663       # Double-quote double-evaled strings.
7664       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7665       ;;
7666     *)
7667       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7668       ;;
7669     esac
7670   done
7671
7672   cat <<__EOF__ > "${ofile}T"
7673 #! $SHELL
7674
7675 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7676 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7677 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7678 #
7679 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7680 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7681 #
7682 # This program is free software; you can redistribute it and/or modify
7683 # it under the terms of the GNU General Public License as published by
7684 # the Free Software Foundation; either version 2 of the License, or
7685 # (at your option) any later version.
7686 #
7687 # This program is distributed in the hope that it will be useful, but
7688 # WITHOUT ANY WARRANTY; without even the implied warranty of
7689 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7690 # General Public License for more details.
7691 #
7692 # You should have received a copy of the GNU General Public License
7693 # along with this program; if not, write to the Free Software
7694 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7695 #
7696 # As a special exception to the GNU General Public License, if you
7697 # distribute this file as part of a program that contains a
7698 # configuration script generated by Autoconf, you may include it under
7699 # the same distribution terms that you use for the rest of that program.
7700
7701 # A sed that does not truncate output.
7702 SED=$lt_SED
7703
7704 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7705 Xsed="${SED} -e s/^X//"
7706
7707 # The HP-UX ksh and POSIX shell print the target directory to stdout
7708 # if CDPATH is set.
7709 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7710
7711 # ### BEGIN LIBTOOL CONFIG
7712
7713 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7714
7715 # Shell to use when invoking shell scripts.
7716 SHELL=$lt_SHELL
7717
7718 # Whether or not to build shared libraries.
7719 build_libtool_libs=$enable_shared
7720
7721 # Whether or not to build static libraries.
7722 build_old_libs=$enable_static
7723
7724 # Whether or not to add -lc for building shared libraries.
7725 build_libtool_need_lc=$need_lc
7726
7727 # Whether or not to optimize for fast installation.
7728 fast_install=$enable_fast_install
7729
7730 # The host system.
7731 host_alias=$host_alias
7732 host=$host
7733
7734 # An echo program that does not interpret backslashes.
7735 echo=$lt_echo
7736
7737 # The archiver.
7738 AR=$lt_AR
7739 AR_FLAGS=$lt_AR_FLAGS
7740
7741 # The default C compiler.
7742 CC=$lt_CC
7743
7744 # Is the compiler the GNU C compiler?
7745 with_gcc=$GCC
7746
7747 # The linker used to build libraries.
7748 LD=$lt_LD
7749
7750 # Whether we need hard or soft links.
7751 LN_S=$lt_LN_S
7752
7753 # A BSD-compatible nm program.
7754 NM=$lt_NM
7755
7756 # A symbol stripping program
7757 STRIP=$STRIP
7758
7759 # Used to examine libraries when file_magic_cmd begins "file"
7760 MAGIC_CMD=$MAGIC_CMD
7761
7762 # Used on cygwin: DLL creation program.
7763 DLLTOOL="$DLLTOOL"
7764
7765 # Used on cygwin: object dumper.
7766 OBJDUMP="$OBJDUMP"
7767
7768 # Used on cygwin: assembler.
7769 AS="$AS"
7770
7771 # The name of the directory that contains temporary libtool files.
7772 objdir=$objdir
7773
7774 # How to create reloadable object files.
7775 reload_flag=$lt_reload_flag
7776 reload_cmds=$lt_reload_cmds
7777
7778 # How to pass a linker flag through the compiler.
7779 wl=$lt_wl
7780
7781 # Object file suffix (normally "o").
7782 objext="$ac_objext"
7783
7784 # Old archive suffix (normally "a").
7785 libext="$libext"
7786
7787 # Executable file suffix (normally "").
7788 exeext="$exeext"
7789
7790 # Additional compiler flags for building library objects.
7791 pic_flag=$lt_pic_flag
7792 pic_mode=$pic_mode
7793
7794 # Does compiler simultaneously support -c and -o options?
7795 compiler_c_o=$lt_compiler_c_o
7796
7797 # Can we write directly to a .lo ?
7798 compiler_o_lo=$lt_compiler_o_lo
7799
7800 # Must we lock files when doing compilation ?
7801 need_locks=$lt_need_locks
7802
7803 # Do we need the lib prefix for modules?
7804 need_lib_prefix=$need_lib_prefix
7805
7806 # Do we need a version for libraries?
7807 need_version=$need_version
7808
7809 # Whether dlopen is supported.
7810 dlopen_support=$enable_dlopen
7811
7812 # Whether dlopen of programs is supported.
7813 dlopen_self=$enable_dlopen_self
7814
7815 # Whether dlopen of statically linked programs is supported.
7816 dlopen_self_static=$enable_dlopen_self_static
7817
7818 # Compiler flag to prevent dynamic linking.
7819 link_static_flag=$lt_link_static_flag
7820
7821 # Compiler flag to turn off builtin functions.
7822 no_builtin_flag=$lt_no_builtin_flag
7823
7824 # Compiler flag to allow reflexive dlopens.
7825 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7826
7827 # Compiler flag to generate shared objects directly from archives.
7828 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7829
7830 # Compiler flag to generate thread-safe objects.
7831 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7832
7833 # Library versioning type.
7834 version_type=$version_type
7835
7836 # Format of library name prefix.
7837 libname_spec=$lt_libname_spec
7838
7839 # List of archive names.  First name is the real one, the rest are links.
7840 # The last name is the one that the linker finds with -lNAME.
7841 library_names_spec=$lt_library_names_spec
7842
7843 # The coded name of the library, if different from the real name.
7844 soname_spec=$lt_soname_spec
7845
7846 # Commands used to build and install an old-style archive.
7847 RANLIB=$lt_RANLIB
7848 old_archive_cmds=$lt_old_archive_cmds
7849 old_postinstall_cmds=$lt_old_postinstall_cmds
7850 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7851
7852 # Create an old-style archive from a shared archive.
7853 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7854
7855 # Create a temporary old-style archive to link instead of a shared archive.
7856 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7857
7858 # Commands used to build and install a shared archive.
7859 archive_cmds=$lt_archive_cmds
7860 archive_expsym_cmds=$lt_archive_expsym_cmds
7861 postinstall_cmds=$lt_postinstall_cmds
7862 postuninstall_cmds=$lt_postuninstall_cmds
7863
7864 # Commands to strip libraries.
7865 old_striplib=$lt_old_striplib
7866 striplib=$lt_striplib
7867
7868 # Method to check whether dependent libraries are shared objects.
7869 deplibs_check_method=$lt_deplibs_check_method
7870
7871 # Command to use when deplibs_check_method == file_magic.
7872 file_magic_cmd=$lt_file_magic_cmd
7873
7874 # Flag that allows shared libraries with undefined symbols to be built.
7875 allow_undefined_flag=$lt_allow_undefined_flag
7876
7877 # Flag that forces no undefined symbols.
7878 no_undefined_flag=$lt_no_undefined_flag
7879
7880 # Commands used to finish a libtool library installation in a directory.
7881 finish_cmds=$lt_finish_cmds
7882
7883 # Same as above, but a single script fragment to be evaled but not shown.
7884 finish_eval=$lt_finish_eval
7885
7886 # Take the output of nm and produce a listing of raw symbols and C names.
7887 global_symbol_pipe=$lt_global_symbol_pipe
7888
7889 # Transform the output of nm in a proper C declaration
7890 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7891
7892 # Transform the output of nm in a C name address pair
7893 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7894
7895 # This is the shared library runtime path variable.
7896 runpath_var=$runpath_var
7897
7898 # This is the shared library path variable.
7899 shlibpath_var=$shlibpath_var
7900
7901 # Is shlibpath searched before the hard-coded library search path?
7902 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7903
7904 # How to hardcode a shared library path into an executable.
7905 hardcode_action=$hardcode_action
7906
7907 # Whether we should hardcode library paths into libraries.
7908 hardcode_into_libs=$hardcode_into_libs
7909
7910 # Flag to hardcode \$libdir into a binary during linking.
7911 # This must work even if \$libdir does not exist.
7912 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7913
7914 # Whether we need a single -rpath flag with a separated argument.
7915 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7916
7917 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7918 # resulting binary.
7919 hardcode_direct=$hardcode_direct
7920
7921 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7922 # resulting binary.
7923 hardcode_minus_L=$hardcode_minus_L
7924
7925 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7926 # the resulting binary.
7927 hardcode_shlibpath_var=$hardcode_shlibpath_var
7928
7929 # Variables whose values should be saved in libtool wrapper scripts and
7930 # restored at relink time.
7931 variables_saved_for_relink="$variables_saved_for_relink"
7932
7933 # Whether libtool must link a program against all its dependency libraries.
7934 link_all_deplibs=$link_all_deplibs
7935
7936 # Compile-time system search path for libraries
7937 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7938
7939 # Run-time system search path for libraries
7940 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7941
7942 # Fix the shell variable \$srcfile for the compiler.
7943 fix_srcfile_path="$fix_srcfile_path"
7944
7945 # Set to yes if exported symbols are required.
7946 always_export_symbols=$always_export_symbols
7947
7948 # The commands to list exported symbols.
7949 export_symbols_cmds=$lt_export_symbols_cmds
7950
7951 # The commands to extract the exported symbol list from a shared archive.
7952 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7953
7954 # Symbols that should not be listed in the preloaded symbols.
7955 exclude_expsyms=$lt_exclude_expsyms
7956
7957 # Symbols that must always be exported.
7958 include_expsyms=$lt_include_expsyms
7959
7960 # ### END LIBTOOL CONFIG
7961
7962 __EOF__
7963
7964   case $host_os in
7965   aix3*)
7966     cat <<\EOF >> "${ofile}T"
7967
7968 # AIX sometimes has problems with the GCC collect2 program.  For some
7969 # reason, if we set the COLLECT_NAMES environment variable, the problems
7970 # vanish in a puff of smoke.
7971 if test "X${COLLECT_NAMES+set}" != Xset; then
7972   COLLECT_NAMES=
7973   export COLLECT_NAMES
7974 fi
7975 EOF
7976     ;;
7977   esac
7978
7979   case $host_os in
7980   cygwin* | mingw* | pw32* | os2*)
7981     cat <<'EOF' >> "${ofile}T"
7982       # This is a source program that is used to create dlls on Windows
7983       # Don't remove nor modify the starting and closing comments
7984 # /* ltdll.c starts here */
7985 # #define WIN32_LEAN_AND_MEAN
7986 # #include <windows.h>
7987 # #undef WIN32_LEAN_AND_MEAN
7988 # #include <stdio.h>
7989 #
7990 # #ifndef __CYGWIN__
7991 # #  ifdef __CYGWIN32__
7992 # #    define __CYGWIN__ __CYGWIN32__
7993 # #  endif
7994 # #endif
7995 #
7996 # #ifdef __cplusplus
7997 # extern "C" {
7998 # #endif
7999 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8000 # #ifdef __cplusplus
8001 # }
8002 # #endif
8003 #
8004 # #ifdef __CYGWIN__
8005 # #include <cygwin/cygwin_dll.h>
8006 # DECLARE_CYGWIN_DLL( DllMain );
8007 # #endif
8008 # HINSTANCE __hDllInstance_base;
8009 #
8010 # BOOL APIENTRY
8011 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8012 # {
8013 #   __hDllInstance_base = hInst;
8014 #   return TRUE;
8015 # }
8016 # /* ltdll.c ends here */
8017         # This is a source program that is used to create import libraries
8018         # on Windows for dlls which lack them. Don't remove nor modify the
8019         # starting and closing comments
8020 # /* impgen.c starts here */
8021 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8022 #
8023 #  This file is part of GNU libtool.
8024 #
8025 #  This program is free software; you can redistribute it and/or modify
8026 #  it under the terms of the GNU General Public License as published by
8027 #  the Free Software Foundation; either version 2 of the License, or
8028 #  (at your option) any later version.
8029 #
8030 #  This program is distributed in the hope that it will be useful,
8031 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8032 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8033 #  GNU General Public License for more details.
8034 #
8035 #  You should have received a copy of the GNU General Public License
8036 #  along with this program; if not, write to the Free Software
8037 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8038 #  */
8039 #
8040 # #include <stdio.h>            /* for printf() */
8041 # #include <unistd.h>           /* for open(), lseek(), read() */
8042 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8043 # #include <string.h>           /* for strdup() */
8044 #
8045 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8046 # #ifndef O_BINARY
8047 # #define O_BINARY 0
8048 # #endif
8049 #
8050 # static unsigned int
8051 # pe_get16 (fd, offset)
8052 #      int fd;
8053 #      int offset;
8054 # {
8055 #   unsigned char b[2];
8056 #   lseek (fd, offset, SEEK_SET);
8057 #   read (fd, b, 2);
8058 #   return b[0] + (b[1]<<8);
8059 # }
8060 #
8061 # static unsigned int
8062 # pe_get32 (fd, offset)
8063 #     int fd;
8064 #     int offset;
8065 # {
8066 #   unsigned char b[4];
8067 #   lseek (fd, offset, SEEK_SET);
8068 #   read (fd, b, 4);
8069 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8070 # }
8071 #
8072 # static unsigned int
8073 # pe_as32 (ptr)
8074 #      void *ptr;
8075 # {
8076 #   unsigned char *b = ptr;
8077 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8078 # }
8079 #
8080 # int
8081 # main (argc, argv)
8082 #     int argc;
8083 #     char *argv[];
8084 # {
8085 #     int dll;
8086 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8087 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8088 #     unsigned long name_rvas, nexp;
8089 #     unsigned char *expdata, *erva;
8090 #     char *filename, *dll_name;
8091 #
8092 #     filename = argv[1];
8093 #
8094 #     dll = open(filename, O_RDONLY|O_BINARY);
8095 #     if (dll < 1)
8096 #       return 1;
8097 #
8098 #     dll_name = filename;
8099 #
8100 #     for (i=0; filename[i]; i++)
8101 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8102 #           dll_name = filename + i +1;
8103 #
8104 #     pe_header_offset = pe_get32 (dll, 0x3c);
8105 #     opthdr_ofs = pe_header_offset + 4 + 20;
8106 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8107 #
8108 #     if (num_entries < 1) /* no exports */
8109 #       return 1;
8110 #
8111 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8112 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8113 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8114 #     secptr = (pe_header_offset + 4 + 20 +
8115 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8116 #
8117 #     expptr = 0;
8118 #     for (i = 0; i < nsections; i++)
8119 #     {
8120 #       char sname[8];
8121 #       unsigned long secptr1 = secptr + 40 * i;
8122 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8123 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8124 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8125 #       lseek(dll, secptr1, SEEK_SET);
8126 #       read(dll, sname, 8);
8127 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8128 #       {
8129 #           expptr = fptr + (export_rva - vaddr);
8130 #           if (export_rva + export_size > vaddr + vsize)
8131 #               export_size = vsize - (export_rva - vaddr);
8132 #           break;
8133 #       }
8134 #     }
8135 #
8136 #     expdata = (unsigned char*)malloc(export_size);
8137 #     lseek (dll, expptr, SEEK_SET);
8138 #     read (dll, expdata, export_size);
8139 #     erva = expdata - export_rva;
8140 #
8141 #     nexp = pe_as32 (expdata+24);
8142 #     name_rvas = pe_as32 (expdata+32);
8143 #
8144 #     printf ("EXPORTS\n");
8145 #     for (i = 0; i<nexp; i++)
8146 #     {
8147 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8148 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8149 #     }
8150 #
8151 #     return 0;
8152 # }
8153 # /* impgen.c ends here */
8154
8155 EOF
8156     ;;
8157   esac
8158
8159   # We use sed instead of cat because bash on DJGPP gets confused if
8160   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8161   # text mode, it properly converts lines to CR/LF.  This bash problem
8162   # is reportedly fixed, but why not run on old versions too?
8163   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8164
8165   mv -f "${ofile}T" "$ofile" || \
8166     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8167   chmod +x "$ofile"
8168 fi
8169
8170
8171
8172
8173
8174 # This can be used to rebuild libtool when needed
8175 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8176
8177 # Always use our own libtool.
8178 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8179
8180 # Prevent multiple expansion
8181
8182
8183  for ac_prog in gzip uncompress compress
8184 do
8185   # Extract the first word of "$ac_prog", so it can be a program name with args.
8186 set dummy $ac_prog; ac_word=$2
8187 echo "$as_me:$LINENO: checking for $ac_word" >&5
8188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8189 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8190   echo $ECHO_N "(cached) $ECHO_C" >&6
8191 else
8192   if test -n "$UNCOMPRESS"; then
8193   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8194 else
8195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 for as_dir in $PATH
8197 do
8198   IFS=$as_save_IFS
8199   test -z "$as_dir" && as_dir=.
8200   for ac_exec_ext in '' $ac_executable_extensions; do
8201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8202     ac_cv_prog_UNCOMPRESS="$ac_prog"
8203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8204     break 2
8205   fi
8206 done
8207 done
8208
8209 fi
8210 fi
8211 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8212 if test -n "$UNCOMPRESS"; then
8213   echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8214 echo "${ECHO_T}$UNCOMPRESS" >&6
8215 else
8216   echo "$as_me:$LINENO: result: no" >&5
8217 echo "${ECHO_T}no" >&6
8218 fi
8219
8220   test -n "$UNCOMPRESS" && break
8221 done
8222
8223
8224
8225
8226
8227
8228
8229
8230 echo "$as_me:$LINENO: checking for target system" >&5
8231 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8232 CYGWIN=
8233 MINGW=
8234 case $host_os in
8235     *cygwin* ) CYGWIN=yes;;
8236     *mingw* ) MINGW=yes;;
8237 esac
8238
8239 AR=ar
8240 if test "x$MINGW" = "xyes"; then
8241     #fix for the debian distribution of mingw
8242     if test -x "/usr/i586-mingw32msvc/bin/ar";then
8243         AR="/usr/i586-mingw32msvc/bin/ar"
8244     fi
8245     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8246         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8247     fi
8248     #fix for the gentoo distribution of mingw
8249     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8250         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8251     fi
8252     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8253         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8254     fi
8255     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8256         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8257     fi
8258 fi
8259
8260
8261
8262 if test "x${CYGWIN}" = "xyes"; then
8263     cat >>confdefs.h <<_ACEOF
8264 #define CYGWIN 1
8265 _ACEOF
8266
8267     echo "$as_me:$LINENO: result: cygwin" >&5
8268 echo "${ECHO_T}cygwin" >&6
8269 else
8270     if test "x${MINGW}" = "xyes"; then
8271         cat >>confdefs.h <<_ACEOF
8272 #define MINGW 1
8273 _ACEOF
8274
8275         WIN32=1
8276         cat >>confdefs.h <<_ACEOF
8277 #define WIN32 1
8278 _ACEOF
8279
8280         LIBS="$LIBS -lws2_32"
8281         echo "$as_me:$LINENO: result: mingw" >&5
8282 echo "${ECHO_T}mingw" >&6
8283     else
8284         LINUX=1
8285         export LINUX
8286         cat >>confdefs.h <<_ACEOF
8287 #define LINUX 1
8288 _ACEOF
8289
8290         echo "$as_me:$LINENO: result: " >&5
8291 echo "${ECHO_T}" >&6
8292     fi
8293 fi
8294
8295
8296 SLEXT="so"
8297 if test "x${MINGW}" != "xyes"; then
8298     # no mingW
8299     cat >>confdefs.h <<_ACEOF
8300 #define O_BINARY 0
8301 _ACEOF
8302
8303 else
8304     # mingW
8305     SLEXT="dll"
8306 fi
8307 export SLEXT
8308
8309
8310 # The following tries to make use of includes and libraries in
8311 # /usr/local, too. Notice: A -I/usr/local/include might break
8312 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8313 # especially on systems which link /usr/local to /usr, so it has yet
8314 # to be seen how useful this is.
8315 if test -d /usr/local/lib; then
8316     LDFLAGS="$LDFLAGS -L/usr/local/lib"
8317 fi
8318 if test -d /usr/local/include; then
8319 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8320 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8321     echo > /dev/null
8322 fi
8323 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8324     # if the user has a special prefix (like /opt), there might also be $prefix/lib
8325     # and $prefix/include, which should be included in our search paths for libraries
8326     # and includes.
8327     LDFLAGS="$LDFLAGS -L${libdir}"
8328     CPPFLAGS="$CPPFLAGS -I${includedir}"
8329     # TODO- test whether gcc still works after this
8330 fi
8331
8332 # this must be done after (I believe) AC_PROG_MAKE_SET
8333 if test "x$DEBUG" '!=' "x";then
8334     STRIP="@echo debug enabled, not stripping "
8335     export STRIP
8336
8337 fi
8338
8339
8340 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8341 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8342 if test "${ac_cv_lib_m_sin+set}" = set; then
8343   echo $ECHO_N "(cached) $ECHO_C" >&6
8344 else
8345   ac_check_lib_save_LIBS=$LIBS
8346 LIBS="-lm  $LIBS"
8347 cat >conftest.$ac_ext <<_ACEOF
8348 /* confdefs.h.  */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h.  */
8353
8354 /* Override any gcc2 internal prototype to avoid an error.  */
8355 #ifdef __cplusplus
8356 extern "C"
8357 #endif
8358 /* We use char because int might match the return type of a gcc2
8359    builtin and then its argument prototype would still apply.  */
8360 char sin ();
8361 int
8362 main ()
8363 {
8364 sin ();
8365   ;
8366   return 0;
8367 }
8368 _ACEOF
8369 rm -f conftest.$ac_objext conftest$ac_exeext
8370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8371   (eval $ac_link) 2>conftest.er1
8372   ac_status=$?
8373   grep -v '^ *+' conftest.er1 >conftest.err
8374   rm -f conftest.er1
8375   cat conftest.err >&5
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); } &&
8378          { ac_try='test -z "$ac_c_werror_flag"
8379                          || test ! -s conftest.err'
8380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381   (eval $ac_try) 2>&5
8382   ac_status=$?
8383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384   (exit $ac_status); }; } &&
8385          { ac_try='test -s conftest$ac_exeext'
8386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387   (eval $ac_try) 2>&5
8388   ac_status=$?
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); }; }; then
8391   ac_cv_lib_m_sin=yes
8392 else
8393   echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8395
8396 ac_cv_lib_m_sin=no
8397 fi
8398 rm -f conftest.err conftest.$ac_objext \
8399       conftest$ac_exeext conftest.$ac_ext
8400 LIBS=$ac_check_lib_save_LIBS
8401 fi
8402 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8403 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8404 if test $ac_cv_lib_m_sin = yes; then
8405   cat >>confdefs.h <<_ACEOF
8406 #define HAVE_LIBM 1
8407 _ACEOF
8408
8409   LIBS="-lm $LIBS"
8410
8411 else
8412   echo "Error: Math library not found.";
8413  exit;
8414
8415 fi
8416
8417
8418 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8419 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8420 if test "${ac_cv_lib_z_deflate+set}" = set; then
8421   echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423   ac_check_lib_save_LIBS=$LIBS
8424 LIBS="-lz  $LIBS"
8425 cat >conftest.$ac_ext <<_ACEOF
8426 /* confdefs.h.  */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h.  */
8431
8432 /* Override any gcc2 internal prototype to avoid an error.  */
8433 #ifdef __cplusplus
8434 extern "C"
8435 #endif
8436 /* We use char because int might match the return type of a gcc2
8437    builtin and then its argument prototype would still apply.  */
8438 char deflate ();
8439 int
8440 main ()
8441 {
8442 deflate ();
8443   ;
8444   return 0;
8445 }
8446 _ACEOF
8447 rm -f conftest.$ac_objext conftest$ac_exeext
8448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8449   (eval $ac_link) 2>conftest.er1
8450   ac_status=$?
8451   grep -v '^ *+' conftest.er1 >conftest.err
8452   rm -f conftest.er1
8453   cat conftest.err >&5
8454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); } &&
8456          { ac_try='test -z "$ac_c_werror_flag"
8457                          || test ! -s conftest.err'
8458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459   (eval $ac_try) 2>&5
8460   ac_status=$?
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); }; } &&
8463          { ac_try='test -s conftest$ac_exeext'
8464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465   (eval $ac_try) 2>&5
8466   ac_status=$?
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); }; }; then
8469   ac_cv_lib_z_deflate=yes
8470 else
8471   echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8473
8474 ac_cv_lib_z_deflate=no
8475 fi
8476 rm -f conftest.err conftest.$ac_objext \
8477       conftest$ac_exeext conftest.$ac_ext
8478 LIBS=$ac_check_lib_save_LIBS
8479 fi
8480 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8481 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8482 if test $ac_cv_lib_z_deflate = yes; then
8483   cat >>confdefs.h <<_ACEOF
8484 #define HAVE_LIBZ 1
8485 _ACEOF
8486
8487   LIBS="-lz $LIBS"
8488
8489 else
8490   ZLIBMISSING=true
8491 fi
8492
8493
8494 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8495 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8496 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8497   echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499   ac_check_lib_save_LIBS=$LIBS
8500 LIBS="-ljpeg  $LIBS"
8501 cat >conftest.$ac_ext <<_ACEOF
8502 /* confdefs.h.  */
8503 _ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h.  */
8507
8508 /* Override any gcc2 internal prototype to avoid an error.  */
8509 #ifdef __cplusplus
8510 extern "C"
8511 #endif
8512 /* We use char because int might match the return type of a gcc2
8513    builtin and then its argument prototype would still apply.  */
8514 char jpeg_write_raw_data ();
8515 int
8516 main ()
8517 {
8518 jpeg_write_raw_data ();
8519   ;
8520   return 0;
8521 }
8522 _ACEOF
8523 rm -f conftest.$ac_objext conftest$ac_exeext
8524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8525   (eval $ac_link) 2>conftest.er1
8526   ac_status=$?
8527   grep -v '^ *+' conftest.er1 >conftest.err
8528   rm -f conftest.er1
8529   cat conftest.err >&5
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); } &&
8532          { ac_try='test -z "$ac_c_werror_flag"
8533                          || test ! -s conftest.err'
8534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535   (eval $ac_try) 2>&5
8536   ac_status=$?
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); }; } &&
8539          { ac_try='test -s conftest$ac_exeext'
8540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541   (eval $ac_try) 2>&5
8542   ac_status=$?
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); }; }; then
8545   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8546 else
8547   echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8549
8550 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8551 fi
8552 rm -f conftest.err conftest.$ac_objext \
8553       conftest$ac_exeext conftest.$ac_ext
8554 LIBS=$ac_check_lib_save_LIBS
8555 fi
8556 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8557 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8558 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8559   cat >>confdefs.h <<_ACEOF
8560 #define HAVE_LIBJPEG 1
8561 _ACEOF
8562
8563   LIBS="-ljpeg $LIBS"
8564
8565 else
8566   JPEGLIBMISSING=true
8567 fi
8568
8569
8570 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8571 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8572 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8573   echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575   ac_check_lib_save_LIBS=$LIBS
8576 LIBS="-lt1  $LIBS"
8577 cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h.  */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h.  */
8583
8584 /* Override any gcc2 internal prototype to avoid an error.  */
8585 #ifdef __cplusplus
8586 extern "C"
8587 #endif
8588 /* We use char because int might match the return type of a gcc2
8589    builtin and then its argument prototype would still apply.  */
8590 char T1_LoadFont ();
8591 int
8592 main ()
8593 {
8594 T1_LoadFont ();
8595   ;
8596   return 0;
8597 }
8598 _ACEOF
8599 rm -f conftest.$ac_objext conftest$ac_exeext
8600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8601   (eval $ac_link) 2>conftest.er1
8602   ac_status=$?
8603   grep -v '^ *+' conftest.er1 >conftest.err
8604   rm -f conftest.er1
8605   cat conftest.err >&5
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); } &&
8608          { ac_try='test -z "$ac_c_werror_flag"
8609                          || test ! -s conftest.err'
8610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611   (eval $ac_try) 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); }; } &&
8615          { ac_try='test -s conftest$ac_exeext'
8616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617   (eval $ac_try) 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }; }; then
8621   ac_cv_lib_t1_T1_LoadFont=yes
8622 else
8623   echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8625
8626 ac_cv_lib_t1_T1_LoadFont=no
8627 fi
8628 rm -f conftest.err conftest.$ac_objext \
8629       conftest$ac_exeext conftest.$ac_ext
8630 LIBS=$ac_check_lib_save_LIBS
8631 fi
8632 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8633 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8634 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8635   cat >>confdefs.h <<_ACEOF
8636 #define HAVE_LIBT1 1
8637 _ACEOF
8638
8639   LIBS="-lt1 $LIBS"
8640
8641 else
8642   T1LIBMISSING=true
8643 fi
8644
8645
8646
8647 echo "$as_me:$LINENO: checking for byte order" >&5
8648 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8649 if test "$cross_compiling" = yes; then
8650   CROSSCOMPILE=1
8651 else
8652   cat >conftest.$ac_ext <<_ACEOF
8653 /* confdefs.h.  */
8654 _ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h.  */
8658
8659 int main (int argc, char *argv[])
8660 {
8661     int i = 1;
8662     return *(char*)&i;
8663 }
8664
8665 _ACEOF
8666 rm -f conftest$ac_exeext
8667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8668   (eval $ac_link) 2>&5
8669   ac_status=$?
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673   (eval $ac_try) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; }; then
8677   BIGENDIAN=1
8678 else
8679   echo "$as_me: program exited with status $ac_status" >&5
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 ( exit $ac_status )
8684 LITTLEENDIAN=1
8685 fi
8686 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8687 fi
8688 export CROSSCOMPILE
8689
8690 if test "x${CROSSCOMPILE}" = "x1"; then
8691  echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
8692 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
8693  echo "$as_me:$LINENO: checking target system type" >&5
8694 echo $ECHO_N "checking target system type... $ECHO_C" >&6
8695 if test "${ac_cv_target+set}" = set; then
8696   echo $ECHO_N "(cached) $ECHO_C" >&6
8697 else
8698   ac_cv_target_alias=$target_alias
8699 test "x$ac_cv_target_alias" = "x" &&
8700   ac_cv_target_alias=$ac_cv_host_alias
8701 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
8702   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
8703 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
8704    { (exit 1); exit 1; }; }
8705
8706 fi
8707 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
8708 echo "${ECHO_T}$ac_cv_target" >&6
8709 target=$ac_cv_target
8710 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8711 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8712 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8713
8714
8715 # The aliases save the names the user supplied, while $host etc.
8716 # will get canonicalized.
8717 test -n "$target_alias" &&
8718   test "$program_prefix$program_suffix$program_transform_name" = \
8719     NONENONEs,x,x, &&
8720   program_prefix=${target_alias}-
8721  echo "$as_me:$LINENO: checking for byte order, try 2" >&5
8722 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
8723  case "${target}" in
8724   *86* | *-pc-* )
8725      LITTLEENDIAN=1
8726      ;;
8727   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
8728      BIGENDIAN=1
8729      ;;
8730  esac
8731 fi
8732
8733 export LITTLEENDIAN
8734 if test "x${LITTLEENDIAN}" = "x1"; then
8735 echo "$as_me:$LINENO: result: little endian" >&5
8736 echo "${ECHO_T}little endian" >&6
8737 BYTEORDERCHECKOK=1
8738 fi
8739 export BIGENDIAN
8740 if test "x${BIGENDIAN}" = "x1"; then
8741 echo "$as_me:$LINENO: result: big endian" >&5
8742 echo "${ECHO_T}big endian" >&6
8743 BYTEORDERCHECKOK=1
8744 WORDS_BIGENDIAN=1
8745 export WORDS_BIGENDIAN
8746 cat >>confdefs.h <<_ACEOF
8747 #define WORDS_BIGENDIAN 1
8748 _ACEOF
8749
8750 fi
8751 if test "x${BYTEORDERCHECKOK}" != "x1"; then
8752 echo "$as_me:$LINENO: result: unknown" >&5
8753 echo "${ECHO_T}unknown" >&6
8754 echo Byte order could not determined.
8755 exit 1
8756 fi
8757
8758
8759
8760 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
8761 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
8762 if test "$cross_compiling" = yes; then
8763   CROSSCOMPILE=1
8764 else
8765   cat >conftest.$ac_ext <<_ACEOF
8766 /* confdefs.h.  */
8767 _ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h.  */
8771
8772 #include "stdlib.h"
8773 int main (int argc, char*argv[])
8774 {
8775     return system("test `touch config.tmp2`");
8776 }
8777
8778 _ACEOF
8779 rm -f conftest$ac_exeext
8780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8781   (eval $ac_link) 2>&5
8782   ac_status=$?
8783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786   (eval $ac_try) 2>&5
8787   ac_status=$?
8788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789   (exit $ac_status); }; }; then
8790   OK=OK
8791 else
8792   echo "$as_me: program exited with status $ac_status" >&5
8793 echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8795
8796 fi
8797 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8798 fi
8799
8800 if test "x${OK}" = "xOK";then
8801     test -f config.tmp2 || OK=
8802 fi
8803
8804 if test "x${CROSSCOMPILE}" = "x1";then
8805     OK=OK;
8806 fi
8807 if test "x${OK}" = "xOK";then
8808 rm -f config.tmp2
8809 echo "$as_me:$LINENO: result: yes" >&5
8810 echo "${ECHO_T}yes" >&6
8811 SYSTEM_BACKTICKS=1
8812 export SYSTEM_BACKTICKS
8813 cat >>confdefs.h <<_ACEOF
8814 #define SYSTEM_BACKTICKS 1
8815 _ACEOF
8816
8817 else
8818 echo "$as_me:$LINENO: result: no" >&5
8819 echo "${ECHO_T}no" >&6
8820 fi
8821
8822
8823
8824 test "$program_prefix" != NONE &&
8825   program_transform_name="s,^,$program_prefix,;$program_transform_name"
8826 # Use a double $ so make ignores it.
8827 test "$program_suffix" != NONE &&
8828   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8829 # Double any \ or $.  echo might interpret backslashes.
8830 # By default was `s,x,x', remove it if useless.
8831 cat <<\_ACEOF >conftest.sed
8832 s/[\\$]/&&/g;s/;s,x,x,$//
8833 _ACEOF
8834 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8835 rm conftest.sed
8836
8837
8838            ac_config_headers="$ac_config_headers config.h"
8839
8840
8841
8842
8843
8844
8845 ac_header_dirent=no
8846 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8847   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8848 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8849 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853   cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h.  */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h.  */
8859 #include <sys/types.h>
8860 #include <$ac_hdr>
8861
8862 int
8863 main ()
8864 {
8865 if ((DIR *) 0)
8866 return 0;
8867   ;
8868   return 0;
8869 }
8870 _ACEOF
8871 rm -f conftest.$ac_objext
8872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8873   (eval $ac_compile) 2>conftest.er1
8874   ac_status=$?
8875   grep -v '^ *+' conftest.er1 >conftest.err
8876   rm -f conftest.er1
8877   cat conftest.err >&5
8878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); } &&
8880          { ac_try='test -z "$ac_c_werror_flag"
8881                          || test ! -s conftest.err'
8882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883   (eval $ac_try) 2>&5
8884   ac_status=$?
8885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886   (exit $ac_status); }; } &&
8887          { ac_try='test -s conftest.$ac_objext'
8888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889   (eval $ac_try) 2>&5
8890   ac_status=$?
8891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892   (exit $ac_status); }; }; then
8893   eval "$as_ac_Header=yes"
8894 else
8895   echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8897
8898 eval "$as_ac_Header=no"
8899 fi
8900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8901 fi
8902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8905   cat >>confdefs.h <<_ACEOF
8906 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8907 _ACEOF
8908
8909 ac_header_dirent=$ac_hdr; break
8910 fi
8911
8912 done
8913 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8914 if test $ac_header_dirent = dirent.h; then
8915   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8916 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8917 if test "${ac_cv_search_opendir+set}" = set; then
8918   echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920   ac_func_search_save_LIBS=$LIBS
8921 ac_cv_search_opendir=no
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h.  */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h.  */
8928
8929 /* Override any gcc2 internal prototype to avoid an error.  */
8930 #ifdef __cplusplus
8931 extern "C"
8932 #endif
8933 /* We use char because int might match the return type of a gcc2
8934    builtin and then its argument prototype would still apply.  */
8935 char opendir ();
8936 int
8937 main ()
8938 {
8939 opendir ();
8940   ;
8941   return 0;
8942 }
8943 _ACEOF
8944 rm -f conftest.$ac_objext conftest$ac_exeext
8945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8946   (eval $ac_link) 2>conftest.er1
8947   ac_status=$?
8948   grep -v '^ *+' conftest.er1 >conftest.err
8949   rm -f conftest.er1
8950   cat conftest.err >&5
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); } &&
8953          { ac_try='test -z "$ac_c_werror_flag"
8954                          || test ! -s conftest.err'
8955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956   (eval $ac_try) 2>&5
8957   ac_status=$?
8958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959   (exit $ac_status); }; } &&
8960          { ac_try='test -s conftest$ac_exeext'
8961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962   (eval $ac_try) 2>&5
8963   ac_status=$?
8964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); }; }; then
8966   ac_cv_search_opendir="none required"
8967 else
8968   echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8970
8971 fi
8972 rm -f conftest.err conftest.$ac_objext \
8973       conftest$ac_exeext conftest.$ac_ext
8974 if test "$ac_cv_search_opendir" = no; then
8975   for ac_lib in dir; do
8976     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8977     cat >conftest.$ac_ext <<_ACEOF
8978 /* confdefs.h.  */
8979 _ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h.  */
8983
8984 /* Override any gcc2 internal prototype to avoid an error.  */
8985 #ifdef __cplusplus
8986 extern "C"
8987 #endif
8988 /* We use char because int might match the return type of a gcc2
8989    builtin and then its argument prototype would still apply.  */
8990 char opendir ();
8991 int
8992 main ()
8993 {
8994 opendir ();
8995   ;
8996   return 0;
8997 }
8998 _ACEOF
8999 rm -f conftest.$ac_objext conftest$ac_exeext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9001   (eval $ac_link) 2>conftest.er1
9002   ac_status=$?
9003   grep -v '^ *+' conftest.er1 >conftest.err
9004   rm -f conftest.er1
9005   cat conftest.err >&5
9006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007   (exit $ac_status); } &&
9008          { ac_try='test -z "$ac_c_werror_flag"
9009                          || test ! -s conftest.err'
9010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011   (eval $ac_try) 2>&5
9012   ac_status=$?
9013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014   (exit $ac_status); }; } &&
9015          { ac_try='test -s conftest$ac_exeext'
9016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017   (eval $ac_try) 2>&5
9018   ac_status=$?
9019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020   (exit $ac_status); }; }; then
9021   ac_cv_search_opendir="-l$ac_lib"
9022 break
9023 else
9024   echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9026
9027 fi
9028 rm -f conftest.err conftest.$ac_objext \
9029       conftest$ac_exeext conftest.$ac_ext
9030   done
9031 fi
9032 LIBS=$ac_func_search_save_LIBS
9033 fi
9034 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9035 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9036 if test "$ac_cv_search_opendir" != no; then
9037   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9038
9039 fi
9040
9041 else
9042   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9043 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9044 if test "${ac_cv_search_opendir+set}" = set; then
9045   echo $ECHO_N "(cached) $ECHO_C" >&6
9046 else
9047   ac_func_search_save_LIBS=$LIBS
9048 ac_cv_search_opendir=no
9049 cat >conftest.$ac_ext <<_ACEOF
9050 /* confdefs.h.  */
9051 _ACEOF
9052 cat confdefs.h >>conftest.$ac_ext
9053 cat >>conftest.$ac_ext <<_ACEOF
9054 /* end confdefs.h.  */
9055
9056 /* Override any gcc2 internal prototype to avoid an error.  */
9057 #ifdef __cplusplus
9058 extern "C"
9059 #endif
9060 /* We use char because int might match the return type of a gcc2
9061    builtin and then its argument prototype would still apply.  */
9062 char opendir ();
9063 int
9064 main ()
9065 {
9066 opendir ();
9067   ;
9068   return 0;
9069 }
9070 _ACEOF
9071 rm -f conftest.$ac_objext conftest$ac_exeext
9072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9073   (eval $ac_link) 2>conftest.er1
9074   ac_status=$?
9075   grep -v '^ *+' conftest.er1 >conftest.err
9076   rm -f conftest.er1
9077   cat conftest.err >&5
9078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079   (exit $ac_status); } &&
9080          { ac_try='test -z "$ac_c_werror_flag"
9081                          || test ! -s conftest.err'
9082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083   (eval $ac_try) 2>&5
9084   ac_status=$?
9085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086   (exit $ac_status); }; } &&
9087          { ac_try='test -s conftest$ac_exeext'
9088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089   (eval $ac_try) 2>&5
9090   ac_status=$?
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); }; }; then
9093   ac_cv_search_opendir="none required"
9094 else
9095   echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9097
9098 fi
9099 rm -f conftest.err conftest.$ac_objext \
9100       conftest$ac_exeext conftest.$ac_ext
9101 if test "$ac_cv_search_opendir" = no; then
9102   for ac_lib in x; do
9103     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9104     cat >conftest.$ac_ext <<_ACEOF
9105 /* confdefs.h.  */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h.  */
9110
9111 /* Override any gcc2 internal prototype to avoid an error.  */
9112 #ifdef __cplusplus
9113 extern "C"
9114 #endif
9115 /* We use char because int might match the return type of a gcc2
9116    builtin and then its argument prototype would still apply.  */
9117 char opendir ();
9118 int
9119 main ()
9120 {
9121 opendir ();
9122   ;
9123   return 0;
9124 }
9125 _ACEOF
9126 rm -f conftest.$ac_objext conftest$ac_exeext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128   (eval $ac_link) 2>conftest.er1
9129   ac_status=$?
9130   grep -v '^ *+' conftest.er1 >conftest.err
9131   rm -f conftest.er1
9132   cat conftest.err >&5
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); } &&
9135          { ac_try='test -z "$ac_c_werror_flag"
9136                          || test ! -s conftest.err'
9137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138   (eval $ac_try) 2>&5
9139   ac_status=$?
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); }; } &&
9142          { ac_try='test -s conftest$ac_exeext'
9143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144   (eval $ac_try) 2>&5
9145   ac_status=$?
9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147   (exit $ac_status); }; }; then
9148   ac_cv_search_opendir="-l$ac_lib"
9149 break
9150 else
9151   echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9153
9154 fi
9155 rm -f conftest.err conftest.$ac_objext \
9156       conftest$ac_exeext conftest.$ac_ext
9157   done
9158 fi
9159 LIBS=$ac_func_search_save_LIBS
9160 fi
9161 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9162 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9163 if test "$ac_cv_search_opendir" != no; then
9164   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9165
9166 fi
9167
9168 fi
9169
9170  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9171 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9172 if test "${ac_cv_header_stdc+set}" = set; then
9173   echo $ECHO_N "(cached) $ECHO_C" >&6
9174 else
9175   cat >conftest.$ac_ext <<_ACEOF
9176 /* confdefs.h.  */
9177 _ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h.  */
9181 #include <stdlib.h>
9182 #include <stdarg.h>
9183 #include <string.h>
9184 #include <float.h>
9185
9186 int
9187 main ()
9188 {
9189
9190   ;
9191   return 0;
9192 }
9193 _ACEOF
9194 rm -f conftest.$ac_objext
9195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9196   (eval $ac_compile) 2>conftest.er1
9197   ac_status=$?
9198   grep -v '^ *+' conftest.er1 >conftest.err
9199   rm -f conftest.er1
9200   cat conftest.err >&5
9201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202   (exit $ac_status); } &&
9203          { ac_try='test -z "$ac_c_werror_flag"
9204                          || test ! -s conftest.err'
9205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206   (eval $ac_try) 2>&5
9207   ac_status=$?
9208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209   (exit $ac_status); }; } &&
9210          { ac_try='test -s conftest.$ac_objext'
9211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212   (eval $ac_try) 2>&5
9213   ac_status=$?
9214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215   (exit $ac_status); }; }; then
9216   ac_cv_header_stdc=yes
9217 else
9218   echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.$ac_ext >&5
9220
9221 ac_cv_header_stdc=no
9222 fi
9223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9224
9225 if test $ac_cv_header_stdc = yes; then
9226   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9227   cat >conftest.$ac_ext <<_ACEOF
9228 /* confdefs.h.  */
9229 _ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h.  */
9233 #include <string.h>
9234
9235 _ACEOF
9236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9237   $EGREP "memchr" >/dev/null 2>&1; then
9238   :
9239 else
9240   ac_cv_header_stdc=no
9241 fi
9242 rm -f conftest*
9243
9244 fi
9245
9246 if test $ac_cv_header_stdc = yes; then
9247   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9248   cat >conftest.$ac_ext <<_ACEOF
9249 /* confdefs.h.  */
9250 _ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h.  */
9254 #include <stdlib.h>
9255
9256 _ACEOF
9257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9258   $EGREP "free" >/dev/null 2>&1; then
9259   :
9260 else
9261   ac_cv_header_stdc=no
9262 fi
9263 rm -f conftest*
9264
9265 fi
9266
9267 if test $ac_cv_header_stdc = yes; then
9268   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9269   if test "$cross_compiling" = yes; then
9270   :
9271 else
9272   cat >conftest.$ac_ext <<_ACEOF
9273 /* confdefs.h.  */
9274 _ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h.  */
9278 #include <ctype.h>
9279 #if ((' ' & 0x0FF) == 0x020)
9280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9282 #else
9283 # define ISLOWER(c) \
9284                    (('a' <= (c) && (c) <= 'i') \
9285                      || ('j' <= (c) && (c) <= 'r') \
9286                      || ('s' <= (c) && (c) <= 'z'))
9287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9288 #endif
9289
9290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9291 int
9292 main ()
9293 {
9294   int i;
9295   for (i = 0; i < 256; i++)
9296     if (XOR (islower (i), ISLOWER (i))
9297         || toupper (i) != TOUPPER (i))
9298       exit(2);
9299   exit (0);
9300 }
9301 _ACEOF
9302 rm -f conftest$ac_exeext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9304   (eval $ac_link) 2>&5
9305   ac_status=$?
9306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309   (eval $ac_try) 2>&5
9310   ac_status=$?
9311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312   (exit $ac_status); }; }; then
9313   :
9314 else
9315   echo "$as_me: program exited with status $ac_status" >&5
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9318
9319 ( exit $ac_status )
9320 ac_cv_header_stdc=no
9321 fi
9322 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9323 fi
9324 fi
9325 fi
9326 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9327 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9328 if test $ac_cv_header_stdc = yes; then
9329
9330 cat >>confdefs.h <<\_ACEOF
9331 #define STDC_HEADERS 1
9332 _ACEOF
9333
9334 fi
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350 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
9351 do
9352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9354   echo "$as_me:$LINENO: checking for $ac_header" >&5
9355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9357   echo $ECHO_N "(cached) $ECHO_C" >&6
9358 fi
9359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9361 else
9362   # Is the header compilable?
9363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9365 cat >conftest.$ac_ext <<_ACEOF
9366 /* confdefs.h.  */
9367 _ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h.  */
9371 $ac_includes_default
9372 #include <$ac_header>
9373 _ACEOF
9374 rm -f conftest.$ac_objext
9375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9376   (eval $ac_compile) 2>conftest.er1
9377   ac_status=$?
9378   grep -v '^ *+' conftest.er1 >conftest.err
9379   rm -f conftest.er1
9380   cat conftest.err >&5
9381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382   (exit $ac_status); } &&
9383          { ac_try='test -z "$ac_c_werror_flag"
9384                          || test ! -s conftest.err'
9385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386   (eval $ac_try) 2>&5
9387   ac_status=$?
9388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389   (exit $ac_status); }; } &&
9390          { ac_try='test -s conftest.$ac_objext'
9391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392   (eval $ac_try) 2>&5
9393   ac_status=$?
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); }; }; then
9396   ac_header_compiler=yes
9397 else
9398   echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9400
9401 ac_header_compiler=no
9402 fi
9403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9405 echo "${ECHO_T}$ac_header_compiler" >&6
9406
9407 # Is the header present?
9408 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9410 cat >conftest.$ac_ext <<_ACEOF
9411 /* confdefs.h.  */
9412 _ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h.  */
9416 #include <$ac_header>
9417 _ACEOF
9418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9419   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9420   ac_status=$?
9421   grep -v '^ *+' conftest.er1 >conftest.err
9422   rm -f conftest.er1
9423   cat conftest.err >&5
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); } >/dev/null; then
9426   if test -s conftest.err; then
9427     ac_cpp_err=$ac_c_preproc_warn_flag
9428     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9429   else
9430     ac_cpp_err=
9431   fi
9432 else
9433   ac_cpp_err=yes
9434 fi
9435 if test -z "$ac_cpp_err"; then
9436   ac_header_preproc=yes
9437 else
9438   echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9440
9441   ac_header_preproc=no
9442 fi
9443 rm -f conftest.err conftest.$ac_ext
9444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9445 echo "${ECHO_T}$ac_header_preproc" >&6
9446
9447 # So?  What about this header?
9448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9449   yes:no: )
9450     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9454     ac_header_preproc=yes
9455     ;;
9456   no:yes:* )
9457     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9459     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9460 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9461     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9463     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9464 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9467     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9469     (
9470       cat <<\_ASBOX
9471 ## ------------------------------------------ ##
9472 ## Report this to the AC_PACKAGE_NAME lists.  ##
9473 ## ------------------------------------------ ##
9474 _ASBOX
9475     ) |
9476       sed "s/^/$as_me: WARNING:     /" >&2
9477     ;;
9478 esac
9479 echo "$as_me:$LINENO: checking for $ac_header" >&5
9480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9482   echo $ECHO_N "(cached) $ECHO_C" >&6
9483 else
9484   eval "$as_ac_Header=\$ac_header_preproc"
9485 fi
9486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9488
9489 fi
9490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9491   cat >>confdefs.h <<_ACEOF
9492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9493 _ACEOF
9494
9495 fi
9496
9497 done
9498
9499
9500 cat >>confdefs.h <<_ACEOF
9501 #define PACKAGE "$PACKAGE"
9502 _ACEOF
9503
9504 cat >>confdefs.h <<_ACEOF
9505 #define VERSION "$VERSION"
9506 _ACEOF
9507
9508
9509
9510
9511
9512
9513
9514  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9515 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9516 if test "${ac_cv_c_const+set}" = set; then
9517   echo $ECHO_N "(cached) $ECHO_C" >&6
9518 else
9519   cat >conftest.$ac_ext <<_ACEOF
9520 /* confdefs.h.  */
9521 _ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h.  */
9525
9526 int
9527 main ()
9528 {
9529 /* FIXME: Include the comments suggested by Paul. */
9530 #ifndef __cplusplus
9531   /* Ultrix mips cc rejects this.  */
9532   typedef int charset[2];
9533   const charset x;
9534   /* SunOS 4.1.1 cc rejects this.  */
9535   char const *const *ccp;
9536   char **p;
9537   /* NEC SVR4.0.2 mips cc rejects this.  */
9538   struct point {int x, y;};
9539   static struct point const zero = {0,0};
9540   /* AIX XL C 1.02.0.0 rejects this.
9541      It does not let you subtract one const X* pointer from another in
9542      an arm of an if-expression whose if-part is not a constant
9543      expression */
9544   const char *g = "string";
9545   ccp = &g + (g ? g-g : 0);
9546   /* HPUX 7.0 cc rejects these. */
9547   ++ccp;
9548   p = (char**) ccp;
9549   ccp = (char const *const *) p;
9550   { /* SCO 3.2v4 cc rejects this.  */
9551     char *t;
9552     char const *s = 0 ? (char *) 0 : (char const *) 0;
9553
9554     *t++ = 0;
9555   }
9556   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9557     int x[] = {25, 17};
9558     const int *foo = &x[0];
9559     ++foo;
9560   }
9561   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9562     typedef const int *iptr;
9563     iptr p = 0;
9564     ++p;
9565   }
9566   { /* AIX XL C 1.02.0.0 rejects this saying
9567        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9568     struct s { int j; const int *ap[3]; };
9569     struct s *b; b->j = 5;
9570   }
9571   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9572     const int foo = 10;
9573   }
9574 #endif
9575
9576   ;
9577   return 0;
9578 }
9579 _ACEOF
9580 rm -f conftest.$ac_objext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582   (eval $ac_compile) 2>conftest.er1
9583   ac_status=$?
9584   grep -v '^ *+' conftest.er1 >conftest.err
9585   rm -f conftest.er1
9586   cat conftest.err >&5
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); } &&
9589          { ac_try='test -z "$ac_c_werror_flag"
9590                          || test ! -s conftest.err'
9591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9592   (eval $ac_try) 2>&5
9593   ac_status=$?
9594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595   (exit $ac_status); }; } &&
9596          { ac_try='test -s conftest.$ac_objext'
9597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598   (eval $ac_try) 2>&5
9599   ac_status=$?
9600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601   (exit $ac_status); }; }; then
9602   ac_cv_c_const=yes
9603 else
9604   echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9606
9607 ac_cv_c_const=no
9608 fi
9609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9610 fi
9611 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9612 echo "${ECHO_T}$ac_cv_c_const" >&6
9613 if test $ac_cv_c_const = no; then
9614
9615 cat >>confdefs.h <<\_ACEOF
9616 #define const
9617 _ACEOF
9618
9619 fi
9620
9621  echo "$as_me:$LINENO: checking for inline" >&5
9622 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9623 if test "${ac_cv_c_inline+set}" = set; then
9624   echo $ECHO_N "(cached) $ECHO_C" >&6
9625 else
9626   ac_cv_c_inline=no
9627 for ac_kw in inline __inline__ __inline; do
9628   cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h.  */
9630 _ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h.  */
9634 #ifndef __cplusplus
9635 typedef int foo_t;
9636 static $ac_kw foo_t static_foo () {return 0; }
9637 $ac_kw foo_t foo () {return 0; }
9638 #endif
9639
9640 _ACEOF
9641 rm -f conftest.$ac_objext
9642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9643   (eval $ac_compile) 2>conftest.er1
9644   ac_status=$?
9645   grep -v '^ *+' conftest.er1 >conftest.err
9646   rm -f conftest.er1
9647   cat conftest.err >&5
9648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649   (exit $ac_status); } &&
9650          { ac_try='test -z "$ac_c_werror_flag"
9651                          || test ! -s conftest.err'
9652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653   (eval $ac_try) 2>&5
9654   ac_status=$?
9655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   (exit $ac_status); }; } &&
9657          { ac_try='test -s conftest.$ac_objext'
9658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659   (eval $ac_try) 2>&5
9660   ac_status=$?
9661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662   (exit $ac_status); }; }; then
9663   ac_cv_c_inline=$ac_kw; break
9664 else
9665   echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.$ac_ext >&5
9667
9668 fi
9669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9670 done
9671
9672 fi
9673 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9674 echo "${ECHO_T}$ac_cv_c_inline" >&6
9675
9676
9677 case $ac_cv_c_inline in
9678   inline | yes) ;;
9679   *)
9680     case $ac_cv_c_inline in
9681       no) ac_val=;;
9682       *) ac_val=$ac_cv_c_inline;;
9683     esac
9684     cat >>confdefs.h <<_ACEOF
9685 #ifndef __cplusplus
9686 #define inline $ac_val
9687 #endif
9688 _ACEOF
9689     ;;
9690 esac
9691
9692  echo "$as_me:$LINENO: checking for off_t" >&5
9693 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9694 if test "${ac_cv_type_off_t+set}" = set; then
9695   echo $ECHO_N "(cached) $ECHO_C" >&6
9696 else
9697   cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h.  */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h.  */
9703 $ac_includes_default
9704 int
9705 main ()
9706 {
9707 if ((off_t *) 0)
9708   return 0;
9709 if (sizeof (off_t))
9710   return 0;
9711   ;
9712   return 0;
9713 }
9714 _ACEOF
9715 rm -f conftest.$ac_objext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9717   (eval $ac_compile) 2>conftest.er1
9718   ac_status=$?
9719   grep -v '^ *+' conftest.er1 >conftest.err
9720   rm -f conftest.er1
9721   cat conftest.err >&5
9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   (exit $ac_status); } &&
9724          { ac_try='test -z "$ac_c_werror_flag"
9725                          || test ! -s conftest.err'
9726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727   (eval $ac_try) 2>&5
9728   ac_status=$?
9729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730   (exit $ac_status); }; } &&
9731          { ac_try='test -s conftest.$ac_objext'
9732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733   (eval $ac_try) 2>&5
9734   ac_status=$?
9735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736   (exit $ac_status); }; }; then
9737   ac_cv_type_off_t=yes
9738 else
9739   echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9741
9742 ac_cv_type_off_t=no
9743 fi
9744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9745 fi
9746 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9747 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9748 if test $ac_cv_type_off_t = yes; then
9749   :
9750 else
9751
9752 cat >>confdefs.h <<_ACEOF
9753 #define off_t long
9754 _ACEOF
9755
9756 fi
9757
9758  echo "$as_me:$LINENO: checking for size_t" >&5
9759 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9760 if test "${ac_cv_type_size_t+set}" = set; then
9761   echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763   cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h.  */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h.  */
9769 $ac_includes_default
9770 int
9771 main ()
9772 {
9773 if ((size_t *) 0)
9774   return 0;
9775 if (sizeof (size_t))
9776   return 0;
9777   ;
9778   return 0;
9779 }
9780 _ACEOF
9781 rm -f conftest.$ac_objext
9782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9783   (eval $ac_compile) 2>conftest.er1
9784   ac_status=$?
9785   grep -v '^ *+' conftest.er1 >conftest.err
9786   rm -f conftest.er1
9787   cat conftest.err >&5
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); } &&
9790          { ac_try='test -z "$ac_c_werror_flag"
9791                          || test ! -s conftest.err'
9792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793   (eval $ac_try) 2>&5
9794   ac_status=$?
9795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796   (exit $ac_status); }; } &&
9797          { ac_try='test -s conftest.$ac_objext'
9798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799   (eval $ac_try) 2>&5
9800   ac_status=$?
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); }; }; then
9803   ac_cv_type_size_t=yes
9804 else
9805   echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9807
9808 ac_cv_type_size_t=no
9809 fi
9810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9811 fi
9812 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9813 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9814 if test $ac_cv_type_size_t = yes; then
9815   :
9816 else
9817
9818 cat >>confdefs.h <<_ACEOF
9819 #define size_t unsigned
9820 _ACEOF
9821
9822 fi
9823
9824  echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9825 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9826 if test "${ac_cv_struct_tm+set}" = set; then
9827   echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829   cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h.  */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h.  */
9835 #include <sys/types.h>
9836 #include <time.h>
9837
9838 int
9839 main ()
9840 {
9841 struct tm *tp; tp->tm_sec;
9842   ;
9843   return 0;
9844 }
9845 _ACEOF
9846 rm -f conftest.$ac_objext
9847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9848   (eval $ac_compile) 2>conftest.er1
9849   ac_status=$?
9850   grep -v '^ *+' conftest.er1 >conftest.err
9851   rm -f conftest.er1
9852   cat conftest.err >&5
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); } &&
9855          { ac_try='test -z "$ac_c_werror_flag"
9856                          || test ! -s conftest.err'
9857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858   (eval $ac_try) 2>&5
9859   ac_status=$?
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); }; } &&
9862          { ac_try='test -s conftest.$ac_objext'
9863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864   (eval $ac_try) 2>&5
9865   ac_status=$?
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); }; }; then
9868   ac_cv_struct_tm=time.h
9869 else
9870   echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9872
9873 ac_cv_struct_tm=sys/time.h
9874 fi
9875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9876 fi
9877 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9878 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9879 if test $ac_cv_struct_tm = sys/time.h; then
9880
9881 cat >>confdefs.h <<\_ACEOF
9882 #define TM_IN_SYS_TIME 1
9883 _ACEOF
9884
9885 fi
9886
9887  echo "$as_me:$LINENO: checking for boolean" >&5
9888 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
9889 if test "${ac_cv_type_boolean+set}" = set; then
9890   echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892   cat >conftest.$ac_ext <<_ACEOF
9893 /* confdefs.h.  */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h.  */
9898 $ac_includes_default
9899 int
9900 main ()
9901 {
9902 if ((boolean *) 0)
9903   return 0;
9904 if (sizeof (boolean))
9905   return 0;
9906   ;
9907   return 0;
9908 }
9909 _ACEOF
9910 rm -f conftest.$ac_objext
9911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9912   (eval $ac_compile) 2>conftest.er1
9913   ac_status=$?
9914   grep -v '^ *+' conftest.er1 >conftest.err
9915   rm -f conftest.er1
9916   cat conftest.err >&5
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); } &&
9919          { ac_try='test -z "$ac_c_werror_flag"
9920                          || test ! -s conftest.err'
9921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922   (eval $ac_try) 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }; } &&
9926          { ac_try='test -s conftest.$ac_objext'
9927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928   (eval $ac_try) 2>&5
9929   ac_status=$?
9930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931   (exit $ac_status); }; }; then
9932   ac_cv_type_boolean=yes
9933 else
9934   echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9936
9937 ac_cv_type_boolean=no
9938 fi
9939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9940 fi
9941 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
9942 echo "${ECHO_T}$ac_cv_type_boolean" >&6
9943 if test $ac_cv_type_boolean = yes; then
9944   :
9945 else
9946
9947 cat >>confdefs.h <<_ACEOF
9948 #define boolean int
9949 _ACEOF
9950
9951 fi
9952  #needed for jpeglib
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
9965 do
9966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9967 echo "$as_me:$LINENO: checking for $ac_func" >&5
9968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9969 if eval "test \"\${$as_ac_var+set}\" = set"; then
9970   echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972   cat >conftest.$ac_ext <<_ACEOF
9973 /* confdefs.h.  */
9974 _ACEOF
9975 cat confdefs.h >>conftest.$ac_ext
9976 cat >>conftest.$ac_ext <<_ACEOF
9977 /* end confdefs.h.  */
9978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9980 #define $ac_func innocuous_$ac_func
9981
9982 /* System header to define __stub macros and hopefully few prototypes,
9983     which can conflict with char $ac_func (); below.
9984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9985     <limits.h> exists even on freestanding compilers.  */
9986
9987 #ifdef __STDC__
9988 # include <limits.h>
9989 #else
9990 # include <assert.h>
9991 #endif
9992
9993 #undef $ac_func
9994
9995 /* Override any gcc2 internal prototype to avoid an error.  */
9996 #ifdef __cplusplus
9997 extern "C"
9998 {
9999 #endif
10000 /* We use char because int might match the return type of a gcc2
10001    builtin and then its argument prototype would still apply.  */
10002 char $ac_func ();
10003 /* The GNU C library defines this for functions which it implements
10004     to always fail with ENOSYS.  Some functions are actually named
10005     something starting with __ and the normal name is an alias.  */
10006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10007 choke me
10008 #else
10009 char (*f) () = $ac_func;
10010 #endif
10011 #ifdef __cplusplus
10012 }
10013 #endif
10014
10015 int
10016 main ()
10017 {
10018 return f != $ac_func;
10019   ;
10020   return 0;
10021 }
10022 _ACEOF
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025   (eval $ac_link) 2>conftest.er1
10026   ac_status=$?
10027   grep -v '^ *+' conftest.er1 >conftest.err
10028   rm -f conftest.er1
10029   cat conftest.err >&5
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); } &&
10032          { ac_try='test -z "$ac_c_werror_flag"
10033                          || test ! -s conftest.err'
10034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035   (eval $ac_try) 2>&5
10036   ac_status=$?
10037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); }; } &&
10039          { ac_try='test -s conftest$ac_exeext'
10040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041   (eval $ac_try) 2>&5
10042   ac_status=$?
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); }; }; then
10045   eval "$as_ac_var=yes"
10046 else
10047   echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10049
10050 eval "$as_ac_var=no"
10051 fi
10052 rm -f conftest.err conftest.$ac_objext \
10053       conftest$ac_exeext conftest.$ac_ext
10054 fi
10055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10057 if test `eval echo '${'$as_ac_var'}'` = yes; then
10058   cat >>confdefs.h <<_ACEOF
10059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10060 _ACEOF
10061
10062 fi
10063 done
10064
10065
10066 # ------------------------------------------------------------------
10067
10068
10069 for ac_prog in freetype-config
10070 do
10071   # Extract the first word of "$ac_prog", so it can be a program name with args.
10072 set dummy $ac_prog; ac_word=$2
10073 echo "$as_me:$LINENO: checking for $ac_word" >&5
10074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10075 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
10076   echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078   if test -n "$FREETYPE_CONFIG"; then
10079   ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
10080 else
10081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10082 for as_dir in $PATH
10083 do
10084   IFS=$as_save_IFS
10085   test -z "$as_dir" && as_dir=.
10086   for ac_exec_ext in '' $ac_executable_extensions; do
10087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10088     ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
10089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10090     break 2
10091   fi
10092 done
10093 done
10094
10095 fi
10096 fi
10097 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
10098 if test -n "$FREETYPE_CONFIG"; then
10099   echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
10100 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
10101 else
10102   echo "$as_me:$LINENO: result: no" >&5
10103 echo "${ECHO_T}no" >&6
10104 fi
10105
10106   test -n "$FREETYPE_CONFIG" && break
10107 done
10108
10109 OLDCPPFLAGS="${CPPFLAGS}"
10110 OLDLIBS="${LIBS}"
10111 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10112     CPPFLAGS="$CPPFLAGS "`freetype-config --cflags`
10113 else if test -d /usr/include/freetype2; then
10114     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
10115 else if test -d /usr/local/include/freetype2; then
10116     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
10117 fi
10118 fi
10119 fi
10120
10121 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10122 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10123 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10124   echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126   ac_check_lib_save_LIBS=$LIBS
10127 LIBS="-lfreetype  $LIBS"
10128 cat >conftest.$ac_ext <<_ACEOF
10129 /* confdefs.h.  */
10130 _ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h.  */
10134
10135 /* Override any gcc2 internal prototype to avoid an error.  */
10136 #ifdef __cplusplus
10137 extern "C"
10138 #endif
10139 /* We use char because int might match the return type of a gcc2
10140    builtin and then its argument prototype would still apply.  */
10141 char FT_Init_FreeType ();
10142 int
10143 main ()
10144 {
10145 FT_Init_FreeType ();
10146   ;
10147   return 0;
10148 }
10149 _ACEOF
10150 rm -f conftest.$ac_objext conftest$ac_exeext
10151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10152   (eval $ac_link) 2>conftest.er1
10153   ac_status=$?
10154   grep -v '^ *+' conftest.er1 >conftest.err
10155   rm -f conftest.er1
10156   cat conftest.err >&5
10157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158   (exit $ac_status); } &&
10159          { ac_try='test -z "$ac_c_werror_flag"
10160                          || test ! -s conftest.err'
10161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162   (eval $ac_try) 2>&5
10163   ac_status=$?
10164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165   (exit $ac_status); }; } &&
10166          { ac_try='test -s conftest$ac_exeext'
10167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168   (eval $ac_try) 2>&5
10169   ac_status=$?
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); }; }; then
10172   ac_cv_lib_freetype_FT_Init_FreeType=yes
10173 else
10174   echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10176
10177 ac_cv_lib_freetype_FT_Init_FreeType=no
10178 fi
10179 rm -f conftest.err conftest.$ac_objext \
10180       conftest$ac_exeext conftest.$ac_ext
10181 LIBS=$ac_check_lib_save_LIBS
10182 fi
10183 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10184 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10185 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10186   HAVE_LIB_FREETYPE=1
10187 fi
10188
10189
10190 for ac_header in freetype/freetype.h
10191 do
10192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10194   echo "$as_me:$LINENO: checking for $ac_header" >&5
10195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10197   echo $ECHO_N "(cached) $ECHO_C" >&6
10198 fi
10199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10201 else
10202   # Is the header compilable?
10203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10205 cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h.  */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h.  */
10211 $ac_includes_default
10212 #include <$ac_header>
10213 _ACEOF
10214 rm -f conftest.$ac_objext
10215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10216   (eval $ac_compile) 2>conftest.er1
10217   ac_status=$?
10218   grep -v '^ *+' conftest.er1 >conftest.err
10219   rm -f conftest.er1
10220   cat conftest.err >&5
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); } &&
10223          { ac_try='test -z "$ac_c_werror_flag"
10224                          || test ! -s conftest.err'
10225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226   (eval $ac_try) 2>&5
10227   ac_status=$?
10228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229   (exit $ac_status); }; } &&
10230          { ac_try='test -s conftest.$ac_objext'
10231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10232   (eval $ac_try) 2>&5
10233   ac_status=$?
10234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235   (exit $ac_status); }; }; then
10236   ac_header_compiler=yes
10237 else
10238   echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10240
10241 ac_header_compiler=no
10242 fi
10243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10245 echo "${ECHO_T}$ac_header_compiler" >&6
10246
10247 # Is the header present?
10248 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10250 cat >conftest.$ac_ext <<_ACEOF
10251 /* confdefs.h.  */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h.  */
10256 #include <$ac_header>
10257 _ACEOF
10258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10259   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10260   ac_status=$?
10261   grep -v '^ *+' conftest.er1 >conftest.err
10262   rm -f conftest.er1
10263   cat conftest.err >&5
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); } >/dev/null; then
10266   if test -s conftest.err; then
10267     ac_cpp_err=$ac_c_preproc_warn_flag
10268     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10269   else
10270     ac_cpp_err=
10271   fi
10272 else
10273   ac_cpp_err=yes
10274 fi
10275 if test -z "$ac_cpp_err"; then
10276   ac_header_preproc=yes
10277 else
10278   echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10280
10281   ac_header_preproc=no
10282 fi
10283 rm -f conftest.err conftest.$ac_ext
10284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10285 echo "${ECHO_T}$ac_header_preproc" >&6
10286
10287 # So?  What about this header?
10288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10289   yes:no: )
10290     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10294     ac_header_preproc=yes
10295     ;;
10296   no:yes:* )
10297     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10299     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10300 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10301     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10303     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10304 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10307     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10309     (
10310       cat <<\_ASBOX
10311 ## ------------------------------------------ ##
10312 ## Report this to the AC_PACKAGE_NAME lists.  ##
10313 ## ------------------------------------------ ##
10314 _ASBOX
10315     ) |
10316       sed "s/^/$as_me: WARNING:     /" >&2
10317     ;;
10318 esac
10319 echo "$as_me:$LINENO: checking for $ac_header" >&5
10320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10322   echo $ECHO_N "(cached) $ECHO_C" >&6
10323 else
10324   eval "$as_ac_Header=\$ac_header_preproc"
10325 fi
10326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10328
10329 fi
10330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10331   cat >>confdefs.h <<_ACEOF
10332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10333 _ACEOF
10334  HAVE_FREETYPE_FREETYPE_H=1
10335 fi
10336
10337 done
10338
10339
10340 for ac_header in ft2build.h
10341 do
10342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10344   echo "$as_me:$LINENO: checking for $ac_header" >&5
10345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10347   echo $ECHO_N "(cached) $ECHO_C" >&6
10348 fi
10349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10351 else
10352   # Is the header compilable?
10353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10355 cat >conftest.$ac_ext <<_ACEOF
10356 /* confdefs.h.  */
10357 _ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h.  */
10361 $ac_includes_default
10362 #include <$ac_header>
10363 _ACEOF
10364 rm -f conftest.$ac_objext
10365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10366   (eval $ac_compile) 2>conftest.er1
10367   ac_status=$?
10368   grep -v '^ *+' conftest.er1 >conftest.err
10369   rm -f conftest.er1
10370   cat conftest.err >&5
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); } &&
10373          { ac_try='test -z "$ac_c_werror_flag"
10374                          || test ! -s conftest.err'
10375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376   (eval $ac_try) 2>&5
10377   ac_status=$?
10378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379   (exit $ac_status); }; } &&
10380          { ac_try='test -s conftest.$ac_objext'
10381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382   (eval $ac_try) 2>&5
10383   ac_status=$?
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); }; }; then
10386   ac_header_compiler=yes
10387 else
10388   echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10390
10391 ac_header_compiler=no
10392 fi
10393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10394 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10395 echo "${ECHO_T}$ac_header_compiler" >&6
10396
10397 # Is the header present?
10398 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10400 cat >conftest.$ac_ext <<_ACEOF
10401 /* confdefs.h.  */
10402 _ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h.  */
10406 #include <$ac_header>
10407 _ACEOF
10408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10409   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10410   ac_status=$?
10411   grep -v '^ *+' conftest.er1 >conftest.err
10412   rm -f conftest.er1
10413   cat conftest.err >&5
10414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415   (exit $ac_status); } >/dev/null; then
10416   if test -s conftest.err; then
10417     ac_cpp_err=$ac_c_preproc_warn_flag
10418     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10419   else
10420     ac_cpp_err=
10421   fi
10422 else
10423   ac_cpp_err=yes
10424 fi
10425 if test -z "$ac_cpp_err"; then
10426   ac_header_preproc=yes
10427 else
10428   echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10430
10431   ac_header_preproc=no
10432 fi
10433 rm -f conftest.err conftest.$ac_ext
10434 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10435 echo "${ECHO_T}$ac_header_preproc" >&6
10436
10437 # So?  What about this header?
10438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10439   yes:no: )
10440     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10444     ac_header_preproc=yes
10445     ;;
10446   no:yes:* )
10447     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10449     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10450 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10451     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10453     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10454 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10457     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10459     (
10460       cat <<\_ASBOX
10461 ## ------------------------------------------ ##
10462 ## Report this to the AC_PACKAGE_NAME lists.  ##
10463 ## ------------------------------------------ ##
10464 _ASBOX
10465     ) |
10466       sed "s/^/$as_me: WARNING:     /" >&2
10467     ;;
10468 esac
10469 echo "$as_me:$LINENO: checking for $ac_header" >&5
10470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10472   echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474   eval "$as_ac_Header=\$ac_header_preproc"
10475 fi
10476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10478
10479 fi
10480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10481   cat >>confdefs.h <<_ACEOF
10482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10483 _ACEOF
10484  HAVE_FT2BUILD_H=1
10485 fi
10486
10487 done
10488
10489
10490 if test "x${HAVE_LIB_FREETYPE}" '!=' "x";then
10491     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
10492         HAVE_FREETYPE=1
10493     fi
10494     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
10495         HAVE_FREETYPE=1
10496     fi
10497 fi
10498
10499 if test "x${HAVE_FREETYPE}" = "x1"; then
10500     if test "x{$FREETYPE_CONFIG}" '!=' "x"; then
10501         LIBS="$LIBS "`freetype-config --libs`
10502     else
10503         LIBS="$LIBS -lfreetype"
10504     fi
10505
10506 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
10507     HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
10508 fi
10509
10510     echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
10511 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
10512
10513     cat > conftest.c << EOF
10514 $HAVE_FT2BUILD_H_DEFINE
10515
10516 #ifdef HAVE_FT2BUILD_H
10517 #include <ft2build.h>
10518 #include FT_FREETYPE_H
10519 #include FT_GLYPH_H
10520 #include FT_SIZES_H
10521 #include FT_SFNT_NAMES_H
10522 #include FT_TRUETYPE_IDS_H
10523 #include FT_OUTLINE_H
10524 #else
10525 #include <freetype/freetype.h>
10526 #include <freetype/ftglyph.h>
10527 #include <freetype/ftsizes.h>
10528 #include <freetype/ftsnames.h>
10529 #include <freetype/ttnameid.h>
10530 #include <freetype/ftoutln.h>
10531 #endif
10532
10533 int main()
10534 {
10535     FT_Library ftlibrary;
10536     FT_Face face;
10537     FT_Error error;
10538     FT_ULong charcode;
10539     FT_UInt gindex;
10540     FT_Glyph glyph;
10541     FT_BBox bbox;
10542     FT_Matrix matrix;
10543     FT_UInt i;
10544     char* name = 0;
10545     char italic, bold;
10546
10547     FT_Init_FreeType(&ftlibrary);
10548     FT_New_Face(ftlibrary, "filename", 0, &face);
10549     i = face->num_glyphs - 1;
10550     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
10551     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
10552     FT_Get_Postscript_Name(face);
10553     FT_Get_Char_Index(face, 33);
10554     FT_Get_First_Char(face, &i);
10555     FT_Get_Next_Char(face, 33, &i);
10556     if(FT_HAS_GLYPH_NAMES(face)) {
10557         FT_Get_Glyph_Name(face, 33, name, 127);
10558     }
10559     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
10560     FT_Get_Glyph(face->glyph, &glyph);
10561     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
10562     FT_Done_Glyph(glyph);
10563     FT_Done_Face(face);
10564     FT_Done_FreeType(ftlibrary);
10565     return 0;
10566 }
10567 EOF
10568
10569     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10570     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10571         echo "$as_me:$LINENO: result: yes" >&5
10572 echo "${ECHO_T}yes" >&6
10573         cat >>confdefs.h <<_ACEOF
10574 #define HAVE_FREETYPE 1
10575 _ACEOF
10576
10577         cat >>confdefs.h <<_ACEOF
10578 #define USE_FREETYPE 1
10579 _ACEOF
10580   # for ttf2tp1
10581     else
10582         echo "configure: failed program was:" >&5
10583         cat conftest.c >&5
10584         HAVE_FREETYPE=0
10585         echo "$as_me:$LINENO: result: no" >&5
10586 echo "${ECHO_T}no" >&6
10587     fi
10588     rm -f conftest*
10589 fi
10590
10591 # if the above didn't work out, reset all changes to the compiler variables.
10592 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
10593     CPPFLAGS=$OLDCPPFLAGS
10594     LIBS=$OLDLIBS
10595 fi
10596
10597
10598
10599 OLDCPPFLAGS="${CPPFLAGS}"
10600 OLDLIBS="${LIBS}"
10601
10602 if test -d /usr/include/fontconfig; then
10603     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
10604 fi
10605
10606 echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
10607 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
10608 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
10609   echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611   ac_check_lib_save_LIBS=$LIBS
10612 LIBS="-lfontconfig  $LIBS"
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h.  */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h.  */
10619
10620 /* Override any gcc2 internal prototype to avoid an error.  */
10621 #ifdef __cplusplus
10622 extern "C"
10623 #endif
10624 /* We use char because int might match the return type of a gcc2
10625    builtin and then its argument prototype would still apply.  */
10626 char FcInit ();
10627 int
10628 main ()
10629 {
10630 FcInit ();
10631   ;
10632   return 0;
10633 }
10634 _ACEOF
10635 rm -f conftest.$ac_objext conftest$ac_exeext
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637   (eval $ac_link) 2>conftest.er1
10638   ac_status=$?
10639   grep -v '^ *+' conftest.er1 >conftest.err
10640   rm -f conftest.er1
10641   cat conftest.err >&5
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); } &&
10644          { ac_try='test -z "$ac_c_werror_flag"
10645                          || test ! -s conftest.err'
10646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647   (eval $ac_try) 2>&5
10648   ac_status=$?
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); }; } &&
10651          { ac_try='test -s conftest$ac_exeext'
10652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653   (eval $ac_try) 2>&5
10654   ac_status=$?
10655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656   (exit $ac_status); }; }; then
10657   ac_cv_lib_fontconfig_FcInit=yes
10658 else
10659   echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10661
10662 ac_cv_lib_fontconfig_FcInit=no
10663 fi
10664 rm -f conftest.err conftest.$ac_objext \
10665       conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_lib_save_LIBS
10667 fi
10668 echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
10669 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
10670 if test $ac_cv_lib_fontconfig_FcInit = yes; then
10671   HAVE_LIB_FONTCONFIG=1
10672 fi
10673
10674
10675 for ac_header in fontconfig.h
10676 do
10677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10679   echo "$as_me:$LINENO: checking for $ac_header" >&5
10680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10682   echo $ECHO_N "(cached) $ECHO_C" >&6
10683 fi
10684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10686 else
10687   # Is the header compilable?
10688 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10690 cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h.  */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h.  */
10696 $ac_includes_default
10697 #include <$ac_header>
10698 _ACEOF
10699 rm -f conftest.$ac_objext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10701   (eval $ac_compile) 2>conftest.er1
10702   ac_status=$?
10703   grep -v '^ *+' conftest.er1 >conftest.err
10704   rm -f conftest.er1
10705   cat conftest.err >&5
10706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707   (exit $ac_status); } &&
10708          { ac_try='test -z "$ac_c_werror_flag"
10709                          || test ! -s conftest.err'
10710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711   (eval $ac_try) 2>&5
10712   ac_status=$?
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); }; } &&
10715          { ac_try='test -s conftest.$ac_objext'
10716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717   (eval $ac_try) 2>&5
10718   ac_status=$?
10719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720   (exit $ac_status); }; }; then
10721   ac_header_compiler=yes
10722 else
10723   echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10725
10726 ac_header_compiler=no
10727 fi
10728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10730 echo "${ECHO_T}$ac_header_compiler" >&6
10731
10732 # Is the header present?
10733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10735 cat >conftest.$ac_ext <<_ACEOF
10736 /* confdefs.h.  */
10737 _ACEOF
10738 cat confdefs.h >>conftest.$ac_ext
10739 cat >>conftest.$ac_ext <<_ACEOF
10740 /* end confdefs.h.  */
10741 #include <$ac_header>
10742 _ACEOF
10743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10744   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10745   ac_status=$?
10746   grep -v '^ *+' conftest.er1 >conftest.err
10747   rm -f conftest.er1
10748   cat conftest.err >&5
10749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); } >/dev/null; then
10751   if test -s conftest.err; then
10752     ac_cpp_err=$ac_c_preproc_warn_flag
10753     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10754   else
10755     ac_cpp_err=
10756   fi
10757 else
10758   ac_cpp_err=yes
10759 fi
10760 if test -z "$ac_cpp_err"; then
10761   ac_header_preproc=yes
10762 else
10763   echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10765
10766   ac_header_preproc=no
10767 fi
10768 rm -f conftest.err conftest.$ac_ext
10769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10770 echo "${ECHO_T}$ac_header_preproc" >&6
10771
10772 # So?  What about this header?
10773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10774   yes:no: )
10775     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10779     ac_header_preproc=yes
10780     ;;
10781   no:yes:* )
10782     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10784     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10785 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10786     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10788     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10789 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10792     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10794     (
10795       cat <<\_ASBOX
10796 ## ------------------------------------------ ##
10797 ## Report this to the AC_PACKAGE_NAME lists.  ##
10798 ## ------------------------------------------ ##
10799 _ASBOX
10800     ) |
10801       sed "s/^/$as_me: WARNING:     /" >&2
10802     ;;
10803 esac
10804 echo "$as_me:$LINENO: checking for $ac_header" >&5
10805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10807   echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10809   eval "$as_ac_Header=\$ac_header_preproc"
10810 fi
10811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10813
10814 fi
10815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10816   cat >>confdefs.h <<_ACEOF
10817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10818 _ACEOF
10819  HAVE_FONTCONFIG_H=1
10820 fi
10821
10822 done
10823
10824
10825 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
10826 if test "x${HAVE_FONTCONFIG_H}" != "x";then
10827     HAVE_FONTCONFIG=1
10828 fi
10829 fi
10830
10831 if test "x${HAVE_FONTCONFIG}" = "x1"; then
10832     LIBS="$LIBS -lfontconfig"
10833 echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
10834 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6
10835
10836 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
10837     #move freetype library to the end of libraries, otherwise fontconfig
10838     #won't compile.
10839     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
10840 fi
10841
10842 cat > conftest.c << EOF
10843 #include <fontconfig.h>
10844
10845 int main()
10846 {
10847     FcPattern *pattern, *match;
10848     FcResult result;
10849     FcChar8 *v;
10850     FcInit();
10851     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
10852     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
10853     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
10854     FcConfigSubstitute(0, pattern, FcMatchPattern);
10855     FcDefaultSubstitute(pattern);
10856     match = FcFontMatch(0, pattern, &result);
10857     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
10858     FcPatternPrint(pattern);
10859     FcPatternDestroy(pattern);
10860     FcPatternDestroy(match);
10861     return 0;
10862 }
10863 EOF
10864
10865     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10866     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10867         echo "$as_me:$LINENO: result: yes" >&5
10868 echo "${ECHO_T}yes" >&6
10869         cat >>confdefs.h <<_ACEOF
10870 #define HAVE_FONTCONFIG 1
10871 _ACEOF
10872
10873     else
10874         echo "configure: failed program was:" >&5
10875         cat conftest.c >&5
10876         HAVE_FONTCONFIG=0
10877         echo "$as_me:$LINENO: result: no" >&5
10878 echo "${ECHO_T}no" >&6
10879     fi
10880     rm -f conftest*
10881 fi
10882
10883 # if the above didn't work out, reset all changes to the compiler variables.
10884 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
10885     CPPFLAGS=$OLDCPPFLAGS
10886     LIBS=$OLDLIBS
10887 fi
10888
10889
10890 # ------------------------------------------------------------------
10891
10892 lame_objects=
10893 lame_makefile=
10894 if test "x${DISABLE_LAME}" = "xtrue"; then
10895     echo "*" Disabling lame support...
10896 else
10897     # old lame code at lib/lame
10898     if test -f lib/lame/Makefile.in; then
10899         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"
10900         lame_makefile="lib/lame/Makefile"
10901         CPPFLAGS="$CPPFLAGS -Ilame"
10902         cat >>confdefs.h <<_ACEOF
10903 #define HAVE_LAME 1
10904 _ACEOF
10905
10906     else
10907         if test -d /usr/include/lame; then
10908             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
10909         else
10910             if test -d /usr/local/include/lame; then
10911                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
10912             fi
10913         fi
10914
10915 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
10916 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
10917 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
10918   echo $ECHO_N "(cached) $ECHO_C" >&6
10919 else
10920   ac_check_lib_save_LIBS=$LIBS
10921 LIBS="-lmp3lame  $LIBS"
10922 cat >conftest.$ac_ext <<_ACEOF
10923 /* confdefs.h.  */
10924 _ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h.  */
10928
10929 /* Override any gcc2 internal prototype to avoid an error.  */
10930 #ifdef __cplusplus
10931 extern "C"
10932 #endif
10933 /* We use char because int might match the return type of a gcc2
10934    builtin and then its argument prototype would still apply.  */
10935 char lame_init ();
10936 int
10937 main ()
10938 {
10939 lame_init ();
10940   ;
10941   return 0;
10942 }
10943 _ACEOF
10944 rm -f conftest.$ac_objext conftest$ac_exeext
10945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10946   (eval $ac_link) 2>conftest.er1
10947   ac_status=$?
10948   grep -v '^ *+' conftest.er1 >conftest.err
10949   rm -f conftest.er1
10950   cat conftest.err >&5
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); } &&
10953          { ac_try='test -z "$ac_c_werror_flag"
10954                          || test ! -s conftest.err'
10955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956   (eval $ac_try) 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; } &&
10960          { ac_try='test -s conftest$ac_exeext'
10961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962   (eval $ac_try) 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); }; }; then
10966   ac_cv_lib_mp3lame_lame_init=yes
10967 else
10968   echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10970
10971 ac_cv_lib_mp3lame_lame_init=no
10972 fi
10973 rm -f conftest.err conftest.$ac_objext \
10974       conftest$ac_exeext conftest.$ac_ext
10975 LIBS=$ac_check_lib_save_LIBS
10976 fi
10977 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
10978 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
10979 if test $ac_cv_lib_mp3lame_lame_init = yes; then
10980   cat >>confdefs.h <<_ACEOF
10981 #define HAVE_LIBMP3LAME 1
10982 _ACEOF
10983
10984   LIBS="-lmp3lame $LIBS"
10985
10986 else
10987   NO_LIBMP3LAME=1
10988 fi
10989
10990
10991 for ac_header in lame.h
10992 do
10993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10995   echo "$as_me:$LINENO: checking for $ac_header" >&5
10996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10998   echo $ECHO_N "(cached) $ECHO_C" >&6
10999 fi
11000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11002 else
11003   # Is the header compilable?
11004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11006 cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h.  */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h.  */
11012 $ac_includes_default
11013 #include <$ac_header>
11014 _ACEOF
11015 rm -f conftest.$ac_objext
11016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11017   (eval $ac_compile) 2>conftest.er1
11018   ac_status=$?
11019   grep -v '^ *+' conftest.er1 >conftest.err
11020   rm -f conftest.er1
11021   cat conftest.err >&5
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); } &&
11024          { ac_try='test -z "$ac_c_werror_flag"
11025                          || test ! -s conftest.err'
11026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027   (eval $ac_try) 2>&5
11028   ac_status=$?
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); }; } &&
11031          { ac_try='test -s conftest.$ac_objext'
11032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033   (eval $ac_try) 2>&5
11034   ac_status=$?
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); }; }; then
11037   ac_header_compiler=yes
11038 else
11039   echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11041
11042 ac_header_compiler=no
11043 fi
11044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11046 echo "${ECHO_T}$ac_header_compiler" >&6
11047
11048 # Is the header present?
11049 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h.  */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h.  */
11057 #include <$ac_header>
11058 _ACEOF
11059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11061   ac_status=$?
11062   grep -v '^ *+' conftest.er1 >conftest.err
11063   rm -f conftest.er1
11064   cat conftest.err >&5
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); } >/dev/null; then
11067   if test -s conftest.err; then
11068     ac_cpp_err=$ac_c_preproc_warn_flag
11069     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11070   else
11071     ac_cpp_err=
11072   fi
11073 else
11074   ac_cpp_err=yes
11075 fi
11076 if test -z "$ac_cpp_err"; then
11077   ac_header_preproc=yes
11078 else
11079   echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11081
11082   ac_header_preproc=no
11083 fi
11084 rm -f conftest.err conftest.$ac_ext
11085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11086 echo "${ECHO_T}$ac_header_preproc" >&6
11087
11088 # So?  What about this header?
11089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11090   yes:no: )
11091     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11095     ac_header_preproc=yes
11096     ;;
11097   no:yes:* )
11098     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11100     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11101 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11102     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11104     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11105 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11108     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11110     (
11111       cat <<\_ASBOX
11112 ## ------------------------------------------ ##
11113 ## Report this to the AC_PACKAGE_NAME lists.  ##
11114 ## ------------------------------------------ ##
11115 _ASBOX
11116     ) |
11117       sed "s/^/$as_me: WARNING:     /" >&2
11118     ;;
11119 esac
11120 echo "$as_me:$LINENO: checking for $ac_header" >&5
11121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11123   echo $ECHO_N "(cached) $ECHO_C" >&6
11124 else
11125   eval "$as_ac_Header=\$ac_header_preproc"
11126 fi
11127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11129
11130 fi
11131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11132   cat >>confdefs.h <<_ACEOF
11133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11134 _ACEOF
11135
11136 fi
11137
11138 done
11139
11140         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
11141             cat >>confdefs.h <<_ACEOF
11142 #define HAVE_LAME 1
11143 _ACEOF
11144
11145         fi
11146     fi
11147 fi
11148
11149
11150 # ------------------------------------------------------------------
11151
11152
11153
11154 for ac_prog in avifile-config
11155 do
11156   # Extract the first word of "$ac_prog", so it can be a program name with args.
11157 set dummy $ac_prog; ac_word=$2
11158 echo "$as_me:$LINENO: checking for $ac_word" >&5
11159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11160 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
11161   echo $ECHO_N "(cached) $ECHO_C" >&6
11162 else
11163   if test -n "$AVIFILE_CONFIG"; then
11164   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
11165 else
11166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11167 for as_dir in $PATH
11168 do
11169   IFS=$as_save_IFS
11170   test -z "$as_dir" && as_dir=.
11171   for ac_exec_ext in '' $ac_executable_extensions; do
11172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11173     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
11174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11175     break 2
11176   fi
11177 done
11178 done
11179
11180 fi
11181 fi
11182 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
11183 if test -n "$AVIFILE_CONFIG"; then
11184   echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
11185 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
11186 else
11187   echo "$as_me:$LINENO: result: no" >&5
11188 echo "${ECHO_T}no" >&6
11189 fi
11190
11191   test -n "$AVIFILE_CONFIG" && break
11192 done
11193
11194
11195 if test "x$AVIFILE_CONFIG" '!=' "x";then
11196     OLDCPPFLAGS="$CPPFLAGS"
11197     # temporarily add avifile paths to CPPFLAGS...
11198     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
11199
11200
11201 for ac_header in avifile/version.h version.h
11202 do
11203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11205   echo "$as_me:$LINENO: checking for $ac_header" >&5
11206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11208   echo $ECHO_N "(cached) $ECHO_C" >&6
11209 fi
11210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11212 else
11213   # Is the header compilable?
11214 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11216 cat >conftest.$ac_ext <<_ACEOF
11217 /* confdefs.h.  */
11218 _ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h.  */
11222 $ac_includes_default
11223 #include <$ac_header>
11224 _ACEOF
11225 rm -f conftest.$ac_objext
11226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11227   (eval $ac_compile) 2>conftest.er1
11228   ac_status=$?
11229   grep -v '^ *+' conftest.er1 >conftest.err
11230   rm -f conftest.er1
11231   cat conftest.err >&5
11232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233   (exit $ac_status); } &&
11234          { ac_try='test -z "$ac_c_werror_flag"
11235                          || test ! -s conftest.err'
11236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237   (eval $ac_try) 2>&5
11238   ac_status=$?
11239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240   (exit $ac_status); }; } &&
11241          { ac_try='test -s conftest.$ac_objext'
11242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243   (eval $ac_try) 2>&5
11244   ac_status=$?
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); }; }; then
11247   ac_header_compiler=yes
11248 else
11249   echo "$as_me: failed program was:" >&5
11250 sed 's/^/| /' conftest.$ac_ext >&5
11251
11252 ac_header_compiler=no
11253 fi
11254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11256 echo "${ECHO_T}$ac_header_compiler" >&6
11257
11258 # Is the header present?
11259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11261 cat >conftest.$ac_ext <<_ACEOF
11262 /* confdefs.h.  */
11263 _ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h.  */
11267 #include <$ac_header>
11268 _ACEOF
11269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11270   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11271   ac_status=$?
11272   grep -v '^ *+' conftest.er1 >conftest.err
11273   rm -f conftest.er1
11274   cat conftest.err >&5
11275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276   (exit $ac_status); } >/dev/null; then
11277   if test -s conftest.err; then
11278     ac_cpp_err=$ac_c_preproc_warn_flag
11279     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11280   else
11281     ac_cpp_err=
11282   fi
11283 else
11284   ac_cpp_err=yes
11285 fi
11286 if test -z "$ac_cpp_err"; then
11287   ac_header_preproc=yes
11288 else
11289   echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11291
11292   ac_header_preproc=no
11293 fi
11294 rm -f conftest.err conftest.$ac_ext
11295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11296 echo "${ECHO_T}$ac_header_preproc" >&6
11297
11298 # So?  What about this header?
11299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11300   yes:no: )
11301     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11305     ac_header_preproc=yes
11306     ;;
11307   no:yes:* )
11308     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11310     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11311 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11312     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11314     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11315 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11318     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11320     (
11321       cat <<\_ASBOX
11322 ## ------------------------------------------ ##
11323 ## Report this to the AC_PACKAGE_NAME lists.  ##
11324 ## ------------------------------------------ ##
11325 _ASBOX
11326     ) |
11327       sed "s/^/$as_me: WARNING:     /" >&2
11328     ;;
11329 esac
11330 echo "$as_me:$LINENO: checking for $ac_header" >&5
11331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11333   echo $ECHO_N "(cached) $ECHO_C" >&6
11334 else
11335   eval "$as_ac_Header=\$ac_header_preproc"
11336 fi
11337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11339
11340 fi
11341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11342   cat >>confdefs.h <<_ACEOF
11343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11344 _ACEOF
11345
11346 fi
11347
11348 done
11349
11350     # ... and reset
11351     CPPFLAGS="$OLDCPPFLAGS"
11352 fi
11353
11354 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
11355 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
11356
11357 if test "x${ac_cv_header_version_h}" '=' "xyes";then
11358     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
11359 fi
11360 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
11361     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
11362 fi
11363
11364 cat > conftest.cpp << EOF
11365
11366 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
11367 // so we have to introduce them this way
11368 $HAVE_VERSION_H_DEFINE
11369 $HAVE_AVIFILE_VERSION_H_DEFINE
11370
11371 #ifdef HAVE_VERSION_H
11372   #include <version.h>
11373 #endif
11374 #ifdef HAVE_AVIFILE_VERSION_H
11375   #include <avifile/version.h>
11376 #endif
11377
11378 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
11379    #include <avifile.h>
11380    #include <aviplay.h>
11381    #include <fourcc.h>
11382    #include <creators.h>
11383    #include <StreamInfo.h>
11384    #define VERSION6
11385 #else
11386    #include <avifile.h>
11387    #include <aviplay.h>
11388    #include <aviutil.h>
11389    #define Width width
11390    #define Height height
11391    #define Data data
11392    #define Bpp bpp
11393 #endif
11394
11395 void test()
11396 {
11397   IAviReadFile* player;
11398   IAviReadStream* astream;
11399   IAviReadStream* vstream;
11400   player = CreateIAviReadFile(0);
11401   astream = player->GetStream(0, AviStream::Audio);
11402   vstream = player->GetStream(0, AviStream::Video);
11403   vstream -> StartStreaming();
11404   astream -> StartStreaming();
11405 #ifndef VERSION6
11406   MainAVIHeader head;
11407   player->GetFileHeader(&head);
11408   head.dwMicroSecPerFrame;
11409   head.dwTotalFrames;
11410   head.dwStreams;
11411   head.dwWidth;
11412   head.dwHeight;
11413   head.dwMicroSecPerFrame;
11414   astream->GetEndPos(),
11415   astream->GetEndTime());
11416   player->StreamCount();
11417 #else
11418   StreamInfo*audioinfo;
11419   StreamInfo*videoinfo;
11420   audioinfo = astream->GetStreamInfo();
11421   videoinfo = vstream->GetStreamInfo();
11422   videoinfo->GetVideoWidth();
11423   videoinfo->GetVideoHeight();
11424   audioinfo->GetAudioSamplesPerSec();
11425   videoinfo->GetFps();
11426 #endif
11427   CImage*img = vstream->GetFrame();
11428   img->ToRGB();
11429   img->Data();
11430   img->Bpp();
11431   img->Width();
11432   img->Height();
11433   WAVEFORMATEX wave;
11434   astream->GetAudioFormatInfo(&wave,0);
11435   uint_t a,b;
11436   astream->ReadFrames(0,0,0,a,b);
11437 }
11438 int main (int argc, char*argv)
11439 {
11440     return 0;
11441 }
11442 EOF
11443
11444 if test "x$AVIFILE_CONFIG" '!=' "x";then
11445     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
11446     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
11447     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
11448     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
11449       echo "$as_me:$LINENO: result: yes" >&5
11450 echo "${ECHO_T}yes" >&6
11451       AVIFILE=true
11452       export AVIFILE
11453       cat >>confdefs.h <<_ACEOF
11454 #define AVIFILE true
11455 _ACEOF
11456
11457     else
11458       echo "configure: failed program was:" >&5
11459       cat conftest.cpp >&5
11460       echo "$as_me:$LINENO: result: no" >&5
11461 echo "${ECHO_T}no" >&6
11462     fi
11463 else
11464     echo "$as_me:$LINENO: result: no" >&5
11465 echo "${ECHO_T}no" >&6
11466 fi
11467 rm -f conftest*
11468
11469 if test "x${AVIFILE}" = "xtrue"; then
11470     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
11471     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
11472     cat >>confdefs.h <<_ACEOF
11473 #define HAVE_AVIFILE 1
11474 _ACEOF
11475
11476 fi
11477
11478 if test "x${WIN32}" != "x"; then
11479     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
11480     #if test "x${AVIFIL32}" != "x"; then
11481     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11482     #fi
11483     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11484     AVIFIL32=true
11485 fi
11486
11487
11488
11489 # ------------------------------------------------------------------
11490
11491 if test "x${UNCOMPRESS}" = "xgzip"; then
11492     cat >>confdefs.h <<_ACEOF
11493 #define USE_GZIP 1
11494 _ACEOF
11495
11496 fi
11497
11498
11499 # ------------------------------------------------------------------
11500
11501
11502 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
11503 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
11504
11505 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
11506     PY_VERSION=unknown
11507 else
11508     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
11509         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
11510     fi
11511     # iterate through version 2.2 to 2.4
11512     for v in 2 3 4; do
11513         # Linux
11514         if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
11515             PY_VERSION=2.$v
11516             PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
11517             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
11518         fi
11519         # Mac OS X
11520         if test -f "/Library/Python/2.$v/PIL/_imaging.so" \
11521                 -a "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
11522             PY_VERSION=2.$v
11523             #PYTHON_LIB="-lpython$PY_VERSION /Library/Python/2.$v/PIL/_imaging.so"
11524             PYTHON_LIB="-framework Python /Library/Python/2.$v/PIL/_imaging.so"
11525             PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
11526         fi
11527     done
11528 fi
11529
11530 if test "x$PY_VERSION" "!=" "x"; then
11531     echo "$as_me:$LINENO: result: $PY_VERSION" >&5
11532 echo "${ECHO_T}$PY_VERSION" >&6
11533     export PYTHON_INCLUDES PYTHON_LIB
11534
11535
11536     echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
11537 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
11538
11539     cat > conftest.c << EOF
11540 #include <Python.h>
11541 #include <Imaging.h>
11542
11543 int main()
11544 {
11545     int ret;
11546     ret = Py_Main(0, 0);
11547     int x; // check also for gcc 2.95.x incompatibilities
11548     return ret;
11549 }
11550 EOF
11551     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
11552     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11553         echo "$as_me:$LINENO: result: yes" >&5
11554 echo "${ECHO_T}yes" >&6
11555         PYTHON_OK=yes
11556     else
11557         echo "configure: failed program was:" >&5
11558         cat conftest.c >&5
11559         echo "$as_me:$LINENO: result: no" >&5
11560 echo "${ECHO_T}no" >&6
11561     fi
11562     rm -f conftest*
11563 else
11564     echo "$as_me:$LINENO: result: nope" >&5
11565 echo "${ECHO_T}nope" >&6
11566 fi
11567
11568
11569 if test "x$PYTHON_OK" '!=' "xyes";then
11570     echo all install uninstall clean: > lib/python/Makefile
11571     # fail silently- the most users won't have any need for the
11572     # python interface anyway
11573 else
11574     pythonrfxswf="lib/python/Makefile"
11575 fi
11576
11577 # ------------------------------------------------------------------
11578
11579 echo "$as_me:$LINENO: checking for missing libraries" >&5
11580 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
11581
11582 if test "x$ZLIBMISSING" = "xtrue";then
11583     MISSINGLIBS="${MISSINGLIBS} zlib"
11584     DISABLEPNG2SWF=true
11585     PARTIAL=true
11586 fi
11587 if test "x$JPEGLIBMISSING" = "xtrue";then
11588     MISSINGLIBS="${MISSINGLIBS} jpeglib"
11589     DISABLEPDF2SWF=true
11590     DISABLEJPEG2SWF=true
11591     PARTIAL=true
11592 fi
11593 if test "x$T1LIBMISSING" = "xtrue";then
11594     MISSINGLIBS="${MISSINGLIBS} t1lib"
11595 fi
11596
11597 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
11598     DISABLEPDF2SWF=true;
11599     DISABLEJPEG2SWF=true;
11600     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
11601     PARTIAL=true
11602 fi
11603 if test "x$HAVE_FREETYPE" '!=' "x1"; then
11604     DISABLEPDF2SWF=true;
11605     MISSINGLIBS="${MISSINGLIBS} freetype"
11606     PARTIAL=true
11607 fi
11608 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
11609     MISSINGLIBS="${MISSINGLIBS} t1lib.h"
11610 fi
11611 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
11612     DISABLEPNG2SWF=true;
11613     MISSINGLIBS="${MISSINGLIBS} zlib.h"
11614     PARTIAL=true
11615 fi
11616 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11617     MISSINGLIBS="${MISSINGLIBS} avifile"
11618     PARTIAL=true
11619 fi
11620
11621 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11622 echo "${ECHO_T}${MISSINGLIBS}" >&6
11623
11624 # ------------------------------------------------------------------
11625
11626 if test "x${MISSINGLIBS}" '!=' "x"; then
11627   echo "***************************************************"
11628   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11629 fi
11630
11631 avi2swf="avi2swf/Makefile"
11632 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11633  echo "* Disabling avi2swf tool..."
11634  echo all install uninstall clean: > avi2swf/Makefile
11635  avi2swf=
11636 fi
11637
11638 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
11639 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11640   echo "* Disabling pdf2swf tool..."
11641   rm -f pdf2swf/Makefile
11642   echo all install uninstall clean: > pdf2swf/Makefile
11643   pdf2swf_makefile=""
11644 fi
11645
11646 if test "x${ZLIBMISSING}" = "xtrue"; then
11647   echo
11648   echo "* Warning! Without zlib, you will not be able to read"
11649   echo "* or write compressed Flash MX files!"
11650 fi
11651
11652 JPEG2SWF='jpeg2swf$(E)'
11653 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11654   echo "* Disabling jpeg2swf tool..."
11655   JPEG2SWF=
11656 fi
11657 export JPEG2SWF
11658
11659
11660 PNG2SWF='png2swf$(E)'
11661 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11662   echo "* Disabling png2swf tool..."
11663   PNG2SWF=
11664 fi
11665 export PNG2SWF
11666
11667
11668 if test "x${MISSINGLIBS}" '!=' "x"; then
11669   if test "x${PARTIAL}" '=' "x"; then
11670     echo "* (never mind)"
11671   fi
11672   echo "***************************************************"
11673 fi
11674
11675 # ------------------------------------------------------------------
11676
11677 if test -f "release.in"; then release_in="./release"; fi
11678 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
11679
11680           ac_config_files="$ac_config_files ${FILES}"
11681
11682 cat >confcache <<\_ACEOF
11683 # This file is a shell script that caches the results of configure
11684 # tests run on this system so they can be shared between configure
11685 # scripts and configure runs, see configure's option --config-cache.
11686 # It is not useful on other systems.  If it contains results you don't
11687 # want to keep, you may remove or edit it.
11688 #
11689 # config.status only pays attention to the cache file if you give it
11690 # the --recheck option to rerun configure.
11691 #
11692 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11693 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11694 # following values.
11695
11696 _ACEOF
11697
11698 # The following way of writing the cache mishandles newlines in values,
11699 # but we know of no workaround that is simple, portable, and efficient.
11700 # So, don't put newlines in cache variables' values.
11701 # Ultrix sh set writes to stderr and can't be redirected directly,
11702 # and sets the high bit in the cache file unless we assign to the vars.
11703 {
11704   (set) 2>&1 |
11705     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11706     *ac_space=\ *)
11707       # `set' does not quote correctly, so add quotes (double-quote
11708       # substitution turns \\\\ into \\, and sed turns \\ into \).
11709       sed -n \
11710         "s/'/'\\\\''/g;
11711           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11712       ;;
11713     *)
11714       # `set' quotes correctly as required by POSIX, so do not add quotes.
11715       sed -n \
11716         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11717       ;;
11718     esac;
11719 } |
11720   sed '
11721      t clear
11722      : clear
11723      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11724      t end
11725      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11726      : end' >>confcache
11727 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11728   if test -w $cache_file; then
11729     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11730     cat confcache >$cache_file
11731   else
11732     echo "not updating unwritable cache $cache_file"
11733   fi
11734 fi
11735 rm -f confcache
11736
11737 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11738 # Let make expand exec_prefix.
11739 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11740
11741 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11742 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11743 # trailing colons and then remove the whole line if VPATH becomes empty
11744 # (actually we leave an empty line to preserve line numbers).
11745 if test "x$srcdir" = x.; then
11746   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11747 s/:*\$(srcdir):*/:/;
11748 s/:*\${srcdir}:*/:/;
11749 s/:*@srcdir@:*/:/;
11750 s/^\([^=]*=[     ]*\):*/\1/;
11751 s/:*$//;
11752 s/^[^=]*=[       ]*$//;
11753 }'
11754 fi
11755
11756 DEFS=-DHAVE_CONFIG_H
11757
11758 ac_libobjs=
11759 ac_ltlibobjs=
11760 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11761   # 1. Remove the extension, and $U if already installed.
11762   ac_i=`echo "$ac_i" |
11763          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11764   # 2. Add them.
11765   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11766   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11767 done
11768 LIBOBJS=$ac_libobjs
11769
11770 LTLIBOBJS=$ac_ltlibobjs
11771
11772
11773
11774 : ${CONFIG_STATUS=./config.status}
11775 ac_clean_files_save=$ac_clean_files
11776 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11777 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11778 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11779 cat >$CONFIG_STATUS <<_ACEOF
11780 #! $SHELL
11781 # Generated by $as_me.
11782 # Run this file to recreate the current configuration.
11783 # Compiler output produced by configure, useful for debugging
11784 # configure, is in config.log if it exists.
11785
11786 debug=false
11787 ac_cs_recheck=false
11788 ac_cs_silent=false
11789 SHELL=\${CONFIG_SHELL-$SHELL}
11790 _ACEOF
11791
11792 cat >>$CONFIG_STATUS <<\_ACEOF
11793 ## --------------------- ##
11794 ## M4sh Initialization.  ##
11795 ## --------------------- ##
11796
11797 # Be Bourne compatible
11798 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11799   emulate sh
11800   NULLCMD=:
11801   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11802   # is contrary to our usage.  Disable this feature.
11803   alias -g '${1+"$@"}'='"$@"'
11804 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11805   set -o posix
11806 fi
11807 DUALCASE=1; export DUALCASE # for MKS sh
11808
11809 # Support unset when possible.
11810 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11811   as_unset=unset
11812 else
11813   as_unset=false
11814 fi
11815
11816
11817 # Work around bugs in pre-3.0 UWIN ksh.
11818 $as_unset ENV MAIL MAILPATH
11819 PS1='$ '
11820 PS2='> '
11821 PS4='+ '
11822
11823 # NLS nuisances.
11824 for as_var in \
11825   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11826   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11827   LC_TELEPHONE LC_TIME
11828 do
11829   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11830     eval $as_var=C; export $as_var
11831   else
11832     $as_unset $as_var
11833   fi
11834 done
11835
11836 # Required to use basename.
11837 if expr a : '\(a\)' >/dev/null 2>&1; then
11838   as_expr=expr
11839 else
11840   as_expr=false
11841 fi
11842
11843 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11844   as_basename=basename
11845 else
11846   as_basename=false
11847 fi
11848
11849
11850 # Name of the executable.
11851 as_me=`$as_basename "$0" ||
11852 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11853          X"$0" : 'X\(//\)$' \| \
11854          X"$0" : 'X\(/\)$' \| \
11855          .     : '\(.\)' 2>/dev/null ||
11856 echo X/"$0" |
11857     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11858           /^X\/\(\/\/\)$/{ s//\1/; q; }
11859           /^X\/\(\/\).*/{ s//\1/; q; }
11860           s/.*/./; q'`
11861
11862
11863 # PATH needs CR, and LINENO needs CR and PATH.
11864 # Avoid depending upon Character Ranges.
11865 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11866 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11867 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11868 as_cr_digits='0123456789'
11869 as_cr_alnum=$as_cr_Letters$as_cr_digits
11870
11871 # The user is always right.
11872 if test "${PATH_SEPARATOR+set}" != set; then
11873   echo "#! /bin/sh" >conf$$.sh
11874   echo  "exit 0"   >>conf$$.sh
11875   chmod +x conf$$.sh
11876   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11877     PATH_SEPARATOR=';'
11878   else
11879     PATH_SEPARATOR=:
11880   fi
11881   rm -f conf$$.sh
11882 fi
11883
11884
11885   as_lineno_1=$LINENO
11886   as_lineno_2=$LINENO
11887   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11888   test "x$as_lineno_1" != "x$as_lineno_2" &&
11889   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11890   # Find who we are.  Look in the path if we contain no path at all
11891   # relative or not.
11892   case $0 in
11893     *[\\/]* ) as_myself=$0 ;;
11894     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895 for as_dir in $PATH
11896 do
11897   IFS=$as_save_IFS
11898   test -z "$as_dir" && as_dir=.
11899   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11900 done
11901
11902        ;;
11903   esac
11904   # We did not find ourselves, most probably we were run as `sh COMMAND'
11905   # in which case we are not to be found in the path.
11906   if test "x$as_myself" = x; then
11907     as_myself=$0
11908   fi
11909   if test ! -f "$as_myself"; then
11910     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11911 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11912    { (exit 1); exit 1; }; }
11913   fi
11914   case $CONFIG_SHELL in
11915   '')
11916     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11918 do
11919   IFS=$as_save_IFS
11920   test -z "$as_dir" && as_dir=.
11921   for as_base in sh bash ksh sh5; do
11922          case $as_dir in
11923          /*)
11924            if ("$as_dir/$as_base" -c '
11925   as_lineno_1=$LINENO
11926   as_lineno_2=$LINENO
11927   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11928   test "x$as_lineno_1" != "x$as_lineno_2" &&
11929   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11930              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11931              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11932              CONFIG_SHELL=$as_dir/$as_base
11933              export CONFIG_SHELL
11934              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11935            fi;;
11936          esac
11937        done
11938 done
11939 ;;
11940   esac
11941
11942   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11943   # uniformly replaced by the line number.  The first 'sed' inserts a
11944   # line-number line before each line; the second 'sed' does the real
11945   # work.  The second script uses 'N' to pair each line-number line
11946   # with the numbered line, and appends trailing '-' during
11947   # substitution so that $LINENO is not a special case at line end.
11948   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11949   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11950   sed '=' <$as_myself |
11951     sed '
11952       N
11953       s,$,-,
11954       : loop
11955       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11956       t loop
11957       s,-$,,
11958       s,^['$as_cr_digits']*\n,,
11959     ' >$as_me.lineno &&
11960   chmod +x $as_me.lineno ||
11961     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11962 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11963    { (exit 1); exit 1; }; }
11964
11965   # Don't try to exec as it changes $[0], causing all sort of problems
11966   # (the dirname of $[0] is not the place where we might find the
11967   # original and so on.  Autoconf is especially sensible to this).
11968   . ./$as_me.lineno
11969   # Exit status is that of the last command.
11970   exit
11971 }
11972
11973
11974 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11975   *c*,-n*) ECHO_N= ECHO_C='
11976 ' ECHO_T='      ' ;;
11977   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11978   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11979 esac
11980
11981 if expr a : '\(a\)' >/dev/null 2>&1; then
11982   as_expr=expr
11983 else
11984   as_expr=false
11985 fi
11986
11987 rm -f conf$$ conf$$.exe conf$$.file
11988 echo >conf$$.file
11989 if ln -s conf$$.file conf$$ 2>/dev/null; then
11990   # We could just check for DJGPP; but this test a) works b) is more generic
11991   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11992   if test -f conf$$.exe; then
11993     # Don't use ln at all; we don't have any links
11994     as_ln_s='cp -p'
11995   else
11996     as_ln_s='ln -s'
11997   fi
11998 elif ln conf$$.file conf$$ 2>/dev/null; then
11999   as_ln_s=ln
12000 else
12001   as_ln_s='cp -p'
12002 fi
12003 rm -f conf$$ conf$$.exe conf$$.file
12004
12005 if mkdir -p . 2>/dev/null; then
12006   as_mkdir_p=:
12007 else
12008   test -d ./-p && rmdir ./-p
12009   as_mkdir_p=false
12010 fi
12011
12012 as_executable_p="test -f"
12013
12014 # Sed expression to map a string onto a valid CPP name.
12015 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12016
12017 # Sed expression to map a string onto a valid variable name.
12018 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12019
12020
12021 # IFS
12022 # We need space, tab and new line, in precisely that order.
12023 as_nl='
12024 '
12025 IFS="   $as_nl"
12026
12027 # CDPATH.
12028 $as_unset CDPATH
12029
12030 exec 6>&1
12031
12032 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12033 # report actual input values of CONFIG_FILES etc. instead of their
12034 # values after options handling.  Logging --version etc. is OK.
12035 exec 5>>config.log
12036 {
12037   echo
12038   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12039 ## Running $as_me. ##
12040 _ASBOX
12041 } >&5
12042 cat >&5 <<_CSEOF
12043
12044 This file was extended by $as_me, which was
12045 generated by GNU Autoconf 2.58.  Invocation command line was
12046
12047   CONFIG_FILES    = $CONFIG_FILES
12048   CONFIG_HEADERS  = $CONFIG_HEADERS
12049   CONFIG_LINKS    = $CONFIG_LINKS
12050   CONFIG_COMMANDS = $CONFIG_COMMANDS
12051   $ $0 $@
12052
12053 _CSEOF
12054 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12055 echo >&5
12056 _ACEOF
12057
12058 # Files that config.status was made for.
12059 if test -n "$ac_config_files"; then
12060   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12061 fi
12062
12063 if test -n "$ac_config_headers"; then
12064   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12065 fi
12066
12067 if test -n "$ac_config_links"; then
12068   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12069 fi
12070
12071 if test -n "$ac_config_commands"; then
12072   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12073 fi
12074
12075 cat >>$CONFIG_STATUS <<\_ACEOF
12076
12077 ac_cs_usage="\
12078 \`$as_me' instantiates files from templates according to the
12079 current configuration.
12080
12081 Usage: $0 [OPTIONS] [FILE]...
12082
12083   -h, --help       print this help, then exit
12084   -V, --version    print version number, then exit
12085   -q, --quiet      do not print progress messages
12086   -d, --debug      don't remove temporary files
12087       --recheck    update $as_me by reconfiguring in the same conditions
12088   --file=FILE[:TEMPLATE]
12089                    instantiate the configuration file FILE
12090   --header=FILE[:TEMPLATE]
12091                    instantiate the configuration header FILE
12092
12093 Configuration files:
12094 $config_files
12095
12096 Configuration headers:
12097 $config_headers
12098
12099 Report bugs to <bug-autoconf@gnu.org>."
12100 _ACEOF
12101
12102 cat >>$CONFIG_STATUS <<_ACEOF
12103 ac_cs_version="\\
12104 config.status
12105 configured by $0, generated by GNU Autoconf 2.58,
12106   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12107
12108 Copyright (C) 2003 Free Software Foundation, Inc.
12109 This config.status script is free software; the Free Software Foundation
12110 gives unlimited permission to copy, distribute and modify it."
12111 srcdir=$srcdir
12112 INSTALL="$INSTALL"
12113 _ACEOF
12114
12115 cat >>$CONFIG_STATUS <<\_ACEOF
12116 # If no file are specified by the user, then we need to provide default
12117 # value.  By we need to know if files were specified by the user.
12118 ac_need_defaults=:
12119 while test $# != 0
12120 do
12121   case $1 in
12122   --*=*)
12123     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12124     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12125     ac_shift=:
12126     ;;
12127   -*)
12128     ac_option=$1
12129     ac_optarg=$2
12130     ac_shift=shift
12131     ;;
12132   *) # This is not an option, so the user has probably given explicit
12133      # arguments.
12134      ac_option=$1
12135      ac_need_defaults=false;;
12136   esac
12137
12138   case $ac_option in
12139   # Handling of the options.
12140 _ACEOF
12141 cat >>$CONFIG_STATUS <<\_ACEOF
12142   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12143     ac_cs_recheck=: ;;
12144   --version | --vers* | -V )
12145     echo "$ac_cs_version"; exit 0 ;;
12146   --he | --h)
12147     # Conflict between --help and --header
12148     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12149 Try \`$0 --help' for more information." >&5
12150 echo "$as_me: error: ambiguous option: $1
12151 Try \`$0 --help' for more information." >&2;}
12152    { (exit 1); exit 1; }; };;
12153   --help | --hel | -h )
12154     echo "$ac_cs_usage"; exit 0 ;;
12155   --debug | --d* | -d )
12156     debug=: ;;
12157   --file | --fil | --fi | --f )
12158     $ac_shift
12159     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12160     ac_need_defaults=false;;
12161   --header | --heade | --head | --hea )
12162     $ac_shift
12163     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12164     ac_need_defaults=false;;
12165   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12166   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12167     ac_cs_silent=: ;;
12168
12169   # This is an error.
12170   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12171 Try \`$0 --help' for more information." >&5
12172 echo "$as_me: error: unrecognized option: $1
12173 Try \`$0 --help' for more information." >&2;}
12174    { (exit 1); exit 1; }; } ;;
12175
12176   *) ac_config_targets="$ac_config_targets $1" ;;
12177
12178   esac
12179   shift
12180 done
12181
12182 ac_configure_extra_args=
12183
12184 if $ac_cs_silent; then
12185   exec 6>/dev/null
12186   ac_configure_extra_args="$ac_configure_extra_args --silent"
12187 fi
12188
12189 _ACEOF
12190 cat >>$CONFIG_STATUS <<_ACEOF
12191 if \$ac_cs_recheck; then
12192   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12193   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12194 fi
12195
12196 _ACEOF
12197
12198
12199
12200
12201
12202 cat >>$CONFIG_STATUS <<\_ACEOF
12203 for ac_config_target in $ac_config_targets
12204 do
12205   case "$ac_config_target" in
12206   # Handling of arguments.
12207   "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
12208   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12209   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12210 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12211    { (exit 1); exit 1; }; };;
12212   esac
12213 done
12214
12215 # If the user did not use the arguments to specify the items to instantiate,
12216 # then the envvar interface is used.  Set only those that are not.
12217 # We use the long form for the default assignment because of an extremely
12218 # bizarre bug on SunOS 4.1.3.
12219 if $ac_need_defaults; then
12220   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12221   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12222 fi
12223
12224 # Have a temporary directory for convenience.  Make it in the build tree
12225 # simply because there is no reason to put it here, and in addition,
12226 # creating and moving files from /tmp can sometimes cause problems.
12227 # Create a temporary directory, and hook for its removal unless debugging.
12228 $debug ||
12229 {
12230   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12231   trap '{ (exit 1); exit 1; }' 1 2 13 15
12232 }
12233
12234 # Create a (secure) tmp directory for tmp files.
12235
12236 {
12237   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12238   test -n "$tmp" && test -d "$tmp"
12239 }  ||
12240 {
12241   tmp=./confstat$$-$RANDOM
12242   (umask 077 && mkdir $tmp)
12243 } ||
12244 {
12245    echo "$me: cannot create a temporary directory in ." >&2
12246    { (exit 1); exit 1; }
12247 }
12248
12249 _ACEOF
12250
12251 cat >>$CONFIG_STATUS <<_ACEOF
12252
12253 #
12254 # CONFIG_FILES section.
12255 #
12256
12257 # No need to generate the scripts if there are no CONFIG_FILES.
12258 # This happens for instance when ./config.status config.h
12259 if test -n "\$CONFIG_FILES"; then
12260   # Protect against being on the right side of a sed subst in config.status.
12261   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12262    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12263 s,@SHELL@,$SHELL,;t t
12264 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12265 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12266 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12267 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12268 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12269 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12270 s,@exec_prefix@,$exec_prefix,;t t
12271 s,@prefix@,$prefix,;t t
12272 s,@program_transform_name@,$program_transform_name,;t t
12273 s,@bindir@,$bindir,;t t
12274 s,@sbindir@,$sbindir,;t t
12275 s,@libexecdir@,$libexecdir,;t t
12276 s,@datadir@,$datadir,;t t
12277 s,@sysconfdir@,$sysconfdir,;t t
12278 s,@sharedstatedir@,$sharedstatedir,;t t
12279 s,@localstatedir@,$localstatedir,;t t
12280 s,@libdir@,$libdir,;t t
12281 s,@includedir@,$includedir,;t t
12282 s,@oldincludedir@,$oldincludedir,;t t
12283 s,@infodir@,$infodir,;t t
12284 s,@mandir@,$mandir,;t t
12285 s,@build_alias@,$build_alias,;t t
12286 s,@host_alias@,$host_alias,;t t
12287 s,@target_alias@,$target_alias,;t t
12288 s,@DEFS@,$DEFS,;t t
12289 s,@ECHO_C@,$ECHO_C,;t t
12290 s,@ECHO_N@,$ECHO_N,;t t
12291 s,@ECHO_T@,$ECHO_T,;t t
12292 s,@LIBS@,$LIBS,;t t
12293 s,@build@,$build,;t t
12294 s,@build_cpu@,$build_cpu,;t t
12295 s,@build_vendor@,$build_vendor,;t t
12296 s,@build_os@,$build_os,;t t
12297 s,@host@,$host,;t t
12298 s,@host_cpu@,$host_cpu,;t t
12299 s,@host_vendor@,$host_vendor,;t t
12300 s,@host_os@,$host_os,;t t
12301 s,@SHARED@,$SHARED,;t t
12302 s,@CC@,$CC,;t t
12303 s,@CFLAGS@,$CFLAGS,;t t
12304 s,@LDFLAGS@,$LDFLAGS,;t t
12305 s,@CPPFLAGS@,$CPPFLAGS,;t t
12306 s,@ac_ct_CC@,$ac_ct_CC,;t t
12307 s,@EXEEXT@,$EXEEXT,;t t
12308 s,@OBJEXT@,$OBJEXT,;t t
12309 s,@CXX@,$CXX,;t t
12310 s,@CXXFLAGS@,$CXXFLAGS,;t t
12311 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12312 s,@CPP@,$CPP,;t t
12313 s,@RANLIB@,$RANLIB,;t t
12314 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12315 s,@SET_MAKE@,$SET_MAKE,;t t
12316 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12317 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12318 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12319 s,@LN_S@,$LN_S,;t t
12320 s,@ECHO@,$ECHO,;t t
12321 s,@STRIP@,$STRIP,;t t
12322 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12323 s,@EGREP@,$EGREP,;t t
12324 s,@LIBTOOL@,$LIBTOOL,;t t
12325 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
12326 s,@AR@,$AR,;t t
12327 s,@SLEXT@,$SLEXT,;t t
12328 s,@target@,$target,;t t
12329 s,@target_cpu@,$target_cpu,;t t
12330 s,@target_vendor@,$target_vendor,;t t
12331 s,@target_os@,$target_os,;t t
12332 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
12333 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
12334 s,@PACKAGE@,$PACKAGE,;t t
12335 s,@VERSION@,$VERSION,;t t
12336 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
12337 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
12338 s,@lame_objects@,$lame_objects,;t t
12339 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
12340 s,@VIDEO_LIBS@,$VIDEO_LIBS,;t t
12341 s,@VIDEO_CFLAGS@,$VIDEO_CFLAGS,;t t
12342 s,@USE_GZIP@,$USE_GZIP,;t t
12343 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
12344 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
12345 s,@JPEG2SWF@,$JPEG2SWF,;t t
12346 s,@PNG2SWF@,$PNG2SWF,;t t
12347 s,@LIBOBJS@,$LIBOBJS,;t t
12348 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12349 CEOF
12350
12351 _ACEOF
12352
12353   cat >>$CONFIG_STATUS <<\_ACEOF
12354   # Split the substitutions into bite-sized pieces for seds with
12355   # small command number limits, like on Digital OSF/1 and HP-UX.
12356   ac_max_sed_lines=48
12357   ac_sed_frag=1 # Number of current file.
12358   ac_beg=1 # First line for current file.
12359   ac_end=$ac_max_sed_lines # Line after last line for current file.
12360   ac_more_lines=:
12361   ac_sed_cmds=
12362   while $ac_more_lines; do
12363     if test $ac_beg -gt 1; then
12364       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12365     else
12366       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12367     fi
12368     if test ! -s $tmp/subs.frag; then
12369       ac_more_lines=false
12370     else
12371       # The purpose of the label and of the branching condition is to
12372       # speed up the sed processing (if there are no `@' at all, there
12373       # is no need to browse any of the substitutions).
12374       # These are the two extra sed commands mentioned above.
12375       (echo ':t
12376   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12377       if test -z "$ac_sed_cmds"; then
12378         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12379       else
12380         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12381       fi
12382       ac_sed_frag=`expr $ac_sed_frag + 1`
12383       ac_beg=$ac_end
12384       ac_end=`expr $ac_end + $ac_max_sed_lines`
12385     fi
12386   done
12387   if test -z "$ac_sed_cmds"; then
12388     ac_sed_cmds=cat
12389   fi
12390 fi # test -n "$CONFIG_FILES"
12391
12392 _ACEOF
12393 cat >>$CONFIG_STATUS <<\_ACEOF
12394 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12395   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12396   case $ac_file in
12397   - | *:- | *:-:* ) # input from stdin
12398         cat >$tmp/stdin
12399         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12400         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12401   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12402         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12403   * )   ac_file_in=$ac_file.in ;;
12404   esac
12405
12406   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12407   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12408 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12409          X"$ac_file" : 'X\(//\)[^/]' \| \
12410          X"$ac_file" : 'X\(//\)$' \| \
12411          X"$ac_file" : 'X\(/\)' \| \
12412          .     : '\(.\)' 2>/dev/null ||
12413 echo X"$ac_file" |
12414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12415           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12416           /^X\(\/\/\)$/{ s//\1/; q; }
12417           /^X\(\/\).*/{ s//\1/; q; }
12418           s/.*/./; q'`
12419   { if $as_mkdir_p; then
12420     mkdir -p "$ac_dir"
12421   else
12422     as_dir="$ac_dir"
12423     as_dirs=
12424     while test ! -d "$as_dir"; do
12425       as_dirs="$as_dir $as_dirs"
12426       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12427 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12428          X"$as_dir" : 'X\(//\)[^/]' \| \
12429          X"$as_dir" : 'X\(//\)$' \| \
12430          X"$as_dir" : 'X\(/\)' \| \
12431          .     : '\(.\)' 2>/dev/null ||
12432 echo X"$as_dir" |
12433     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12434           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12435           /^X\(\/\/\)$/{ s//\1/; q; }
12436           /^X\(\/\).*/{ s//\1/; q; }
12437           s/.*/./; q'`
12438     done
12439     test ! -n "$as_dirs" || mkdir $as_dirs
12440   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12441 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12442    { (exit 1); exit 1; }; }; }
12443
12444   ac_builddir=.
12445
12446 if test "$ac_dir" != .; then
12447   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12448   # A "../" for each directory in $ac_dir_suffix.
12449   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12450 else
12451   ac_dir_suffix= ac_top_builddir=
12452 fi
12453
12454 case $srcdir in
12455   .)  # No --srcdir option.  We are building in place.
12456     ac_srcdir=.
12457     if test -z "$ac_top_builddir"; then
12458        ac_top_srcdir=.
12459     else
12460        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12461     fi ;;
12462   [\\/]* | ?:[\\/]* )  # Absolute path.
12463     ac_srcdir=$srcdir$ac_dir_suffix;
12464     ac_top_srcdir=$srcdir ;;
12465   *) # Relative path.
12466     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12467     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12468 esac
12469 case "$ac_dir" in
12470 .) ac_abs_builddir=$ac_builddir;;
12471 *)
12472   case $ac_builddir in
12473   .) ac_abs_builddir="$ac_dir";;
12474   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
12475   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
12476   esac;;
12477 esac
12478 case "$ac_dir" in
12479 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12480 *)
12481   case ${ac_top_builddir}. in
12482   .) ac_abs_top_builddir="$ac_dir";;
12483   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12484   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
12485   esac;;
12486 esac
12487 case "$ac_dir" in
12488 .) ac_abs_srcdir=$ac_srcdir;;
12489 *)
12490   case $ac_srcdir in
12491   .) ac_abs_srcdir="$ac_dir";;
12492   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12493   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
12494   esac;;
12495 esac
12496 case "$ac_dir" in
12497 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12498 *)
12499   case $ac_top_srcdir in
12500   .) ac_abs_top_srcdir="$ac_dir";;
12501   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12502   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
12503   esac;;
12504 esac
12505
12506
12507   case $INSTALL in
12508   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12509   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12510   esac
12511
12512   if test x"$ac_file" != x-; then
12513     { echo "$as_me:$LINENO: creating $ac_file" >&5
12514 echo "$as_me: creating $ac_file" >&6;}
12515     rm -f "$ac_file"
12516   fi
12517   # Let's still pretend it is `configure' which instantiates (i.e., don't
12518   # use $as_me), people would be surprised to read:
12519   #    /* config.h.  Generated by config.status.  */
12520   if test x"$ac_file" = x-; then
12521     configure_input=
12522   else
12523     configure_input="$ac_file.  "
12524   fi
12525   configure_input=$configure_input"Generated from `echo $ac_file_in |
12526                                      sed 's,.*/,,'` by configure."
12527
12528   # First look for the input files in the build tree, otherwise in the
12529   # src tree.
12530   ac_file_inputs=`IFS=:
12531     for f in $ac_file_in; do
12532       case $f in
12533       -) echo $tmp/stdin ;;
12534       [\\/$]*)
12535          # Absolute (can't be DOS-style, as IFS=:)
12536          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12537 echo "$as_me: error: cannot find input file: $f" >&2;}
12538    { (exit 1); exit 1; }; }
12539          echo "$f";;
12540       *) # Relative
12541          if test -f "$f"; then
12542            # Build tree
12543            echo "$f"
12544          elif test -f "$srcdir/$f"; then
12545            # Source tree
12546            echo "$srcdir/$f"
12547          else
12548            # /dev/null tree
12549            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12550 echo "$as_me: error: cannot find input file: $f" >&2;}
12551    { (exit 1); exit 1; }; }
12552          fi;;
12553       esac
12554     done` || { (exit 1); exit 1; }
12555 _ACEOF
12556 cat >>$CONFIG_STATUS <<_ACEOF
12557   sed "$ac_vpsub
12558 $extrasub
12559 _ACEOF
12560 cat >>$CONFIG_STATUS <<\_ACEOF
12561 :t
12562 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12563 s,@configure_input@,$configure_input,;t t
12564 s,@srcdir@,$ac_srcdir,;t t
12565 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12566 s,@top_srcdir@,$ac_top_srcdir,;t t
12567 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12568 s,@builddir@,$ac_builddir,;t t
12569 s,@abs_builddir@,$ac_abs_builddir,;t t
12570 s,@top_builddir@,$ac_top_builddir,;t t
12571 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12572 s,@INSTALL@,$ac_INSTALL,;t t
12573 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12574   rm -f $tmp/stdin
12575   if test x"$ac_file" != x-; then
12576     mv $tmp/out $ac_file
12577   else
12578     cat $tmp/out
12579     rm -f $tmp/out
12580   fi
12581
12582 done
12583 _ACEOF
12584 cat >>$CONFIG_STATUS <<\_ACEOF
12585
12586 #
12587 # CONFIG_HEADER section.
12588 #
12589
12590 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12591 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12592 #
12593 # ac_d sets the value in "#define NAME VALUE" lines.
12594 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12595 ac_dB='[         ].*$,\1#\2'
12596 ac_dC=' '
12597 ac_dD=',;t'
12598 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12599 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12600 ac_uB='$,\1#\2define\3'
12601 ac_uC=' '
12602 ac_uD=',;t'
12603
12604 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12605   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12606   case $ac_file in
12607   - | *:- | *:-:* ) # input from stdin
12608         cat >$tmp/stdin
12609         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12610         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12611   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12612         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12613   * )   ac_file_in=$ac_file.in ;;
12614   esac
12615
12616   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12617 echo "$as_me: creating $ac_file" >&6;}
12618
12619   # First look for the input files in the build tree, otherwise in the
12620   # src tree.
12621   ac_file_inputs=`IFS=:
12622     for f in $ac_file_in; do
12623       case $f in
12624       -) echo $tmp/stdin ;;
12625       [\\/$]*)
12626          # Absolute (can't be DOS-style, as IFS=:)
12627          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12628 echo "$as_me: error: cannot find input file: $f" >&2;}
12629    { (exit 1); exit 1; }; }
12630          # Do quote $f, to prevent DOS paths from being IFS'd.
12631          echo "$f";;
12632       *) # Relative
12633          if test -f "$f"; then
12634            # Build tree
12635            echo "$f"
12636          elif test -f "$srcdir/$f"; then
12637            # Source tree
12638            echo "$srcdir/$f"
12639          else
12640            # /dev/null tree
12641            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12642 echo "$as_me: error: cannot find input file: $f" >&2;}
12643    { (exit 1); exit 1; }; }
12644          fi;;
12645       esac
12646     done` || { (exit 1); exit 1; }
12647   # Remove the trailing spaces.
12648   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12649
12650 _ACEOF
12651
12652 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12653 # `conftest.undefs', that substitutes the proper values into
12654 # config.h.in to produce config.h.  The first handles `#define'
12655 # templates, and the second `#undef' templates.
12656 # And first: Protect against being on the right side of a sed subst in
12657 # config.status.  Protect against being in an unquoted here document
12658 # in config.status.
12659 rm -f conftest.defines conftest.undefs
12660 # Using a here document instead of a string reduces the quoting nightmare.
12661 # Putting comments in sed scripts is not portable.
12662 #
12663 # `end' is used to avoid that the second main sed command (meant for
12664 # 0-ary CPP macros) applies to n-ary macro definitions.
12665 # See the Autoconf documentation for `clear'.
12666 cat >confdef2sed.sed <<\_ACEOF
12667 s/[\\&,]/\\&/g
12668 s,[\\$`],\\&,g
12669 t clear
12670 : clear
12671 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12672 t end
12673 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12674 : end
12675 _ACEOF
12676 # If some macros were called several times there might be several times
12677 # the same #defines, which is useless.  Nevertheless, we may not want to
12678 # sort them, since we want the *last* AC-DEFINE to be honored.
12679 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12680 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12681 rm -f confdef2sed.sed
12682
12683 # This sed command replaces #undef with comments.  This is necessary, for
12684 # example, in the case of _POSIX_SOURCE, which is predefined and required
12685 # on some systems where configure will not decide to define it.
12686 cat >>conftest.undefs <<\_ACEOF
12687 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12688 _ACEOF
12689
12690 # Break up conftest.defines because some shells have a limit on the size
12691 # of here documents, and old seds have small limits too (100 cmds).
12692 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12693 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12694 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12695 echo '  :' >>$CONFIG_STATUS
12696 rm -f conftest.tail
12697 while grep . conftest.defines >/dev/null
12698 do
12699   # Write a limited-size here document to $tmp/defines.sed.
12700   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12701   # Speed up: don't consider the non `#define' lines.
12702   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12703   # Work around the forget-to-reset-the-flag bug.
12704   echo 't clr' >>$CONFIG_STATUS
12705   echo ': clr' >>$CONFIG_STATUS
12706   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12707   echo 'CEOF
12708   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12709   rm -f $tmp/in
12710   mv $tmp/out $tmp/in
12711 ' >>$CONFIG_STATUS
12712   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12713   rm -f conftest.defines
12714   mv conftest.tail conftest.defines
12715 done
12716 rm -f conftest.defines
12717 echo '  fi # grep' >>$CONFIG_STATUS
12718 echo >>$CONFIG_STATUS
12719
12720 # Break up conftest.undefs because some shells have a limit on the size
12721 # of here documents, and old seds have small limits too (100 cmds).
12722 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12723 rm -f conftest.tail
12724 while grep . conftest.undefs >/dev/null
12725 do
12726   # Write a limited-size here document to $tmp/undefs.sed.
12727   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12728   # Speed up: don't consider the non `#undef'
12729   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12730   # Work around the forget-to-reset-the-flag bug.
12731   echo 't clr' >>$CONFIG_STATUS
12732   echo ': clr' >>$CONFIG_STATUS
12733   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12734   echo 'CEOF
12735   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12736   rm -f $tmp/in
12737   mv $tmp/out $tmp/in
12738 ' >>$CONFIG_STATUS
12739   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12740   rm -f conftest.undefs
12741   mv conftest.tail conftest.undefs
12742 done
12743 rm -f conftest.undefs
12744
12745 cat >>$CONFIG_STATUS <<\_ACEOF
12746   # Let's still pretend it is `configure' which instantiates (i.e., don't
12747   # use $as_me), people would be surprised to read:
12748   #    /* config.h.  Generated by config.status.  */
12749   if test x"$ac_file" = x-; then
12750     echo "/* Generated by configure.  */" >$tmp/config.h
12751   else
12752     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12753   fi
12754   cat $tmp/in >>$tmp/config.h
12755   rm -f $tmp/in
12756   if test x"$ac_file" != x-; then
12757     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12758       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12759 echo "$as_me: $ac_file is unchanged" >&6;}
12760     else
12761       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12762 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12763          X"$ac_file" : 'X\(//\)[^/]' \| \
12764          X"$ac_file" : 'X\(//\)$' \| \
12765          X"$ac_file" : 'X\(/\)' \| \
12766          .     : '\(.\)' 2>/dev/null ||
12767 echo X"$ac_file" |
12768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12769           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12770           /^X\(\/\/\)$/{ s//\1/; q; }
12771           /^X\(\/\).*/{ s//\1/; q; }
12772           s/.*/./; q'`
12773       { if $as_mkdir_p; then
12774     mkdir -p "$ac_dir"
12775   else
12776     as_dir="$ac_dir"
12777     as_dirs=
12778     while test ! -d "$as_dir"; do
12779       as_dirs="$as_dir $as_dirs"
12780       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12782          X"$as_dir" : 'X\(//\)[^/]' \| \
12783          X"$as_dir" : 'X\(//\)$' \| \
12784          X"$as_dir" : 'X\(/\)' \| \
12785          .     : '\(.\)' 2>/dev/null ||
12786 echo X"$as_dir" |
12787     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12788           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12789           /^X\(\/\/\)$/{ s//\1/; q; }
12790           /^X\(\/\).*/{ s//\1/; q; }
12791           s/.*/./; q'`
12792     done
12793     test ! -n "$as_dirs" || mkdir $as_dirs
12794   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12795 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12796    { (exit 1); exit 1; }; }; }
12797
12798       rm -f $ac_file
12799       mv $tmp/config.h $ac_file
12800     fi
12801   else
12802     cat $tmp/config.h
12803     rm -f $tmp/config.h
12804   fi
12805 done
12806 _ACEOF
12807
12808 cat >>$CONFIG_STATUS <<\_ACEOF
12809
12810 { (exit 0); exit 0; }
12811 _ACEOF
12812 chmod +x $CONFIG_STATUS
12813 ac_clean_files=$ac_clean_files_save
12814
12815
12816 # configure is writing to config.log, and then calls config.status.
12817 # config.status does its own redirection, appending to config.log.
12818 # Unfortunately, on DOS this fails, as config.log is still kept open
12819 # by configure, so config.status won't be able to write to it; its
12820 # output is simply discarded.  So we exec the FD to /dev/null,
12821 # effectively closing config.log, so it can be properly (re)opened and
12822 # appended to by config.status.  When coming back to configure, we
12823 # need to make the FD available again.
12824 if test "$no_create" != yes; then
12825   ac_cs_success=:
12826   ac_config_status_args=
12827   test "$silent" = yes &&
12828     ac_config_status_args="$ac_config_status_args --quiet"
12829   exec 5>/dev/null
12830   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12831   exec 5>>config.log
12832   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12833   # would make configure fail if this is the last instruction.
12834   $ac_cs_success || { (exit 1); exit 1; }
12835 fi
12836
12837