Generated from configure.in
[swftools.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Find the correct PATH separator.  Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247   UNAME=${UNAME-`uname 2>/dev/null`}
248   case X$UNAME in
249     *-DOS) lt_cv_sys_path_separator=';' ;;
250     *)     lt_cv_sys_path_separator=':' ;;
251   esac
252   PATH_SEPARATOR=$lt_cv_sys_path_separator
253 fi
254
255
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
258
259 case X$ECHO in
260 X*--fallback-echo)
261   # Remove one level of quotation (which was required for Make).
262   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
263   ;;
264 esac
265
266 echo=${ECHO-echo}
267 if test "X$1" = X--no-reexec; then
268   # Discard the --no-reexec flag, and continue.
269   shift
270 elif test "X$1" = X--fallback-echo; then
271   # Avoid inline document here, it may be left over
272   :
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274   # Yippee, $echo works!
275   :
276 else
277   # Restart under the correct shell.
278   exec $SHELL "$0" --no-reexec ${1+"$@"}
279 fi
280
281 if test "X$1" = X--fallback-echo; then
282   # used as fallback echo
283   shift
284   cat <<EOF
285
286 EOF
287   exit 0
288 fi
289
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
291 # if CDPATH is set.
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300        echo_test_string="`eval $cmd`" &&
301        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
302     then
303       break
304     fi
305   done
306 fi
307
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310    test "X$echo_testing_string" = "X$echo_test_string"; then
311   :
312 else
313   # The Solaris, AIX, and Digital Unix default echo programs unquote
314   # backslashes.  This makes it impossible to quote backslashes using
315   #   echo "$something" | sed 's/\\/\\\\/g'
316   #
317   # So, first we look for a working echo in the user's PATH.
318
319   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320   for dir in $PATH /usr/ucb; do
321     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324        test "X$echo_testing_string" = "X$echo_test_string"; then
325       echo="$dir/echo"
326       break
327     fi
328   done
329   IFS="$save_ifs"
330
331   if test "X$echo" = Xecho; then
332     # We didn't find a better echo, so look for alternatives.
333     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335        test "X$echo_testing_string" = "X$echo_test_string"; then
336       # This shell has a builtin print -r that does the trick.
337       echo='print -r'
338     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339          test "X$CONFIG_SHELL" != X/bin/ksh; then
340       # If we have ksh, try running configure again with it.
341       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342       export ORIGINAL_CONFIG_SHELL
343       CONFIG_SHELL=/bin/ksh
344       export CONFIG_SHELL
345       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
346     else
347       # Try using printf.
348       echo='printf %s\n'
349       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351          test "X$echo_testing_string" = "X$echo_test_string"; then
352         # Cool, printf works
353         :
354       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359         export CONFIG_SHELL
360         SHELL="$CONFIG_SHELL"
361         export SHELL
362         echo="$CONFIG_SHELL $0 --fallback-echo"
363       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364            test "X$echo_testing_string" = 'X\t' &&
365            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366            test "X$echo_testing_string" = "X$echo_test_string"; then
367         echo="$CONFIG_SHELL $0 --fallback-echo"
368       else
369         # maybe with a smaller string...
370         prev=:
371
372         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374           then
375             break
376           fi
377           prev="$cmd"
378         done
379
380         if test "$prev" != 'sed 50q "$0"'; then
381           echo_test_string=`eval $prev`
382           export echo_test_string
383           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384         else
385           # Oops.  We lost completely, so just stick with echo.
386           echo=echo
387         fi
388       fi
389     fi
390   fi
391 fi
392 fi
393
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
396 ECHO=$echo
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 fi
400
401
402
403 # Name of the host.
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
407
408 exec 6>&1
409
410 #
411 # Initializations.
412 #
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
415 cross_compiling=no
416 subdirs=
417 MFLAGS=
418 MAKEFLAGS=
419 SHELL=${CONFIG_SHELL-/bin/sh}
420
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete.  It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
425
426 # Identity of this package.
427 PACKAGE_NAME=
428 PACKAGE_TARNAME=
429 PACKAGE_VERSION=
430 PACKAGE_STRING=
431 PACKAGE_BUGREPORT=
432
433 ac_unique_file="src/"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
436 #include <stdio.h>
437 #if HAVE_SYS_TYPES_H
438 # include <sys/types.h>
439 #endif
440 #if HAVE_SYS_STAT_H
441 # include <sys/stat.h>
442 #endif
443 #if STDC_HEADERS
444 # include <stdlib.h>
445 # include <stddef.h>
446 #else
447 # if HAVE_STDLIB_H
448 #  include <stdlib.h>
449 # endif
450 #endif
451 #if HAVE_STRING_H
452 # if !STDC_HEADERS && HAVE_MEMORY_H
453 #  include <memory.h>
454 # endif
455 # include <string.h>
456 #endif
457 #if HAVE_STRINGS_H
458 # include <strings.h>
459 #endif
460 #if HAVE_INTTYPES_H
461 # include <inttypes.h>
462 #else
463 # if HAVE_STDINT_H
464 #  include <stdint.h>
465 # endif
466 #endif
467 #if HAVE_UNISTD_H
468 # include <unistd.h>
469 #endif"
470
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 AREXT 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 GIF2SWF 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-profiling      turn on profiling
1023   --enable-warnings        turn on compiler warnings
1024   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1025   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1026   --enable-shared=PKGS  build shared libraries default=yes
1027   --enable-static=PKGS  build static libraries default=yes
1028   --enable-fast-install=PKGS  optimize for fast installation default=yes
1029   --disable-libtool-lock  avoid locking (might break parallel builds)
1030
1031 Optional Packages:
1032   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1033   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1034   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1035   --with-pic              try to use only PIC/non-PIC objects default=use both
1036
1037 Some influential environment variables:
1038   CC          C compiler command
1039   CFLAGS      C compiler flags
1040   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1041               nonstandard directory <lib dir>
1042   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1043               headers in a nonstandard directory <include dir>
1044   CXX         C++ compiler command
1045   CXXFLAGS    C++ compiler flags
1046   CPP         C preprocessor
1047
1048 Use these variables to override the choices made by `configure' or to help
1049 it to find libraries and programs with nonstandard names/locations.
1050
1051 _ACEOF
1052 fi
1053
1054 if test "$ac_init_help" = "recursive"; then
1055   # If there are subdirs, report their specific --help.
1056   ac_popdir=`pwd`
1057   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058     test -d $ac_dir || continue
1059     ac_builddir=.
1060
1061 if test "$ac_dir" != .; then
1062   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063   # A "../" for each directory in $ac_dir_suffix.
1064   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065 else
1066   ac_dir_suffix= ac_top_builddir=
1067 fi
1068
1069 case $srcdir in
1070   .)  # No --srcdir option.  We are building in place.
1071     ac_srcdir=.
1072     if test -z "$ac_top_builddir"; then
1073        ac_top_srcdir=.
1074     else
1075        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076     fi ;;
1077   [\\/]* | ?:[\\/]* )  # Absolute path.
1078     ac_srcdir=$srcdir$ac_dir_suffix;
1079     ac_top_srcdir=$srcdir ;;
1080   *) # Relative path.
1081     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1083 esac
1084
1085 # Do not use `cd foo && pwd` to compute absolute paths, because
1086 # the directories may not exist.
1087 case `pwd` in
1088 .) ac_abs_builddir="$ac_dir";;
1089 *)
1090   case "$ac_dir" in
1091   .) ac_abs_builddir=`pwd`;;
1092   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1093   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1094   esac;;
1095 esac
1096 case $ac_abs_builddir in
1097 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1098 *)
1099   case ${ac_top_builddir}. in
1100   .) ac_abs_top_builddir=$ac_abs_builddir;;
1101   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1102   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1103   esac;;
1104 esac
1105 case $ac_abs_builddir in
1106 .) ac_abs_srcdir=$ac_srcdir;;
1107 *)
1108   case $ac_srcdir in
1109   .) ac_abs_srcdir=$ac_abs_builddir;;
1110   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1111   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1112   esac;;
1113 esac
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1116 *)
1117   case $ac_top_srcdir in
1118   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1119   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1120   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1121   esac;;
1122 esac
1123
1124     cd $ac_dir
1125     # Check for guested configure; otherwise get Cygnus style configure.
1126     if test -f $ac_srcdir/configure.gnu; then
1127       echo
1128       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1129     elif test -f $ac_srcdir/configure; then
1130       echo
1131       $SHELL $ac_srcdir/configure  --help=recursive
1132     elif test -f $ac_srcdir/configure.ac ||
1133            test -f $ac_srcdir/configure.in; then
1134       echo
1135       $ac_configure --help
1136     else
1137       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1138     fi
1139     cd $ac_popdir
1140   done
1141 fi
1142
1143 test -n "$ac_init_help" && exit 0
1144 if $ac_init_version; then
1145   cat <<\_ACEOF
1146
1147 Copyright (C) 2003 Free Software Foundation, Inc.
1148 This configure script is free software; the Free Software Foundation
1149 gives unlimited permission to copy, distribute and modify it.
1150 _ACEOF
1151   exit 0
1152 fi
1153 exec 5>config.log
1154 cat >&5 <<_ACEOF
1155 This file contains any messages produced by compilers while
1156 running configure, to aid debugging if configure makes a mistake.
1157
1158 It was created by $as_me, which was
1159 generated by GNU Autoconf 2.59.  Invocation command line was
1160
1161   $ $0 $@
1162
1163 _ACEOF
1164 {
1165 cat <<_ASUNAME
1166 ## --------- ##
1167 ## Platform. ##
1168 ## --------- ##
1169
1170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175
1176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1178
1179 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1180 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1183 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1184 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1185 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1186
1187 _ASUNAME
1188
1189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190 for as_dir in $PATH
1191 do
1192   IFS=$as_save_IFS
1193   test -z "$as_dir" && as_dir=.
1194   echo "PATH: $as_dir"
1195 done
1196
1197 } >&5
1198
1199 cat >&5 <<_ACEOF
1200
1201
1202 ## ----------- ##
1203 ## Core tests. ##
1204 ## ----------- ##
1205
1206 _ACEOF
1207
1208
1209 # Keep a trace of the command line.
1210 # Strip out --no-create and --no-recursion so they do not pile up.
1211 # Strip out --silent because we don't want to record it for future runs.
1212 # Also quote any args containing shell meta-characters.
1213 # Make two passes to allow for proper duplicate-argument suppression.
1214 ac_configure_args=
1215 ac_configure_args0=
1216 ac_configure_args1=
1217 ac_sep=
1218 ac_must_keep_next=false
1219 for ac_pass in 1 2
1220 do
1221   for ac_arg
1222   do
1223     case $ac_arg in
1224     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226     | -silent | --silent | --silen | --sile | --sil)
1227       continue ;;
1228     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230     esac
1231     case $ac_pass in
1232     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233     2)
1234       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235       if test $ac_must_keep_next = true; then
1236         ac_must_keep_next=false # Got value, back to normal.
1237       else
1238         case $ac_arg in
1239           *=* | --config-cache | -C | -disable-* | --disable-* \
1240           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242           | -with-* | --with-* | -without-* | --without-* | --x)
1243             case "$ac_configure_args0 " in
1244               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245             esac
1246             ;;
1247           -* ) ac_must_keep_next=true ;;
1248         esac
1249       fi
1250       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251       # Get rid of the leading space.
1252       ac_sep=" "
1253       ;;
1254     esac
1255   done
1256 done
1257 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259
1260 # When interrupted or exit'd, cleanup temporary files, and complete
1261 # config.log.  We remove comments because anyway the quotes in there
1262 # would cause problems or look ugly.
1263 # WARNING: Be sure not to use single quotes in there, as some shells,
1264 # such as our DU 5.0 friend, will then `close' the trap.
1265 trap 'exit_status=$?
1266   # Save into config.log some information that might help in debugging.
1267   {
1268     echo
1269
1270     cat <<\_ASBOX
1271 ## ---------------- ##
1272 ## Cache variables. ##
1273 ## ---------------- ##
1274 _ASBOX
1275     echo
1276     # The following way of writing the cache mishandles newlines in values,
1277 {
1278   (set) 2>&1 |
1279     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280     *ac_space=\ *)
1281       sed -n \
1282         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1284       ;;
1285     *)
1286       sed -n \
1287         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288       ;;
1289     esac;
1290 }
1291     echo
1292
1293     cat <<\_ASBOX
1294 ## ----------------- ##
1295 ## Output variables. ##
1296 ## ----------------- ##
1297 _ASBOX
1298     echo
1299     for ac_var in $ac_subst_vars
1300     do
1301       eval ac_val=$`echo $ac_var`
1302       echo "$ac_var='"'"'$ac_val'"'"'"
1303     done | sort
1304     echo
1305
1306     if test -n "$ac_subst_files"; then
1307       cat <<\_ASBOX
1308 ## ------------- ##
1309 ## Output files. ##
1310 ## ------------- ##
1311 _ASBOX
1312       echo
1313       for ac_var in $ac_subst_files
1314       do
1315         eval ac_val=$`echo $ac_var`
1316         echo "$ac_var='"'"'$ac_val'"'"'"
1317       done | sort
1318       echo
1319     fi
1320
1321     if test -s confdefs.h; then
1322       cat <<\_ASBOX
1323 ## ----------- ##
1324 ## confdefs.h. ##
1325 ## ----------- ##
1326 _ASBOX
1327       echo
1328       sed "/^$/d" confdefs.h | sort
1329       echo
1330     fi
1331     test "$ac_signal" != 0 &&
1332       echo "$as_me: caught signal $ac_signal"
1333     echo "$as_me: exit $exit_status"
1334   } >&5
1335   rm -f core *.core &&
1336   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337     exit $exit_status
1338      ' 0
1339 for ac_signal in 1 2 13 15; do
1340   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341 done
1342 ac_signal=0
1343
1344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1345 rm -rf conftest* confdefs.h
1346 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347 echo >confdefs.h
1348
1349 # Predefined preprocessor variables.
1350
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_NAME "$PACKAGE_NAME"
1353 _ACEOF
1354
1355
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358 _ACEOF
1359
1360
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1363 _ACEOF
1364
1365
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_STRING "$PACKAGE_STRING"
1368 _ACEOF
1369
1370
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373 _ACEOF
1374
1375
1376 # Let the site file select an alternate cache file if it wants to.
1377 # Prefer explicitly selected file to automatically selected ones.
1378 if test -z "$CONFIG_SITE"; then
1379   if test "x$prefix" != xNONE; then
1380     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381   else
1382     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1383   fi
1384 fi
1385 for ac_site_file in $CONFIG_SITE; do
1386   if test -r "$ac_site_file"; then
1387     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388 echo "$as_me: loading site script $ac_site_file" >&6;}
1389     sed 's/^/| /' "$ac_site_file" >&5
1390     . "$ac_site_file"
1391   fi
1392 done
1393
1394 if test -r "$cache_file"; then
1395   # Some versions of bash will fail to source /dev/null (special
1396   # files actually), so we avoid doing that.
1397   if test -f "$cache_file"; then
1398     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399 echo "$as_me: loading cache $cache_file" >&6;}
1400     case $cache_file in
1401       [\\/]* | ?:[\\/]* ) . $cache_file;;
1402       *)                      . ./$cache_file;;
1403     esac
1404   fi
1405 else
1406   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407 echo "$as_me: creating cache $cache_file" >&6;}
1408   >$cache_file
1409 fi
1410
1411 # Check that the precious variables saved in the cache have kept the same
1412 # value.
1413 ac_cache_corrupted=false
1414 for ac_var in `(set) 2>&1 |
1415                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417   eval ac_new_set=\$ac_env_${ac_var}_set
1418   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419   eval ac_new_val="\$ac_env_${ac_var}_value"
1420   case $ac_old_set,$ac_new_set in
1421     set,)
1422       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424       ac_cache_corrupted=: ;;
1425     ,set)
1426       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428       ac_cache_corrupted=: ;;
1429     ,);;
1430     *)
1431       if test "x$ac_old_val" != "x$ac_new_val"; then
1432         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1433 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1434         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1435 echo "$as_me:   former value:  $ac_old_val" >&2;}
1436         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1437 echo "$as_me:   current value: $ac_new_val" >&2;}
1438         ac_cache_corrupted=:
1439       fi;;
1440   esac
1441   # Pass precious variables to config.status.
1442   if test "$ac_new_set" = set; then
1443     case $ac_new_val in
1444     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1445       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1446     *) ac_arg=$ac_var=$ac_new_val ;;
1447     esac
1448     case " $ac_configure_args " in
1449       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1450       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1451     esac
1452   fi
1453 done
1454 if $ac_cache_corrupted; then
1455   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459    { (exit 1); exit 1; }; }
1460 fi
1461
1462 ac_ext=c
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488 # Check whether --enable-checkmem or --disable-checkmem was given.
1489 if test "${enable_checkmem+set}" = set; then
1490   enableval="$enable_checkmem"
1491   CHECKMEM=true
1492 fi;
1493 # Check whether --enable-debug or --disable-debug was given.
1494 if test "${enable_debug+set}" = set; then
1495   enableval="$enable_debug"
1496   DEBUG=true
1497 fi;
1498 # Check whether --enable-profiling or --disable-profiling was given.
1499 if test "${enable_profiling+set}" = set; then
1500   enableval="$enable_profiling"
1501   PROFILING=true
1502 fi;
1503 # Check whether --enable-warnings or --disable-warnings was given.
1504 if test "${enable_warnings+set}" = set; then
1505   enableval="$enable_warnings"
1506   ENABLE_WARNINGS=true
1507 fi;
1508 # Check whether --enable-optimizations or --disable-optimizations was given.
1509 if test "${enable_optimizations+set}" = set; then
1510   enableval="$enable_optimizations"
1511   OPTIMIZE=true
1512 fi;
1513 # Check whether --enable-lame or --disable-lame was given.
1514 if test "${enable_lame+set}" = set; then
1515   enableval="$enable_lame"
1516   DISABLE_LAME=true
1517 fi;
1518
1519 PACKAGE=swftools
1520 VERSION=2005-07-23-1242
1521
1522
1523 # ------------------------------------------------------------------
1524
1525 if test "x${srcdir}" != "x."; then
1526     echo "--srcdir is not supported"
1527     exit 1
1528 fi
1529
1530 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1531 if test "x$ENABLE_WARNINGS" '!=' "x";then
1532     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1533 fi
1534
1535 if test "x$CHECKMEM" '!=' "x";then
1536     DEBUG=yes
1537 fi
1538 if test "x$PROFILING" '!=' "x";then
1539     DEBUG=yes
1540 fi
1541 if test "x$DEBUG" '!=' "x";then
1542     if test "x$PROFILING" = "x";then
1543         CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1544         CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1545     else
1546         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1547         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1548         LDFLAGS="-g -pg $LIBS"
1549     fi
1550 else if test "x$OPTIMIZE" '!=' "x"; then
1551     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1552     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1553 else
1554     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1555     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1556 fi
1557 fi
1558 #OLDGCC=1
1559 #if test "x$OLDGCC" '!=' "x";then
1560 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1561 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1562 #     CFLAGS="$CFLAGS -ansi -pendantic"
1563 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1564 #fi
1565
1566 export PACKAGE VERSION CFLAGS CXXFLAGS
1567
1568
1569 ac_aux_dir=
1570 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1571   if test -f $ac_dir/install-sh; then
1572     ac_aux_dir=$ac_dir
1573     ac_install_sh="$ac_aux_dir/install-sh -c"
1574     break
1575   elif test -f $ac_dir/install.sh; then
1576     ac_aux_dir=$ac_dir
1577     ac_install_sh="$ac_aux_dir/install.sh -c"
1578     break
1579   elif test -f $ac_dir/shtool; then
1580     ac_aux_dir=$ac_dir
1581     ac_install_sh="$ac_aux_dir/shtool install -c"
1582     break
1583   fi
1584 done
1585 if test -z "$ac_aux_dir"; then
1586   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1587 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1588    { (exit 1); exit 1; }; }
1589 fi
1590 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1591 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1592 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1593
1594 # Make sure we can run config.sub.
1595 $ac_config_sub sun4 >/dev/null 2>&1 ||
1596   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1597 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1598    { (exit 1); exit 1; }; }
1599
1600 echo "$as_me:$LINENO: checking build system type" >&5
1601 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1602 if test "${ac_cv_build+set}" = set; then
1603   echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605   ac_cv_build_alias=$build_alias
1606 test -z "$ac_cv_build_alias" &&
1607   ac_cv_build_alias=`$ac_config_guess`
1608 test -z "$ac_cv_build_alias" &&
1609   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1610 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1611    { (exit 1); exit 1; }; }
1612 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1613   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1614 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1615    { (exit 1); exit 1; }; }
1616
1617 fi
1618 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1619 echo "${ECHO_T}$ac_cv_build" >&6
1620 build=$ac_cv_build
1621 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1624
1625
1626 echo "$as_me:$LINENO: checking host system type" >&5
1627 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1628 if test "${ac_cv_host+set}" = set; then
1629   echo $ECHO_N "(cached) $ECHO_C" >&6
1630 else
1631   ac_cv_host_alias=$host_alias
1632 test -z "$ac_cv_host_alias" &&
1633   ac_cv_host_alias=$ac_cv_build_alias
1634 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1635   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1637    { (exit 1); exit 1; }; }
1638
1639 fi
1640 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1641 echo "${ECHO_T}$ac_cv_host" >&6
1642 host=$ac_cv_host
1643 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648
1649 SHARED="-shared"
1650 MACOSX=
1651 case $host_os in
1652     *darwin* )
1653         MACOSX=yes
1654         CFLAGS="$CFLAGS"
1655         CXXFLAGS="$CXXFLAGS -fno-rtti"
1656         SHARED="-bundle"
1657         # Use fink packages if available.
1658         #if test -d /sw/include && test -d /sw/lib; then
1659         #    CPPFLAGS="${CPPFLAGS} -I/sw/include"
1660         #    LDFLAGS="${LDFLAGS} -L/sw/lib"
1661         #fi
1662         ;;
1663 esac
1664
1665
1666
1667  ac_ext=c
1668 ac_cpp='$CPP $CPPFLAGS'
1669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1672 if test -n "$ac_tool_prefix"; then
1673   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1674 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_CC+set}" = set; then
1678   echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680   if test -n "$CC"; then
1681   ac_cv_prog_CC="$CC" # Let the user override the test.
1682 else
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 for as_dir in $PATH
1685 do
1686   IFS=$as_save_IFS
1687   test -z "$as_dir" && as_dir=.
1688   for ac_exec_ext in '' $ac_executable_extensions; do
1689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692     break 2
1693   fi
1694 done
1695 done
1696
1697 fi
1698 fi
1699 CC=$ac_cv_prog_CC
1700 if test -n "$CC"; then
1701   echo "$as_me:$LINENO: result: $CC" >&5
1702 echo "${ECHO_T}$CC" >&6
1703 else
1704   echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1706 fi
1707
1708 fi
1709 if test -z "$ac_cv_prog_CC"; then
1710   ac_ct_CC=$CC
1711   # Extract the first word of "gcc", so it can be a program name with args.
1712 set dummy gcc; ac_word=$2
1713 echo "$as_me:$LINENO: checking for $ac_word" >&5
1714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1716   echo $ECHO_N "(cached) $ECHO_C" >&6
1717 else
1718   if test -n "$ac_ct_CC"; then
1719   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1720 else
1721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 for as_dir in $PATH
1723 do
1724   IFS=$as_save_IFS
1725   test -z "$as_dir" && as_dir=.
1726   for ac_exec_ext in '' $ac_executable_extensions; do
1727   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728     ac_cv_prog_ac_ct_CC="gcc"
1729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730     break 2
1731   fi
1732 done
1733 done
1734
1735 fi
1736 fi
1737 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1738 if test -n "$ac_ct_CC"; then
1739   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1740 echo "${ECHO_T}$ac_ct_CC" >&6
1741 else
1742   echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1744 fi
1745
1746   CC=$ac_ct_CC
1747 else
1748   CC="$ac_cv_prog_CC"
1749 fi
1750
1751 if test -z "$CC"; then
1752   if test -n "$ac_tool_prefix"; then
1753   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1754 set dummy ${ac_tool_prefix}cc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_CC+set}" = set; then
1758   echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760   if test -n "$CC"; then
1761   ac_cv_prog_CC="$CC" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
1766   IFS=$as_save_IFS
1767   test -z "$as_dir" && as_dir=.
1768   for ac_exec_ext in '' $ac_executable_extensions; do
1769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770     ac_cv_prog_CC="${ac_tool_prefix}cc"
1771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772     break 2
1773   fi
1774 done
1775 done
1776
1777 fi
1778 fi
1779 CC=$ac_cv_prog_CC
1780 if test -n "$CC"; then
1781   echo "$as_me:$LINENO: result: $CC" >&5
1782 echo "${ECHO_T}$CC" >&6
1783 else
1784   echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1786 fi
1787
1788 fi
1789 if test -z "$ac_cv_prog_CC"; then
1790   ac_ct_CC=$CC
1791   # Extract the first word of "cc", so it can be a program name with args.
1792 set dummy cc; ac_word=$2
1793 echo "$as_me:$LINENO: checking for $ac_word" >&5
1794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1795 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1796   echo $ECHO_N "(cached) $ECHO_C" >&6
1797 else
1798   if test -n "$ac_ct_CC"; then
1799   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1800 else
1801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 for as_dir in $PATH
1803 do
1804   IFS=$as_save_IFS
1805   test -z "$as_dir" && as_dir=.
1806   for ac_exec_ext in '' $ac_executable_extensions; do
1807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1808     ac_cv_prog_ac_ct_CC="cc"
1809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810     break 2
1811   fi
1812 done
1813 done
1814
1815 fi
1816 fi
1817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1818 if test -n "$ac_ct_CC"; then
1819   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1820 echo "${ECHO_T}$ac_ct_CC" >&6
1821 else
1822   echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1824 fi
1825
1826   CC=$ac_ct_CC
1827 else
1828   CC="$ac_cv_prog_CC"
1829 fi
1830
1831 fi
1832 if test -z "$CC"; then
1833   # Extract the first word of "cc", so it can be a program name with args.
1834 set dummy cc; ac_word=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_CC+set}" = set; then
1838   echo $ECHO_N "(cached) $ECHO_C" >&6
1839 else
1840   if test -n "$CC"; then
1841   ac_cv_prog_CC="$CC" # Let the user override the test.
1842 else
1843   ac_prog_rejected=no
1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 for as_dir in $PATH
1846 do
1847   IFS=$as_save_IFS
1848   test -z "$as_dir" && as_dir=.
1849   for ac_exec_ext in '' $ac_executable_extensions; do
1850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1852        ac_prog_rejected=yes
1853        continue
1854      fi
1855     ac_cv_prog_CC="cc"
1856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857     break 2
1858   fi
1859 done
1860 done
1861
1862 if test $ac_prog_rejected = yes; then
1863   # We found a bogon in the path, so make sure we never use it.
1864   set dummy $ac_cv_prog_CC
1865   shift
1866   if test $# != 0; then
1867     # We chose a different compiler from the bogus one.
1868     # However, it has the same basename, so the bogon will be chosen
1869     # first if we set CC to just the basename; use the full file name.
1870     shift
1871     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1872   fi
1873 fi
1874 fi
1875 fi
1876 CC=$ac_cv_prog_CC
1877 if test -n "$CC"; then
1878   echo "$as_me:$LINENO: result: $CC" >&5
1879 echo "${ECHO_T}$CC" >&6
1880 else
1881   echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1883 fi
1884
1885 fi
1886 if test -z "$CC"; then
1887   if test -n "$ac_tool_prefix"; then
1888   for ac_prog in cl
1889   do
1890     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1891 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_CC+set}" = set; then
1895   echo $ECHO_N "(cached) $ECHO_C" >&6
1896 else
1897   if test -n "$CC"; then
1898   ac_cv_prog_CC="$CC" # Let the user override the test.
1899 else
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 for as_dir in $PATH
1902 do
1903   IFS=$as_save_IFS
1904   test -z "$as_dir" && as_dir=.
1905   for ac_exec_ext in '' $ac_executable_extensions; do
1906   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909     break 2
1910   fi
1911 done
1912 done
1913
1914 fi
1915 fi
1916 CC=$ac_cv_prog_CC
1917 if test -n "$CC"; then
1918   echo "$as_me:$LINENO: result: $CC" >&5
1919 echo "${ECHO_T}$CC" >&6
1920 else
1921   echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1923 fi
1924
1925     test -n "$CC" && break
1926   done
1927 fi
1928 if test -z "$CC"; then
1929   ac_ct_CC=$CC
1930   for ac_prog in cl
1931 do
1932   # Extract the first word of "$ac_prog", so it can be a program name with args.
1933 set dummy $ac_prog; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1937   echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939   if test -n "$ac_ct_CC"; then
1940   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1941 else
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1944 do
1945   IFS=$as_save_IFS
1946   test -z "$as_dir" && as_dir=.
1947   for ac_exec_ext in '' $ac_executable_extensions; do
1948   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949     ac_cv_prog_ac_ct_CC="$ac_prog"
1950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951     break 2
1952   fi
1953 done
1954 done
1955
1956 fi
1957 fi
1958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1959 if test -n "$ac_ct_CC"; then
1960   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1961 echo "${ECHO_T}$ac_ct_CC" >&6
1962 else
1963   echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1965 fi
1966
1967   test -n "$ac_ct_CC" && break
1968 done
1969
1970   CC=$ac_ct_CC
1971 fi
1972
1973 fi
1974
1975
1976 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1977 See \`config.log' for more details." >&5
1978 echo "$as_me: error: no acceptable C compiler found in \$PATH
1979 See \`config.log' for more details." >&2;}
1980    { (exit 1); exit 1; }; }
1981
1982 # Provide some information about the compiler.
1983 echo "$as_me:$LINENO:" \
1984      "checking for C compiler version" >&5
1985 ac_compiler=`set X $ac_compile; echo $2`
1986 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1987   (eval $ac_compiler --version </dev/null >&5) 2>&5
1988   ac_status=$?
1989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990   (exit $ac_status); }
1991 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1992   (eval $ac_compiler -v </dev/null >&5) 2>&5
1993   ac_status=$?
1994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995   (exit $ac_status); }
1996 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1997   (eval $ac_compiler -V </dev/null >&5) 2>&5
1998   ac_status=$?
1999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000   (exit $ac_status); }
2001
2002 cat >conftest.$ac_ext <<_ACEOF
2003 /* confdefs.h.  */
2004 _ACEOF
2005 cat confdefs.h >>conftest.$ac_ext
2006 cat >>conftest.$ac_ext <<_ACEOF
2007 /* end confdefs.h.  */
2008
2009 int
2010 main ()
2011 {
2012
2013   ;
2014   return 0;
2015 }
2016 _ACEOF
2017 ac_clean_files_save=$ac_clean_files
2018 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2019 # Try to create an executable without -o first, disregard a.out.
2020 # It will help us diagnose broken compilers, and finding out an intuition
2021 # of exeext.
2022 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2023 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2024 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2025 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2026   (eval $ac_link_default) 2>&5
2027   ac_status=$?
2028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029   (exit $ac_status); }; then
2030   # Find the output, starting from the most likely.  This scheme is
2031 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2032 # resort.
2033
2034 # Be careful to initialize this variable, since it used to be cached.
2035 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2036 ac_cv_exeext=
2037 # b.out is created by i960 compilers.
2038 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2039 do
2040   test -f "$ac_file" || continue
2041   case $ac_file in
2042     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2043         ;;
2044     conftest.$ac_ext )
2045         # This is the source file.
2046         ;;
2047     [ab].out )
2048         # We found the default executable, but exeext='' is most
2049         # certainly right.
2050         break;;
2051     *.* )
2052         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2053         # FIXME: I believe we export ac_cv_exeext for Libtool,
2054         # but it would be cool to find out if it's true.  Does anybody
2055         # maintain Libtool? --akim.
2056         export ac_cv_exeext
2057         break;;
2058     * )
2059         break;;
2060   esac
2061 done
2062 else
2063   echo "$as_me: failed program was:" >&5
2064 sed 's/^/| /' conftest.$ac_ext >&5
2065
2066 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2067 See \`config.log' for more details." >&5
2068 echo "$as_me: error: C compiler cannot create executables
2069 See \`config.log' for more details." >&2;}
2070    { (exit 77); exit 77; }; }
2071 fi
2072
2073 ac_exeext=$ac_cv_exeext
2074 echo "$as_me:$LINENO: result: $ac_file" >&5
2075 echo "${ECHO_T}$ac_file" >&6
2076
2077 # Check the compiler produces executables we can run.  If not, either
2078 # the compiler is broken, or we cross compile.
2079 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2080 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2081 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2082 # If not cross compiling, check that we can run a simple program.
2083 if test "$cross_compiling" != yes; then
2084   if { ac_try='./$ac_file'
2085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086   (eval $ac_try) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }; }; then
2090     cross_compiling=no
2091   else
2092     if test "$cross_compiling" = maybe; then
2093         cross_compiling=yes
2094     else
2095         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2096 If you meant to cross compile, use \`--host'.
2097 See \`config.log' for more details." >&5
2098 echo "$as_me: error: cannot run C compiled programs.
2099 If you meant to cross compile, use \`--host'.
2100 See \`config.log' for more details." >&2;}
2101    { (exit 1); exit 1; }; }
2102     fi
2103   fi
2104 fi
2105 echo "$as_me:$LINENO: result: yes" >&5
2106 echo "${ECHO_T}yes" >&6
2107
2108 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2109 ac_clean_files=$ac_clean_files_save
2110 # Check the compiler produces executables we can run.  If not, either
2111 # the compiler is broken, or we cross compile.
2112 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2113 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2114 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2115 echo "${ECHO_T}$cross_compiling" >&6
2116
2117 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2118 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2120   (eval $ac_link) 2>&5
2121   ac_status=$?
2122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123   (exit $ac_status); }; then
2124   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2125 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2126 # work properly (i.e., refer to `conftest.exe'), while it won't with
2127 # `rm'.
2128 for ac_file in conftest.exe conftest conftest.*; do
2129   test -f "$ac_file" || continue
2130   case $ac_file in
2131     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2132     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2133           export ac_cv_exeext
2134           break;;
2135     * ) break;;
2136   esac
2137 done
2138 else
2139   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2142 See \`config.log' for more details." >&2;}
2143    { (exit 1); exit 1; }; }
2144 fi
2145
2146 rm -f conftest$ac_cv_exeext
2147 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2148 echo "${ECHO_T}$ac_cv_exeext" >&6
2149
2150 rm -f conftest.$ac_ext
2151 EXEEXT=$ac_cv_exeext
2152 ac_exeext=$EXEEXT
2153 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2154 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2155 if test "${ac_cv_objext+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   cat >conftest.$ac_ext <<_ACEOF
2159 /* confdefs.h.  */
2160 _ACEOF
2161 cat confdefs.h >>conftest.$ac_ext
2162 cat >>conftest.$ac_ext <<_ACEOF
2163 /* end confdefs.h.  */
2164
2165 int
2166 main ()
2167 {
2168
2169   ;
2170   return 0;
2171 }
2172 _ACEOF
2173 rm -f conftest.o conftest.obj
2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175   (eval $ac_compile) 2>&5
2176   ac_status=$?
2177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178   (exit $ac_status); }; then
2179   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2180   case $ac_file in
2181     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2182     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2183        break;;
2184   esac
2185 done
2186 else
2187   echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2189
2190 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2193 See \`config.log' for more details." >&2;}
2194    { (exit 1); exit 1; }; }
2195 fi
2196
2197 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2198 fi
2199 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2200 echo "${ECHO_T}$ac_cv_objext" >&6
2201 OBJEXT=$ac_cv_objext
2202 ac_objext=$OBJEXT
2203 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2204 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2205 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2206   echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208   cat >conftest.$ac_ext <<_ACEOF
2209 /* confdefs.h.  */
2210 _ACEOF
2211 cat confdefs.h >>conftest.$ac_ext
2212 cat >>conftest.$ac_ext <<_ACEOF
2213 /* end confdefs.h.  */
2214
2215 int
2216 main ()
2217 {
2218 #ifndef __GNUC__
2219        choke me
2220 #endif
2221
2222   ;
2223   return 0;
2224 }
2225 _ACEOF
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228   (eval $ac_compile) 2>conftest.er1
2229   ac_status=$?
2230   grep -v '^ *+' conftest.er1 >conftest.err
2231   rm -f conftest.er1
2232   cat conftest.err >&5
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); } &&
2235          { ac_try='test -z "$ac_c_werror_flag"
2236                          || test ! -s conftest.err'
2237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238   (eval $ac_try) 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); }; } &&
2242          { ac_try='test -s conftest.$ac_objext'
2243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244   (eval $ac_try) 2>&5
2245   ac_status=$?
2246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247   (exit $ac_status); }; }; then
2248   ac_compiler_gnu=yes
2249 else
2250   echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2252
2253 ac_compiler_gnu=no
2254 fi
2255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2256 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2257
2258 fi
2259 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2260 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2261 GCC=`test $ac_compiler_gnu = yes && echo yes`
2262 ac_test_CFLAGS=${CFLAGS+set}
2263 ac_save_CFLAGS=$CFLAGS
2264 CFLAGS="-g"
2265 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2266 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2267 if test "${ac_cv_prog_cc_g+set}" = set; then
2268   echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270   cat >conftest.$ac_ext <<_ACEOF
2271 /* confdefs.h.  */
2272 _ACEOF
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h.  */
2276
2277 int
2278 main ()
2279 {
2280
2281   ;
2282   return 0;
2283 }
2284 _ACEOF
2285 rm -f conftest.$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287   (eval $ac_compile) 2>conftest.er1
2288   ac_status=$?
2289   grep -v '^ *+' conftest.er1 >conftest.err
2290   rm -f conftest.er1
2291   cat conftest.err >&5
2292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293   (exit $ac_status); } &&
2294          { ac_try='test -z "$ac_c_werror_flag"
2295                          || test ! -s conftest.err'
2296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297   (eval $ac_try) 2>&5
2298   ac_status=$?
2299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300   (exit $ac_status); }; } &&
2301          { ac_try='test -s conftest.$ac_objext'
2302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303   (eval $ac_try) 2>&5
2304   ac_status=$?
2305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306   (exit $ac_status); }; }; then
2307   ac_cv_prog_cc_g=yes
2308 else
2309   echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2311
2312 ac_cv_prog_cc_g=no
2313 fi
2314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2315 fi
2316 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2317 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2318 if test "$ac_test_CFLAGS" = set; then
2319   CFLAGS=$ac_save_CFLAGS
2320 elif test $ac_cv_prog_cc_g = yes; then
2321   if test "$GCC" = yes; then
2322     CFLAGS="-g -O2"
2323   else
2324     CFLAGS="-g"
2325   fi
2326 else
2327   if test "$GCC" = yes; then
2328     CFLAGS="-O2"
2329   else
2330     CFLAGS=
2331   fi
2332 fi
2333 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2334 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2335 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2336   echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338   ac_cv_prog_cc_stdc=no
2339 ac_save_CC=$CC
2340 cat >conftest.$ac_ext <<_ACEOF
2341 /* confdefs.h.  */
2342 _ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h.  */
2346 #include <stdarg.h>
2347 #include <stdio.h>
2348 #include <sys/types.h>
2349 #include <sys/stat.h>
2350 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2351 struct buf { int x; };
2352 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2353 static char *e (p, i)
2354      char **p;
2355      int i;
2356 {
2357   return p[i];
2358 }
2359 static char *f (char * (*g) (char **, int), char **p, ...)
2360 {
2361   char *s;
2362   va_list v;
2363   va_start (v,p);
2364   s = g (p, va_arg (v,int));
2365   va_end (v);
2366   return s;
2367 }
2368
2369 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2370    function prototypes and stuff, but not '\xHH' hex character constants.
2371    These don't provoke an error unfortunately, instead are silently treated
2372    as 'x'.  The following induces an error, until -std1 is added to get
2373    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2374    array size at least.  It's necessary to write '\x00'==0 to get something
2375    that's true only with -std1.  */
2376 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2377
2378 int test (int i, double x);
2379 struct s1 {int (*f) (int a);};
2380 struct s2 {int (*f) (double a);};
2381 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2382 int argc;
2383 char **argv;
2384 int
2385 main ()
2386 {
2387 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2388   ;
2389   return 0;
2390 }
2391 _ACEOF
2392 # Don't try gcc -ansi; that turns off useful extensions and
2393 # breaks some systems' header files.
2394 # AIX                   -qlanglvl=ansi
2395 # Ultrix and OSF/1      -std1
2396 # HP-UX 10.20 and later -Ae
2397 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2398 # SVR4                  -Xc -D__EXTENSIONS__
2399 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2400 do
2401   CC="$ac_save_CC $ac_arg"
2402   rm -f conftest.$ac_objext
2403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404   (eval $ac_compile) 2>conftest.er1
2405   ac_status=$?
2406   grep -v '^ *+' conftest.er1 >conftest.err
2407   rm -f conftest.er1
2408   cat conftest.err >&5
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); } &&
2411          { ac_try='test -z "$ac_c_werror_flag"
2412                          || test ! -s conftest.err'
2413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414   (eval $ac_try) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }; } &&
2418          { ac_try='test -s conftest.$ac_objext'
2419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420   (eval $ac_try) 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; }; then
2424   ac_cv_prog_cc_stdc=$ac_arg
2425 break
2426 else
2427   echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2429
2430 fi
2431 rm -f conftest.err conftest.$ac_objext
2432 done
2433 rm -f conftest.$ac_ext conftest.$ac_objext
2434 CC=$ac_save_CC
2435
2436 fi
2437
2438 case "x$ac_cv_prog_cc_stdc" in
2439   x|xno)
2440     echo "$as_me:$LINENO: result: none needed" >&5
2441 echo "${ECHO_T}none needed" >&6 ;;
2442   *)
2443     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2444 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2445     CC="$CC $ac_cv_prog_cc_stdc" ;;
2446 esac
2447
2448 # Some people use a C++ compiler to compile C.  Since we use `exit',
2449 # in C++ we need to declare it.  In case someone uses the same compiler
2450 # for both compiling C and C++ we need to have the C++ compiler decide
2451 # the declaration of exit, since it's the most demanding environment.
2452 cat >conftest.$ac_ext <<_ACEOF
2453 #ifndef __cplusplus
2454   choke me
2455 #endif
2456 _ACEOF
2457 rm -f conftest.$ac_objext
2458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459   (eval $ac_compile) 2>conftest.er1
2460   ac_status=$?
2461   grep -v '^ *+' conftest.er1 >conftest.err
2462   rm -f conftest.er1
2463   cat conftest.err >&5
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); } &&
2466          { ac_try='test -z "$ac_c_werror_flag"
2467                          || test ! -s conftest.err'
2468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469   (eval $ac_try) 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); }; } &&
2473          { ac_try='test -s conftest.$ac_objext'
2474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475   (eval $ac_try) 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); }; }; then
2479   for ac_declaration in \
2480    '' \
2481    'extern "C" void std::exit (int) throw (); using std::exit;' \
2482    'extern "C" void std::exit (int); using std::exit;' \
2483    'extern "C" void exit (int) throw ();' \
2484    'extern "C" void exit (int);' \
2485    'void exit (int);'
2486 do
2487   cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493 $ac_declaration
2494 #include <stdlib.h>
2495 int
2496 main ()
2497 {
2498 exit (42);
2499   ;
2500   return 0;
2501 }
2502 _ACEOF
2503 rm -f conftest.$ac_objext
2504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505   (eval $ac_compile) 2>conftest.er1
2506   ac_status=$?
2507   grep -v '^ *+' conftest.er1 >conftest.err
2508   rm -f conftest.er1
2509   cat conftest.err >&5
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); } &&
2512          { ac_try='test -z "$ac_c_werror_flag"
2513                          || test ! -s conftest.err'
2514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515   (eval $ac_try) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; } &&
2519          { ac_try='test -s conftest.$ac_objext'
2520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521   (eval $ac_try) 2>&5
2522   ac_status=$?
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); }; }; then
2525   :
2526 else
2527   echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2529
2530 continue
2531 fi
2532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2533   cat >conftest.$ac_ext <<_ACEOF
2534 /* confdefs.h.  */
2535 _ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h.  */
2539 $ac_declaration
2540 int
2541 main ()
2542 {
2543 exit (42);
2544   ;
2545   return 0;
2546 }
2547 _ACEOF
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550   (eval $ac_compile) 2>conftest.er1
2551   ac_status=$?
2552   grep -v '^ *+' conftest.er1 >conftest.err
2553   rm -f conftest.er1
2554   cat conftest.err >&5
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); } &&
2557          { ac_try='test -z "$ac_c_werror_flag"
2558                          || test ! -s conftest.err'
2559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560   (eval $ac_try) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }; } &&
2564          { ac_try='test -s conftest.$ac_objext'
2565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566   (eval $ac_try) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; }; then
2570   break
2571 else
2572   echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2574
2575 fi
2576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2577 done
2578 rm -f conftest*
2579 if test -n "$ac_declaration"; then
2580   echo '#ifdef __cplusplus' >>confdefs.h
2581   echo $ac_declaration      >>confdefs.h
2582   echo '#endif'             >>confdefs.h
2583 fi
2584
2585 else
2586   echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2588
2589 fi
2590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2591 ac_ext=c
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596
2597  ac_ext=cc
2598 ac_cpp='$CXXCPP $CPPFLAGS'
2599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2602 if test -n "$ac_tool_prefix"; then
2603   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2604   do
2605     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2607 echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2609 if test "${ac_cv_prog_CXX+set}" = set; then
2610   echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612   if test -n "$CXX"; then
2613   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618   IFS=$as_save_IFS
2619   test -z "$as_dir" && as_dir=.
2620   for ac_exec_ext in '' $ac_executable_extensions; do
2621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624     break 2
2625   fi
2626 done
2627 done
2628
2629 fi
2630 fi
2631 CXX=$ac_cv_prog_CXX
2632 if test -n "$CXX"; then
2633   echo "$as_me:$LINENO: result: $CXX" >&5
2634 echo "${ECHO_T}$CXX" >&6
2635 else
2636   echo "$as_me:$LINENO: result: no" >&5
2637 echo "${ECHO_T}no" >&6
2638 fi
2639
2640     test -n "$CXX" && break
2641   done
2642 fi
2643 if test -z "$CXX"; then
2644   ac_ct_CXX=$CXX
2645   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2646 do
2647   # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2651 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2652   echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654   if test -n "$ac_ct_CXX"; then
2655   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660   IFS=$as_save_IFS
2661   test -z "$as_dir" && as_dir=.
2662   for ac_exec_ext in '' $ac_executable_extensions; do
2663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664     ac_cv_prog_ac_ct_CXX="$ac_prog"
2665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666     break 2
2667   fi
2668 done
2669 done
2670
2671 fi
2672 fi
2673 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2674 if test -n "$ac_ct_CXX"; then
2675   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2676 echo "${ECHO_T}$ac_ct_CXX" >&6
2677 else
2678   echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6
2680 fi
2681
2682   test -n "$ac_ct_CXX" && break
2683 done
2684 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2685
2686   CXX=$ac_ct_CXX
2687 fi
2688
2689
2690 # Provide some information about the compiler.
2691 echo "$as_me:$LINENO:" \
2692      "checking for C++ compiler version" >&5
2693 ac_compiler=`set X $ac_compile; echo $2`
2694 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2695   (eval $ac_compiler --version </dev/null >&5) 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); }
2699 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2700   (eval $ac_compiler -v </dev/null >&5) 2>&5
2701   ac_status=$?
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); }
2704 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2705   (eval $ac_compiler -V </dev/null >&5) 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); }
2709
2710 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2711 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2712 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2713   echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715   cat >conftest.$ac_ext <<_ACEOF
2716 /* confdefs.h.  */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h.  */
2721
2722 int
2723 main ()
2724 {
2725 #ifndef __GNUC__
2726        choke me
2727 #endif
2728
2729   ;
2730   return 0;
2731 }
2732 _ACEOF
2733 rm -f conftest.$ac_objext
2734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2735   (eval $ac_compile) 2>conftest.er1
2736   ac_status=$?
2737   grep -v '^ *+' conftest.er1 >conftest.err
2738   rm -f conftest.er1
2739   cat conftest.err >&5
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); } &&
2742          { ac_try='test -z "$ac_cxx_werror_flag"
2743                          || test ! -s conftest.err'
2744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745   (eval $ac_try) 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }; } &&
2749          { ac_try='test -s conftest.$ac_objext'
2750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751   (eval $ac_try) 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }; }; then
2755   ac_compiler_gnu=yes
2756 else
2757   echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2759
2760 ac_compiler_gnu=no
2761 fi
2762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2763 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2764
2765 fi
2766 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2767 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2768 GXX=`test $ac_compiler_gnu = yes && echo yes`
2769 ac_test_CXXFLAGS=${CXXFLAGS+set}
2770 ac_save_CXXFLAGS=$CXXFLAGS
2771 CXXFLAGS="-g"
2772 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2773 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2774 if test "${ac_cv_prog_cxx_g+set}" = set; then
2775   echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777   cat >conftest.$ac_ext <<_ACEOF
2778 /* confdefs.h.  */
2779 _ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h.  */
2783
2784 int
2785 main ()
2786 {
2787
2788   ;
2789   return 0;
2790 }
2791 _ACEOF
2792 rm -f conftest.$ac_objext
2793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794   (eval $ac_compile) 2>conftest.er1
2795   ac_status=$?
2796   grep -v '^ *+' conftest.er1 >conftest.err
2797   rm -f conftest.er1
2798   cat conftest.err >&5
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); } &&
2801          { ac_try='test -z "$ac_cxx_werror_flag"
2802                          || test ! -s conftest.err'
2803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804   (eval $ac_try) 2>&5
2805   ac_status=$?
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); }; } &&
2808          { ac_try='test -s conftest.$ac_objext'
2809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810   (eval $ac_try) 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }; }; then
2814   ac_cv_prog_cxx_g=yes
2815 else
2816   echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2818
2819 ac_cv_prog_cxx_g=no
2820 fi
2821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2822 fi
2823 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2824 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2825 if test "$ac_test_CXXFLAGS" = set; then
2826   CXXFLAGS=$ac_save_CXXFLAGS
2827 elif test $ac_cv_prog_cxx_g = yes; then
2828   if test "$GXX" = yes; then
2829     CXXFLAGS="-g -O2"
2830   else
2831     CXXFLAGS="-g"
2832   fi
2833 else
2834   if test "$GXX" = yes; then
2835     CXXFLAGS="-O2"
2836   else
2837     CXXFLAGS=
2838   fi
2839 fi
2840 for ac_declaration in \
2841    '' \
2842    'extern "C" void std::exit (int) throw (); using std::exit;' \
2843    'extern "C" void std::exit (int); using std::exit;' \
2844    'extern "C" void exit (int) throw ();' \
2845    'extern "C" void exit (int);' \
2846    'void exit (int);'
2847 do
2848   cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h.  */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h.  */
2854 $ac_declaration
2855 #include <stdlib.h>
2856 int
2857 main ()
2858 {
2859 exit (42);
2860   ;
2861   return 0;
2862 }
2863 _ACEOF
2864 rm -f conftest.$ac_objext
2865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866   (eval $ac_compile) 2>conftest.er1
2867   ac_status=$?
2868   grep -v '^ *+' conftest.er1 >conftest.err
2869   rm -f conftest.er1
2870   cat conftest.err >&5
2871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872   (exit $ac_status); } &&
2873          { ac_try='test -z "$ac_cxx_werror_flag"
2874                          || test ! -s conftest.err'
2875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876   (eval $ac_try) 2>&5
2877   ac_status=$?
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); }; } &&
2880          { ac_try='test -s conftest.$ac_objext'
2881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882   (eval $ac_try) 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }; }; then
2886   :
2887 else
2888   echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2890
2891 continue
2892 fi
2893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2894   cat >conftest.$ac_ext <<_ACEOF
2895 /* confdefs.h.  */
2896 _ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h.  */
2900 $ac_declaration
2901 int
2902 main ()
2903 {
2904 exit (42);
2905   ;
2906   return 0;
2907 }
2908 _ACEOF
2909 rm -f conftest.$ac_objext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2911   (eval $ac_compile) 2>conftest.er1
2912   ac_status=$?
2913   grep -v '^ *+' conftest.er1 >conftest.err
2914   rm -f conftest.er1
2915   cat conftest.err >&5
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); } &&
2918          { ac_try='test -z "$ac_cxx_werror_flag"
2919                          || test ! -s conftest.err'
2920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921   (eval $ac_try) 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }; } &&
2925          { ac_try='test -s conftest.$ac_objext'
2926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927   (eval $ac_try) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }; }; then
2931   break
2932 else
2933   echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2935
2936 fi
2937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2938 done
2939 rm -f conftest*
2940 if test -n "$ac_declaration"; then
2941   echo '#ifdef __cplusplus' >>confdefs.h
2942   echo $ac_declaration      >>confdefs.h
2943   echo '#endif'             >>confdefs.h
2944 fi
2945
2946 ac_ext=c
2947 ac_cpp='$CPP $CPPFLAGS'
2948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951
2952
2953 if test "x$CHECKMEM" '!=' "x";then
2954     CC="ccmalloc $CC"
2955     CXX="ccmalloc $CXX"
2956     #echo running again
2957     #unset ac_cv_prog_CC
2958     #unset ac_cv_prog_CXX
2959     #AC_PROG_CC
2960     #AC_PROG_CXX
2961 fi
2962  ac_ext=c
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2968 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2969 # On Suns, sometimes $CPP names a directory.
2970 if test -n "$CPP" && test -d "$CPP"; then
2971   CPP=
2972 fi
2973 if test -z "$CPP"; then
2974   if test "${ac_cv_prog_CPP+set}" = set; then
2975   echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977       # Double quotes because CPP needs to be expanded
2978     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2979     do
2980       ac_preproc_ok=false
2981 for ac_c_preproc_warn_flag in '' yes
2982 do
2983   # Use a header file that comes with gcc, so configuring glibc
2984   # with a fresh cross-compiler works.
2985   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2986   # <limits.h> exists even on freestanding compilers.
2987   # On the NeXT, cc -E runs the code through the compiler's parser,
2988   # not just through cpp. "Syntax error" is here to catch this case.
2989   cat >conftest.$ac_ext <<_ACEOF
2990 /* confdefs.h.  */
2991 _ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h.  */
2995 #ifdef __STDC__
2996 # include <limits.h>
2997 #else
2998 # include <assert.h>
2999 #endif
3000                      Syntax error
3001 _ACEOF
3002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3003   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3004   ac_status=$?
3005   grep -v '^ *+' conftest.er1 >conftest.err
3006   rm -f conftest.er1
3007   cat conftest.err >&5
3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009   (exit $ac_status); } >/dev/null; then
3010   if test -s conftest.err; then
3011     ac_cpp_err=$ac_c_preproc_warn_flag
3012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3013   else
3014     ac_cpp_err=
3015   fi
3016 else
3017   ac_cpp_err=yes
3018 fi
3019 if test -z "$ac_cpp_err"; then
3020   :
3021 else
3022   echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3024
3025   # Broken: fails on valid input.
3026 continue
3027 fi
3028 rm -f conftest.err conftest.$ac_ext
3029
3030   # OK, works on sane cases.  Now check whether non-existent headers
3031   # can be detected and how.
3032   cat >conftest.$ac_ext <<_ACEOF
3033 /* confdefs.h.  */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h.  */
3038 #include <ac_nonexistent.h>
3039 _ACEOF
3040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3041   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3042   ac_status=$?
3043   grep -v '^ *+' conftest.er1 >conftest.err
3044   rm -f conftest.er1
3045   cat conftest.err >&5
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); } >/dev/null; then
3048   if test -s conftest.err; then
3049     ac_cpp_err=$ac_c_preproc_warn_flag
3050     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3051   else
3052     ac_cpp_err=
3053   fi
3054 else
3055   ac_cpp_err=yes
3056 fi
3057 if test -z "$ac_cpp_err"; then
3058   # Broken: success on invalid input.
3059 continue
3060 else
3061   echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064   # Passes both tests.
3065 ac_preproc_ok=:
3066 break
3067 fi
3068 rm -f conftest.err conftest.$ac_ext
3069
3070 done
3071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3072 rm -f conftest.err conftest.$ac_ext
3073 if $ac_preproc_ok; then
3074   break
3075 fi
3076
3077     done
3078     ac_cv_prog_CPP=$CPP
3079
3080 fi
3081   CPP=$ac_cv_prog_CPP
3082 else
3083   ac_cv_prog_CPP=$CPP
3084 fi
3085 echo "$as_me:$LINENO: result: $CPP" >&5
3086 echo "${ECHO_T}$CPP" >&6
3087 ac_preproc_ok=false
3088 for ac_c_preproc_warn_flag in '' yes
3089 do
3090   # Use a header file that comes with gcc, so configuring glibc
3091   # with a fresh cross-compiler works.
3092   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3093   # <limits.h> exists even on freestanding compilers.
3094   # On the NeXT, cc -E runs the code through the compiler's parser,
3095   # not just through cpp. "Syntax error" is here to catch this case.
3096   cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h.  */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h.  */
3102 #ifdef __STDC__
3103 # include <limits.h>
3104 #else
3105 # include <assert.h>
3106 #endif
3107                      Syntax error
3108 _ACEOF
3109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3110   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3111   ac_status=$?
3112   grep -v '^ *+' conftest.er1 >conftest.err
3113   rm -f conftest.er1
3114   cat conftest.err >&5
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); } >/dev/null; then
3117   if test -s conftest.err; then
3118     ac_cpp_err=$ac_c_preproc_warn_flag
3119     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3120   else
3121     ac_cpp_err=
3122   fi
3123 else
3124   ac_cpp_err=yes
3125 fi
3126 if test -z "$ac_cpp_err"; then
3127   :
3128 else
3129   echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132   # Broken: fails on valid input.
3133 continue
3134 fi
3135 rm -f conftest.err conftest.$ac_ext
3136
3137   # OK, works on sane cases.  Now check whether non-existent headers
3138   # can be detected and how.
3139   cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h.  */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h.  */
3145 #include <ac_nonexistent.h>
3146 _ACEOF
3147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3148   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3149   ac_status=$?
3150   grep -v '^ *+' conftest.er1 >conftest.err
3151   rm -f conftest.er1
3152   cat conftest.err >&5
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); } >/dev/null; then
3155   if test -s conftest.err; then
3156     ac_cpp_err=$ac_c_preproc_warn_flag
3157     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3158   else
3159     ac_cpp_err=
3160   fi
3161 else
3162   ac_cpp_err=yes
3163 fi
3164 if test -z "$ac_cpp_err"; then
3165   # Broken: success on invalid input.
3166 continue
3167 else
3168   echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171   # Passes both tests.
3172 ac_preproc_ok=:
3173 break
3174 fi
3175 rm -f conftest.err conftest.$ac_ext
3176
3177 done
3178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3179 rm -f conftest.err conftest.$ac_ext
3180 if $ac_preproc_ok; then
3181   :
3182 else
3183   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3184 See \`config.log' for more details." >&5
3185 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3186 See \`config.log' for more details." >&2;}
3187    { (exit 1); exit 1; }; }
3188 fi
3189
3190 ac_ext=c
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195
3196
3197  if test -n "$ac_tool_prefix"; then
3198   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3199 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3200 echo "$as_me:$LINENO: checking for $ac_word" >&5
3201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3202 if test "${ac_cv_prog_RANLIB+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205   if test -n "$RANLIB"; then
3206   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3210 do
3211   IFS=$as_save_IFS
3212   test -z "$as_dir" && as_dir=.
3213   for ac_exec_ext in '' $ac_executable_extensions; do
3214   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217     break 2
3218   fi
3219 done
3220 done
3221
3222 fi
3223 fi
3224 RANLIB=$ac_cv_prog_RANLIB
3225 if test -n "$RANLIB"; then
3226   echo "$as_me:$LINENO: result: $RANLIB" >&5
3227 echo "${ECHO_T}$RANLIB" >&6
3228 else
3229   echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6
3231 fi
3232
3233 fi
3234 if test -z "$ac_cv_prog_RANLIB"; then
3235   ac_ct_RANLIB=$RANLIB
3236   # Extract the first word of "ranlib", so it can be a program name with args.
3237 set dummy ranlib; ac_word=$2
3238 echo "$as_me:$LINENO: checking for $ac_word" >&5
3239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3240 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3241   echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243   if test -n "$ac_ct_RANLIB"; then
3244   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249   IFS=$as_save_IFS
3250   test -z "$as_dir" && as_dir=.
3251   for ac_exec_ext in '' $ac_executable_extensions; do
3252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253     ac_cv_prog_ac_ct_RANLIB="ranlib"
3254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255     break 2
3256   fi
3257 done
3258 done
3259
3260   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3261 fi
3262 fi
3263 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3264 if test -n "$ac_ct_RANLIB"; then
3265   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3266 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3267 else
3268   echo "$as_me:$LINENO: result: no" >&5
3269 echo "${ECHO_T}no" >&6
3270 fi
3271
3272   RANLIB=$ac_ct_RANLIB
3273 else
3274   RANLIB="$ac_cv_prog_RANLIB"
3275 fi
3276
3277  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3278 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3279 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3280 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3281   echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283   cat >conftest.make <<\_ACEOF
3284 all:
3285         @echo 'ac_maketemp="$(MAKE)"'
3286 _ACEOF
3287 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3288 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3289 if test -n "$ac_maketemp"; then
3290   eval ac_cv_prog_make_${ac_make}_set=yes
3291 else
3292   eval ac_cv_prog_make_${ac_make}_set=no
3293 fi
3294 rm -f conftest.make
3295 fi
3296 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3297   echo "$as_me:$LINENO: result: yes" >&5
3298 echo "${ECHO_T}yes" >&6
3299   SET_MAKE=
3300 else
3301   echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3303   SET_MAKE="MAKE=${MAKE-make}"
3304 fi
3305
3306  # Find a good install program.  We prefer a C program (faster),
3307 # so one script is as good as another.  But avoid the broken or
3308 # incompatible versions:
3309 # SysV /etc/install, /usr/sbin/install
3310 # SunOS /usr/etc/install
3311 # IRIX /sbin/install
3312 # AIX /bin/install
3313 # AmigaOS /C/install, which installs bootblocks on floppy discs
3314 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3315 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3316 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3317 # OS/2's system install, which has a completely different semantic
3318 # ./install, which can be erroneously created by make from ./install.sh.
3319 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3320 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3321 if test -z "$INSTALL"; then
3322 if test "${ac_cv_path_install+set}" = set; then
3323   echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328   IFS=$as_save_IFS
3329   test -z "$as_dir" && as_dir=.
3330   # Account for people who put trailing slashes in PATH elements.
3331 case $as_dir/ in
3332   ./ | .// | /cC/* | \
3333   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3334   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3335   /usr/ucb/* ) ;;
3336   *)
3337     # OSF1 and SCO ODT 3.0 have their own names for install.
3338     # Don't use installbsd from OSF since it installs stuff as root
3339     # by default.
3340     for ac_prog in ginstall scoinst install; do
3341       for ac_exec_ext in '' $ac_executable_extensions; do
3342         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3343           if test $ac_prog = install &&
3344             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3345             # AIX install.  It has an incompatible calling convention.
3346             :
3347           elif test $ac_prog = install &&
3348             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3349             # program-specific install script used by HP pwplus--don't use.
3350             :
3351           else
3352             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3353             break 3
3354           fi
3355         fi
3356       done
3357     done
3358     ;;
3359 esac
3360 done
3361
3362
3363 fi
3364   if test "${ac_cv_path_install+set}" = set; then
3365     INSTALL=$ac_cv_path_install
3366   else
3367     # As a last resort, use the slow shell script.  We don't cache a
3368     # path for INSTALL within a source directory, because that will
3369     # break other packages using the cache if that directory is
3370     # removed, or if the path is relative.
3371     INSTALL=$ac_install_sh
3372   fi
3373 fi
3374 echo "$as_me:$LINENO: result: $INSTALL" >&5
3375 echo "${ECHO_T}$INSTALL" >&6
3376
3377 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3378 # It thinks the first close brace ends the variable substitution.
3379 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3380
3381 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3382
3383 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3384
3385  echo "$as_me:$LINENO: checking whether ln -s works" >&5
3386 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3387 LN_S=$as_ln_s
3388 if test "$LN_S" = "ln -s"; then
3389   echo "$as_me:$LINENO: result: yes" >&5
3390 echo "${ECHO_T}yes" >&6
3391 else
3392   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3393 echo "${ECHO_T}no, using $LN_S" >&6
3394 fi
3395
3396  # Check whether --enable-shared or --disable-shared was given.
3397 if test "${enable_shared+set}" = set; then
3398   enableval="$enable_shared"
3399   p=${PACKAGE-default}
3400 case $enableval in
3401 yes) enable_shared=yes ;;
3402 no) enable_shared=no ;;
3403 *)
3404   enable_shared=no
3405   # Look at the argument we got.  We use all the common list separators.
3406   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3407   for pkg in $enableval; do
3408     if test "X$pkg" = "X$p"; then
3409       enable_shared=yes
3410     fi
3411   done
3412   IFS="$ac_save_ifs"
3413   ;;
3414 esac
3415 else
3416   enable_shared=yes
3417 fi;
3418 # Check whether --enable-static or --disable-static was given.
3419 if test "${enable_static+set}" = set; then
3420   enableval="$enable_static"
3421   p=${PACKAGE-default}
3422 case $enableval in
3423 yes) enable_static=yes ;;
3424 no) enable_static=no ;;
3425 *)
3426   enable_static=no
3427   # Look at the argument we got.  We use all the common list separators.
3428   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3429   for pkg in $enableval; do
3430     if test "X$pkg" = "X$p"; then
3431       enable_static=yes
3432     fi
3433   done
3434   IFS="$ac_save_ifs"
3435   ;;
3436 esac
3437 else
3438   enable_static=yes
3439 fi;
3440 # Check whether --enable-fast-install or --disable-fast-install was given.
3441 if test "${enable_fast_install+set}" = set; then
3442   enableval="$enable_fast_install"
3443   p=${PACKAGE-default}
3444 case $enableval in
3445 yes) enable_fast_install=yes ;;
3446 no) enable_fast_install=no ;;
3447 *)
3448   enable_fast_install=no
3449   # Look at the argument we got.  We use all the common list separators.
3450   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3451   for pkg in $enableval; do
3452     if test "X$pkg" = "X$p"; then
3453       enable_fast_install=yes
3454     fi
3455   done
3456   IFS="$ac_save_ifs"
3457   ;;
3458 esac
3459 else
3460   enable_fast_install=yes
3461 fi;
3462 # Find the correct PATH separator.  Usually this is `:', but
3463 # DJGPP uses `;' like DOS.
3464 if test "X${PATH_SEPARATOR+set}" != Xset; then
3465   UNAME=${UNAME-`uname 2>/dev/null`}
3466   case X$UNAME in
3467     *-DOS) lt_cv_sys_path_separator=';' ;;
3468     *)     lt_cv_sys_path_separator=':' ;;
3469   esac
3470   PATH_SEPARATOR=$lt_cv_sys_path_separator
3471 fi
3472
3473
3474 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3475 if test "${with_gnu_ld+set}" = set; then
3476   withval="$with_gnu_ld"
3477   test "$withval" = no || with_gnu_ld=yes
3478 else
3479   with_gnu_ld=no
3480 fi;
3481 ac_prog=ld
3482 if test "$GCC" = yes; then
3483   # Check if gcc -print-prog-name=ld gives a path.
3484   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3485 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3486   case $host in
3487   *-*-mingw*)
3488     # gcc leaves a trailing carriage return which upsets mingw
3489     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3490   *)
3491     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3492   esac
3493   case $ac_prog in
3494     # Accept absolute paths.
3495     [\\/]* | [A-Za-z]:[\\/]*)
3496       re_direlt='/[^/][^/]*/\.\./'
3497       # Canonicalize the path of ld
3498       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3499       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3500         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3501       done
3502       test -z "$LD" && LD="$ac_prog"
3503       ;;
3504   "")
3505     # If it fails, then pretend we aren't using GCC.
3506     ac_prog=ld
3507     ;;
3508   *)
3509     # If it is relative, then search for the first ld in PATH.
3510     with_gnu_ld=unknown
3511     ;;
3512   esac
3513 elif test "$with_gnu_ld" = yes; then
3514   echo "$as_me:$LINENO: checking for GNU ld" >&5
3515 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3516 else
3517   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3518 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3519 fi
3520 if test "${lt_cv_path_LD+set}" = set; then
3521   echo $ECHO_N "(cached) $ECHO_C" >&6
3522 else
3523   if test -z "$LD"; then
3524   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3525   for ac_dir in $PATH; do
3526     test -z "$ac_dir" && ac_dir=.
3527     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3528       lt_cv_path_LD="$ac_dir/$ac_prog"
3529       # Check to see if the program is GNU ld.  I'd rather use --version,
3530       # but apparently some GNU ld's only accept -v.
3531       # Break only if it was the GNU/non-GNU ld that we prefer.
3532       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3533         test "$with_gnu_ld" != no && break
3534       else
3535         test "$with_gnu_ld" != yes && break
3536       fi
3537     fi
3538   done
3539   IFS="$ac_save_ifs"
3540 else
3541   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3542 fi
3543 fi
3544
3545 LD="$lt_cv_path_LD"
3546 if test -n "$LD"; then
3547   echo "$as_me:$LINENO: result: $LD" >&5
3548 echo "${ECHO_T}$LD" >&6
3549 else
3550   echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3552 fi
3553 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3554 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3555    { (exit 1); exit 1; }; }
3556 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3557 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3558 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3559   echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3562 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3563   lt_cv_prog_gnu_ld=yes
3564 else
3565   lt_cv_prog_gnu_ld=no
3566 fi
3567 fi
3568 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3569 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3570 with_gnu_ld=$lt_cv_prog_gnu_ld
3571
3572
3573 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3574 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3575 if test "${lt_cv_ld_reload_flag+set}" = set; then
3576   echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578   lt_cv_ld_reload_flag='-r'
3579 fi
3580 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3581 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3582 reload_flag=$lt_cv_ld_reload_flag
3583 test -n "$reload_flag" && reload_flag=" $reload_flag"
3584
3585 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3586 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3587 if test "${lt_cv_path_NM+set}" = set; then
3588   echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590   if test -n "$NM"; then
3591   # Let the user override the test.
3592   lt_cv_path_NM="$NM"
3593 else
3594   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3595   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3596     test -z "$ac_dir" && ac_dir=.
3597     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3598     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3599       # Check to see if the nm accepts a BSD-compat flag.
3600       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3601       #   nm: unknown option "B" ignored
3602       # Tru64's nm complains that /dev/null is an invalid object file
3603       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3604         lt_cv_path_NM="$tmp_nm -B"
3605         break
3606       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3607         lt_cv_path_NM="$tmp_nm -p"
3608         break
3609       else
3610         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3611         continue # so that we can try to find one that supports BSD flags
3612       fi
3613     fi
3614   done
3615   IFS="$ac_save_ifs"
3616   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3617 fi
3618 fi
3619
3620 NM="$lt_cv_path_NM"
3621 echo "$as_me:$LINENO: result: $NM" >&5
3622 echo "${ECHO_T}$NM" >&6
3623
3624 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3625 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3626 if test "${lt_cv_path_SED+set}" = set; then
3627   echo $ECHO_N "(cached) $ECHO_C" >&6
3628 else
3629   # Loop through the user's path and test for sed and gsed.
3630 # Then use that list of sed's as ones to test for truncation.
3631 as_executable_p="test -f"
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635   IFS=$as_save_IFS
3636   test -z "$as_dir" && as_dir=.
3637   for ac_prog in sed gsed; do
3638     for ac_exec_ext in '' $ac_executable_extensions; do
3639       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3640         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3641       fi
3642     done
3643   done
3644 done
3645
3646   # Create a temporary directory, and hook for its removal unless debugging.
3647 $debug ||
3648 {
3649   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3650   trap '{ (exit 1); exit 1; }' 1 2 13 15
3651 }
3652
3653 # Create a (secure) tmp directory for tmp files.
3654 : ${TMPDIR=/tmp}
3655 {
3656   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3657   test -n "$tmp" && test -d "$tmp"
3658 }  ||
3659 {
3660   tmp=$TMPDIR/sed$$-$RANDOM
3661   (umask 077 && mkdir $tmp)
3662 } ||
3663 {
3664    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3665    { (exit 1); exit 1; }
3666 }
3667   _max=0
3668   _count=0
3669   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3670   # along with /bin/sed that truncates output.
3671   for _sed in $_sed_list /usr/xpg4/bin/sed; do
3672     test ! -f ${_sed} && break
3673     cat /dev/null > "$tmp/sed.in"
3674     _count=0
3675     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3676     # Check for GNU sed and select it if it is found.
3677     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3678       lt_cv_path_SED=${_sed}
3679       break
3680     fi
3681     while true; do
3682       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3683       mv "$tmp/sed.tmp" "$tmp/sed.in"
3684       cp "$tmp/sed.in" "$tmp/sed.nl"
3685       echo >>"$tmp/sed.nl"
3686       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3687       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3688       # 40000 chars as input seems more than enough
3689       test $_count -gt 10 && break
3690       _count=`expr $_count + 1`
3691       if test $_count -gt $_max; then
3692         _max=$_count
3693         lt_cv_path_SED=$_sed
3694       fi
3695     done
3696   done
3697   rm -rf "$tmp"
3698
3699 fi
3700
3701 if test "X$SED" != "X"; then
3702   lt_cv_path_SED=$SED
3703 else
3704   SED=$lt_cv_path_SED
3705 fi
3706 echo "$as_me:$LINENO: result: $SED" >&5
3707 echo "${ECHO_T}$SED" >&6
3708
3709 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3710 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3711 if test "${lt_cv_deplibs_check_method+set}" = set; then
3712   echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714   lt_cv_file_magic_cmd='$MAGIC_CMD'
3715 lt_cv_file_magic_test_file=
3716 lt_cv_deplibs_check_method='unknown'
3717 # Need to set the preceding variable on all platforms that support
3718 # interlibrary dependencies.
3719 # 'none' -- dependencies not supported.
3720 # `unknown' -- same as none, but documents that we really don't know.
3721 # 'pass_all' -- all dependencies passed with no checks.
3722 # 'test_compile' -- check by making test program.
3723 # 'file_magic [[regex]]' -- check by looking for files in library path
3724 # which responds to the $file_magic_cmd with a given egrep regex.
3725 # If you have `file' or equivalent on your system and you're not sure
3726 # whether `pass_all' will *always* work, you probably want this one.
3727
3728 case $host_os in
3729 aix4* | aix5*)
3730   lt_cv_deplibs_check_method=pass_all
3731   ;;
3732
3733 beos*)
3734   lt_cv_deplibs_check_method=pass_all
3735   ;;
3736
3737 bsdi4*)
3738   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3739   lt_cv_file_magic_cmd='/usr/bin/file -L'
3740   lt_cv_file_magic_test_file=/shlib/libc.so
3741   ;;
3742
3743 cygwin* | mingw* | pw32*)
3744   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3745   lt_cv_file_magic_cmd='$OBJDUMP -f'
3746   ;;
3747
3748 darwin* | rhapsody*)
3749   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3750   lt_cv_file_magic_cmd='/usr/bin/file -L'
3751   case "$host_os" in
3752   rhapsody* | darwin1.[012])
3753     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3754     ;;
3755   *) # Darwin 1.3 on
3756     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3757     ;;
3758   esac
3759   ;;
3760
3761 freebsd*)
3762   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3763     case $host_cpu in
3764     i*86 )
3765       # Not sure whether the presence of OpenBSD here was a mistake.
3766       # Let's accept both of them until this is cleared up.
3767       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3768       lt_cv_file_magic_cmd=/usr/bin/file
3769       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3770       ;;
3771     esac
3772   else
3773     lt_cv_deplibs_check_method=pass_all
3774   fi
3775   ;;
3776
3777 gnu*)
3778   lt_cv_deplibs_check_method=pass_all
3779   ;;
3780
3781 hpux10.20*|hpux11*)
3782   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3783   lt_cv_file_magic_cmd=/usr/bin/file
3784   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3785   ;;
3786
3787 irix5* | irix6* | nonstopux*)
3788   case $host_os in
3789   irix5* | nonstopux*)
3790     # this will be overridden with pass_all, but let us keep it just in case
3791     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3792     ;;
3793   *)
3794     case $LD in
3795     *-32|*"-32 ") libmagic=32-bit;;
3796     *-n32|*"-n32 ") libmagic=N32;;
3797     *-64|*"-64 ") libmagic=64-bit;;
3798     *) libmagic=never-match;;
3799     esac
3800     # this will be overridden with pass_all, but let us keep it just in case
3801     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3802     ;;
3803   esac
3804   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3805   lt_cv_deplibs_check_method=pass_all
3806   ;;
3807
3808 # This must be Linux ELF.
3809 linux-gnu*)
3810   case $host_cpu in
3811   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3812     lt_cv_deplibs_check_method=pass_all ;;
3813   *)
3814     # glibc up to 2.1.1 does not perform some relocations on ARM
3815     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3816   esac
3817   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3818   ;;
3819
3820 netbsd*)
3821   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3822     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3823   else
3824     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3825   fi
3826   ;;
3827
3828 newos6*)
3829   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3830   lt_cv_file_magic_cmd=/usr/bin/file
3831   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3832   ;;
3833
3834 openbsd*)
3835   lt_cv_file_magic_cmd=/usr/bin/file
3836   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3837   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3838     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3839   else
3840     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3841   fi
3842   ;;
3843
3844 osf3* | osf4* | osf5*)
3845   # this will be overridden with pass_all, but let us keep it just in case
3846   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3847   lt_cv_file_magic_test_file=/shlib/libc.so
3848   lt_cv_deplibs_check_method=pass_all
3849   ;;
3850
3851 sco3.2v5*)
3852   lt_cv_deplibs_check_method=pass_all
3853   ;;
3854
3855 solaris*)
3856   lt_cv_deplibs_check_method=pass_all
3857   lt_cv_file_magic_test_file=/lib/libc.so
3858   ;;
3859
3860 sysv5uw[78]* | sysv4*uw2*)
3861   lt_cv_deplibs_check_method=pass_all
3862   ;;
3863
3864 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3865   case $host_vendor in
3866   motorola)
3867     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]'
3868     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3869     ;;
3870   ncr)
3871     lt_cv_deplibs_check_method=pass_all
3872     ;;
3873   sequent)
3874     lt_cv_file_magic_cmd='/bin/file'
3875     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3876     ;;
3877   sni)
3878     lt_cv_file_magic_cmd='/bin/file'
3879     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3880     lt_cv_file_magic_test_file=/lib/libc.so
3881     ;;
3882   siemens)
3883     lt_cv_deplibs_check_method=pass_all
3884     ;;
3885   esac
3886   ;;
3887 esac
3888
3889 fi
3890 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3891 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3892 file_magic_cmd=$lt_cv_file_magic_cmd
3893 deplibs_check_method=$lt_cv_deplibs_check_method
3894
3895
3896
3897
3898
3899
3900
3901
3902 # Check for command to grab the raw symbol name followed by C symbol from nm.
3903 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3904 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3905 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3906   echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908
3909 # These are sane defaults that work on at least a few old systems.
3910 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3911
3912 # Character class describing NM global symbol codes.
3913 symcode='[BCDEGRST]'
3914
3915 # Regexp to match symbols that can be accessed directly from C.
3916 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3917
3918 # Transform the above into a raw symbol and a C symbol.
3919 symxfrm='\1 \2\3 \3'
3920
3921 # Transform an extracted symbol line into a proper C declaration
3922 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3923
3924 # Transform an extracted symbol line into symbol name and symbol address
3925 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'"
3926
3927 # Define system-specific variables.
3928 case $host_os in
3929 aix*)
3930   symcode='[BCDT]'
3931   ;;
3932 cygwin* | mingw* | pw32*)
3933   symcode='[ABCDGISTW]'
3934   ;;
3935 hpux*) # Its linker distinguishes data from code symbols
3936   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3937   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'"
3938   ;;
3939 irix* | nonstopux*)
3940   symcode='[BCDEGRST]'
3941   ;;
3942 osf*)
3943   symcode='[BCDEGQRST]'
3944   ;;
3945 solaris* | sysv5*)
3946   symcode='[BDT]'
3947   ;;
3948 sysv4)
3949   symcode='[DFNSTU]'
3950   ;;
3951 esac
3952
3953 # Handle CRLF in mingw tool chain
3954 opt_cr=
3955 case $host_os in
3956 mingw*)
3957   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3958   ;;
3959 esac
3960
3961 # If we're using GNU nm, then use its standard symbol codes.
3962 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3963   symcode='[ABCDGISTW]'
3964 fi
3965
3966 # Try without a prefix undercore, then with it.
3967 for ac_symprfx in "" "_"; do
3968
3969   # Write the raw and C identifiers.
3970 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3971
3972   # Check to see that the pipe works correctly.
3973   pipe_works=no
3974   rm -f conftest*
3975   cat > conftest.$ac_ext <<EOF
3976 #ifdef __cplusplus
3977 extern "C" {
3978 #endif
3979 char nm_test_var;
3980 void nm_test_func(){}
3981 #ifdef __cplusplus
3982 }
3983 #endif
3984 int main(){nm_test_var='a';nm_test_func();return(0);}
3985 EOF
3986
3987   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988   (eval $ac_compile) 2>&5
3989   ac_status=$?
3990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991   (exit $ac_status); }; then
3992     # Now try to grab the symbols.
3993     nlist=conftest.nm
3994     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3995   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3996   ac_status=$?
3997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998   (exit $ac_status); } && test -s "$nlist"; then
3999       # Try sorting and uniquifying the output.
4000       if sort "$nlist" | uniq > "$nlist"T; then
4001         mv -f "$nlist"T "$nlist"
4002       else
4003         rm -f "$nlist"T
4004       fi
4005
4006       # Make sure that we snagged all the symbols we need.
4007       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4008         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4009           cat <<EOF > conftest.$ac_ext
4010 #ifdef __cplusplus
4011 extern "C" {
4012 #endif
4013
4014 EOF
4015           # Now generate the symbol file.
4016           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4017
4018           cat <<EOF >> conftest.$ac_ext
4019 #if defined (__STDC__) && __STDC__
4020 # define lt_ptr void *
4021 #else
4022 # define lt_ptr char *
4023 # define const
4024 #endif
4025
4026 /* The mapping between symbol names and symbols. */
4027 const struct {
4028   const char *name;
4029   lt_ptr address;
4030 }
4031 lt_preloaded_symbols[] =
4032 {
4033 EOF
4034           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4035           cat <<\EOF >> conftest.$ac_ext
4036   {0, (lt_ptr) 0}
4037 };
4038
4039 #ifdef __cplusplus
4040 }
4041 #endif
4042 EOF
4043           # Now try linking the two files.
4044           mv conftest.$ac_objext conftstm.$ac_objext
4045           save_LIBS="$LIBS"
4046           save_CFLAGS="$CFLAGS"
4047           LIBS="conftstm.$ac_objext"
4048           CFLAGS="$CFLAGS$no_builtin_flag"
4049           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4050   (eval $ac_link) 2>&5
4051   ac_status=$?
4052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); } && test -s conftest$ac_exeext; then
4054             pipe_works=yes
4055           fi
4056           LIBS="$save_LIBS"
4057           CFLAGS="$save_CFLAGS"
4058         else
4059           echo "cannot find nm_test_func in $nlist" >&5
4060         fi
4061       else
4062         echo "cannot find nm_test_var in $nlist" >&5
4063       fi
4064     else
4065       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4066     fi
4067   else
4068     echo "$progname: failed program was:" >&5
4069     cat conftest.$ac_ext >&5
4070   fi
4071   rm -f conftest* conftst*
4072
4073   # Do not use the global_symbol_pipe unless it works.
4074   if test "$pipe_works" = yes; then
4075     break
4076   else
4077     lt_cv_sys_global_symbol_pipe=
4078   fi
4079 done
4080
4081 fi
4082
4083 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4084 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4085   global_symbol_to_cdecl=
4086   global_symbol_to_c_name_address=
4087 else
4088   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4089   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4090 fi
4091 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4092 then
4093   echo "$as_me:$LINENO: result: failed" >&5
4094 echo "${ECHO_T}failed" >&6
4095 else
4096   echo "$as_me:$LINENO: result: ok" >&5
4097 echo "${ECHO_T}ok" >&6
4098 fi
4099
4100
4101 echo "$as_me:$LINENO: checking for egrep" >&5
4102 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4103 if test "${ac_cv_prog_egrep+set}" = set; then
4104   echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4107     then ac_cv_prog_egrep='grep -E'
4108     else ac_cv_prog_egrep='egrep'
4109     fi
4110 fi
4111 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4112 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4113  EGREP=$ac_cv_prog_egrep
4114
4115
4116 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4117 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4118 if test "${ac_cv_header_stdc+set}" = set; then
4119   echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121   cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h.  */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h.  */
4127 #include <stdlib.h>
4128 #include <stdarg.h>
4129 #include <string.h>
4130 #include <float.h>
4131
4132 int
4133 main ()
4134 {
4135
4136   ;
4137   return 0;
4138 }
4139 _ACEOF
4140 rm -f conftest.$ac_objext
4141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4142   (eval $ac_compile) 2>conftest.er1
4143   ac_status=$?
4144   grep -v '^ *+' conftest.er1 >conftest.err
4145   rm -f conftest.er1
4146   cat conftest.err >&5
4147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); } &&
4149          { ac_try='test -z "$ac_c_werror_flag"
4150                          || test ! -s conftest.err'
4151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152   (eval $ac_try) 2>&5
4153   ac_status=$?
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); }; } &&
4156          { ac_try='test -s conftest.$ac_objext'
4157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158   (eval $ac_try) 2>&5
4159   ac_status=$?
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); }; }; then
4162   ac_cv_header_stdc=yes
4163 else
4164   echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4166
4167 ac_cv_header_stdc=no
4168 fi
4169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4170
4171 if test $ac_cv_header_stdc = yes; then
4172   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4173   cat >conftest.$ac_ext <<_ACEOF
4174 /* confdefs.h.  */
4175 _ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h.  */
4179 #include <string.h>
4180
4181 _ACEOF
4182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4183   $EGREP "memchr" >/dev/null 2>&1; then
4184   :
4185 else
4186   ac_cv_header_stdc=no
4187 fi
4188 rm -f conftest*
4189
4190 fi
4191
4192 if test $ac_cv_header_stdc = yes; then
4193   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4194   cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h.  */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h.  */
4200 #include <stdlib.h>
4201
4202 _ACEOF
4203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4204   $EGREP "free" >/dev/null 2>&1; then
4205   :
4206 else
4207   ac_cv_header_stdc=no
4208 fi
4209 rm -f conftest*
4210
4211 fi
4212
4213 if test $ac_cv_header_stdc = yes; then
4214   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4215   if test "$cross_compiling" = yes; then
4216   :
4217 else
4218   cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h.  */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h.  */
4224 #include <ctype.h>
4225 #if ((' ' & 0x0FF) == 0x020)
4226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4228 #else
4229 # define ISLOWER(c) \
4230                    (('a' <= (c) && (c) <= 'i') \
4231                      || ('j' <= (c) && (c) <= 'r') \
4232                      || ('s' <= (c) && (c) <= 'z'))
4233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4234 #endif
4235
4236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4237 int
4238 main ()
4239 {
4240   int i;
4241   for (i = 0; i < 256; i++)
4242     if (XOR (islower (i), ISLOWER (i))
4243         || toupper (i) != TOUPPER (i))
4244       exit(2);
4245   exit (0);
4246 }
4247 _ACEOF
4248 rm -f conftest$ac_exeext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4250   (eval $ac_link) 2>&5
4251   ac_status=$?
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255   (eval $ac_try) 2>&5
4256   ac_status=$?
4257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258   (exit $ac_status); }; }; then
4259   :
4260 else
4261   echo "$as_me: program exited with status $ac_status" >&5
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4264
4265 ( exit $ac_status )
4266 ac_cv_header_stdc=no
4267 fi
4268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4269 fi
4270 fi
4271 fi
4272 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4273 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4274 if test $ac_cv_header_stdc = yes; then
4275
4276 cat >>confdefs.h <<\_ACEOF
4277 #define STDC_HEADERS 1
4278 _ACEOF
4279
4280 fi
4281
4282 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4293                   inttypes.h stdint.h unistd.h
4294 do
4295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4296 echo "$as_me:$LINENO: checking for $ac_header" >&5
4297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   cat >conftest.$ac_ext <<_ACEOF
4302 /* confdefs.h.  */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h.  */
4307 $ac_includes_default
4308
4309 #include <$ac_header>
4310 _ACEOF
4311 rm -f conftest.$ac_objext
4312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4313   (eval $ac_compile) 2>conftest.er1
4314   ac_status=$?
4315   grep -v '^ *+' conftest.er1 >conftest.err
4316   rm -f conftest.er1
4317   cat conftest.err >&5
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); } &&
4320          { ac_try='test -z "$ac_c_werror_flag"
4321                          || test ! -s conftest.err'
4322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323   (eval $ac_try) 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); }; } &&
4327          { ac_try='test -s conftest.$ac_objext'
4328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329   (eval $ac_try) 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; }; then
4333   eval "$as_ac_Header=yes"
4334 else
4335   echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4337
4338 eval "$as_ac_Header=no"
4339 fi
4340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4341 fi
4342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4345   cat >>confdefs.h <<_ACEOF
4346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4347 _ACEOF
4348
4349 fi
4350
4351 done
4352
4353
4354
4355 for ac_header in dlfcn.h
4356 do
4357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4359   echo "$as_me:$LINENO: checking for $ac_header" >&5
4360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4362   echo $ECHO_N "(cached) $ECHO_C" >&6
4363 fi
4364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4366 else
4367   # Is the header compilable?
4368 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4370 cat >conftest.$ac_ext <<_ACEOF
4371 /* confdefs.h.  */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h.  */
4376 $ac_includes_default
4377 #include <$ac_header>
4378 _ACEOF
4379 rm -f conftest.$ac_objext
4380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4381   (eval $ac_compile) 2>conftest.er1
4382   ac_status=$?
4383   grep -v '^ *+' conftest.er1 >conftest.err
4384   rm -f conftest.er1
4385   cat conftest.err >&5
4386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); } &&
4388          { ac_try='test -z "$ac_c_werror_flag"
4389                          || test ! -s conftest.err'
4390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391   (eval $ac_try) 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); }; } &&
4395          { ac_try='test -s conftest.$ac_objext'
4396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397   (eval $ac_try) 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); }; }; then
4401   ac_header_compiler=yes
4402 else
4403   echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4405
4406 ac_header_compiler=no
4407 fi
4408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4410 echo "${ECHO_T}$ac_header_compiler" >&6
4411
4412 # Is the header present?
4413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4415 cat >conftest.$ac_ext <<_ACEOF
4416 /* confdefs.h.  */
4417 _ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h.  */
4421 #include <$ac_header>
4422 _ACEOF
4423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4424   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4425   ac_status=$?
4426   grep -v '^ *+' conftest.er1 >conftest.err
4427   rm -f conftest.er1
4428   cat conftest.err >&5
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); } >/dev/null; then
4431   if test -s conftest.err; then
4432     ac_cpp_err=$ac_c_preproc_warn_flag
4433     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4434   else
4435     ac_cpp_err=
4436   fi
4437 else
4438   ac_cpp_err=yes
4439 fi
4440 if test -z "$ac_cpp_err"; then
4441   ac_header_preproc=yes
4442 else
4443   echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446   ac_header_preproc=no
4447 fi
4448 rm -f conftest.err conftest.$ac_ext
4449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4450 echo "${ECHO_T}$ac_header_preproc" >&6
4451
4452 # So?  What about this header?
4453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4454   yes:no: )
4455     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4459     ac_header_preproc=yes
4460     ;;
4461   no:yes:* )
4462     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4464     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4465 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4466     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4468     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4469 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4472     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4474     (
4475       cat <<\_ASBOX
4476 ## ------------------------------------------ ##
4477 ## Report this to the AC_PACKAGE_NAME lists.  ##
4478 ## ------------------------------------------ ##
4479 _ASBOX
4480     ) |
4481       sed "s/^/$as_me: WARNING:     /" >&2
4482     ;;
4483 esac
4484 echo "$as_me:$LINENO: checking for $ac_header" >&5
4485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4487   echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489   eval "$as_ac_Header=\$ac_header_preproc"
4490 fi
4491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4493
4494 fi
4495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4496   cat >>confdefs.h <<_ACEOF
4497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4498 _ACEOF
4499
4500 fi
4501
4502 done
4503
4504
4505
4506
4507
4508
4509 # Only perform the check for file, if the check method requires it
4510 case $deplibs_check_method in
4511 file_magic*)
4512   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4513     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4514 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4515 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4516   echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518   case $MAGIC_CMD in
4519   /*)
4520   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4521   ;;
4522   ?:/*)
4523   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4524   ;;
4525   *)
4526   ac_save_MAGIC_CMD="$MAGIC_CMD"
4527   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4528   ac_dummy="/usr/bin:$PATH"
4529   for ac_dir in $ac_dummy; do
4530     test -z "$ac_dir" && ac_dir=.
4531     if test -f $ac_dir/${ac_tool_prefix}file; then
4532       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4533       if test -n "$file_magic_test_file"; then
4534         case $deplibs_check_method in
4535         "file_magic "*)
4536           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4537           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4538           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4539             egrep "$file_magic_regex" > /dev/null; then
4540             :
4541           else
4542             cat <<EOF 1>&2
4543
4544 *** Warning: the command libtool uses to detect shared libraries,
4545 *** $file_magic_cmd, produces output that libtool cannot recognize.
4546 *** The result is that libtool may fail to recognize shared libraries
4547 *** as such.  This will affect the creation of libtool libraries that
4548 *** depend on shared libraries, but programs linked with such libtool
4549 *** libraries will work regardless of this problem.  Nevertheless, you
4550 *** may want to report the problem to your system manager and/or to
4551 *** bug-libtool@gnu.org
4552
4553 EOF
4554           fi ;;
4555         esac
4556       fi
4557       break
4558     fi
4559   done
4560   IFS="$ac_save_ifs"
4561   MAGIC_CMD="$ac_save_MAGIC_CMD"
4562   ;;
4563 esac
4564 fi
4565
4566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4567 if test -n "$MAGIC_CMD"; then
4568   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4569 echo "${ECHO_T}$MAGIC_CMD" >&6
4570 else
4571   echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6
4573 fi
4574
4575 if test -z "$lt_cv_path_MAGIC_CMD"; then
4576   if test -n "$ac_tool_prefix"; then
4577     echo "$as_me:$LINENO: checking for file" >&5
4578 echo $ECHO_N "checking for file... $ECHO_C" >&6
4579 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4580   echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582   case $MAGIC_CMD in
4583   /*)
4584   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4585   ;;
4586   ?:/*)
4587   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4588   ;;
4589   *)
4590   ac_save_MAGIC_CMD="$MAGIC_CMD"
4591   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4592   ac_dummy="/usr/bin:$PATH"
4593   for ac_dir in $ac_dummy; do
4594     test -z "$ac_dir" && ac_dir=.
4595     if test -f $ac_dir/file; then
4596       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4597       if test -n "$file_magic_test_file"; then
4598         case $deplibs_check_method in
4599         "file_magic "*)
4600           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4601           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4602           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4603             egrep "$file_magic_regex" > /dev/null; then
4604             :
4605           else
4606             cat <<EOF 1>&2
4607
4608 *** Warning: the command libtool uses to detect shared libraries,
4609 *** $file_magic_cmd, produces output that libtool cannot recognize.
4610 *** The result is that libtool may fail to recognize shared libraries
4611 *** as such.  This will affect the creation of libtool libraries that
4612 *** depend on shared libraries, but programs linked with such libtool
4613 *** libraries will work regardless of this problem.  Nevertheless, you
4614 *** may want to report the problem to your system manager and/or to
4615 *** bug-libtool@gnu.org
4616
4617 EOF
4618           fi ;;
4619         esac
4620       fi
4621       break
4622     fi
4623   done
4624   IFS="$ac_save_ifs"
4625   MAGIC_CMD="$ac_save_MAGIC_CMD"
4626   ;;
4627 esac
4628 fi
4629
4630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4631 if test -n "$MAGIC_CMD"; then
4632   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4633 echo "${ECHO_T}$MAGIC_CMD" >&6
4634 else
4635   echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6
4637 fi
4638
4639   else
4640     MAGIC_CMD=:
4641   fi
4642 fi
4643
4644   fi
4645   ;;
4646 esac
4647
4648 if test -n "$ac_tool_prefix"; then
4649   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4650 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4651 echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653 if test "${ac_cv_prog_RANLIB+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   if test -n "$RANLIB"; then
4657   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4661 do
4662   IFS=$as_save_IFS
4663   test -z "$as_dir" && as_dir=.
4664   for ac_exec_ext in '' $ac_executable_extensions; do
4665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668     break 2
4669   fi
4670 done
4671 done
4672
4673 fi
4674 fi
4675 RANLIB=$ac_cv_prog_RANLIB
4676 if test -n "$RANLIB"; then
4677   echo "$as_me:$LINENO: result: $RANLIB" >&5
4678 echo "${ECHO_T}$RANLIB" >&6
4679 else
4680   echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6
4682 fi
4683
4684 fi
4685 if test -z "$ac_cv_prog_RANLIB"; then
4686   ac_ct_RANLIB=$RANLIB
4687   # Extract the first word of "ranlib", so it can be a program name with args.
4688 set dummy ranlib; ac_word=$2
4689 echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4691 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4692   echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694   if test -n "$ac_ct_RANLIB"; then
4695   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700   IFS=$as_save_IFS
4701   test -z "$as_dir" && as_dir=.
4702   for ac_exec_ext in '' $ac_executable_extensions; do
4703   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704     ac_cv_prog_ac_ct_RANLIB="ranlib"
4705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706     break 2
4707   fi
4708 done
4709 done
4710
4711   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4712 fi
4713 fi
4714 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4715 if test -n "$ac_ct_RANLIB"; then
4716   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4717 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4718 else
4719   echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6
4721 fi
4722
4723   RANLIB=$ac_ct_RANLIB
4724 else
4725   RANLIB="$ac_cv_prog_RANLIB"
4726 fi
4727
4728 if test -n "$ac_tool_prefix"; then
4729   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4730 set dummy ${ac_tool_prefix}strip; ac_word=$2
4731 echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4733 if test "${ac_cv_prog_STRIP+set}" = set; then
4734   echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736   if test -n "$STRIP"; then
4737   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4738 else
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4741 do
4742   IFS=$as_save_IFS
4743   test -z "$as_dir" && as_dir=.
4744   for ac_exec_ext in '' $ac_executable_extensions; do
4745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4746     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4748     break 2
4749   fi
4750 done
4751 done
4752
4753 fi
4754 fi
4755 STRIP=$ac_cv_prog_STRIP
4756 if test -n "$STRIP"; then
4757   echo "$as_me:$LINENO: result: $STRIP" >&5
4758 echo "${ECHO_T}$STRIP" >&6
4759 else
4760   echo "$as_me:$LINENO: result: no" >&5
4761 echo "${ECHO_T}no" >&6
4762 fi
4763
4764 fi
4765 if test -z "$ac_cv_prog_STRIP"; then
4766   ac_ct_STRIP=$STRIP
4767   # Extract the first word of "strip", so it can be a program name with args.
4768 set dummy strip; ac_word=$2
4769 echo "$as_me:$LINENO: checking for $ac_word" >&5
4770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4771 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4772   echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774   if test -n "$ac_ct_STRIP"; then
4775   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4779 do
4780   IFS=$as_save_IFS
4781   test -z "$as_dir" && as_dir=.
4782   for ac_exec_ext in '' $ac_executable_extensions; do
4783   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4784     ac_cv_prog_ac_ct_STRIP="strip"
4785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786     break 2
4787   fi
4788 done
4789 done
4790
4791   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4792 fi
4793 fi
4794 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4795 if test -n "$ac_ct_STRIP"; then
4796   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4797 echo "${ECHO_T}$ac_ct_STRIP" >&6
4798 else
4799   echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6
4801 fi
4802
4803   STRIP=$ac_ct_STRIP
4804 else
4805   STRIP="$ac_cv_prog_STRIP"
4806 fi
4807
4808
4809 enable_dlopen=no
4810 enable_win32_dll=no
4811
4812 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4813 if test "${enable_libtool_lock+set}" = set; then
4814   enableval="$enable_libtool_lock"
4815
4816 fi;
4817 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4818
4819 # Some flags need to be propagated to the compiler or linker for good
4820 # libtool support.
4821 case $host in
4822 *-*-irix6*)
4823   # Find out which ABI we are using.
4824   echo '#line 4824 "configure"' > conftest.$ac_ext
4825   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4826   (eval $ac_compile) 2>&5
4827   ac_status=$?
4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); }; then
4830     case `/usr/bin/file conftest.$ac_objext` in
4831     *32-bit*)
4832       LD="${LD-ld} -32"
4833       ;;
4834     *N32*)
4835       LD="${LD-ld} -n32"
4836       ;;
4837     *64-bit*)
4838       LD="${LD-ld} -64"
4839       ;;
4840     esac
4841   fi
4842   rm -rf conftest*
4843   ;;
4844
4845 *-*-linux*)
4846   # Test if the compiler is 64bit
4847   echo 'int i;' > conftest.$ac_ext
4848   lt_cv_cc_64bit_output=no
4849   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850   (eval $ac_compile) 2>&5
4851   ac_status=$?
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); }; then
4854     case `/usr/bin/file conftest.$ac_objext` in
4855     *"ELF 64"*)
4856       lt_cv_cc_64bit_output=yes
4857       ;;
4858     esac
4859   fi
4860   rm -rf conftest*
4861   ;;
4862
4863 *-*-sco3.2v5*)
4864   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4865   SAVE_CFLAGS="$CFLAGS"
4866   CFLAGS="$CFLAGS -belf"
4867   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4868 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4869 if test "${lt_cv_cc_needs_belf+set}" = set; then
4870   echo $ECHO_N "(cached) $ECHO_C" >&6
4871 else
4872
4873
4874      ac_ext=c
4875 ac_cpp='$CPP $CPPFLAGS'
4876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4879
4880      cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h.  */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h.  */
4886
4887 int
4888 main ()
4889 {
4890
4891   ;
4892   return 0;
4893 }
4894 _ACEOF
4895 rm -f conftest.$ac_objext conftest$ac_exeext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4897   (eval $ac_link) 2>conftest.er1
4898   ac_status=$?
4899   grep -v '^ *+' conftest.er1 >conftest.err
4900   rm -f conftest.er1
4901   cat conftest.err >&5
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); } &&
4904          { ac_try='test -z "$ac_c_werror_flag"
4905                          || test ! -s conftest.err'
4906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907   (eval $ac_try) 2>&5
4908   ac_status=$?
4909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); }; } &&
4911          { ac_try='test -s conftest$ac_exeext'
4912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913   (eval $ac_try) 2>&5
4914   ac_status=$?
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); }; }; then
4917   lt_cv_cc_needs_belf=yes
4918 else
4919   echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 lt_cv_cc_needs_belf=no
4923 fi
4924 rm -f conftest.err conftest.$ac_objext \
4925       conftest$ac_exeext conftest.$ac_ext
4926      ac_ext=c
4927 ac_cpp='$CPP $CPPFLAGS'
4928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4931
4932 fi
4933 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4934 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4935   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4936     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4937     CFLAGS="$SAVE_CFLAGS"
4938   fi
4939   ;;
4940
4941
4942 esac
4943
4944 # Sed substitution that helps us do robust quoting.  It backslashifies
4945 # metacharacters that are still active within double-quoted strings.
4946 Xsed='sed -e s/^X//'
4947 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4948
4949 # Same as above, but do not quote variable references.
4950 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4951
4952 # Sed substitution to delay expansion of an escaped shell variable in a
4953 # double_quote_subst'ed string.
4954 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4955
4956 # Constants:
4957 rm="rm -f"
4958
4959 # Global variables:
4960 default_ofile=libtool
4961 can_build_shared=yes
4962
4963 # All known linkers require a `.a' archive for static linking (except M$VC,
4964 # which needs '.lib').
4965 libext=a
4966 ltmain="$ac_aux_dir/ltmain.sh"
4967 ofile="$default_ofile"
4968 with_gnu_ld="$lt_cv_prog_gnu_ld"
4969 need_locks="$enable_libtool_lock"
4970
4971 old_CC="$CC"
4972 old_CFLAGS="$CFLAGS"
4973
4974 # Set sane defaults for various variables
4975 test -z "$AR" && AR=ar
4976 test -z "$AR_FLAGS" && AR_FLAGS=cru
4977 test -z "$AS" && AS=as
4978 test -z "$CC" && CC=cc
4979 test -z "$DLLTOOL" && DLLTOOL=dlltool
4980 test -z "$LD" && LD=ld
4981 test -z "$LN_S" && LN_S="ln -s"
4982 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4983 test -z "$NM" && NM=nm
4984 test -z "$OBJDUMP" && OBJDUMP=objdump
4985 test -z "$RANLIB" && RANLIB=:
4986 test -z "$STRIP" && STRIP=:
4987 test -z "$ac_objext" && ac_objext=o
4988
4989 if test x"$host" != x"$build"; then
4990   ac_tool_prefix=${host_alias}-
4991 else
4992   ac_tool_prefix=
4993 fi
4994
4995 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4996 case $host_os in
4997 linux-gnu*) ;;
4998 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4999 esac
5000
5001 case $host_os in
5002 aix3*)
5003   # AIX sometimes has problems with the GCC collect2 program.  For some
5004   # reason, if we set the COLLECT_NAMES environment variable, the problems
5005   # vanish in a puff of smoke.
5006   if test "X${COLLECT_NAMES+set}" != Xset; then
5007     COLLECT_NAMES=
5008     export COLLECT_NAMES
5009   fi
5010   ;;
5011 esac
5012
5013 # Determine commands to create old-style static archives.
5014 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5015 old_postinstall_cmds='chmod 644 $oldlib'
5016 old_postuninstall_cmds=
5017
5018 if test -n "$RANLIB"; then
5019   case $host_os in
5020   openbsd*)
5021     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5022     ;;
5023   *)
5024     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5025     ;;
5026   esac
5027   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5028 fi
5029
5030 # Allow CC to be a program name with arguments.
5031 set dummy $CC
5032 compiler="$2"
5033
5034 echo "$as_me:$LINENO: checking for objdir" >&5
5035 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5036 rm -f .libs 2>/dev/null
5037 mkdir .libs 2>/dev/null
5038 if test -d .libs; then
5039   objdir=.libs
5040 else
5041   # MS-DOS does not allow filenames that begin with a dot.
5042   objdir=_libs
5043 fi
5044 rmdir .libs 2>/dev/null
5045 echo "$as_me:$LINENO: result: $objdir" >&5
5046 echo "${ECHO_T}$objdir" >&6
5047
5048
5049
5050 # Check whether --with-pic or --without-pic was given.
5051 if test "${with_pic+set}" = set; then
5052   withval="$with_pic"
5053   pic_mode="$withval"
5054 else
5055   pic_mode=default
5056 fi;
5057 test -z "$pic_mode" && pic_mode=default
5058
5059 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5060 # in isolation, and that seeing it set (from the cache) indicates that
5061 # the associated values are set (in the cache) correctly too.
5062 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5063 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5064 if test "${lt_cv_prog_cc_pic+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067    lt_cv_prog_cc_pic=
5068   lt_cv_prog_cc_shlib=
5069   lt_cv_prog_cc_wl=
5070   lt_cv_prog_cc_static=
5071   lt_cv_prog_cc_no_builtin=
5072   lt_cv_prog_cc_can_build_shared=$can_build_shared
5073
5074   if test "$GCC" = yes; then
5075     lt_cv_prog_cc_wl='-Wl,'
5076     lt_cv_prog_cc_static='-static'
5077
5078     case $host_os in
5079     aix*)
5080       # Below there is a dirty hack to force normal static linking with -ldl
5081       # The problem is because libdl dynamically linked with both libc and
5082       # libC (AIX C++ library), which obviously doesn't included in libraries
5083       # list by gcc. This cause undefined symbols with -static flags.
5084       # This hack allows C programs to be linked with "-static -ldl", but
5085       # not sure about C++ programs.
5086       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5087       ;;
5088     amigaos*)
5089       # FIXME: we need at least 68020 code to build shared libraries, but
5090       # adding the `-m68020' flag to GCC prevents building anything better,
5091       # like `-m68040'.
5092       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5093       ;;
5094     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5095       # PIC is the default for these OSes.
5096       ;;
5097     darwin* | rhapsody*)
5098       # PIC is the default on this platform
5099       # Common symbols not allowed in MH_DYLIB files
5100       lt_cv_prog_cc_pic='-fno-common'
5101       ;;
5102     cygwin* | mingw* | pw32* | os2*)
5103       # This hack is so that the source file can tell whether it is being
5104       # built for inclusion in a dll (and should export symbols for example).
5105       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5106       ;;
5107     sysv4*MP*)
5108       if test -d /usr/nec; then
5109          lt_cv_prog_cc_pic=-Kconform_pic
5110       fi
5111       ;;
5112     *)
5113       lt_cv_prog_cc_pic='-fPIC'
5114       ;;
5115     esac
5116   else
5117     # PORTME Check for PIC flags for the system compiler.
5118     case $host_os in
5119     aix3* | aix4* | aix5*)
5120       lt_cv_prog_cc_wl='-Wl,'
5121       # All AIX code is PIC.
5122       if test "$host_cpu" = ia64; then
5123         # AIX 5 now supports IA64 processor
5124         lt_cv_prog_cc_static='-Bstatic'
5125       else
5126         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5127       fi
5128       ;;
5129
5130     hpux9* | hpux10* | hpux11*)
5131       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5132       lt_cv_prog_cc_wl='-Wl,'
5133       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5134       lt_cv_prog_cc_pic='+Z'
5135       ;;
5136
5137     irix5* | irix6* | nonstopux*)
5138       lt_cv_prog_cc_wl='-Wl,'
5139       lt_cv_prog_cc_static='-non_shared'
5140       # PIC (with -KPIC) is the default.
5141       ;;
5142
5143     cygwin* | mingw* | pw32* | os2*)
5144       # This hack is so that the source file can tell whether it is being
5145       # built for inclusion in a dll (and should export symbols for example).
5146       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5147       ;;
5148
5149     newsos6)
5150       lt_cv_prog_cc_pic='-KPIC'
5151       lt_cv_prog_cc_static='-Bstatic'
5152       ;;
5153
5154     osf3* | osf4* | osf5*)
5155       # All OSF/1 code is PIC.
5156       lt_cv_prog_cc_wl='-Wl,'
5157       lt_cv_prog_cc_static='-non_shared'
5158       ;;
5159
5160     sco3.2v5*)
5161       lt_cv_prog_cc_pic='-Kpic'
5162       lt_cv_prog_cc_static='-dn'
5163       lt_cv_prog_cc_shlib='-belf'
5164       ;;
5165
5166     solaris*)
5167       lt_cv_prog_cc_pic='-KPIC'
5168       lt_cv_prog_cc_static='-Bstatic'
5169       lt_cv_prog_cc_wl='-Wl,'
5170       ;;
5171
5172     sunos4*)
5173       lt_cv_prog_cc_pic='-PIC'
5174       lt_cv_prog_cc_static='-Bstatic'
5175       lt_cv_prog_cc_wl='-Qoption ld '
5176       ;;
5177
5178     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5179       lt_cv_prog_cc_pic='-KPIC'
5180       lt_cv_prog_cc_static='-Bstatic'
5181       lt_cv_prog_cc_wl='-Wl,'
5182       ;;
5183
5184     uts4*)
5185       lt_cv_prog_cc_pic='-pic'
5186       lt_cv_prog_cc_static='-Bstatic'
5187       ;;
5188
5189     sysv4*MP*)
5190       if test -d /usr/nec ;then
5191         lt_cv_prog_cc_pic='-Kconform_pic'
5192         lt_cv_prog_cc_static='-Bstatic'
5193       fi
5194       ;;
5195
5196     *)
5197       lt_cv_prog_cc_can_build_shared=no
5198       ;;
5199     esac
5200   fi
5201
5202 fi
5203
5204 if test -z "$lt_cv_prog_cc_pic"; then
5205   echo "$as_me:$LINENO: result: none" >&5
5206 echo "${ECHO_T}none" >&6
5207 else
5208   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5209 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5210
5211   # Check to make sure the pic_flag actually works.
5212   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5213 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5214   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5215   echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217       save_CFLAGS="$CFLAGS"
5218     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5219     cat >conftest.$ac_ext <<_ACEOF
5220 /* confdefs.h.  */
5221 _ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h.  */
5225
5226 int
5227 main ()
5228 {
5229
5230   ;
5231   return 0;
5232 }
5233 _ACEOF
5234 rm -f conftest.$ac_objext
5235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5236   (eval $ac_compile) 2>conftest.er1
5237   ac_status=$?
5238   grep -v '^ *+' conftest.er1 >conftest.err
5239   rm -f conftest.er1
5240   cat conftest.err >&5
5241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242   (exit $ac_status); } &&
5243          { ac_try='test -z "$ac_c_werror_flag"
5244                          || test ! -s conftest.err'
5245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246   (eval $ac_try) 2>&5
5247   ac_status=$?
5248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249   (exit $ac_status); }; } &&
5250          { ac_try='test -s conftest.$ac_objext'
5251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252   (eval $ac_try) 2>&5
5253   ac_status=$?
5254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255   (exit $ac_status); }; }; then
5256         case $host_os in
5257       hpux9* | hpux10* | hpux11*)
5258         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5259         # they create non-PIC objects.  So, if there were any warnings, we
5260         # assume that PIC is not supported.
5261         if test -s conftest.err; then
5262           lt_cv_prog_cc_pic_works=no
5263         else
5264           lt_cv_prog_cc_pic_works=yes
5265         fi
5266         ;;
5267       *)
5268         lt_cv_prog_cc_pic_works=yes
5269         ;;
5270       esac
5271
5272 else
5273   echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.$ac_ext >&5
5275
5276       lt_cv_prog_cc_pic_works=no
5277
5278 fi
5279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5280     CFLAGS="$save_CFLAGS"
5281
5282 fi
5283
5284
5285   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5286     lt_cv_prog_cc_pic=
5287     lt_cv_prog_cc_can_build_shared=no
5288   else
5289     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5290   fi
5291
5292   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5293 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5294 fi
5295
5296 # Check for any special shared library compilation flags.
5297 if test -n "$lt_cv_prog_cc_shlib"; then
5298   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5299 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5300   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5301   else
5302    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5303 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5304     lt_cv_prog_cc_can_build_shared=no
5305   fi
5306 fi
5307
5308 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5309 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5310 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5311   echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313     lt_cv_prog_cc_static_works=no
5314   save_LDFLAGS="$LDFLAGS"
5315   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5316   cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h.  */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h.  */
5322
5323 int
5324 main ()
5325 {
5326
5327   ;
5328   return 0;
5329 }
5330 _ACEOF
5331 rm -f conftest.$ac_objext conftest$ac_exeext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5333   (eval $ac_link) 2>conftest.er1
5334   ac_status=$?
5335   grep -v '^ *+' conftest.er1 >conftest.err
5336   rm -f conftest.er1
5337   cat conftest.err >&5
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); } &&
5340          { ac_try='test -z "$ac_c_werror_flag"
5341                          || test ! -s conftest.err'
5342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343   (eval $ac_try) 2>&5
5344   ac_status=$?
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); }; } &&
5347          { ac_try='test -s conftest$ac_exeext'
5348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349   (eval $ac_try) 2>&5
5350   ac_status=$?
5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352   (exit $ac_status); }; }; then
5353   lt_cv_prog_cc_static_works=yes
5354 else
5355   echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5357
5358 fi
5359 rm -f conftest.err conftest.$ac_objext \
5360       conftest$ac_exeext conftest.$ac_ext
5361   LDFLAGS="$save_LDFLAGS"
5362
5363 fi
5364
5365
5366 # Belt *and* braces to stop my trousers falling down:
5367 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5368 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5369 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5370
5371 pic_flag="$lt_cv_prog_cc_pic"
5372 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5373 wl="$lt_cv_prog_cc_wl"
5374 link_static_flag="$lt_cv_prog_cc_static"
5375 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5376 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5377
5378
5379 # Check to see if options -o and -c are simultaneously supported by compiler
5380 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5381 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5382 if test "${lt_cv_compiler_c_o+set}" = set; then
5383   echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385
5386 $rm -r conftest 2>/dev/null
5387 mkdir conftest
5388 cd conftest
5389 echo "int some_variable = 0;" > conftest.$ac_ext
5390 mkdir out
5391 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5392 # that will create temporary files in the current directory regardless of
5393 # the output directory.  Thus, making CWD read-only will cause this test
5394 # to fail, enabling locking or at least warning the user not to do parallel
5395 # builds.
5396 chmod -w .
5397 save_CFLAGS="$CFLAGS"
5398 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5399 compiler_c_o=no
5400 if { (eval echo configure:5400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5401   # The compiler can only warn and ignore the option if not recognized
5402   # So say no if there are warnings
5403   if test -s out/conftest.err; then
5404     lt_cv_compiler_c_o=no
5405   else
5406     lt_cv_compiler_c_o=yes
5407   fi
5408 else
5409   # Append any errors to the config.log.
5410   cat out/conftest.err 1>&5
5411   lt_cv_compiler_c_o=no
5412 fi
5413 CFLAGS="$save_CFLAGS"
5414 chmod u+w .
5415 $rm conftest* out/*
5416 rmdir out
5417 cd ..
5418 rmdir conftest
5419 $rm -r conftest 2>/dev/null
5420
5421 fi
5422
5423 compiler_c_o=$lt_cv_compiler_c_o
5424 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5425 echo "${ECHO_T}$compiler_c_o" >&6
5426
5427 if test x"$compiler_c_o" = x"yes"; then
5428   # Check to see if we can write to a .lo
5429   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5430 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5431   if test "${lt_cv_compiler_o_lo+set}" = set; then
5432   echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434
5435   lt_cv_compiler_o_lo=no
5436   save_CFLAGS="$CFLAGS"
5437   CFLAGS="$CFLAGS -c -o conftest.lo"
5438   save_objext="$ac_objext"
5439   ac_objext=lo
5440   cat >conftest.$ac_ext <<_ACEOF
5441 /* confdefs.h.  */
5442 _ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h.  */
5446
5447 int
5448 main ()
5449 {
5450 int some_variable = 0;
5451   ;
5452   return 0;
5453 }
5454 _ACEOF
5455 rm -f conftest.$ac_objext
5456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5457   (eval $ac_compile) 2>conftest.er1
5458   ac_status=$?
5459   grep -v '^ *+' conftest.er1 >conftest.err
5460   rm -f conftest.er1
5461   cat conftest.err >&5
5462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463   (exit $ac_status); } &&
5464          { ac_try='test -z "$ac_c_werror_flag"
5465                          || test ! -s conftest.err'
5466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467   (eval $ac_try) 2>&5
5468   ac_status=$?
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); }; } &&
5471          { ac_try='test -s conftest.$ac_objext'
5472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473   (eval $ac_try) 2>&5
5474   ac_status=$?
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); }; }; then
5477       # The compiler can only warn and ignore the option if not recognized
5478     # So say no if there are warnings
5479     if test -s conftest.err; then
5480       lt_cv_compiler_o_lo=no
5481     else
5482       lt_cv_compiler_o_lo=yes
5483     fi
5484
5485 else
5486   echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5488
5489 fi
5490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5491   ac_objext="$save_objext"
5492   CFLAGS="$save_CFLAGS"
5493
5494 fi
5495
5496   compiler_o_lo=$lt_cv_compiler_o_lo
5497   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5498 echo "${ECHO_T}$compiler_o_lo" >&6
5499 else
5500   compiler_o_lo=no
5501 fi
5502
5503 # Check to see if we can do hard links to lock some files if needed
5504 hard_links="nottested"
5505 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5506   # do not overwrite the value of need_locks provided by the user
5507   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5508 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5509   hard_links=yes
5510   $rm conftest*
5511   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5512   touch conftest.a
5513   ln conftest.a conftest.b 2>&5 || hard_links=no
5514   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5515   echo "$as_me:$LINENO: result: $hard_links" >&5
5516 echo "${ECHO_T}$hard_links" >&6
5517   if test "$hard_links" = no; then
5518     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5519 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5520     need_locks=warn
5521   fi
5522 else
5523   need_locks=no
5524 fi
5525
5526 if test "$GCC" = yes; then
5527   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5528   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5529 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5530   echo "int some_variable = 0;" > conftest.$ac_ext
5531   save_CFLAGS="$CFLAGS"
5532   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5533   compiler_rtti_exceptions=no
5534   cat >conftest.$ac_ext <<_ACEOF
5535 /* confdefs.h.  */
5536 _ACEOF
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h.  */
5540
5541 int
5542 main ()
5543 {
5544 int some_variable = 0;
5545   ;
5546   return 0;
5547 }
5548 _ACEOF
5549 rm -f conftest.$ac_objext
5550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5551   (eval $ac_compile) 2>conftest.er1
5552   ac_status=$?
5553   grep -v '^ *+' conftest.er1 >conftest.err
5554   rm -f conftest.er1
5555   cat conftest.err >&5
5556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557   (exit $ac_status); } &&
5558          { ac_try='test -z "$ac_c_werror_flag"
5559                          || test ! -s conftest.err'
5560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561   (eval $ac_try) 2>&5
5562   ac_status=$?
5563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564   (exit $ac_status); }; } &&
5565          { ac_try='test -s conftest.$ac_objext'
5566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567   (eval $ac_try) 2>&5
5568   ac_status=$?
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); }; }; then
5571       # The compiler can only warn and ignore the option if not recognized
5572     # So say no if there are warnings
5573     if test -s conftest.err; then
5574       compiler_rtti_exceptions=no
5575     else
5576       compiler_rtti_exceptions=yes
5577     fi
5578
5579 else
5580   echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5582
5583 fi
5584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5585   CFLAGS="$save_CFLAGS"
5586   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5587 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5588
5589   if test "$compiler_rtti_exceptions" = "yes"; then
5590     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5591   else
5592     no_builtin_flag=' -fno-builtin'
5593   fi
5594 fi
5595
5596 # See if the linker supports building shared libraries.
5597 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5598 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5599
5600 allow_undefined_flag=
5601 no_undefined_flag=
5602 need_lib_prefix=unknown
5603 need_version=unknown
5604 # when you set need_version to no, make sure it does not cause -set_version
5605 # flags to be left without arguments
5606 archive_cmds=
5607 archive_expsym_cmds=
5608 old_archive_from_new_cmds=
5609 old_archive_from_expsyms_cmds=
5610 export_dynamic_flag_spec=
5611 whole_archive_flag_spec=
5612 thread_safe_flag_spec=
5613 hardcode_into_libs=no
5614 hardcode_libdir_flag_spec=
5615 hardcode_libdir_separator=
5616 hardcode_direct=no
5617 hardcode_minus_L=no
5618 hardcode_shlibpath_var=unsupported
5619 runpath_var=
5620 link_all_deplibs=unknown
5621 always_export_symbols=no
5622 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5623 # include_expsyms should be a list of space-separated symbols to be *always*
5624 # included in the symbol list
5625 include_expsyms=
5626 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5627 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5628 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5629 # as well as any symbol that contains `d'.
5630 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5631 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5632 # platforms (ab)use it in PIC code, but their linkers get confused if
5633 # the symbol is explicitly referenced.  Since portable code cannot
5634 # rely on this symbol name, it's probably fine to never include it in
5635 # preloaded symbol tables.
5636 extract_expsyms_cmds=
5637
5638 case $host_os in
5639 cygwin* | mingw* | pw32*)
5640   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5641   # When not using gcc, we currently assume that we are using
5642   # Microsoft Visual C++.
5643   if test "$GCC" != yes; then
5644     with_gnu_ld=no
5645   fi
5646   ;;
5647 openbsd*)
5648   with_gnu_ld=no
5649   ;;
5650 esac
5651
5652 ld_shlibs=yes
5653 if test "$with_gnu_ld" = yes; then
5654   # If archive_cmds runs LD, not CC, wlarc should be empty
5655   wlarc='${wl}'
5656
5657   # See if GNU ld supports shared libraries.
5658   case $host_os in
5659   aix3* | aix4* | aix5*)
5660     # On AIX, the GNU linker is very broken
5661     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5662     ld_shlibs=no
5663     cat <<EOF 1>&2
5664
5665 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5666 *** to be unable to reliably create shared libraries on AIX.
5667 *** Therefore, libtool is disabling shared libraries support.  If you
5668 *** really care for shared libraries, you may want to modify your PATH
5669 *** so that a non-GNU linker is found, and then restart.
5670
5671 EOF
5672     ;;
5673
5674   amigaos*)
5675     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)'
5676     hardcode_libdir_flag_spec='-L$libdir'
5677     hardcode_minus_L=yes
5678
5679     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5680     # that the semantics of dynamic libraries on AmigaOS, at least up
5681     # to version 4, is to share data among multiple programs linked
5682     # with the same dynamic library.  Since this doesn't match the
5683     # behavior of shared libraries on other platforms, we can use
5684     # them.
5685     ld_shlibs=no
5686     ;;
5687
5688   beos*)
5689     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5690       allow_undefined_flag=unsupported
5691       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5692       # support --undefined.  This deserves some investigation.  FIXME
5693       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5694     else
5695       ld_shlibs=no
5696     fi
5697     ;;
5698
5699   cygwin* | mingw* | pw32*)
5700     # hardcode_libdir_flag_spec is actually meaningless, as there is
5701     # no search path for DLLs.
5702     hardcode_libdir_flag_spec='-L$libdir'
5703     allow_undefined_flag=unsupported
5704     always_export_symbols=yes
5705
5706     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5707       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5708       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5709       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5710       else $CC -o impgen impgen.c ; fi)~
5711       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5712
5713     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5714
5715     # cygwin and mingw dlls have different entry points and sets of symbols
5716     # to exclude.
5717     # FIXME: what about values for MSVC?
5718     dll_entry=__cygwin_dll_entry@12
5719     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5720     case $host_os in
5721     mingw*)
5722       # mingw values
5723       dll_entry=_DllMainCRTStartup@12
5724       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5725       ;;
5726     esac
5727
5728     # mingw and cygwin differ, and it's simplest to just exclude the union
5729     # of the two symbol sets.
5730     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5731
5732     # recent cygwin and mingw systems supply a stub DllMain which the user
5733     # can override, but on older systems we have to supply one (in ltdll.c)
5734     if test "x$lt_cv_need_dllmain" = "xyes"; then
5735       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5736       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~
5737         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5738     else
5739       ltdll_obj=
5740       ltdll_cmds=
5741     fi
5742
5743     # Extract the symbol export list from an `--export-all' def file,
5744     # then regenerate the def file from the symbol export list, so that
5745     # the compiled dll only exports the symbol export list.
5746     # Be careful not to strip the DATA tag left be newer dlltools.
5747     export_symbols_cmds="$ltdll_cmds"'
5748       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5749       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5750
5751     # If the export-symbols file already is a .def file (1st line
5752     # is EXPORTS), use it as is.
5753     # If DATA tags from a recent dlltool are present, honour them!
5754     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5755         cp $export_symbols $output_objdir/$soname-def;
5756       else
5757         echo EXPORTS > $output_objdir/$soname-def;
5758         _lt_hint=1;
5759         cat $export_symbols | while read symbol; do
5760          set dummy \$symbol;
5761          case \$# in
5762            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5763            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5764            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5765          esac;
5766          _lt_hint=`expr 1 + \$_lt_hint`;
5767         done;
5768       fi~
5769       '"$ltdll_cmds"'
5770       $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~
5771       $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~
5772       $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~
5773       $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~
5774       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5775     ;;
5776
5777   netbsd*)
5778     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5779       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5780       wlarc=
5781     else
5782       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5783       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5784     fi
5785     ;;
5786
5787   solaris* | sysv5*)
5788     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5789       ld_shlibs=no
5790       cat <<EOF 1>&2
5791
5792 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5793 *** create shared libraries on Solaris systems.  Therefore, libtool
5794 *** is disabling shared libraries support.  We urge you to upgrade GNU
5795 *** binutils to release 2.9.1 or newer.  Another option is to modify
5796 *** your PATH or compiler configuration so that the native linker is
5797 *** used, and then restart.
5798
5799 EOF
5800     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5801       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5802       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5803     else
5804       ld_shlibs=no
5805     fi
5806     ;;
5807
5808   sunos4*)
5809     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5810     wlarc=
5811     hardcode_direct=yes
5812     hardcode_shlibpath_var=no
5813     ;;
5814
5815   linux*)
5816     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5817       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5818       supports_anon_versioning=no
5819       case `$LD -v 2>/dev/null` in
5820         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5821         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5822         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5823         *\ 2.11.*) ;; # other 2.11 versions
5824         *) supports_anon_versioning=yes ;;
5825       esac
5826       if test $supports_anon_versioning = yes; then
5827         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5828 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5829 $echo "local: *; };" >> $output_objdir/$libname.ver~
5830         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5831       else
5832         $archive_expsym_cmds="$archive_cmds"
5833       fi
5834     else
5835       ld_shlibs=no
5836     fi
5837     ;;
5838
5839   *)
5840     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5841       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5842       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5843     else
5844       ld_shlibs=no
5845     fi
5846     ;;
5847   esac
5848
5849   if test "$ld_shlibs" = yes; then
5850     runpath_var=LD_RUN_PATH
5851     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5852     export_dynamic_flag_spec='${wl}--export-dynamic'
5853     case $host_os in
5854     cygwin* | mingw* | pw32*)
5855       # dlltool doesn't understand --whole-archive et. al.
5856       whole_archive_flag_spec=
5857       ;;
5858     *)
5859       # ancient GNU ld didn't support --whole-archive et. al.
5860       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5861         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5862       else
5863         whole_archive_flag_spec=
5864       fi
5865       ;;
5866     esac
5867   fi
5868 else
5869   # PORTME fill in a description of your system's linker (not GNU ld)
5870   case $host_os in
5871   aix3*)
5872     allow_undefined_flag=unsupported
5873     always_export_symbols=yes
5874     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'
5875     # Note: this linker hardcodes the directories in LIBPATH if there
5876     # are no directories specified by -L.
5877     hardcode_minus_L=yes
5878     if test "$GCC" = yes && test -z "$link_static_flag"; then
5879       # Neither direct hardcoding nor static linking is supported with a
5880       # broken collect2.
5881       hardcode_direct=unsupported
5882     fi
5883     ;;
5884
5885   aix4* | aix5*)
5886     if test "$host_cpu" = ia64; then
5887       # On IA64, the linker does run time linking by default, so we don't
5888       # have to do anything special.
5889       aix_use_runtimelinking=no
5890       exp_sym_flag='-Bexport'
5891       no_entry_flag=""
5892     else
5893       aix_use_runtimelinking=no
5894
5895       # Test if we are trying to use run time linking or normal
5896       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5897       # need to do runtime linking.
5898       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5899         for ld_flag in $LDFLAGS; do
5900           case $ld_flag in
5901           *-brtl*)
5902             aix_use_runtimelinking=yes
5903             break
5904           ;;
5905           esac
5906         done
5907       esac
5908
5909       exp_sym_flag='-bexport'
5910       no_entry_flag='-bnoentry'
5911     fi
5912
5913     # When large executables or shared objects are built, AIX ld can
5914     # have problems creating the table of contents.  If linking a library
5915     # or program results in "error TOC overflow" add -mminimal-toc to
5916     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5917     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5918
5919     hardcode_direct=yes
5920     archive_cmds=''
5921     hardcode_libdir_separator=':'
5922     if test "$GCC" = yes; then
5923       case $host_os in aix4.[012]|aix4.[012].*)
5924         collect2name=`${CC} -print-prog-name=collect2`
5925         if test -f "$collect2name" && \
5926           strings "$collect2name" | grep resolve_lib_name >/dev/null
5927         then
5928           # We have reworked collect2
5929           hardcode_direct=yes
5930         else
5931           # We have old collect2
5932           hardcode_direct=unsupported
5933           # It fails to find uninstalled libraries when the uninstalled
5934           # path is not listed in the libpath.  Setting hardcode_minus_L
5935           # to unsupported forces relinking
5936           hardcode_minus_L=yes
5937           hardcode_libdir_flag_spec='-L$libdir'
5938           hardcode_libdir_separator=
5939         fi
5940       esac
5941
5942       shared_flag='-shared'
5943     else
5944       # not using gcc
5945       if test "$host_cpu" = ia64; then
5946         shared_flag='${wl}-G'
5947       else
5948         if test "$aix_use_runtimelinking" = yes; then
5949           shared_flag='${wl}-G'
5950         else
5951           shared_flag='${wl}-bM:SRE'
5952         fi
5953       fi
5954     fi
5955
5956     # It seems that -bexpall can do strange things, so it is better to
5957     # generate a list of symbols to export.
5958     always_export_symbols=yes
5959     if test "$aix_use_runtimelinking" = yes; then
5960       # Warning - without using the other runtime loading flags (-brtl),
5961       # -berok will link without error, but may produce a broken library.
5962       allow_undefined_flag='-berok'
5963       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5964       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"
5965     else
5966       if test "$host_cpu" = ia64; then
5967         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5968         allow_undefined_flag="-z nodefs"
5969         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"
5970       else
5971         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5972         # Warning - without using the other run time loading flags,
5973         # -berok will link without error, but may produce a broken library.
5974         allow_undefined_flag='${wl}-berok'
5975         # This is a bit strange, but is similar to how AIX traditionally builds
5976         # it's shared libraries.
5977         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'
5978       fi
5979     fi
5980     ;;
5981
5982   amigaos*)
5983     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)'
5984     hardcode_libdir_flag_spec='-L$libdir'
5985     hardcode_minus_L=yes
5986     # see comment about different semantics on the GNU ld section
5987     ld_shlibs=no
5988     ;;
5989
5990   cygwin* | mingw* | pw32*)
5991     # When not using gcc, we currently assume that we are using
5992     # Microsoft Visual C++.
5993     # hardcode_libdir_flag_spec is actually meaningless, as there is
5994     # no search path for DLLs.
5995     hardcode_libdir_flag_spec=' '
5996     allow_undefined_flag=unsupported
5997     # Tell ltmain to make .lib files, not .a files.
5998     libext=lib
5999     # FIXME: Setting linknames here is a bad hack.
6000     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6001     # The linker will automatically build a .lib file if we build a DLL.
6002     old_archive_from_new_cmds='true'
6003     # FIXME: Should let the user specify the lib program.
6004     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6005     fix_srcfile_path='`cygpath -w "$srcfile"`'
6006     ;;
6007
6008   darwin* | rhapsody*)
6009     case "$host_os" in
6010     rhapsody* | darwin1.[012])
6011       allow_undefined_flag='-undefined suppress'
6012       ;;
6013     *) # Darwin 1.3 on
6014       allow_undefined_flag='-flat_namespace -undefined suppress'
6015       ;;
6016     esac
6017     # FIXME: Relying on posixy $() will cause problems for
6018     #        cross-compilation, but unfortunately the echo tests do not
6019     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6020     #        `"' quotes if we put them in here... so don't!
6021     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)'
6022     # We need to add '_' to the symbols in $export_symbols first
6023     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6024     hardcode_direct=yes
6025     hardcode_shlibpath_var=no
6026     whole_archive_flag_spec='-all_load $convenience'
6027     ;;
6028
6029   freebsd1*)
6030     ld_shlibs=no
6031     ;;
6032
6033   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6034   # support.  Future versions do this automatically, but an explicit c++rt0.o
6035   # does not break anything, and helps significantly (at the cost of a little
6036   # extra space).
6037   freebsd2.2*)
6038     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6039     hardcode_libdir_flag_spec='-R$libdir'
6040     hardcode_direct=yes
6041     hardcode_shlibpath_var=no
6042     ;;
6043
6044   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6045   freebsd2*)
6046     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6047     hardcode_direct=yes
6048     hardcode_minus_L=yes
6049     hardcode_shlibpath_var=no
6050     ;;
6051
6052   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6053   freebsd*)
6054     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6055     hardcode_libdir_flag_spec='-R$libdir'
6056     hardcode_direct=yes
6057     hardcode_shlibpath_var=no
6058     ;;
6059
6060   hpux9* | hpux10* | hpux11*)
6061     case $host_os in
6062     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' ;;
6063     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6064     esac
6065     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6066     hardcode_libdir_separator=:
6067     hardcode_direct=yes
6068     hardcode_minus_L=yes # Not in the search PATH, but as the default
6069                          # location of the library.
6070     export_dynamic_flag_spec='${wl}-E'
6071     ;;
6072
6073   irix5* | irix6* | nonstopux*)
6074     if test "$GCC" = yes; then
6075       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'
6076       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6077     else
6078       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'
6079       hardcode_libdir_flag_spec='-rpath $libdir'
6080     fi
6081     hardcode_libdir_separator=:
6082     link_all_deplibs=yes
6083     ;;
6084
6085   netbsd*)
6086     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6087       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6088     else
6089       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6090     fi
6091     hardcode_libdir_flag_spec='-R$libdir'
6092     hardcode_direct=yes
6093     hardcode_shlibpath_var=no
6094     ;;
6095
6096   newsos6)
6097     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6098     hardcode_direct=yes
6099     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6100     hardcode_libdir_separator=:
6101     hardcode_shlibpath_var=no
6102     ;;
6103
6104   openbsd*)
6105     hardcode_direct=yes
6106     hardcode_shlibpath_var=no
6107     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6108       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6109       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6110       export_dynamic_flag_spec='${wl}-E'
6111     else
6112       case "$host_os" in
6113       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6114         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6115         hardcode_libdir_flag_spec='-R$libdir'
6116         ;;
6117       *)
6118         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6119         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6120         ;;
6121       esac
6122     fi
6123     ;;
6124
6125   os2*)
6126     hardcode_libdir_flag_spec='-L$libdir'
6127     hardcode_minus_L=yes
6128     allow_undefined_flag=unsupported
6129     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'
6130     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6131     ;;
6132
6133   osf3*)
6134     if test "$GCC" = yes; then
6135       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6136       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'
6137     else
6138       allow_undefined_flag=' -expect_unresolved \*'
6139       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'
6140     fi
6141     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6142     hardcode_libdir_separator=:
6143     ;;
6144
6145   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6146     if test "$GCC" = yes; then
6147       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6148       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'
6149       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6150     else
6151       allow_undefined_flag=' -expect_unresolved \*'
6152       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'
6153       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6154       $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'
6155
6156       #Both c and cxx compiler support -rpath directly
6157       hardcode_libdir_flag_spec='-rpath $libdir'
6158     fi
6159     hardcode_libdir_separator=:
6160     ;;
6161
6162   sco3.2v5*)
6163     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6164     hardcode_shlibpath_var=no
6165     runpath_var=LD_RUN_PATH
6166     hardcode_runpath_var=yes
6167     export_dynamic_flag_spec='${wl}-Bexport'
6168     ;;
6169
6170   solaris*)
6171     # gcc --version < 3.0 without binutils cannot create self contained
6172     # shared libraries reliably, requiring libgcc.a to resolve some of
6173     # the object symbols generated in some cases.  Libraries that use
6174     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6175     # a copy of libgcc.a into every shared library to guarantee resolving
6176     # such symbols causes other problems:  According to Tim Van Holder
6177     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6178     # (to the application) exception stack for one thing.
6179     no_undefined_flag=' -z defs'
6180     if test "$GCC" = yes; then
6181       case `$CC --version 2>/dev/null` in
6182       [12].*)
6183         cat <<EOF 1>&2
6184
6185 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6186 *** create self contained shared libraries on Solaris systems, without
6187 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6188 *** -no-undefined support, which will at least allow you to build shared
6189 *** libraries.  However, you may find that when you link such libraries
6190 *** into an application without using GCC, you have to manually add
6191 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6192 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6193 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6194
6195 EOF
6196         no_undefined_flag=
6197         ;;
6198       esac
6199     fi
6200     # $CC -shared without GNU ld will not create a library from C++
6201     # object files and a static libstdc++, better avoid it by now
6202     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6203     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6204                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6205     hardcode_libdir_flag_spec='-R$libdir'
6206     hardcode_shlibpath_var=no
6207     case $host_os in
6208     solaris2.[0-5] | solaris2.[0-5].*) ;;
6209     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6210       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6211     esac
6212     link_all_deplibs=yes
6213     ;;
6214
6215   sunos4*)
6216     if test "x$host_vendor" = xsequent; then
6217       # Use $CC to link under sequent, because it throws in some extra .o
6218       # files that make .init and .fini sections work.
6219       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6220     else
6221       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6222     fi
6223     hardcode_libdir_flag_spec='-L$libdir'
6224     hardcode_direct=yes
6225     hardcode_minus_L=yes
6226     hardcode_shlibpath_var=no
6227     ;;
6228
6229   sysv4)
6230     case $host_vendor in
6231       sni)
6232         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6233         hardcode_direct=yes # is this really true???
6234         ;;
6235       siemens)
6236         ## LD is ld it makes a PLAMLIB
6237         ## CC just makes a GrossModule.
6238         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6239         reload_cmds='$CC -r -o $output$reload_objs'
6240         hardcode_direct=no
6241         ;;
6242       motorola)
6243         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6244         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6245         ;;
6246     esac
6247     runpath_var='LD_RUN_PATH'
6248     hardcode_shlibpath_var=no
6249     ;;
6250
6251   sysv4.3*)
6252     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6253     hardcode_shlibpath_var=no
6254     export_dynamic_flag_spec='-Bexport'
6255     ;;
6256
6257   sysv5*)
6258     no_undefined_flag=' -z text'
6259     # $CC -shared without GNU ld will not create a library from C++
6260     # object files and a static libstdc++, better avoid it by now
6261     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6262     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6263                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6264     hardcode_libdir_flag_spec=
6265     hardcode_shlibpath_var=no
6266     runpath_var='LD_RUN_PATH'
6267     ;;
6268
6269   uts4*)
6270     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6271     hardcode_libdir_flag_spec='-L$libdir'
6272     hardcode_shlibpath_var=no
6273     ;;
6274
6275   dgux*)
6276     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6277     hardcode_libdir_flag_spec='-L$libdir'
6278     hardcode_shlibpath_var=no
6279     ;;
6280
6281   sysv4*MP*)
6282     if test -d /usr/nec; then
6283       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6284       hardcode_shlibpath_var=no
6285       runpath_var=LD_RUN_PATH
6286       hardcode_runpath_var=yes
6287       ld_shlibs=yes
6288     fi
6289     ;;
6290
6291   sysv4.2uw2*)
6292     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6293     hardcode_direct=yes
6294     hardcode_minus_L=no
6295     hardcode_shlibpath_var=no
6296     hardcode_runpath_var=yes
6297     runpath_var=LD_RUN_PATH
6298     ;;
6299
6300   sysv5uw7* | unixware7*)
6301     no_undefined_flag='${wl}-z ${wl}text'
6302     if test "$GCC" = yes; then
6303       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6304     else
6305       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6306     fi
6307     runpath_var='LD_RUN_PATH'
6308     hardcode_shlibpath_var=no
6309     ;;
6310
6311   *)
6312     ld_shlibs=no
6313     ;;
6314   esac
6315 fi
6316 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6317 echo "${ECHO_T}$ld_shlibs" >&6
6318 test "$ld_shlibs" = no && can_build_shared=no
6319
6320 # Check hardcoding attributes.
6321 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6322 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6323 hardcode_action=
6324 if test -n "$hardcode_libdir_flag_spec" || \
6325    test -n "$runpath_var"; then
6326
6327   # We can hardcode non-existant directories.
6328   if test "$hardcode_direct" != no &&
6329      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6330      # have to relink, otherwise we might link with an installed library
6331      # when we should be linking with a yet-to-be-installed one
6332      ## test "$hardcode_shlibpath_var" != no &&
6333      test "$hardcode_minus_L" != no; then
6334     # Linking always hardcodes the temporary library directory.
6335     hardcode_action=relink
6336   else
6337     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6338     hardcode_action=immediate
6339   fi
6340 else
6341   # We cannot hardcode anything, or else we can only hardcode existing
6342   # directories.
6343   hardcode_action=unsupported
6344 fi
6345 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6346 echo "${ECHO_T}$hardcode_action" >&6
6347
6348 striplib=
6349 old_striplib=
6350 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6351 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6352 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6353   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6354   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6355   echo "$as_me:$LINENO: result: yes" >&5
6356 echo "${ECHO_T}yes" >&6
6357 else
6358   echo "$as_me:$LINENO: result: no" >&5
6359 echo "${ECHO_T}no" >&6
6360 fi
6361
6362 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6363 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6364
6365 # PORTME Fill in your ld.so characteristics
6366 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6367 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6368 library_names_spec=
6369 libname_spec='lib$name'
6370 soname_spec=
6371 postinstall_cmds=
6372 postuninstall_cmds=
6373 finish_cmds=
6374 finish_eval=
6375 shlibpath_var=
6376 shlibpath_overrides_runpath=unknown
6377 version_type=none
6378 dynamic_linker="$host_os ld.so"
6379 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6380 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6381
6382 case $host_os in
6383 aix3*)
6384   version_type=linux
6385   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6386   shlibpath_var=LIBPATH
6387
6388   # AIX has no versioning support, so we append a major version to the name.
6389   soname_spec='${libname}${release}.so$major'
6390   ;;
6391
6392 aix4* | aix5*)
6393   version_type=linux
6394   need_lib_prefix=no
6395   need_version=no
6396   hardcode_into_libs=yes
6397   if test "$host_cpu" = ia64; then
6398     # AIX 5 supports IA64
6399     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6400     shlibpath_var=LD_LIBRARY_PATH
6401   else
6402     # With GCC up to 2.95.x, collect2 would create an import file
6403     # for dependence libraries.  The import file would start with
6404     # the line `#! .'.  This would cause the generated library to
6405     # depend on `.', always an invalid library.  This was fixed in
6406     # development snapshots of GCC prior to 3.0.
6407     case $host_os in
6408       aix4 | aix4.[01] | aix4.[01].*)
6409         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6410              echo ' yes '
6411              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6412           :
6413         else
6414           can_build_shared=no
6415         fi
6416         ;;
6417     esac
6418     # AIX (on Power*) has no versioning support, so currently we can
6419     # not hardcode correct soname into executable. Probably we can
6420     # add versioning support to collect2, so additional links can
6421     # be useful in future.
6422     if test "$aix_use_runtimelinking" = yes; then
6423       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6424       # instead of lib<name>.a to let people know that these are not
6425       # typical AIX shared libraries.
6426       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6427     else
6428       # We preserve .a as extension for shared libraries through AIX4.2
6429       # and later when we are not doing run time linking.
6430       library_names_spec='${libname}${release}.a $libname.a'
6431       soname_spec='${libname}${release}.so$major'
6432     fi
6433     shlibpath_var=LIBPATH
6434   fi
6435   hardcode_into_libs=yes
6436   ;;
6437
6438 amigaos*)
6439   library_names_spec='$libname.ixlibrary $libname.a'
6440   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6441   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'
6442   ;;
6443
6444 beos*)
6445   library_names_spec='${libname}.so'
6446   dynamic_linker="$host_os ld.so"
6447   shlibpath_var=LIBRARY_PATH
6448   ;;
6449
6450 bsdi4*)
6451   version_type=linux
6452   need_version=no
6453   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6454   soname_spec='${libname}${release}.so$major'
6455   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6456   shlibpath_var=LD_LIBRARY_PATH
6457   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6458   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6459   export_dynamic_flag_spec=-rdynamic
6460   # the default ld.so.conf also contains /usr/contrib/lib and
6461   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6462   # libtool to hard-code these into programs
6463   ;;
6464
6465 cygwin* | mingw* | pw32*)
6466   version_type=windows
6467   need_version=no
6468   need_lib_prefix=no
6469   case $GCC,$host_os in
6470   yes,cygwin*)
6471     library_names_spec='$libname.dll.a'
6472     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6473     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6474       dldir=$destdir/`dirname \$dlpath`~
6475       test -d \$dldir || mkdir -p \$dldir~
6476       $install_prog .libs/$dlname \$dldir/$dlname'
6477     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6478       dlpath=$dir/\$dldll~
6479        $rm \$dlpath'
6480     ;;
6481   yes,mingw*)
6482     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6483     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6484     ;;
6485   yes,pw32*)
6486     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6487     ;;
6488   *)
6489     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6490     ;;
6491   esac
6492   dynamic_linker='Win32 ld.exe'
6493   # FIXME: first we should search . and the directory the executable is in
6494   shlibpath_var=PATH
6495   ;;
6496
6497 darwin* | rhapsody*)
6498   dynamic_linker="$host_os dyld"
6499   version_type=darwin
6500   need_lib_prefix=no
6501   need_version=no
6502   # FIXME: Relying on posixy $() will cause problems for
6503   #        cross-compilation, but unfortunately the echo tests do not
6504   #        yet detect zsh echo's removal of \ escapes.
6505   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)'
6506   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6507   shlibpath_overrides_runpath=yes
6508   shlibpath_var=DYLD_LIBRARY_PATH
6509   ;;
6510
6511 freebsd1*)
6512   dynamic_linker=no
6513   ;;
6514
6515 freebsd*)
6516   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6517   version_type=freebsd-$objformat
6518   case $version_type in
6519     freebsd-elf*)
6520       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6521       need_version=no
6522       need_lib_prefix=no
6523       ;;
6524     freebsd-*)
6525       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6526       need_version=yes
6527       ;;
6528   esac
6529   shlibpath_var=LD_LIBRARY_PATH
6530   case $host_os in
6531   freebsd2*)
6532     shlibpath_overrides_runpath=yes
6533     ;;
6534   *)
6535     shlibpath_overrides_runpath=no
6536     hardcode_into_libs=yes
6537     ;;
6538   esac
6539   ;;
6540
6541 gnu*)
6542   version_type=linux
6543   need_lib_prefix=no
6544   need_version=no
6545   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6546   soname_spec='${libname}${release}.so$major'
6547   shlibpath_var=LD_LIBRARY_PATH
6548   hardcode_into_libs=yes
6549   ;;
6550
6551 hpux9* | hpux10* | hpux11*)
6552   # Give a soname corresponding to the major version so that dld.sl refuses to
6553   # link against other versions.
6554   dynamic_linker="$host_os dld.sl"
6555   version_type=sunos
6556   need_lib_prefix=no
6557   need_version=no
6558   shlibpath_var=SHLIB_PATH
6559   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6560   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6561   soname_spec='${libname}${release}.sl$major'
6562   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6563   postinstall_cmds='chmod 555 $lib'
6564   ;;
6565
6566 irix5* | irix6* | nonstopux*)
6567   case $host_os in
6568     nonstopux*) version_type=nonstopux ;;
6569     *)          version_type=irix ;;
6570   esac
6571   need_lib_prefix=no
6572   need_version=no
6573   soname_spec='${libname}${release}.so$major'
6574   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6575   case $host_os in
6576   irix5* | nonstopux*)
6577     libsuff= shlibsuff=
6578     ;;
6579   *)
6580     case $LD in # libtool.m4 will add one of these switches to LD
6581     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6582     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6583     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6584     *) libsuff= shlibsuff= libmagic=never-match;;
6585     esac
6586     ;;
6587   esac
6588   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6589   shlibpath_overrides_runpath=no
6590   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6591   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6592   ;;
6593
6594 # No shared lib support for Linux oldld, aout, or coff.
6595 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6596   dynamic_linker=no
6597   ;;
6598
6599 # This must be Linux ELF.
6600 linux-gnu*)
6601   version_type=linux
6602   need_lib_prefix=no
6603   need_version=no
6604   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6605   soname_spec='${libname}${release}.so$major'
6606   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6607   shlibpath_var=LD_LIBRARY_PATH
6608   shlibpath_overrides_runpath=no
6609   # This implies no fast_install, which is unacceptable.
6610   # Some rework will be needed to allow for fast_install
6611   # before this can be enabled.
6612   hardcode_into_libs=yes
6613
6614   case $host_cpu:$lt_cv_cc_64bit_output in
6615   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6616     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6617     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6618     ;;
6619   esac
6620
6621   # We used to test for /lib/ld.so.1 and disable shared libraries on
6622   # powerpc, because MkLinux only supported shared libraries with the
6623   # GNU dynamic linker.  Since this was broken with cross compilers,
6624   # most powerpc-linux boxes support dynamic linking these days and
6625   # people can always --disable-shared, the test was removed, and we
6626   # assume the GNU/Linux dynamic linker is in use.
6627   dynamic_linker='GNU/Linux ld.so'
6628
6629   # Find out which ABI we are using (multilib Linux x86_64 hack).
6630   libsuff=
6631   case "$host_cpu" in
6632   x86_64*)
6633     echo '#line 6633 "configure"' > conftest.$ac_ext
6634     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6635   (eval $ac_compile) 2>&5
6636   ac_status=$?
6637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638   (exit $ac_status); }; then
6639       case `/usr/bin/file conftest.$ac_objext` in
6640       *64-bit*)
6641         libsuff=64
6642         ;;
6643       esac
6644     fi
6645     rm -rf conftest*
6646     ;;
6647   *)
6648     ;;
6649   esac
6650   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6651   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6652   ;;
6653
6654 netbsd*)
6655   version_type=sunos
6656   need_lib_prefix=no
6657   need_version=no
6658   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6659     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6660     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6661     dynamic_linker='NetBSD (a.out) ld.so'
6662   else
6663     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6664     soname_spec='${libname}${release}.so$major'
6665     dynamic_linker='NetBSD ld.elf_so'
6666   fi
6667   shlibpath_var=LD_LIBRARY_PATH
6668   shlibpath_overrides_runpath=yes
6669   hardcode_into_libs=yes
6670   ;;
6671
6672 newsos6)
6673   version_type=linux
6674   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6675   shlibpath_var=LD_LIBRARY_PATH
6676   shlibpath_overrides_runpath=yes
6677   ;;
6678
6679 openbsd*)
6680   version_type=sunos
6681   need_lib_prefix=no
6682   need_version=no
6683   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6684     case "$host_os" in
6685     openbsd2.[89] | openbsd2.[89].*)
6686       shlibpath_overrides_runpath=no
6687       ;;
6688     *)
6689       shlibpath_overrides_runpath=yes
6690       ;;
6691     esac
6692   else
6693     shlibpath_overrides_runpath=yes
6694   fi
6695   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6696   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6697   shlibpath_var=LD_LIBRARY_PATH
6698   ;;
6699
6700 os2*)
6701   libname_spec='$name'
6702   need_lib_prefix=no
6703   library_names_spec='$libname.dll $libname.a'
6704   dynamic_linker='OS/2 ld.exe'
6705   shlibpath_var=LIBPATH
6706   ;;
6707
6708 osf3* | osf4* | osf5*)
6709   version_type=osf
6710   need_version=no
6711   soname_spec='${libname}${release}.so$major'
6712   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6713   shlibpath_var=LD_LIBRARY_PATH
6714   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6715   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6716   hardcode_into_libs=yes
6717   ;;
6718
6719 sco3.2v5*)
6720   version_type=osf
6721   soname_spec='${libname}${release}.so$major'
6722   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6723   shlibpath_var=LD_LIBRARY_PATH
6724   ;;
6725
6726 solaris*)
6727   version_type=linux
6728   need_lib_prefix=no
6729   need_version=no
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   shlibpath_overrides_runpath=yes
6734   hardcode_into_libs=yes
6735   # ldd complains unless libraries are executable
6736   postinstall_cmds='chmod +x $lib'
6737   ;;
6738
6739 sunos4*)
6740   version_type=sunos
6741   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6742   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6743   shlibpath_var=LD_LIBRARY_PATH
6744   shlibpath_overrides_runpath=yes
6745   if test "$with_gnu_ld" = yes; then
6746     need_lib_prefix=no
6747   fi
6748   need_version=yes
6749   ;;
6750
6751 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6752   version_type=linux
6753   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6754   soname_spec='${libname}${release}.so$major'
6755   shlibpath_var=LD_LIBRARY_PATH
6756   case $host_vendor in
6757     sni)
6758       shlibpath_overrides_runpath=no
6759       need_lib_prefix=no
6760       export_dynamic_flag_spec='${wl}-Blargedynsym'
6761       runpath_var=LD_RUN_PATH
6762       ;;
6763     siemens)
6764       need_lib_prefix=no
6765       ;;
6766     motorola)
6767       need_lib_prefix=no
6768       need_version=no
6769       shlibpath_overrides_runpath=no
6770       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6771       ;;
6772   esac
6773   ;;
6774
6775 uts4*)
6776   version_type=linux
6777   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6778   soname_spec='${libname}${release}.so$major'
6779   shlibpath_var=LD_LIBRARY_PATH
6780   ;;
6781
6782 dgux*)
6783   version_type=linux
6784   need_lib_prefix=no
6785   need_version=no
6786   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6787   soname_spec='${libname}${release}.so$major'
6788   shlibpath_var=LD_LIBRARY_PATH
6789   ;;
6790
6791 sysv4*MP*)
6792   if test -d /usr/nec ;then
6793     version_type=linux
6794     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6795     soname_spec='$libname.so.$major'
6796     shlibpath_var=LD_LIBRARY_PATH
6797   fi
6798   ;;
6799
6800 *)
6801   dynamic_linker=no
6802   ;;
6803 esac
6804 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6805 echo "${ECHO_T}$dynamic_linker" >&6
6806 test "$dynamic_linker" = no && can_build_shared=no
6807
6808 # Report the final consequences.
6809 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6810 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6811 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6812 echo "${ECHO_T}$can_build_shared" >&6
6813
6814 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6815 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6816 test "$can_build_shared" = "no" && enable_shared=no
6817
6818 # On AIX, shared libraries and static libraries use the same namespace, and
6819 # are all built from PIC.
6820 case "$host_os" in
6821 aix3*)
6822   test "$enable_shared" = yes && enable_static=no
6823   if test -n "$RANLIB"; then
6824     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6825     postinstall_cmds='$RANLIB $lib'
6826   fi
6827   ;;
6828
6829 aix4*)
6830   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6831     test "$enable_shared" = yes && enable_static=no
6832   fi
6833   ;;
6834 esac
6835 echo "$as_me:$LINENO: result: $enable_shared" >&5
6836 echo "${ECHO_T}$enable_shared" >&6
6837
6838 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6839 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6840 # Make sure either enable_shared or enable_static is yes.
6841 test "$enable_shared" = yes || enable_static=yes
6842 echo "$as_me:$LINENO: result: $enable_static" >&5
6843 echo "${ECHO_T}$enable_static" >&6
6844
6845 if test "$hardcode_action" = relink; then
6846   # Fast installation is not supported
6847   enable_fast_install=no
6848 elif test "$shlibpath_overrides_runpath" = yes ||
6849      test "$enable_shared" = no; then
6850   # Fast installation is not necessary
6851   enable_fast_install=needless
6852 fi
6853
6854 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6855 if test "$GCC" = yes; then
6856   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6857 fi
6858
6859 if test "x$enable_dlopen" != xyes; then
6860   enable_dlopen=unknown
6861   enable_dlopen_self=unknown
6862   enable_dlopen_self_static=unknown
6863 else
6864   lt_cv_dlopen=no
6865   lt_cv_dlopen_libs=
6866
6867   case $host_os in
6868   beos*)
6869     lt_cv_dlopen="load_add_on"
6870     lt_cv_dlopen_libs=
6871     lt_cv_dlopen_self=yes
6872     ;;
6873
6874   cygwin* | mingw* | pw32*)
6875     lt_cv_dlopen="LoadLibrary"
6876     lt_cv_dlopen_libs=
6877    ;;
6878
6879   *)
6880     echo "$as_me:$LINENO: checking for shl_load" >&5
6881 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6882 if test "${ac_cv_func_shl_load+set}" = set; then
6883   echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885   cat >conftest.$ac_ext <<_ACEOF
6886 /* confdefs.h.  */
6887 _ACEOF
6888 cat confdefs.h >>conftest.$ac_ext
6889 cat >>conftest.$ac_ext <<_ACEOF
6890 /* end confdefs.h.  */
6891 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6893 #define shl_load innocuous_shl_load
6894
6895 /* System header to define __stub macros and hopefully few prototypes,
6896     which can conflict with char shl_load (); below.
6897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6898     <limits.h> exists even on freestanding compilers.  */
6899
6900 #ifdef __STDC__
6901 # include <limits.h>
6902 #else
6903 # include <assert.h>
6904 #endif
6905
6906 #undef shl_load
6907
6908 /* Override any gcc2 internal prototype to avoid an error.  */
6909 #ifdef __cplusplus
6910 extern "C"
6911 {
6912 #endif
6913 /* We use char because int might match the return type of a gcc2
6914    builtin and then its argument prototype would still apply.  */
6915 char shl_load ();
6916 /* The GNU C library defines this for functions which it implements
6917     to always fail with ENOSYS.  Some functions are actually named
6918     something starting with __ and the normal name is an alias.  */
6919 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6920 choke me
6921 #else
6922 char (*f) () = shl_load;
6923 #endif
6924 #ifdef __cplusplus
6925 }
6926 #endif
6927
6928 int
6929 main ()
6930 {
6931 return f != shl_load;
6932   ;
6933   return 0;
6934 }
6935 _ACEOF
6936 rm -f conftest.$ac_objext conftest$ac_exeext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938   (eval $ac_link) 2>conftest.er1
6939   ac_status=$?
6940   grep -v '^ *+' conftest.er1 >conftest.err
6941   rm -f conftest.er1
6942   cat conftest.err >&5
6943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944   (exit $ac_status); } &&
6945          { ac_try='test -z "$ac_c_werror_flag"
6946                          || test ! -s conftest.err'
6947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948   (eval $ac_try) 2>&5
6949   ac_status=$?
6950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951   (exit $ac_status); }; } &&
6952          { ac_try='test -s conftest$ac_exeext'
6953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954   (eval $ac_try) 2>&5
6955   ac_status=$?
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); }; }; then
6958   ac_cv_func_shl_load=yes
6959 else
6960   echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6962
6963 ac_cv_func_shl_load=no
6964 fi
6965 rm -f conftest.err conftest.$ac_objext \
6966       conftest$ac_exeext conftest.$ac_ext
6967 fi
6968 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6969 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6970 if test $ac_cv_func_shl_load = yes; then
6971   lt_cv_dlopen="shl_load"
6972 else
6973   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6974 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6975 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6976   echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978   ac_check_lib_save_LIBS=$LIBS
6979 LIBS="-ldld  $LIBS"
6980 cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h.  */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h.  */
6986
6987 /* Override any gcc2 internal prototype to avoid an error.  */
6988 #ifdef __cplusplus
6989 extern "C"
6990 #endif
6991 /* We use char because int might match the return type of a gcc2
6992    builtin and then its argument prototype would still apply.  */
6993 char shl_load ();
6994 int
6995 main ()
6996 {
6997 shl_load ();
6998   ;
6999   return 0;
7000 }
7001 _ACEOF
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7004   (eval $ac_link) 2>conftest.er1
7005   ac_status=$?
7006   grep -v '^ *+' conftest.er1 >conftest.err
7007   rm -f conftest.er1
7008   cat conftest.err >&5
7009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); } &&
7011          { ac_try='test -z "$ac_c_werror_flag"
7012                          || test ! -s conftest.err'
7013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014   (eval $ac_try) 2>&5
7015   ac_status=$?
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); }; } &&
7018          { ac_try='test -s conftest$ac_exeext'
7019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020   (eval $ac_try) 2>&5
7021   ac_status=$?
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); }; }; then
7024   ac_cv_lib_dld_shl_load=yes
7025 else
7026   echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7028
7029 ac_cv_lib_dld_shl_load=no
7030 fi
7031 rm -f conftest.err conftest.$ac_objext \
7032       conftest$ac_exeext conftest.$ac_ext
7033 LIBS=$ac_check_lib_save_LIBS
7034 fi
7035 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7036 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7037 if test $ac_cv_lib_dld_shl_load = yes; then
7038   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7039 else
7040   echo "$as_me:$LINENO: checking for dlopen" >&5
7041 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7042 if test "${ac_cv_func_dlopen+set}" = set; then
7043   echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045   cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h.  */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h.  */
7051 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7053 #define dlopen innocuous_dlopen
7054
7055 /* System header to define __stub macros and hopefully few prototypes,
7056     which can conflict with char dlopen (); below.
7057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7058     <limits.h> exists even on freestanding compilers.  */
7059
7060 #ifdef __STDC__
7061 # include <limits.h>
7062 #else
7063 # include <assert.h>
7064 #endif
7065
7066 #undef dlopen
7067
7068 /* Override any gcc2 internal prototype to avoid an error.  */
7069 #ifdef __cplusplus
7070 extern "C"
7071 {
7072 #endif
7073 /* We use char because int might match the return type of a gcc2
7074    builtin and then its argument prototype would still apply.  */
7075 char dlopen ();
7076 /* The GNU C library defines this for functions which it implements
7077     to always fail with ENOSYS.  Some functions are actually named
7078     something starting with __ and the normal name is an alias.  */
7079 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7080 choke me
7081 #else
7082 char (*f) () = dlopen;
7083 #endif
7084 #ifdef __cplusplus
7085 }
7086 #endif
7087
7088 int
7089 main ()
7090 {
7091 return f != dlopen;
7092   ;
7093   return 0;
7094 }
7095 _ACEOF
7096 rm -f conftest.$ac_objext conftest$ac_exeext
7097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7098   (eval $ac_link) 2>conftest.er1
7099   ac_status=$?
7100   grep -v '^ *+' conftest.er1 >conftest.err
7101   rm -f conftest.er1
7102   cat conftest.err >&5
7103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104   (exit $ac_status); } &&
7105          { ac_try='test -z "$ac_c_werror_flag"
7106                          || test ! -s conftest.err'
7107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108   (eval $ac_try) 2>&5
7109   ac_status=$?
7110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111   (exit $ac_status); }; } &&
7112          { ac_try='test -s conftest$ac_exeext'
7113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114   (eval $ac_try) 2>&5
7115   ac_status=$?
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); }; }; then
7118   ac_cv_func_dlopen=yes
7119 else
7120   echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7122
7123 ac_cv_func_dlopen=no
7124 fi
7125 rm -f conftest.err conftest.$ac_objext \
7126       conftest$ac_exeext conftest.$ac_ext
7127 fi
7128 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7129 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7130 if test $ac_cv_func_dlopen = yes; then
7131   lt_cv_dlopen="dlopen"
7132 else
7133   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7134 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7135 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7136   echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7138   ac_check_lib_save_LIBS=$LIBS
7139 LIBS="-ldl  $LIBS"
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h.  */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h.  */
7146
7147 /* Override any gcc2 internal prototype to avoid an error.  */
7148 #ifdef __cplusplus
7149 extern "C"
7150 #endif
7151 /* We use char because int might match the return type of a gcc2
7152    builtin and then its argument prototype would still apply.  */
7153 char dlopen ();
7154 int
7155 main ()
7156 {
7157 dlopen ();
7158   ;
7159   return 0;
7160 }
7161 _ACEOF
7162 rm -f conftest.$ac_objext conftest$ac_exeext
7163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7164   (eval $ac_link) 2>conftest.er1
7165   ac_status=$?
7166   grep -v '^ *+' conftest.er1 >conftest.err
7167   rm -f conftest.er1
7168   cat conftest.err >&5
7169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170   (exit $ac_status); } &&
7171          { ac_try='test -z "$ac_c_werror_flag"
7172                          || test ! -s conftest.err'
7173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174   (eval $ac_try) 2>&5
7175   ac_status=$?
7176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); }; } &&
7178          { ac_try='test -s conftest$ac_exeext'
7179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180   (eval $ac_try) 2>&5
7181   ac_status=$?
7182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183   (exit $ac_status); }; }; then
7184   ac_cv_lib_dl_dlopen=yes
7185 else
7186   echo "$as_me: failed program was:" >&5
7187 sed 's/^/| /' conftest.$ac_ext >&5
7188
7189 ac_cv_lib_dl_dlopen=no
7190 fi
7191 rm -f conftest.err conftest.$ac_objext \
7192       conftest$ac_exeext conftest.$ac_ext
7193 LIBS=$ac_check_lib_save_LIBS
7194 fi
7195 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7196 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7197 if test $ac_cv_lib_dl_dlopen = yes; then
7198   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7199 else
7200   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7201 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7202 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7203   echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205   ac_check_lib_save_LIBS=$LIBS
7206 LIBS="-lsvld  $LIBS"
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h.  */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h.  */
7213
7214 /* Override any gcc2 internal prototype to avoid an error.  */
7215 #ifdef __cplusplus
7216 extern "C"
7217 #endif
7218 /* We use char because int might match the return type of a gcc2
7219    builtin and then its argument prototype would still apply.  */
7220 char dlopen ();
7221 int
7222 main ()
7223 {
7224 dlopen ();
7225   ;
7226   return 0;
7227 }
7228 _ACEOF
7229 rm -f conftest.$ac_objext conftest$ac_exeext
7230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7231   (eval $ac_link) 2>conftest.er1
7232   ac_status=$?
7233   grep -v '^ *+' conftest.er1 >conftest.err
7234   rm -f conftest.er1
7235   cat conftest.err >&5
7236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237   (exit $ac_status); } &&
7238          { ac_try='test -z "$ac_c_werror_flag"
7239                          || test ! -s conftest.err'
7240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241   (eval $ac_try) 2>&5
7242   ac_status=$?
7243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244   (exit $ac_status); }; } &&
7245          { ac_try='test -s conftest$ac_exeext'
7246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247   (eval $ac_try) 2>&5
7248   ac_status=$?
7249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250   (exit $ac_status); }; }; then
7251   ac_cv_lib_svld_dlopen=yes
7252 else
7253   echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7255
7256 ac_cv_lib_svld_dlopen=no
7257 fi
7258 rm -f conftest.err conftest.$ac_objext \
7259       conftest$ac_exeext conftest.$ac_ext
7260 LIBS=$ac_check_lib_save_LIBS
7261 fi
7262 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7263 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7264 if test $ac_cv_lib_svld_dlopen = yes; then
7265   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7266 else
7267   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7268 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7269 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7270   echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272   ac_check_lib_save_LIBS=$LIBS
7273 LIBS="-ldld  $LIBS"
7274 cat >conftest.$ac_ext <<_ACEOF
7275 /* confdefs.h.  */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h.  */
7280
7281 /* Override any gcc2 internal prototype to avoid an error.  */
7282 #ifdef __cplusplus
7283 extern "C"
7284 #endif
7285 /* We use char because int might match the return type of a gcc2
7286    builtin and then its argument prototype would still apply.  */
7287 char dld_link ();
7288 int
7289 main ()
7290 {
7291 dld_link ();
7292   ;
7293   return 0;
7294 }
7295 _ACEOF
7296 rm -f conftest.$ac_objext conftest$ac_exeext
7297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7298   (eval $ac_link) 2>conftest.er1
7299   ac_status=$?
7300   grep -v '^ *+' conftest.er1 >conftest.err
7301   rm -f conftest.er1
7302   cat conftest.err >&5
7303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304   (exit $ac_status); } &&
7305          { ac_try='test -z "$ac_c_werror_flag"
7306                          || test ! -s conftest.err'
7307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308   (eval $ac_try) 2>&5
7309   ac_status=$?
7310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311   (exit $ac_status); }; } &&
7312          { ac_try='test -s conftest$ac_exeext'
7313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314   (eval $ac_try) 2>&5
7315   ac_status=$?
7316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317   (exit $ac_status); }; }; then
7318   ac_cv_lib_dld_dld_link=yes
7319 else
7320   echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7322
7323 ac_cv_lib_dld_dld_link=no
7324 fi
7325 rm -f conftest.err conftest.$ac_objext \
7326       conftest$ac_exeext conftest.$ac_ext
7327 LIBS=$ac_check_lib_save_LIBS
7328 fi
7329 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7330 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7331 if test $ac_cv_lib_dld_dld_link = yes; then
7332   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7333 fi
7334
7335
7336 fi
7337
7338
7339 fi
7340
7341
7342 fi
7343
7344
7345 fi
7346
7347
7348 fi
7349
7350     ;;
7351   esac
7352
7353   if test "x$lt_cv_dlopen" != xno; then
7354     enable_dlopen=yes
7355   else
7356     enable_dlopen=no
7357   fi
7358
7359   case $lt_cv_dlopen in
7360   dlopen)
7361     save_CPPFLAGS="$CPPFLAGS"
7362         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7363
7364     save_LDFLAGS="$LDFLAGS"
7365     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7366
7367     save_LIBS="$LIBS"
7368     LIBS="$lt_cv_dlopen_libs $LIBS"
7369
7370     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7371 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7372 if test "${lt_cv_dlopen_self+set}" = set; then
7373   echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375           if test "$cross_compiling" = yes; then :
7376   lt_cv_dlopen_self=cross
7377 else
7378     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7379   lt_status=$lt_dlunknown
7380   cat > conftest.$ac_ext <<EOF
7381 #line 7381 "configure"
7382 #include "confdefs.h"
7383
7384 #if HAVE_DLFCN_H
7385 #include <dlfcn.h>
7386 #endif
7387
7388 #include <stdio.h>
7389
7390 #ifdef RTLD_GLOBAL
7391 #  define LT_DLGLOBAL           RTLD_GLOBAL
7392 #else
7393 #  ifdef DL_GLOBAL
7394 #    define LT_DLGLOBAL         DL_GLOBAL
7395 #  else
7396 #    define LT_DLGLOBAL         0
7397 #  endif
7398 #endif
7399
7400 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7401    find out it does not work in some platform. */
7402 #ifndef LT_DLLAZY_OR_NOW
7403 #  ifdef RTLD_LAZY
7404 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7405 #  else
7406 #    ifdef DL_LAZY
7407 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7408 #    else
7409 #      ifdef RTLD_NOW
7410 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7411 #      else
7412 #        ifdef DL_NOW
7413 #          define LT_DLLAZY_OR_NOW      DL_NOW
7414 #        else
7415 #          define LT_DLLAZY_OR_NOW      0
7416 #        endif
7417 #      endif
7418 #    endif
7419 #  endif
7420 #endif
7421
7422 #ifdef __cplusplus
7423 extern "C" void exit (int);
7424 #endif
7425
7426 void fnord() { int i=42;}
7427 int main ()
7428 {
7429   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7430   int status = $lt_dlunknown;
7431
7432   if (self)
7433     {
7434       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7435       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7436       /* dlclose (self); */
7437     }
7438
7439     exit (status);
7440 }
7441 EOF
7442   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443   (eval $ac_link) 2>&5
7444   ac_status=$?
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7447     (./conftest; exit; ) 2>/dev/null
7448     lt_status=$?
7449     case x$lt_status in
7450       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7451       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7452       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7453     esac
7454   else :
7455     # compilation failed
7456     lt_cv_dlopen_self=no
7457   fi
7458 fi
7459 rm -fr conftest*
7460
7461
7462 fi
7463 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7464 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7465
7466     if test "x$lt_cv_dlopen_self" = xyes; then
7467       LDFLAGS="$LDFLAGS $link_static_flag"
7468       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7469 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7470 if test "${lt_cv_dlopen_self_static+set}" = set; then
7471   echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473           if test "$cross_compiling" = yes; then :
7474   lt_cv_dlopen_self_static=cross
7475 else
7476     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7477   lt_status=$lt_dlunknown
7478   cat > conftest.$ac_ext <<EOF
7479 #line 7479 "configure"
7480 #include "confdefs.h"
7481
7482 #if HAVE_DLFCN_H
7483 #include <dlfcn.h>
7484 #endif
7485
7486 #include <stdio.h>
7487
7488 #ifdef RTLD_GLOBAL
7489 #  define LT_DLGLOBAL           RTLD_GLOBAL
7490 #else
7491 #  ifdef DL_GLOBAL
7492 #    define LT_DLGLOBAL         DL_GLOBAL
7493 #  else
7494 #    define LT_DLGLOBAL         0
7495 #  endif
7496 #endif
7497
7498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7499    find out it does not work in some platform. */
7500 #ifndef LT_DLLAZY_OR_NOW
7501 #  ifdef RTLD_LAZY
7502 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7503 #  else
7504 #    ifdef DL_LAZY
7505 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7506 #    else
7507 #      ifdef RTLD_NOW
7508 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7509 #      else
7510 #        ifdef DL_NOW
7511 #          define LT_DLLAZY_OR_NOW      DL_NOW
7512 #        else
7513 #          define LT_DLLAZY_OR_NOW      0
7514 #        endif
7515 #      endif
7516 #    endif
7517 #  endif
7518 #endif
7519
7520 #ifdef __cplusplus
7521 extern "C" void exit (int);
7522 #endif
7523
7524 void fnord() { int i=42;}
7525 int main ()
7526 {
7527   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7528   int status = $lt_dlunknown;
7529
7530   if (self)
7531     {
7532       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7533       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7534       /* dlclose (self); */
7535     }
7536
7537     exit (status);
7538 }
7539 EOF
7540   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7541   (eval $ac_link) 2>&5
7542   ac_status=$?
7543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7545     (./conftest; exit; ) 2>/dev/null
7546     lt_status=$?
7547     case x$lt_status in
7548       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7549       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7550       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7551     esac
7552   else :
7553     # compilation failed
7554     lt_cv_dlopen_self_static=no
7555   fi
7556 fi
7557 rm -fr conftest*
7558
7559
7560 fi
7561 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7562 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7563     fi
7564
7565     CPPFLAGS="$save_CPPFLAGS"
7566     LDFLAGS="$save_LDFLAGS"
7567     LIBS="$save_LIBS"
7568     ;;
7569   esac
7570
7571   case $lt_cv_dlopen_self in
7572   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7573   *) enable_dlopen_self=unknown ;;
7574   esac
7575
7576   case $lt_cv_dlopen_self_static in
7577   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7578   *) enable_dlopen_self_static=unknown ;;
7579   esac
7580 fi
7581
7582
7583 if test "$enable_shared" = yes && test "$GCC" = yes; then
7584   case $archive_cmds in
7585   *'~'*)
7586     # FIXME: we may have to deal with multi-command sequences.
7587     ;;
7588   '$CC '*)
7589     # Test whether the compiler implicitly links with -lc since on some
7590     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7591     # to ld, don't add -lc before -lgcc.
7592     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7593 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7594     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7595   echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597   $rm conftest*
7598     echo 'static int dummy;' > conftest.$ac_ext
7599
7600     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7601   (eval $ac_compile) 2>&5
7602   ac_status=$?
7603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604   (exit $ac_status); }; then
7605       soname=conftest
7606       lib=conftest
7607       libobjs=conftest.$ac_objext
7608       deplibs=
7609       wl=$lt_cv_prog_cc_wl
7610       compiler_flags=-v
7611       linker_flags=-v
7612       verstring=
7613       output_objdir=.
7614       libname=conftest
7615       save_allow_undefined_flag=$allow_undefined_flag
7616       allow_undefined_flag=
7617       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7618   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7619   ac_status=$?
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); }
7622       then
7623         lt_cv_archive_cmds_need_lc=no
7624       else
7625         lt_cv_archive_cmds_need_lc=yes
7626       fi
7627       allow_undefined_flag=$save_allow_undefined_flag
7628     else
7629       cat conftest.err 1>&5
7630     fi
7631 fi
7632
7633     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7634 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7635     ;;
7636   esac
7637 fi
7638 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7639
7640 # The second clause should only fire when bootstrapping the
7641 # libtool distribution, otherwise you forgot to ship ltmain.sh
7642 # with your package, and you will get complaints that there are
7643 # no rules to generate ltmain.sh.
7644 if test -f "$ltmain"; then
7645   :
7646 else
7647   # If there is no Makefile yet, we rely on a make rule to execute
7648   # `config.status --recheck' to rerun these tests and create the
7649   # libtool script then.
7650   test -f Makefile && make "$ltmain"
7651 fi
7652
7653 if test -f "$ltmain"; then
7654   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7655   $rm -f "${ofile}T"
7656
7657   echo creating $ofile
7658
7659   # Now quote all the things that may contain metacharacters while being
7660   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7661   # variables and quote the copies for generation of the libtool script.
7662   for var in echo old_CC old_CFLAGS SED \
7663     AR AR_FLAGS CC LD LN_S NM SHELL \
7664     reload_flag reload_cmds wl \
7665     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7666     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7667     library_names_spec soname_spec \
7668     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7669     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7670     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7671     old_striplib striplib file_magic_cmd export_symbols_cmds \
7672     deplibs_check_method allow_undefined_flag no_undefined_flag \
7673     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7674     global_symbol_to_c_name_address \
7675     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7676     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7677     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7678
7679     case $var in
7680     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7681     old_postinstall_cmds | old_postuninstall_cmds | \
7682     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7683     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7684     postinstall_cmds | postuninstall_cmds | \
7685     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7686       # Double-quote double-evaled strings.
7687       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7688       ;;
7689     *)
7690       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7691       ;;
7692     esac
7693   done
7694
7695   cat <<__EOF__ > "${ofile}T"
7696 #! $SHELL
7697
7698 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7699 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7700 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7701 #
7702 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7703 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7704 #
7705 # This program is free software; you can redistribute it and/or modify
7706 # it under the terms of the GNU General Public License as published by
7707 # the Free Software Foundation; either version 2 of the License, or
7708 # (at your option) any later version.
7709 #
7710 # This program is distributed in the hope that it will be useful, but
7711 # WITHOUT ANY WARRANTY; without even the implied warranty of
7712 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7713 # General Public License for more details.
7714 #
7715 # You should have received a copy of the GNU General Public License
7716 # along with this program; if not, write to the Free Software
7717 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7718 #
7719 # As a special exception to the GNU General Public License, if you
7720 # distribute this file as part of a program that contains a
7721 # configuration script generated by Autoconf, you may include it under
7722 # the same distribution terms that you use for the rest of that program.
7723
7724 # A sed that does not truncate output.
7725 SED=$lt_SED
7726
7727 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7728 Xsed="${SED} -e s/^X//"
7729
7730 # The HP-UX ksh and POSIX shell print the target directory to stdout
7731 # if CDPATH is set.
7732 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7733
7734 # ### BEGIN LIBTOOL CONFIG
7735
7736 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7737
7738 # Shell to use when invoking shell scripts.
7739 SHELL=$lt_SHELL
7740
7741 # Whether or not to build shared libraries.
7742 build_libtool_libs=$enable_shared
7743
7744 # Whether or not to build static libraries.
7745 build_old_libs=$enable_static
7746
7747 # Whether or not to add -lc for building shared libraries.
7748 build_libtool_need_lc=$need_lc
7749
7750 # Whether or not to optimize for fast installation.
7751 fast_install=$enable_fast_install
7752
7753 # The host system.
7754 host_alias=$host_alias
7755 host=$host
7756
7757 # An echo program that does not interpret backslashes.
7758 echo=$lt_echo
7759
7760 # The archiver.
7761 AR=$lt_AR
7762 AR_FLAGS=$lt_AR_FLAGS
7763
7764 # The default C compiler.
7765 CC=$lt_CC
7766
7767 # Is the compiler the GNU C compiler?
7768 with_gcc=$GCC
7769
7770 # The linker used to build libraries.
7771 LD=$lt_LD
7772
7773 # Whether we need hard or soft links.
7774 LN_S=$lt_LN_S
7775
7776 # A BSD-compatible nm program.
7777 NM=$lt_NM
7778
7779 # A symbol stripping program
7780 STRIP=$STRIP
7781
7782 # Used to examine libraries when file_magic_cmd begins "file"
7783 MAGIC_CMD=$MAGIC_CMD
7784
7785 # Used on cygwin: DLL creation program.
7786 DLLTOOL="$DLLTOOL"
7787
7788 # Used on cygwin: object dumper.
7789 OBJDUMP="$OBJDUMP"
7790
7791 # Used on cygwin: assembler.
7792 AS="$AS"
7793
7794 # The name of the directory that contains temporary libtool files.
7795 objdir=$objdir
7796
7797 # How to create reloadable object files.
7798 reload_flag=$lt_reload_flag
7799 reload_cmds=$lt_reload_cmds
7800
7801 # How to pass a linker flag through the compiler.
7802 wl=$lt_wl
7803
7804 # Object file suffix (normally "o").
7805 objext="$ac_objext"
7806
7807 # Old archive suffix (normally "a").
7808 libext="$libext"
7809
7810 # Executable file suffix (normally "").
7811 exeext="$exeext"
7812
7813 # Additional compiler flags for building library objects.
7814 pic_flag=$lt_pic_flag
7815 pic_mode=$pic_mode
7816
7817 # Does compiler simultaneously support -c and -o options?
7818 compiler_c_o=$lt_compiler_c_o
7819
7820 # Can we write directly to a .lo ?
7821 compiler_o_lo=$lt_compiler_o_lo
7822
7823 # Must we lock files when doing compilation ?
7824 need_locks=$lt_need_locks
7825
7826 # Do we need the lib prefix for modules?
7827 need_lib_prefix=$need_lib_prefix
7828
7829 # Do we need a version for libraries?
7830 need_version=$need_version
7831
7832 # Whether dlopen is supported.
7833 dlopen_support=$enable_dlopen
7834
7835 # Whether dlopen of programs is supported.
7836 dlopen_self=$enable_dlopen_self
7837
7838 # Whether dlopen of statically linked programs is supported.
7839 dlopen_self_static=$enable_dlopen_self_static
7840
7841 # Compiler flag to prevent dynamic linking.
7842 link_static_flag=$lt_link_static_flag
7843
7844 # Compiler flag to turn off builtin functions.
7845 no_builtin_flag=$lt_no_builtin_flag
7846
7847 # Compiler flag to allow reflexive dlopens.
7848 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7849
7850 # Compiler flag to generate shared objects directly from archives.
7851 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7852
7853 # Compiler flag to generate thread-safe objects.
7854 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7855
7856 # Library versioning type.
7857 version_type=$version_type
7858
7859 # Format of library name prefix.
7860 libname_spec=$lt_libname_spec
7861
7862 # List of archive names.  First name is the real one, the rest are links.
7863 # The last name is the one that the linker finds with -lNAME.
7864 library_names_spec=$lt_library_names_spec
7865
7866 # The coded name of the library, if different from the real name.
7867 soname_spec=$lt_soname_spec
7868
7869 # Commands used to build and install an old-style archive.
7870 RANLIB=$lt_RANLIB
7871 old_archive_cmds=$lt_old_archive_cmds
7872 old_postinstall_cmds=$lt_old_postinstall_cmds
7873 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7874
7875 # Create an old-style archive from a shared archive.
7876 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7877
7878 # Create a temporary old-style archive to link instead of a shared archive.
7879 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7880
7881 # Commands used to build and install a shared archive.
7882 archive_cmds=$lt_archive_cmds
7883 archive_expsym_cmds=$lt_archive_expsym_cmds
7884 postinstall_cmds=$lt_postinstall_cmds
7885 postuninstall_cmds=$lt_postuninstall_cmds
7886
7887 # Commands to strip libraries.
7888 old_striplib=$lt_old_striplib
7889 striplib=$lt_striplib
7890
7891 # Method to check whether dependent libraries are shared objects.
7892 deplibs_check_method=$lt_deplibs_check_method
7893
7894 # Command to use when deplibs_check_method == file_magic.
7895 file_magic_cmd=$lt_file_magic_cmd
7896
7897 # Flag that allows shared libraries with undefined symbols to be built.
7898 allow_undefined_flag=$lt_allow_undefined_flag
7899
7900 # Flag that forces no undefined symbols.
7901 no_undefined_flag=$lt_no_undefined_flag
7902
7903 # Commands used to finish a libtool library installation in a directory.
7904 finish_cmds=$lt_finish_cmds
7905
7906 # Same as above, but a single script fragment to be evaled but not shown.
7907 finish_eval=$lt_finish_eval
7908
7909 # Take the output of nm and produce a listing of raw symbols and C names.
7910 global_symbol_pipe=$lt_global_symbol_pipe
7911
7912 # Transform the output of nm in a proper C declaration
7913 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7914
7915 # Transform the output of nm in a C name address pair
7916 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7917
7918 # This is the shared library runtime path variable.
7919 runpath_var=$runpath_var
7920
7921 # This is the shared library path variable.
7922 shlibpath_var=$shlibpath_var
7923
7924 # Is shlibpath searched before the hard-coded library search path?
7925 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7926
7927 # How to hardcode a shared library path into an executable.
7928 hardcode_action=$hardcode_action
7929
7930 # Whether we should hardcode library paths into libraries.
7931 hardcode_into_libs=$hardcode_into_libs
7932
7933 # Flag to hardcode \$libdir into a binary during linking.
7934 # This must work even if \$libdir does not exist.
7935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7936
7937 # Whether we need a single -rpath flag with a separated argument.
7938 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7939
7940 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7941 # resulting binary.
7942 hardcode_direct=$hardcode_direct
7943
7944 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7945 # resulting binary.
7946 hardcode_minus_L=$hardcode_minus_L
7947
7948 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7949 # the resulting binary.
7950 hardcode_shlibpath_var=$hardcode_shlibpath_var
7951
7952 # Variables whose values should be saved in libtool wrapper scripts and
7953 # restored at relink time.
7954 variables_saved_for_relink="$variables_saved_for_relink"
7955
7956 # Whether libtool must link a program against all its dependency libraries.
7957 link_all_deplibs=$link_all_deplibs
7958
7959 # Compile-time system search path for libraries
7960 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7961
7962 # Run-time system search path for libraries
7963 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7964
7965 # Fix the shell variable \$srcfile for the compiler.
7966 fix_srcfile_path="$fix_srcfile_path"
7967
7968 # Set to yes if exported symbols are required.
7969 always_export_symbols=$always_export_symbols
7970
7971 # The commands to list exported symbols.
7972 export_symbols_cmds=$lt_export_symbols_cmds
7973
7974 # The commands to extract the exported symbol list from a shared archive.
7975 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7976
7977 # Symbols that should not be listed in the preloaded symbols.
7978 exclude_expsyms=$lt_exclude_expsyms
7979
7980 # Symbols that must always be exported.
7981 include_expsyms=$lt_include_expsyms
7982
7983 # ### END LIBTOOL CONFIG
7984
7985 __EOF__
7986
7987   case $host_os in
7988   aix3*)
7989     cat <<\EOF >> "${ofile}T"
7990
7991 # AIX sometimes has problems with the GCC collect2 program.  For some
7992 # reason, if we set the COLLECT_NAMES environment variable, the problems
7993 # vanish in a puff of smoke.
7994 if test "X${COLLECT_NAMES+set}" != Xset; then
7995   COLLECT_NAMES=
7996   export COLLECT_NAMES
7997 fi
7998 EOF
7999     ;;
8000   esac
8001
8002   case $host_os in
8003   cygwin* | mingw* | pw32* | os2*)
8004     cat <<'EOF' >> "${ofile}T"
8005       # This is a source program that is used to create dlls on Windows
8006       # Don't remove nor modify the starting and closing comments
8007 # /* ltdll.c starts here */
8008 # #define WIN32_LEAN_AND_MEAN
8009 # #include <windows.h>
8010 # #undef WIN32_LEAN_AND_MEAN
8011 # #include <stdio.h>
8012 #
8013 # #ifndef __CYGWIN__
8014 # #  ifdef __CYGWIN32__
8015 # #    define __CYGWIN__ __CYGWIN32__
8016 # #  endif
8017 # #endif
8018 #
8019 # #ifdef __cplusplus
8020 # extern "C" {
8021 # #endif
8022 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8023 # #ifdef __cplusplus
8024 # }
8025 # #endif
8026 #
8027 # #ifdef __CYGWIN__
8028 # #include <cygwin/cygwin_dll.h>
8029 # DECLARE_CYGWIN_DLL( DllMain );
8030 # #endif
8031 # HINSTANCE __hDllInstance_base;
8032 #
8033 # BOOL APIENTRY
8034 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8035 # {
8036 #   __hDllInstance_base = hInst;
8037 #   return TRUE;
8038 # }
8039 # /* ltdll.c ends here */
8040         # This is a source program that is used to create import libraries
8041         # on Windows for dlls which lack them. Don't remove nor modify the
8042         # starting and closing comments
8043 # /* impgen.c starts here */
8044 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8045 #
8046 #  This file is part of GNU libtool.
8047 #
8048 #  This program is free software; you can redistribute it and/or modify
8049 #  it under the terms of the GNU General Public License as published by
8050 #  the Free Software Foundation; either version 2 of the License, or
8051 #  (at your option) any later version.
8052 #
8053 #  This program is distributed in the hope that it will be useful,
8054 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8055 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8056 #  GNU General Public License for more details.
8057 #
8058 #  You should have received a copy of the GNU General Public License
8059 #  along with this program; if not, write to the Free Software
8060 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8061 #  */
8062 #
8063 # #include <stdio.h>            /* for printf() */
8064 # #include <unistd.h>           /* for open(), lseek(), read() */
8065 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8066 # #include <string.h>           /* for strdup() */
8067 #
8068 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8069 # #ifndef O_BINARY
8070 # #define O_BINARY 0
8071 # #endif
8072 #
8073 # static unsigned int
8074 # pe_get16 (fd, offset)
8075 #      int fd;
8076 #      int offset;
8077 # {
8078 #   unsigned char b[2];
8079 #   lseek (fd, offset, SEEK_SET);
8080 #   read (fd, b, 2);
8081 #   return b[0] + (b[1]<<8);
8082 # }
8083 #
8084 # static unsigned int
8085 # pe_get32 (fd, offset)
8086 #     int fd;
8087 #     int offset;
8088 # {
8089 #   unsigned char b[4];
8090 #   lseek (fd, offset, SEEK_SET);
8091 #   read (fd, b, 4);
8092 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8093 # }
8094 #
8095 # static unsigned int
8096 # pe_as32 (ptr)
8097 #      void *ptr;
8098 # {
8099 #   unsigned char *b = ptr;
8100 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8101 # }
8102 #
8103 # int
8104 # main (argc, argv)
8105 #     int argc;
8106 #     char *argv[];
8107 # {
8108 #     int dll;
8109 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8110 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8111 #     unsigned long name_rvas, nexp;
8112 #     unsigned char *expdata, *erva;
8113 #     char *filename, *dll_name;
8114 #
8115 #     filename = argv[1];
8116 #
8117 #     dll = open(filename, O_RDONLY|O_BINARY);
8118 #     if (dll < 1)
8119 #       return 1;
8120 #
8121 #     dll_name = filename;
8122 #
8123 #     for (i=0; filename[i]; i++)
8124 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8125 #           dll_name = filename + i +1;
8126 #
8127 #     pe_header_offset = pe_get32 (dll, 0x3c);
8128 #     opthdr_ofs = pe_header_offset + 4 + 20;
8129 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8130 #
8131 #     if (num_entries < 1) /* no exports */
8132 #       return 1;
8133 #
8134 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8135 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8136 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8137 #     secptr = (pe_header_offset + 4 + 20 +
8138 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8139 #
8140 #     expptr = 0;
8141 #     for (i = 0; i < nsections; i++)
8142 #     {
8143 #       char sname[8];
8144 #       unsigned long secptr1 = secptr + 40 * i;
8145 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8146 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8147 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8148 #       lseek(dll, secptr1, SEEK_SET);
8149 #       read(dll, sname, 8);
8150 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8151 #       {
8152 #           expptr = fptr + (export_rva - vaddr);
8153 #           if (export_rva + export_size > vaddr + vsize)
8154 #               export_size = vsize - (export_rva - vaddr);
8155 #           break;
8156 #       }
8157 #     }
8158 #
8159 #     expdata = (unsigned char*)malloc(export_size);
8160 #     lseek (dll, expptr, SEEK_SET);
8161 #     read (dll, expdata, export_size);
8162 #     erva = expdata - export_rva;
8163 #
8164 #     nexp = pe_as32 (expdata+24);
8165 #     name_rvas = pe_as32 (expdata+32);
8166 #
8167 #     printf ("EXPORTS\n");
8168 #     for (i = 0; i<nexp; i++)
8169 #     {
8170 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8171 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8172 #     }
8173 #
8174 #     return 0;
8175 # }
8176 # /* impgen.c ends here */
8177
8178 EOF
8179     ;;
8180   esac
8181
8182   # We use sed instead of cat because bash on DJGPP gets confused if
8183   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8184   # text mode, it properly converts lines to CR/LF.  This bash problem
8185   # is reportedly fixed, but why not run on old versions too?
8186   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8187
8188   mv -f "${ofile}T" "$ofile" || \
8189     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8190   chmod +x "$ofile"
8191 fi
8192
8193
8194
8195
8196
8197 # This can be used to rebuild libtool when needed
8198 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8199
8200 # Always use our own libtool.
8201 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8202
8203 # Prevent multiple expansion
8204
8205
8206  for ac_prog in gzip uncompress compress
8207 do
8208   # Extract the first word of "$ac_prog", so it can be a program name with args.
8209 set dummy $ac_prog; ac_word=$2
8210 echo "$as_me:$LINENO: checking for $ac_word" >&5
8211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8212 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8213   echo $ECHO_N "(cached) $ECHO_C" >&6
8214 else
8215   if test -n "$UNCOMPRESS"; then
8216   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8217 else
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 for as_dir in $PATH
8220 do
8221   IFS=$as_save_IFS
8222   test -z "$as_dir" && as_dir=.
8223   for ac_exec_ext in '' $ac_executable_extensions; do
8224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8225     ac_cv_prog_UNCOMPRESS="$ac_prog"
8226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8227     break 2
8228   fi
8229 done
8230 done
8231
8232 fi
8233 fi
8234 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8235 if test -n "$UNCOMPRESS"; then
8236   echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8237 echo "${ECHO_T}$UNCOMPRESS" >&6
8238 else
8239   echo "$as_me:$LINENO: result: no" >&5
8240 echo "${ECHO_T}no" >&6
8241 fi
8242
8243   test -n "$UNCOMPRESS" && break
8244 done
8245
8246
8247 OBJEXT="o"
8248 AREXT=".a"
8249
8250
8251
8252 if test "x$EXEEXT" = "x.exe";then
8253     OBJEXT="obj"
8254     AREXT=".lib"
8255 fi
8256
8257
8258
8259
8260
8261
8262
8263 echo "$as_me:$LINENO: checking for target system" >&5
8264 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8265 CYGWIN=
8266 MINGW=
8267 case $host_os in
8268     *cygwin* ) CYGWIN=yes;;
8269     *mingw* ) MINGW=yes;;
8270 esac
8271
8272 AR=ar
8273 if test "x$MINGW" = "xyes"; then
8274     #fix for the debian distribution of mingw
8275     if test -x "/usr/i586-mingw32msvc/bin/ar";then
8276         AR="/usr/i586-mingw32msvc/bin/ar"
8277     fi
8278     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8279         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8280     fi
8281     #fix for the gentoo distribution of mingw
8282     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8283         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8284     fi
8285     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8286         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8287     fi
8288     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8289         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8290     fi
8291 fi
8292
8293
8294
8295 if test "x${CYGWIN}" = "xyes"; then
8296     cat >>confdefs.h <<_ACEOF
8297 #define CYGWIN 1
8298 _ACEOF
8299
8300     echo "$as_me:$LINENO: result: cygwin" >&5
8301 echo "${ECHO_T}cygwin" >&6
8302 else
8303     if test "x${MINGW}" = "xyes"; then
8304         cat >>confdefs.h <<_ACEOF
8305 #define MINGW 1
8306 _ACEOF
8307
8308         WIN32=1
8309         cat >>confdefs.h <<_ACEOF
8310 #define WIN32 1
8311 _ACEOF
8312
8313         LIBS="$LIBS -lws2_32"
8314         echo "$as_me:$LINENO: result: mingw" >&5
8315 echo "${ECHO_T}mingw" >&6
8316     else
8317         LINUX=1
8318         export LINUX
8319         cat >>confdefs.h <<_ACEOF
8320 #define LINUX 1
8321 _ACEOF
8322
8323         echo "$as_me:$LINENO: result: " >&5
8324 echo "${ECHO_T}" >&6
8325     fi
8326 fi
8327
8328
8329 SLEXT="so"
8330 if test "x${MINGW}" != "xyes"; then
8331     # no mingW
8332     cat >>confdefs.h <<_ACEOF
8333 #define O_BINARY 0
8334 _ACEOF
8335
8336 else
8337     # mingW
8338     SLEXT="dll"
8339 fi
8340 export SLEXT
8341
8342
8343 # The following tries to make use of includes and libraries in
8344 # /usr/local, too. Notice: A -I/usr/local/include might break
8345 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8346 # especially on systems which link /usr/local to /usr, so it has yet
8347 # to be seen how useful this is.
8348 if test -d /usr/local/lib; then
8349     LDFLAGS="$LDFLAGS -L/usr/local/lib"
8350 fi
8351 if test -d /usr/local/include; then
8352 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8353 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8354     echo > /dev/null
8355 fi
8356 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8357     # if the user has a special prefix (like /opt), there might also be $prefix/lib
8358     # and $prefix/include, which should be included in our search paths for libraries
8359     # and includes.
8360     LDFLAGS="$LDFLAGS -L${libdir}"
8361     CPPFLAGS="$CPPFLAGS -I${includedir}"
8362     # TODO- test whether gcc still works after this
8363 fi
8364
8365 #Mac OS:
8366 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
8367
8368
8369 # this must be done after (I believe) AC_PROG_MAKE_SET
8370 if test "x$DEBUG" '!=' "x";then
8371     STRIP="@echo debug enabled, not stripping "
8372     export STRIP
8373
8374 fi
8375
8376
8377 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8378 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8379 if test "${ac_cv_lib_m_sin+set}" = set; then
8380   echo $ECHO_N "(cached) $ECHO_C" >&6
8381 else
8382   ac_check_lib_save_LIBS=$LIBS
8383 LIBS="-lm  $LIBS"
8384 cat >conftest.$ac_ext <<_ACEOF
8385 /* confdefs.h.  */
8386 _ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h.  */
8390
8391 /* Override any gcc2 internal prototype to avoid an error.  */
8392 #ifdef __cplusplus
8393 extern "C"
8394 #endif
8395 /* We use char because int might match the return type of a gcc2
8396    builtin and then its argument prototype would still apply.  */
8397 char sin ();
8398 int
8399 main ()
8400 {
8401 sin ();
8402   ;
8403   return 0;
8404 }
8405 _ACEOF
8406 rm -f conftest.$ac_objext conftest$ac_exeext
8407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8408   (eval $ac_link) 2>conftest.er1
8409   ac_status=$?
8410   grep -v '^ *+' conftest.er1 >conftest.err
8411   rm -f conftest.er1
8412   cat conftest.err >&5
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   (exit $ac_status); } &&
8415          { ac_try='test -z "$ac_c_werror_flag"
8416                          || test ! -s conftest.err'
8417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418   (eval $ac_try) 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); }; } &&
8422          { ac_try='test -s conftest$ac_exeext'
8423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424   (eval $ac_try) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); }; }; then
8428   ac_cv_lib_m_sin=yes
8429 else
8430   echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8432
8433 ac_cv_lib_m_sin=no
8434 fi
8435 rm -f conftest.err conftest.$ac_objext \
8436       conftest$ac_exeext conftest.$ac_ext
8437 LIBS=$ac_check_lib_save_LIBS
8438 fi
8439 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8440 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8441 if test $ac_cv_lib_m_sin = yes; then
8442   cat >>confdefs.h <<_ACEOF
8443 #define HAVE_LIBM 1
8444 _ACEOF
8445
8446   LIBS="-lm $LIBS"
8447
8448 else
8449   echo "Error: Math library not found.";
8450  exit;
8451
8452 fi
8453
8454
8455 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8456 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8457 if test "${ac_cv_lib_z_deflate+set}" = set; then
8458   echo $ECHO_N "(cached) $ECHO_C" >&6
8459 else
8460   ac_check_lib_save_LIBS=$LIBS
8461 LIBS="-lz  $LIBS"
8462 cat >conftest.$ac_ext <<_ACEOF
8463 /* confdefs.h.  */
8464 _ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h.  */
8468
8469 /* Override any gcc2 internal prototype to avoid an error.  */
8470 #ifdef __cplusplus
8471 extern "C"
8472 #endif
8473 /* We use char because int might match the return type of a gcc2
8474    builtin and then its argument prototype would still apply.  */
8475 char deflate ();
8476 int
8477 main ()
8478 {
8479 deflate ();
8480   ;
8481   return 0;
8482 }
8483 _ACEOF
8484 rm -f conftest.$ac_objext conftest$ac_exeext
8485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8486   (eval $ac_link) 2>conftest.er1
8487   ac_status=$?
8488   grep -v '^ *+' conftest.er1 >conftest.err
8489   rm -f conftest.er1
8490   cat conftest.err >&5
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); } &&
8493          { ac_try='test -z "$ac_c_werror_flag"
8494                          || test ! -s conftest.err'
8495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496   (eval $ac_try) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; } &&
8500          { ac_try='test -s conftest$ac_exeext'
8501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502   (eval $ac_try) 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); }; }; then
8506   ac_cv_lib_z_deflate=yes
8507 else
8508   echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 ac_cv_lib_z_deflate=no
8512 fi
8513 rm -f conftest.err conftest.$ac_objext \
8514       conftest$ac_exeext conftest.$ac_ext
8515 LIBS=$ac_check_lib_save_LIBS
8516 fi
8517 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8518 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8519 if test $ac_cv_lib_z_deflate = yes; then
8520   cat >>confdefs.h <<_ACEOF
8521 #define HAVE_LIBZ 1
8522 _ACEOF
8523
8524   LIBS="-lz $LIBS"
8525
8526 else
8527   ZLIBMISSING=true
8528 fi
8529
8530
8531 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8532 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8533 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8534   echo $ECHO_N "(cached) $ECHO_C" >&6
8535 else
8536   ac_check_lib_save_LIBS=$LIBS
8537 LIBS="-ljpeg  $LIBS"
8538 cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h.  */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h.  */
8544
8545 /* Override any gcc2 internal prototype to avoid an error.  */
8546 #ifdef __cplusplus
8547 extern "C"
8548 #endif
8549 /* We use char because int might match the return type of a gcc2
8550    builtin and then its argument prototype would still apply.  */
8551 char jpeg_write_raw_data ();
8552 int
8553 main ()
8554 {
8555 jpeg_write_raw_data ();
8556   ;
8557   return 0;
8558 }
8559 _ACEOF
8560 rm -f conftest.$ac_objext conftest$ac_exeext
8561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8562   (eval $ac_link) 2>conftest.er1
8563   ac_status=$?
8564   grep -v '^ *+' conftest.er1 >conftest.err
8565   rm -f conftest.er1
8566   cat conftest.err >&5
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); } &&
8569          { ac_try='test -z "$ac_c_werror_flag"
8570                          || test ! -s conftest.err'
8571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572   (eval $ac_try) 2>&5
8573   ac_status=$?
8574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575   (exit $ac_status); }; } &&
8576          { ac_try='test -s conftest$ac_exeext'
8577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578   (eval $ac_try) 2>&5
8579   ac_status=$?
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); }; }; then
8582   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8583 else
8584   echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8586
8587 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8588 fi
8589 rm -f conftest.err conftest.$ac_objext \
8590       conftest$ac_exeext conftest.$ac_ext
8591 LIBS=$ac_check_lib_save_LIBS
8592 fi
8593 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8594 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8595 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8596   cat >>confdefs.h <<_ACEOF
8597 #define HAVE_LIBJPEG 1
8598 _ACEOF
8599
8600   LIBS="-ljpeg $LIBS"
8601
8602 else
8603   JPEGLIBMISSING=true
8604 fi
8605
8606
8607 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8608 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8609 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8610   echo $ECHO_N "(cached) $ECHO_C" >&6
8611 else
8612   ac_check_lib_save_LIBS=$LIBS
8613 LIBS="-lt1  $LIBS"
8614 cat >conftest.$ac_ext <<_ACEOF
8615 /* confdefs.h.  */
8616 _ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h.  */
8620
8621 /* Override any gcc2 internal prototype to avoid an error.  */
8622 #ifdef __cplusplus
8623 extern "C"
8624 #endif
8625 /* We use char because int might match the return type of a gcc2
8626    builtin and then its argument prototype would still apply.  */
8627 char T1_LoadFont ();
8628 int
8629 main ()
8630 {
8631 T1_LoadFont ();
8632   ;
8633   return 0;
8634 }
8635 _ACEOF
8636 rm -f conftest.$ac_objext conftest$ac_exeext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8638   (eval $ac_link) 2>conftest.er1
8639   ac_status=$?
8640   grep -v '^ *+' conftest.er1 >conftest.err
8641   rm -f conftest.er1
8642   cat conftest.err >&5
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); } &&
8645          { ac_try='test -z "$ac_c_werror_flag"
8646                          || test ! -s conftest.err'
8647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648   (eval $ac_try) 2>&5
8649   ac_status=$?
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   (exit $ac_status); }; } &&
8652          { ac_try='test -s conftest$ac_exeext'
8653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654   (eval $ac_try) 2>&5
8655   ac_status=$?
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); }; }; then
8658   ac_cv_lib_t1_T1_LoadFont=yes
8659 else
8660   echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8662
8663 ac_cv_lib_t1_T1_LoadFont=no
8664 fi
8665 rm -f conftest.err conftest.$ac_objext \
8666       conftest$ac_exeext conftest.$ac_ext
8667 LIBS=$ac_check_lib_save_LIBS
8668 fi
8669 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8670 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8671 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8672   cat >>confdefs.h <<_ACEOF
8673 #define HAVE_LIBT1 1
8674 _ACEOF
8675
8676   LIBS="-lt1 $LIBS"
8677
8678 else
8679   T1LIBMISSING=true
8680 fi
8681
8682
8683 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
8684 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
8685 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
8686   echo $ECHO_N "(cached) $ECHO_C" >&6
8687 else
8688   ac_check_lib_save_LIBS=$LIBS
8689 LIBS="-lungif  $LIBS"
8690 cat >conftest.$ac_ext <<_ACEOF
8691 /* confdefs.h.  */
8692 _ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h.  */
8696
8697 /* Override any gcc2 internal prototype to avoid an error.  */
8698 #ifdef __cplusplus
8699 extern "C"
8700 #endif
8701 /* We use char because int might match the return type of a gcc2
8702    builtin and then its argument prototype would still apply.  */
8703 char DGifOpen ();
8704 int
8705 main ()
8706 {
8707 DGifOpen ();
8708   ;
8709   return 0;
8710 }
8711 _ACEOF
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714   (eval $ac_link) 2>conftest.er1
8715   ac_status=$?
8716   grep -v '^ *+' conftest.er1 >conftest.err
8717   rm -f conftest.er1
8718   cat conftest.err >&5
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); } &&
8721          { ac_try='test -z "$ac_c_werror_flag"
8722                          || test ! -s conftest.err'
8723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724   (eval $ac_try) 2>&5
8725   ac_status=$?
8726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727   (exit $ac_status); }; } &&
8728          { ac_try='test -s conftest$ac_exeext'
8729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730   (eval $ac_try) 2>&5
8731   ac_status=$?
8732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733   (exit $ac_status); }; }; then
8734   ac_cv_lib_ungif_DGifOpen=yes
8735 else
8736   echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8738
8739 ac_cv_lib_ungif_DGifOpen=no
8740 fi
8741 rm -f conftest.err conftest.$ac_objext \
8742       conftest$ac_exeext conftest.$ac_ext
8743 LIBS=$ac_check_lib_save_LIBS
8744 fi
8745 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
8746 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
8747 if test $ac_cv_lib_ungif_DGifOpen = yes; then
8748   cat >>confdefs.h <<_ACEOF
8749 #define HAVE_LIBUNGIF 1
8750 _ACEOF
8751
8752   LIBS="-lungif $LIBS"
8753
8754 else
8755   UNGIFMISSING=true
8756 fi
8757
8758
8759
8760 echo "$as_me:$LINENO: checking for byte order" >&5
8761 echo $ECHO_N "checking for byte order... $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 int main (int argc, char *argv[])
8773 {
8774     int i = 1;
8775     return *(char*)&i;
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   BIGENDIAN=1
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 ( exit $ac_status )
8797 LITTLEENDIAN=1
8798 fi
8799 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8800 fi
8801 export CROSSCOMPILE
8802
8803 if test "x${CROSSCOMPILE}" = "x1"; then
8804  echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
8805 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
8806  echo "$as_me:$LINENO: checking target system type" >&5
8807 echo $ECHO_N "checking target system type... $ECHO_C" >&6
8808 if test "${ac_cv_target+set}" = set; then
8809   echo $ECHO_N "(cached) $ECHO_C" >&6
8810 else
8811   ac_cv_target_alias=$target_alias
8812 test "x$ac_cv_target_alias" = "x" &&
8813   ac_cv_target_alias=$ac_cv_host_alias
8814 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
8815   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
8816 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
8817    { (exit 1); exit 1; }; }
8818
8819 fi
8820 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
8821 echo "${ECHO_T}$ac_cv_target" >&6
8822 target=$ac_cv_target
8823 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8824 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8825 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8826
8827
8828 # The aliases save the names the user supplied, while $host etc.
8829 # will get canonicalized.
8830 test -n "$target_alias" &&
8831   test "$program_prefix$program_suffix$program_transform_name" = \
8832     NONENONEs,x,x, &&
8833   program_prefix=${target_alias}-
8834  echo "$as_me:$LINENO: checking for byte order, try 2" >&5
8835 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
8836  case "${target}" in
8837   *86* | *-pc-* )
8838      LITTLEENDIAN=1
8839      ;;
8840   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
8841      BIGENDIAN=1
8842      ;;
8843  esac
8844 fi
8845
8846 export LITTLEENDIAN
8847 if test "x${LITTLEENDIAN}" = "x1"; then
8848 echo "$as_me:$LINENO: result: little endian" >&5
8849 echo "${ECHO_T}little endian" >&6
8850 BYTEORDERCHECKOK=1
8851 fi
8852 export BIGENDIAN
8853 if test "x${BIGENDIAN}" = "x1"; then
8854 echo "$as_me:$LINENO: result: big endian" >&5
8855 echo "${ECHO_T}big endian" >&6
8856 BYTEORDERCHECKOK=1
8857 WORDS_BIGENDIAN=1
8858 export WORDS_BIGENDIAN
8859 cat >>confdefs.h <<_ACEOF
8860 #define WORDS_BIGENDIAN 1
8861 _ACEOF
8862
8863 fi
8864 if test "x${BYTEORDERCHECKOK}" != "x1"; then
8865 echo "$as_me:$LINENO: result: unknown" >&5
8866 echo "${ECHO_T}unknown" >&6
8867 echo Byte order could not determined.
8868 exit 1
8869 fi
8870
8871
8872
8873 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
8874 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
8875 if test "$cross_compiling" = yes; then
8876   CROSSCOMPILE=1
8877 else
8878   cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h.  */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h.  */
8884
8885 #include "stdlib.h"
8886 int main (int argc, char*argv[])
8887 {
8888     return system("test `touch config.tmp2`");
8889 }
8890
8891 _ACEOF
8892 rm -f conftest$ac_exeext
8893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8894   (eval $ac_link) 2>&5
8895   ac_status=$?
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899   (eval $ac_try) 2>&5
8900   ac_status=$?
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); }; }; then
8903   OK=OK
8904 else
8905   echo "$as_me: program exited with status $ac_status" >&5
8906 echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909 fi
8910 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8911 fi
8912
8913 if test "x${OK}" = "xOK";then
8914     test -f config.tmp2 || OK=
8915 fi
8916
8917 if test "x${CROSSCOMPILE}" = "x1";then
8918     OK=OK;
8919 fi
8920 if test "x${OK}" = "xOK";then
8921 rm -f config.tmp2
8922 echo "$as_me:$LINENO: result: yes" >&5
8923 echo "${ECHO_T}yes" >&6
8924 SYSTEM_BACKTICKS=1
8925 export SYSTEM_BACKTICKS
8926 cat >>confdefs.h <<_ACEOF
8927 #define SYSTEM_BACKTICKS 1
8928 _ACEOF
8929
8930 else
8931 echo "$as_me:$LINENO: result: no" >&5
8932 echo "${ECHO_T}no" >&6
8933 fi
8934
8935
8936
8937 test "$program_prefix" != NONE &&
8938   program_transform_name="s,^,$program_prefix,;$program_transform_name"
8939 # Use a double $ so make ignores it.
8940 test "$program_suffix" != NONE &&
8941   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8942 # Double any \ or $.  echo might interpret backslashes.
8943 # By default was `s,x,x', remove it if useless.
8944 cat <<\_ACEOF >conftest.sed
8945 s/[\\$]/&&/g;s/;s,x,x,$//
8946 _ACEOF
8947 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8948 rm conftest.sed
8949
8950
8951            ac_config_headers="$ac_config_headers config.h"
8952
8953
8954
8955
8956
8957
8958 ac_header_dirent=no
8959 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8960   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8961 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8962 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8964   echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966   cat >conftest.$ac_ext <<_ACEOF
8967 /* confdefs.h.  */
8968 _ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h.  */
8972 #include <sys/types.h>
8973 #include <$ac_hdr>
8974
8975 int
8976 main ()
8977 {
8978 if ((DIR *) 0)
8979 return 0;
8980   ;
8981   return 0;
8982 }
8983 _ACEOF
8984 rm -f conftest.$ac_objext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8986   (eval $ac_compile) 2>conftest.er1
8987   ac_status=$?
8988   grep -v '^ *+' conftest.er1 >conftest.err
8989   rm -f conftest.er1
8990   cat conftest.err >&5
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); } &&
8993          { ac_try='test -z "$ac_c_werror_flag"
8994                          || test ! -s conftest.err'
8995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996   (eval $ac_try) 2>&5
8997   ac_status=$?
8998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999   (exit $ac_status); }; } &&
9000          { ac_try='test -s conftest.$ac_objext'
9001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002   (eval $ac_try) 2>&5
9003   ac_status=$?
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); }; }; then
9006   eval "$as_ac_Header=yes"
9007 else
9008   echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9010
9011 eval "$as_ac_Header=no"
9012 fi
9013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9014 fi
9015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9018   cat >>confdefs.h <<_ACEOF
9019 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9020 _ACEOF
9021
9022 ac_header_dirent=$ac_hdr; break
9023 fi
9024
9025 done
9026 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9027 if test $ac_header_dirent = dirent.h; then
9028   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9029 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9030 if test "${ac_cv_search_opendir+set}" = set; then
9031   echo $ECHO_N "(cached) $ECHO_C" >&6
9032 else
9033   ac_func_search_save_LIBS=$LIBS
9034 ac_cv_search_opendir=no
9035 cat >conftest.$ac_ext <<_ACEOF
9036 /* confdefs.h.  */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h.  */
9041
9042 /* Override any gcc2 internal prototype to avoid an error.  */
9043 #ifdef __cplusplus
9044 extern "C"
9045 #endif
9046 /* We use char because int might match the return type of a gcc2
9047    builtin and then its argument prototype would still apply.  */
9048 char opendir ();
9049 int
9050 main ()
9051 {
9052 opendir ();
9053   ;
9054   return 0;
9055 }
9056 _ACEOF
9057 rm -f conftest.$ac_objext conftest$ac_exeext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9059   (eval $ac_link) 2>conftest.er1
9060   ac_status=$?
9061   grep -v '^ *+' conftest.er1 >conftest.err
9062   rm -f conftest.er1
9063   cat conftest.err >&5
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); } &&
9066          { ac_try='test -z "$ac_c_werror_flag"
9067                          || test ! -s conftest.err'
9068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069   (eval $ac_try) 2>&5
9070   ac_status=$?
9071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072   (exit $ac_status); }; } &&
9073          { ac_try='test -s conftest$ac_exeext'
9074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075   (eval $ac_try) 2>&5
9076   ac_status=$?
9077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   (exit $ac_status); }; }; then
9079   ac_cv_search_opendir="none required"
9080 else
9081   echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9083
9084 fi
9085 rm -f conftest.err conftest.$ac_objext \
9086       conftest$ac_exeext conftest.$ac_ext
9087 if test "$ac_cv_search_opendir" = no; then
9088   for ac_lib in dir; do
9089     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9090     cat >conftest.$ac_ext <<_ACEOF
9091 /* confdefs.h.  */
9092 _ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h.  */
9096
9097 /* Override any gcc2 internal prototype to avoid an error.  */
9098 #ifdef __cplusplus
9099 extern "C"
9100 #endif
9101 /* We use char because int might match the return type of a gcc2
9102    builtin and then its argument prototype would still apply.  */
9103 char opendir ();
9104 int
9105 main ()
9106 {
9107 opendir ();
9108   ;
9109   return 0;
9110 }
9111 _ACEOF
9112 rm -f conftest.$ac_objext conftest$ac_exeext
9113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9114   (eval $ac_link) 2>conftest.er1
9115   ac_status=$?
9116   grep -v '^ *+' conftest.er1 >conftest.err
9117   rm -f conftest.er1
9118   cat conftest.err >&5
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); } &&
9121          { ac_try='test -z "$ac_c_werror_flag"
9122                          || test ! -s conftest.err'
9123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124   (eval $ac_try) 2>&5
9125   ac_status=$?
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); }; } &&
9128          { ac_try='test -s conftest$ac_exeext'
9129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130   (eval $ac_try) 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); }; }; then
9134   ac_cv_search_opendir="-l$ac_lib"
9135 break
9136 else
9137   echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9139
9140 fi
9141 rm -f conftest.err conftest.$ac_objext \
9142       conftest$ac_exeext conftest.$ac_ext
9143   done
9144 fi
9145 LIBS=$ac_func_search_save_LIBS
9146 fi
9147 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9148 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9149 if test "$ac_cv_search_opendir" != no; then
9150   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9151
9152 fi
9153
9154 else
9155   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9156 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9157 if test "${ac_cv_search_opendir+set}" = set; then
9158   echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160   ac_func_search_save_LIBS=$LIBS
9161 ac_cv_search_opendir=no
9162 cat >conftest.$ac_ext <<_ACEOF
9163 /* confdefs.h.  */
9164 _ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h.  */
9168
9169 /* Override any gcc2 internal prototype to avoid an error.  */
9170 #ifdef __cplusplus
9171 extern "C"
9172 #endif
9173 /* We use char because int might match the return type of a gcc2
9174    builtin and then its argument prototype would still apply.  */
9175 char opendir ();
9176 int
9177 main ()
9178 {
9179 opendir ();
9180   ;
9181   return 0;
9182 }
9183 _ACEOF
9184 rm -f conftest.$ac_objext conftest$ac_exeext
9185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9186   (eval $ac_link) 2>conftest.er1
9187   ac_status=$?
9188   grep -v '^ *+' conftest.er1 >conftest.err
9189   rm -f conftest.er1
9190   cat conftest.err >&5
9191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192   (exit $ac_status); } &&
9193          { ac_try='test -z "$ac_c_werror_flag"
9194                          || test ! -s conftest.err'
9195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196   (eval $ac_try) 2>&5
9197   ac_status=$?
9198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199   (exit $ac_status); }; } &&
9200          { ac_try='test -s conftest$ac_exeext'
9201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202   (eval $ac_try) 2>&5
9203   ac_status=$?
9204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); }; }; then
9206   ac_cv_search_opendir="none required"
9207 else
9208   echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9210
9211 fi
9212 rm -f conftest.err conftest.$ac_objext \
9213       conftest$ac_exeext conftest.$ac_ext
9214 if test "$ac_cv_search_opendir" = no; then
9215   for ac_lib in x; do
9216     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9217     cat >conftest.$ac_ext <<_ACEOF
9218 /* confdefs.h.  */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h.  */
9223
9224 /* Override any gcc2 internal prototype to avoid an error.  */
9225 #ifdef __cplusplus
9226 extern "C"
9227 #endif
9228 /* We use char because int might match the return type of a gcc2
9229    builtin and then its argument prototype would still apply.  */
9230 char opendir ();
9231 int
9232 main ()
9233 {
9234 opendir ();
9235   ;
9236   return 0;
9237 }
9238 _ACEOF
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241   (eval $ac_link) 2>conftest.er1
9242   ac_status=$?
9243   grep -v '^ *+' conftest.er1 >conftest.err
9244   rm -f conftest.er1
9245   cat conftest.err >&5
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); } &&
9248          { ac_try='test -z "$ac_c_werror_flag"
9249                          || test ! -s conftest.err'
9250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251   (eval $ac_try) 2>&5
9252   ac_status=$?
9253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); }; } &&
9255          { ac_try='test -s conftest$ac_exeext'
9256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257   (eval $ac_try) 2>&5
9258   ac_status=$?
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); }; }; then
9261   ac_cv_search_opendir="-l$ac_lib"
9262 break
9263 else
9264   echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9266
9267 fi
9268 rm -f conftest.err conftest.$ac_objext \
9269       conftest$ac_exeext conftest.$ac_ext
9270   done
9271 fi
9272 LIBS=$ac_func_search_save_LIBS
9273 fi
9274 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9275 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9276 if test "$ac_cv_search_opendir" != no; then
9277   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9278
9279 fi
9280
9281 fi
9282
9283  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9284 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9285 if test "${ac_cv_header_stdc+set}" = set; then
9286   echo $ECHO_N "(cached) $ECHO_C" >&6
9287 else
9288   cat >conftest.$ac_ext <<_ACEOF
9289 /* confdefs.h.  */
9290 _ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h.  */
9294 #include <stdlib.h>
9295 #include <stdarg.h>
9296 #include <string.h>
9297 #include <float.h>
9298
9299 int
9300 main ()
9301 {
9302
9303   ;
9304   return 0;
9305 }
9306 _ACEOF
9307 rm -f conftest.$ac_objext
9308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9309   (eval $ac_compile) 2>conftest.er1
9310   ac_status=$?
9311   grep -v '^ *+' conftest.er1 >conftest.err
9312   rm -f conftest.er1
9313   cat conftest.err >&5
9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315   (exit $ac_status); } &&
9316          { ac_try='test -z "$ac_c_werror_flag"
9317                          || test ! -s conftest.err'
9318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319   (eval $ac_try) 2>&5
9320   ac_status=$?
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); }; } &&
9323          { ac_try='test -s conftest.$ac_objext'
9324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325   (eval $ac_try) 2>&5
9326   ac_status=$?
9327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328   (exit $ac_status); }; }; then
9329   ac_cv_header_stdc=yes
9330 else
9331   echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9333
9334 ac_cv_header_stdc=no
9335 fi
9336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9337
9338 if test $ac_cv_header_stdc = yes; then
9339   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9340   cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h.  */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h.  */
9346 #include <string.h>
9347
9348 _ACEOF
9349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9350   $EGREP "memchr" >/dev/null 2>&1; then
9351   :
9352 else
9353   ac_cv_header_stdc=no
9354 fi
9355 rm -f conftest*
9356
9357 fi
9358
9359 if test $ac_cv_header_stdc = yes; then
9360   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9361   cat >conftest.$ac_ext <<_ACEOF
9362 /* confdefs.h.  */
9363 _ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h.  */
9367 #include <stdlib.h>
9368
9369 _ACEOF
9370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9371   $EGREP "free" >/dev/null 2>&1; then
9372   :
9373 else
9374   ac_cv_header_stdc=no
9375 fi
9376 rm -f conftest*
9377
9378 fi
9379
9380 if test $ac_cv_header_stdc = yes; then
9381   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9382   if test "$cross_compiling" = yes; then
9383   :
9384 else
9385   cat >conftest.$ac_ext <<_ACEOF
9386 /* confdefs.h.  */
9387 _ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h.  */
9391 #include <ctype.h>
9392 #if ((' ' & 0x0FF) == 0x020)
9393 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9394 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9395 #else
9396 # define ISLOWER(c) \
9397                    (('a' <= (c) && (c) <= 'i') \
9398                      || ('j' <= (c) && (c) <= 'r') \
9399                      || ('s' <= (c) && (c) <= 'z'))
9400 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9401 #endif
9402
9403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9404 int
9405 main ()
9406 {
9407   int i;
9408   for (i = 0; i < 256; i++)
9409     if (XOR (islower (i), ISLOWER (i))
9410         || toupper (i) != TOUPPER (i))
9411       exit(2);
9412   exit (0);
9413 }
9414 _ACEOF
9415 rm -f conftest$ac_exeext
9416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9417   (eval $ac_link) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422   (eval $ac_try) 2>&5
9423   ac_status=$?
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); }; }; then
9426   :
9427 else
9428   echo "$as_me: program exited with status $ac_status" >&5
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 ( exit $ac_status )
9433 ac_cv_header_stdc=no
9434 fi
9435 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9436 fi
9437 fi
9438 fi
9439 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9440 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9441 if test $ac_cv_header_stdc = yes; then
9442
9443 cat >>confdefs.h <<\_ACEOF
9444 #define STDC_HEADERS 1
9445 _ACEOF
9446
9447 fi
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464 for ac_header in zlib.h gif_lib.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
9465 do
9466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9468   echo "$as_me:$LINENO: checking for $ac_header" >&5
9469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9471   echo $ECHO_N "(cached) $ECHO_C" >&6
9472 fi
9473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9475 else
9476   # Is the header compilable?
9477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9479 cat >conftest.$ac_ext <<_ACEOF
9480 /* confdefs.h.  */
9481 _ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h.  */
9485 $ac_includes_default
9486 #include <$ac_header>
9487 _ACEOF
9488 rm -f conftest.$ac_objext
9489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9490   (eval $ac_compile) 2>conftest.er1
9491   ac_status=$?
9492   grep -v '^ *+' conftest.er1 >conftest.err
9493   rm -f conftest.er1
9494   cat conftest.err >&5
9495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496   (exit $ac_status); } &&
9497          { ac_try='test -z "$ac_c_werror_flag"
9498                          || test ! -s conftest.err'
9499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500   (eval $ac_try) 2>&5
9501   ac_status=$?
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); }; } &&
9504          { ac_try='test -s conftest.$ac_objext'
9505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506   (eval $ac_try) 2>&5
9507   ac_status=$?
9508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509   (exit $ac_status); }; }; then
9510   ac_header_compiler=yes
9511 else
9512   echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9514
9515 ac_header_compiler=no
9516 fi
9517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9519 echo "${ECHO_T}$ac_header_compiler" >&6
9520
9521 # Is the header present?
9522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9524 cat >conftest.$ac_ext <<_ACEOF
9525 /* confdefs.h.  */
9526 _ACEOF
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h.  */
9530 #include <$ac_header>
9531 _ACEOF
9532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9534   ac_status=$?
9535   grep -v '^ *+' conftest.er1 >conftest.err
9536   rm -f conftest.er1
9537   cat conftest.err >&5
9538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539   (exit $ac_status); } >/dev/null; then
9540   if test -s conftest.err; then
9541     ac_cpp_err=$ac_c_preproc_warn_flag
9542     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9543   else
9544     ac_cpp_err=
9545   fi
9546 else
9547   ac_cpp_err=yes
9548 fi
9549 if test -z "$ac_cpp_err"; then
9550   ac_header_preproc=yes
9551 else
9552   echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9554
9555   ac_header_preproc=no
9556 fi
9557 rm -f conftest.err conftest.$ac_ext
9558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9559 echo "${ECHO_T}$ac_header_preproc" >&6
9560
9561 # So?  What about this header?
9562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9563   yes:no: )
9564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9568     ac_header_preproc=yes
9569     ;;
9570   no:yes:* )
9571     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9573     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9574 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9575     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9577     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9578 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9581     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9583     (
9584       cat <<\_ASBOX
9585 ## ------------------------------------------ ##
9586 ## Report this to the AC_PACKAGE_NAME lists.  ##
9587 ## ------------------------------------------ ##
9588 _ASBOX
9589     ) |
9590       sed "s/^/$as_me: WARNING:     /" >&2
9591     ;;
9592 esac
9593 echo "$as_me:$LINENO: checking for $ac_header" >&5
9594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9596   echo $ECHO_N "(cached) $ECHO_C" >&6
9597 else
9598   eval "$as_ac_Header=\$ac_header_preproc"
9599 fi
9600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9602
9603 fi
9604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9605   cat >>confdefs.h <<_ACEOF
9606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9607 _ACEOF
9608
9609 fi
9610
9611 done
9612
9613
9614 cat >>confdefs.h <<_ACEOF
9615 #define PACKAGE "$PACKAGE"
9616 _ACEOF
9617
9618 cat >>confdefs.h <<_ACEOF
9619 #define VERSION "$VERSION"
9620 _ACEOF
9621
9622
9623
9624
9625
9626
9627
9628  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9629 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9630 if test "${ac_cv_c_const+set}" = set; then
9631   echo $ECHO_N "(cached) $ECHO_C" >&6
9632 else
9633   cat >conftest.$ac_ext <<_ACEOF
9634 /* confdefs.h.  */
9635 _ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h.  */
9639
9640 int
9641 main ()
9642 {
9643 /* FIXME: Include the comments suggested by Paul. */
9644 #ifndef __cplusplus
9645   /* Ultrix mips cc rejects this.  */
9646   typedef int charset[2];
9647   const charset x;
9648   /* SunOS 4.1.1 cc rejects this.  */
9649   char const *const *ccp;
9650   char **p;
9651   /* NEC SVR4.0.2 mips cc rejects this.  */
9652   struct point {int x, y;};
9653   static struct point const zero = {0,0};
9654   /* AIX XL C 1.02.0.0 rejects this.
9655      It does not let you subtract one const X* pointer from another in
9656      an arm of an if-expression whose if-part is not a constant
9657      expression */
9658   const char *g = "string";
9659   ccp = &g + (g ? g-g : 0);
9660   /* HPUX 7.0 cc rejects these. */
9661   ++ccp;
9662   p = (char**) ccp;
9663   ccp = (char const *const *) p;
9664   { /* SCO 3.2v4 cc rejects this.  */
9665     char *t;
9666     char const *s = 0 ? (char *) 0 : (char const *) 0;
9667
9668     *t++ = 0;
9669   }
9670   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9671     int x[] = {25, 17};
9672     const int *foo = &x[0];
9673     ++foo;
9674   }
9675   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9676     typedef const int *iptr;
9677     iptr p = 0;
9678     ++p;
9679   }
9680   { /* AIX XL C 1.02.0.0 rejects this saying
9681        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9682     struct s { int j; const int *ap[3]; };
9683     struct s *b; b->j = 5;
9684   }
9685   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9686     const int foo = 10;
9687   }
9688 #endif
9689
9690   ;
9691   return 0;
9692 }
9693 _ACEOF
9694 rm -f conftest.$ac_objext
9695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9696   (eval $ac_compile) 2>conftest.er1
9697   ac_status=$?
9698   grep -v '^ *+' conftest.er1 >conftest.err
9699   rm -f conftest.er1
9700   cat conftest.err >&5
9701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702   (exit $ac_status); } &&
9703          { ac_try='test -z "$ac_c_werror_flag"
9704                          || test ! -s conftest.err'
9705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706   (eval $ac_try) 2>&5
9707   ac_status=$?
9708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709   (exit $ac_status); }; } &&
9710          { ac_try='test -s conftest.$ac_objext'
9711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712   (eval $ac_try) 2>&5
9713   ac_status=$?
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); }; }; then
9716   ac_cv_c_const=yes
9717 else
9718   echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9720
9721 ac_cv_c_const=no
9722 fi
9723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9724 fi
9725 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9726 echo "${ECHO_T}$ac_cv_c_const" >&6
9727 if test $ac_cv_c_const = no; then
9728
9729 cat >>confdefs.h <<\_ACEOF
9730 #define const
9731 _ACEOF
9732
9733 fi
9734
9735  echo "$as_me:$LINENO: checking for inline" >&5
9736 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9737 if test "${ac_cv_c_inline+set}" = set; then
9738   echo $ECHO_N "(cached) $ECHO_C" >&6
9739 else
9740   ac_cv_c_inline=no
9741 for ac_kw in inline __inline__ __inline; do
9742   cat >conftest.$ac_ext <<_ACEOF
9743 /* confdefs.h.  */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h.  */
9748 #ifndef __cplusplus
9749 typedef int foo_t;
9750 static $ac_kw foo_t static_foo () {return 0; }
9751 $ac_kw foo_t foo () {return 0; }
9752 #endif
9753
9754 _ACEOF
9755 rm -f conftest.$ac_objext
9756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9757   (eval $ac_compile) 2>conftest.er1
9758   ac_status=$?
9759   grep -v '^ *+' conftest.er1 >conftest.err
9760   rm -f conftest.er1
9761   cat conftest.err >&5
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   (exit $ac_status); } &&
9764          { ac_try='test -z "$ac_c_werror_flag"
9765                          || test ! -s conftest.err'
9766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767   (eval $ac_try) 2>&5
9768   ac_status=$?
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); }; } &&
9771          { ac_try='test -s conftest.$ac_objext'
9772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773   (eval $ac_try) 2>&5
9774   ac_status=$?
9775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776   (exit $ac_status); }; }; then
9777   ac_cv_c_inline=$ac_kw; break
9778 else
9779   echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9781
9782 fi
9783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9784 done
9785
9786 fi
9787 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9788 echo "${ECHO_T}$ac_cv_c_inline" >&6
9789
9790
9791 case $ac_cv_c_inline in
9792   inline | yes) ;;
9793   *)
9794     case $ac_cv_c_inline in
9795       no) ac_val=;;
9796       *) ac_val=$ac_cv_c_inline;;
9797     esac
9798     cat >>confdefs.h <<_ACEOF
9799 #ifndef __cplusplus
9800 #define inline $ac_val
9801 #endif
9802 _ACEOF
9803     ;;
9804 esac
9805
9806  echo "$as_me:$LINENO: checking for off_t" >&5
9807 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9808 if test "${ac_cv_type_off_t+set}" = set; then
9809   echo $ECHO_N "(cached) $ECHO_C" >&6
9810 else
9811   cat >conftest.$ac_ext <<_ACEOF
9812 /* confdefs.h.  */
9813 _ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h.  */
9817 $ac_includes_default
9818 int
9819 main ()
9820 {
9821 if ((off_t *) 0)
9822   return 0;
9823 if (sizeof (off_t))
9824   return 0;
9825   ;
9826   return 0;
9827 }
9828 _ACEOF
9829 rm -f conftest.$ac_objext
9830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9831   (eval $ac_compile) 2>conftest.er1
9832   ac_status=$?
9833   grep -v '^ *+' conftest.er1 >conftest.err
9834   rm -f conftest.er1
9835   cat conftest.err >&5
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); } &&
9838          { ac_try='test -z "$ac_c_werror_flag"
9839                          || test ! -s conftest.err'
9840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841   (eval $ac_try) 2>&5
9842   ac_status=$?
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); }; } &&
9845          { ac_try='test -s conftest.$ac_objext'
9846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847   (eval $ac_try) 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); }; }; then
9851   ac_cv_type_off_t=yes
9852 else
9853   echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9855
9856 ac_cv_type_off_t=no
9857 fi
9858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9859 fi
9860 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9861 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9862 if test $ac_cv_type_off_t = yes; then
9863   :
9864 else
9865
9866 cat >>confdefs.h <<_ACEOF
9867 #define off_t long
9868 _ACEOF
9869
9870 fi
9871
9872  echo "$as_me:$LINENO: checking for size_t" >&5
9873 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9874 if test "${ac_cv_type_size_t+set}" = set; then
9875   echo $ECHO_N "(cached) $ECHO_C" >&6
9876 else
9877   cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h.  */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h.  */
9883 $ac_includes_default
9884 int
9885 main ()
9886 {
9887 if ((size_t *) 0)
9888   return 0;
9889 if (sizeof (size_t))
9890   return 0;
9891   ;
9892   return 0;
9893 }
9894 _ACEOF
9895 rm -f conftest.$ac_objext
9896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9897   (eval $ac_compile) 2>conftest.er1
9898   ac_status=$?
9899   grep -v '^ *+' conftest.er1 >conftest.err
9900   rm -f conftest.er1
9901   cat conftest.err >&5
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); } &&
9904          { ac_try='test -z "$ac_c_werror_flag"
9905                          || test ! -s conftest.err'
9906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907   (eval $ac_try) 2>&5
9908   ac_status=$?
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); }; } &&
9911          { ac_try='test -s conftest.$ac_objext'
9912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913   (eval $ac_try) 2>&5
9914   ac_status=$?
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); }; }; then
9917   ac_cv_type_size_t=yes
9918 else
9919   echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9921
9922 ac_cv_type_size_t=no
9923 fi
9924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9925 fi
9926 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9927 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9928 if test $ac_cv_type_size_t = yes; then
9929   :
9930 else
9931
9932 cat >>confdefs.h <<_ACEOF
9933 #define size_t unsigned
9934 _ACEOF
9935
9936 fi
9937
9938  echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9939 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9940 if test "${ac_cv_struct_tm+set}" = set; then
9941   echo $ECHO_N "(cached) $ECHO_C" >&6
9942 else
9943   cat >conftest.$ac_ext <<_ACEOF
9944 /* confdefs.h.  */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h.  */
9949 #include <sys/types.h>
9950 #include <time.h>
9951
9952 int
9953 main ()
9954 {
9955 struct tm *tp; tp->tm_sec;
9956   ;
9957   return 0;
9958 }
9959 _ACEOF
9960 rm -f conftest.$ac_objext
9961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9962   (eval $ac_compile) 2>conftest.er1
9963   ac_status=$?
9964   grep -v '^ *+' conftest.er1 >conftest.err
9965   rm -f conftest.er1
9966   cat conftest.err >&5
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); } &&
9969          { ac_try='test -z "$ac_c_werror_flag"
9970                          || test ! -s conftest.err'
9971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972   (eval $ac_try) 2>&5
9973   ac_status=$?
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); }; } &&
9976          { ac_try='test -s conftest.$ac_objext'
9977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978   (eval $ac_try) 2>&5
9979   ac_status=$?
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); }; }; then
9982   ac_cv_struct_tm=time.h
9983 else
9984   echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9986
9987 ac_cv_struct_tm=sys/time.h
9988 fi
9989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9990 fi
9991 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9992 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9993 if test $ac_cv_struct_tm = sys/time.h; then
9994
9995 cat >>confdefs.h <<\_ACEOF
9996 #define TM_IN_SYS_TIME 1
9997 _ACEOF
9998
9999 fi
10000
10001  echo "$as_me:$LINENO: checking for boolean" >&5
10002 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
10003 if test "${ac_cv_type_boolean+set}" = set; then
10004   echo $ECHO_N "(cached) $ECHO_C" >&6
10005 else
10006   cat >conftest.$ac_ext <<_ACEOF
10007 /* confdefs.h.  */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h.  */
10012 $ac_includes_default
10013 int
10014 main ()
10015 {
10016 if ((boolean *) 0)
10017   return 0;
10018 if (sizeof (boolean))
10019   return 0;
10020   ;
10021   return 0;
10022 }
10023 _ACEOF
10024 rm -f conftest.$ac_objext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10026   (eval $ac_compile) 2>conftest.er1
10027   ac_status=$?
10028   grep -v '^ *+' conftest.er1 >conftest.err
10029   rm -f conftest.er1
10030   cat conftest.err >&5
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); } &&
10033          { ac_try='test -z "$ac_c_werror_flag"
10034                          || test ! -s conftest.err'
10035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036   (eval $ac_try) 2>&5
10037   ac_status=$?
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); }; } &&
10040          { ac_try='test -s conftest.$ac_objext'
10041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042   (eval $ac_try) 2>&5
10043   ac_status=$?
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); }; }; then
10046   ac_cv_type_boolean=yes
10047 else
10048   echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10050
10051 ac_cv_type_boolean=no
10052 fi
10053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10054 fi
10055 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
10056 echo "${ECHO_T}$ac_cv_type_boolean" >&6
10057 if test $ac_cv_type_boolean = yes; then
10058   :
10059 else
10060
10061 cat >>confdefs.h <<_ACEOF
10062 #define boolean int
10063 _ACEOF
10064
10065 fi
10066  #needed for jpeglib
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
10079 do
10080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10081 echo "$as_me:$LINENO: checking for $ac_func" >&5
10082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10083 if eval "test \"\${$as_ac_var+set}\" = set"; then
10084   echo $ECHO_N "(cached) $ECHO_C" >&6
10085 else
10086   cat >conftest.$ac_ext <<_ACEOF
10087 /* confdefs.h.  */
10088 _ACEOF
10089 cat confdefs.h >>conftest.$ac_ext
10090 cat >>conftest.$ac_ext <<_ACEOF
10091 /* end confdefs.h.  */
10092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10094 #define $ac_func innocuous_$ac_func
10095
10096 /* System header to define __stub macros and hopefully few prototypes,
10097     which can conflict with char $ac_func (); below.
10098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10099     <limits.h> exists even on freestanding compilers.  */
10100
10101 #ifdef __STDC__
10102 # include <limits.h>
10103 #else
10104 # include <assert.h>
10105 #endif
10106
10107 #undef $ac_func
10108
10109 /* Override any gcc2 internal prototype to avoid an error.  */
10110 #ifdef __cplusplus
10111 extern "C"
10112 {
10113 #endif
10114 /* We use char because int might match the return type of a gcc2
10115    builtin and then its argument prototype would still apply.  */
10116 char $ac_func ();
10117 /* The GNU C library defines this for functions which it implements
10118     to always fail with ENOSYS.  Some functions are actually named
10119     something starting with __ and the normal name is an alias.  */
10120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10121 choke me
10122 #else
10123 char (*f) () = $ac_func;
10124 #endif
10125 #ifdef __cplusplus
10126 }
10127 #endif
10128
10129 int
10130 main ()
10131 {
10132 return f != $ac_func;
10133   ;
10134   return 0;
10135 }
10136 _ACEOF
10137 rm -f conftest.$ac_objext conftest$ac_exeext
10138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10139   (eval $ac_link) 2>conftest.er1
10140   ac_status=$?
10141   grep -v '^ *+' conftest.er1 >conftest.err
10142   rm -f conftest.er1
10143   cat conftest.err >&5
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); } &&
10146          { ac_try='test -z "$ac_c_werror_flag"
10147                          || test ! -s conftest.err'
10148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149   (eval $ac_try) 2>&5
10150   ac_status=$?
10151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152   (exit $ac_status); }; } &&
10153          { ac_try='test -s conftest$ac_exeext'
10154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155   (eval $ac_try) 2>&5
10156   ac_status=$?
10157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158   (exit $ac_status); }; }; then
10159   eval "$as_ac_var=yes"
10160 else
10161   echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10163
10164 eval "$as_ac_var=no"
10165 fi
10166 rm -f conftest.err conftest.$ac_objext \
10167       conftest$ac_exeext conftest.$ac_ext
10168 fi
10169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10171 if test `eval echo '${'$as_ac_var'}'` = yes; then
10172   cat >>confdefs.h <<_ACEOF
10173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10174 _ACEOF
10175
10176 fi
10177 done
10178
10179
10180 # ------------------------------------------------------------------
10181
10182
10183
10184 # Extract the first word of "freetype-config", so it can be a program name with args.
10185 set dummy freetype-config; ac_word=$2
10186 echo "$as_me:$LINENO: checking for $ac_word" >&5
10187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10188 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
10189   echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191   case $FREETYPE_CONFIG in
10192   [\\/]* | ?:[\\/]*)
10193   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
10194   ;;
10195   *)
10196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
10198 for as_dir in $as_dummy
10199 do
10200   IFS=$as_save_IFS
10201   test -z "$as_dir" && as_dir=.
10202   for ac_exec_ext in '' $ac_executable_extensions; do
10203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10204     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10206     break 2
10207   fi
10208 done
10209 done
10210
10211   ;;
10212 esac
10213 fi
10214 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
10215
10216 if test -n "$FREETYPE_CONFIG"; then
10217   echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
10218 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
10219 else
10220   echo "$as_me:$LINENO: result: no" >&5
10221 echo "${ECHO_T}no" >&6
10222 fi
10223
10224
10225 OLDCPPFLAGS="${CPPFLAGS}"
10226 OLDLIBS="${LIBS}"
10227 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10228     CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
10229 else if test -d /usr/include/freetype2; then
10230     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
10231 else if test -d /usr/local/include/freetype2; then
10232     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
10233 fi
10234 fi
10235 fi
10236
10237 if test "x${FREETYPE_CONFIG}" '=' "x";then
10238     # if we didn't find the freetype-config program, we won't
10239     # know where the libs are expected to be. So just blindly
10240     # try to link against them.
10241     echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10242 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10243 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10244   echo $ECHO_N "(cached) $ECHO_C" >&6
10245 else
10246   ac_check_lib_save_LIBS=$LIBS
10247 LIBS="-lfreetype  $LIBS"
10248 cat >conftest.$ac_ext <<_ACEOF
10249 /* confdefs.h.  */
10250 _ACEOF
10251 cat confdefs.h >>conftest.$ac_ext
10252 cat >>conftest.$ac_ext <<_ACEOF
10253 /* end confdefs.h.  */
10254
10255 /* Override any gcc2 internal prototype to avoid an error.  */
10256 #ifdef __cplusplus
10257 extern "C"
10258 #endif
10259 /* We use char because int might match the return type of a gcc2
10260    builtin and then its argument prototype would still apply.  */
10261 char FT_Init_FreeType ();
10262 int
10263 main ()
10264 {
10265 FT_Init_FreeType ();
10266   ;
10267   return 0;
10268 }
10269 _ACEOF
10270 rm -f conftest.$ac_objext conftest$ac_exeext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10272   (eval $ac_link) 2>conftest.er1
10273   ac_status=$?
10274   grep -v '^ *+' conftest.er1 >conftest.err
10275   rm -f conftest.er1
10276   cat conftest.err >&5
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); } &&
10279          { ac_try='test -z "$ac_c_werror_flag"
10280                          || test ! -s conftest.err'
10281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282   (eval $ac_try) 2>&5
10283   ac_status=$?
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); }; } &&
10286          { ac_try='test -s conftest$ac_exeext'
10287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288   (eval $ac_try) 2>&5
10289   ac_status=$?
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); }; }; then
10292   ac_cv_lib_freetype_FT_Init_FreeType=yes
10293 else
10294   echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10296
10297 ac_cv_lib_freetype_FT_Init_FreeType=no
10298 fi
10299 rm -f conftest.err conftest.$ac_objext \
10300       conftest$ac_exeext conftest.$ac_ext
10301 LIBS=$ac_check_lib_save_LIBS
10302 fi
10303 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10304 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10305 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10306   HAVE_LIB_FREETYPE=1
10307 fi
10308
10309 fi
10310
10311
10312 for ac_header in ft2build.h
10313 do
10314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10316   echo "$as_me:$LINENO: checking for $ac_header" >&5
10317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10319   echo $ECHO_N "(cached) $ECHO_C" >&6
10320 fi
10321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10323 else
10324   # Is the header compilable?
10325 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10327 cat >conftest.$ac_ext <<_ACEOF
10328 /* confdefs.h.  */
10329 _ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h.  */
10333 $ac_includes_default
10334 #include <$ac_header>
10335 _ACEOF
10336 rm -f conftest.$ac_objext
10337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10338   (eval $ac_compile) 2>conftest.er1
10339   ac_status=$?
10340   grep -v '^ *+' conftest.er1 >conftest.err
10341   rm -f conftest.er1
10342   cat conftest.err >&5
10343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344   (exit $ac_status); } &&
10345          { ac_try='test -z "$ac_c_werror_flag"
10346                          || test ! -s conftest.err'
10347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348   (eval $ac_try) 2>&5
10349   ac_status=$?
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); }; } &&
10352          { ac_try='test -s conftest.$ac_objext'
10353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354   (eval $ac_try) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; }; then
10358   ac_header_compiler=yes
10359 else
10360   echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10362
10363 ac_header_compiler=no
10364 fi
10365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10366 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10367 echo "${ECHO_T}$ac_header_compiler" >&6
10368
10369 # Is the header present?
10370 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10372 cat >conftest.$ac_ext <<_ACEOF
10373 /* confdefs.h.  */
10374 _ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h.  */
10378 #include <$ac_header>
10379 _ACEOF
10380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10381   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10382   ac_status=$?
10383   grep -v '^ *+' conftest.er1 >conftest.err
10384   rm -f conftest.er1
10385   cat conftest.err >&5
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); } >/dev/null; then
10388   if test -s conftest.err; then
10389     ac_cpp_err=$ac_c_preproc_warn_flag
10390     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10391   else
10392     ac_cpp_err=
10393   fi
10394 else
10395   ac_cpp_err=yes
10396 fi
10397 if test -z "$ac_cpp_err"; then
10398   ac_header_preproc=yes
10399 else
10400   echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10402
10403   ac_header_preproc=no
10404 fi
10405 rm -f conftest.err conftest.$ac_ext
10406 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10407 echo "${ECHO_T}$ac_header_preproc" >&6
10408
10409 # So?  What about this header?
10410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10411   yes:no: )
10412     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10416     ac_header_preproc=yes
10417     ;;
10418   no:yes:* )
10419     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10421     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10422 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10423     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10424 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10425     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10426 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10429     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10430 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10431     (
10432       cat <<\_ASBOX
10433 ## ------------------------------------------ ##
10434 ## Report this to the AC_PACKAGE_NAME lists.  ##
10435 ## ------------------------------------------ ##
10436 _ASBOX
10437     ) |
10438       sed "s/^/$as_me: WARNING:     /" >&2
10439     ;;
10440 esac
10441 echo "$as_me:$LINENO: checking for $ac_header" >&5
10442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10444   echo $ECHO_N "(cached) $ECHO_C" >&6
10445 else
10446   eval "$as_ac_Header=\$ac_header_preproc"
10447 fi
10448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10450
10451 fi
10452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10453   cat >>confdefs.h <<_ACEOF
10454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10455 _ACEOF
10456  HAVE_FT2BUILD_H=1
10457 fi
10458
10459 done
10460
10461 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
10462
10463 for ac_header in freetype/freetype.h
10464 do
10465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10467   echo "$as_me:$LINENO: checking for $ac_header" >&5
10468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10470   echo $ECHO_N "(cached) $ECHO_C" >&6
10471 fi
10472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10474 else
10475   # Is the header compilable?
10476 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h.  */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h.  */
10484 $ac_includes_default
10485 #include <$ac_header>
10486 _ACEOF
10487 rm -f conftest.$ac_objext
10488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10489   (eval $ac_compile) 2>conftest.er1
10490   ac_status=$?
10491   grep -v '^ *+' conftest.er1 >conftest.err
10492   rm -f conftest.er1
10493   cat conftest.err >&5
10494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495   (exit $ac_status); } &&
10496          { ac_try='test -z "$ac_c_werror_flag"
10497                          || test ! -s conftest.err'
10498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499   (eval $ac_try) 2>&5
10500   ac_status=$?
10501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502   (exit $ac_status); }; } &&
10503          { ac_try='test -s conftest.$ac_objext'
10504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505   (eval $ac_try) 2>&5
10506   ac_status=$?
10507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508   (exit $ac_status); }; }; then
10509   ac_header_compiler=yes
10510 else
10511   echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10513
10514 ac_header_compiler=no
10515 fi
10516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10518 echo "${ECHO_T}$ac_header_compiler" >&6
10519
10520 # Is the header present?
10521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10523 cat >conftest.$ac_ext <<_ACEOF
10524 /* confdefs.h.  */
10525 _ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h.  */
10529 #include <$ac_header>
10530 _ACEOF
10531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10532   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10533   ac_status=$?
10534   grep -v '^ *+' conftest.er1 >conftest.err
10535   rm -f conftest.er1
10536   cat conftest.err >&5
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } >/dev/null; then
10539   if test -s conftest.err; then
10540     ac_cpp_err=$ac_c_preproc_warn_flag
10541     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10542   else
10543     ac_cpp_err=
10544   fi
10545 else
10546   ac_cpp_err=yes
10547 fi
10548 if test -z "$ac_cpp_err"; then
10549   ac_header_preproc=yes
10550 else
10551   echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10553
10554   ac_header_preproc=no
10555 fi
10556 rm -f conftest.err conftest.$ac_ext
10557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10558 echo "${ECHO_T}$ac_header_preproc" >&6
10559
10560 # So?  What about this header?
10561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10562   yes:no: )
10563     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10567     ac_header_preproc=yes
10568     ;;
10569   no:yes:* )
10570     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10572     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10573 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10574     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10576     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10577 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10580     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10582     (
10583       cat <<\_ASBOX
10584 ## ------------------------------------------ ##
10585 ## Report this to the AC_PACKAGE_NAME lists.  ##
10586 ## ------------------------------------------ ##
10587 _ASBOX
10588     ) |
10589       sed "s/^/$as_me: WARNING:     /" >&2
10590     ;;
10591 esac
10592 echo "$as_me:$LINENO: checking for $ac_header" >&5
10593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10595   echo $ECHO_N "(cached) $ECHO_C" >&6
10596 else
10597   eval "$as_ac_Header=\$ac_header_preproc"
10598 fi
10599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10601
10602 fi
10603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10604   cat >>confdefs.h <<_ACEOF
10605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10606 _ACEOF
10607  HAVE_FREETYPE_FREETYPE_H=1
10608 fi
10609
10610 done
10611
10612 fi
10613
10614 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
10615         "x${FREETYPE_CONFIG}" '!=' "x";then
10616     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
10617         HAVE_FREETYPE=1
10618     fi
10619     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
10620         HAVE_FREETYPE=1
10621     fi
10622 fi
10623
10624 if test "x${HAVE_FREETYPE}" = "x1"; then
10625     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10626         LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
10627     else
10628         LIBS="$LIBS -lfreetype"
10629     fi
10630
10631     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
10632         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
10633     fi
10634
10635     echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
10636 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
10637
10638     cat > conftest.c << EOF
10639 $HAVE_FT2BUILD_H_DEFINE
10640
10641 #ifdef HAVE_FT2BUILD_H
10642 #include <ft2build.h>
10643 #include FT_FREETYPE_H
10644 #include FT_GLYPH_H
10645 #include FT_SIZES_H
10646 #include FT_SFNT_NAMES_H
10647 #include FT_TRUETYPE_IDS_H
10648 #include FT_OUTLINE_H
10649 #else
10650 #include <freetype/freetype.h>
10651 #include <freetype/ftglyph.h>
10652 #include <freetype/ftsizes.h>
10653 #include <freetype/ftsnames.h>
10654 #include <freetype/ttnameid.h>
10655 #include <freetype/ftoutln.h>
10656 #endif
10657
10658 int main()
10659 {
10660     FT_Library ftlibrary;
10661     FT_Face face;
10662     FT_Error error;
10663     FT_ULong charcode;
10664     FT_UInt gindex;
10665     FT_Glyph glyph;
10666     FT_BBox bbox;
10667     FT_Matrix matrix;
10668     FT_UInt i;
10669     char* name = 0;
10670     char italic, bold;
10671
10672     FT_Init_FreeType(&ftlibrary);
10673     FT_New_Face(ftlibrary, "filename", 0, &face);
10674     i = face->num_glyphs - 1;
10675     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
10676     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
10677     FT_Get_Postscript_Name(face);
10678     FT_Get_Char_Index(face, 33);
10679     FT_Get_First_Char(face, &i);
10680     FT_Get_Next_Char(face, 33, &i);
10681     if(FT_HAS_GLYPH_NAMES(face)) {
10682         FT_Get_Glyph_Name(face, 33, name, 127);
10683     }
10684     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
10685     FT_Get_Glyph(face->glyph, &glyph);
10686     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
10687     FT_Done_Glyph(glyph);
10688     FT_Done_Face(face);
10689     FT_Done_FreeType(ftlibrary);
10690     return 0;
10691 }
10692 EOF
10693
10694     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10695     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10696         echo "$as_me:$LINENO: result: yes" >&5
10697 echo "${ECHO_T}yes" >&6
10698         cat >>confdefs.h <<_ACEOF
10699 #define HAVE_FREETYPE 1
10700 _ACEOF
10701
10702         cat >>confdefs.h <<_ACEOF
10703 #define USE_FREETYPE 1
10704 _ACEOF
10705   # for ttf2tp1
10706     else
10707         echo "configure: failed program was:" >&5
10708         cat conftest.c >&5
10709         HAVE_FREETYPE=0
10710         echo "$as_me:$LINENO: result: no" >&5
10711 echo "${ECHO_T}no" >&6
10712     fi
10713     rm -f conftest*
10714 fi
10715
10716 # if the above didn't work out, reset all changes to the compiler variables.
10717 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
10718     CPPFLAGS=$OLDCPPFLAGS
10719     LIBS=$OLDLIBS
10720 fi
10721
10722
10723
10724 OLDCPPFLAGS="${CPPFLAGS}"
10725 OLDLIBS="${LIBS}"
10726
10727 if test -d /usr/include/fontconfig; then
10728     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
10729 fi
10730
10731 echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
10732 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
10733 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
10734   echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736   ac_check_lib_save_LIBS=$LIBS
10737 LIBS="-lfontconfig  $LIBS"
10738 cat >conftest.$ac_ext <<_ACEOF
10739 /* confdefs.h.  */
10740 _ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h.  */
10744
10745 /* Override any gcc2 internal prototype to avoid an error.  */
10746 #ifdef __cplusplus
10747 extern "C"
10748 #endif
10749 /* We use char because int might match the return type of a gcc2
10750    builtin and then its argument prototype would still apply.  */
10751 char FcInit ();
10752 int
10753 main ()
10754 {
10755 FcInit ();
10756   ;
10757   return 0;
10758 }
10759 _ACEOF
10760 rm -f conftest.$ac_objext conftest$ac_exeext
10761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10762   (eval $ac_link) 2>conftest.er1
10763   ac_status=$?
10764   grep -v '^ *+' conftest.er1 >conftest.err
10765   rm -f conftest.er1
10766   cat conftest.err >&5
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); } &&
10769          { ac_try='test -z "$ac_c_werror_flag"
10770                          || test ! -s conftest.err'
10771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772   (eval $ac_try) 2>&5
10773   ac_status=$?
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); }; } &&
10776          { ac_try='test -s conftest$ac_exeext'
10777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778   (eval $ac_try) 2>&5
10779   ac_status=$?
10780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781   (exit $ac_status); }; }; then
10782   ac_cv_lib_fontconfig_FcInit=yes
10783 else
10784   echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10786
10787 ac_cv_lib_fontconfig_FcInit=no
10788 fi
10789 rm -f conftest.err conftest.$ac_objext \
10790       conftest$ac_exeext conftest.$ac_ext
10791 LIBS=$ac_check_lib_save_LIBS
10792 fi
10793 echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
10794 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
10795 if test $ac_cv_lib_fontconfig_FcInit = yes; then
10796   HAVE_LIB_FONTCONFIG=1
10797 fi
10798
10799
10800 for ac_header in fontconfig.h
10801 do
10802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
10809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10811 else
10812   # Is the header compilable?
10813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10815 cat >conftest.$ac_ext <<_ACEOF
10816 /* confdefs.h.  */
10817 _ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h.  */
10821 $ac_includes_default
10822 #include <$ac_header>
10823 _ACEOF
10824 rm -f conftest.$ac_objext
10825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10826   (eval $ac_compile) 2>conftest.er1
10827   ac_status=$?
10828   grep -v '^ *+' conftest.er1 >conftest.err
10829   rm -f conftest.er1
10830   cat conftest.err >&5
10831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832   (exit $ac_status); } &&
10833          { ac_try='test -z "$ac_c_werror_flag"
10834                          || test ! -s conftest.err'
10835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836   (eval $ac_try) 2>&5
10837   ac_status=$?
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); }; } &&
10840          { ac_try='test -s conftest.$ac_objext'
10841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842   (eval $ac_try) 2>&5
10843   ac_status=$?
10844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845   (exit $ac_status); }; }; then
10846   ac_header_compiler=yes
10847 else
10848   echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10850
10851 ac_header_compiler=no
10852 fi
10853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10855 echo "${ECHO_T}$ac_header_compiler" >&6
10856
10857 # Is the header present?
10858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10860 cat >conftest.$ac_ext <<_ACEOF
10861 /* confdefs.h.  */
10862 _ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h.  */
10866 #include <$ac_header>
10867 _ACEOF
10868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10869   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10870   ac_status=$?
10871   grep -v '^ *+' conftest.er1 >conftest.err
10872   rm -f conftest.er1
10873   cat conftest.err >&5
10874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875   (exit $ac_status); } >/dev/null; then
10876   if test -s conftest.err; then
10877     ac_cpp_err=$ac_c_preproc_warn_flag
10878     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10879   else
10880     ac_cpp_err=
10881   fi
10882 else
10883   ac_cpp_err=yes
10884 fi
10885 if test -z "$ac_cpp_err"; then
10886   ac_header_preproc=yes
10887 else
10888   echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10890
10891   ac_header_preproc=no
10892 fi
10893 rm -f conftest.err conftest.$ac_ext
10894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10895 echo "${ECHO_T}$ac_header_preproc" >&6
10896
10897 # So?  What about this header?
10898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10899   yes:no: )
10900     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10904     ac_header_preproc=yes
10905     ;;
10906   no:yes:* )
10907     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10909     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10910 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10911     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10913     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10914 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10917     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10919     (
10920       cat <<\_ASBOX
10921 ## ------------------------------------------ ##
10922 ## Report this to the AC_PACKAGE_NAME lists.  ##
10923 ## ------------------------------------------ ##
10924 _ASBOX
10925     ) |
10926       sed "s/^/$as_me: WARNING:     /" >&2
10927     ;;
10928 esac
10929 echo "$as_me:$LINENO: checking for $ac_header" >&5
10930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10932   echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10934   eval "$as_ac_Header=\$ac_header_preproc"
10935 fi
10936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10938
10939 fi
10940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10941   cat >>confdefs.h <<_ACEOF
10942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10943 _ACEOF
10944  HAVE_FONTCONFIG_H=1
10945 fi
10946
10947 done
10948
10949
10950 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
10951 if test "x${HAVE_FONTCONFIG_H}" != "x";then
10952     HAVE_FONTCONFIG=1
10953 fi
10954 fi
10955
10956 if test "x${HAVE_FONTCONFIG}" = "x1"; then
10957     LIBS="$LIBS -lfontconfig"
10958 echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
10959 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6
10960
10961 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
10962     #move freetype library to the end of libraries, otherwise fontconfig
10963     #won't compile.
10964     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
10965 fi
10966
10967 cat > conftest.c << EOF
10968 #include <fontconfig.h>
10969
10970 int main()
10971 {
10972     FcPattern *pattern, *match;
10973     FcResult result;
10974     FcChar8 *v;
10975     FcInit();
10976     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
10977     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
10978     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
10979     FcConfigSubstitute(0, pattern, FcMatchPattern);
10980     FcDefaultSubstitute(pattern);
10981     match = FcFontMatch(0, pattern, &result);
10982     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
10983     FcPatternPrint(pattern);
10984     FcPatternDestroy(pattern);
10985     FcPatternDestroy(match);
10986     return 0;
10987 }
10988 EOF
10989
10990     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10991     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10992         echo "$as_me:$LINENO: result: yes" >&5
10993 echo "${ECHO_T}yes" >&6
10994         cat >>confdefs.h <<_ACEOF
10995 #define HAVE_FONTCONFIG 1
10996 _ACEOF
10997
10998     else
10999         echo "configure: failed program was:" >&5
11000         cat conftest.c >&5
11001         HAVE_FONTCONFIG=0
11002         echo "$as_me:$LINENO: result: no" >&5
11003 echo "${ECHO_T}no" >&6
11004     fi
11005     rm -f conftest*
11006 fi
11007
11008 # if the above didn't work out, reset all changes to the compiler variables.
11009 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
11010     CPPFLAGS=$OLDCPPFLAGS
11011     LIBS=$OLDLIBS
11012 fi
11013
11014
11015 # ------------------------------------------------------------------
11016
11017 lame_objects=
11018 lame_makefile=
11019 if test "x${DISABLE_LAME}" = "xtrue"; then
11020     echo "*" Disabling lame support...
11021 else
11022     # old lame code at lib/lame
11023     if test -f lib/lame/Makefile.in; then
11024         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)"
11025         lame_makefile="lib/lame/Makefile"
11026         CPPFLAGS="$CPPFLAGS -Ilame"
11027         cat >>confdefs.h <<_ACEOF
11028 #define HAVE_LAME 1
11029 _ACEOF
11030
11031     else
11032         if test -d /usr/include/lame; then
11033             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
11034         else
11035             if test -d /usr/local/include/lame; then
11036                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
11037             fi
11038         fi
11039
11040 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
11041 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
11042 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
11043   echo $ECHO_N "(cached) $ECHO_C" >&6
11044 else
11045   ac_check_lib_save_LIBS=$LIBS
11046 LIBS="-lmp3lame  $LIBS"
11047 cat >conftest.$ac_ext <<_ACEOF
11048 /* confdefs.h.  */
11049 _ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h.  */
11053
11054 /* Override any gcc2 internal prototype to avoid an error.  */
11055 #ifdef __cplusplus
11056 extern "C"
11057 #endif
11058 /* We use char because int might match the return type of a gcc2
11059    builtin and then its argument prototype would still apply.  */
11060 char lame_init ();
11061 int
11062 main ()
11063 {
11064 lame_init ();
11065   ;
11066   return 0;
11067 }
11068 _ACEOF
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11071   (eval $ac_link) 2>conftest.er1
11072   ac_status=$?
11073   grep -v '^ *+' conftest.er1 >conftest.err
11074   rm -f conftest.er1
11075   cat conftest.err >&5
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); } &&
11078          { ac_try='test -z "$ac_c_werror_flag"
11079                          || test ! -s conftest.err'
11080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081   (eval $ac_try) 2>&5
11082   ac_status=$?
11083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084   (exit $ac_status); }; } &&
11085          { ac_try='test -s conftest$ac_exeext'
11086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087   (eval $ac_try) 2>&5
11088   ac_status=$?
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); }; }; then
11091   ac_cv_lib_mp3lame_lame_init=yes
11092 else
11093   echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11095
11096 ac_cv_lib_mp3lame_lame_init=no
11097 fi
11098 rm -f conftest.err conftest.$ac_objext \
11099       conftest$ac_exeext conftest.$ac_ext
11100 LIBS=$ac_check_lib_save_LIBS
11101 fi
11102 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
11103 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
11104 if test $ac_cv_lib_mp3lame_lame_init = yes; then
11105   cat >>confdefs.h <<_ACEOF
11106 #define HAVE_LIBMP3LAME 1
11107 _ACEOF
11108
11109   LIBS="-lmp3lame $LIBS"
11110
11111 else
11112   NO_LIBMP3LAME=1
11113 fi
11114
11115
11116 for ac_header in lame.h
11117 do
11118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
11125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11127 else
11128   # Is the header compilable?
11129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11131 cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h.  */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h.  */
11137 $ac_includes_default
11138 #include <$ac_header>
11139 _ACEOF
11140 rm -f conftest.$ac_objext
11141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11142   (eval $ac_compile) 2>conftest.er1
11143   ac_status=$?
11144   grep -v '^ *+' conftest.er1 >conftest.err
11145   rm -f conftest.er1
11146   cat conftest.err >&5
11147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148   (exit $ac_status); } &&
11149          { ac_try='test -z "$ac_c_werror_flag"
11150                          || test ! -s conftest.err'
11151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152   (eval $ac_try) 2>&5
11153   ac_status=$?
11154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155   (exit $ac_status); }; } &&
11156          { ac_try='test -s conftest.$ac_objext'
11157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158   (eval $ac_try) 2>&5
11159   ac_status=$?
11160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161   (exit $ac_status); }; }; then
11162   ac_header_compiler=yes
11163 else
11164   echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11166
11167 ac_header_compiler=no
11168 fi
11169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11171 echo "${ECHO_T}$ac_header_compiler" >&6
11172
11173 # Is the header present?
11174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11176 cat >conftest.$ac_ext <<_ACEOF
11177 /* confdefs.h.  */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h.  */
11182 #include <$ac_header>
11183 _ACEOF
11184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11185   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11186   ac_status=$?
11187   grep -v '^ *+' conftest.er1 >conftest.err
11188   rm -f conftest.er1
11189   cat conftest.err >&5
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); } >/dev/null; then
11192   if test -s conftest.err; then
11193     ac_cpp_err=$ac_c_preproc_warn_flag
11194     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11195   else
11196     ac_cpp_err=
11197   fi
11198 else
11199   ac_cpp_err=yes
11200 fi
11201 if test -z "$ac_cpp_err"; then
11202   ac_header_preproc=yes
11203 else
11204   echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11206
11207   ac_header_preproc=no
11208 fi
11209 rm -f conftest.err conftest.$ac_ext
11210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11211 echo "${ECHO_T}$ac_header_preproc" >&6
11212
11213 # So?  What about this header?
11214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11215   yes:no: )
11216     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11220     ac_header_preproc=yes
11221     ;;
11222   no:yes:* )
11223     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11225     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11226 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11227     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11229     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11230 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11233     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11235     (
11236       cat <<\_ASBOX
11237 ## ------------------------------------------ ##
11238 ## Report this to the AC_PACKAGE_NAME lists.  ##
11239 ## ------------------------------------------ ##
11240 _ASBOX
11241     ) |
11242       sed "s/^/$as_me: WARNING:     /" >&2
11243     ;;
11244 esac
11245 echo "$as_me:$LINENO: checking for $ac_header" >&5
11246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11248   echo $ECHO_N "(cached) $ECHO_C" >&6
11249 else
11250   eval "$as_ac_Header=\$ac_header_preproc"
11251 fi
11252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11254
11255 fi
11256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11257   cat >>confdefs.h <<_ACEOF
11258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11259 _ACEOF
11260
11261 fi
11262
11263 done
11264
11265         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
11266             cat >>confdefs.h <<_ACEOF
11267 #define HAVE_LAME 1
11268 _ACEOF
11269
11270         fi
11271     fi
11272 fi
11273
11274
11275 # ------------------------------------------------------------------
11276
11277
11278
11279 for ac_prog in avifile-config
11280 do
11281   # Extract the first word of "$ac_prog", so it can be a program name with args.
11282 set dummy $ac_prog; ac_word=$2
11283 echo "$as_me:$LINENO: checking for $ac_word" >&5
11284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11285 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
11286   echo $ECHO_N "(cached) $ECHO_C" >&6
11287 else
11288   if test -n "$AVIFILE_CONFIG"; then
11289   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
11290 else
11291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292 for as_dir in $PATH
11293 do
11294   IFS=$as_save_IFS
11295   test -z "$as_dir" && as_dir=.
11296   for ac_exec_ext in '' $ac_executable_extensions; do
11297   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11298     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
11299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11300     break 2
11301   fi
11302 done
11303 done
11304
11305 fi
11306 fi
11307 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
11308 if test -n "$AVIFILE_CONFIG"; then
11309   echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
11310 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
11311 else
11312   echo "$as_me:$LINENO: result: no" >&5
11313 echo "${ECHO_T}no" >&6
11314 fi
11315
11316   test -n "$AVIFILE_CONFIG" && break
11317 done
11318
11319
11320 if test "x$AVIFILE_CONFIG" '!=' "x";then
11321     OLDCPPFLAGS="$CPPFLAGS"
11322     # temporarily add avifile paths to CPPFLAGS...
11323     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
11324
11325
11326 for ac_header in avifile/version.h version.h
11327 do
11328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
11335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11337 else
11338   # Is the header compilable?
11339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11341 cat >conftest.$ac_ext <<_ACEOF
11342 /* confdefs.h.  */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h.  */
11347 $ac_includes_default
11348 #include <$ac_header>
11349 _ACEOF
11350 rm -f conftest.$ac_objext
11351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11352   (eval $ac_compile) 2>conftest.er1
11353   ac_status=$?
11354   grep -v '^ *+' conftest.er1 >conftest.err
11355   rm -f conftest.er1
11356   cat conftest.err >&5
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); } &&
11359          { ac_try='test -z "$ac_c_werror_flag"
11360                          || test ! -s conftest.err'
11361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362   (eval $ac_try) 2>&5
11363   ac_status=$?
11364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365   (exit $ac_status); }; } &&
11366          { ac_try='test -s conftest.$ac_objext'
11367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368   (eval $ac_try) 2>&5
11369   ac_status=$?
11370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   (exit $ac_status); }; }; then
11372   ac_header_compiler=yes
11373 else
11374   echo "$as_me: failed program was:" >&5
11375 sed 's/^/| /' conftest.$ac_ext >&5
11376
11377 ac_header_compiler=no
11378 fi
11379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11381 echo "${ECHO_T}$ac_header_compiler" >&6
11382
11383 # Is the header present?
11384 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11386 cat >conftest.$ac_ext <<_ACEOF
11387 /* confdefs.h.  */
11388 _ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h.  */
11392 #include <$ac_header>
11393 _ACEOF
11394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11395   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11396   ac_status=$?
11397   grep -v '^ *+' conftest.er1 >conftest.err
11398   rm -f conftest.er1
11399   cat conftest.err >&5
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); } >/dev/null; then
11402   if test -s conftest.err; then
11403     ac_cpp_err=$ac_c_preproc_warn_flag
11404     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11405   else
11406     ac_cpp_err=
11407   fi
11408 else
11409   ac_cpp_err=yes
11410 fi
11411 if test -z "$ac_cpp_err"; then
11412   ac_header_preproc=yes
11413 else
11414   echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11416
11417   ac_header_preproc=no
11418 fi
11419 rm -f conftest.err conftest.$ac_ext
11420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11421 echo "${ECHO_T}$ac_header_preproc" >&6
11422
11423 # So?  What about this header?
11424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11425   yes:no: )
11426     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11430     ac_header_preproc=yes
11431     ;;
11432   no:yes:* )
11433     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11435     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11436 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11437     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11439     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11440 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11443     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11445     (
11446       cat <<\_ASBOX
11447 ## ------------------------------------------ ##
11448 ## Report this to the AC_PACKAGE_NAME lists.  ##
11449 ## ------------------------------------------ ##
11450 _ASBOX
11451     ) |
11452       sed "s/^/$as_me: WARNING:     /" >&2
11453     ;;
11454 esac
11455 echo "$as_me:$LINENO: checking for $ac_header" >&5
11456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11458   echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460   eval "$as_ac_Header=\$ac_header_preproc"
11461 fi
11462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11464
11465 fi
11466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11467   cat >>confdefs.h <<_ACEOF
11468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11469 _ACEOF
11470
11471 fi
11472
11473 done
11474
11475     # ... and reset
11476     CPPFLAGS="$OLDCPPFLAGS"
11477 fi
11478
11479 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
11480 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
11481
11482 if test "x${ac_cv_header_version_h}" '=' "xyes";then
11483     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
11484 fi
11485 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
11486     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
11487 fi
11488
11489 cat > conftest.cpp << EOF
11490
11491 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
11492 // so we have to introduce them this way
11493 $HAVE_VERSION_H_DEFINE
11494 $HAVE_AVIFILE_VERSION_H_DEFINE
11495
11496 #ifdef HAVE_VERSION_H
11497   #include <version.h>
11498 #endif
11499 #ifdef HAVE_AVIFILE_VERSION_H
11500   #include <avifile/version.h>
11501 #endif
11502
11503 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
11504    #include <avifile.h>
11505    #include <aviplay.h>
11506    #include <fourcc.h>
11507    #include <creators.h>
11508    #include <StreamInfo.h>
11509    #define VERSION6
11510 #else
11511    #include <avifile.h>
11512    #include <aviplay.h>
11513    #include <aviutil.h>
11514    #define Width width
11515    #define Height height
11516    #define Data data
11517    #define Bpp bpp
11518 #endif
11519
11520 void test()
11521 {
11522   IAviReadFile* player;
11523   IAviReadStream* astream;
11524   IAviReadStream* vstream;
11525   player = CreateIAviReadFile(0);
11526   astream = player->GetStream(0, AviStream::Audio);
11527   vstream = player->GetStream(0, AviStream::Video);
11528   vstream -> StartStreaming();
11529   astream -> StartStreaming();
11530 #ifndef VERSION6
11531   MainAVIHeader head;
11532   player->GetFileHeader(&head);
11533   head.dwMicroSecPerFrame;
11534   head.dwTotalFrames;
11535   head.dwStreams;
11536   head.dwWidth;
11537   head.dwHeight;
11538   head.dwMicroSecPerFrame;
11539   astream->GetEndPos(),
11540   astream->GetEndTime());
11541   player->StreamCount();
11542 #else
11543   StreamInfo*audioinfo;
11544   StreamInfo*videoinfo;
11545   audioinfo = astream->GetStreamInfo();
11546   videoinfo = vstream->GetStreamInfo();
11547   videoinfo->GetVideoWidth();
11548   videoinfo->GetVideoHeight();
11549   audioinfo->GetAudioSamplesPerSec();
11550   videoinfo->GetFps();
11551 #endif
11552   CImage*img = vstream->GetFrame();
11553   img->ToRGB();
11554   img->Data();
11555   img->Bpp();
11556   img->Width();
11557   img->Height();
11558   WAVEFORMATEX wave;
11559   astream->GetAudioFormatInfo(&wave,0);
11560   uint_t a,b;
11561   astream->ReadFrames(0,0,0,a,b);
11562 }
11563 int main (int argc, char*argv)
11564 {
11565     return 0;
11566 }
11567 EOF
11568
11569 if test "x$AVIFILE_CONFIG" '!=' "x";then
11570     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
11571     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
11572     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
11573     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
11574       echo "$as_me:$LINENO: result: yes" >&5
11575 echo "${ECHO_T}yes" >&6
11576       AVIFILE=true
11577       export AVIFILE
11578       cat >>confdefs.h <<_ACEOF
11579 #define AVIFILE true
11580 _ACEOF
11581
11582     else
11583       echo "configure: failed program was:" >&5
11584       cat conftest.cpp >&5
11585       echo "$as_me:$LINENO: result: no" >&5
11586 echo "${ECHO_T}no" >&6
11587     fi
11588 else
11589     echo "$as_me:$LINENO: result: no" >&5
11590 echo "${ECHO_T}no" >&6
11591 fi
11592 rm -f conftest*
11593
11594 if test "x${AVIFILE}" = "xtrue"; then
11595     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
11596     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
11597     cat >>confdefs.h <<_ACEOF
11598 #define HAVE_AVIFILE 1
11599 _ACEOF
11600
11601 fi
11602
11603 if test "x${WIN32}" != "x"; then
11604     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
11605     #if test "x${AVIFIL32}" != "x"; then
11606     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11607     #fi
11608     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11609     AVIFIL32=true
11610 fi
11611
11612
11613
11614 # ------------------------------------------------------------------
11615
11616 if test "x${UNCOMPRESS}" = "xgzip"; then
11617     cat >>confdefs.h <<_ACEOF
11618 #define USE_GZIP 1
11619 _ACEOF
11620
11621 fi
11622
11623
11624 # ------------------------------------------------------------------
11625
11626
11627 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
11628 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
11629
11630 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
11631     PY_VERSION=unknown
11632 else
11633     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
11634         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
11635     fi
11636     # iterate through version 2.2 to 2.4
11637     for v in 2 3 4; do
11638         # Linux
11639         if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
11640             PY_VERSION=2.$v
11641             PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
11642             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
11643         # Mac OS X
11644         elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
11645             #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
11646             PY_VERSION=2.$v
11647             PYTHON_LIB="-framework Python"
11648             if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
11649                 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
11650             else
11651                 PYTHON_LIB2="$PYTHON_LIB"
11652             fi
11653             PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
11654         # Mac OS X [Fink]:
11655         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
11656                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
11657                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
11658                   ")" \
11659                -a -f "/sw/include/python2.$v/Python.h" \
11660                -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
11661             PY_VERSION=2.$v
11662             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
11663             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
11664         fi
11665     done
11666 fi
11667
11668 if test "x$PY_VERSION" "!=" "x"; then
11669     echo "$as_me:$LINENO: result: $PY_VERSION" >&5
11670 echo "${ECHO_T}$PY_VERSION" >&6
11671     export PYTHON_INCLUDES PYTHON_LIB
11672
11673
11674     echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
11675 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
11676
11677     cat > conftest.c << EOF
11678 #include <Python.h>
11679 #include <Imaging.h>
11680
11681 int main()
11682 {
11683     int ret;
11684     ret = Py_Main(0, 0);
11685     int x; // check also for gcc 2.95.x incompatibilities
11686     return ret;
11687 }
11688 EOF
11689     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
11690     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11691         echo "$as_me:$LINENO: result: yes" >&5
11692 echo "${ECHO_T}yes" >&6
11693         PYTHON_OK=yes
11694     else
11695         ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
11696         if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11697             echo "$as_me:$LINENO: result: yes" >&5
11698 echo "${ECHO_T}yes" >&6
11699             PYTHON_LIB="${PYTHON_LIB2}"
11700             PYTHON_OK=yes
11701         else
11702             echo "configure: failed program was:" >&5
11703             cat conftest.c >&5
11704             echo "$as_me:$LINENO: result: no" >&5
11705 echo "${ECHO_T}no" >&6
11706         fi
11707     fi
11708     rm -f conftest*
11709 else
11710     echo "$as_me:$LINENO: result: nope" >&5
11711 echo "${ECHO_T}nope" >&6
11712 fi
11713
11714
11715 if test "x$PYTHON_OK" '!=' "xyes";then
11716     echo all install uninstall clean: > lib/python/Makefile
11717     # fail silently- the most users won't have any need for the
11718     # python interface anyway
11719 else
11720     pythonrfxswf="lib/python/Makefile"
11721 fi
11722
11723 # ------------------------------------------------------------------
11724
11725 echo "$as_me:$LINENO: checking for missing libraries" >&5
11726 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
11727
11728 if test "x$ZLIBMISSING" = "xtrue";then
11729     MISSINGLIBS="${MISSINGLIBS} zlib"
11730     DISABLEPNG2SWF=true
11731     PARTIAL=true
11732 fi
11733 if test "x$JPEGLIBMISSING" = "xtrue";then
11734     MISSINGLIBS="${MISSINGLIBS} jpeglib"
11735     DISABLEPDF2SWF=true
11736     DISABLEJPEG2SWF=true
11737     PARTIAL=true
11738 fi
11739 if test "x$T1LIBMISSING" = "xtrue";then
11740     MISSINGLIBS="${MISSINGLIBS} t1lib"
11741 fi
11742 if test "x$UNGIFMISSING" = "xtrue";then
11743     DISABLEGIF2SWF=true
11744     MISSINGLIBS="${MISSINGLIBS} ungif"
11745     PARTIAL=true
11746 fi
11747
11748 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
11749     DISABLEPDF2SWF=true;
11750     DISABLEJPEG2SWF=true;
11751     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
11752     PARTIAL=true
11753 fi
11754 if test "x$HAVE_FREETYPE" '!=' "x1"; then
11755     DISABLEPDF2SWF=true;
11756     MISSINGLIBS="${MISSINGLIBS} freetype"
11757     PARTIAL=true
11758 fi
11759 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
11760     MISSINGLIBS="${MISSINGLIBS} t1lib.h"
11761 fi
11762 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
11763     DISABLEGIF2SWF=true
11764     MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
11765     PARTIAL=true
11766 fi
11767 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
11768     DISABLEPNG2SWF=true;
11769     MISSINGLIBS="${MISSINGLIBS} zlib.h"
11770     PARTIAL=true
11771 fi
11772 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11773     MISSINGLIBS="${MISSINGLIBS} avifile"
11774     PARTIAL=true
11775 fi
11776
11777 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11778 echo "${ECHO_T}${MISSINGLIBS}" >&6
11779
11780 # ------------------------------------------------------------------
11781
11782 if test "x${MISSINGLIBS}" '!=' "x"; then
11783   echo "***************************************************"
11784   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11785 fi
11786
11787 avi2swf="avi2swf/Makefile"
11788 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11789  echo "* Disabling avi2swf tool..."
11790  echo all install uninstall clean: > avi2swf/Makefile
11791  avi2swf=
11792 fi
11793
11794 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
11795 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11796   echo "* Disabling pdf2swf tool..."
11797   rm -f pdf2swf/Makefile
11798   echo all install uninstall clean: > pdf2swf/Makefile
11799   pdf2swf_makefile=""
11800 fi
11801
11802 if test "x${ZLIBMISSING}" = "xtrue"; then
11803   echo
11804   echo "* Warning! Without zlib, you will not be able to read"
11805   echo "* or write compressed Flash MX files!"
11806 fi
11807
11808 JPEG2SWF='jpeg2swf$(E)'
11809 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11810   echo "* Disabling jpeg2swf tool..."
11811   JPEG2SWF=
11812 fi
11813 export JPEG2SWF
11814
11815
11816 GIF2SWF='gif2swf$(E)'
11817 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
11818   echo "* Disabling gif2swf tool..."
11819   GIF2SWF=
11820 fi
11821 export GIF2SWF
11822
11823
11824 PNG2SWF='png2swf$(E)'
11825 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11826   echo "* Disabling png2swf tool..."
11827   PNG2SWF=
11828 fi
11829 export PNG2SWF
11830
11831
11832 if test "x${MISSINGLIBS}" '!=' "x"; then
11833   if test "x${PARTIAL}" '=' "x"; then
11834     echo "* (never mind)"
11835   fi
11836   echo "***************************************************"
11837 fi
11838
11839 # ------------------------------------------------------------------
11840
11841 if test -f "release.in"; then release_in="./release"; fi
11842 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile"
11843
11844           ac_config_files="$ac_config_files ${FILES}"
11845
11846 cat >confcache <<\_ACEOF
11847 # This file is a shell script that caches the results of configure
11848 # tests run on this system so they can be shared between configure
11849 # scripts and configure runs, see configure's option --config-cache.
11850 # It is not useful on other systems.  If it contains results you don't
11851 # want to keep, you may remove or edit it.
11852 #
11853 # config.status only pays attention to the cache file if you give it
11854 # the --recheck option to rerun configure.
11855 #
11856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11858 # following values.
11859
11860 _ACEOF
11861
11862 # The following way of writing the cache mishandles newlines in values,
11863 # but we know of no workaround that is simple, portable, and efficient.
11864 # So, don't put newlines in cache variables' values.
11865 # Ultrix sh set writes to stderr and can't be redirected directly,
11866 # and sets the high bit in the cache file unless we assign to the vars.
11867 {
11868   (set) 2>&1 |
11869     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11870     *ac_space=\ *)
11871       # `set' does not quote correctly, so add quotes (double-quote
11872       # substitution turns \\\\ into \\, and sed turns \\ into \).
11873       sed -n \
11874         "s/'/'\\\\''/g;
11875           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11876       ;;
11877     *)
11878       # `set' quotes correctly as required by POSIX, so do not add quotes.
11879       sed -n \
11880         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11881       ;;
11882     esac;
11883 } |
11884   sed '
11885      t clear
11886      : clear
11887      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11888      t end
11889      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11890      : end' >>confcache
11891 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11892   if test -w $cache_file; then
11893     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11894     cat confcache >$cache_file
11895   else
11896     echo "not updating unwritable cache $cache_file"
11897   fi
11898 fi
11899 rm -f confcache
11900
11901 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11902 # Let make expand exec_prefix.
11903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11904
11905 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11906 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11907 # trailing colons and then remove the whole line if VPATH becomes empty
11908 # (actually we leave an empty line to preserve line numbers).
11909 if test "x$srcdir" = x.; then
11910   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11911 s/:*\$(srcdir):*/:/;
11912 s/:*\${srcdir}:*/:/;
11913 s/:*@srcdir@:*/:/;
11914 s/^\([^=]*=[     ]*\):*/\1/;
11915 s/:*$//;
11916 s/^[^=]*=[       ]*$//;
11917 }'
11918 fi
11919
11920 DEFS=-DHAVE_CONFIG_H
11921
11922 ac_libobjs=
11923 ac_ltlibobjs=
11924 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11925   # 1. Remove the extension, and $U if already installed.
11926   ac_i=`echo "$ac_i" |
11927          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11928   # 2. Add them.
11929   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11930   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11931 done
11932 LIBOBJS=$ac_libobjs
11933
11934 LTLIBOBJS=$ac_ltlibobjs
11935
11936
11937
11938 : ${CONFIG_STATUS=./config.status}
11939 ac_clean_files_save=$ac_clean_files
11940 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11941 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11942 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11943 cat >$CONFIG_STATUS <<_ACEOF
11944 #! $SHELL
11945 # Generated by $as_me.
11946 # Run this file to recreate the current configuration.
11947 # Compiler output produced by configure, useful for debugging
11948 # configure, is in config.log if it exists.
11949
11950 debug=false
11951 ac_cs_recheck=false
11952 ac_cs_silent=false
11953 SHELL=\${CONFIG_SHELL-$SHELL}
11954 _ACEOF
11955
11956 cat >>$CONFIG_STATUS <<\_ACEOF
11957 ## --------------------- ##
11958 ## M4sh Initialization.  ##
11959 ## --------------------- ##
11960
11961 # Be Bourne compatible
11962 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11963   emulate sh
11964   NULLCMD=:
11965   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11966   # is contrary to our usage.  Disable this feature.
11967   alias -g '${1+"$@"}'='"$@"'
11968 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11969   set -o posix
11970 fi
11971 DUALCASE=1; export DUALCASE # for MKS sh
11972
11973 # Support unset when possible.
11974 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11975   as_unset=unset
11976 else
11977   as_unset=false
11978 fi
11979
11980
11981 # Work around bugs in pre-3.0 UWIN ksh.
11982 $as_unset ENV MAIL MAILPATH
11983 PS1='$ '
11984 PS2='> '
11985 PS4='+ '
11986
11987 # NLS nuisances.
11988 for as_var in \
11989   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11990   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11991   LC_TELEPHONE LC_TIME
11992 do
11993   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11994     eval $as_var=C; export $as_var
11995   else
11996     $as_unset $as_var
11997   fi
11998 done
11999
12000 # Required to use basename.
12001 if expr a : '\(a\)' >/dev/null 2>&1; then
12002   as_expr=expr
12003 else
12004   as_expr=false
12005 fi
12006
12007 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12008   as_basename=basename
12009 else
12010   as_basename=false
12011 fi
12012
12013
12014 # Name of the executable.
12015 as_me=`$as_basename "$0" ||
12016 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12017          X"$0" : 'X\(//\)$' \| \
12018          X"$0" : 'X\(/\)$' \| \
12019          .     : '\(.\)' 2>/dev/null ||
12020 echo X/"$0" |
12021     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12022           /^X\/\(\/\/\)$/{ s//\1/; q; }
12023           /^X\/\(\/\).*/{ s//\1/; q; }
12024           s/.*/./; q'`
12025
12026
12027 # PATH needs CR, and LINENO needs CR and PATH.
12028 # Avoid depending upon Character Ranges.
12029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12032 as_cr_digits='0123456789'
12033 as_cr_alnum=$as_cr_Letters$as_cr_digits
12034
12035 # The user is always right.
12036 if test "${PATH_SEPARATOR+set}" != set; then
12037   echo "#! /bin/sh" >conf$$.sh
12038   echo  "exit 0"   >>conf$$.sh
12039   chmod +x conf$$.sh
12040   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12041     PATH_SEPARATOR=';'
12042   else
12043     PATH_SEPARATOR=:
12044   fi
12045   rm -f conf$$.sh
12046 fi
12047
12048
12049   as_lineno_1=$LINENO
12050   as_lineno_2=$LINENO
12051   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12052   test "x$as_lineno_1" != "x$as_lineno_2" &&
12053   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12054   # Find who we are.  Look in the path if we contain no path at all
12055   # relative or not.
12056   case $0 in
12057     *[\\/]* ) as_myself=$0 ;;
12058     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12060 do
12061   IFS=$as_save_IFS
12062   test -z "$as_dir" && as_dir=.
12063   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12064 done
12065
12066        ;;
12067   esac
12068   # We did not find ourselves, most probably we were run as `sh COMMAND'
12069   # in which case we are not to be found in the path.
12070   if test "x$as_myself" = x; then
12071     as_myself=$0
12072   fi
12073   if test ! -f "$as_myself"; then
12074     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12075 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12076    { (exit 1); exit 1; }; }
12077   fi
12078   case $CONFIG_SHELL in
12079   '')
12080     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12082 do
12083   IFS=$as_save_IFS
12084   test -z "$as_dir" && as_dir=.
12085   for as_base in sh bash ksh sh5; do
12086          case $as_dir in
12087          /*)
12088            if ("$as_dir/$as_base" -c '
12089   as_lineno_1=$LINENO
12090   as_lineno_2=$LINENO
12091   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12092   test "x$as_lineno_1" != "x$as_lineno_2" &&
12093   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12094              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12095              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12096              CONFIG_SHELL=$as_dir/$as_base
12097              export CONFIG_SHELL
12098              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12099            fi;;
12100          esac
12101        done
12102 done
12103 ;;
12104   esac
12105
12106   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12107   # uniformly replaced by the line number.  The first 'sed' inserts a
12108   # line-number line before each line; the second 'sed' does the real
12109   # work.  The second script uses 'N' to pair each line-number line
12110   # with the numbered line, and appends trailing '-' during
12111   # substitution so that $LINENO is not a special case at line end.
12112   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12113   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12114   sed '=' <$as_myself |
12115     sed '
12116       N
12117       s,$,-,
12118       : loop
12119       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12120       t loop
12121       s,-$,,
12122       s,^['$as_cr_digits']*\n,,
12123     ' >$as_me.lineno &&
12124   chmod +x $as_me.lineno ||
12125     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12126 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12127    { (exit 1); exit 1; }; }
12128
12129   # Don't try to exec as it changes $[0], causing all sort of problems
12130   # (the dirname of $[0] is not the place where we might find the
12131   # original and so on.  Autoconf is especially sensible to this).
12132   . ./$as_me.lineno
12133   # Exit status is that of the last command.
12134   exit
12135 }
12136
12137
12138 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12139   *c*,-n*) ECHO_N= ECHO_C='
12140 ' ECHO_T='      ' ;;
12141   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12142   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12143 esac
12144
12145 if expr a : '\(a\)' >/dev/null 2>&1; then
12146   as_expr=expr
12147 else
12148   as_expr=false
12149 fi
12150
12151 rm -f conf$$ conf$$.exe conf$$.file
12152 echo >conf$$.file
12153 if ln -s conf$$.file conf$$ 2>/dev/null; then
12154   # We could just check for DJGPP; but this test a) works b) is more generic
12155   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12156   if test -f conf$$.exe; then
12157     # Don't use ln at all; we don't have any links
12158     as_ln_s='cp -p'
12159   else
12160     as_ln_s='ln -s'
12161   fi
12162 elif ln conf$$.file conf$$ 2>/dev/null; then
12163   as_ln_s=ln
12164 else
12165   as_ln_s='cp -p'
12166 fi
12167 rm -f conf$$ conf$$.exe conf$$.file
12168
12169 if mkdir -p . 2>/dev/null; then
12170   as_mkdir_p=:
12171 else
12172   test -d ./-p && rmdir ./-p
12173   as_mkdir_p=false
12174 fi
12175
12176 as_executable_p="test -f"
12177
12178 # Sed expression to map a string onto a valid CPP name.
12179 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12180
12181 # Sed expression to map a string onto a valid variable name.
12182 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12183
12184
12185 # IFS
12186 # We need space, tab and new line, in precisely that order.
12187 as_nl='
12188 '
12189 IFS="   $as_nl"
12190
12191 # CDPATH.
12192 $as_unset CDPATH
12193
12194 exec 6>&1
12195
12196 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12197 # report actual input values of CONFIG_FILES etc. instead of their
12198 # values after options handling.  Logging --version etc. is OK.
12199 exec 5>>config.log
12200 {
12201   echo
12202   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12203 ## Running $as_me. ##
12204 _ASBOX
12205 } >&5
12206 cat >&5 <<_CSEOF
12207
12208 This file was extended by $as_me, which was
12209 generated by GNU Autoconf 2.59.  Invocation command line was
12210
12211   CONFIG_FILES    = $CONFIG_FILES
12212   CONFIG_HEADERS  = $CONFIG_HEADERS
12213   CONFIG_LINKS    = $CONFIG_LINKS
12214   CONFIG_COMMANDS = $CONFIG_COMMANDS
12215   $ $0 $@
12216
12217 _CSEOF
12218 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12219 echo >&5
12220 _ACEOF
12221
12222 # Files that config.status was made for.
12223 if test -n "$ac_config_files"; then
12224   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12225 fi
12226
12227 if test -n "$ac_config_headers"; then
12228   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12229 fi
12230
12231 if test -n "$ac_config_links"; then
12232   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12233 fi
12234
12235 if test -n "$ac_config_commands"; then
12236   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12237 fi
12238
12239 cat >>$CONFIG_STATUS <<\_ACEOF
12240
12241 ac_cs_usage="\
12242 \`$as_me' instantiates files from templates according to the
12243 current configuration.
12244
12245 Usage: $0 [OPTIONS] [FILE]...
12246
12247   -h, --help       print this help, then exit
12248   -V, --version    print version number, then exit
12249   -q, --quiet      do not print progress messages
12250   -d, --debug      don't remove temporary files
12251       --recheck    update $as_me by reconfiguring in the same conditions
12252   --file=FILE[:TEMPLATE]
12253                    instantiate the configuration file FILE
12254   --header=FILE[:TEMPLATE]
12255                    instantiate the configuration header FILE
12256
12257 Configuration files:
12258 $config_files
12259
12260 Configuration headers:
12261 $config_headers
12262
12263 Report bugs to <bug-autoconf@gnu.org>."
12264 _ACEOF
12265
12266 cat >>$CONFIG_STATUS <<_ACEOF
12267 ac_cs_version="\\
12268 config.status
12269 configured by $0, generated by GNU Autoconf 2.59,
12270   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12271
12272 Copyright (C) 2003 Free Software Foundation, Inc.
12273 This config.status script is free software; the Free Software Foundation
12274 gives unlimited permission to copy, distribute and modify it."
12275 srcdir=$srcdir
12276 INSTALL="$INSTALL"
12277 _ACEOF
12278
12279 cat >>$CONFIG_STATUS <<\_ACEOF
12280 # If no file are specified by the user, then we need to provide default
12281 # value.  By we need to know if files were specified by the user.
12282 ac_need_defaults=:
12283 while test $# != 0
12284 do
12285   case $1 in
12286   --*=*)
12287     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12288     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12289     ac_shift=:
12290     ;;
12291   -*)
12292     ac_option=$1
12293     ac_optarg=$2
12294     ac_shift=shift
12295     ;;
12296   *) # This is not an option, so the user has probably given explicit
12297      # arguments.
12298      ac_option=$1
12299      ac_need_defaults=false;;
12300   esac
12301
12302   case $ac_option in
12303   # Handling of the options.
12304 _ACEOF
12305 cat >>$CONFIG_STATUS <<\_ACEOF
12306   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12307     ac_cs_recheck=: ;;
12308   --version | --vers* | -V )
12309     echo "$ac_cs_version"; exit 0 ;;
12310   --he | --h)
12311     # Conflict between --help and --header
12312     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12313 Try \`$0 --help' for more information." >&5
12314 echo "$as_me: error: ambiguous option: $1
12315 Try \`$0 --help' for more information." >&2;}
12316    { (exit 1); exit 1; }; };;
12317   --help | --hel | -h )
12318     echo "$ac_cs_usage"; exit 0 ;;
12319   --debug | --d* | -d )
12320     debug=: ;;
12321   --file | --fil | --fi | --f )
12322     $ac_shift
12323     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12324     ac_need_defaults=false;;
12325   --header | --heade | --head | --hea )
12326     $ac_shift
12327     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12328     ac_need_defaults=false;;
12329   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12330   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12331     ac_cs_silent=: ;;
12332
12333   # This is an error.
12334   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12335 Try \`$0 --help' for more information." >&5
12336 echo "$as_me: error: unrecognized option: $1
12337 Try \`$0 --help' for more information." >&2;}
12338    { (exit 1); exit 1; }; } ;;
12339
12340   *) ac_config_targets="$ac_config_targets $1" ;;
12341
12342   esac
12343   shift
12344 done
12345
12346 ac_configure_extra_args=
12347
12348 if $ac_cs_silent; then
12349   exec 6>/dev/null
12350   ac_configure_extra_args="$ac_configure_extra_args --silent"
12351 fi
12352
12353 _ACEOF
12354 cat >>$CONFIG_STATUS <<_ACEOF
12355 if \$ac_cs_recheck; then
12356   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12357   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12358 fi
12359
12360 _ACEOF
12361
12362
12363
12364
12365
12366 cat >>$CONFIG_STATUS <<\_ACEOF
12367 for ac_config_target in $ac_config_targets
12368 do
12369   case "$ac_config_target" in
12370   # Handling of arguments.
12371   "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
12372   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12373   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12374 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12375    { (exit 1); exit 1; }; };;
12376   esac
12377 done
12378
12379 # If the user did not use the arguments to specify the items to instantiate,
12380 # then the envvar interface is used.  Set only those that are not.
12381 # We use the long form for the default assignment because of an extremely
12382 # bizarre bug on SunOS 4.1.3.
12383 if $ac_need_defaults; then
12384   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12385   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12386 fi
12387
12388 # Have a temporary directory for convenience.  Make it in the build tree
12389 # simply because there is no reason to put it here, and in addition,
12390 # creating and moving files from /tmp can sometimes cause problems.
12391 # Create a temporary directory, and hook for its removal unless debugging.
12392 $debug ||
12393 {
12394   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12395   trap '{ (exit 1); exit 1; }' 1 2 13 15
12396 }
12397
12398 # Create a (secure) tmp directory for tmp files.
12399
12400 {
12401   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12402   test -n "$tmp" && test -d "$tmp"
12403 }  ||
12404 {
12405   tmp=./confstat$$-$RANDOM
12406   (umask 077 && mkdir $tmp)
12407 } ||
12408 {
12409    echo "$me: cannot create a temporary directory in ." >&2
12410    { (exit 1); exit 1; }
12411 }
12412
12413 _ACEOF
12414
12415 cat >>$CONFIG_STATUS <<_ACEOF
12416
12417 #
12418 # CONFIG_FILES section.
12419 #
12420
12421 # No need to generate the scripts if there are no CONFIG_FILES.
12422 # This happens for instance when ./config.status config.h
12423 if test -n "\$CONFIG_FILES"; then
12424   # Protect against being on the right side of a sed subst in config.status.
12425   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12426    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12427 s,@SHELL@,$SHELL,;t t
12428 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12429 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12430 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12431 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12432 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12433 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12434 s,@exec_prefix@,$exec_prefix,;t t
12435 s,@prefix@,$prefix,;t t
12436 s,@program_transform_name@,$program_transform_name,;t t
12437 s,@bindir@,$bindir,;t t
12438 s,@sbindir@,$sbindir,;t t
12439 s,@libexecdir@,$libexecdir,;t t
12440 s,@datadir@,$datadir,;t t
12441 s,@sysconfdir@,$sysconfdir,;t t
12442 s,@sharedstatedir@,$sharedstatedir,;t t
12443 s,@localstatedir@,$localstatedir,;t t
12444 s,@libdir@,$libdir,;t t
12445 s,@includedir@,$includedir,;t t
12446 s,@oldincludedir@,$oldincludedir,;t t
12447 s,@infodir@,$infodir,;t t
12448 s,@mandir@,$mandir,;t t
12449 s,@build_alias@,$build_alias,;t t
12450 s,@host_alias@,$host_alias,;t t
12451 s,@target_alias@,$target_alias,;t t
12452 s,@DEFS@,$DEFS,;t t
12453 s,@ECHO_C@,$ECHO_C,;t t
12454 s,@ECHO_N@,$ECHO_N,;t t
12455 s,@ECHO_T@,$ECHO_T,;t t
12456 s,@LIBS@,$LIBS,;t t
12457 s,@build@,$build,;t t
12458 s,@build_cpu@,$build_cpu,;t t
12459 s,@build_vendor@,$build_vendor,;t t
12460 s,@build_os@,$build_os,;t t
12461 s,@host@,$host,;t t
12462 s,@host_cpu@,$host_cpu,;t t
12463 s,@host_vendor@,$host_vendor,;t t
12464 s,@host_os@,$host_os,;t t
12465 s,@SHARED@,$SHARED,;t t
12466 s,@CC@,$CC,;t t
12467 s,@CFLAGS@,$CFLAGS,;t t
12468 s,@LDFLAGS@,$LDFLAGS,;t t
12469 s,@CPPFLAGS@,$CPPFLAGS,;t t
12470 s,@ac_ct_CC@,$ac_ct_CC,;t t
12471 s,@EXEEXT@,$EXEEXT,;t t
12472 s,@OBJEXT@,$OBJEXT,;t t
12473 s,@CXX@,$CXX,;t t
12474 s,@CXXFLAGS@,$CXXFLAGS,;t t
12475 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12476 s,@CPP@,$CPP,;t t
12477 s,@RANLIB@,$RANLIB,;t t
12478 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12479 s,@SET_MAKE@,$SET_MAKE,;t t
12480 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12481 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12482 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12483 s,@LN_S@,$LN_S,;t t
12484 s,@ECHO@,$ECHO,;t t
12485 s,@STRIP@,$STRIP,;t t
12486 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12487 s,@EGREP@,$EGREP,;t t
12488 s,@LIBTOOL@,$LIBTOOL,;t t
12489 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
12490 s,@AREXT@,$AREXT,;t t
12491 s,@AR@,$AR,;t t
12492 s,@SLEXT@,$SLEXT,;t t
12493 s,@target@,$target,;t t
12494 s,@target_cpu@,$target_cpu,;t t
12495 s,@target_vendor@,$target_vendor,;t t
12496 s,@target_os@,$target_os,;t t
12497 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
12498 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
12499 s,@PACKAGE@,$PACKAGE,;t t
12500 s,@VERSION@,$VERSION,;t t
12501 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
12502 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
12503 s,@lame_objects@,$lame_objects,;t t
12504 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
12505 s,@VIDEO_LIBS@,$VIDEO_LIBS,;t t
12506 s,@VIDEO_CFLAGS@,$VIDEO_CFLAGS,;t t
12507 s,@USE_GZIP@,$USE_GZIP,;t t
12508 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
12509 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
12510 s,@JPEG2SWF@,$JPEG2SWF,;t t
12511 s,@GIF2SWF@,$GIF2SWF,;t t
12512 s,@PNG2SWF@,$PNG2SWF,;t t
12513 s,@LIBOBJS@,$LIBOBJS,;t t
12514 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12515 CEOF
12516
12517 _ACEOF
12518
12519   cat >>$CONFIG_STATUS <<\_ACEOF
12520   # Split the substitutions into bite-sized pieces for seds with
12521   # small command number limits, like on Digital OSF/1 and HP-UX.
12522   ac_max_sed_lines=48
12523   ac_sed_frag=1 # Number of current file.
12524   ac_beg=1 # First line for current file.
12525   ac_end=$ac_max_sed_lines # Line after last line for current file.
12526   ac_more_lines=:
12527   ac_sed_cmds=
12528   while $ac_more_lines; do
12529     if test $ac_beg -gt 1; then
12530       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12531     else
12532       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12533     fi
12534     if test ! -s $tmp/subs.frag; then
12535       ac_more_lines=false
12536     else
12537       # The purpose of the label and of the branching condition is to
12538       # speed up the sed processing (if there are no `@' at all, there
12539       # is no need to browse any of the substitutions).
12540       # These are the two extra sed commands mentioned above.
12541       (echo ':t
12542   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12543       if test -z "$ac_sed_cmds"; then
12544         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12545       else
12546         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12547       fi
12548       ac_sed_frag=`expr $ac_sed_frag + 1`
12549       ac_beg=$ac_end
12550       ac_end=`expr $ac_end + $ac_max_sed_lines`
12551     fi
12552   done
12553   if test -z "$ac_sed_cmds"; then
12554     ac_sed_cmds=cat
12555   fi
12556 fi # test -n "$CONFIG_FILES"
12557
12558 _ACEOF
12559 cat >>$CONFIG_STATUS <<\_ACEOF
12560 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12561   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12562   case $ac_file in
12563   - | *:- | *:-:* ) # input from stdin
12564         cat >$tmp/stdin
12565         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12566         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12567   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12568         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12569   * )   ac_file_in=$ac_file.in ;;
12570   esac
12571
12572   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12573   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12574 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12575          X"$ac_file" : 'X\(//\)[^/]' \| \
12576          X"$ac_file" : 'X\(//\)$' \| \
12577          X"$ac_file" : 'X\(/\)' \| \
12578          .     : '\(.\)' 2>/dev/null ||
12579 echo X"$ac_file" |
12580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12581           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12582           /^X\(\/\/\)$/{ s//\1/; q; }
12583           /^X\(\/\).*/{ s//\1/; q; }
12584           s/.*/./; q'`
12585   { if $as_mkdir_p; then
12586     mkdir -p "$ac_dir"
12587   else
12588     as_dir="$ac_dir"
12589     as_dirs=
12590     while test ! -d "$as_dir"; do
12591       as_dirs="$as_dir $as_dirs"
12592       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12594          X"$as_dir" : 'X\(//\)[^/]' \| \
12595          X"$as_dir" : 'X\(//\)$' \| \
12596          X"$as_dir" : 'X\(/\)' \| \
12597          .     : '\(.\)' 2>/dev/null ||
12598 echo X"$as_dir" |
12599     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12600           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12601           /^X\(\/\/\)$/{ s//\1/; q; }
12602           /^X\(\/\).*/{ s//\1/; q; }
12603           s/.*/./; q'`
12604     done
12605     test ! -n "$as_dirs" || mkdir $as_dirs
12606   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12607 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12608    { (exit 1); exit 1; }; }; }
12609
12610   ac_builddir=.
12611
12612 if test "$ac_dir" != .; then
12613   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12614   # A "../" for each directory in $ac_dir_suffix.
12615   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12616 else
12617   ac_dir_suffix= ac_top_builddir=
12618 fi
12619
12620 case $srcdir in
12621   .)  # No --srcdir option.  We are building in place.
12622     ac_srcdir=.
12623     if test -z "$ac_top_builddir"; then
12624        ac_top_srcdir=.
12625     else
12626        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12627     fi ;;
12628   [\\/]* | ?:[\\/]* )  # Absolute path.
12629     ac_srcdir=$srcdir$ac_dir_suffix;
12630     ac_top_srcdir=$srcdir ;;
12631   *) # Relative path.
12632     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12633     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12634 esac
12635
12636 # Do not use `cd foo && pwd` to compute absolute paths, because
12637 # the directories may not exist.
12638 case `pwd` in
12639 .) ac_abs_builddir="$ac_dir";;
12640 *)
12641   case "$ac_dir" in
12642   .) ac_abs_builddir=`pwd`;;
12643   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12644   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12645   esac;;
12646 esac
12647 case $ac_abs_builddir in
12648 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12649 *)
12650   case ${ac_top_builddir}. in
12651   .) ac_abs_top_builddir=$ac_abs_builddir;;
12652   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12653   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12654   esac;;
12655 esac
12656 case $ac_abs_builddir in
12657 .) ac_abs_srcdir=$ac_srcdir;;
12658 *)
12659   case $ac_srcdir in
12660   .) ac_abs_srcdir=$ac_abs_builddir;;
12661   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12662   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12663   esac;;
12664 esac
12665 case $ac_abs_builddir in
12666 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12667 *)
12668   case $ac_top_srcdir in
12669   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12670   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12671   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12672   esac;;
12673 esac
12674
12675
12676   case $INSTALL in
12677   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12678   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12679   esac
12680
12681   if test x"$ac_file" != x-; then
12682     { echo "$as_me:$LINENO: creating $ac_file" >&5
12683 echo "$as_me: creating $ac_file" >&6;}
12684     rm -f "$ac_file"
12685   fi
12686   # Let's still pretend it is `configure' which instantiates (i.e., don't
12687   # use $as_me), people would be surprised to read:
12688   #    /* config.h.  Generated by config.status.  */
12689   if test x"$ac_file" = x-; then
12690     configure_input=
12691   else
12692     configure_input="$ac_file.  "
12693   fi
12694   configure_input=$configure_input"Generated from `echo $ac_file_in |
12695                                      sed 's,.*/,,'` by configure."
12696
12697   # First look for the input files in the build tree, otherwise in the
12698   # src tree.
12699   ac_file_inputs=`IFS=:
12700     for f in $ac_file_in; do
12701       case $f in
12702       -) echo $tmp/stdin ;;
12703       [\\/$]*)
12704          # Absolute (can't be DOS-style, as IFS=:)
12705          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12706 echo "$as_me: error: cannot find input file: $f" >&2;}
12707    { (exit 1); exit 1; }; }
12708          echo "$f";;
12709       *) # Relative
12710          if test -f "$f"; then
12711            # Build tree
12712            echo "$f"
12713          elif test -f "$srcdir/$f"; then
12714            # Source tree
12715            echo "$srcdir/$f"
12716          else
12717            # /dev/null tree
12718            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12719 echo "$as_me: error: cannot find input file: $f" >&2;}
12720    { (exit 1); exit 1; }; }
12721          fi;;
12722       esac
12723     done` || { (exit 1); exit 1; }
12724 _ACEOF
12725 cat >>$CONFIG_STATUS <<_ACEOF
12726   sed "$ac_vpsub
12727 $extrasub
12728 _ACEOF
12729 cat >>$CONFIG_STATUS <<\_ACEOF
12730 :t
12731 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12732 s,@configure_input@,$configure_input,;t t
12733 s,@srcdir@,$ac_srcdir,;t t
12734 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12735 s,@top_srcdir@,$ac_top_srcdir,;t t
12736 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12737 s,@builddir@,$ac_builddir,;t t
12738 s,@abs_builddir@,$ac_abs_builddir,;t t
12739 s,@top_builddir@,$ac_top_builddir,;t t
12740 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12741 s,@INSTALL@,$ac_INSTALL,;t t
12742 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12743   rm -f $tmp/stdin
12744   if test x"$ac_file" != x-; then
12745     mv $tmp/out $ac_file
12746   else
12747     cat $tmp/out
12748     rm -f $tmp/out
12749   fi
12750
12751 done
12752 _ACEOF
12753 cat >>$CONFIG_STATUS <<\_ACEOF
12754
12755 #
12756 # CONFIG_HEADER section.
12757 #
12758
12759 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12760 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12761 #
12762 # ac_d sets the value in "#define NAME VALUE" lines.
12763 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12764 ac_dB='[         ].*$,\1#\2'
12765 ac_dC=' '
12766 ac_dD=',;t'
12767 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12768 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12769 ac_uB='$,\1#\2define\3'
12770 ac_uC=' '
12771 ac_uD=',;t'
12772
12773 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12774   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12775   case $ac_file in
12776   - | *:- | *:-:* ) # input from stdin
12777         cat >$tmp/stdin
12778         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12779         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12780   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12781         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12782   * )   ac_file_in=$ac_file.in ;;
12783   esac
12784
12785   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12786 echo "$as_me: creating $ac_file" >&6;}
12787
12788   # First look for the input files in the build tree, otherwise in the
12789   # src tree.
12790   ac_file_inputs=`IFS=:
12791     for f in $ac_file_in; do
12792       case $f in
12793       -) echo $tmp/stdin ;;
12794       [\\/$]*)
12795          # Absolute (can't be DOS-style, as IFS=:)
12796          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12797 echo "$as_me: error: cannot find input file: $f" >&2;}
12798    { (exit 1); exit 1; }; }
12799          # Do quote $f, to prevent DOS paths from being IFS'd.
12800          echo "$f";;
12801       *) # Relative
12802          if test -f "$f"; then
12803            # Build tree
12804            echo "$f"
12805          elif test -f "$srcdir/$f"; then
12806            # Source tree
12807            echo "$srcdir/$f"
12808          else
12809            # /dev/null tree
12810            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12811 echo "$as_me: error: cannot find input file: $f" >&2;}
12812    { (exit 1); exit 1; }; }
12813          fi;;
12814       esac
12815     done` || { (exit 1); exit 1; }
12816   # Remove the trailing spaces.
12817   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12818
12819 _ACEOF
12820
12821 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12822 # `conftest.undefs', that substitutes the proper values into
12823 # config.h.in to produce config.h.  The first handles `#define'
12824 # templates, and the second `#undef' templates.
12825 # And first: Protect against being on the right side of a sed subst in
12826 # config.status.  Protect against being in an unquoted here document
12827 # in config.status.
12828 rm -f conftest.defines conftest.undefs
12829 # Using a here document instead of a string reduces the quoting nightmare.
12830 # Putting comments in sed scripts is not portable.
12831 #
12832 # `end' is used to avoid that the second main sed command (meant for
12833 # 0-ary CPP macros) applies to n-ary macro definitions.
12834 # See the Autoconf documentation for `clear'.
12835 cat >confdef2sed.sed <<\_ACEOF
12836 s/[\\&,]/\\&/g
12837 s,[\\$`],\\&,g
12838 t clear
12839 : clear
12840 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12841 t end
12842 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12843 : end
12844 _ACEOF
12845 # If some macros were called several times there might be several times
12846 # the same #defines, which is useless.  Nevertheless, we may not want to
12847 # sort them, since we want the *last* AC-DEFINE to be honored.
12848 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12849 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12850 rm -f confdef2sed.sed
12851
12852 # This sed command replaces #undef with comments.  This is necessary, for
12853 # example, in the case of _POSIX_SOURCE, which is predefined and required
12854 # on some systems where configure will not decide to define it.
12855 cat >>conftest.undefs <<\_ACEOF
12856 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12857 _ACEOF
12858
12859 # Break up conftest.defines because some shells have a limit on the size
12860 # of here documents, and old seds have small limits too (100 cmds).
12861 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12862 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12863 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12864 echo '  :' >>$CONFIG_STATUS
12865 rm -f conftest.tail
12866 while grep . conftest.defines >/dev/null
12867 do
12868   # Write a limited-size here document to $tmp/defines.sed.
12869   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12870   # Speed up: don't consider the non `#define' lines.
12871   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12872   # Work around the forget-to-reset-the-flag bug.
12873   echo 't clr' >>$CONFIG_STATUS
12874   echo ': clr' >>$CONFIG_STATUS
12875   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12876   echo 'CEOF
12877   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12878   rm -f $tmp/in
12879   mv $tmp/out $tmp/in
12880 ' >>$CONFIG_STATUS
12881   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12882   rm -f conftest.defines
12883   mv conftest.tail conftest.defines
12884 done
12885 rm -f conftest.defines
12886 echo '  fi # grep' >>$CONFIG_STATUS
12887 echo >>$CONFIG_STATUS
12888
12889 # Break up conftest.undefs because some shells have a limit on the size
12890 # of here documents, and old seds have small limits too (100 cmds).
12891 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12892 rm -f conftest.tail
12893 while grep . conftest.undefs >/dev/null
12894 do
12895   # Write a limited-size here document to $tmp/undefs.sed.
12896   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12897   # Speed up: don't consider the non `#undef'
12898   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12899   # Work around the forget-to-reset-the-flag bug.
12900   echo 't clr' >>$CONFIG_STATUS
12901   echo ': clr' >>$CONFIG_STATUS
12902   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12903   echo 'CEOF
12904   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12905   rm -f $tmp/in
12906   mv $tmp/out $tmp/in
12907 ' >>$CONFIG_STATUS
12908   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12909   rm -f conftest.undefs
12910   mv conftest.tail conftest.undefs
12911 done
12912 rm -f conftest.undefs
12913
12914 cat >>$CONFIG_STATUS <<\_ACEOF
12915   # Let's still pretend it is `configure' which instantiates (i.e., don't
12916   # use $as_me), people would be surprised to read:
12917   #    /* config.h.  Generated by config.status.  */
12918   if test x"$ac_file" = x-; then
12919     echo "/* Generated by configure.  */" >$tmp/config.h
12920   else
12921     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12922   fi
12923   cat $tmp/in >>$tmp/config.h
12924   rm -f $tmp/in
12925   if test x"$ac_file" != x-; then
12926     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12927       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12928 echo "$as_me: $ac_file is unchanged" >&6;}
12929     else
12930       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12931 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12932          X"$ac_file" : 'X\(//\)[^/]' \| \
12933          X"$ac_file" : 'X\(//\)$' \| \
12934          X"$ac_file" : 'X\(/\)' \| \
12935          .     : '\(.\)' 2>/dev/null ||
12936 echo X"$ac_file" |
12937     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12938           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12939           /^X\(\/\/\)$/{ s//\1/; q; }
12940           /^X\(\/\).*/{ s//\1/; q; }
12941           s/.*/./; q'`
12942       { if $as_mkdir_p; then
12943     mkdir -p "$ac_dir"
12944   else
12945     as_dir="$ac_dir"
12946     as_dirs=
12947     while test ! -d "$as_dir"; do
12948       as_dirs="$as_dir $as_dirs"
12949       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12951          X"$as_dir" : 'X\(//\)[^/]' \| \
12952          X"$as_dir" : 'X\(//\)$' \| \
12953          X"$as_dir" : 'X\(/\)' \| \
12954          .     : '\(.\)' 2>/dev/null ||
12955 echo X"$as_dir" |
12956     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12957           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12958           /^X\(\/\/\)$/{ s//\1/; q; }
12959           /^X\(\/\).*/{ s//\1/; q; }
12960           s/.*/./; q'`
12961     done
12962     test ! -n "$as_dirs" || mkdir $as_dirs
12963   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12964 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12965    { (exit 1); exit 1; }; }; }
12966
12967       rm -f $ac_file
12968       mv $tmp/config.h $ac_file
12969     fi
12970   else
12971     cat $tmp/config.h
12972     rm -f $tmp/config.h
12973   fi
12974 done
12975 _ACEOF
12976
12977 cat >>$CONFIG_STATUS <<\_ACEOF
12978
12979 { (exit 0); exit 0; }
12980 _ACEOF
12981 chmod +x $CONFIG_STATUS
12982 ac_clean_files=$ac_clean_files_save
12983
12984
12985 # configure is writing to config.log, and then calls config.status.
12986 # config.status does its own redirection, appending to config.log.
12987 # Unfortunately, on DOS this fails, as config.log is still kept open
12988 # by configure, so config.status won't be able to write to it; its
12989 # output is simply discarded.  So we exec the FD to /dev/null,
12990 # effectively closing config.log, so it can be properly (re)opened and
12991 # appended to by config.status.  When coming back to configure, we
12992 # need to make the FD available again.
12993 if test "$no_create" != yes; then
12994   ac_cs_success=:
12995   ac_config_status_args=
12996   test "$silent" = yes &&
12997     ac_config_status_args="$ac_config_status_args --quiet"
12998   exec 5>/dev/null
12999   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13000   exec 5>>config.log
13001   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13002   # would make configure fail if this is the last instruction.
13003   $ac_cs_success || { (exit 1); exit 1; }
13004 fi
13005
13006
13007 #
13008 # On development trees, create snapshots of config.status
13009 #
13010 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
13011     if test "x${MINGW}" = "xyes"; then
13012         echo cp config.status config.status.win32
13013         cp config.status config.status.win32
13014     else
13015         if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE"  '=' "x";then
13016             echo cp config.status config.status.linux
13017             cp config.status config.status.linux
13018         fi
13019         if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE"  '=' "x";then
13020             echo cp config.status config.status.debug
13021             cp config.status config.status.debug
13022         fi
13023         if test "x$DEBUG"    = "x" -a "x$OPTIMIZE" '!=' "x"; then
13024             echo cp config.status config.status.optimize
13025             cp config.status config.status.optimize
13026         fi
13027     fi
13028 fi