Generated from configure.in
[swftools.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Find the correct PATH separator.  Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247   UNAME=${UNAME-`uname 2>/dev/null`}
248   case X$UNAME in
249     *-DOS) lt_cv_sys_path_separator=';' ;;
250     *)     lt_cv_sys_path_separator=':' ;;
251   esac
252   PATH_SEPARATOR=$lt_cv_sys_path_separator
253 fi
254
255
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
258
259 case X$ECHO in
260 X*--fallback-echo)
261   # Remove one level of quotation (which was required for Make).
262   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
263   ;;
264 esac
265
266 echo=${ECHO-echo}
267 if test "X$1" = X--no-reexec; then
268   # Discard the --no-reexec flag, and continue.
269   shift
270 elif test "X$1" = X--fallback-echo; then
271   # Avoid inline document here, it may be left over
272   :
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274   # Yippee, $echo works!
275   :
276 else
277   # Restart under the correct shell.
278   exec $SHELL "$0" --no-reexec ${1+"$@"}
279 fi
280
281 if test "X$1" = X--fallback-echo; then
282   # used as fallback echo
283   shift
284   cat <<EOF
285
286 EOF
287   exit 0
288 fi
289
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
291 # if CDPATH is set.
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300        echo_test_string="`eval $cmd`" &&
301        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
302     then
303       break
304     fi
305   done
306 fi
307
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310    test "X$echo_testing_string" = "X$echo_test_string"; then
311   :
312 else
313   # The Solaris, AIX, and Digital Unix default echo programs unquote
314   # backslashes.  This makes it impossible to quote backslashes using
315   #   echo "$something" | sed 's/\\/\\\\/g'
316   #
317   # So, first we look for a working echo in the user's PATH.
318
319   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320   for dir in $PATH /usr/ucb; do
321     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324        test "X$echo_testing_string" = "X$echo_test_string"; then
325       echo="$dir/echo"
326       break
327     fi
328   done
329   IFS="$save_ifs"
330
331   if test "X$echo" = Xecho; then
332     # We didn't find a better echo, so look for alternatives.
333     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335        test "X$echo_testing_string" = "X$echo_test_string"; then
336       # This shell has a builtin print -r that does the trick.
337       echo='print -r'
338     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339          test "X$CONFIG_SHELL" != X/bin/ksh; then
340       # If we have ksh, try running configure again with it.
341       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342       export ORIGINAL_CONFIG_SHELL
343       CONFIG_SHELL=/bin/ksh
344       export CONFIG_SHELL
345       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
346     else
347       # Try using printf.
348       echo='printf %s\n'
349       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351          test "X$echo_testing_string" = "X$echo_test_string"; then
352         # Cool, printf works
353         :
354       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359         export CONFIG_SHELL
360         SHELL="$CONFIG_SHELL"
361         export SHELL
362         echo="$CONFIG_SHELL $0 --fallback-echo"
363       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364            test "X$echo_testing_string" = 'X\t' &&
365            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366            test "X$echo_testing_string" = "X$echo_test_string"; then
367         echo="$CONFIG_SHELL $0 --fallback-echo"
368       else
369         # maybe with a smaller string...
370         prev=:
371
372         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374           then
375             break
376           fi
377           prev="$cmd"
378         done
379
380         if test "$prev" != 'sed 50q "$0"'; then
381           echo_test_string=`eval $prev`
382           export echo_test_string
383           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384         else
385           # Oops.  We lost completely, so just stick with echo.
386           echo=echo
387         fi
388       fi
389     fi
390   fi
391 fi
392 fi
393
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
396 ECHO=$echo
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 fi
400
401
402
403 # Name of the host.
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
407
408 exec 6>&1
409
410 #
411 # Initializations.
412 #
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
415 cross_compiling=no
416 subdirs=
417 MFLAGS=
418 MAKEFLAGS=
419 SHELL=${CONFIG_SHELL-/bin/sh}
420
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete.  It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
425
426 # Identity of this package.
427 PACKAGE_NAME=
428 PACKAGE_TARNAME=
429 PACKAGE_VERSION=
430 PACKAGE_STRING=
431 PACKAGE_BUGREPORT=
432
433 ac_unique_file="src/"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
436 #include <stdio.h>
437 #if HAVE_SYS_TYPES_H
438 # include <sys/types.h>
439 #endif
440 #if HAVE_SYS_STAT_H
441 # include <sys/stat.h>
442 #endif
443 #if STDC_HEADERS
444 # include <stdlib.h>
445 # include <stddef.h>
446 #else
447 # if HAVE_STDLIB_H
448 #  include <stdlib.h>
449 # endif
450 #endif
451 #if HAVE_STRING_H
452 # if !STDC_HEADERS && HAVE_MEMORY_H
453 #  include <memory.h>
454 # endif
455 # include <string.h>
456 #endif
457 #if HAVE_STRINGS_H
458 # include <strings.h>
459 #endif
460 #if HAVE_INTTYPES_H
461 # include <inttypes.h>
462 #else
463 # if HAVE_STDINT_H
464 #  include <stdint.h>
465 # endif
466 #endif
467 #if HAVE_UNISTD_H
468 # include <unistd.h>
469 #endif"
470
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S ECHO STRIP ac_ct_STRIP EGREP LIBTOOL UNCOMPRESS AR FREETYPE_CONFIG target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H AVIFILE_CONFIG lame_objects USE_GZIP JPEG2SWF PNG2SWF LIBOBJS LTLIBOBJS'
472 ac_subst_files=''
473
474 # Initialize some variables set by options.
475 ac_init_help=
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
479 cache_file=/dev/null
480 exec_prefix=NONE
481 no_create=
482 no_recursion=
483 prefix=NONE
484 program_prefix=NONE
485 program_suffix=NONE
486 program_transform_name=s,x,x,
487 silent=
488 site=
489 srcdir=
490 verbose=
491 x_includes=NONE
492 x_libraries=NONE
493
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
511
512 ac_prev=
513 for ac_option
514 do
515   # If the previous option needs an argument, assign it.
516   if test -n "$ac_prev"; then
517     eval "$ac_prev=\$ac_option"
518     ac_prev=
519     continue
520   fi
521
522   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523
524   # Accept the important Cygnus configure options, so we can diagnose typos.
525
526   case $ac_option in
527
528   -bindir | --bindir | --bindi | --bind | --bin | --bi)
529     ac_prev=bindir ;;
530   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531     bindir=$ac_optarg ;;
532
533   -build | --build | --buil | --bui | --bu)
534     ac_prev=build_alias ;;
535   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536     build_alias=$ac_optarg ;;
537
538   -cache-file | --cache-file | --cache-fil | --cache-fi \
539   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540     ac_prev=cache_file ;;
541   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543     cache_file=$ac_optarg ;;
544
545   --config-cache | -C)
546     cache_file=config.cache ;;
547
548   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549     ac_prev=datadir ;;
550   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551   | --da=*)
552     datadir=$ac_optarg ;;
553
554   -disable-* | --disable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     eval "enable_$ac_feature=no" ;;
562
563   -enable-* | --enable-*)
564     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565     # Reject names that are not valid shell variable names.
566     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568    { (exit 1); exit 1; }; }
569     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570     case $ac_option in
571       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572       *) ac_optarg=yes ;;
573     esac
574     eval "enable_$ac_feature='$ac_optarg'" ;;
575
576   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578   | --exec | --exe | --ex)
579     ac_prev=exec_prefix ;;
580   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582   | --exec=* | --exe=* | --ex=*)
583     exec_prefix=$ac_optarg ;;
584
585   -gas | --gas | --ga | --g)
586     # Obsolete; use --with-gas.
587     with_gas=yes ;;
588
589   -help | --help | --hel | --he | -h)
590     ac_init_help=long ;;
591   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592     ac_init_help=recursive ;;
593   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594     ac_init_help=short ;;
595
596   -host | --host | --hos | --ho)
597     ac_prev=host_alias ;;
598   -host=* | --host=* | --hos=* | --ho=*)
599     host_alias=$ac_optarg ;;
600
601   -includedir | --includedir | --includedi | --included | --include \
602   | --includ | --inclu | --incl | --inc)
603     ac_prev=includedir ;;
604   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605   | --includ=* | --inclu=* | --incl=* | --inc=*)
606     includedir=$ac_optarg ;;
607
608   -infodir | --infodir | --infodi | --infod | --info | --inf)
609     ac_prev=infodir ;;
610   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611     infodir=$ac_optarg ;;
612
613   -libdir | --libdir | --libdi | --libd)
614     ac_prev=libdir ;;
615   -libdir=* | --libdir=* | --libdi=* | --libd=*)
616     libdir=$ac_optarg ;;
617
618   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619   | --libexe | --libex | --libe)
620     ac_prev=libexecdir ;;
621   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622   | --libexe=* | --libex=* | --libe=*)
623     libexecdir=$ac_optarg ;;
624
625   -localstatedir | --localstatedir | --localstatedi | --localstated \
626   | --localstate | --localstat | --localsta | --localst \
627   | --locals | --local | --loca | --loc | --lo)
628     ac_prev=localstatedir ;;
629   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632     localstatedir=$ac_optarg ;;
633
634   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635     ac_prev=mandir ;;
636   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637     mandir=$ac_optarg ;;
638
639   -nfp | --nfp | --nf)
640     # Obsolete; use --without-fp.
641     with_fp=no ;;
642
643   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644   | --no-cr | --no-c | -n)
645     no_create=yes ;;
646
647   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649     no_recursion=yes ;;
650
651   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653   | --oldin | --oldi | --old | --ol | --o)
654     ac_prev=oldincludedir ;;
655   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658     oldincludedir=$ac_optarg ;;
659
660   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661     ac_prev=prefix ;;
662   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663     prefix=$ac_optarg ;;
664
665   -program-prefix | --program-prefix | --program-prefi | --program-pref \
666   | --program-pre | --program-pr | --program-p)
667     ac_prev=program_prefix ;;
668   -program-prefix=* | --program-prefix=* | --program-prefi=* \
669   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670     program_prefix=$ac_optarg ;;
671
672   -program-suffix | --program-suffix | --program-suffi | --program-suff \
673   | --program-suf | --program-su | --program-s)
674     ac_prev=program_suffix ;;
675   -program-suffix=* | --program-suffix=* | --program-suffi=* \
676   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677     program_suffix=$ac_optarg ;;
678
679   -program-transform-name | --program-transform-name \
680   | --program-transform-nam | --program-transform-na \
681   | --program-transform-n | --program-transform- \
682   | --program-transform | --program-transfor \
683   | --program-transfo | --program-transf \
684   | --program-trans | --program-tran \
685   | --progr-tra | --program-tr | --program-t)
686     ac_prev=program_transform_name ;;
687   -program-transform-name=* | --program-transform-name=* \
688   | --program-transform-nam=* | --program-transform-na=* \
689   | --program-transform-n=* | --program-transform-=* \
690   | --program-transform=* | --program-transfor=* \
691   | --program-transfo=* | --program-transf=* \
692   | --program-trans=* | --program-tran=* \
693   | --progr-tra=* | --program-tr=* | --program-t=*)
694     program_transform_name=$ac_optarg ;;
695
696   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697   | -silent | --silent | --silen | --sile | --sil)
698     silent=yes ;;
699
700   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701     ac_prev=sbindir ;;
702   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703   | --sbi=* | --sb=*)
704     sbindir=$ac_optarg ;;
705
706   -sharedstatedir | --sharedstatedir | --sharedstatedi \
707   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708   | --sharedst | --shareds | --shared | --share | --shar \
709   | --sha | --sh)
710     ac_prev=sharedstatedir ;;
711   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714   | --sha=* | --sh=*)
715     sharedstatedir=$ac_optarg ;;
716
717   -site | --site | --sit)
718     ac_prev=site ;;
719   -site=* | --site=* | --sit=*)
720     site=$ac_optarg ;;
721
722   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723     ac_prev=srcdir ;;
724   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725     srcdir=$ac_optarg ;;
726
727   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728   | --syscon | --sysco | --sysc | --sys | --sy)
729     ac_prev=sysconfdir ;;
730   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732     sysconfdir=$ac_optarg ;;
733
734   -target | --target | --targe | --targ | --tar | --ta | --t)
735     ac_prev=target_alias ;;
736   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737     target_alias=$ac_optarg ;;
738
739   -v | -verbose | --verbose | --verbos | --verbo | --verb)
740     verbose=yes ;;
741
742   -version | --version | --versio | --versi | --vers | -V)
743     ac_init_version=: ;;
744
745   -with-* | --with-*)
746     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747     # Reject names that are not valid shell variable names.
748     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749       { echo "$as_me: error: invalid package name: $ac_package" >&2
750    { (exit 1); exit 1; }; }
751     ac_package=`echo $ac_package| sed 's/-/_/g'`
752     case $ac_option in
753       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754       *) ac_optarg=yes ;;
755     esac
756     eval "with_$ac_package='$ac_optarg'" ;;
757
758   -without-* | --without-*)
759     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760     # Reject names that are not valid shell variable names.
761     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762       { echo "$as_me: error: invalid package name: $ac_package" >&2
763    { (exit 1); exit 1; }; }
764     ac_package=`echo $ac_package | sed 's/-/_/g'`
765     eval "with_$ac_package=no" ;;
766
767   --x)
768     # Obsolete; use --with-x.
769     with_x=yes ;;
770
771   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772   | --x-incl | --x-inc | --x-in | --x-i)
773     ac_prev=x_includes ;;
774   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776     x_includes=$ac_optarg ;;
777
778   -x-libraries | --x-libraries | --x-librarie | --x-librari \
779   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780     ac_prev=x_libraries ;;
781   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783     x_libraries=$ac_optarg ;;
784
785   -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787    { (exit 1); exit 1; }; }
788     ;;
789
790   *=*)
791     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792     # Reject names that are not valid shell variable names.
793     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795    { (exit 1); exit 1; }; }
796     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797     eval "$ac_envvar='$ac_optarg'"
798     export $ac_envvar ;;
799
800   *)
801     # FIXME: should be removed in autoconf 3.0.
802     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806     ;;
807
808   esac
809 done
810
811 if test -n "$ac_prev"; then
812   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813   { echo "$as_me: error: missing argument to $ac_option" >&2
814    { (exit 1); exit 1; }; }
815 fi
816
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
819 do
820   eval ac_val=$`echo $ac_var`
821   case $ac_val in
822     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824    { (exit 1); exit 1; }; };;
825   esac
826 done
827
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830               localstatedir libdir includedir oldincludedir infodir mandir
831 do
832   eval ac_val=$`echo $ac_var`
833   case $ac_val in
834     [\\/$]* | ?:[\\/]* ) ;;
835     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836    { (exit 1); exit 1; }; };;
837   esac
838 done
839
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
843 build=$build_alias
844 host=$host_alias
845 target=$target_alias
846
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849   if test "x$build_alias" = x; then
850     cross_compiling=maybe
851     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852     If a cross compiler is detected then cross compile mode will be used." >&2
853   elif test "x$build_alias" != "x$host_alias"; then
854     cross_compiling=yes
855   fi
856 fi
857
858 ac_tool_prefix=
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860
861 test "$silent" = yes && exec 6>/dev/null
862
863
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866   ac_srcdir_defaulted=yes
867   # Try the directory containing this script, then its parent.
868   ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870          X"$0" : 'X\(//\)[^/]' \| \
871          X"$0" : 'X\(//\)$' \| \
872          X"$0" : 'X\(/\)' \| \
873          .     : '\(.\)' 2>/dev/null ||
874 echo X"$0" |
875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877           /^X\(\/\/\)$/{ s//\1/; q; }
878           /^X\(\/\).*/{ s//\1/; q; }
879           s/.*/./; q'`
880   srcdir=$ac_confdir
881   if test ! -r $srcdir/$ac_unique_file; then
882     srcdir=..
883   fi
884 else
885   ac_srcdir_defaulted=no
886 fi
887 if test ! -r $srcdir/$ac_unique_file; then
888   if test "$ac_srcdir_defaulted" = yes; then
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890    { (exit 1); exit 1; }; }
891   else
892     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893    { (exit 1); exit 1; }; }
894   fi
895 fi
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898    { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
913 ac_env_CC_value=$CC
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940
941 #
942 # Report the --help message.
943 #
944 if test "$ac_init_help" = "long"; then
945   # Omit some internal or obsolete options to make the list less imposing.
946   # This message is too long to be a string in the A/UX 3.1 sh.
947   cat <<_ACEOF
948 \`configure' configures this package to adapt to many kinds of systems.
949
950 Usage: $0 [OPTION]... [VAR=VALUE]...
951
952 To assign environment variables (e.g., CC, CFLAGS...), specify them as
953 VAR=VALUE.  See below for descriptions of some of the useful variables.
954
955 Defaults for the options are specified in brackets.
956
957 Configuration:
958   -h, --help              display this help and exit
959       --help=short        display options specific to this package
960       --help=recursive    display the short help of all the included packages
961   -V, --version           display version information and exit
962   -q, --quiet, --silent   do not print \`checking...' messages
963       --cache-file=FILE   cache test results in FILE [disabled]
964   -C, --config-cache      alias for \`--cache-file=config.cache'
965   -n, --no-create         do not create output files
966       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
967
968 _ACEOF
969
970   cat <<_ACEOF
971 Installation directories:
972   --prefix=PREFIX         install architecture-independent files in PREFIX
973                           [$ac_default_prefix]
974   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
975                           [PREFIX]
976
977 By default, \`make install' will install all the files in
978 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
979 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
980 for instance \`--prefix=\$HOME'.
981
982 For better control, use the options below.
983
984 Fine tuning of the installation directories:
985   --bindir=DIR           user executables [EPREFIX/bin]
986   --sbindir=DIR          system admin executables [EPREFIX/sbin]
987   --libexecdir=DIR       program executables [EPREFIX/libexec]
988   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
989   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
990   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
991   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
992   --libdir=DIR           object code libraries [EPREFIX/lib]
993   --includedir=DIR       C header files [PREFIX/include]
994   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
995   --infodir=DIR          info documentation [PREFIX/info]
996   --mandir=DIR           man documentation [PREFIX/man]
997 _ACEOF
998
999   cat <<\_ACEOF
1000
1001 Program names:
1002   --program-prefix=PREFIX            prepend PREFIX to installed program names
1003   --program-suffix=SUFFIX            append SUFFIX to installed program names
1004   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1005
1006 System types:
1007   --build=BUILD     configure for building on BUILD [guessed]
1008   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1009   --target=TARGET   configure for building compilers for TARGET [HOST]
1010 _ACEOF
1011 fi
1012
1013 if test -n "$ac_init_help"; then
1014
1015   cat <<\_ACEOF
1016
1017 Optional Features:
1018   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1019   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1020   --enable-checkmem       turn on ccmalloc debugging
1021   --enable-debug          turn on debugging
1022   --enable-warnings        turn on compiler warnings
1023   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1024   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1025   --enable-shared=PKGS  build shared libraries default=yes
1026   --enable-static=PKGS  build static libraries default=yes
1027   --enable-fast-install=PKGS  optimize for fast installation default=yes
1028   --disable-libtool-lock  avoid locking (might break parallel builds)
1029
1030 Optional Packages:
1031   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1032   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1033   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1034   --with-pic              try to use only PIC/non-PIC objects default=use both
1035
1036 Some influential environment variables:
1037   CC          C compiler command
1038   CFLAGS      C compiler flags
1039   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1040               nonstandard directory <lib dir>
1041   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042               headers in a nonstandard directory <include dir>
1043   CXX         C++ compiler command
1044   CXXFLAGS    C++ compiler flags
1045   CPP         C preprocessor
1046
1047 Use these variables to override the choices made by `configure' or to help
1048 it to find libraries and programs with nonstandard names/locations.
1049
1050 _ACEOF
1051 fi
1052
1053 if test "$ac_init_help" = "recursive"; then
1054   # If there are subdirs, report their specific --help.
1055   ac_popdir=`pwd`
1056   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057     test -d $ac_dir || continue
1058     ac_builddir=.
1059
1060 if test "$ac_dir" != .; then
1061   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062   # A "../" for each directory in $ac_dir_suffix.
1063   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064 else
1065   ac_dir_suffix= ac_top_builddir=
1066 fi
1067
1068 case $srcdir in
1069   .)  # No --srcdir option.  We are building in place.
1070     ac_srcdir=.
1071     if test -z "$ac_top_builddir"; then
1072        ac_top_srcdir=.
1073     else
1074        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075     fi ;;
1076   [\\/]* | ?:[\\/]* )  # Absolute path.
1077     ac_srcdir=$srcdir$ac_dir_suffix;
1078     ac_top_srcdir=$srcdir ;;
1079   *) # Relative path.
1080     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082 esac
1083 case "$ac_dir" in
1084 .) ac_abs_builddir=$ac_builddir;;
1085 *)
1086   case $ac_builddir in
1087   .) ac_abs_builddir="$ac_dir";;
1088   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
1089   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
1090   esac;;
1091 esac
1092 case "$ac_dir" in
1093 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1094 *)
1095   case ${ac_top_builddir}. in
1096   .) ac_abs_top_builddir="$ac_dir";;
1097   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1098   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
1099   esac;;
1100 esac
1101 case "$ac_dir" in
1102 .) ac_abs_srcdir=$ac_srcdir;;
1103 *)
1104   case $ac_srcdir in
1105   .) ac_abs_srcdir="$ac_dir";;
1106   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1107   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
1108   esac;;
1109 esac
1110 case "$ac_dir" in
1111 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1112 *)
1113   case $ac_top_srcdir in
1114   .) ac_abs_top_srcdir="$ac_dir";;
1115   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1116   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1117   esac;;
1118 esac
1119
1120     cd $ac_dir
1121     # Check for guested configure; otherwise get Cygnus style configure.
1122     if test -f $ac_srcdir/configure.gnu; then
1123       echo
1124       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1125     elif test -f $ac_srcdir/configure; then
1126       echo
1127       $SHELL $ac_srcdir/configure  --help=recursive
1128     elif test -f $ac_srcdir/configure.ac ||
1129            test -f $ac_srcdir/configure.in; then
1130       echo
1131       $ac_configure --help
1132     else
1133       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1134     fi
1135     cd $ac_popdir
1136   done
1137 fi
1138
1139 test -n "$ac_init_help" && exit 0
1140 if $ac_init_version; then
1141   cat <<\_ACEOF
1142
1143 Copyright (C) 2003 Free Software Foundation, Inc.
1144 This configure script is free software; the Free Software Foundation
1145 gives unlimited permission to copy, distribute and modify it.
1146 _ACEOF
1147   exit 0
1148 fi
1149 exec 5>config.log
1150 cat >&5 <<_ACEOF
1151 This file contains any messages produced by compilers while
1152 running configure, to aid debugging if configure makes a mistake.
1153
1154 It was created by $as_me, which was
1155 generated by GNU Autoconf 2.58.  Invocation command line was
1156
1157   $ $0 $@
1158
1159 _ACEOF
1160 {
1161 cat <<_ASUNAME
1162 ## --------- ##
1163 ## Platform. ##
1164 ## --------- ##
1165
1166 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1167 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1168 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1169 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1170 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1171
1172 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1173 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1174
1175 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1176 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1177 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1178 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1179 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1180 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1181 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1182
1183 _ASUNAME
1184
1185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186 for as_dir in $PATH
1187 do
1188   IFS=$as_save_IFS
1189   test -z "$as_dir" && as_dir=.
1190   echo "PATH: $as_dir"
1191 done
1192
1193 } >&5
1194
1195 cat >&5 <<_ACEOF
1196
1197
1198 ## ----------- ##
1199 ## Core tests. ##
1200 ## ----------- ##
1201
1202 _ACEOF
1203
1204
1205 # Keep a trace of the command line.
1206 # Strip out --no-create and --no-recursion so they do not pile up.
1207 # Strip out --silent because we don't want to record it for future runs.
1208 # Also quote any args containing shell meta-characters.
1209 # Make two passes to allow for proper duplicate-argument suppression.
1210 ac_configure_args=
1211 ac_configure_args0=
1212 ac_configure_args1=
1213 ac_sep=
1214 ac_must_keep_next=false
1215 for ac_pass in 1 2
1216 do
1217   for ac_arg
1218   do
1219     case $ac_arg in
1220     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1221     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222     | -silent | --silent | --silen | --sile | --sil)
1223       continue ;;
1224     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1226     esac
1227     case $ac_pass in
1228     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1229     2)
1230       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1231       if test $ac_must_keep_next = true; then
1232         ac_must_keep_next=false # Got value, back to normal.
1233       else
1234         case $ac_arg in
1235           *=* | --config-cache | -C | -disable-* | --disable-* \
1236           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1237           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1238           | -with-* | --with-* | -without-* | --without-* | --x)
1239             case "$ac_configure_args0 " in
1240               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1241             esac
1242             ;;
1243           -* ) ac_must_keep_next=true ;;
1244         esac
1245       fi
1246       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1247       # Get rid of the leading space.
1248       ac_sep=" "
1249       ;;
1250     esac
1251   done
1252 done
1253 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1254 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1255
1256 # When interrupted or exit'd, cleanup temporary files, and complete
1257 # config.log.  We remove comments because anyway the quotes in there
1258 # would cause problems or look ugly.
1259 # WARNING: Be sure not to use single quotes in there, as some shells,
1260 # such as our DU 5.0 friend, will then `close' the trap.
1261 trap 'exit_status=$?
1262   # Save into config.log some information that might help in debugging.
1263   {
1264     echo
1265
1266     cat <<\_ASBOX
1267 ## ---------------- ##
1268 ## Cache variables. ##
1269 ## ---------------- ##
1270 _ASBOX
1271     echo
1272     # The following way of writing the cache mishandles newlines in values,
1273 {
1274   (set) 2>&1 |
1275     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1276     *ac_space=\ *)
1277       sed -n \
1278         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1279           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1280       ;;
1281     *)
1282       sed -n \
1283         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1284       ;;
1285     esac;
1286 }
1287     echo
1288
1289     cat <<\_ASBOX
1290 ## ----------------- ##
1291 ## Output variables. ##
1292 ## ----------------- ##
1293 _ASBOX
1294     echo
1295     for ac_var in $ac_subst_vars
1296     do
1297       eval ac_val=$`echo $ac_var`
1298       echo "$ac_var='"'"'$ac_val'"'"'"
1299     done | sort
1300     echo
1301
1302     if test -n "$ac_subst_files"; then
1303       cat <<\_ASBOX
1304 ## ------------- ##
1305 ## Output files. ##
1306 ## ------------- ##
1307 _ASBOX
1308       echo
1309       for ac_var in $ac_subst_files
1310       do
1311         eval ac_val=$`echo $ac_var`
1312         echo "$ac_var='"'"'$ac_val'"'"'"
1313       done | sort
1314       echo
1315     fi
1316
1317     if test -s confdefs.h; then
1318       cat <<\_ASBOX
1319 ## ----------- ##
1320 ## confdefs.h. ##
1321 ## ----------- ##
1322 _ASBOX
1323       echo
1324       sed "/^$/d" confdefs.h | sort
1325       echo
1326     fi
1327     test "$ac_signal" != 0 &&
1328       echo "$as_me: caught signal $ac_signal"
1329     echo "$as_me: exit $exit_status"
1330   } >&5
1331   rm -f core *.core &&
1332   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1333     exit $exit_status
1334      ' 0
1335 for ac_signal in 1 2 13 15; do
1336   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1337 done
1338 ac_signal=0
1339
1340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1341 rm -rf conftest* confdefs.h
1342 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1343 echo >confdefs.h
1344
1345 # Predefined preprocessor variables.
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_NAME "$PACKAGE_NAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_STRING "$PACKAGE_STRING"
1364 _ACEOF
1365
1366
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1369 _ACEOF
1370
1371
1372 # Let the site file select an alternate cache file if it wants to.
1373 # Prefer explicitly selected file to automatically selected ones.
1374 if test -z "$CONFIG_SITE"; then
1375   if test "x$prefix" != xNONE; then
1376     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1377   else
1378     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1379   fi
1380 fi
1381 for ac_site_file in $CONFIG_SITE; do
1382   if test -r "$ac_site_file"; then
1383     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1384 echo "$as_me: loading site script $ac_site_file" >&6;}
1385     sed 's/^/| /' "$ac_site_file" >&5
1386     . "$ac_site_file"
1387   fi
1388 done
1389
1390 if test -r "$cache_file"; then
1391   # Some versions of bash will fail to source /dev/null (special
1392   # files actually), so we avoid doing that.
1393   if test -f "$cache_file"; then
1394     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1395 echo "$as_me: loading cache $cache_file" >&6;}
1396     case $cache_file in
1397       [\\/]* | ?:[\\/]* ) . $cache_file;;
1398       *)                      . ./$cache_file;;
1399     esac
1400   fi
1401 else
1402   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1403 echo "$as_me: creating cache $cache_file" >&6;}
1404   >$cache_file
1405 fi
1406
1407 # Check that the precious variables saved in the cache have kept the same
1408 # value.
1409 ac_cache_corrupted=false
1410 for ac_var in `(set) 2>&1 |
1411                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1412   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1413   eval ac_new_set=\$ac_env_${ac_var}_set
1414   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1415   eval ac_new_val="\$ac_env_${ac_var}_value"
1416   case $ac_old_set,$ac_new_set in
1417     set,)
1418       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1420       ac_cache_corrupted=: ;;
1421     ,set)
1422       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1424       ac_cache_corrupted=: ;;
1425     ,);;
1426     *)
1427       if test "x$ac_old_val" != "x$ac_new_val"; then
1428         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1431 echo "$as_me:   former value:  $ac_old_val" >&2;}
1432         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1433 echo "$as_me:   current value: $ac_new_val" >&2;}
1434         ac_cache_corrupted=:
1435       fi;;
1436   esac
1437   # Pass precious variables to config.status.
1438   if test "$ac_new_set" = set; then
1439     case $ac_new_val in
1440     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442     *) ac_arg=$ac_var=$ac_new_val ;;
1443     esac
1444     case " $ac_configure_args " in
1445       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1446       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447     esac
1448   fi
1449 done
1450 if $ac_cache_corrupted; then
1451   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1452 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1453   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1454 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1455    { (exit 1); exit 1; }; }
1456 fi
1457
1458 ac_ext=c
1459 ac_cpp='$CPP $CPPFLAGS'
1460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483 # Check whether --enable-checkmem or --disable-checkmem was given.
1484 if test "${enable_checkmem+set}" = set; then
1485   enableval="$enable_checkmem"
1486   CHECKMEM=true
1487 fi;
1488 # Check whether --enable-debug or --disable-debug was given.
1489 if test "${enable_debug+set}" = set; then
1490   enableval="$enable_debug"
1491   DEBUG=true
1492 fi;
1493 # Check whether --enable-warnings or --disable-warnings was given.
1494 if test "${enable_warnings+set}" = set; then
1495   enableval="$enable_warnings"
1496   ENABLE_WARNINGS=true
1497 fi;
1498 # Check whether --enable-optimizations or --disable-optimizations was given.
1499 if test "${enable_optimizations+set}" = set; then
1500   enableval="$enable_optimizations"
1501   OPTIMIZE=true
1502 fi;
1503 # Check whether --enable-lame or --disable-lame was given.
1504 if test "${enable_lame+set}" = set; then
1505   enableval="$enable_lame"
1506   DISABLE_LAME=true
1507 fi;
1508
1509 PACKAGE=swftools
1510 VERSION=0.5.1
1511
1512
1513 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1514 if test "x$ENABLE_WARNINGS" '!=' "x";then
1515     WARNINGS="-Wall -Wno-unused -Wno-format"
1516 fi
1517
1518 if test "x$CHECKMEM" '!=' "x";then
1519     DEBUG=yes
1520 fi
1521 if test "x$DEBUG" '!=' "x";then
1522     CFLAGS="$WARNINGS -g $CFLAGS"
1523     CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1524 else if test "x$OPTIMIZE" '!=' "x"; then
1525     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1526     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1527 else
1528     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1529     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1530 fi
1531 fi
1532 #OLDGCC=1
1533 #if test "x$OLDGCC" '!=' "x";then
1534 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1535 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1536 #     CFLAGS="$CFLAGS -ansi -pendantic"
1537 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1538 #fi
1539
1540 export PACKAGE VERSION CFLAGS CXXFLAGS
1541
1542  ac_aux_dir=
1543 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1544   if test -f $ac_dir/install-sh; then
1545     ac_aux_dir=$ac_dir
1546     ac_install_sh="$ac_aux_dir/install-sh -c"
1547     break
1548   elif test -f $ac_dir/install.sh; then
1549     ac_aux_dir=$ac_dir
1550     ac_install_sh="$ac_aux_dir/install.sh -c"
1551     break
1552   elif test -f $ac_dir/shtool; then
1553     ac_aux_dir=$ac_dir
1554     ac_install_sh="$ac_aux_dir/shtool install -c"
1555     break
1556   fi
1557 done
1558 if test -z "$ac_aux_dir"; then
1559   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1560 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1561    { (exit 1); exit 1; }; }
1562 fi
1563 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566
1567 # Make sure we can run config.sub.
1568 $ac_config_sub sun4 >/dev/null 2>&1 ||
1569   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1570 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1571    { (exit 1); exit 1; }; }
1572
1573 echo "$as_me:$LINENO: checking build system type" >&5
1574 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1575 if test "${ac_cv_build+set}" = set; then
1576   echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578   ac_cv_build_alias=$build_alias
1579 test -z "$ac_cv_build_alias" &&
1580   ac_cv_build_alias=`$ac_config_guess`
1581 test -z "$ac_cv_build_alias" &&
1582   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1583 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1584    { (exit 1); exit 1; }; }
1585 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1586   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1587 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1588    { (exit 1); exit 1; }; }
1589
1590 fi
1591 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1592 echo "${ECHO_T}$ac_cv_build" >&6
1593 build=$ac_cv_build
1594 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1595 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1596 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1597
1598
1599 echo "$as_me:$LINENO: checking host system type" >&5
1600 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1601 if test "${ac_cv_host+set}" = set; then
1602   echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604   ac_cv_host_alias=$host_alias
1605 test -z "$ac_cv_host_alias" &&
1606   ac_cv_host_alias=$ac_cv_build_alias
1607 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1608   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1609 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1610    { (exit 1); exit 1; }; }
1611
1612 fi
1613 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1614 echo "${ECHO_T}$ac_cv_host" >&6
1615 host=$ac_cv_host
1616 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1617 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1618 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1619
1620
1621 MACOSX=
1622 case $host_os in
1623     *darwin* )
1624         MACOSX=yes
1625         CFLAGS="$CFLAGS -fno-rtti"
1626         CXXFLAGS="$CXXFLAGS -fno-rtti"
1627         ;;
1628 esac
1629  ac_ext=c
1630 ac_cpp='$CPP $CPPFLAGS'
1631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634 if test -n "$ac_tool_prefix"; then
1635   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640   echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642   if test -n "$CC"; then
1643   ac_cv_prog_CC="$CC" # Let the user override the test.
1644 else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654     break 2
1655   fi
1656 done
1657 done
1658
1659 fi
1660 fi
1661 CC=$ac_cv_prog_CC
1662 if test -n "$CC"; then
1663   echo "$as_me:$LINENO: result: $CC" >&5
1664 echo "${ECHO_T}$CC" >&6
1665 else
1666   echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1668 fi
1669
1670 fi
1671 if test -z "$ac_cv_prog_CC"; then
1672   ac_ct_CC=$CC
1673   # Extract the first word of "gcc", so it can be a program name with args.
1674 set dummy 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_ac_ct_CC+set}" = set; then
1678   echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680   if test -n "$ac_ct_CC"; then
1681   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1700 if test -n "$ac_ct_CC"; then
1701   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1702 echo "${ECHO_T}$ac_ct_CC" >&6
1703 else
1704   echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1706 fi
1707
1708   CC=$ac_ct_CC
1709 else
1710   CC="$ac_cv_prog_CC"
1711 fi
1712
1713 if test -z "$CC"; then
1714   if test -n "$ac_tool_prefix"; then
1715   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1716 set dummy ${ac_tool_prefix}cc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_CC+set}" = set; then
1720   echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722   if test -n "$CC"; then
1723   ac_cv_prog_CC="$CC" # Let the user override the test.
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1727 do
1728   IFS=$as_save_IFS
1729   test -z "$as_dir" && as_dir=.
1730   for ac_exec_ext in '' $ac_executable_extensions; do
1731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732     ac_cv_prog_CC="${ac_tool_prefix}cc"
1733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734     break 2
1735   fi
1736 done
1737 done
1738
1739 fi
1740 fi
1741 CC=$ac_cv_prog_CC
1742 if test -n "$CC"; then
1743   echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1745 else
1746   echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1748 fi
1749
1750 fi
1751 if test -z "$ac_cv_prog_CC"; then
1752   ac_ct_CC=$CC
1753   # Extract the first word of "cc", so it can be a program name with args.
1754 set dummy 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_ac_ct_CC+set}" = set; then
1758   echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760   if test -n "$ac_ct_CC"; then
1761   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780 if test -n "$ac_ct_CC"; then
1781   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782 echo "${ECHO_T}$ac_ct_CC" >&6
1783 else
1784   echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1786 fi
1787
1788   CC=$ac_ct_CC
1789 else
1790   CC="$ac_cv_prog_CC"
1791 fi
1792
1793 fi
1794 if test -z "$CC"; then
1795   # Extract the first word of "cc", so it can be a program name with args.
1796 set dummy cc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800   echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802   if test -n "$CC"; then
1803   ac_cv_prog_CC="$CC" # Let the user override the test.
1804 else
1805   ac_prog_rejected=no
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 for as_dir in $PATH
1808 do
1809   IFS=$as_save_IFS
1810   test -z "$as_dir" && as_dir=.
1811   for ac_exec_ext in '' $ac_executable_extensions; do
1812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1814        ac_prog_rejected=yes
1815        continue
1816      fi
1817     ac_cv_prog_CC="cc"
1818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819     break 2
1820   fi
1821 done
1822 done
1823
1824 if test $ac_prog_rejected = yes; then
1825   # We found a bogon in the path, so make sure we never use it.
1826   set dummy $ac_cv_prog_CC
1827   shift
1828   if test $# != 0; then
1829     # We chose a different compiler from the bogus one.
1830     # However, it has the same basename, so the bogon will be chosen
1831     # first if we set CC to just the basename; use the full file name.
1832     shift
1833     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1834   fi
1835 fi
1836 fi
1837 fi
1838 CC=$ac_cv_prog_CC
1839 if test -n "$CC"; then
1840   echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1842 else
1843   echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1845 fi
1846
1847 fi
1848 if test -z "$CC"; then
1849   if test -n "$ac_tool_prefix"; then
1850   for ac_prog in cl
1851   do
1852     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857   echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859   if test -n "$CC"; then
1860   ac_cv_prog_CC="$CC" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1864 do
1865   IFS=$as_save_IFS
1866   test -z "$as_dir" && as_dir=.
1867   for ac_exec_ext in '' $ac_executable_extensions; do
1868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871     break 2
1872   fi
1873 done
1874 done
1875
1876 fi
1877 fi
1878 CC=$ac_cv_prog_CC
1879 if test -n "$CC"; then
1880   echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1882 else
1883   echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1885 fi
1886
1887     test -n "$CC" && break
1888   done
1889 fi
1890 if test -z "$CC"; then
1891   ac_ct_CC=$CC
1892   for ac_prog in cl
1893 do
1894   # Extract the first word of "$ac_prog", so it can be a program name with args.
1895 set dummy $ac_prog; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1899   echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901   if test -n "$ac_ct_CC"; then
1902   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1903 else
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1906 do
1907   IFS=$as_save_IFS
1908   test -z "$as_dir" && as_dir=.
1909   for ac_exec_ext in '' $ac_executable_extensions; do
1910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911     ac_cv_prog_ac_ct_CC="$ac_prog"
1912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913     break 2
1914   fi
1915 done
1916 done
1917
1918 fi
1919 fi
1920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921 if test -n "$ac_ct_CC"; then
1922   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923 echo "${ECHO_T}$ac_ct_CC" >&6
1924 else
1925   echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1927 fi
1928
1929   test -n "$ac_ct_CC" && break
1930 done
1931
1932   CC=$ac_ct_CC
1933 fi
1934
1935 fi
1936
1937
1938 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: no acceptable C compiler found in \$PATH
1941 See \`config.log' for more details." >&2;}
1942    { (exit 1); exit 1; }; }
1943
1944 # Provide some information about the compiler.
1945 echo "$as_me:$LINENO:" \
1946      "checking for C compiler version" >&5
1947 ac_compiler=`set X $ac_compile; echo $2`
1948 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1949   (eval $ac_compiler --version </dev/null >&5) 2>&5
1950   ac_status=$?
1951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952   (exit $ac_status); }
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1954   (eval $ac_compiler -v </dev/null >&5) 2>&5
1955   ac_status=$?
1956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957   (exit $ac_status); }
1958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1959   (eval $ac_compiler -V </dev/null >&5) 2>&5
1960   ac_status=$?
1961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962   (exit $ac_status); }
1963
1964 cat >conftest.$ac_ext <<_ACEOF
1965 /* confdefs.h.  */
1966 _ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h.  */
1970
1971 int
1972 main ()
1973 {
1974
1975   ;
1976   return 0;
1977 }
1978 _ACEOF
1979 ac_clean_files_save=$ac_clean_files
1980 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1981 # Try to create an executable without -o first, disregard a.out.
1982 # It will help us diagnose broken compilers, and finding out an intuition
1983 # of exeext.
1984 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1985 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1986 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1987 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1988   (eval $ac_link_default) 2>&5
1989   ac_status=$?
1990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991   (exit $ac_status); }; then
1992   # Find the output, starting from the most likely.  This scheme is
1993 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1994 # resort.
1995
1996 # Be careful to initialize this variable, since it used to be cached.
1997 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1998 ac_cv_exeext=
1999 # b.out is created by i960 compilers.
2000 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2001 do
2002   test -f "$ac_file" || continue
2003   case $ac_file in
2004     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2005         ;;
2006     conftest.$ac_ext )
2007         # This is the source file.
2008         ;;
2009     [ab].out )
2010         # We found the default executable, but exeext='' is most
2011         # certainly right.
2012         break;;
2013     *.* )
2014         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2015         # FIXME: I believe we export ac_cv_exeext for Libtool,
2016         # but it would be cool to find out if it's true.  Does anybody
2017         # maintain Libtool? --akim.
2018         export ac_cv_exeext
2019         break;;
2020     * )
2021         break;;
2022   esac
2023 done
2024 else
2025   echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2027
2028 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2029 See \`config.log' for more details." >&5
2030 echo "$as_me: error: C compiler cannot create executables
2031 See \`config.log' for more details." >&2;}
2032    { (exit 77); exit 77; }; }
2033 fi
2034
2035 ac_exeext=$ac_cv_exeext
2036 echo "$as_me:$LINENO: result: $ac_file" >&5
2037 echo "${ECHO_T}$ac_file" >&6
2038
2039 # Check the compiler produces executables we can run.  If not, either
2040 # the compiler is broken, or we cross compile.
2041 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2042 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2043 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2044 # If not cross compiling, check that we can run a simple program.
2045 if test "$cross_compiling" != yes; then
2046   if { ac_try='./$ac_file'
2047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048   (eval $ac_try) 2>&5
2049   ac_status=$?
2050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051   (exit $ac_status); }; }; then
2052     cross_compiling=no
2053   else
2054     if test "$cross_compiling" = maybe; then
2055         cross_compiling=yes
2056     else
2057         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2058 If you meant to cross compile, use \`--host'.
2059 See \`config.log' for more details." >&5
2060 echo "$as_me: error: cannot run C compiled programs.
2061 If you meant to cross compile, use \`--host'.
2062 See \`config.log' for more details." >&2;}
2063    { (exit 1); exit 1; }; }
2064     fi
2065   fi
2066 fi
2067 echo "$as_me:$LINENO: result: yes" >&5
2068 echo "${ECHO_T}yes" >&6
2069
2070 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2071 ac_clean_files=$ac_clean_files_save
2072 # Check the compiler produces executables we can run.  If not, either
2073 # the compiler is broken, or we cross compile.
2074 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2075 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2076 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2077 echo "${ECHO_T}$cross_compiling" >&6
2078
2079 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2080 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2082   (eval $ac_link) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }; then
2086   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2087 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2088 # work properly (i.e., refer to `conftest.exe'), while it won't with
2089 # `rm'.
2090 for ac_file in conftest.exe conftest conftest.*; do
2091   test -f "$ac_file" || continue
2092   case $ac_file in
2093     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2094     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2095           export ac_cv_exeext
2096           break;;
2097     * ) break;;
2098   esac
2099 done
2100 else
2101   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2104 See \`config.log' for more details." >&2;}
2105    { (exit 1); exit 1; }; }
2106 fi
2107
2108 rm -f conftest$ac_cv_exeext
2109 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2110 echo "${ECHO_T}$ac_cv_exeext" >&6
2111
2112 rm -f conftest.$ac_ext
2113 EXEEXT=$ac_cv_exeext
2114 ac_exeext=$EXEEXT
2115 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2116 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2117 if test "${ac_cv_objext+set}" = set; then
2118   echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120   cat >conftest.$ac_ext <<_ACEOF
2121 /* confdefs.h.  */
2122 _ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h.  */
2126
2127 int
2128 main ()
2129 {
2130
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 rm -f conftest.o conftest.obj
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137   (eval $ac_compile) 2>&5
2138   ac_status=$?
2139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140   (exit $ac_status); }; then
2141   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2142   case $ac_file in
2143     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2144     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2145        break;;
2146   esac
2147 done
2148 else
2149   echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2151
2152 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2153 See \`config.log' for more details." >&5
2154 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2155 See \`config.log' for more details." >&2;}
2156    { (exit 1); exit 1; }; }
2157 fi
2158
2159 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2160 fi
2161 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2162 echo "${ECHO_T}$ac_cv_objext" >&6
2163 OBJEXT=$ac_cv_objext
2164 ac_objext=$OBJEXT
2165 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2166 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2167 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2168   echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170   cat >conftest.$ac_ext <<_ACEOF
2171 /* confdefs.h.  */
2172 _ACEOF
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h.  */
2176
2177 int
2178 main ()
2179 {
2180 #ifndef __GNUC__
2181        choke me
2182 #endif
2183
2184   ;
2185   return 0;
2186 }
2187 _ACEOF
2188 rm -f conftest.$ac_objext
2189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190   (eval $ac_compile) 2>conftest.er1
2191   ac_status=$?
2192   grep -v '^ *+' conftest.er1 >conftest.err
2193   rm -f conftest.er1
2194   cat conftest.err >&5
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); } &&
2197          { ac_try='test -z "$ac_c_werror_flag"
2198                          || test ! -s conftest.err'
2199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200   (eval $ac_try) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); }; } &&
2204          { ac_try='test -s conftest.$ac_objext'
2205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206   (eval $ac_try) 2>&5
2207   ac_status=$?
2208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209   (exit $ac_status); }; }; then
2210   ac_compiler_gnu=yes
2211 else
2212   echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214
2215 ac_compiler_gnu=no
2216 fi
2217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2218 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2219
2220 fi
2221 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2222 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2223 GCC=`test $ac_compiler_gnu = yes && echo yes`
2224 ac_test_CFLAGS=${CFLAGS+set}
2225 ac_save_CFLAGS=$CFLAGS
2226 CFLAGS="-g"
2227 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2228 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2229 if test "${ac_cv_prog_cc_g+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   cat >conftest.$ac_ext <<_ACEOF
2233 /* confdefs.h.  */
2234 _ACEOF
2235 cat confdefs.h >>conftest.$ac_ext
2236 cat >>conftest.$ac_ext <<_ACEOF
2237 /* end confdefs.h.  */
2238
2239 int
2240 main ()
2241 {
2242
2243   ;
2244   return 0;
2245 }
2246 _ACEOF
2247 rm -f conftest.$ac_objext
2248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249   (eval $ac_compile) 2>conftest.er1
2250   ac_status=$?
2251   grep -v '^ *+' conftest.er1 >conftest.err
2252   rm -f conftest.er1
2253   cat conftest.err >&5
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); } &&
2256          { ac_try='test -z "$ac_c_werror_flag"
2257                          || test ! -s conftest.err'
2258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259   (eval $ac_try) 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); }; } &&
2263          { ac_try='test -s conftest.$ac_objext'
2264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265   (eval $ac_try) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; }; then
2269   ac_cv_prog_cc_g=yes
2270 else
2271   echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2273
2274 ac_cv_prog_cc_g=no
2275 fi
2276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2277 fi
2278 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2279 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2280 if test "$ac_test_CFLAGS" = set; then
2281   CFLAGS=$ac_save_CFLAGS
2282 elif test $ac_cv_prog_cc_g = yes; then
2283   if test "$GCC" = yes; then
2284     CFLAGS="-g -O2"
2285   else
2286     CFLAGS="-g"
2287   fi
2288 else
2289   if test "$GCC" = yes; then
2290     CFLAGS="-O2"
2291   else
2292     CFLAGS=
2293   fi
2294 fi
2295 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2296 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2297 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   ac_cv_prog_cc_stdc=no
2301 ac_save_CC=$CC
2302 cat >conftest.$ac_ext <<_ACEOF
2303 /* confdefs.h.  */
2304 _ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h.  */
2308 #include <stdarg.h>
2309 #include <stdio.h>
2310 #include <sys/types.h>
2311 #include <sys/stat.h>
2312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2313 struct buf { int x; };
2314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2315 static char *e (p, i)
2316      char **p;
2317      int i;
2318 {
2319   return p[i];
2320 }
2321 static char *f (char * (*g) (char **, int), char **p, ...)
2322 {
2323   char *s;
2324   va_list v;
2325   va_start (v,p);
2326   s = g (p, va_arg (v,int));
2327   va_end (v);
2328   return s;
2329 }
2330
2331 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2332    function prototypes and stuff, but not '\xHH' hex character constants.
2333    These don't provoke an error unfortunately, instead are silently treated
2334    as 'x'.  The following induces an error, until -std1 is added to get
2335    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2336    array size at least.  It's necessary to write '\x00'==0 to get something
2337    that's true only with -std1.  */
2338 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2339
2340 int test (int i, double x);
2341 struct s1 {int (*f) (int a);};
2342 struct s2 {int (*f) (double a);};
2343 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2344 int argc;
2345 char **argv;
2346 int
2347 main ()
2348 {
2349 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2350   ;
2351   return 0;
2352 }
2353 _ACEOF
2354 # Don't try gcc -ansi; that turns off useful extensions and
2355 # breaks some systems' header files.
2356 # AIX                   -qlanglvl=ansi
2357 # Ultrix and OSF/1      -std1
2358 # HP-UX 10.20 and later -Ae
2359 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2360 # SVR4                  -Xc -D__EXTENSIONS__
2361 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2362 do
2363   CC="$ac_save_CC $ac_arg"
2364   rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366   (eval $ac_compile) 2>conftest.er1
2367   ac_status=$?
2368   grep -v '^ *+' conftest.er1 >conftest.err
2369   rm -f conftest.er1
2370   cat conftest.err >&5
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); } &&
2373          { ac_try='test -z "$ac_c_werror_flag"
2374                          || test ! -s conftest.err'
2375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376   (eval $ac_try) 2>&5
2377   ac_status=$?
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); }; } &&
2380          { ac_try='test -s conftest.$ac_objext'
2381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382   (eval $ac_try) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }; }; then
2386   ac_cv_prog_cc_stdc=$ac_arg
2387 break
2388 else
2389   echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2391
2392 fi
2393 rm -f conftest.err conftest.$ac_objext
2394 done
2395 rm -f conftest.$ac_ext conftest.$ac_objext
2396 CC=$ac_save_CC
2397
2398 fi
2399
2400 case "x$ac_cv_prog_cc_stdc" in
2401   x|xno)
2402     echo "$as_me:$LINENO: result: none needed" >&5
2403 echo "${ECHO_T}none needed" >&6 ;;
2404   *)
2405     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2406 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2407     CC="$CC $ac_cv_prog_cc_stdc" ;;
2408 esac
2409
2410 # Some people use a C++ compiler to compile C.  Since we use `exit',
2411 # in C++ we need to declare it.  In case someone uses the same compiler
2412 # for both compiling C and C++ we need to have the C++ compiler decide
2413 # the declaration of exit, since it's the most demanding environment.
2414 cat >conftest.$ac_ext <<_ACEOF
2415 #ifndef __cplusplus
2416   choke me
2417 #endif
2418 _ACEOF
2419 rm -f conftest.$ac_objext
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421   (eval $ac_compile) 2>conftest.er1
2422   ac_status=$?
2423   grep -v '^ *+' conftest.er1 >conftest.err
2424   rm -f conftest.er1
2425   cat conftest.err >&5
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); } &&
2428          { ac_try='test -z "$ac_c_werror_flag"
2429                          || test ! -s conftest.err'
2430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431   (eval $ac_try) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; } &&
2435          { ac_try='test -s conftest.$ac_objext'
2436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437   (eval $ac_try) 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; }; then
2441   for ac_declaration in \
2442    '' \
2443    'extern "C" void std::exit (int) throw (); using std::exit;' \
2444    'extern "C" void std::exit (int); using std::exit;' \
2445    'extern "C" void exit (int) throw ();' \
2446    'extern "C" void exit (int);' \
2447    'void exit (int);'
2448 do
2449   cat >conftest.$ac_ext <<_ACEOF
2450 /* confdefs.h.  */
2451 _ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h.  */
2455 $ac_declaration
2456 #include <stdlib.h>
2457 int
2458 main ()
2459 {
2460 exit (42);
2461   ;
2462   return 0;
2463 }
2464 _ACEOF
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467   (eval $ac_compile) 2>conftest.er1
2468   ac_status=$?
2469   grep -v '^ *+' conftest.er1 >conftest.err
2470   rm -f conftest.er1
2471   cat conftest.err >&5
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); } &&
2474          { ac_try='test -z "$ac_c_werror_flag"
2475                          || test ! -s conftest.err'
2476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477   (eval $ac_try) 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; } &&
2481          { ac_try='test -s conftest.$ac_objext'
2482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483   (eval $ac_try) 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; }; then
2487   :
2488 else
2489   echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 continue
2493 fi
2494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495   cat >conftest.$ac_ext <<_ACEOF
2496 /* confdefs.h.  */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h.  */
2501 $ac_declaration
2502 int
2503 main ()
2504 {
2505 exit (42);
2506   ;
2507   return 0;
2508 }
2509 _ACEOF
2510 rm -f conftest.$ac_objext
2511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512   (eval $ac_compile) 2>conftest.er1
2513   ac_status=$?
2514   grep -v '^ *+' conftest.er1 >conftest.err
2515   rm -f conftest.er1
2516   cat conftest.err >&5
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); } &&
2519          { ac_try='test -z "$ac_c_werror_flag"
2520                          || test ! -s conftest.err'
2521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522   (eval $ac_try) 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }; } &&
2526          { ac_try='test -s conftest.$ac_objext'
2527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528   (eval $ac_try) 2>&5
2529   ac_status=$?
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); }; }; then
2532   break
2533 else
2534   echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2536
2537 fi
2538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2539 done
2540 rm -f conftest*
2541 if test -n "$ac_declaration"; then
2542   echo '#ifdef __cplusplus' >>confdefs.h
2543   echo $ac_declaration      >>confdefs.h
2544   echo '#endif'             >>confdefs.h
2545 fi
2546
2547 else
2548   echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 fi
2552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2553 ac_ext=c
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558
2559  ac_ext=cc
2560 ac_cpp='$CXXCPP $CPPFLAGS'
2561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2564 if test -n "$ac_tool_prefix"; then
2565   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2566   do
2567     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2569 echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2571 if test "${ac_cv_prog_CXX+set}" = set; then
2572   echo $ECHO_N "(cached) $ECHO_C" >&6
2573 else
2574   if test -n "$CXX"; then
2575   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2579 do
2580   IFS=$as_save_IFS
2581   test -z "$as_dir" && as_dir=.
2582   for ac_exec_ext in '' $ac_executable_extensions; do
2583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586     break 2
2587   fi
2588 done
2589 done
2590
2591 fi
2592 fi
2593 CXX=$ac_cv_prog_CXX
2594 if test -n "$CXX"; then
2595   echo "$as_me:$LINENO: result: $CXX" >&5
2596 echo "${ECHO_T}$CXX" >&6
2597 else
2598   echo "$as_me:$LINENO: result: no" >&5
2599 echo "${ECHO_T}no" >&6
2600 fi
2601
2602     test -n "$CXX" && break
2603   done
2604 fi
2605 if test -z "$CXX"; then
2606   ac_ct_CXX=$CXX
2607   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2608 do
2609   # Extract the first word of "$ac_prog", so it can be a program name with args.
2610 set dummy $ac_prog; ac_word=$2
2611 echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2613 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2614   echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616   if test -n "$ac_ct_CXX"; then
2617   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622   IFS=$as_save_IFS
2623   test -z "$as_dir" && as_dir=.
2624   for ac_exec_ext in '' $ac_executable_extensions; do
2625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626     ac_cv_prog_ac_ct_CXX="$ac_prog"
2627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628     break 2
2629   fi
2630 done
2631 done
2632
2633 fi
2634 fi
2635 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2636 if test -n "$ac_ct_CXX"; then
2637   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2638 echo "${ECHO_T}$ac_ct_CXX" >&6
2639 else
2640   echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6
2642 fi
2643
2644   test -n "$ac_ct_CXX" && break
2645 done
2646 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2647
2648   CXX=$ac_ct_CXX
2649 fi
2650
2651
2652 # Provide some information about the compiler.
2653 echo "$as_me:$LINENO:" \
2654      "checking for C++ compiler version" >&5
2655 ac_compiler=`set X $ac_compile; echo $2`
2656 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2657   (eval $ac_compiler --version </dev/null >&5) 2>&5
2658   ac_status=$?
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); }
2661 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2662   (eval $ac_compiler -v </dev/null >&5) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }
2666 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2667   (eval $ac_compiler -V </dev/null >&5) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }
2671
2672 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2673 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2674 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2675   echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677   cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683
2684 int
2685 main ()
2686 {
2687 #ifndef __GNUC__
2688        choke me
2689 #endif
2690
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697   (eval $ac_compile) 2>conftest.er1
2698   ac_status=$?
2699   grep -v '^ *+' conftest.er1 >conftest.err
2700   rm -f conftest.er1
2701   cat conftest.err >&5
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); } &&
2704          { ac_try='test -z "$ac_cxx_werror_flag"
2705                          || test ! -s conftest.err'
2706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707   (eval $ac_try) 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }; } &&
2711          { ac_try='test -s conftest.$ac_objext'
2712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713   (eval $ac_try) 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; }; then
2717   ac_compiler_gnu=yes
2718 else
2719   echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722 ac_compiler_gnu=no
2723 fi
2724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2725 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2726
2727 fi
2728 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2729 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2730 GXX=`test $ac_compiler_gnu = yes && echo yes`
2731 ac_test_CXXFLAGS=${CXXFLAGS+set}
2732 ac_save_CXXFLAGS=$CXXFLAGS
2733 CXXFLAGS="-g"
2734 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2735 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2736 if test "${ac_cv_prog_cxx_g+set}" = set; then
2737   echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739   cat >conftest.$ac_ext <<_ACEOF
2740 /* confdefs.h.  */
2741 _ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h.  */
2745
2746 int
2747 main ()
2748 {
2749
2750   ;
2751   return 0;
2752 }
2753 _ACEOF
2754 rm -f conftest.$ac_objext
2755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756   (eval $ac_compile) 2>conftest.er1
2757   ac_status=$?
2758   grep -v '^ *+' conftest.er1 >conftest.err
2759   rm -f conftest.er1
2760   cat conftest.err >&5
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); } &&
2763          { ac_try='test -z "$ac_cxx_werror_flag"
2764                          || test ! -s conftest.err'
2765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766   (eval $ac_try) 2>&5
2767   ac_status=$?
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); }; } &&
2770          { ac_try='test -s conftest.$ac_objext'
2771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772   (eval $ac_try) 2>&5
2773   ac_status=$?
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); }; }; then
2776   ac_cv_prog_cxx_g=yes
2777 else
2778   echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781 ac_cv_prog_cxx_g=no
2782 fi
2783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2784 fi
2785 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2786 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2787 if test "$ac_test_CXXFLAGS" = set; then
2788   CXXFLAGS=$ac_save_CXXFLAGS
2789 elif test $ac_cv_prog_cxx_g = yes; then
2790   if test "$GXX" = yes; then
2791     CXXFLAGS="-g -O2"
2792   else
2793     CXXFLAGS="-g"
2794   fi
2795 else
2796   if test "$GXX" = yes; then
2797     CXXFLAGS="-O2"
2798   else
2799     CXXFLAGS=
2800   fi
2801 fi
2802 for ac_declaration in \
2803    '' \
2804    'extern "C" void std::exit (int) throw (); using std::exit;' \
2805    'extern "C" void std::exit (int); using std::exit;' \
2806    'extern "C" void exit (int) throw ();' \
2807    'extern "C" void exit (int);' \
2808    'void exit (int);'
2809 do
2810   cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h.  */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h.  */
2816 $ac_declaration
2817 #include <stdlib.h>
2818 int
2819 main ()
2820 {
2821 exit (42);
2822   ;
2823   return 0;
2824 }
2825 _ACEOF
2826 rm -f conftest.$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828   (eval $ac_compile) 2>conftest.er1
2829   ac_status=$?
2830   grep -v '^ *+' conftest.er1 >conftest.err
2831   rm -f conftest.er1
2832   cat conftest.err >&5
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); } &&
2835          { ac_try='test -z "$ac_cxx_werror_flag"
2836                          || test ! -s conftest.err'
2837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838   (eval $ac_try) 2>&5
2839   ac_status=$?
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); }; } &&
2842          { ac_try='test -s conftest.$ac_objext'
2843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844   (eval $ac_try) 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); }; }; then
2848   :
2849 else
2850   echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853 continue
2854 fi
2855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2856   cat >conftest.$ac_ext <<_ACEOF
2857 /* confdefs.h.  */
2858 _ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h.  */
2862 $ac_declaration
2863 int
2864 main ()
2865 {
2866 exit (42);
2867   ;
2868   return 0;
2869 }
2870 _ACEOF
2871 rm -f conftest.$ac_objext
2872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2873   (eval $ac_compile) 2>conftest.er1
2874   ac_status=$?
2875   grep -v '^ *+' conftest.er1 >conftest.err
2876   rm -f conftest.er1
2877   cat conftest.err >&5
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); } &&
2880          { ac_try='test -z "$ac_cxx_werror_flag"
2881                          || test ! -s conftest.err'
2882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883   (eval $ac_try) 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }; } &&
2887          { ac_try='test -s conftest.$ac_objext'
2888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889   (eval $ac_try) 2>&5
2890   ac_status=$?
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); }; }; then
2893   break
2894 else
2895   echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898 fi
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900 done
2901 rm -f conftest*
2902 if test -n "$ac_declaration"; then
2903   echo '#ifdef __cplusplus' >>confdefs.h
2904   echo $ac_declaration      >>confdefs.h
2905   echo '#endif'             >>confdefs.h
2906 fi
2907
2908 ac_ext=c
2909 ac_cpp='$CPP $CPPFLAGS'
2910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913
2914
2915 if test "x$CHECKMEM" '!=' "x";then
2916     CC="ccmalloc $CC"
2917     CXX="ccmalloc $CXX"
2918     #echo running again
2919     #unset ac_cv_prog_CC
2920     #unset ac_cv_prog_CXX
2921     #AC_PROG_CC
2922     #AC_PROG_CXX
2923 fi
2924  ac_ext=c
2925 ac_cpp='$CPP $CPPFLAGS'
2926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2929 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2930 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2931 # On Suns, sometimes $CPP names a directory.
2932 if test -n "$CPP" && test -d "$CPP"; then
2933   CPP=
2934 fi
2935 if test -z "$CPP"; then
2936   if test "${ac_cv_prog_CPP+set}" = set; then
2937   echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939       # Double quotes because CPP needs to be expanded
2940     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2941     do
2942       ac_preproc_ok=false
2943 for ac_c_preproc_warn_flag in '' yes
2944 do
2945   # Use a header file that comes with gcc, so configuring glibc
2946   # with a fresh cross-compiler works.
2947   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2948   # <limits.h> exists even on freestanding compilers.
2949   # On the NeXT, cc -E runs the code through the compiler's parser,
2950   # not just through cpp. "Syntax error" is here to catch this case.
2951   cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h.  */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h.  */
2957 #ifdef __STDC__
2958 # include <limits.h>
2959 #else
2960 # include <assert.h>
2961 #endif
2962                      Syntax error
2963 _ACEOF
2964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2965   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2966   ac_status=$?
2967   grep -v '^ *+' conftest.er1 >conftest.err
2968   rm -f conftest.er1
2969   cat conftest.err >&5
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); } >/dev/null; then
2972   if test -s conftest.err; then
2973     ac_cpp_err=$ac_c_preproc_warn_flag
2974     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2975   else
2976     ac_cpp_err=
2977   fi
2978 else
2979   ac_cpp_err=yes
2980 fi
2981 if test -z "$ac_cpp_err"; then
2982   :
2983 else
2984   echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986
2987   # Broken: fails on valid input.
2988 continue
2989 fi
2990 rm -f conftest.err conftest.$ac_ext
2991
2992   # OK, works on sane cases.  Now check whether non-existent headers
2993   # can be detected and how.
2994   cat >conftest.$ac_ext <<_ACEOF
2995 /* confdefs.h.  */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h.  */
3000 #include <ac_nonexistent.h>
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   # Broken: success on invalid input.
3021 continue
3022 else
3023   echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3025
3026   # Passes both tests.
3027 ac_preproc_ok=:
3028 break
3029 fi
3030 rm -f conftest.err conftest.$ac_ext
3031
3032 done
3033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3034 rm -f conftest.err conftest.$ac_ext
3035 if $ac_preproc_ok; then
3036   break
3037 fi
3038
3039     done
3040     ac_cv_prog_CPP=$CPP
3041
3042 fi
3043   CPP=$ac_cv_prog_CPP
3044 else
3045   ac_cv_prog_CPP=$CPP
3046 fi
3047 echo "$as_me:$LINENO: result: $CPP" >&5
3048 echo "${ECHO_T}$CPP" >&6
3049 ac_preproc_ok=false
3050 for ac_c_preproc_warn_flag in '' yes
3051 do
3052   # Use a header file that comes with gcc, so configuring glibc
3053   # with a fresh cross-compiler works.
3054   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3055   # <limits.h> exists even on freestanding compilers.
3056   # On the NeXT, cc -E runs the code through the compiler's parser,
3057   # not just through cpp. "Syntax error" is here to catch this case.
3058   cat >conftest.$ac_ext <<_ACEOF
3059 /* confdefs.h.  */
3060 _ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h.  */
3064 #ifdef __STDC__
3065 # include <limits.h>
3066 #else
3067 # include <assert.h>
3068 #endif
3069                      Syntax error
3070 _ACEOF
3071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3072   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3073   ac_status=$?
3074   grep -v '^ *+' conftest.er1 >conftest.err
3075   rm -f conftest.er1
3076   cat conftest.err >&5
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); } >/dev/null; then
3079   if test -s conftest.err; then
3080     ac_cpp_err=$ac_c_preproc_warn_flag
3081     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3082   else
3083     ac_cpp_err=
3084   fi
3085 else
3086   ac_cpp_err=yes
3087 fi
3088 if test -z "$ac_cpp_err"; then
3089   :
3090 else
3091   echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3093
3094   # Broken: fails on valid input.
3095 continue
3096 fi
3097 rm -f conftest.err conftest.$ac_ext
3098
3099   # OK, works on sane cases.  Now check whether non-existent headers
3100   # can be detected and how.
3101   cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h.  */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h.  */
3107 #include <ac_nonexistent.h>
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   # Broken: success on invalid input.
3128 continue
3129 else
3130   echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3132
3133   # Passes both tests.
3134 ac_preproc_ok=:
3135 break
3136 fi
3137 rm -f conftest.err conftest.$ac_ext
3138
3139 done
3140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3141 rm -f conftest.err conftest.$ac_ext
3142 if $ac_preproc_ok; then
3143   :
3144 else
3145   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3146 See \`config.log' for more details." >&5
3147 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3148 See \`config.log' for more details." >&2;}
3149    { (exit 1); exit 1; }; }
3150 fi
3151
3152 ac_ext=c
3153 ac_cpp='$CPP $CPPFLAGS'
3154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3157
3158
3159  if test -n "$ac_tool_prefix"; then
3160   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3161 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3162 echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164 if test "${ac_cv_prog_RANLIB+set}" = set; then
3165   echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167   if test -n "$RANLIB"; then
3168   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173   IFS=$as_save_IFS
3174   test -z "$as_dir" && as_dir=.
3175   for ac_exec_ext in '' $ac_executable_extensions; do
3176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179     break 2
3180   fi
3181 done
3182 done
3183
3184 fi
3185 fi
3186 RANLIB=$ac_cv_prog_RANLIB
3187 if test -n "$RANLIB"; then
3188   echo "$as_me:$LINENO: result: $RANLIB" >&5
3189 echo "${ECHO_T}$RANLIB" >&6
3190 else
3191   echo "$as_me:$LINENO: result: no" >&5
3192 echo "${ECHO_T}no" >&6
3193 fi
3194
3195 fi
3196 if test -z "$ac_cv_prog_RANLIB"; then
3197   ac_ct_RANLIB=$RANLIB
3198   # Extract the first word of "ranlib", so it can be a program name with args.
3199 set dummy 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_ac_ct_RANLIB+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205   if test -n "$ac_ct_RANLIB"; then
3206   ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="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   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3223 fi
3224 fi
3225 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3226 if test -n "$ac_ct_RANLIB"; then
3227   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3228 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3229 else
3230   echo "$as_me:$LINENO: result: no" >&5
3231 echo "${ECHO_T}no" >&6
3232 fi
3233
3234   RANLIB=$ac_ct_RANLIB
3235 else
3236   RANLIB="$ac_cv_prog_RANLIB"
3237 fi
3238
3239  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3240 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3241 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3242 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3243   echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245   cat >conftest.make <<\_ACEOF
3246 all:
3247         @echo 'ac_maketemp="$(MAKE)"'
3248 _ACEOF
3249 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3250 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3251 if test -n "$ac_maketemp"; then
3252   eval ac_cv_prog_make_${ac_make}_set=yes
3253 else
3254   eval ac_cv_prog_make_${ac_make}_set=no
3255 fi
3256 rm -f conftest.make
3257 fi
3258 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3259   echo "$as_me:$LINENO: result: yes" >&5
3260 echo "${ECHO_T}yes" >&6
3261   SET_MAKE=
3262 else
3263   echo "$as_me:$LINENO: result: no" >&5
3264 echo "${ECHO_T}no" >&6
3265   SET_MAKE="MAKE=${MAKE-make}"
3266 fi
3267
3268  # Find a good install program.  We prefer a C program (faster),
3269 # so one script is as good as another.  But avoid the broken or
3270 # incompatible versions:
3271 # SysV /etc/install, /usr/sbin/install
3272 # SunOS /usr/etc/install
3273 # IRIX /sbin/install
3274 # AIX /bin/install
3275 # AmigaOS /C/install, which installs bootblocks on floppy discs
3276 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3277 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3278 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3279 # OS/2's system install, which has a completely different semantic
3280 # ./install, which can be erroneously created by make from ./install.sh.
3281 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3282 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3283 if test -z "$INSTALL"; then
3284 if test "${ac_cv_path_install+set}" = set; then
3285   echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290   IFS=$as_save_IFS
3291   test -z "$as_dir" && as_dir=.
3292   # Account for people who put trailing slashes in PATH elements.
3293 case $as_dir/ in
3294   ./ | .// | /cC/* | \
3295   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3296   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3297   /usr/ucb/* ) ;;
3298   *)
3299     # OSF1 and SCO ODT 3.0 have their own names for install.
3300     # Don't use installbsd from OSF since it installs stuff as root
3301     # by default.
3302     for ac_prog in ginstall scoinst install; do
3303       for ac_exec_ext in '' $ac_executable_extensions; do
3304         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3305           if test $ac_prog = install &&
3306             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3307             # AIX install.  It has an incompatible calling convention.
3308             :
3309           elif test $ac_prog = install &&
3310             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3311             # program-specific install script used by HP pwplus--don't use.
3312             :
3313           else
3314             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3315             break 3
3316           fi
3317         fi
3318       done
3319     done
3320     ;;
3321 esac
3322 done
3323
3324
3325 fi
3326   if test "${ac_cv_path_install+set}" = set; then
3327     INSTALL=$ac_cv_path_install
3328   else
3329     # As a last resort, use the slow shell script.  We don't cache a
3330     # path for INSTALL within a source directory, because that will
3331     # break other packages using the cache if that directory is
3332     # removed, or if the path is relative.
3333     INSTALL=$ac_install_sh
3334   fi
3335 fi
3336 echo "$as_me:$LINENO: result: $INSTALL" >&5
3337 echo "${ECHO_T}$INSTALL" >&6
3338
3339 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3340 # It thinks the first close brace ends the variable substitution.
3341 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3342
3343 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3344
3345 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3346
3347  echo "$as_me:$LINENO: checking whether ln -s works" >&5
3348 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3349 LN_S=$as_ln_s
3350 if test "$LN_S" = "ln -s"; then
3351   echo "$as_me:$LINENO: result: yes" >&5
3352 echo "${ECHO_T}yes" >&6
3353 else
3354   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3355 echo "${ECHO_T}no, using $LN_S" >&6
3356 fi
3357
3358  # Check whether --enable-shared or --disable-shared was given.
3359 if test "${enable_shared+set}" = set; then
3360   enableval="$enable_shared"
3361   p=${PACKAGE-default}
3362 case $enableval in
3363 yes) enable_shared=yes ;;
3364 no) enable_shared=no ;;
3365 *)
3366   enable_shared=no
3367   # Look at the argument we got.  We use all the common list separators.
3368   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3369   for pkg in $enableval; do
3370     if test "X$pkg" = "X$p"; then
3371       enable_shared=yes
3372     fi
3373   done
3374   IFS="$ac_save_ifs"
3375   ;;
3376 esac
3377 else
3378   enable_shared=yes
3379 fi;
3380 # Check whether --enable-static or --disable-static was given.
3381 if test "${enable_static+set}" = set; then
3382   enableval="$enable_static"
3383   p=${PACKAGE-default}
3384 case $enableval in
3385 yes) enable_static=yes ;;
3386 no) enable_static=no ;;
3387 *)
3388   enable_static=no
3389   # Look at the argument we got.  We use all the common list separators.
3390   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3391   for pkg in $enableval; do
3392     if test "X$pkg" = "X$p"; then
3393       enable_static=yes
3394     fi
3395   done
3396   IFS="$ac_save_ifs"
3397   ;;
3398 esac
3399 else
3400   enable_static=yes
3401 fi;
3402 # Check whether --enable-fast-install or --disable-fast-install was given.
3403 if test "${enable_fast_install+set}" = set; then
3404   enableval="$enable_fast_install"
3405   p=${PACKAGE-default}
3406 case $enableval in
3407 yes) enable_fast_install=yes ;;
3408 no) enable_fast_install=no ;;
3409 *)
3410   enable_fast_install=no
3411   # Look at the argument we got.  We use all the common list separators.
3412   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3413   for pkg in $enableval; do
3414     if test "X$pkg" = "X$p"; then
3415       enable_fast_install=yes
3416     fi
3417   done
3418   IFS="$ac_save_ifs"
3419   ;;
3420 esac
3421 else
3422   enable_fast_install=yes
3423 fi;
3424 # Find the correct PATH separator.  Usually this is `:', but
3425 # DJGPP uses `;' like DOS.
3426 if test "X${PATH_SEPARATOR+set}" != Xset; then
3427   UNAME=${UNAME-`uname 2>/dev/null`}
3428   case X$UNAME in
3429     *-DOS) lt_cv_sys_path_separator=';' ;;
3430     *)     lt_cv_sys_path_separator=':' ;;
3431   esac
3432   PATH_SEPARATOR=$lt_cv_sys_path_separator
3433 fi
3434
3435
3436 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3437 if test "${with_gnu_ld+set}" = set; then
3438   withval="$with_gnu_ld"
3439   test "$withval" = no || with_gnu_ld=yes
3440 else
3441   with_gnu_ld=no
3442 fi;
3443 ac_prog=ld
3444 if test "$GCC" = yes; then
3445   # Check if gcc -print-prog-name=ld gives a path.
3446   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3447 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3448   case $host in
3449   *-*-mingw*)
3450     # gcc leaves a trailing carriage return which upsets mingw
3451     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3452   *)
3453     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3454   esac
3455   case $ac_prog in
3456     # Accept absolute paths.
3457     [\\/]* | [A-Za-z]:[\\/]*)
3458       re_direlt='/[^/][^/]*/\.\./'
3459       # Canonicalize the path of ld
3460       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3461       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3462         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3463       done
3464       test -z "$LD" && LD="$ac_prog"
3465       ;;
3466   "")
3467     # If it fails, then pretend we aren't using GCC.
3468     ac_prog=ld
3469     ;;
3470   *)
3471     # If it is relative, then search for the first ld in PATH.
3472     with_gnu_ld=unknown
3473     ;;
3474   esac
3475 elif test "$with_gnu_ld" = yes; then
3476   echo "$as_me:$LINENO: checking for GNU ld" >&5
3477 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3478 else
3479   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3480 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3481 fi
3482 if test "${lt_cv_path_LD+set}" = set; then
3483   echo $ECHO_N "(cached) $ECHO_C" >&6
3484 else
3485   if test -z "$LD"; then
3486   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3487   for ac_dir in $PATH; do
3488     test -z "$ac_dir" && ac_dir=.
3489     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3490       lt_cv_path_LD="$ac_dir/$ac_prog"
3491       # Check to see if the program is GNU ld.  I'd rather use --version,
3492       # but apparently some GNU ld's only accept -v.
3493       # Break only if it was the GNU/non-GNU ld that we prefer.
3494       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3495         test "$with_gnu_ld" != no && break
3496       else
3497         test "$with_gnu_ld" != yes && break
3498       fi
3499     fi
3500   done
3501   IFS="$ac_save_ifs"
3502 else
3503   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3504 fi
3505 fi
3506
3507 LD="$lt_cv_path_LD"
3508 if test -n "$LD"; then
3509   echo "$as_me:$LINENO: result: $LD" >&5
3510 echo "${ECHO_T}$LD" >&6
3511 else
3512   echo "$as_me:$LINENO: result: no" >&5
3513 echo "${ECHO_T}no" >&6
3514 fi
3515 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3516 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3517    { (exit 1); exit 1; }; }
3518 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3519 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3520 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3521   echo $ECHO_N "(cached) $ECHO_C" >&6
3522 else
3523   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3524 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3525   lt_cv_prog_gnu_ld=yes
3526 else
3527   lt_cv_prog_gnu_ld=no
3528 fi
3529 fi
3530 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3531 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3532 with_gnu_ld=$lt_cv_prog_gnu_ld
3533
3534
3535 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3536 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3537 if test "${lt_cv_ld_reload_flag+set}" = set; then
3538   echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540   lt_cv_ld_reload_flag='-r'
3541 fi
3542 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3543 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3544 reload_flag=$lt_cv_ld_reload_flag
3545 test -n "$reload_flag" && reload_flag=" $reload_flag"
3546
3547 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3548 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3549 if test "${lt_cv_path_NM+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   if test -n "$NM"; then
3553   # Let the user override the test.
3554   lt_cv_path_NM="$NM"
3555 else
3556   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3557   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3558     test -z "$ac_dir" && ac_dir=.
3559     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3560     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3561       # Check to see if the nm accepts a BSD-compat flag.
3562       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3563       #   nm: unknown option "B" ignored
3564       # Tru64's nm complains that /dev/null is an invalid object file
3565       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3566         lt_cv_path_NM="$tmp_nm -B"
3567         break
3568       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3569         lt_cv_path_NM="$tmp_nm -p"
3570         break
3571       else
3572         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3573         continue # so that we can try to find one that supports BSD flags
3574       fi
3575     fi
3576   done
3577   IFS="$ac_save_ifs"
3578   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3579 fi
3580 fi
3581
3582 NM="$lt_cv_path_NM"
3583 echo "$as_me:$LINENO: result: $NM" >&5
3584 echo "${ECHO_T}$NM" >&6
3585
3586 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3587 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3588 if test "${lt_cv_path_SED+set}" = set; then
3589   echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591   # Loop through the user's path and test for sed and gsed.
3592 # Then use that list of sed's as ones to test for truncation.
3593 as_executable_p="test -f"
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597   IFS=$as_save_IFS
3598   test -z "$as_dir" && as_dir=.
3599   for ac_prog in sed gsed; do
3600     for ac_exec_ext in '' $ac_executable_extensions; do
3601       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3602         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3603       fi
3604     done
3605   done
3606 done
3607
3608   # Create a temporary directory, and hook for its removal unless debugging.
3609 $debug ||
3610 {
3611   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3612   trap '{ (exit 1); exit 1; }' 1 2 13 15
3613 }
3614
3615 # Create a (secure) tmp directory for tmp files.
3616 : ${TMPDIR=/tmp}
3617 {
3618   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3619   test -n "$tmp" && test -d "$tmp"
3620 }  ||
3621 {
3622   tmp=$TMPDIR/sed$$-$RANDOM
3623   (umask 077 && mkdir $tmp)
3624 } ||
3625 {
3626    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3627    { (exit 1); exit 1; }
3628 }
3629   _max=0
3630   _count=0
3631   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3632   # along with /bin/sed that truncates output.
3633   for _sed in $_sed_list /usr/xpg4/bin/sed; do
3634     test ! -f ${_sed} && break
3635     cat /dev/null > "$tmp/sed.in"
3636     _count=0
3637     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3638     # Check for GNU sed and select it if it is found.
3639     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3640       lt_cv_path_SED=${_sed}
3641       break
3642     fi
3643     while true; do
3644       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3645       mv "$tmp/sed.tmp" "$tmp/sed.in"
3646       cp "$tmp/sed.in" "$tmp/sed.nl"
3647       echo >>"$tmp/sed.nl"
3648       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3649       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3650       # 40000 chars as input seems more than enough
3651       test $_count -gt 10 && break
3652       _count=`expr $_count + 1`
3653       if test $_count -gt $_max; then
3654         _max=$_count
3655         lt_cv_path_SED=$_sed
3656       fi
3657     done
3658   done
3659   rm -rf "$tmp"
3660
3661 fi
3662
3663 if test "X$SED" != "X"; then
3664   lt_cv_path_SED=$SED
3665 else
3666   SED=$lt_cv_path_SED
3667 fi
3668 echo "$as_me:$LINENO: result: $SED" >&5
3669 echo "${ECHO_T}$SED" >&6
3670
3671 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3672 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3673 if test "${lt_cv_deplibs_check_method+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   lt_cv_file_magic_cmd='$MAGIC_CMD'
3677 lt_cv_file_magic_test_file=
3678 lt_cv_deplibs_check_method='unknown'
3679 # Need to set the preceding variable on all platforms that support
3680 # interlibrary dependencies.
3681 # 'none' -- dependencies not supported.
3682 # `unknown' -- same as none, but documents that we really don't know.
3683 # 'pass_all' -- all dependencies passed with no checks.
3684 # 'test_compile' -- check by making test program.
3685 # 'file_magic [[regex]]' -- check by looking for files in library path
3686 # which responds to the $file_magic_cmd with a given egrep regex.
3687 # If you have `file' or equivalent on your system and you're not sure
3688 # whether `pass_all' will *always* work, you probably want this one.
3689
3690 case $host_os in
3691 aix4* | aix5*)
3692   lt_cv_deplibs_check_method=pass_all
3693   ;;
3694
3695 beos*)
3696   lt_cv_deplibs_check_method=pass_all
3697   ;;
3698
3699 bsdi4*)
3700   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3701   lt_cv_file_magic_cmd='/usr/bin/file -L'
3702   lt_cv_file_magic_test_file=/shlib/libc.so
3703   ;;
3704
3705 cygwin* | mingw* | pw32*)
3706   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3707   lt_cv_file_magic_cmd='$OBJDUMP -f'
3708   ;;
3709
3710 darwin* | rhapsody*)
3711   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3712   lt_cv_file_magic_cmd='/usr/bin/file -L'
3713   case "$host_os" in
3714   rhapsody* | darwin1.[012])
3715     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3716     ;;
3717   *) # Darwin 1.3 on
3718     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3719     ;;
3720   esac
3721   ;;
3722
3723 freebsd*)
3724   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3725     case $host_cpu in
3726     i*86 )
3727       # Not sure whether the presence of OpenBSD here was a mistake.
3728       # Let's accept both of them until this is cleared up.
3729       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3730       lt_cv_file_magic_cmd=/usr/bin/file
3731       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3732       ;;
3733     esac
3734   else
3735     lt_cv_deplibs_check_method=pass_all
3736   fi
3737   ;;
3738
3739 gnu*)
3740   lt_cv_deplibs_check_method=pass_all
3741   ;;
3742
3743 hpux10.20*|hpux11*)
3744   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3745   lt_cv_file_magic_cmd=/usr/bin/file
3746   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3747   ;;
3748
3749 irix5* | irix6* | nonstopux*)
3750   case $host_os in
3751   irix5* | nonstopux*)
3752     # this will be overridden with pass_all, but let us keep it just in case
3753     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3754     ;;
3755   *)
3756     case $LD in
3757     *-32|*"-32 ") libmagic=32-bit;;
3758     *-n32|*"-n32 ") libmagic=N32;;
3759     *-64|*"-64 ") libmagic=64-bit;;
3760     *) libmagic=never-match;;
3761     esac
3762     # this will be overridden with pass_all, but let us keep it just in case
3763     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3764     ;;
3765   esac
3766   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3767   lt_cv_deplibs_check_method=pass_all
3768   ;;
3769
3770 # This must be Linux ELF.
3771 linux-gnu*)
3772   case $host_cpu in
3773   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3774     lt_cv_deplibs_check_method=pass_all ;;
3775   *)
3776     # glibc up to 2.1.1 does not perform some relocations on ARM
3777     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3778   esac
3779   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3780   ;;
3781
3782 netbsd*)
3783   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3784     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3785   else
3786     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3787   fi
3788   ;;
3789
3790 newos6*)
3791   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3792   lt_cv_file_magic_cmd=/usr/bin/file
3793   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3794   ;;
3795
3796 openbsd*)
3797   lt_cv_file_magic_cmd=/usr/bin/file
3798   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3799   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3800     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3801   else
3802     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3803   fi
3804   ;;
3805
3806 osf3* | osf4* | osf5*)
3807   # this will be overridden with pass_all, but let us keep it just in case
3808   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3809   lt_cv_file_magic_test_file=/shlib/libc.so
3810   lt_cv_deplibs_check_method=pass_all
3811   ;;
3812
3813 sco3.2v5*)
3814   lt_cv_deplibs_check_method=pass_all
3815   ;;
3816
3817 solaris*)
3818   lt_cv_deplibs_check_method=pass_all
3819   lt_cv_file_magic_test_file=/lib/libc.so
3820   ;;
3821
3822 sysv5uw[78]* | sysv4*uw2*)
3823   lt_cv_deplibs_check_method=pass_all
3824   ;;
3825
3826 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3827   case $host_vendor in
3828   motorola)
3829     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]'
3830     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3831     ;;
3832   ncr)
3833     lt_cv_deplibs_check_method=pass_all
3834     ;;
3835   sequent)
3836     lt_cv_file_magic_cmd='/bin/file'
3837     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3838     ;;
3839   sni)
3840     lt_cv_file_magic_cmd='/bin/file'
3841     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3842     lt_cv_file_magic_test_file=/lib/libc.so
3843     ;;
3844   siemens)
3845     lt_cv_deplibs_check_method=pass_all
3846     ;;
3847   esac
3848   ;;
3849 esac
3850
3851 fi
3852 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3853 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3854 file_magic_cmd=$lt_cv_file_magic_cmd
3855 deplibs_check_method=$lt_cv_deplibs_check_method
3856
3857
3858
3859
3860
3861
3862
3863
3864 # Check for command to grab the raw symbol name followed by C symbol from nm.
3865 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3866 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3867 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3868   echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870
3871 # These are sane defaults that work on at least a few old systems.
3872 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3873
3874 # Character class describing NM global symbol codes.
3875 symcode='[BCDEGRST]'
3876
3877 # Regexp to match symbols that can be accessed directly from C.
3878 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3879
3880 # Transform the above into a raw symbol and a C symbol.
3881 symxfrm='\1 \2\3 \3'
3882
3883 # Transform an extracted symbol line into a proper C declaration
3884 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3885
3886 # Transform an extracted symbol line into symbol name and symbol address
3887 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'"
3888
3889 # Define system-specific variables.
3890 case $host_os in
3891 aix*)
3892   symcode='[BCDT]'
3893   ;;
3894 cygwin* | mingw* | pw32*)
3895   symcode='[ABCDGISTW]'
3896   ;;
3897 hpux*) # Its linker distinguishes data from code symbols
3898   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3899   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'"
3900   ;;
3901 irix* | nonstopux*)
3902   symcode='[BCDEGRST]'
3903   ;;
3904 osf*)
3905   symcode='[BCDEGQRST]'
3906   ;;
3907 solaris* | sysv5*)
3908   symcode='[BDT]'
3909   ;;
3910 sysv4)
3911   symcode='[DFNSTU]'
3912   ;;
3913 esac
3914
3915 # Handle CRLF in mingw tool chain
3916 opt_cr=
3917 case $host_os in
3918 mingw*)
3919   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3920   ;;
3921 esac
3922
3923 # If we're using GNU nm, then use its standard symbol codes.
3924 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3925   symcode='[ABCDGISTW]'
3926 fi
3927
3928 # Try without a prefix undercore, then with it.
3929 for ac_symprfx in "" "_"; do
3930
3931   # Write the raw and C identifiers.
3932 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3933
3934   # Check to see that the pipe works correctly.
3935   pipe_works=no
3936   rm -f conftest*
3937   cat > conftest.$ac_ext <<EOF
3938 #ifdef __cplusplus
3939 extern "C" {
3940 #endif
3941 char nm_test_var;
3942 void nm_test_func(){}
3943 #ifdef __cplusplus
3944 }
3945 #endif
3946 int main(){nm_test_var='a';nm_test_func();return(0);}
3947 EOF
3948
3949   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3950   (eval $ac_compile) 2>&5
3951   ac_status=$?
3952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); }; then
3954     # Now try to grab the symbols.
3955     nlist=conftest.nm
3956     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3957   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3958   ac_status=$?
3959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); } && test -s "$nlist"; then
3961       # Try sorting and uniquifying the output.
3962       if sort "$nlist" | uniq > "$nlist"T; then
3963         mv -f "$nlist"T "$nlist"
3964       else
3965         rm -f "$nlist"T
3966       fi
3967
3968       # Make sure that we snagged all the symbols we need.
3969       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3970         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3971           cat <<EOF > conftest.$ac_ext
3972 #ifdef __cplusplus
3973 extern "C" {
3974 #endif
3975
3976 EOF
3977           # Now generate the symbol file.
3978           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3979
3980           cat <<EOF >> conftest.$ac_ext
3981 #if defined (__STDC__) && __STDC__
3982 # define lt_ptr void *
3983 #else
3984 # define lt_ptr char *
3985 # define const
3986 #endif
3987
3988 /* The mapping between symbol names and symbols. */
3989 const struct {
3990   const char *name;
3991   lt_ptr address;
3992 }
3993 lt_preloaded_symbols[] =
3994 {
3995 EOF
3996           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3997           cat <<\EOF >> conftest.$ac_ext
3998   {0, (lt_ptr) 0}
3999 };
4000
4001 #ifdef __cplusplus
4002 }
4003 #endif
4004 EOF
4005           # Now try linking the two files.
4006           mv conftest.$ac_objext conftstm.$ac_objext
4007           save_LIBS="$LIBS"
4008           save_CFLAGS="$CFLAGS"
4009           LIBS="conftstm.$ac_objext"
4010           CFLAGS="$CFLAGS$no_builtin_flag"
4011           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4012   (eval $ac_link) 2>&5
4013   ac_status=$?
4014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015   (exit $ac_status); } && test -s conftest$ac_exeext; then
4016             pipe_works=yes
4017           fi
4018           LIBS="$save_LIBS"
4019           CFLAGS="$save_CFLAGS"
4020         else
4021           echo "cannot find nm_test_func in $nlist" >&5
4022         fi
4023       else
4024         echo "cannot find nm_test_var in $nlist" >&5
4025       fi
4026     else
4027       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4028     fi
4029   else
4030     echo "$progname: failed program was:" >&5
4031     cat conftest.$ac_ext >&5
4032   fi
4033   rm -f conftest* conftst*
4034
4035   # Do not use the global_symbol_pipe unless it works.
4036   if test "$pipe_works" = yes; then
4037     break
4038   else
4039     lt_cv_sys_global_symbol_pipe=
4040   fi
4041 done
4042
4043 fi
4044
4045 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4046 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4047   global_symbol_to_cdecl=
4048   global_symbol_to_c_name_address=
4049 else
4050   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4051   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4052 fi
4053 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4054 then
4055   echo "$as_me:$LINENO: result: failed" >&5
4056 echo "${ECHO_T}failed" >&6
4057 else
4058   echo "$as_me:$LINENO: result: ok" >&5
4059 echo "${ECHO_T}ok" >&6
4060 fi
4061
4062
4063 echo "$as_me:$LINENO: checking for egrep" >&5
4064 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4065 if test "${ac_cv_prog_egrep+set}" = set; then
4066   echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4069     then ac_cv_prog_egrep='grep -E'
4070     else ac_cv_prog_egrep='egrep'
4071     fi
4072 fi
4073 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4074 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4075  EGREP=$ac_cv_prog_egrep
4076
4077
4078 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4079 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4080 if test "${ac_cv_header_stdc+set}" = set; then
4081   echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083   cat >conftest.$ac_ext <<_ACEOF
4084 /* confdefs.h.  */
4085 _ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h.  */
4089 #include <stdlib.h>
4090 #include <stdarg.h>
4091 #include <string.h>
4092 #include <float.h>
4093
4094 int
4095 main ()
4096 {
4097
4098   ;
4099   return 0;
4100 }
4101 _ACEOF
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104   (eval $ac_compile) 2>conftest.er1
4105   ac_status=$?
4106   grep -v '^ *+' conftest.er1 >conftest.err
4107   rm -f conftest.er1
4108   cat conftest.err >&5
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); } &&
4111          { ac_try='test -z "$ac_c_werror_flag"
4112                          || test ! -s conftest.err'
4113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114   (eval $ac_try) 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; } &&
4118          { ac_try='test -s conftest.$ac_objext'
4119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120   (eval $ac_try) 2>&5
4121   ac_status=$?
4122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123   (exit $ac_status); }; }; then
4124   ac_cv_header_stdc=yes
4125 else
4126   echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 ac_cv_header_stdc=no
4130 fi
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132
4133 if test $ac_cv_header_stdc = yes; then
4134   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4135   cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h.  */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h.  */
4141 #include <string.h>
4142
4143 _ACEOF
4144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4145   $EGREP "memchr" >/dev/null 2>&1; then
4146   :
4147 else
4148   ac_cv_header_stdc=no
4149 fi
4150 rm -f conftest*
4151
4152 fi
4153
4154 if test $ac_cv_header_stdc = yes; then
4155   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4156   cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h.  */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h.  */
4162 #include <stdlib.h>
4163
4164 _ACEOF
4165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4166   $EGREP "free" >/dev/null 2>&1; then
4167   :
4168 else
4169   ac_cv_header_stdc=no
4170 fi
4171 rm -f conftest*
4172
4173 fi
4174
4175 if test $ac_cv_header_stdc = yes; then
4176   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4177   if test "$cross_compiling" = yes; then
4178   :
4179 else
4180   cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h.  */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h.  */
4186 #include <ctype.h>
4187 #if ((' ' & 0x0FF) == 0x020)
4188 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4189 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4190 #else
4191 # define ISLOWER(c) \
4192                    (('a' <= (c) && (c) <= 'i') \
4193                      || ('j' <= (c) && (c) <= 'r') \
4194                      || ('s' <= (c) && (c) <= 'z'))
4195 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4196 #endif
4197
4198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4199 int
4200 main ()
4201 {
4202   int i;
4203   for (i = 0; i < 256; i++)
4204     if (XOR (islower (i), ISLOWER (i))
4205         || toupper (i) != TOUPPER (i))
4206       exit(2);
4207   exit (0);
4208 }
4209 _ACEOF
4210 rm -f conftest$ac_exeext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4212   (eval $ac_link) 2>&5
4213   ac_status=$?
4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217   (eval $ac_try) 2>&5
4218   ac_status=$?
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); }; }; then
4221   :
4222 else
4223   echo "$as_me: program exited with status $ac_status" >&5
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4226
4227 ( exit $ac_status )
4228 ac_cv_header_stdc=no
4229 fi
4230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4231 fi
4232 fi
4233 fi
4234 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4235 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4236 if test $ac_cv_header_stdc = yes; then
4237
4238 cat >>confdefs.h <<\_ACEOF
4239 #define STDC_HEADERS 1
4240 _ACEOF
4241
4242 fi
4243
4244 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4255                   inttypes.h stdint.h unistd.h
4256 do
4257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4258 echo "$as_me:$LINENO: checking for $ac_header" >&5
4259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h.  */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h.  */
4269 $ac_includes_default
4270
4271 #include <$ac_header>
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4275   (eval $ac_compile) 2>conftest.er1
4276   ac_status=$?
4277   grep -v '^ *+' conftest.er1 >conftest.err
4278   rm -f conftest.er1
4279   cat conftest.err >&5
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); } &&
4282          { ac_try='test -z "$ac_c_werror_flag"
4283                          || test ! -s conftest.err'
4284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285   (eval $ac_try) 2>&5
4286   ac_status=$?
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); }; } &&
4289          { ac_try='test -s conftest.$ac_objext'
4290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291   (eval $ac_try) 2>&5
4292   ac_status=$?
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); }; }; then
4295   eval "$as_ac_Header=yes"
4296 else
4297   echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4299
4300 eval "$as_ac_Header=no"
4301 fi
4302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4303 fi
4304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4307   cat >>confdefs.h <<_ACEOF
4308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4309 _ACEOF
4310
4311 fi
4312
4313 done
4314
4315
4316
4317 for ac_header in dlfcn.h
4318 do
4319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4321   echo "$as_me:$LINENO: checking for $ac_header" >&5
4322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4324   echo $ECHO_N "(cached) $ECHO_C" >&6
4325 fi
4326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4328 else
4329   # Is the header compilable?
4330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4332 cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h.  */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h.  */
4338 $ac_includes_default
4339 #include <$ac_header>
4340 _ACEOF
4341 rm -f conftest.$ac_objext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343   (eval $ac_compile) 2>conftest.er1
4344   ac_status=$?
4345   grep -v '^ *+' conftest.er1 >conftest.err
4346   rm -f conftest.er1
4347   cat conftest.err >&5
4348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); } &&
4350          { ac_try='test -z "$ac_c_werror_flag"
4351                          || test ! -s conftest.err'
4352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353   (eval $ac_try) 2>&5
4354   ac_status=$?
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); }; } &&
4357          { ac_try='test -s conftest.$ac_objext'
4358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359   (eval $ac_try) 2>&5
4360   ac_status=$?
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); }; }; then
4363   ac_header_compiler=yes
4364 else
4365   echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4367
4368 ac_header_compiler=no
4369 fi
4370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4372 echo "${ECHO_T}$ac_header_compiler" >&6
4373
4374 # Is the header present?
4375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4377 cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h.  */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h.  */
4383 #include <$ac_header>
4384 _ACEOF
4385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4386   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4387   ac_status=$?
4388   grep -v '^ *+' conftest.er1 >conftest.err
4389   rm -f conftest.er1
4390   cat conftest.err >&5
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); } >/dev/null; then
4393   if test -s conftest.err; then
4394     ac_cpp_err=$ac_c_preproc_warn_flag
4395     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4396   else
4397     ac_cpp_err=
4398   fi
4399 else
4400   ac_cpp_err=yes
4401 fi
4402 if test -z "$ac_cpp_err"; then
4403   ac_header_preproc=yes
4404 else
4405   echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4407
4408   ac_header_preproc=no
4409 fi
4410 rm -f conftest.err conftest.$ac_ext
4411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4412 echo "${ECHO_T}$ac_header_preproc" >&6
4413
4414 # So?  What about this header?
4415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4416   yes:no: )
4417     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4421     ac_header_preproc=yes
4422     ;;
4423   no:yes:* )
4424     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4426     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4427 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4428     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4430     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4431 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4434     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4436     (
4437       cat <<\_ASBOX
4438 ## ------------------------------------------ ##
4439 ## Report this to the AC_PACKAGE_NAME lists.  ##
4440 ## ------------------------------------------ ##
4441 _ASBOX
4442     ) |
4443       sed "s/^/$as_me: WARNING:     /" >&2
4444     ;;
4445 esac
4446 echo "$as_me:$LINENO: checking for $ac_header" >&5
4447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4449   echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451   eval "$as_ac_Header=\$ac_header_preproc"
4452 fi
4453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4455
4456 fi
4457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4458   cat >>confdefs.h <<_ACEOF
4459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4460 _ACEOF
4461
4462 fi
4463
4464 done
4465
4466
4467
4468
4469
4470
4471 # Only perform the check for file, if the check method requires it
4472 case $deplibs_check_method in
4473 file_magic*)
4474   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4475     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4476 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4477 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4478   echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480   case $MAGIC_CMD in
4481   /*)
4482   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4483   ;;
4484   ?:/*)
4485   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4486   ;;
4487   *)
4488   ac_save_MAGIC_CMD="$MAGIC_CMD"
4489   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4490   ac_dummy="/usr/bin:$PATH"
4491   for ac_dir in $ac_dummy; do
4492     test -z "$ac_dir" && ac_dir=.
4493     if test -f $ac_dir/${ac_tool_prefix}file; then
4494       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4495       if test -n "$file_magic_test_file"; then
4496         case $deplibs_check_method in
4497         "file_magic "*)
4498           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4499           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4500           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4501             egrep "$file_magic_regex" > /dev/null; then
4502             :
4503           else
4504             cat <<EOF 1>&2
4505
4506 *** Warning: the command libtool uses to detect shared libraries,
4507 *** $file_magic_cmd, produces output that libtool cannot recognize.
4508 *** The result is that libtool may fail to recognize shared libraries
4509 *** as such.  This will affect the creation of libtool libraries that
4510 *** depend on shared libraries, but programs linked with such libtool
4511 *** libraries will work regardless of this problem.  Nevertheless, you
4512 *** may want to report the problem to your system manager and/or to
4513 *** bug-libtool@gnu.org
4514
4515 EOF
4516           fi ;;
4517         esac
4518       fi
4519       break
4520     fi
4521   done
4522   IFS="$ac_save_ifs"
4523   MAGIC_CMD="$ac_save_MAGIC_CMD"
4524   ;;
4525 esac
4526 fi
4527
4528 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4529 if test -n "$MAGIC_CMD"; then
4530   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4531 echo "${ECHO_T}$MAGIC_CMD" >&6
4532 else
4533   echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6
4535 fi
4536
4537 if test -z "$lt_cv_path_MAGIC_CMD"; then
4538   if test -n "$ac_tool_prefix"; then
4539     echo "$as_me:$LINENO: checking for file" >&5
4540 echo $ECHO_N "checking for file... $ECHO_C" >&6
4541 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4542   echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544   case $MAGIC_CMD in
4545   /*)
4546   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4547   ;;
4548   ?:/*)
4549   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4550   ;;
4551   *)
4552   ac_save_MAGIC_CMD="$MAGIC_CMD"
4553   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4554   ac_dummy="/usr/bin:$PATH"
4555   for ac_dir in $ac_dummy; do
4556     test -z "$ac_dir" && ac_dir=.
4557     if test -f $ac_dir/file; then
4558       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4559       if test -n "$file_magic_test_file"; then
4560         case $deplibs_check_method in
4561         "file_magic "*)
4562           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4563           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4564           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4565             egrep "$file_magic_regex" > /dev/null; then
4566             :
4567           else
4568             cat <<EOF 1>&2
4569
4570 *** Warning: the command libtool uses to detect shared libraries,
4571 *** $file_magic_cmd, produces output that libtool cannot recognize.
4572 *** The result is that libtool may fail to recognize shared libraries
4573 *** as such.  This will affect the creation of libtool libraries that
4574 *** depend on shared libraries, but programs linked with such libtool
4575 *** libraries will work regardless of this problem.  Nevertheless, you
4576 *** may want to report the problem to your system manager and/or to
4577 *** bug-libtool@gnu.org
4578
4579 EOF
4580           fi ;;
4581         esac
4582       fi
4583       break
4584     fi
4585   done
4586   IFS="$ac_save_ifs"
4587   MAGIC_CMD="$ac_save_MAGIC_CMD"
4588   ;;
4589 esac
4590 fi
4591
4592 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4593 if test -n "$MAGIC_CMD"; then
4594   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4595 echo "${ECHO_T}$MAGIC_CMD" >&6
4596 else
4597   echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6
4599 fi
4600
4601   else
4602     MAGIC_CMD=:
4603   fi
4604 fi
4605
4606   fi
4607   ;;
4608 esac
4609
4610 if test -n "$ac_tool_prefix"; then
4611   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4612 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4613 echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4615 if test "${ac_cv_prog_RANLIB+set}" = set; then
4616   echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618   if test -n "$RANLIB"; then
4619   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4620 else
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4623 do
4624   IFS=$as_save_IFS
4625   test -z "$as_dir" && as_dir=.
4626   for ac_exec_ext in '' $ac_executable_extensions; do
4627   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4628     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630     break 2
4631   fi
4632 done
4633 done
4634
4635 fi
4636 fi
4637 RANLIB=$ac_cv_prog_RANLIB
4638 if test -n "$RANLIB"; then
4639   echo "$as_me:$LINENO: result: $RANLIB" >&5
4640 echo "${ECHO_T}$RANLIB" >&6
4641 else
4642   echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6
4644 fi
4645
4646 fi
4647 if test -z "$ac_cv_prog_RANLIB"; then
4648   ac_ct_RANLIB=$RANLIB
4649   # Extract the first word of "ranlib", so it can be a program name with args.
4650 set dummy 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_ac_ct_RANLIB+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   if test -n "$ac_ct_RANLIB"; then
4657   ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="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   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4674 fi
4675 fi
4676 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4677 if test -n "$ac_ct_RANLIB"; then
4678   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4679 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4680 else
4681   echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6
4683 fi
4684
4685   RANLIB=$ac_ct_RANLIB
4686 else
4687   RANLIB="$ac_cv_prog_RANLIB"
4688 fi
4689
4690 if test -n "$ac_tool_prefix"; then
4691   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4692 set dummy ${ac_tool_prefix}strip; ac_word=$2
4693 echo "$as_me:$LINENO: checking for $ac_word" >&5
4694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4695 if test "${ac_cv_prog_STRIP+set}" = set; then
4696   echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698   if test -n "$STRIP"; then
4699   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706   for ac_exec_ext in '' $ac_executable_extensions; do
4707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710     break 2
4711   fi
4712 done
4713 done
4714
4715 fi
4716 fi
4717 STRIP=$ac_cv_prog_STRIP
4718 if test -n "$STRIP"; then
4719   echo "$as_me:$LINENO: result: $STRIP" >&5
4720 echo "${ECHO_T}$STRIP" >&6
4721 else
4722   echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6
4724 fi
4725
4726 fi
4727 if test -z "$ac_cv_prog_STRIP"; then
4728   ac_ct_STRIP=$STRIP
4729   # Extract the first word of "strip", so it can be a program name with args.
4730 set dummy 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_ac_ct_STRIP+set}" = set; then
4734   echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736   if test -n "$ac_ct_STRIP"; then
4737   ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="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   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4754 fi
4755 fi
4756 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4757 if test -n "$ac_ct_STRIP"; then
4758   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4759 echo "${ECHO_T}$ac_ct_STRIP" >&6
4760 else
4761   echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6
4763 fi
4764
4765   STRIP=$ac_ct_STRIP
4766 else
4767   STRIP="$ac_cv_prog_STRIP"
4768 fi
4769
4770
4771 enable_dlopen=no
4772 enable_win32_dll=no
4773
4774 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4775 if test "${enable_libtool_lock+set}" = set; then
4776   enableval="$enable_libtool_lock"
4777
4778 fi;
4779 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4780
4781 # Some flags need to be propagated to the compiler or linker for good
4782 # libtool support.
4783 case $host in
4784 *-*-irix6*)
4785   # Find out which ABI we are using.
4786   echo '#line 4786 "configure"' > conftest.$ac_ext
4787   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788   (eval $ac_compile) 2>&5
4789   ac_status=$?
4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791   (exit $ac_status); }; then
4792     case `/usr/bin/file conftest.$ac_objext` in
4793     *32-bit*)
4794       LD="${LD-ld} -32"
4795       ;;
4796     *N32*)
4797       LD="${LD-ld} -n32"
4798       ;;
4799     *64-bit*)
4800       LD="${LD-ld} -64"
4801       ;;
4802     esac
4803   fi
4804   rm -rf conftest*
4805   ;;
4806
4807 *-*-linux*)
4808   # Test if the compiler is 64bit
4809   echo 'int i;' > conftest.$ac_ext
4810   lt_cv_cc_64bit_output=no
4811   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812   (eval $ac_compile) 2>&5
4813   ac_status=$?
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); }; then
4816     case `/usr/bin/file conftest.$ac_objext` in
4817     *"ELF 64"*)
4818       lt_cv_cc_64bit_output=yes
4819       ;;
4820     esac
4821   fi
4822   rm -rf conftest*
4823   ;;
4824
4825 *-*-sco3.2v5*)
4826   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4827   SAVE_CFLAGS="$CFLAGS"
4828   CFLAGS="$CFLAGS -belf"
4829   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4830 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4831 if test "${lt_cv_cc_needs_belf+set}" = set; then
4832   echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834
4835
4836      ac_ext=c
4837 ac_cpp='$CPP $CPPFLAGS'
4838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4841
4842      cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h.  */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h.  */
4848
4849 int
4850 main ()
4851 {
4852
4853   ;
4854   return 0;
4855 }
4856 _ACEOF
4857 rm -f conftest.$ac_objext conftest$ac_exeext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4859   (eval $ac_link) 2>conftest.er1
4860   ac_status=$?
4861   grep -v '^ *+' conftest.er1 >conftest.err
4862   rm -f conftest.er1
4863   cat conftest.err >&5
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); } &&
4866          { ac_try='test -z "$ac_c_werror_flag"
4867                          || test ! -s conftest.err'
4868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869   (eval $ac_try) 2>&5
4870   ac_status=$?
4871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872   (exit $ac_status); }; } &&
4873          { ac_try='test -s conftest$ac_exeext'
4874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875   (eval $ac_try) 2>&5
4876   ac_status=$?
4877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); }; }; then
4879   lt_cv_cc_needs_belf=yes
4880 else
4881   echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4883
4884 lt_cv_cc_needs_belf=no
4885 fi
4886 rm -f conftest.err conftest.$ac_objext \
4887       conftest$ac_exeext conftest.$ac_ext
4888      ac_ext=c
4889 ac_cpp='$CPP $CPPFLAGS'
4890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4893
4894 fi
4895 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4896 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4897   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4898     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4899     CFLAGS="$SAVE_CFLAGS"
4900   fi
4901   ;;
4902
4903
4904 esac
4905
4906 # Sed substitution that helps us do robust quoting.  It backslashifies
4907 # metacharacters that are still active within double-quoted strings.
4908 Xsed='sed -e s/^X//'
4909 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4910
4911 # Same as above, but do not quote variable references.
4912 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4913
4914 # Sed substitution to delay expansion of an escaped shell variable in a
4915 # double_quote_subst'ed string.
4916 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4917
4918 # Constants:
4919 rm="rm -f"
4920
4921 # Global variables:
4922 default_ofile=libtool
4923 can_build_shared=yes
4924
4925 # All known linkers require a `.a' archive for static linking (except M$VC,
4926 # which needs '.lib').
4927 libext=a
4928 ltmain="$ac_aux_dir/ltmain.sh"
4929 ofile="$default_ofile"
4930 with_gnu_ld="$lt_cv_prog_gnu_ld"
4931 need_locks="$enable_libtool_lock"
4932
4933 old_CC="$CC"
4934 old_CFLAGS="$CFLAGS"
4935
4936 # Set sane defaults for various variables
4937 test -z "$AR" && AR=ar
4938 test -z "$AR_FLAGS" && AR_FLAGS=cru
4939 test -z "$AS" && AS=as
4940 test -z "$CC" && CC=cc
4941 test -z "$DLLTOOL" && DLLTOOL=dlltool
4942 test -z "$LD" && LD=ld
4943 test -z "$LN_S" && LN_S="ln -s"
4944 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4945 test -z "$NM" && NM=nm
4946 test -z "$OBJDUMP" && OBJDUMP=objdump
4947 test -z "$RANLIB" && RANLIB=:
4948 test -z "$STRIP" && STRIP=:
4949 test -z "$ac_objext" && ac_objext=o
4950
4951 if test x"$host" != x"$build"; then
4952   ac_tool_prefix=${host_alias}-
4953 else
4954   ac_tool_prefix=
4955 fi
4956
4957 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4958 case $host_os in
4959 linux-gnu*) ;;
4960 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4961 esac
4962
4963 case $host_os in
4964 aix3*)
4965   # AIX sometimes has problems with the GCC collect2 program.  For some
4966   # reason, if we set the COLLECT_NAMES environment variable, the problems
4967   # vanish in a puff of smoke.
4968   if test "X${COLLECT_NAMES+set}" != Xset; then
4969     COLLECT_NAMES=
4970     export COLLECT_NAMES
4971   fi
4972   ;;
4973 esac
4974
4975 # Determine commands to create old-style static archives.
4976 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4977 old_postinstall_cmds='chmod 644 $oldlib'
4978 old_postuninstall_cmds=
4979
4980 if test -n "$RANLIB"; then
4981   case $host_os in
4982   openbsd*)
4983     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4984     ;;
4985   *)
4986     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4987     ;;
4988   esac
4989   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4990 fi
4991
4992 # Allow CC to be a program name with arguments.
4993 set dummy $CC
4994 compiler="$2"
4995
4996 echo "$as_me:$LINENO: checking for objdir" >&5
4997 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4998 rm -f .libs 2>/dev/null
4999 mkdir .libs 2>/dev/null
5000 if test -d .libs; then
5001   objdir=.libs
5002 else
5003   # MS-DOS does not allow filenames that begin with a dot.
5004   objdir=_libs
5005 fi
5006 rmdir .libs 2>/dev/null
5007 echo "$as_me:$LINENO: result: $objdir" >&5
5008 echo "${ECHO_T}$objdir" >&6
5009
5010
5011
5012 # Check whether --with-pic or --without-pic was given.
5013 if test "${with_pic+set}" = set; then
5014   withval="$with_pic"
5015   pic_mode="$withval"
5016 else
5017   pic_mode=default
5018 fi;
5019 test -z "$pic_mode" && pic_mode=default
5020
5021 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5022 # in isolation, and that seeing it set (from the cache) indicates that
5023 # the associated values are set (in the cache) correctly too.
5024 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5025 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5026 if test "${lt_cv_prog_cc_pic+set}" = set; then
5027   echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029    lt_cv_prog_cc_pic=
5030   lt_cv_prog_cc_shlib=
5031   lt_cv_prog_cc_wl=
5032   lt_cv_prog_cc_static=
5033   lt_cv_prog_cc_no_builtin=
5034   lt_cv_prog_cc_can_build_shared=$can_build_shared
5035
5036   if test "$GCC" = yes; then
5037     lt_cv_prog_cc_wl='-Wl,'
5038     lt_cv_prog_cc_static='-static'
5039
5040     case $host_os in
5041     aix*)
5042       # Below there is a dirty hack to force normal static linking with -ldl
5043       # The problem is because libdl dynamically linked with both libc and
5044       # libC (AIX C++ library), which obviously doesn't included in libraries
5045       # list by gcc. This cause undefined symbols with -static flags.
5046       # This hack allows C programs to be linked with "-static -ldl", but
5047       # not sure about C++ programs.
5048       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5049       ;;
5050     amigaos*)
5051       # FIXME: we need at least 68020 code to build shared libraries, but
5052       # adding the `-m68020' flag to GCC prevents building anything better,
5053       # like `-m68040'.
5054       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5055       ;;
5056     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5057       # PIC is the default for these OSes.
5058       ;;
5059     darwin* | rhapsody*)
5060       # PIC is the default on this platform
5061       # Common symbols not allowed in MH_DYLIB files
5062       lt_cv_prog_cc_pic='-fno-common'
5063       ;;
5064     cygwin* | mingw* | pw32* | os2*)
5065       # This hack is so that the source file can tell whether it is being
5066       # built for inclusion in a dll (and should export symbols for example).
5067       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5068       ;;
5069     sysv4*MP*)
5070       if test -d /usr/nec; then
5071          lt_cv_prog_cc_pic=-Kconform_pic
5072       fi
5073       ;;
5074     *)
5075       lt_cv_prog_cc_pic='-fPIC'
5076       ;;
5077     esac
5078   else
5079     # PORTME Check for PIC flags for the system compiler.
5080     case $host_os in
5081     aix3* | aix4* | aix5*)
5082       lt_cv_prog_cc_wl='-Wl,'
5083       # All AIX code is PIC.
5084       if test "$host_cpu" = ia64; then
5085         # AIX 5 now supports IA64 processor
5086         lt_cv_prog_cc_static='-Bstatic'
5087       else
5088         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5089       fi
5090       ;;
5091
5092     hpux9* | hpux10* | hpux11*)
5093       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5094       lt_cv_prog_cc_wl='-Wl,'
5095       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5096       lt_cv_prog_cc_pic='+Z'
5097       ;;
5098
5099     irix5* | irix6* | nonstopux*)
5100       lt_cv_prog_cc_wl='-Wl,'
5101       lt_cv_prog_cc_static='-non_shared'
5102       # PIC (with -KPIC) is the default.
5103       ;;
5104
5105     cygwin* | mingw* | pw32* | os2*)
5106       # This hack is so that the source file can tell whether it is being
5107       # built for inclusion in a dll (and should export symbols for example).
5108       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5109       ;;
5110
5111     newsos6)
5112       lt_cv_prog_cc_pic='-KPIC'
5113       lt_cv_prog_cc_static='-Bstatic'
5114       ;;
5115
5116     osf3* | osf4* | osf5*)
5117       # All OSF/1 code is PIC.
5118       lt_cv_prog_cc_wl='-Wl,'
5119       lt_cv_prog_cc_static='-non_shared'
5120       ;;
5121
5122     sco3.2v5*)
5123       lt_cv_prog_cc_pic='-Kpic'
5124       lt_cv_prog_cc_static='-dn'
5125       lt_cv_prog_cc_shlib='-belf'
5126       ;;
5127
5128     solaris*)
5129       lt_cv_prog_cc_pic='-KPIC'
5130       lt_cv_prog_cc_static='-Bstatic'
5131       lt_cv_prog_cc_wl='-Wl,'
5132       ;;
5133
5134     sunos4*)
5135       lt_cv_prog_cc_pic='-PIC'
5136       lt_cv_prog_cc_static='-Bstatic'
5137       lt_cv_prog_cc_wl='-Qoption ld '
5138       ;;
5139
5140     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5141       lt_cv_prog_cc_pic='-KPIC'
5142       lt_cv_prog_cc_static='-Bstatic'
5143       lt_cv_prog_cc_wl='-Wl,'
5144       ;;
5145
5146     uts4*)
5147       lt_cv_prog_cc_pic='-pic'
5148       lt_cv_prog_cc_static='-Bstatic'
5149       ;;
5150
5151     sysv4*MP*)
5152       if test -d /usr/nec ;then
5153         lt_cv_prog_cc_pic='-Kconform_pic'
5154         lt_cv_prog_cc_static='-Bstatic'
5155       fi
5156       ;;
5157
5158     *)
5159       lt_cv_prog_cc_can_build_shared=no
5160       ;;
5161     esac
5162   fi
5163
5164 fi
5165
5166 if test -z "$lt_cv_prog_cc_pic"; then
5167   echo "$as_me:$LINENO: result: none" >&5
5168 echo "${ECHO_T}none" >&6
5169 else
5170   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5171 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5172
5173   # Check to make sure the pic_flag actually works.
5174   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5175 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5176   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5177   echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179       save_CFLAGS="$CFLAGS"
5180     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5181     cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h.  */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h.  */
5187
5188 int
5189 main ()
5190 {
5191
5192   ;
5193   return 0;
5194 }
5195 _ACEOF
5196 rm -f conftest.$ac_objext
5197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5198   (eval $ac_compile) 2>conftest.er1
5199   ac_status=$?
5200   grep -v '^ *+' conftest.er1 >conftest.err
5201   rm -f conftest.er1
5202   cat conftest.err >&5
5203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204   (exit $ac_status); } &&
5205          { ac_try='test -z "$ac_c_werror_flag"
5206                          || test ! -s conftest.err'
5207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208   (eval $ac_try) 2>&5
5209   ac_status=$?
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); }; } &&
5212          { ac_try='test -s conftest.$ac_objext'
5213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214   (eval $ac_try) 2>&5
5215   ac_status=$?
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); }; }; then
5218         case $host_os in
5219       hpux9* | hpux10* | hpux11*)
5220         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5221         # they create non-PIC objects.  So, if there were any warnings, we
5222         # assume that PIC is not supported.
5223         if test -s conftest.err; then
5224           lt_cv_prog_cc_pic_works=no
5225         else
5226           lt_cv_prog_cc_pic_works=yes
5227         fi
5228         ;;
5229       *)
5230         lt_cv_prog_cc_pic_works=yes
5231         ;;
5232       esac
5233
5234 else
5235   echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5237
5238       lt_cv_prog_cc_pic_works=no
5239
5240 fi
5241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5242     CFLAGS="$save_CFLAGS"
5243
5244 fi
5245
5246
5247   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5248     lt_cv_prog_cc_pic=
5249     lt_cv_prog_cc_can_build_shared=no
5250   else
5251     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5252   fi
5253
5254   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5255 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5256 fi
5257
5258 # Check for any special shared library compilation flags.
5259 if test -n "$lt_cv_prog_cc_shlib"; then
5260   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5261 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5262   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5263   else
5264    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5265 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5266     lt_cv_prog_cc_can_build_shared=no
5267   fi
5268 fi
5269
5270 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5271 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5272 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5273   echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275     lt_cv_prog_cc_static_works=no
5276   save_LDFLAGS="$LDFLAGS"
5277   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5278   cat >conftest.$ac_ext <<_ACEOF
5279 /* confdefs.h.  */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h.  */
5284
5285 int
5286 main ()
5287 {
5288
5289   ;
5290   return 0;
5291 }
5292 _ACEOF
5293 rm -f conftest.$ac_objext conftest$ac_exeext
5294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5295   (eval $ac_link) 2>conftest.er1
5296   ac_status=$?
5297   grep -v '^ *+' conftest.er1 >conftest.err
5298   rm -f conftest.er1
5299   cat conftest.err >&5
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); } &&
5302          { ac_try='test -z "$ac_c_werror_flag"
5303                          || test ! -s conftest.err'
5304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305   (eval $ac_try) 2>&5
5306   ac_status=$?
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); }; } &&
5309          { ac_try='test -s conftest$ac_exeext'
5310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311   (eval $ac_try) 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); }; }; then
5315   lt_cv_prog_cc_static_works=yes
5316 else
5317   echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5319
5320 fi
5321 rm -f conftest.err conftest.$ac_objext \
5322       conftest$ac_exeext conftest.$ac_ext
5323   LDFLAGS="$save_LDFLAGS"
5324
5325 fi
5326
5327
5328 # Belt *and* braces to stop my trousers falling down:
5329 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5330 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5331 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5332
5333 pic_flag="$lt_cv_prog_cc_pic"
5334 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5335 wl="$lt_cv_prog_cc_wl"
5336 link_static_flag="$lt_cv_prog_cc_static"
5337 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5338 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5339
5340
5341 # Check to see if options -o and -c are simultaneously supported by compiler
5342 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5343 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5344 if test "${lt_cv_compiler_c_o+set}" = set; then
5345   echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347
5348 $rm -r conftest 2>/dev/null
5349 mkdir conftest
5350 cd conftest
5351 echo "int some_variable = 0;" > conftest.$ac_ext
5352 mkdir out
5353 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5354 # that will create temporary files in the current directory regardless of
5355 # the output directory.  Thus, making CWD read-only will cause this test
5356 # to fail, enabling locking or at least warning the user not to do parallel
5357 # builds.
5358 chmod -w .
5359 save_CFLAGS="$CFLAGS"
5360 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5361 compiler_c_o=no
5362 if { (eval echo configure:5362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5363   # The compiler can only warn and ignore the option if not recognized
5364   # So say no if there are warnings
5365   if test -s out/conftest.err; then
5366     lt_cv_compiler_c_o=no
5367   else
5368     lt_cv_compiler_c_o=yes
5369   fi
5370 else
5371   # Append any errors to the config.log.
5372   cat out/conftest.err 1>&5
5373   lt_cv_compiler_c_o=no
5374 fi
5375 CFLAGS="$save_CFLAGS"
5376 chmod u+w .
5377 $rm conftest* out/*
5378 rmdir out
5379 cd ..
5380 rmdir conftest
5381 $rm -r conftest 2>/dev/null
5382
5383 fi
5384
5385 compiler_c_o=$lt_cv_compiler_c_o
5386 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5387 echo "${ECHO_T}$compiler_c_o" >&6
5388
5389 if test x"$compiler_c_o" = x"yes"; then
5390   # Check to see if we can write to a .lo
5391   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5392 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5393   if test "${lt_cv_compiler_o_lo+set}" = set; then
5394   echo $ECHO_N "(cached) $ECHO_C" >&6
5395 else
5396
5397   lt_cv_compiler_o_lo=no
5398   save_CFLAGS="$CFLAGS"
5399   CFLAGS="$CFLAGS -c -o conftest.lo"
5400   save_objext="$ac_objext"
5401   ac_objext=lo
5402   cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h.  */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h.  */
5408
5409 int
5410 main ()
5411 {
5412 int some_variable = 0;
5413   ;
5414   return 0;
5415 }
5416 _ACEOF
5417 rm -f conftest.$ac_objext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419   (eval $ac_compile) 2>conftest.er1
5420   ac_status=$?
5421   grep -v '^ *+' conftest.er1 >conftest.err
5422   rm -f conftest.er1
5423   cat conftest.err >&5
5424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425   (exit $ac_status); } &&
5426          { ac_try='test -z "$ac_c_werror_flag"
5427                          || test ! -s conftest.err'
5428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429   (eval $ac_try) 2>&5
5430   ac_status=$?
5431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); }; } &&
5433          { ac_try='test -s conftest.$ac_objext'
5434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435   (eval $ac_try) 2>&5
5436   ac_status=$?
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); }; }; then
5439       # The compiler can only warn and ignore the option if not recognized
5440     # So say no if there are warnings
5441     if test -s conftest.err; then
5442       lt_cv_compiler_o_lo=no
5443     else
5444       lt_cv_compiler_o_lo=yes
5445     fi
5446
5447 else
5448   echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5450
5451 fi
5452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5453   ac_objext="$save_objext"
5454   CFLAGS="$save_CFLAGS"
5455
5456 fi
5457
5458   compiler_o_lo=$lt_cv_compiler_o_lo
5459   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5460 echo "${ECHO_T}$compiler_o_lo" >&6
5461 else
5462   compiler_o_lo=no
5463 fi
5464
5465 # Check to see if we can do hard links to lock some files if needed
5466 hard_links="nottested"
5467 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5468   # do not overwrite the value of need_locks provided by the user
5469   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5470 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5471   hard_links=yes
5472   $rm conftest*
5473   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5474   touch conftest.a
5475   ln conftest.a conftest.b 2>&5 || hard_links=no
5476   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5477   echo "$as_me:$LINENO: result: $hard_links" >&5
5478 echo "${ECHO_T}$hard_links" >&6
5479   if test "$hard_links" = no; then
5480     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5481 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5482     need_locks=warn
5483   fi
5484 else
5485   need_locks=no
5486 fi
5487
5488 if test "$GCC" = yes; then
5489   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5490   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5491 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5492   echo "int some_variable = 0;" > conftest.$ac_ext
5493   save_CFLAGS="$CFLAGS"
5494   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5495   compiler_rtti_exceptions=no
5496   cat >conftest.$ac_ext <<_ACEOF
5497 /* confdefs.h.  */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h.  */
5502
5503 int
5504 main ()
5505 {
5506 int some_variable = 0;
5507   ;
5508   return 0;
5509 }
5510 _ACEOF
5511 rm -f conftest.$ac_objext
5512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5513   (eval $ac_compile) 2>conftest.er1
5514   ac_status=$?
5515   grep -v '^ *+' conftest.er1 >conftest.err
5516   rm -f conftest.er1
5517   cat conftest.err >&5
5518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519   (exit $ac_status); } &&
5520          { ac_try='test -z "$ac_c_werror_flag"
5521                          || test ! -s conftest.err'
5522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523   (eval $ac_try) 2>&5
5524   ac_status=$?
5525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526   (exit $ac_status); }; } &&
5527          { ac_try='test -s conftest.$ac_objext'
5528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529   (eval $ac_try) 2>&5
5530   ac_status=$?
5531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532   (exit $ac_status); }; }; then
5533       # The compiler can only warn and ignore the option if not recognized
5534     # So say no if there are warnings
5535     if test -s conftest.err; then
5536       compiler_rtti_exceptions=no
5537     else
5538       compiler_rtti_exceptions=yes
5539     fi
5540
5541 else
5542   echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5544
5545 fi
5546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5547   CFLAGS="$save_CFLAGS"
5548   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5549 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5550
5551   if test "$compiler_rtti_exceptions" = "yes"; then
5552     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5553   else
5554     no_builtin_flag=' -fno-builtin'
5555   fi
5556 fi
5557
5558 # See if the linker supports building shared libraries.
5559 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5560 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5561
5562 allow_undefined_flag=
5563 no_undefined_flag=
5564 need_lib_prefix=unknown
5565 need_version=unknown
5566 # when you set need_version to no, make sure it does not cause -set_version
5567 # flags to be left without arguments
5568 archive_cmds=
5569 archive_expsym_cmds=
5570 old_archive_from_new_cmds=
5571 old_archive_from_expsyms_cmds=
5572 export_dynamic_flag_spec=
5573 whole_archive_flag_spec=
5574 thread_safe_flag_spec=
5575 hardcode_into_libs=no
5576 hardcode_libdir_flag_spec=
5577 hardcode_libdir_separator=
5578 hardcode_direct=no
5579 hardcode_minus_L=no
5580 hardcode_shlibpath_var=unsupported
5581 runpath_var=
5582 link_all_deplibs=unknown
5583 always_export_symbols=no
5584 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5585 # include_expsyms should be a list of space-separated symbols to be *always*
5586 # included in the symbol list
5587 include_expsyms=
5588 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5589 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5590 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5591 # as well as any symbol that contains `d'.
5592 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5593 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5594 # platforms (ab)use it in PIC code, but their linkers get confused if
5595 # the symbol is explicitly referenced.  Since portable code cannot
5596 # rely on this symbol name, it's probably fine to never include it in
5597 # preloaded symbol tables.
5598 extract_expsyms_cmds=
5599
5600 case $host_os in
5601 cygwin* | mingw* | pw32*)
5602   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5603   # When not using gcc, we currently assume that we are using
5604   # Microsoft Visual C++.
5605   if test "$GCC" != yes; then
5606     with_gnu_ld=no
5607   fi
5608   ;;
5609 openbsd*)
5610   with_gnu_ld=no
5611   ;;
5612 esac
5613
5614 ld_shlibs=yes
5615 if test "$with_gnu_ld" = yes; then
5616   # If archive_cmds runs LD, not CC, wlarc should be empty
5617   wlarc='${wl}'
5618
5619   # See if GNU ld supports shared libraries.
5620   case $host_os in
5621   aix3* | aix4* | aix5*)
5622     # On AIX, the GNU linker is very broken
5623     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5624     ld_shlibs=no
5625     cat <<EOF 1>&2
5626
5627 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5628 *** to be unable to reliably create shared libraries on AIX.
5629 *** Therefore, libtool is disabling shared libraries support.  If you
5630 *** really care for shared libraries, you may want to modify your PATH
5631 *** so that a non-GNU linker is found, and then restart.
5632
5633 EOF
5634     ;;
5635
5636   amigaos*)
5637     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)'
5638     hardcode_libdir_flag_spec='-L$libdir'
5639     hardcode_minus_L=yes
5640
5641     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5642     # that the semantics of dynamic libraries on AmigaOS, at least up
5643     # to version 4, is to share data among multiple programs linked
5644     # with the same dynamic library.  Since this doesn't match the
5645     # behavior of shared libraries on other platforms, we can use
5646     # them.
5647     ld_shlibs=no
5648     ;;
5649
5650   beos*)
5651     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5652       allow_undefined_flag=unsupported
5653       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5654       # support --undefined.  This deserves some investigation.  FIXME
5655       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5656     else
5657       ld_shlibs=no
5658     fi
5659     ;;
5660
5661   cygwin* | mingw* | pw32*)
5662     # hardcode_libdir_flag_spec is actually meaningless, as there is
5663     # no search path for DLLs.
5664     hardcode_libdir_flag_spec='-L$libdir'
5665     allow_undefined_flag=unsupported
5666     always_export_symbols=yes
5667
5668     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5669       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5670       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5671       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5672       else $CC -o impgen impgen.c ; fi)~
5673       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5674
5675     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5676
5677     # cygwin and mingw dlls have different entry points and sets of symbols
5678     # to exclude.
5679     # FIXME: what about values for MSVC?
5680     dll_entry=__cygwin_dll_entry@12
5681     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5682     case $host_os in
5683     mingw*)
5684       # mingw values
5685       dll_entry=_DllMainCRTStartup@12
5686       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5687       ;;
5688     esac
5689
5690     # mingw and cygwin differ, and it's simplest to just exclude the union
5691     # of the two symbol sets.
5692     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5693
5694     # recent cygwin and mingw systems supply a stub DllMain which the user
5695     # can override, but on older systems we have to supply one (in ltdll.c)
5696     if test "x$lt_cv_need_dllmain" = "xyes"; then
5697       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5698       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~
5699         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5700     else
5701       ltdll_obj=
5702       ltdll_cmds=
5703     fi
5704
5705     # Extract the symbol export list from an `--export-all' def file,
5706     # then regenerate the def file from the symbol export list, so that
5707     # the compiled dll only exports the symbol export list.
5708     # Be careful not to strip the DATA tag left be newer dlltools.
5709     export_symbols_cmds="$ltdll_cmds"'
5710       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5711       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5712
5713     # If the export-symbols file already is a .def file (1st line
5714     # is EXPORTS), use it as is.
5715     # If DATA tags from a recent dlltool are present, honour them!
5716     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5717         cp $export_symbols $output_objdir/$soname-def;
5718       else
5719         echo EXPORTS > $output_objdir/$soname-def;
5720         _lt_hint=1;
5721         cat $export_symbols | while read symbol; do
5722          set dummy \$symbol;
5723          case \$# in
5724            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5725            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5726            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5727          esac;
5728          _lt_hint=`expr 1 + \$_lt_hint`;
5729         done;
5730       fi~
5731       '"$ltdll_cmds"'
5732       $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~
5733       $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~
5734       $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~
5735       $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~
5736       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5737     ;;
5738
5739   netbsd*)
5740     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5741       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5742       wlarc=
5743     else
5744       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5745       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5746     fi
5747     ;;
5748
5749   solaris* | sysv5*)
5750     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5751       ld_shlibs=no
5752       cat <<EOF 1>&2
5753
5754 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5755 *** create shared libraries on Solaris systems.  Therefore, libtool
5756 *** is disabling shared libraries support.  We urge you to upgrade GNU
5757 *** binutils to release 2.9.1 or newer.  Another option is to modify
5758 *** your PATH or compiler configuration so that the native linker is
5759 *** used, and then restart.
5760
5761 EOF
5762     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5763       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5764       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5765     else
5766       ld_shlibs=no
5767     fi
5768     ;;
5769
5770   sunos4*)
5771     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5772     wlarc=
5773     hardcode_direct=yes
5774     hardcode_shlibpath_var=no
5775     ;;
5776
5777   *)
5778     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5779       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5780       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5781     else
5782       ld_shlibs=no
5783     fi
5784     ;;
5785   esac
5786
5787   if test "$ld_shlibs" = yes; then
5788     runpath_var=LD_RUN_PATH
5789     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5790     export_dynamic_flag_spec='${wl}--export-dynamic'
5791     case $host_os in
5792     cygwin* | mingw* | pw32*)
5793       # dlltool doesn't understand --whole-archive et. al.
5794       whole_archive_flag_spec=
5795       ;;
5796     *)
5797       # ancient GNU ld didn't support --whole-archive et. al.
5798       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5799         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5800       else
5801         whole_archive_flag_spec=
5802       fi
5803       ;;
5804     esac
5805   fi
5806 else
5807   # PORTME fill in a description of your system's linker (not GNU ld)
5808   case $host_os in
5809   aix3*)
5810     allow_undefined_flag=unsupported
5811     always_export_symbols=yes
5812     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'
5813     # Note: this linker hardcodes the directories in LIBPATH if there
5814     # are no directories specified by -L.
5815     hardcode_minus_L=yes
5816     if test "$GCC" = yes && test -z "$link_static_flag"; then
5817       # Neither direct hardcoding nor static linking is supported with a
5818       # broken collect2.
5819       hardcode_direct=unsupported
5820     fi
5821     ;;
5822
5823   aix4* | aix5*)
5824     if test "$host_cpu" = ia64; then
5825       # On IA64, the linker does run time linking by default, so we don't
5826       # have to do anything special.
5827       aix_use_runtimelinking=no
5828       exp_sym_flag='-Bexport'
5829       no_entry_flag=""
5830     else
5831       aix_use_runtimelinking=no
5832
5833       # Test if we are trying to use run time linking or normal
5834       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5835       # need to do runtime linking.
5836       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5837         for ld_flag in $LDFLAGS; do
5838           case $ld_flag in
5839           *-brtl*)
5840             aix_use_runtimelinking=yes
5841             break
5842           ;;
5843           esac
5844         done
5845       esac
5846
5847       exp_sym_flag='-bexport'
5848       no_entry_flag='-bnoentry'
5849     fi
5850
5851     # When large executables or shared objects are built, AIX ld can
5852     # have problems creating the table of contents.  If linking a library
5853     # or program results in "error TOC overflow" add -mminimal-toc to
5854     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5855     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5856
5857     hardcode_direct=yes
5858     archive_cmds=''
5859     hardcode_libdir_separator=':'
5860     if test "$GCC" = yes; then
5861       case $host_os in aix4.[012]|aix4.[012].*)
5862         collect2name=`${CC} -print-prog-name=collect2`
5863         if test -f "$collect2name" && \
5864           strings "$collect2name" | grep resolve_lib_name >/dev/null
5865         then
5866           # We have reworked collect2
5867           hardcode_direct=yes
5868         else
5869           # We have old collect2
5870           hardcode_direct=unsupported
5871           # It fails to find uninstalled libraries when the uninstalled
5872           # path is not listed in the libpath.  Setting hardcode_minus_L
5873           # to unsupported forces relinking
5874           hardcode_minus_L=yes
5875           hardcode_libdir_flag_spec='-L$libdir'
5876           hardcode_libdir_separator=
5877         fi
5878       esac
5879
5880       shared_flag='-shared'
5881     else
5882       # not using gcc
5883       if test "$host_cpu" = ia64; then
5884         shared_flag='${wl}-G'
5885       else
5886         if test "$aix_use_runtimelinking" = yes; then
5887           shared_flag='${wl}-G'
5888         else
5889           shared_flag='${wl}-bM:SRE'
5890         fi
5891       fi
5892     fi
5893
5894     # It seems that -bexpall can do strange things, so it is better to
5895     # generate a list of symbols to export.
5896     always_export_symbols=yes
5897     if test "$aix_use_runtimelinking" = yes; then
5898       # Warning - without using the other runtime loading flags (-brtl),
5899       # -berok will link without error, but may produce a broken library.
5900       allow_undefined_flag='-berok'
5901       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5902       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"
5903     else
5904       if test "$host_cpu" = ia64; then
5905         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5906         allow_undefined_flag="-z nodefs"
5907         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"
5908       else
5909         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5910         # Warning - without using the other run time loading flags,
5911         # -berok will link without error, but may produce a broken library.
5912         allow_undefined_flag='${wl}-berok'
5913         # This is a bit strange, but is similar to how AIX traditionally builds
5914         # it's shared libraries.
5915         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'
5916       fi
5917     fi
5918     ;;
5919
5920   amigaos*)
5921     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)'
5922     hardcode_libdir_flag_spec='-L$libdir'
5923     hardcode_minus_L=yes
5924     # see comment about different semantics on the GNU ld section
5925     ld_shlibs=no
5926     ;;
5927
5928   cygwin* | mingw* | pw32*)
5929     # When not using gcc, we currently assume that we are using
5930     # Microsoft Visual C++.
5931     # hardcode_libdir_flag_spec is actually meaningless, as there is
5932     # no search path for DLLs.
5933     hardcode_libdir_flag_spec=' '
5934     allow_undefined_flag=unsupported
5935     # Tell ltmain to make .lib files, not .a files.
5936     libext=lib
5937     # FIXME: Setting linknames here is a bad hack.
5938     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5939     # The linker will automatically build a .lib file if we build a DLL.
5940     old_archive_from_new_cmds='true'
5941     # FIXME: Should let the user specify the lib program.
5942     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5943     fix_srcfile_path='`cygpath -w "$srcfile"`'
5944     ;;
5945
5946   darwin* | rhapsody*)
5947     case "$host_os" in
5948     rhapsody* | darwin1.[012])
5949       allow_undefined_flag='-undefined suppress'
5950       ;;
5951     *) # Darwin 1.3 on
5952       allow_undefined_flag='-flat_namespace -undefined suppress'
5953       ;;
5954     esac
5955     # FIXME: Relying on posixy $() will cause problems for
5956     #        cross-compilation, but unfortunately the echo tests do not
5957     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5958     #        `"' quotes if we put them in here... so don't!
5959     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)'
5960     # We need to add '_' to the symbols in $export_symbols first
5961     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5962     hardcode_direct=yes
5963     hardcode_shlibpath_var=no
5964     whole_archive_flag_spec='-all_load $convenience'
5965     ;;
5966
5967   freebsd1*)
5968     ld_shlibs=no
5969     ;;
5970
5971   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5972   # support.  Future versions do this automatically, but an explicit c++rt0.o
5973   # does not break anything, and helps significantly (at the cost of a little
5974   # extra space).
5975   freebsd2.2*)
5976     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5977     hardcode_libdir_flag_spec='-R$libdir'
5978     hardcode_direct=yes
5979     hardcode_shlibpath_var=no
5980     ;;
5981
5982   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5983   freebsd2*)
5984     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5985     hardcode_direct=yes
5986     hardcode_minus_L=yes
5987     hardcode_shlibpath_var=no
5988     ;;
5989
5990   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5991   freebsd*)
5992     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5993     hardcode_libdir_flag_spec='-R$libdir'
5994     hardcode_direct=yes
5995     hardcode_shlibpath_var=no
5996     ;;
5997
5998   hpux9* | hpux10* | hpux11*)
5999     case $host_os in
6000     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' ;;
6001     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6002     esac
6003     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6004     hardcode_libdir_separator=:
6005     hardcode_direct=yes
6006     hardcode_minus_L=yes # Not in the search PATH, but as the default
6007                          # location of the library.
6008     export_dynamic_flag_spec='${wl}-E'
6009     ;;
6010
6011   irix5* | irix6* | nonstopux*)
6012     if test "$GCC" = yes; then
6013       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'
6014       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6015     else
6016       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'
6017       hardcode_libdir_flag_spec='-rpath $libdir'
6018     fi
6019     hardcode_libdir_separator=:
6020     link_all_deplibs=yes
6021     ;;
6022
6023   netbsd*)
6024     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6025       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6026     else
6027       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6028     fi
6029     hardcode_libdir_flag_spec='-R$libdir'
6030     hardcode_direct=yes
6031     hardcode_shlibpath_var=no
6032     ;;
6033
6034   newsos6)
6035     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6036     hardcode_direct=yes
6037     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6038     hardcode_libdir_separator=:
6039     hardcode_shlibpath_var=no
6040     ;;
6041
6042   openbsd*)
6043     hardcode_direct=yes
6044     hardcode_shlibpath_var=no
6045     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6046       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6047       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6048       export_dynamic_flag_spec='${wl}-E'
6049     else
6050       case "$host_os" in
6051       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6052         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6053         hardcode_libdir_flag_spec='-R$libdir'
6054         ;;
6055       *)
6056         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6057         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6058         ;;
6059       esac
6060     fi
6061     ;;
6062
6063   os2*)
6064     hardcode_libdir_flag_spec='-L$libdir'
6065     hardcode_minus_L=yes
6066     allow_undefined_flag=unsupported
6067     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'
6068     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6069     ;;
6070
6071   osf3*)
6072     if test "$GCC" = yes; then
6073       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6074       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'
6075     else
6076       allow_undefined_flag=' -expect_unresolved \*'
6077       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'
6078     fi
6079     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6080     hardcode_libdir_separator=:
6081     ;;
6082
6083   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6084     if test "$GCC" = yes; then
6085       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6086       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'
6087       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6088     else
6089       allow_undefined_flag=' -expect_unresolved \*'
6090       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'
6091       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6092       $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'
6093
6094       #Both c and cxx compiler support -rpath directly
6095       hardcode_libdir_flag_spec='-rpath $libdir'
6096     fi
6097     hardcode_libdir_separator=:
6098     ;;
6099
6100   sco3.2v5*)
6101     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6102     hardcode_shlibpath_var=no
6103     runpath_var=LD_RUN_PATH
6104     hardcode_runpath_var=yes
6105     export_dynamic_flag_spec='${wl}-Bexport'
6106     ;;
6107
6108   solaris*)
6109     # gcc --version < 3.0 without binutils cannot create self contained
6110     # shared libraries reliably, requiring libgcc.a to resolve some of
6111     # the object symbols generated in some cases.  Libraries that use
6112     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6113     # a copy of libgcc.a into every shared library to guarantee resolving
6114     # such symbols causes other problems:  According to Tim Van Holder
6115     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6116     # (to the application) exception stack for one thing.
6117     no_undefined_flag=' -z defs'
6118     if test "$GCC" = yes; then
6119       case `$CC --version 2>/dev/null` in
6120       [12].*)
6121         cat <<EOF 1>&2
6122
6123 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6124 *** create self contained shared libraries on Solaris systems, without
6125 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6126 *** -no-undefined support, which will at least allow you to build shared
6127 *** libraries.  However, you may find that when you link such libraries
6128 *** into an application without using GCC, you have to manually add
6129 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6130 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6131 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6132
6133 EOF
6134         no_undefined_flag=
6135         ;;
6136       esac
6137     fi
6138     # $CC -shared without GNU ld will not create a library from C++
6139     # object files and a static libstdc++, better avoid it by now
6140     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6141     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6142                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6143     hardcode_libdir_flag_spec='-R$libdir'
6144     hardcode_shlibpath_var=no
6145     case $host_os in
6146     solaris2.[0-5] | solaris2.[0-5].*) ;;
6147     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6148       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6149     esac
6150     link_all_deplibs=yes
6151     ;;
6152
6153   sunos4*)
6154     if test "x$host_vendor" = xsequent; then
6155       # Use $CC to link under sequent, because it throws in some extra .o
6156       # files that make .init and .fini sections work.
6157       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6158     else
6159       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6160     fi
6161     hardcode_libdir_flag_spec='-L$libdir'
6162     hardcode_direct=yes
6163     hardcode_minus_L=yes
6164     hardcode_shlibpath_var=no
6165     ;;
6166
6167   sysv4)
6168     case $host_vendor in
6169       sni)
6170         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6171         hardcode_direct=yes # is this really true???
6172         ;;
6173       siemens)
6174         ## LD is ld it makes a PLAMLIB
6175         ## CC just makes a GrossModule.
6176         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6177         reload_cmds='$CC -r -o $output$reload_objs'
6178         hardcode_direct=no
6179         ;;
6180       motorola)
6181         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6182         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6183         ;;
6184     esac
6185     runpath_var='LD_RUN_PATH'
6186     hardcode_shlibpath_var=no
6187     ;;
6188
6189   sysv4.3*)
6190     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6191     hardcode_shlibpath_var=no
6192     export_dynamic_flag_spec='-Bexport'
6193     ;;
6194
6195   sysv5*)
6196     no_undefined_flag=' -z text'
6197     # $CC -shared without GNU ld will not create a library from C++
6198     # object files and a static libstdc++, better avoid it by now
6199     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6200     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6201                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6202     hardcode_libdir_flag_spec=
6203     hardcode_shlibpath_var=no
6204     runpath_var='LD_RUN_PATH'
6205     ;;
6206
6207   uts4*)
6208     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6209     hardcode_libdir_flag_spec='-L$libdir'
6210     hardcode_shlibpath_var=no
6211     ;;
6212
6213   dgux*)
6214     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6215     hardcode_libdir_flag_spec='-L$libdir'
6216     hardcode_shlibpath_var=no
6217     ;;
6218
6219   sysv4*MP*)
6220     if test -d /usr/nec; then
6221       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6222       hardcode_shlibpath_var=no
6223       runpath_var=LD_RUN_PATH
6224       hardcode_runpath_var=yes
6225       ld_shlibs=yes
6226     fi
6227     ;;
6228
6229   sysv4.2uw2*)
6230     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6231     hardcode_direct=yes
6232     hardcode_minus_L=no
6233     hardcode_shlibpath_var=no
6234     hardcode_runpath_var=yes
6235     runpath_var=LD_RUN_PATH
6236     ;;
6237
6238   sysv5uw7* | unixware7*)
6239     no_undefined_flag='${wl}-z ${wl}text'
6240     if test "$GCC" = yes; then
6241       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6242     else
6243       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6244     fi
6245     runpath_var='LD_RUN_PATH'
6246     hardcode_shlibpath_var=no
6247     ;;
6248
6249   *)
6250     ld_shlibs=no
6251     ;;
6252   esac
6253 fi
6254 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6255 echo "${ECHO_T}$ld_shlibs" >&6
6256 test "$ld_shlibs" = no && can_build_shared=no
6257
6258 # Check hardcoding attributes.
6259 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6260 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6261 hardcode_action=
6262 if test -n "$hardcode_libdir_flag_spec" || \
6263    test -n "$runpath_var"; then
6264
6265   # We can hardcode non-existant directories.
6266   if test "$hardcode_direct" != no &&
6267      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6268      # have to relink, otherwise we might link with an installed library
6269      # when we should be linking with a yet-to-be-installed one
6270      ## test "$hardcode_shlibpath_var" != no &&
6271      test "$hardcode_minus_L" != no; then
6272     # Linking always hardcodes the temporary library directory.
6273     hardcode_action=relink
6274   else
6275     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6276     hardcode_action=immediate
6277   fi
6278 else
6279   # We cannot hardcode anything, or else we can only hardcode existing
6280   # directories.
6281   hardcode_action=unsupported
6282 fi
6283 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6284 echo "${ECHO_T}$hardcode_action" >&6
6285
6286 striplib=
6287 old_striplib=
6288 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6289 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6290 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6291   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6292   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6293   echo "$as_me:$LINENO: result: yes" >&5
6294 echo "${ECHO_T}yes" >&6
6295 else
6296   echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6
6298 fi
6299
6300 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6301 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6302
6303 # PORTME Fill in your ld.so characteristics
6304 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6305 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6306 library_names_spec=
6307 libname_spec='lib$name'
6308 soname_spec=
6309 postinstall_cmds=
6310 postuninstall_cmds=
6311 finish_cmds=
6312 finish_eval=
6313 shlibpath_var=
6314 shlibpath_overrides_runpath=unknown
6315 version_type=none
6316 dynamic_linker="$host_os ld.so"
6317 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6318 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6319
6320 case $host_os in
6321 aix3*)
6322   version_type=linux
6323   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6324   shlibpath_var=LIBPATH
6325
6326   # AIX has no versioning support, so we append a major version to the name.
6327   soname_spec='${libname}${release}.so$major'
6328   ;;
6329
6330 aix4* | aix5*)
6331   version_type=linux
6332   need_lib_prefix=no
6333   need_version=no
6334   hardcode_into_libs=yes
6335   if test "$host_cpu" = ia64; then
6336     # AIX 5 supports IA64
6337     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6338     shlibpath_var=LD_LIBRARY_PATH
6339   else
6340     # With GCC up to 2.95.x, collect2 would create an import file
6341     # for dependence libraries.  The import file would start with
6342     # the line `#! .'.  This would cause the generated library to
6343     # depend on `.', always an invalid library.  This was fixed in
6344     # development snapshots of GCC prior to 3.0.
6345     case $host_os in
6346       aix4 | aix4.[01] | aix4.[01].*)
6347         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6348              echo ' yes '
6349              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6350           :
6351         else
6352           can_build_shared=no
6353         fi
6354         ;;
6355     esac
6356     # AIX (on Power*) has no versioning support, so currently we can
6357     # not hardcode correct soname into executable. Probably we can
6358     # add versioning support to collect2, so additional links can
6359     # be useful in future.
6360     if test "$aix_use_runtimelinking" = yes; then
6361       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6362       # instead of lib<name>.a to let people know that these are not
6363       # typical AIX shared libraries.
6364       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6365     else
6366       # We preserve .a as extension for shared libraries through AIX4.2
6367       # and later when we are not doing run time linking.
6368       library_names_spec='${libname}${release}.a $libname.a'
6369       soname_spec='${libname}${release}.so$major'
6370     fi
6371     shlibpath_var=LIBPATH
6372   fi
6373   hardcode_into_libs=yes
6374   ;;
6375
6376 amigaos*)
6377   library_names_spec='$libname.ixlibrary $libname.a'
6378   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6379   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'
6380   ;;
6381
6382 beos*)
6383   library_names_spec='${libname}.so'
6384   dynamic_linker="$host_os ld.so"
6385   shlibpath_var=LIBRARY_PATH
6386   ;;
6387
6388 bsdi4*)
6389   version_type=linux
6390   need_version=no
6391   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6392   soname_spec='${libname}${release}.so$major'
6393   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6394   shlibpath_var=LD_LIBRARY_PATH
6395   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6396   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6397   export_dynamic_flag_spec=-rdynamic
6398   # the default ld.so.conf also contains /usr/contrib/lib and
6399   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6400   # libtool to hard-code these into programs
6401   ;;
6402
6403 cygwin* | mingw* | pw32*)
6404   version_type=windows
6405   need_version=no
6406   need_lib_prefix=no
6407   case $GCC,$host_os in
6408   yes,cygwin*)
6409     library_names_spec='$libname.dll.a'
6410     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6411     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6412       dldir=$destdir/`dirname \$dlpath`~
6413       test -d \$dldir || mkdir -p \$dldir~
6414       $install_prog .libs/$dlname \$dldir/$dlname'
6415     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6416       dlpath=$dir/\$dldll~
6417        $rm \$dlpath'
6418     ;;
6419   yes,mingw*)
6420     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6421     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6422     ;;
6423   yes,pw32*)
6424     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6425     ;;
6426   *)
6427     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6428     ;;
6429   esac
6430   dynamic_linker='Win32 ld.exe'
6431   # FIXME: first we should search . and the directory the executable is in
6432   shlibpath_var=PATH
6433   ;;
6434
6435 darwin* | rhapsody*)
6436   dynamic_linker="$host_os dyld"
6437   version_type=darwin
6438   need_lib_prefix=no
6439   need_version=no
6440   # FIXME: Relying on posixy $() will cause problems for
6441   #        cross-compilation, but unfortunately the echo tests do not
6442   #        yet detect zsh echo's removal of \ escapes.
6443   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)'
6444   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6445   shlibpath_overrides_runpath=yes
6446   shlibpath_var=DYLD_LIBRARY_PATH
6447   ;;
6448
6449 freebsd1*)
6450   dynamic_linker=no
6451   ;;
6452
6453 freebsd*)
6454   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6455   version_type=freebsd-$objformat
6456   case $version_type in
6457     freebsd-elf*)
6458       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6459       need_version=no
6460       need_lib_prefix=no
6461       ;;
6462     freebsd-*)
6463       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6464       need_version=yes
6465       ;;
6466   esac
6467   shlibpath_var=LD_LIBRARY_PATH
6468   case $host_os in
6469   freebsd2*)
6470     shlibpath_overrides_runpath=yes
6471     ;;
6472   *)
6473     shlibpath_overrides_runpath=no
6474     hardcode_into_libs=yes
6475     ;;
6476   esac
6477   ;;
6478
6479 gnu*)
6480   version_type=linux
6481   need_lib_prefix=no
6482   need_version=no
6483   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6484   soname_spec='${libname}${release}.so$major'
6485   shlibpath_var=LD_LIBRARY_PATH
6486   hardcode_into_libs=yes
6487   ;;
6488
6489 hpux9* | hpux10* | hpux11*)
6490   # Give a soname corresponding to the major version so that dld.sl refuses to
6491   # link against other versions.
6492   dynamic_linker="$host_os dld.sl"
6493   version_type=sunos
6494   need_lib_prefix=no
6495   need_version=no
6496   shlibpath_var=SHLIB_PATH
6497   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6498   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6499   soname_spec='${libname}${release}.sl$major'
6500   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6501   postinstall_cmds='chmod 555 $lib'
6502   ;;
6503
6504 irix5* | irix6* | nonstopux*)
6505   case $host_os in
6506     nonstopux*) version_type=nonstopux ;;
6507     *)          version_type=irix ;;
6508   esac
6509   need_lib_prefix=no
6510   need_version=no
6511   soname_spec='${libname}${release}.so$major'
6512   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6513   case $host_os in
6514   irix5* | nonstopux*)
6515     libsuff= shlibsuff=
6516     ;;
6517   *)
6518     case $LD in # libtool.m4 will add one of these switches to LD
6519     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6520     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6521     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6522     *) libsuff= shlibsuff= libmagic=never-match;;
6523     esac
6524     ;;
6525   esac
6526   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6527   shlibpath_overrides_runpath=no
6528   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6529   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6530   ;;
6531
6532 # No shared lib support for Linux oldld, aout, or coff.
6533 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6534   dynamic_linker=no
6535   ;;
6536
6537 # This must be Linux ELF.
6538 linux-gnu*)
6539   version_type=linux
6540   need_lib_prefix=no
6541   need_version=no
6542   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6543   soname_spec='${libname}${release}.so$major'
6544   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6545   shlibpath_var=LD_LIBRARY_PATH
6546   shlibpath_overrides_runpath=no
6547   # This implies no fast_install, which is unacceptable.
6548   # Some rework will be needed to allow for fast_install
6549   # before this can be enabled.
6550   hardcode_into_libs=yes
6551
6552   case $host_cpu:$lt_cv_cc_64bit_output in
6553   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6554     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6555     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6556     ;;
6557   esac
6558
6559   # We used to test for /lib/ld.so.1 and disable shared libraries on
6560   # powerpc, because MkLinux only supported shared libraries with the
6561   # GNU dynamic linker.  Since this was broken with cross compilers,
6562   # most powerpc-linux boxes support dynamic linking these days and
6563   # people can always --disable-shared, the test was removed, and we
6564   # assume the GNU/Linux dynamic linker is in use.
6565   dynamic_linker='GNU/Linux ld.so'
6566
6567   # Find out which ABI we are using (multilib Linux x86_64 hack).
6568   libsuff=
6569   case "$host_cpu" in
6570   x86_64*)
6571     echo '#line 6571 "configure"' > conftest.$ac_ext
6572     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6573   (eval $ac_compile) 2>&5
6574   ac_status=$?
6575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576   (exit $ac_status); }; then
6577       case `/usr/bin/file conftest.$ac_objext` in
6578       *64-bit*)
6579         libsuff=64
6580         ;;
6581       esac
6582     fi
6583     rm -rf conftest*
6584     ;;
6585   *)
6586     ;;
6587   esac
6588   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6589   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6590   ;;
6591
6592 netbsd*)
6593   version_type=sunos
6594   need_lib_prefix=no
6595   need_version=no
6596   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6597     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6598     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6599     dynamic_linker='NetBSD (a.out) ld.so'
6600   else
6601     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6602     soname_spec='${libname}${release}.so$major'
6603     dynamic_linker='NetBSD ld.elf_so'
6604   fi
6605   shlibpath_var=LD_LIBRARY_PATH
6606   shlibpath_overrides_runpath=yes
6607   hardcode_into_libs=yes
6608   ;;
6609
6610 newsos6)
6611   version_type=linux
6612   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6613   shlibpath_var=LD_LIBRARY_PATH
6614   shlibpath_overrides_runpath=yes
6615   ;;
6616
6617 openbsd*)
6618   version_type=sunos
6619   need_lib_prefix=no
6620   need_version=no
6621   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6622     case "$host_os" in
6623     openbsd2.[89] | openbsd2.[89].*)
6624       shlibpath_overrides_runpath=no
6625       ;;
6626     *)
6627       shlibpath_overrides_runpath=yes
6628       ;;
6629     esac
6630   else
6631     shlibpath_overrides_runpath=yes
6632   fi
6633   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6634   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6635   shlibpath_var=LD_LIBRARY_PATH
6636   ;;
6637
6638 os2*)
6639   libname_spec='$name'
6640   need_lib_prefix=no
6641   library_names_spec='$libname.dll $libname.a'
6642   dynamic_linker='OS/2 ld.exe'
6643   shlibpath_var=LIBPATH
6644   ;;
6645
6646 osf3* | osf4* | osf5*)
6647   version_type=osf
6648   need_version=no
6649   soname_spec='${libname}${release}.so$major'
6650   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6651   shlibpath_var=LD_LIBRARY_PATH
6652   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6653   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6654   hardcode_into_libs=yes
6655   ;;
6656
6657 sco3.2v5*)
6658   version_type=osf
6659   soname_spec='${libname}${release}.so$major'
6660   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6661   shlibpath_var=LD_LIBRARY_PATH
6662   ;;
6663
6664 solaris*)
6665   version_type=linux
6666   need_lib_prefix=no
6667   need_version=no
6668   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6669   soname_spec='${libname}${release}.so$major'
6670   shlibpath_var=LD_LIBRARY_PATH
6671   shlibpath_overrides_runpath=yes
6672   hardcode_into_libs=yes
6673   # ldd complains unless libraries are executable
6674   postinstall_cmds='chmod +x $lib'
6675   ;;
6676
6677 sunos4*)
6678   version_type=sunos
6679   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6680   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6681   shlibpath_var=LD_LIBRARY_PATH
6682   shlibpath_overrides_runpath=yes
6683   if test "$with_gnu_ld" = yes; then
6684     need_lib_prefix=no
6685   fi
6686   need_version=yes
6687   ;;
6688
6689 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6690   version_type=linux
6691   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6692   soname_spec='${libname}${release}.so$major'
6693   shlibpath_var=LD_LIBRARY_PATH
6694   case $host_vendor in
6695     sni)
6696       shlibpath_overrides_runpath=no
6697       need_lib_prefix=no
6698       export_dynamic_flag_spec='${wl}-Blargedynsym'
6699       runpath_var=LD_RUN_PATH
6700       ;;
6701     siemens)
6702       need_lib_prefix=no
6703       ;;
6704     motorola)
6705       need_lib_prefix=no
6706       need_version=no
6707       shlibpath_overrides_runpath=no
6708       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6709       ;;
6710   esac
6711   ;;
6712
6713 uts4*)
6714   version_type=linux
6715   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6716   soname_spec='${libname}${release}.so$major'
6717   shlibpath_var=LD_LIBRARY_PATH
6718   ;;
6719
6720 dgux*)
6721   version_type=linux
6722   need_lib_prefix=no
6723   need_version=no
6724   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6725   soname_spec='${libname}${release}.so$major'
6726   shlibpath_var=LD_LIBRARY_PATH
6727   ;;
6728
6729 sysv4*MP*)
6730   if test -d /usr/nec ;then
6731     version_type=linux
6732     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6733     soname_spec='$libname.so.$major'
6734     shlibpath_var=LD_LIBRARY_PATH
6735   fi
6736   ;;
6737
6738 *)
6739   dynamic_linker=no
6740   ;;
6741 esac
6742 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6743 echo "${ECHO_T}$dynamic_linker" >&6
6744 test "$dynamic_linker" = no && can_build_shared=no
6745
6746 # Report the final consequences.
6747 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6748 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6749 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6750 echo "${ECHO_T}$can_build_shared" >&6
6751
6752 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6753 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6754 test "$can_build_shared" = "no" && enable_shared=no
6755
6756 # On AIX, shared libraries and static libraries use the same namespace, and
6757 # are all built from PIC.
6758 case "$host_os" in
6759 aix3*)
6760   test "$enable_shared" = yes && enable_static=no
6761   if test -n "$RANLIB"; then
6762     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6763     postinstall_cmds='$RANLIB $lib'
6764   fi
6765   ;;
6766
6767 aix4*)
6768   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6769     test "$enable_shared" = yes && enable_static=no
6770   fi
6771   ;;
6772 esac
6773 echo "$as_me:$LINENO: result: $enable_shared" >&5
6774 echo "${ECHO_T}$enable_shared" >&6
6775
6776 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6777 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6778 # Make sure either enable_shared or enable_static is yes.
6779 test "$enable_shared" = yes || enable_static=yes
6780 echo "$as_me:$LINENO: result: $enable_static" >&5
6781 echo "${ECHO_T}$enable_static" >&6
6782
6783 if test "$hardcode_action" = relink; then
6784   # Fast installation is not supported
6785   enable_fast_install=no
6786 elif test "$shlibpath_overrides_runpath" = yes ||
6787      test "$enable_shared" = no; then
6788   # Fast installation is not necessary
6789   enable_fast_install=needless
6790 fi
6791
6792 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6793 if test "$GCC" = yes; then
6794   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6795 fi
6796
6797 if test "x$enable_dlopen" != xyes; then
6798   enable_dlopen=unknown
6799   enable_dlopen_self=unknown
6800   enable_dlopen_self_static=unknown
6801 else
6802   lt_cv_dlopen=no
6803   lt_cv_dlopen_libs=
6804
6805   case $host_os in
6806   beos*)
6807     lt_cv_dlopen="load_add_on"
6808     lt_cv_dlopen_libs=
6809     lt_cv_dlopen_self=yes
6810     ;;
6811
6812   cygwin* | mingw* | pw32*)
6813     lt_cv_dlopen="LoadLibrary"
6814     lt_cv_dlopen_libs=
6815    ;;
6816
6817   *)
6818     echo "$as_me:$LINENO: checking for shl_load" >&5
6819 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6820 if test "${ac_cv_func_shl_load+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823   cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h.  */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h.  */
6829 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6831 #define shl_load innocuous_shl_load
6832
6833 /* System header to define __stub macros and hopefully few prototypes,
6834     which can conflict with char shl_load (); below.
6835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6836     <limits.h> exists even on freestanding compilers.  */
6837
6838 #ifdef __STDC__
6839 # include <limits.h>
6840 #else
6841 # include <assert.h>
6842 #endif
6843
6844 #undef shl_load
6845
6846 /* Override any gcc2 internal prototype to avoid an error.  */
6847 #ifdef __cplusplus
6848 extern "C"
6849 {
6850 #endif
6851 /* We use char because int might match the return type of a gcc2
6852    builtin and then its argument prototype would still apply.  */
6853 char shl_load ();
6854 /* The GNU C library defines this for functions which it implements
6855     to always fail with ENOSYS.  Some functions are actually named
6856     something starting with __ and the normal name is an alias.  */
6857 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6858 choke me
6859 #else
6860 char (*f) () = shl_load;
6861 #endif
6862 #ifdef __cplusplus
6863 }
6864 #endif
6865
6866 int
6867 main ()
6868 {
6869 return f != shl_load;
6870   ;
6871   return 0;
6872 }
6873 _ACEOF
6874 rm -f conftest.$ac_objext conftest$ac_exeext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6876   (eval $ac_link) 2>conftest.er1
6877   ac_status=$?
6878   grep -v '^ *+' conftest.er1 >conftest.err
6879   rm -f conftest.er1
6880   cat conftest.err >&5
6881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882   (exit $ac_status); } &&
6883          { ac_try='test -z "$ac_c_werror_flag"
6884                          || test ! -s conftest.err'
6885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886   (eval $ac_try) 2>&5
6887   ac_status=$?
6888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889   (exit $ac_status); }; } &&
6890          { ac_try='test -s conftest$ac_exeext'
6891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892   (eval $ac_try) 2>&5
6893   ac_status=$?
6894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895   (exit $ac_status); }; }; then
6896   ac_cv_func_shl_load=yes
6897 else
6898   echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6900
6901 ac_cv_func_shl_load=no
6902 fi
6903 rm -f conftest.err conftest.$ac_objext \
6904       conftest$ac_exeext conftest.$ac_ext
6905 fi
6906 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6907 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6908 if test $ac_cv_func_shl_load = yes; then
6909   lt_cv_dlopen="shl_load"
6910 else
6911   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6912 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6913 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6914   echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916   ac_check_lib_save_LIBS=$LIBS
6917 LIBS="-ldld  $LIBS"
6918 cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h.  */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h.  */
6924
6925 /* Override any gcc2 internal prototype to avoid an error.  */
6926 #ifdef __cplusplus
6927 extern "C"
6928 #endif
6929 /* We use char because int might match the return type of a gcc2
6930    builtin and then its argument prototype would still apply.  */
6931 char shl_load ();
6932 int
6933 main ()
6934 {
6935 shl_load ();
6936   ;
6937   return 0;
6938 }
6939 _ACEOF
6940 rm -f conftest.$ac_objext conftest$ac_exeext
6941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6942   (eval $ac_link) 2>conftest.er1
6943   ac_status=$?
6944   grep -v '^ *+' conftest.er1 >conftest.err
6945   rm -f conftest.er1
6946   cat conftest.err >&5
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); } &&
6949          { ac_try='test -z "$ac_c_werror_flag"
6950                          || test ! -s conftest.err'
6951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952   (eval $ac_try) 2>&5
6953   ac_status=$?
6954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955   (exit $ac_status); }; } &&
6956          { ac_try='test -s conftest$ac_exeext'
6957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958   (eval $ac_try) 2>&5
6959   ac_status=$?
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); }; }; then
6962   ac_cv_lib_dld_shl_load=yes
6963 else
6964   echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6966
6967 ac_cv_lib_dld_shl_load=no
6968 fi
6969 rm -f conftest.err conftest.$ac_objext \
6970       conftest$ac_exeext conftest.$ac_ext
6971 LIBS=$ac_check_lib_save_LIBS
6972 fi
6973 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6974 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6975 if test $ac_cv_lib_dld_shl_load = yes; then
6976   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6977 else
6978   echo "$as_me:$LINENO: checking for dlopen" >&5
6979 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6980 if test "${ac_cv_func_dlopen+set}" = set; then
6981   echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983   cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h.  */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h.  */
6989 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
6990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6991 #define dlopen innocuous_dlopen
6992
6993 /* System header to define __stub macros and hopefully few prototypes,
6994     which can conflict with char dlopen (); below.
6995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6996     <limits.h> exists even on freestanding compilers.  */
6997
6998 #ifdef __STDC__
6999 # include <limits.h>
7000 #else
7001 # include <assert.h>
7002 #endif
7003
7004 #undef dlopen
7005
7006 /* Override any gcc2 internal prototype to avoid an error.  */
7007 #ifdef __cplusplus
7008 extern "C"
7009 {
7010 #endif
7011 /* We use char because int might match the return type of a gcc2
7012    builtin and then its argument prototype would still apply.  */
7013 char dlopen ();
7014 /* The GNU C library defines this for functions which it implements
7015     to always fail with ENOSYS.  Some functions are actually named
7016     something starting with __ and the normal name is an alias.  */
7017 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7018 choke me
7019 #else
7020 char (*f) () = dlopen;
7021 #endif
7022 #ifdef __cplusplus
7023 }
7024 #endif
7025
7026 int
7027 main ()
7028 {
7029 return f != dlopen;
7030   ;
7031   return 0;
7032 }
7033 _ACEOF
7034 rm -f conftest.$ac_objext conftest$ac_exeext
7035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7036   (eval $ac_link) 2>conftest.er1
7037   ac_status=$?
7038   grep -v '^ *+' conftest.er1 >conftest.err
7039   rm -f conftest.er1
7040   cat conftest.err >&5
7041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042   (exit $ac_status); } &&
7043          { ac_try='test -z "$ac_c_werror_flag"
7044                          || test ! -s conftest.err'
7045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046   (eval $ac_try) 2>&5
7047   ac_status=$?
7048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049   (exit $ac_status); }; } &&
7050          { ac_try='test -s conftest$ac_exeext'
7051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052   (eval $ac_try) 2>&5
7053   ac_status=$?
7054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055   (exit $ac_status); }; }; then
7056   ac_cv_func_dlopen=yes
7057 else
7058   echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7060
7061 ac_cv_func_dlopen=no
7062 fi
7063 rm -f conftest.err conftest.$ac_objext \
7064       conftest$ac_exeext conftest.$ac_ext
7065 fi
7066 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7067 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7068 if test $ac_cv_func_dlopen = yes; then
7069   lt_cv_dlopen="dlopen"
7070 else
7071   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7072 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7073 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7074   echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076   ac_check_lib_save_LIBS=$LIBS
7077 LIBS="-ldl  $LIBS"
7078 cat >conftest.$ac_ext <<_ACEOF
7079 /* confdefs.h.  */
7080 _ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h.  */
7084
7085 /* Override any gcc2 internal prototype to avoid an error.  */
7086 #ifdef __cplusplus
7087 extern "C"
7088 #endif
7089 /* We use char because int might match the return type of a gcc2
7090    builtin and then its argument prototype would still apply.  */
7091 char dlopen ();
7092 int
7093 main ()
7094 {
7095 dlopen ();
7096   ;
7097   return 0;
7098 }
7099 _ACEOF
7100 rm -f conftest.$ac_objext conftest$ac_exeext
7101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7102   (eval $ac_link) 2>conftest.er1
7103   ac_status=$?
7104   grep -v '^ *+' conftest.er1 >conftest.err
7105   rm -f conftest.er1
7106   cat conftest.err >&5
7107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108   (exit $ac_status); } &&
7109          { ac_try='test -z "$ac_c_werror_flag"
7110                          || test ! -s conftest.err'
7111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112   (eval $ac_try) 2>&5
7113   ac_status=$?
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); }; } &&
7116          { ac_try='test -s conftest$ac_exeext'
7117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118   (eval $ac_try) 2>&5
7119   ac_status=$?
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); }; }; then
7122   ac_cv_lib_dl_dlopen=yes
7123 else
7124   echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7126
7127 ac_cv_lib_dl_dlopen=no
7128 fi
7129 rm -f conftest.err conftest.$ac_objext \
7130       conftest$ac_exeext conftest.$ac_ext
7131 LIBS=$ac_check_lib_save_LIBS
7132 fi
7133 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7134 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7135 if test $ac_cv_lib_dl_dlopen = yes; then
7136   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7137 else
7138   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7139 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7140 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7141   echo $ECHO_N "(cached) $ECHO_C" >&6
7142 else
7143   ac_check_lib_save_LIBS=$LIBS
7144 LIBS="-lsvld  $LIBS"
7145 cat >conftest.$ac_ext <<_ACEOF
7146 /* confdefs.h.  */
7147 _ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h.  */
7151
7152 /* Override any gcc2 internal prototype to avoid an error.  */
7153 #ifdef __cplusplus
7154 extern "C"
7155 #endif
7156 /* We use char because int might match the return type of a gcc2
7157    builtin and then its argument prototype would still apply.  */
7158 char dlopen ();
7159 int
7160 main ()
7161 {
7162 dlopen ();
7163   ;
7164   return 0;
7165 }
7166 _ACEOF
7167 rm -f conftest.$ac_objext conftest$ac_exeext
7168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7169   (eval $ac_link) 2>conftest.er1
7170   ac_status=$?
7171   grep -v '^ *+' conftest.er1 >conftest.err
7172   rm -f conftest.er1
7173   cat conftest.err >&5
7174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175   (exit $ac_status); } &&
7176          { ac_try='test -z "$ac_c_werror_flag"
7177                          || test ! -s conftest.err'
7178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179   (eval $ac_try) 2>&5
7180   ac_status=$?
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); }; } &&
7183          { ac_try='test -s conftest$ac_exeext'
7184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185   (eval $ac_try) 2>&5
7186   ac_status=$?
7187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188   (exit $ac_status); }; }; then
7189   ac_cv_lib_svld_dlopen=yes
7190 else
7191   echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.$ac_ext >&5
7193
7194 ac_cv_lib_svld_dlopen=no
7195 fi
7196 rm -f conftest.err conftest.$ac_objext \
7197       conftest$ac_exeext conftest.$ac_ext
7198 LIBS=$ac_check_lib_save_LIBS
7199 fi
7200 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7201 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7202 if test $ac_cv_lib_svld_dlopen = yes; then
7203   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7204 else
7205   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7206 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7207 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7208   echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210   ac_check_lib_save_LIBS=$LIBS
7211 LIBS="-ldld  $LIBS"
7212 cat >conftest.$ac_ext <<_ACEOF
7213 /* confdefs.h.  */
7214 _ACEOF
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h.  */
7218
7219 /* Override any gcc2 internal prototype to avoid an error.  */
7220 #ifdef __cplusplus
7221 extern "C"
7222 #endif
7223 /* We use char because int might match the return type of a gcc2
7224    builtin and then its argument prototype would still apply.  */
7225 char dld_link ();
7226 int
7227 main ()
7228 {
7229 dld_link ();
7230   ;
7231   return 0;
7232 }
7233 _ACEOF
7234 rm -f conftest.$ac_objext conftest$ac_exeext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7236   (eval $ac_link) 2>conftest.er1
7237   ac_status=$?
7238   grep -v '^ *+' conftest.er1 >conftest.err
7239   rm -f conftest.er1
7240   cat conftest.err >&5
7241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242   (exit $ac_status); } &&
7243          { ac_try='test -z "$ac_c_werror_flag"
7244                          || test ! -s conftest.err'
7245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246   (eval $ac_try) 2>&5
7247   ac_status=$?
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); }; } &&
7250          { ac_try='test -s conftest$ac_exeext'
7251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252   (eval $ac_try) 2>&5
7253   ac_status=$?
7254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255   (exit $ac_status); }; }; then
7256   ac_cv_lib_dld_dld_link=yes
7257 else
7258   echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7260
7261 ac_cv_lib_dld_dld_link=no
7262 fi
7263 rm -f conftest.err conftest.$ac_objext \
7264       conftest$ac_exeext conftest.$ac_ext
7265 LIBS=$ac_check_lib_save_LIBS
7266 fi
7267 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7268 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7269 if test $ac_cv_lib_dld_dld_link = yes; then
7270   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7271 fi
7272
7273
7274 fi
7275
7276
7277 fi
7278
7279
7280 fi
7281
7282
7283 fi
7284
7285
7286 fi
7287
7288     ;;
7289   esac
7290
7291   if test "x$lt_cv_dlopen" != xno; then
7292     enable_dlopen=yes
7293   else
7294     enable_dlopen=no
7295   fi
7296
7297   case $lt_cv_dlopen in
7298   dlopen)
7299     save_CPPFLAGS="$CPPFLAGS"
7300         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7301
7302     save_LDFLAGS="$LDFLAGS"
7303     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7304
7305     save_LIBS="$LIBS"
7306     LIBS="$lt_cv_dlopen_libs $LIBS"
7307
7308     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7309 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7310 if test "${lt_cv_dlopen_self+set}" = set; then
7311   echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313           if test "$cross_compiling" = yes; then :
7314   lt_cv_dlopen_self=cross
7315 else
7316     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7317   lt_status=$lt_dlunknown
7318   cat > conftest.$ac_ext <<EOF
7319 #line 7319 "configure"
7320 #include "confdefs.h"
7321
7322 #if HAVE_DLFCN_H
7323 #include <dlfcn.h>
7324 #endif
7325
7326 #include <stdio.h>
7327
7328 #ifdef RTLD_GLOBAL
7329 #  define LT_DLGLOBAL           RTLD_GLOBAL
7330 #else
7331 #  ifdef DL_GLOBAL
7332 #    define LT_DLGLOBAL         DL_GLOBAL
7333 #  else
7334 #    define LT_DLGLOBAL         0
7335 #  endif
7336 #endif
7337
7338 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7339    find out it does not work in some platform. */
7340 #ifndef LT_DLLAZY_OR_NOW
7341 #  ifdef RTLD_LAZY
7342 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7343 #  else
7344 #    ifdef DL_LAZY
7345 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7346 #    else
7347 #      ifdef RTLD_NOW
7348 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7349 #      else
7350 #        ifdef DL_NOW
7351 #          define LT_DLLAZY_OR_NOW      DL_NOW
7352 #        else
7353 #          define LT_DLLAZY_OR_NOW      0
7354 #        endif
7355 #      endif
7356 #    endif
7357 #  endif
7358 #endif
7359
7360 #ifdef __cplusplus
7361 extern "C" void exit (int);
7362 #endif
7363
7364 void fnord() { int i=42;}
7365 int main ()
7366 {
7367   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7368   int status = $lt_dlunknown;
7369
7370   if (self)
7371     {
7372       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7373       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7374       /* dlclose (self); */
7375     }
7376
7377     exit (status);
7378 }
7379 EOF
7380   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7381   (eval $ac_link) 2>&5
7382   ac_status=$?
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7385     (./conftest; exit; ) 2>/dev/null
7386     lt_status=$?
7387     case x$lt_status in
7388       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7389       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7390       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7391     esac
7392   else :
7393     # compilation failed
7394     lt_cv_dlopen_self=no
7395   fi
7396 fi
7397 rm -fr conftest*
7398
7399
7400 fi
7401 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7402 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7403
7404     if test "x$lt_cv_dlopen_self" = xyes; then
7405       LDFLAGS="$LDFLAGS $link_static_flag"
7406       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7407 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7408 if test "${lt_cv_dlopen_self_static+set}" = set; then
7409   echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411           if test "$cross_compiling" = yes; then :
7412   lt_cv_dlopen_self_static=cross
7413 else
7414     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7415   lt_status=$lt_dlunknown
7416   cat > conftest.$ac_ext <<EOF
7417 #line 7417 "configure"
7418 #include "confdefs.h"
7419
7420 #if HAVE_DLFCN_H
7421 #include <dlfcn.h>
7422 #endif
7423
7424 #include <stdio.h>
7425
7426 #ifdef RTLD_GLOBAL
7427 #  define LT_DLGLOBAL           RTLD_GLOBAL
7428 #else
7429 #  ifdef DL_GLOBAL
7430 #    define LT_DLGLOBAL         DL_GLOBAL
7431 #  else
7432 #    define LT_DLGLOBAL         0
7433 #  endif
7434 #endif
7435
7436 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7437    find out it does not work in some platform. */
7438 #ifndef LT_DLLAZY_OR_NOW
7439 #  ifdef RTLD_LAZY
7440 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7441 #  else
7442 #    ifdef DL_LAZY
7443 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7444 #    else
7445 #      ifdef RTLD_NOW
7446 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7447 #      else
7448 #        ifdef DL_NOW
7449 #          define LT_DLLAZY_OR_NOW      DL_NOW
7450 #        else
7451 #          define LT_DLLAZY_OR_NOW      0
7452 #        endif
7453 #      endif
7454 #    endif
7455 #  endif
7456 #endif
7457
7458 #ifdef __cplusplus
7459 extern "C" void exit (int);
7460 #endif
7461
7462 void fnord() { int i=42;}
7463 int main ()
7464 {
7465   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7466   int status = $lt_dlunknown;
7467
7468   if (self)
7469     {
7470       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7471       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7472       /* dlclose (self); */
7473     }
7474
7475     exit (status);
7476 }
7477 EOF
7478   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479   (eval $ac_link) 2>&5
7480   ac_status=$?
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7483     (./conftest; exit; ) 2>/dev/null
7484     lt_status=$?
7485     case x$lt_status in
7486       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7487       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7488       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7489     esac
7490   else :
7491     # compilation failed
7492     lt_cv_dlopen_self_static=no
7493   fi
7494 fi
7495 rm -fr conftest*
7496
7497
7498 fi
7499 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7500 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7501     fi
7502
7503     CPPFLAGS="$save_CPPFLAGS"
7504     LDFLAGS="$save_LDFLAGS"
7505     LIBS="$save_LIBS"
7506     ;;
7507   esac
7508
7509   case $lt_cv_dlopen_self in
7510   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7511   *) enable_dlopen_self=unknown ;;
7512   esac
7513
7514   case $lt_cv_dlopen_self_static in
7515   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7516   *) enable_dlopen_self_static=unknown ;;
7517   esac
7518 fi
7519
7520
7521 if test "$enable_shared" = yes && test "$GCC" = yes; then
7522   case $archive_cmds in
7523   *'~'*)
7524     # FIXME: we may have to deal with multi-command sequences.
7525     ;;
7526   '$CC '*)
7527     # Test whether the compiler implicitly links with -lc since on some
7528     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7529     # to ld, don't add -lc before -lgcc.
7530     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7531 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7532     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7533   echo $ECHO_N "(cached) $ECHO_C" >&6
7534 else
7535   $rm conftest*
7536     echo 'static int dummy;' > conftest.$ac_ext
7537
7538     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7539   (eval $ac_compile) 2>&5
7540   ac_status=$?
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); }; then
7543       soname=conftest
7544       lib=conftest
7545       libobjs=conftest.$ac_objext
7546       deplibs=
7547       wl=$lt_cv_prog_cc_wl
7548       compiler_flags=-v
7549       linker_flags=-v
7550       verstring=
7551       output_objdir=.
7552       libname=conftest
7553       save_allow_undefined_flag=$allow_undefined_flag
7554       allow_undefined_flag=
7555       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7556   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7557   ac_status=$?
7558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559   (exit $ac_status); }
7560       then
7561         lt_cv_archive_cmds_need_lc=no
7562       else
7563         lt_cv_archive_cmds_need_lc=yes
7564       fi
7565       allow_undefined_flag=$save_allow_undefined_flag
7566     else
7567       cat conftest.err 1>&5
7568     fi
7569 fi
7570
7571     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7572 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7573     ;;
7574   esac
7575 fi
7576 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7577
7578 # The second clause should only fire when bootstrapping the
7579 # libtool distribution, otherwise you forgot to ship ltmain.sh
7580 # with your package, and you will get complaints that there are
7581 # no rules to generate ltmain.sh.
7582 if test -f "$ltmain"; then
7583   :
7584 else
7585   # If there is no Makefile yet, we rely on a make rule to execute
7586   # `config.status --recheck' to rerun these tests and create the
7587   # libtool script then.
7588   test -f Makefile && make "$ltmain"
7589 fi
7590
7591 if test -f "$ltmain"; then
7592   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7593   $rm -f "${ofile}T"
7594
7595   echo creating $ofile
7596
7597   # Now quote all the things that may contain metacharacters while being
7598   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7599   # variables and quote the copies for generation of the libtool script.
7600   for var in echo old_CC old_CFLAGS SED \
7601     AR AR_FLAGS CC LD LN_S NM SHELL \
7602     reload_flag reload_cmds wl \
7603     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7604     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7605     library_names_spec soname_spec \
7606     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7607     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7608     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7609     old_striplib striplib file_magic_cmd export_symbols_cmds \
7610     deplibs_check_method allow_undefined_flag no_undefined_flag \
7611     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7612     global_symbol_to_c_name_address \
7613     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7614     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7615     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7616
7617     case $var in
7618     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7619     old_postinstall_cmds | old_postuninstall_cmds | \
7620     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7621     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7622     postinstall_cmds | postuninstall_cmds | \
7623     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7624       # Double-quote double-evaled strings.
7625       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7626       ;;
7627     *)
7628       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7629       ;;
7630     esac
7631   done
7632
7633   cat <<__EOF__ > "${ofile}T"
7634 #! $SHELL
7635
7636 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7637 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7638 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7639 #
7640 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7641 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7642 #
7643 # This program is free software; you can redistribute it and/or modify
7644 # it under the terms of the GNU General Public License as published by
7645 # the Free Software Foundation; either version 2 of the License, or
7646 # (at your option) any later version.
7647 #
7648 # This program is distributed in the hope that it will be useful, but
7649 # WITHOUT ANY WARRANTY; without even the implied warranty of
7650 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7651 # General Public License for more details.
7652 #
7653 # You should have received a copy of the GNU General Public License
7654 # along with this program; if not, write to the Free Software
7655 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7656 #
7657 # As a special exception to the GNU General Public License, if you
7658 # distribute this file as part of a program that contains a
7659 # configuration script generated by Autoconf, you may include it under
7660 # the same distribution terms that you use for the rest of that program.
7661
7662 # A sed that does not truncate output.
7663 SED=$lt_SED
7664
7665 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7666 Xsed="${SED} -e s/^X//"
7667
7668 # The HP-UX ksh and POSIX shell print the target directory to stdout
7669 # if CDPATH is set.
7670 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7671
7672 # ### BEGIN LIBTOOL CONFIG
7673
7674 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7675
7676 # Shell to use when invoking shell scripts.
7677 SHELL=$lt_SHELL
7678
7679 # Whether or not to build shared libraries.
7680 build_libtool_libs=$enable_shared
7681
7682 # Whether or not to build static libraries.
7683 build_old_libs=$enable_static
7684
7685 # Whether or not to add -lc for building shared libraries.
7686 build_libtool_need_lc=$need_lc
7687
7688 # Whether or not to optimize for fast installation.
7689 fast_install=$enable_fast_install
7690
7691 # The host system.
7692 host_alias=$host_alias
7693 host=$host
7694
7695 # An echo program that does not interpret backslashes.
7696 echo=$lt_echo
7697
7698 # The archiver.
7699 AR=$lt_AR
7700 AR_FLAGS=$lt_AR_FLAGS
7701
7702 # The default C compiler.
7703 CC=$lt_CC
7704
7705 # Is the compiler the GNU C compiler?
7706 with_gcc=$GCC
7707
7708 # The linker used to build libraries.
7709 LD=$lt_LD
7710
7711 # Whether we need hard or soft links.
7712 LN_S=$lt_LN_S
7713
7714 # A BSD-compatible nm program.
7715 NM=$lt_NM
7716
7717 # A symbol stripping program
7718 STRIP=$STRIP
7719
7720 # Used to examine libraries when file_magic_cmd begins "file"
7721 MAGIC_CMD=$MAGIC_CMD
7722
7723 # Used on cygwin: DLL creation program.
7724 DLLTOOL="$DLLTOOL"
7725
7726 # Used on cygwin: object dumper.
7727 OBJDUMP="$OBJDUMP"
7728
7729 # Used on cygwin: assembler.
7730 AS="$AS"
7731
7732 # The name of the directory that contains temporary libtool files.
7733 objdir=$objdir
7734
7735 # How to create reloadable object files.
7736 reload_flag=$lt_reload_flag
7737 reload_cmds=$lt_reload_cmds
7738
7739 # How to pass a linker flag through the compiler.
7740 wl=$lt_wl
7741
7742 # Object file suffix (normally "o").
7743 objext="$ac_objext"
7744
7745 # Old archive suffix (normally "a").
7746 libext="$libext"
7747
7748 # Executable file suffix (normally "").
7749 exeext="$exeext"
7750
7751 # Additional compiler flags for building library objects.
7752 pic_flag=$lt_pic_flag
7753 pic_mode=$pic_mode
7754
7755 # Does compiler simultaneously support -c and -o options?
7756 compiler_c_o=$lt_compiler_c_o
7757
7758 # Can we write directly to a .lo ?
7759 compiler_o_lo=$lt_compiler_o_lo
7760
7761 # Must we lock files when doing compilation ?
7762 need_locks=$lt_need_locks
7763
7764 # Do we need the lib prefix for modules?
7765 need_lib_prefix=$need_lib_prefix
7766
7767 # Do we need a version for libraries?
7768 need_version=$need_version
7769
7770 # Whether dlopen is supported.
7771 dlopen_support=$enable_dlopen
7772
7773 # Whether dlopen of programs is supported.
7774 dlopen_self=$enable_dlopen_self
7775
7776 # Whether dlopen of statically linked programs is supported.
7777 dlopen_self_static=$enable_dlopen_self_static
7778
7779 # Compiler flag to prevent dynamic linking.
7780 link_static_flag=$lt_link_static_flag
7781
7782 # Compiler flag to turn off builtin functions.
7783 no_builtin_flag=$lt_no_builtin_flag
7784
7785 # Compiler flag to allow reflexive dlopens.
7786 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7787
7788 # Compiler flag to generate shared objects directly from archives.
7789 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7790
7791 # Compiler flag to generate thread-safe objects.
7792 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7793
7794 # Library versioning type.
7795 version_type=$version_type
7796
7797 # Format of library name prefix.
7798 libname_spec=$lt_libname_spec
7799
7800 # List of archive names.  First name is the real one, the rest are links.
7801 # The last name is the one that the linker finds with -lNAME.
7802 library_names_spec=$lt_library_names_spec
7803
7804 # The coded name of the library, if different from the real name.
7805 soname_spec=$lt_soname_spec
7806
7807 # Commands used to build and install an old-style archive.
7808 RANLIB=$lt_RANLIB
7809 old_archive_cmds=$lt_old_archive_cmds
7810 old_postinstall_cmds=$lt_old_postinstall_cmds
7811 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7812
7813 # Create an old-style archive from a shared archive.
7814 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7815
7816 # Create a temporary old-style archive to link instead of a shared archive.
7817 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7818
7819 # Commands used to build and install a shared archive.
7820 archive_cmds=$lt_archive_cmds
7821 archive_expsym_cmds=$lt_archive_expsym_cmds
7822 postinstall_cmds=$lt_postinstall_cmds
7823 postuninstall_cmds=$lt_postuninstall_cmds
7824
7825 # Commands to strip libraries.
7826 old_striplib=$lt_old_striplib
7827 striplib=$lt_striplib
7828
7829 # Method to check whether dependent libraries are shared objects.
7830 deplibs_check_method=$lt_deplibs_check_method
7831
7832 # Command to use when deplibs_check_method == file_magic.
7833 file_magic_cmd=$lt_file_magic_cmd
7834
7835 # Flag that allows shared libraries with undefined symbols to be built.
7836 allow_undefined_flag=$lt_allow_undefined_flag
7837
7838 # Flag that forces no undefined symbols.
7839 no_undefined_flag=$lt_no_undefined_flag
7840
7841 # Commands used to finish a libtool library installation in a directory.
7842 finish_cmds=$lt_finish_cmds
7843
7844 # Same as above, but a single script fragment to be evaled but not shown.
7845 finish_eval=$lt_finish_eval
7846
7847 # Take the output of nm and produce a listing of raw symbols and C names.
7848 global_symbol_pipe=$lt_global_symbol_pipe
7849
7850 # Transform the output of nm in a proper C declaration
7851 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7852
7853 # Transform the output of nm in a C name address pair
7854 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7855
7856 # This is the shared library runtime path variable.
7857 runpath_var=$runpath_var
7858
7859 # This is the shared library path variable.
7860 shlibpath_var=$shlibpath_var
7861
7862 # Is shlibpath searched before the hard-coded library search path?
7863 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7864
7865 # How to hardcode a shared library path into an executable.
7866 hardcode_action=$hardcode_action
7867
7868 # Whether we should hardcode library paths into libraries.
7869 hardcode_into_libs=$hardcode_into_libs
7870
7871 # Flag to hardcode \$libdir into a binary during linking.
7872 # This must work even if \$libdir does not exist.
7873 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7874
7875 # Whether we need a single -rpath flag with a separated argument.
7876 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7877
7878 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7879 # resulting binary.
7880 hardcode_direct=$hardcode_direct
7881
7882 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7883 # resulting binary.
7884 hardcode_minus_L=$hardcode_minus_L
7885
7886 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7887 # the resulting binary.
7888 hardcode_shlibpath_var=$hardcode_shlibpath_var
7889
7890 # Variables whose values should be saved in libtool wrapper scripts and
7891 # restored at relink time.
7892 variables_saved_for_relink="$variables_saved_for_relink"
7893
7894 # Whether libtool must link a program against all its dependency libraries.
7895 link_all_deplibs=$link_all_deplibs
7896
7897 # Compile-time system search path for libraries
7898 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7899
7900 # Run-time system search path for libraries
7901 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7902
7903 # Fix the shell variable \$srcfile for the compiler.
7904 fix_srcfile_path="$fix_srcfile_path"
7905
7906 # Set to yes if exported symbols are required.
7907 always_export_symbols=$always_export_symbols
7908
7909 # The commands to list exported symbols.
7910 export_symbols_cmds=$lt_export_symbols_cmds
7911
7912 # The commands to extract the exported symbol list from a shared archive.
7913 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7914
7915 # Symbols that should not be listed in the preloaded symbols.
7916 exclude_expsyms=$lt_exclude_expsyms
7917
7918 # Symbols that must always be exported.
7919 include_expsyms=$lt_include_expsyms
7920
7921 # ### END LIBTOOL CONFIG
7922
7923 __EOF__
7924
7925   case $host_os in
7926   aix3*)
7927     cat <<\EOF >> "${ofile}T"
7928
7929 # AIX sometimes has problems with the GCC collect2 program.  For some
7930 # reason, if we set the COLLECT_NAMES environment variable, the problems
7931 # vanish in a puff of smoke.
7932 if test "X${COLLECT_NAMES+set}" != Xset; then
7933   COLLECT_NAMES=
7934   export COLLECT_NAMES
7935 fi
7936 EOF
7937     ;;
7938   esac
7939
7940   case $host_os in
7941   cygwin* | mingw* | pw32* | os2*)
7942     cat <<'EOF' >> "${ofile}T"
7943       # This is a source program that is used to create dlls on Windows
7944       # Don't remove nor modify the starting and closing comments
7945 # /* ltdll.c starts here */
7946 # #define WIN32_LEAN_AND_MEAN
7947 # #include <windows.h>
7948 # #undef WIN32_LEAN_AND_MEAN
7949 # #include <stdio.h>
7950 #
7951 # #ifndef __CYGWIN__
7952 # #  ifdef __CYGWIN32__
7953 # #    define __CYGWIN__ __CYGWIN32__
7954 # #  endif
7955 # #endif
7956 #
7957 # #ifdef __cplusplus
7958 # extern "C" {
7959 # #endif
7960 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7961 # #ifdef __cplusplus
7962 # }
7963 # #endif
7964 #
7965 # #ifdef __CYGWIN__
7966 # #include <cygwin/cygwin_dll.h>
7967 # DECLARE_CYGWIN_DLL( DllMain );
7968 # #endif
7969 # HINSTANCE __hDllInstance_base;
7970 #
7971 # BOOL APIENTRY
7972 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7973 # {
7974 #   __hDllInstance_base = hInst;
7975 #   return TRUE;
7976 # }
7977 # /* ltdll.c ends here */
7978         # This is a source program that is used to create import libraries
7979         # on Windows for dlls which lack them. Don't remove nor modify the
7980         # starting and closing comments
7981 # /* impgen.c starts here */
7982 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7983 #
7984 #  This file is part of GNU libtool.
7985 #
7986 #  This program is free software; you can redistribute it and/or modify
7987 #  it under the terms of the GNU General Public License as published by
7988 #  the Free Software Foundation; either version 2 of the License, or
7989 #  (at your option) any later version.
7990 #
7991 #  This program is distributed in the hope that it will be useful,
7992 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7993 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7994 #  GNU General Public License for more details.
7995 #
7996 #  You should have received a copy of the GNU General Public License
7997 #  along with this program; if not, write to the Free Software
7998 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7999 #  */
8000 #
8001 # #include <stdio.h>            /* for printf() */
8002 # #include <unistd.h>           /* for open(), lseek(), read() */
8003 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8004 # #include <string.h>           /* for strdup() */
8005 #
8006 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8007 # #ifndef O_BINARY
8008 # #define O_BINARY 0
8009 # #endif
8010 #
8011 # static unsigned int
8012 # pe_get16 (fd, offset)
8013 #      int fd;
8014 #      int offset;
8015 # {
8016 #   unsigned char b[2];
8017 #   lseek (fd, offset, SEEK_SET);
8018 #   read (fd, b, 2);
8019 #   return b[0] + (b[1]<<8);
8020 # }
8021 #
8022 # static unsigned int
8023 # pe_get32 (fd, offset)
8024 #     int fd;
8025 #     int offset;
8026 # {
8027 #   unsigned char b[4];
8028 #   lseek (fd, offset, SEEK_SET);
8029 #   read (fd, b, 4);
8030 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8031 # }
8032 #
8033 # static unsigned int
8034 # pe_as32 (ptr)
8035 #      void *ptr;
8036 # {
8037 #   unsigned char *b = ptr;
8038 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8039 # }
8040 #
8041 # int
8042 # main (argc, argv)
8043 #     int argc;
8044 #     char *argv[];
8045 # {
8046 #     int dll;
8047 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8048 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8049 #     unsigned long name_rvas, nexp;
8050 #     unsigned char *expdata, *erva;
8051 #     char *filename, *dll_name;
8052 #
8053 #     filename = argv[1];
8054 #
8055 #     dll = open(filename, O_RDONLY|O_BINARY);
8056 #     if (dll < 1)
8057 #       return 1;
8058 #
8059 #     dll_name = filename;
8060 #
8061 #     for (i=0; filename[i]; i++)
8062 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8063 #           dll_name = filename + i +1;
8064 #
8065 #     pe_header_offset = pe_get32 (dll, 0x3c);
8066 #     opthdr_ofs = pe_header_offset + 4 + 20;
8067 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8068 #
8069 #     if (num_entries < 1) /* no exports */
8070 #       return 1;
8071 #
8072 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8073 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8074 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8075 #     secptr = (pe_header_offset + 4 + 20 +
8076 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8077 #
8078 #     expptr = 0;
8079 #     for (i = 0; i < nsections; i++)
8080 #     {
8081 #       char sname[8];
8082 #       unsigned long secptr1 = secptr + 40 * i;
8083 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8084 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8085 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8086 #       lseek(dll, secptr1, SEEK_SET);
8087 #       read(dll, sname, 8);
8088 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8089 #       {
8090 #           expptr = fptr + (export_rva - vaddr);
8091 #           if (export_rva + export_size > vaddr + vsize)
8092 #               export_size = vsize - (export_rva - vaddr);
8093 #           break;
8094 #       }
8095 #     }
8096 #
8097 #     expdata = (unsigned char*)malloc(export_size);
8098 #     lseek (dll, expptr, SEEK_SET);
8099 #     read (dll, expdata, export_size);
8100 #     erva = expdata - export_rva;
8101 #
8102 #     nexp = pe_as32 (expdata+24);
8103 #     name_rvas = pe_as32 (expdata+32);
8104 #
8105 #     printf ("EXPORTS\n");
8106 #     for (i = 0; i<nexp; i++)
8107 #     {
8108 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8109 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8110 #     }
8111 #
8112 #     return 0;
8113 # }
8114 # /* impgen.c ends here */
8115
8116 EOF
8117     ;;
8118   esac
8119
8120   # We use sed instead of cat because bash on DJGPP gets confused if
8121   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8122   # text mode, it properly converts lines to CR/LF.  This bash problem
8123   # is reportedly fixed, but why not run on old versions too?
8124   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8125
8126   mv -f "${ofile}T" "$ofile" || \
8127     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8128   chmod +x "$ofile"
8129 fi
8130
8131
8132
8133
8134
8135 # This can be used to rebuild libtool when needed
8136 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8137
8138 # Always use our own libtool.
8139 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8140
8141 # Prevent multiple expansion
8142
8143
8144  for ac_prog in gzip uncompress compress
8145 do
8146   # Extract the first word of "$ac_prog", so it can be a program name with args.
8147 set dummy $ac_prog; ac_word=$2
8148 echo "$as_me:$LINENO: checking for $ac_word" >&5
8149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8150 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8151   echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
8153   if test -n "$UNCOMPRESS"; then
8154   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8155 else
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 for as_dir in $PATH
8158 do
8159   IFS=$as_save_IFS
8160   test -z "$as_dir" && as_dir=.
8161   for ac_exec_ext in '' $ac_executable_extensions; do
8162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8163     ac_cv_prog_UNCOMPRESS="$ac_prog"
8164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8165     break 2
8166   fi
8167 done
8168 done
8169
8170 fi
8171 fi
8172 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8173 if test -n "$UNCOMPRESS"; then
8174   echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8175 echo "${ECHO_T}$UNCOMPRESS" >&6
8176 else
8177   echo "$as_me:$LINENO: result: no" >&5
8178 echo "${ECHO_T}no" >&6
8179 fi
8180
8181   test -n "$UNCOMPRESS" && break
8182 done
8183
8184
8185
8186
8187
8188
8189
8190
8191 echo "$as_me:$LINENO: checking for target system" >&5
8192 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8193 CYGWIN=
8194 MINGW=
8195 case $host_os in
8196     *cygwin* ) CYGWIN=yes;;
8197     *mingw* ) MINGW=yes;;
8198 esac
8199
8200 AR=ar
8201 if test "x$MINGW" = "xyes"; then
8202     #fix for the debian distribution of mingw
8203     if test -x "/usr/i586-mingw32msvc/bin/ar";then
8204         AR="/usr/i586-mingw32msvc/bin/ar"
8205     fi
8206     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8207         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8208     fi
8209     #fix for the gentoo distribution of mingw
8210     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8211         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8212     fi
8213     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8214         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8215     fi
8216     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8217         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8218     fi
8219 fi
8220
8221
8222
8223 if test "x${CYGWIN}" = "xyes"; then
8224     cat >>confdefs.h <<_ACEOF
8225 #define CYGWIN 1
8226 _ACEOF
8227
8228     echo "$as_me:$LINENO: result: cygwin" >&5
8229 echo "${ECHO_T}cygwin" >&6
8230 else
8231     if test "x${MINGW}" = "xyes"; then
8232         cat >>confdefs.h <<_ACEOF
8233 #define MINGW 1
8234 _ACEOF
8235
8236         WIN32=1
8237         cat >>confdefs.h <<_ACEOF
8238 #define WIN32 1
8239 _ACEOF
8240
8241         LIBS="$LIBS -lws2_32"
8242         echo "$as_me:$LINENO: result: mingw" >&5
8243 echo "${ECHO_T}mingw" >&6
8244     else
8245         LINUX=1
8246         export LINUX
8247         cat >>confdefs.h <<_ACEOF
8248 #define LINUX 1
8249 _ACEOF
8250
8251         echo "$as_me:$LINENO: result: " >&5
8252 echo "${ECHO_T}" >&6
8253     fi
8254 fi
8255
8256
8257 if test "x${MINGW}" != "xyes"; then
8258     cat >>confdefs.h <<_ACEOF
8259 #define O_BINARY 0
8260 _ACEOF
8261
8262 fi
8263 # The following tries to make use of includes and libraries in
8264 # /usr/local, too. Notice: A -I/usr/local/include might break
8265 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8266 # especially on systems which link /usr/local to /usr, so it has yet
8267 # to be seen how useful this is.
8268 if test -d /usr/local/lib; then
8269     LDFLAGS="$LDFLAGS -L/usr/local/lib"
8270 fi
8271 if test -d /usr/local/include; then
8272 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8273 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8274     echo > /dev/null
8275 fi
8276 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8277     # if the user has a special prefix (like /opt), there might also be $prefix/lib
8278     # and $prefix/include, which should be included in our search paths for libraries
8279     # and includes.
8280     LDFLAGS="$LDFLAGS -L${libdir}"
8281     CPPFLAGS="$CPPFLAGS -I${includedir}"
8282     # TODO- test whether gcc still works after this
8283 fi
8284
8285 # this must be done after (I believe) AC_PROG_MAKE_SET
8286 if test "x$DEBUG" '!=' "x";then
8287     STRIP="@echo debug enabled, not stripping "
8288     export STRIP
8289
8290 fi
8291
8292
8293 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8294 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8295 if test "${ac_cv_lib_m_sin+set}" = set; then
8296   echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298   ac_check_lib_save_LIBS=$LIBS
8299 LIBS="-lm  $LIBS"
8300 cat >conftest.$ac_ext <<_ACEOF
8301 /* confdefs.h.  */
8302 _ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h.  */
8306
8307 /* Override any gcc2 internal prototype to avoid an error.  */
8308 #ifdef __cplusplus
8309 extern "C"
8310 #endif
8311 /* We use char because int might match the return type of a gcc2
8312    builtin and then its argument prototype would still apply.  */
8313 char sin ();
8314 int
8315 main ()
8316 {
8317 sin ();
8318   ;
8319   return 0;
8320 }
8321 _ACEOF
8322 rm -f conftest.$ac_objext conftest$ac_exeext
8323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324   (eval $ac_link) 2>conftest.er1
8325   ac_status=$?
8326   grep -v '^ *+' conftest.er1 >conftest.err
8327   rm -f conftest.er1
8328   cat conftest.err >&5
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); } &&
8331          { ac_try='test -z "$ac_c_werror_flag"
8332                          || test ! -s conftest.err'
8333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334   (eval $ac_try) 2>&5
8335   ac_status=$?
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); }; } &&
8338          { ac_try='test -s conftest$ac_exeext'
8339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340   (eval $ac_try) 2>&5
8341   ac_status=$?
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); }; }; then
8344   ac_cv_lib_m_sin=yes
8345 else
8346   echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8348
8349 ac_cv_lib_m_sin=no
8350 fi
8351 rm -f conftest.err conftest.$ac_objext \
8352       conftest$ac_exeext conftest.$ac_ext
8353 LIBS=$ac_check_lib_save_LIBS
8354 fi
8355 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8356 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8357 if test $ac_cv_lib_m_sin = yes; then
8358   cat >>confdefs.h <<_ACEOF
8359 #define HAVE_LIBM 1
8360 _ACEOF
8361
8362   LIBS="-lm $LIBS"
8363
8364 else
8365   echo "Error: Math library not found.";
8366  exit;
8367
8368 fi
8369
8370
8371 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8372 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8373 if test "${ac_cv_lib_z_deflate+set}" = set; then
8374   echo $ECHO_N "(cached) $ECHO_C" >&6
8375 else
8376   ac_check_lib_save_LIBS=$LIBS
8377 LIBS="-lz  $LIBS"
8378 cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h.  */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h.  */
8384
8385 /* Override any gcc2 internal prototype to avoid an error.  */
8386 #ifdef __cplusplus
8387 extern "C"
8388 #endif
8389 /* We use char because int might match the return type of a gcc2
8390    builtin and then its argument prototype would still apply.  */
8391 char deflate ();
8392 int
8393 main ()
8394 {
8395 deflate ();
8396   ;
8397   return 0;
8398 }
8399 _ACEOF
8400 rm -f conftest.$ac_objext conftest$ac_exeext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8402   (eval $ac_link) 2>conftest.er1
8403   ac_status=$?
8404   grep -v '^ *+' conftest.er1 >conftest.err
8405   rm -f conftest.er1
8406   cat conftest.err >&5
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); } &&
8409          { ac_try='test -z "$ac_c_werror_flag"
8410                          || test ! -s conftest.err'
8411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412   (eval $ac_try) 2>&5
8413   ac_status=$?
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); }; } &&
8416          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8422   ac_cv_lib_z_deflate=yes
8423 else
8424   echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8426
8427 ac_cv_lib_z_deflate=no
8428 fi
8429 rm -f conftest.err conftest.$ac_objext \
8430       conftest$ac_exeext conftest.$ac_ext
8431 LIBS=$ac_check_lib_save_LIBS
8432 fi
8433 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8434 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8435 if test $ac_cv_lib_z_deflate = yes; then
8436   cat >>confdefs.h <<_ACEOF
8437 #define HAVE_LIBZ 1
8438 _ACEOF
8439
8440   LIBS="-lz $LIBS"
8441
8442 else
8443   DISABLEPNG2SWF=true;
8444  MISSINGLIBS="${MISSINGLIBS} zlib"
8445  ZLIBMISSING=true;
8446
8447 fi
8448
8449
8450 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8451 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8452 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8453   echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455   ac_check_lib_save_LIBS=$LIBS
8456 LIBS="-ljpeg  $LIBS"
8457 cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h.  */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h.  */
8463
8464 /* Override any gcc2 internal prototype to avoid an error.  */
8465 #ifdef __cplusplus
8466 extern "C"
8467 #endif
8468 /* We use char because int might match the return type of a gcc2
8469    builtin and then its argument prototype would still apply.  */
8470 char jpeg_write_raw_data ();
8471 int
8472 main ()
8473 {
8474 jpeg_write_raw_data ();
8475   ;
8476   return 0;
8477 }
8478 _ACEOF
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8481   (eval $ac_link) 2>conftest.er1
8482   ac_status=$?
8483   grep -v '^ *+' conftest.er1 >conftest.err
8484   rm -f conftest.er1
8485   cat conftest.err >&5
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); } &&
8488          { ac_try='test -z "$ac_c_werror_flag"
8489                          || test ! -s conftest.err'
8490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491   (eval $ac_try) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); }; } &&
8495          { ac_try='test -s conftest$ac_exeext'
8496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497   (eval $ac_try) 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); }; }; then
8501   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8502 else
8503   echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8505
8506 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8507 fi
8508 rm -f conftest.err conftest.$ac_objext \
8509       conftest$ac_exeext conftest.$ac_ext
8510 LIBS=$ac_check_lib_save_LIBS
8511 fi
8512 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8513 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8514 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8515   cat >>confdefs.h <<_ACEOF
8516 #define HAVE_LIBJPEG 1
8517 _ACEOF
8518
8519   LIBS="-ljpeg $LIBS"
8520
8521 else
8522   DISABLEPDF2SWF=true;
8523  DISABLEJPEG2SWF=true;
8524  MISSINGLIBS="${MISSINGLIBS} jpeglib"
8525
8526 fi
8527
8528
8529 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8530 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8531 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8532   echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534   ac_check_lib_save_LIBS=$LIBS
8535 LIBS="-lt1  $LIBS"
8536 cat >conftest.$ac_ext <<_ACEOF
8537 /* confdefs.h.  */
8538 _ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h.  */
8542
8543 /* Override any gcc2 internal prototype to avoid an error.  */
8544 #ifdef __cplusplus
8545 extern "C"
8546 #endif
8547 /* We use char because int might match the return type of a gcc2
8548    builtin and then its argument prototype would still apply.  */
8549 char T1_LoadFont ();
8550 int
8551 main ()
8552 {
8553 T1_LoadFont ();
8554   ;
8555   return 0;
8556 }
8557 _ACEOF
8558 rm -f conftest.$ac_objext conftest$ac_exeext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8560   (eval $ac_link) 2>conftest.er1
8561   ac_status=$?
8562   grep -v '^ *+' conftest.er1 >conftest.err
8563   rm -f conftest.er1
8564   cat conftest.err >&5
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); } &&
8567          { ac_try='test -z "$ac_c_werror_flag"
8568                          || test ! -s conftest.err'
8569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570   (eval $ac_try) 2>&5
8571   ac_status=$?
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); }; } &&
8574          { ac_try='test -s conftest$ac_exeext'
8575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576   (eval $ac_try) 2>&5
8577   ac_status=$?
8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); }; }; then
8580   ac_cv_lib_t1_T1_LoadFont=yes
8581 else
8582   echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585 ac_cv_lib_t1_T1_LoadFont=no
8586 fi
8587 rm -f conftest.err conftest.$ac_objext \
8588       conftest$ac_exeext conftest.$ac_ext
8589 LIBS=$ac_check_lib_save_LIBS
8590 fi
8591 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8592 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8593 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8594   cat >>confdefs.h <<_ACEOF
8595 #define HAVE_LIBT1 1
8596 _ACEOF
8597
8598   LIBS="-lt1 $LIBS"
8599
8600 else
8601   DISABLEPDF2SWF=true;
8602  MISSINGLIBS="${MISSINGLIBS} t1lib"
8603
8604 fi
8605
8606
8607
8608 for ac_prog in freetype-config
8609 do
8610   # Extract the first word of "$ac_prog", so it can be a program name with args.
8611 set dummy $ac_prog; ac_word=$2
8612 echo "$as_me:$LINENO: checking for $ac_word" >&5
8613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8614 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
8615   echo $ECHO_N "(cached) $ECHO_C" >&6
8616 else
8617   if test -n "$FREETYPE_CONFIG"; then
8618   ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
8619 else
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in $PATH
8622 do
8623   IFS=$as_save_IFS
8624   test -z "$as_dir" && as_dir=.
8625   for ac_exec_ext in '' $ac_executable_extensions; do
8626   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8627     ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
8628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8629     break 2
8630   fi
8631 done
8632 done
8633
8634 fi
8635 fi
8636 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
8637 if test -n "$FREETYPE_CONFIG"; then
8638   echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8639 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
8640 else
8641   echo "$as_me:$LINENO: result: no" >&5
8642 echo "${ECHO_T}no" >&6
8643 fi
8644
8645   test -n "$FREETYPE_CONFIG" && break
8646 done
8647
8648 OLDCPPFLAGS="${CPPFLAGS}"
8649 OLDLIBS="${LIBS}"
8650 if test "x${FREETYPE_CONFIG}" != "x"; then
8651     CPPFLAGS="$CFLAGS "`freetype-config --cflags`
8652 else if test -d /usr/include/freetype2; then
8653     CPPFLAGS="$CFLAGS -I/usr/include/freetype2"
8654 else if test -d /usr/local/include/freetype2; then
8655     CPPFLAGS="$CFLAGS -I/usr/local/include/freetype2"
8656 fi
8657 fi
8658 fi
8659 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8660 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8661 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8662   echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664   ac_check_lib_save_LIBS=$LIBS
8665 LIBS="-lfreetype  $LIBS"
8666 cat >conftest.$ac_ext <<_ACEOF
8667 /* confdefs.h.  */
8668 _ACEOF
8669 cat confdefs.h >>conftest.$ac_ext
8670 cat >>conftest.$ac_ext <<_ACEOF
8671 /* end confdefs.h.  */
8672
8673 /* Override any gcc2 internal prototype to avoid an error.  */
8674 #ifdef __cplusplus
8675 extern "C"
8676 #endif
8677 /* We use char because int might match the return type of a gcc2
8678    builtin and then its argument prototype would still apply.  */
8679 char FT_Init_FreeType ();
8680 int
8681 main ()
8682 {
8683 FT_Init_FreeType ();
8684   ;
8685   return 0;
8686 }
8687 _ACEOF
8688 rm -f conftest.$ac_objext conftest$ac_exeext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8690   (eval $ac_link) 2>conftest.er1
8691   ac_status=$?
8692   grep -v '^ *+' conftest.er1 >conftest.err
8693   rm -f conftest.er1
8694   cat conftest.err >&5
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); } &&
8697          { ac_try='test -z "$ac_c_werror_flag"
8698                          || test ! -s conftest.err'
8699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700   (eval $ac_try) 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); }; } &&
8704          { ac_try='test -s conftest$ac_exeext'
8705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706   (eval $ac_try) 2>&5
8707   ac_status=$?
8708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709   (exit $ac_status); }; }; then
8710   ac_cv_lib_freetype_FT_Init_FreeType=yes
8711 else
8712   echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8714
8715 ac_cv_lib_freetype_FT_Init_FreeType=no
8716 fi
8717 rm -f conftest.err conftest.$ac_objext \
8718       conftest$ac_exeext conftest.$ac_ext
8719 LIBS=$ac_check_lib_save_LIBS
8720 fi
8721 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8722 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8723 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8724   HAVE_LIB_FREETYPE=1
8725 fi
8726
8727
8728 for ac_header in freetype/freetype.h
8729 do
8730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8732   echo "$as_me:$LINENO: checking for $ac_header" >&5
8733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8735   echo $ECHO_N "(cached) $ECHO_C" >&6
8736 fi
8737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8739 else
8740   # Is the header compilable?
8741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h.  */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h.  */
8749 $ac_includes_default
8750 #include <$ac_header>
8751 _ACEOF
8752 rm -f conftest.$ac_objext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8754   (eval $ac_compile) 2>conftest.er1
8755   ac_status=$?
8756   grep -v '^ *+' conftest.er1 >conftest.err
8757   rm -f conftest.er1
8758   cat conftest.err >&5
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); } &&
8761          { ac_try='test -z "$ac_c_werror_flag"
8762                          || test ! -s conftest.err'
8763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764   (eval $ac_try) 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); }; } &&
8768          { ac_try='test -s conftest.$ac_objext'
8769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770   (eval $ac_try) 2>&5
8771   ac_status=$?
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); }; }; then
8774   ac_header_compiler=yes
8775 else
8776   echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8778
8779 ac_header_compiler=no
8780 fi
8781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8783 echo "${ECHO_T}$ac_header_compiler" >&6
8784
8785 # Is the header present?
8786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8788 cat >conftest.$ac_ext <<_ACEOF
8789 /* confdefs.h.  */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h.  */
8794 #include <$ac_header>
8795 _ACEOF
8796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8798   ac_status=$?
8799   grep -v '^ *+' conftest.er1 >conftest.err
8800   rm -f conftest.er1
8801   cat conftest.err >&5
8802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803   (exit $ac_status); } >/dev/null; then
8804   if test -s conftest.err; then
8805     ac_cpp_err=$ac_c_preproc_warn_flag
8806     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8807   else
8808     ac_cpp_err=
8809   fi
8810 else
8811   ac_cpp_err=yes
8812 fi
8813 if test -z "$ac_cpp_err"; then
8814   ac_header_preproc=yes
8815 else
8816   echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8818
8819   ac_header_preproc=no
8820 fi
8821 rm -f conftest.err conftest.$ac_ext
8822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8823 echo "${ECHO_T}$ac_header_preproc" >&6
8824
8825 # So?  What about this header?
8826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8827   yes:no: )
8828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8832     ac_header_preproc=yes
8833     ;;
8834   no:yes:* )
8835     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8837     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8838 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8839     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8841     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8842 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8845     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8847     (
8848       cat <<\_ASBOX
8849 ## ------------------------------------------ ##
8850 ## Report this to the AC_PACKAGE_NAME lists.  ##
8851 ## ------------------------------------------ ##
8852 _ASBOX
8853     ) |
8854       sed "s/^/$as_me: WARNING:     /" >&2
8855     ;;
8856 esac
8857 echo "$as_me:$LINENO: checking for $ac_header" >&5
8858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8860   echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862   eval "$as_ac_Header=\$ac_header_preproc"
8863 fi
8864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8866
8867 fi
8868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8869   cat >>confdefs.h <<_ACEOF
8870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8871 _ACEOF
8872  HAVE_FREETYPE_FREETYPE_H=1
8873 fi
8874
8875 done
8876
8877 if test "x${HAVE_LIB_FREETYPE}" != "x";then
8878 if test "x${HAVE_FREETYPE_FREETYPE_H}" != "x";then
8879     HAVE_FREETYPE=1
8880 fi
8881 fi
8882
8883 if test "x${HAVE_FREETYPE}" = "x1"; then
8884     if test "x{$FREETYPE_CONFIG}" != "x"; then
8885         LIBS="$LIBS "`freetype-config --libs`
8886     else
8887         LIBS="$LIBS -lfreetype"
8888     fi
8889
8890     echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8891 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
8892
8893     cat > conftest.c << EOF
8894 #include <freetype/freetype.h>
8895 #include <freetype/ftglyph.h>
8896 #include <freetype/ftsnames.h>
8897 #include <freetype/ttnameid.h>
8898 #include <freetype/ftoutln.h>
8899
8900 int main()
8901 {
8902     FT_Library ftlibrary;
8903     FT_Face face;
8904     FT_Error error;
8905     FT_ULong charcode;
8906     FT_UInt gindex;
8907     FT_Glyph glyph;
8908     FT_BBox bbox;
8909     FT_Matrix matrix;
8910     FT_UInt i;
8911     char* name = 0;
8912     char italic, bold;
8913
8914     FT_Init_FreeType(&ftlibrary);
8915     FT_New_Face(ftlibrary, "filename", 0, &face);
8916     i = face->num_glyphs - 1;
8917     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8918     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8919     FT_Get_Postscript_Name(face);
8920     FT_Get_Char_Index(face, 33);
8921     FT_Get_First_Char(face, &i);
8922     FT_Get_Next_Char(face, 33, &i);
8923     if(FT_HAS_GLYPH_NAMES(face)) {
8924         FT_Get_Glyph_Name(face, 33, name, 127);
8925     }
8926     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8927     FT_Get_Glyph(face->glyph, &glyph);
8928     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8929     FT_Done_Glyph(glyph);
8930     FT_Done_Face(face);
8931     FT_Done_FreeType(ftlibrary);
8932     return 0;
8933 }
8934 EOF
8935
8936     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LIBS -o conftest${ac_exeext}'
8937     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8938         echo "$as_me:$LINENO: result: yes" >&5
8939 echo "${ECHO_T}yes" >&6
8940         cat >>confdefs.h <<_ACEOF
8941 #define HAVE_FREETYPE 1
8942 _ACEOF
8943
8944         cat >>confdefs.h <<_ACEOF
8945 #define USE_FREETYPE 1
8946 _ACEOF
8947   # for ttf2tp1
8948     else
8949         echo "configure: failed program was:" >&5
8950         cat conftest.c >&5
8951         HAVE_FREETYPE=0
8952         echo "$as_me:$LINENO: result: no" >&5
8953 echo "${ECHO_T}no" >&6
8954     fi
8955     rm -f conftest*
8956 fi
8957
8958 # if the above didn't work out, reset all changes to the compiler variables.
8959 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
8960     CPPFLAGS=$OLDCPPFLAGS
8961     LIBS=$OLDLIBS
8962 fi
8963
8964
8965
8966 echo "$as_me:$LINENO: checking for byte order" >&5
8967 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8968 if test "$cross_compiling" = yes; then
8969   CROSSCOMPILE=1
8970 else
8971   cat >conftest.$ac_ext <<_ACEOF
8972 /* confdefs.h.  */
8973 _ACEOF
8974 cat confdefs.h >>conftest.$ac_ext
8975 cat >>conftest.$ac_ext <<_ACEOF
8976 /* end confdefs.h.  */
8977
8978 int main (int argc, char *argv[])
8979 {
8980     int i = 1;
8981     return *(char*)&i;
8982 }
8983
8984 _ACEOF
8985 rm -f conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987   (eval $ac_link) 2>&5
8988   ac_status=$?
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992   (eval $ac_try) 2>&5
8993   ac_status=$?
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); }; }; then
8996   BIGENDIAN=1
8997 else
8998   echo "$as_me: program exited with status $ac_status" >&5
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9001
9002 ( exit $ac_status )
9003 LITTLEENDIAN=1
9004 fi
9005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9006 fi
9007 export CROSSCOMPILE
9008
9009 if test "x${CROSSCOMPILE}" = "x1"; then
9010  echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
9011 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
9012  echo "$as_me:$LINENO: checking target system type" >&5
9013 echo $ECHO_N "checking target system type... $ECHO_C" >&6
9014 if test "${ac_cv_target+set}" = set; then
9015   echo $ECHO_N "(cached) $ECHO_C" >&6
9016 else
9017   ac_cv_target_alias=$target_alias
9018 test "x$ac_cv_target_alias" = "x" &&
9019   ac_cv_target_alias=$ac_cv_host_alias
9020 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
9021   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
9022 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
9023    { (exit 1); exit 1; }; }
9024
9025 fi
9026 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
9027 echo "${ECHO_T}$ac_cv_target" >&6
9028 target=$ac_cv_target
9029 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9030 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9031 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9032
9033
9034 # The aliases save the names the user supplied, while $host etc.
9035 # will get canonicalized.
9036 test -n "$target_alias" &&
9037   test "$program_prefix$program_suffix$program_transform_name" = \
9038     NONENONEs,x,x, &&
9039   program_prefix=${target_alias}-
9040  echo "$as_me:$LINENO: checking for byte order, try 2" >&5
9041 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
9042  case "${target}" in
9043   *86* | *-pc-* )
9044      LITTLEENDIAN=1
9045      ;;
9046   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
9047      BIGENDIAN=1
9048      ;;
9049  esac
9050 fi
9051
9052 export LITTLEENDIAN
9053 if test "x${LITTLEENDIAN}" = "x1"; then
9054 echo "$as_me:$LINENO: result: little endian" >&5
9055 echo "${ECHO_T}little endian" >&6
9056 BYTEORDERCHECKOK=1
9057 fi
9058 export BIGENDIAN
9059 if test "x${BIGENDIAN}" = "x1"; then
9060 echo "$as_me:$LINENO: result: big endian" >&5
9061 echo "${ECHO_T}big endian" >&6
9062 BYTEORDERCHECKOK=1
9063 WORDS_BIGENDIAN=1
9064 export WORDS_BIGENDIAN
9065 cat >>confdefs.h <<_ACEOF
9066 #define WORDS_BIGENDIAN 1
9067 _ACEOF
9068
9069 fi
9070 if test "x${BYTEORDERCHECKOK}" != "x1"; then
9071 echo "$as_me:$LINENO: result: unknown" >&5
9072 echo "${ECHO_T}unknown" >&6
9073 echo Byte order could not determined.
9074 exit 1
9075 fi
9076
9077
9078
9079 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
9080 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
9081 if test "$cross_compiling" = yes; then
9082   CROSSCOMPILE=1
9083 else
9084   cat >conftest.$ac_ext <<_ACEOF
9085 /* confdefs.h.  */
9086 _ACEOF
9087 cat confdefs.h >>conftest.$ac_ext
9088 cat >>conftest.$ac_ext <<_ACEOF
9089 /* end confdefs.h.  */
9090
9091 #include "stdlib.h"
9092 int main (int argc, char*argv[])
9093 {
9094     return system("test `touch config.tmp2`");
9095 }
9096
9097 _ACEOF
9098 rm -f conftest$ac_exeext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9100   (eval $ac_link) 2>&5
9101   ac_status=$?
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105   (eval $ac_try) 2>&5
9106   ac_status=$?
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); }; }; then
9109   OK=OK
9110 else
9111   echo "$as_me: program exited with status $ac_status" >&5
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9114
9115 fi
9116 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9117 fi
9118
9119 if test "x${OK}" = "xOK";then
9120     test -f config.tmp2 || OK=
9121 fi
9122
9123 if test "x${CROSSCOMPILE}" = "x1";then
9124     OK=OK;
9125 fi
9126 if test "x${OK}" = "xOK";then
9127 rm -f config.tmp2
9128 echo "$as_me:$LINENO: result: yes" >&5
9129 echo "${ECHO_T}yes" >&6
9130 SYSTEM_BACKTICKS=1
9131 export SYSTEM_BACKTICKS
9132 cat >>confdefs.h <<_ACEOF
9133 #define SYSTEM_BACKTICKS 1
9134 _ACEOF
9135
9136 else
9137 echo "$as_me:$LINENO: result: no" >&5
9138 echo "${ECHO_T}no" >&6
9139 fi
9140
9141
9142
9143 test "$program_prefix" != NONE &&
9144   program_transform_name="s,^,$program_prefix,;$program_transform_name"
9145 # Use a double $ so make ignores it.
9146 test "$program_suffix" != NONE &&
9147   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9148 # Double any \ or $.  echo might interpret backslashes.
9149 # By default was `s,x,x', remove it if useless.
9150 cat <<\_ACEOF >conftest.sed
9151 s/[\\$]/&&/g;s/;s,x,x,$//
9152 _ACEOF
9153 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
9154 rm conftest.sed
9155
9156
9157            ac_config_headers="$ac_config_headers config.h"
9158
9159
9160
9161
9162
9163
9164 ac_header_dirent=no
9165 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9166   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9167 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9168 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170   echo $ECHO_N "(cached) $ECHO_C" >&6
9171 else
9172   cat >conftest.$ac_ext <<_ACEOF
9173 /* confdefs.h.  */
9174 _ACEOF
9175 cat confdefs.h >>conftest.$ac_ext
9176 cat >>conftest.$ac_ext <<_ACEOF
9177 /* end confdefs.h.  */
9178 #include <sys/types.h>
9179 #include <$ac_hdr>
9180
9181 int
9182 main ()
9183 {
9184 if ((DIR *) 0)
9185 return 0;
9186   ;
9187   return 0;
9188 }
9189 _ACEOF
9190 rm -f conftest.$ac_objext
9191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9192   (eval $ac_compile) 2>conftest.er1
9193   ac_status=$?
9194   grep -v '^ *+' conftest.er1 >conftest.err
9195   rm -f conftest.er1
9196   cat conftest.err >&5
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); } &&
9199          { ac_try='test -z "$ac_c_werror_flag"
9200                          || test ! -s conftest.err'
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); }; } &&
9206          { ac_try='test -s conftest.$ac_objext'
9207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208   (eval $ac_try) 2>&5
9209   ac_status=$?
9210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211   (exit $ac_status); }; }; then
9212   eval "$as_ac_Header=yes"
9213 else
9214   echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9216
9217 eval "$as_ac_Header=no"
9218 fi
9219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9220 fi
9221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9224   cat >>confdefs.h <<_ACEOF
9225 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9226 _ACEOF
9227
9228 ac_header_dirent=$ac_hdr; break
9229 fi
9230
9231 done
9232 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9233 if test $ac_header_dirent = dirent.h; then
9234   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9235 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9236 if test "${ac_cv_search_opendir+set}" = set; then
9237   echo $ECHO_N "(cached) $ECHO_C" >&6
9238 else
9239   ac_func_search_save_LIBS=$LIBS
9240 ac_cv_search_opendir=no
9241 cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h.  */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h.  */
9247
9248 /* Override any gcc2 internal prototype to avoid an error.  */
9249 #ifdef __cplusplus
9250 extern "C"
9251 #endif
9252 /* We use char because int might match the return type of a gcc2
9253    builtin and then its argument prototype would still apply.  */
9254 char opendir ();
9255 int
9256 main ()
9257 {
9258 opendir ();
9259   ;
9260   return 0;
9261 }
9262 _ACEOF
9263 rm -f conftest.$ac_objext conftest$ac_exeext
9264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9265   (eval $ac_link) 2>conftest.er1
9266   ac_status=$?
9267   grep -v '^ *+' conftest.er1 >conftest.err
9268   rm -f conftest.er1
9269   cat conftest.err >&5
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); } &&
9272          { ac_try='test -z "$ac_c_werror_flag"
9273                          || test ! -s conftest.err'
9274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275   (eval $ac_try) 2>&5
9276   ac_status=$?
9277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   (exit $ac_status); }; } &&
9279          { ac_try='test -s conftest$ac_exeext'
9280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281   (eval $ac_try) 2>&5
9282   ac_status=$?
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); }; }; then
9285   ac_cv_search_opendir="none required"
9286 else
9287   echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9289
9290 fi
9291 rm -f conftest.err conftest.$ac_objext \
9292       conftest$ac_exeext conftest.$ac_ext
9293 if test "$ac_cv_search_opendir" = no; then
9294   for ac_lib in dir; do
9295     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9296     cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h.  */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h.  */
9302
9303 /* Override any gcc2 internal prototype to avoid an error.  */
9304 #ifdef __cplusplus
9305 extern "C"
9306 #endif
9307 /* We use char because int might match the return type of a gcc2
9308    builtin and then its argument prototype would still apply.  */
9309 char opendir ();
9310 int
9311 main ()
9312 {
9313 opendir ();
9314   ;
9315   return 0;
9316 }
9317 _ACEOF
9318 rm -f conftest.$ac_objext conftest$ac_exeext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320   (eval $ac_link) 2>conftest.er1
9321   ac_status=$?
9322   grep -v '^ *+' conftest.er1 >conftest.err
9323   rm -f conftest.er1
9324   cat conftest.err >&5
9325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326   (exit $ac_status); } &&
9327          { ac_try='test -z "$ac_c_werror_flag"
9328                          || test ! -s conftest.err'
9329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330   (eval $ac_try) 2>&5
9331   ac_status=$?
9332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333   (exit $ac_status); }; } &&
9334          { ac_try='test -s conftest$ac_exeext'
9335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336   (eval $ac_try) 2>&5
9337   ac_status=$?
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); }; }; then
9340   ac_cv_search_opendir="-l$ac_lib"
9341 break
9342 else
9343   echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9345
9346 fi
9347 rm -f conftest.err conftest.$ac_objext \
9348       conftest$ac_exeext conftest.$ac_ext
9349   done
9350 fi
9351 LIBS=$ac_func_search_save_LIBS
9352 fi
9353 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9354 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9355 if test "$ac_cv_search_opendir" != no; then
9356   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9357
9358 fi
9359
9360 else
9361   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9362 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9363 if test "${ac_cv_search_opendir+set}" = set; then
9364   echo $ECHO_N "(cached) $ECHO_C" >&6
9365 else
9366   ac_func_search_save_LIBS=$LIBS
9367 ac_cv_search_opendir=no
9368 cat >conftest.$ac_ext <<_ACEOF
9369 /* confdefs.h.  */
9370 _ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h.  */
9374
9375 /* Override any gcc2 internal prototype to avoid an error.  */
9376 #ifdef __cplusplus
9377 extern "C"
9378 #endif
9379 /* We use char because int might match the return type of a gcc2
9380    builtin and then its argument prototype would still apply.  */
9381 char opendir ();
9382 int
9383 main ()
9384 {
9385 opendir ();
9386   ;
9387   return 0;
9388 }
9389 _ACEOF
9390 rm -f conftest.$ac_objext conftest$ac_exeext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392   (eval $ac_link) 2>conftest.er1
9393   ac_status=$?
9394   grep -v '^ *+' conftest.er1 >conftest.err
9395   rm -f conftest.er1
9396   cat conftest.err >&5
9397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398   (exit $ac_status); } &&
9399          { ac_try='test -z "$ac_c_werror_flag"
9400                          || test ! -s conftest.err'
9401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402   (eval $ac_try) 2>&5
9403   ac_status=$?
9404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405   (exit $ac_status); }; } &&
9406          { ac_try='test -s conftest$ac_exeext'
9407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408   (eval $ac_try) 2>&5
9409   ac_status=$?
9410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411   (exit $ac_status); }; }; then
9412   ac_cv_search_opendir="none required"
9413 else
9414   echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9416
9417 fi
9418 rm -f conftest.err conftest.$ac_objext \
9419       conftest$ac_exeext conftest.$ac_ext
9420 if test "$ac_cv_search_opendir" = no; then
9421   for ac_lib in x; do
9422     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9423     cat >conftest.$ac_ext <<_ACEOF
9424 /* confdefs.h.  */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h.  */
9429
9430 /* Override any gcc2 internal prototype to avoid an error.  */
9431 #ifdef __cplusplus
9432 extern "C"
9433 #endif
9434 /* We use char because int might match the return type of a gcc2
9435    builtin and then its argument prototype would still apply.  */
9436 char opendir ();
9437 int
9438 main ()
9439 {
9440 opendir ();
9441   ;
9442   return 0;
9443 }
9444 _ACEOF
9445 rm -f conftest.$ac_objext conftest$ac_exeext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447   (eval $ac_link) 2>conftest.er1
9448   ac_status=$?
9449   grep -v '^ *+' conftest.er1 >conftest.err
9450   rm -f conftest.er1
9451   cat conftest.err >&5
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); } &&
9454          { ac_try='test -z "$ac_c_werror_flag"
9455                          || test ! -s conftest.err'
9456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457   (eval $ac_try) 2>&5
9458   ac_status=$?
9459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460   (exit $ac_status); }; } &&
9461          { ac_try='test -s conftest$ac_exeext'
9462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463   (eval $ac_try) 2>&5
9464   ac_status=$?
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); }; }; then
9467   ac_cv_search_opendir="-l$ac_lib"
9468 break
9469 else
9470   echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9472
9473 fi
9474 rm -f conftest.err conftest.$ac_objext \
9475       conftest$ac_exeext conftest.$ac_ext
9476   done
9477 fi
9478 LIBS=$ac_func_search_save_LIBS
9479 fi
9480 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9481 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9482 if test "$ac_cv_search_opendir" != no; then
9483   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9484
9485 fi
9486
9487 fi
9488
9489  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9490 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9491 if test "${ac_cv_header_stdc+set}" = set; then
9492   echo $ECHO_N "(cached) $ECHO_C" >&6
9493 else
9494   cat >conftest.$ac_ext <<_ACEOF
9495 /* confdefs.h.  */
9496 _ACEOF
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h.  */
9500 #include <stdlib.h>
9501 #include <stdarg.h>
9502 #include <string.h>
9503 #include <float.h>
9504
9505 int
9506 main ()
9507 {
9508
9509   ;
9510   return 0;
9511 }
9512 _ACEOF
9513 rm -f conftest.$ac_objext
9514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9515   (eval $ac_compile) 2>conftest.er1
9516   ac_status=$?
9517   grep -v '^ *+' conftest.er1 >conftest.err
9518   rm -f conftest.er1
9519   cat conftest.err >&5
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   (exit $ac_status); } &&
9522          { ac_try='test -z "$ac_c_werror_flag"
9523                          || test ! -s conftest.err'
9524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9525   (eval $ac_try) 2>&5
9526   ac_status=$?
9527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528   (exit $ac_status); }; } &&
9529          { ac_try='test -s conftest.$ac_objext'
9530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531   (eval $ac_try) 2>&5
9532   ac_status=$?
9533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534   (exit $ac_status); }; }; then
9535   ac_cv_header_stdc=yes
9536 else
9537   echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9539
9540 ac_cv_header_stdc=no
9541 fi
9542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9543
9544 if test $ac_cv_header_stdc = yes; then
9545   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9546   cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h.  */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h.  */
9552 #include <string.h>
9553
9554 _ACEOF
9555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9556   $EGREP "memchr" >/dev/null 2>&1; then
9557   :
9558 else
9559   ac_cv_header_stdc=no
9560 fi
9561 rm -f conftest*
9562
9563 fi
9564
9565 if test $ac_cv_header_stdc = yes; then
9566   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9567   cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h.  */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h.  */
9573 #include <stdlib.h>
9574
9575 _ACEOF
9576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9577   $EGREP "free" >/dev/null 2>&1; then
9578   :
9579 else
9580   ac_cv_header_stdc=no
9581 fi
9582 rm -f conftest*
9583
9584 fi
9585
9586 if test $ac_cv_header_stdc = yes; then
9587   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9588   if test "$cross_compiling" = yes; then
9589   :
9590 else
9591   cat >conftest.$ac_ext <<_ACEOF
9592 /* confdefs.h.  */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h.  */
9597 #include <ctype.h>
9598 #if ((' ' & 0x0FF) == 0x020)
9599 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9600 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9601 #else
9602 # define ISLOWER(c) \
9603                    (('a' <= (c) && (c) <= 'i') \
9604                      || ('j' <= (c) && (c) <= 'r') \
9605                      || ('s' <= (c) && (c) <= 'z'))
9606 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9607 #endif
9608
9609 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9610 int
9611 main ()
9612 {
9613   int i;
9614   for (i = 0; i < 256; i++)
9615     if (XOR (islower (i), ISLOWER (i))
9616         || toupper (i) != TOUPPER (i))
9617       exit(2);
9618   exit (0);
9619 }
9620 _ACEOF
9621 rm -f conftest$ac_exeext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9623   (eval $ac_link) 2>&5
9624   ac_status=$?
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628   (eval $ac_try) 2>&5
9629   ac_status=$?
9630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631   (exit $ac_status); }; }; then
9632   :
9633 else
9634   echo "$as_me: program exited with status $ac_status" >&5
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9637
9638 ( exit $ac_status )
9639 ac_cv_header_stdc=no
9640 fi
9641 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9642 fi
9643 fi
9644 fi
9645 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9646 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9647 if test $ac_cv_header_stdc = yes; then
9648
9649 cat >>confdefs.h <<\_ACEOF
9650 #define STDC_HEADERS 1
9651 _ACEOF
9652
9653 fi
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669 for ac_header in zlib.h jpeglib.h t1lib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
9670 do
9671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9673   echo "$as_me:$LINENO: checking for $ac_header" >&5
9674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9676   echo $ECHO_N "(cached) $ECHO_C" >&6
9677 fi
9678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9680 else
9681   # Is the header compilable?
9682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9684 cat >conftest.$ac_ext <<_ACEOF
9685 /* confdefs.h.  */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h.  */
9690 $ac_includes_default
9691 #include <$ac_header>
9692 _ACEOF
9693 rm -f conftest.$ac_objext
9694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9695   (eval $ac_compile) 2>conftest.er1
9696   ac_status=$?
9697   grep -v '^ *+' conftest.er1 >conftest.err
9698   rm -f conftest.er1
9699   cat conftest.err >&5
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); } &&
9702          { ac_try='test -z "$ac_c_werror_flag"
9703                          || test ! -s conftest.err'
9704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705   (eval $ac_try) 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); }; } &&
9709          { ac_try='test -s conftest.$ac_objext'
9710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711   (eval $ac_try) 2>&5
9712   ac_status=$?
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); }; }; then
9715   ac_header_compiler=yes
9716 else
9717   echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9719
9720 ac_header_compiler=no
9721 fi
9722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9724 echo "${ECHO_T}$ac_header_compiler" >&6
9725
9726 # Is the header present?
9727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9729 cat >conftest.$ac_ext <<_ACEOF
9730 /* confdefs.h.  */
9731 _ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h.  */
9735 #include <$ac_header>
9736 _ACEOF
9737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9738   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9739   ac_status=$?
9740   grep -v '^ *+' conftest.er1 >conftest.err
9741   rm -f conftest.er1
9742   cat conftest.err >&5
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); } >/dev/null; then
9745   if test -s conftest.err; then
9746     ac_cpp_err=$ac_c_preproc_warn_flag
9747     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9748   else
9749     ac_cpp_err=
9750   fi
9751 else
9752   ac_cpp_err=yes
9753 fi
9754 if test -z "$ac_cpp_err"; then
9755   ac_header_preproc=yes
9756 else
9757   echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9759
9760   ac_header_preproc=no
9761 fi
9762 rm -f conftest.err conftest.$ac_ext
9763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9764 echo "${ECHO_T}$ac_header_preproc" >&6
9765
9766 # So?  What about this header?
9767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9768   yes:no: )
9769     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9773     ac_header_preproc=yes
9774     ;;
9775   no:yes:* )
9776     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9778     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9779 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9780     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9782     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9783 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9786     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9788     (
9789       cat <<\_ASBOX
9790 ## ------------------------------------------ ##
9791 ## Report this to the AC_PACKAGE_NAME lists.  ##
9792 ## ------------------------------------------ ##
9793 _ASBOX
9794     ) |
9795       sed "s/^/$as_me: WARNING:     /" >&2
9796     ;;
9797 esac
9798 echo "$as_me:$LINENO: checking for $ac_header" >&5
9799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9801   echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803   eval "$as_ac_Header=\$ac_header_preproc"
9804 fi
9805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9807
9808 fi
9809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9810   cat >>confdefs.h <<_ACEOF
9811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9812 _ACEOF
9813
9814 fi
9815
9816 done
9817
9818
9819 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
9820  DISABLEPDF2SWF=true;
9821  DISABLEJPEG2SWF=true;
9822  MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9823 fi
9824 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
9825  DISABLEPDF2SWF=true;
9826  MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9827 fi
9828 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
9829  DISABLEPNG2SWF=true;
9830  MISSINGLIBS="${MISSINGLIBS} zlib.h"
9831  ZLIBMISSING=true;
9832 fi
9833
9834 cat >>confdefs.h <<_ACEOF
9835 #define PACKAGE "$PACKAGE"
9836 _ACEOF
9837
9838 cat >>confdefs.h <<_ACEOF
9839 #define VERSION "$VERSION"
9840 _ACEOF
9841
9842
9843
9844
9845
9846
9847
9848  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9849 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9850 if test "${ac_cv_c_const+set}" = set; then
9851   echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853   cat >conftest.$ac_ext <<_ACEOF
9854 /* confdefs.h.  */
9855 _ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h.  */
9859
9860 int
9861 main ()
9862 {
9863 /* FIXME: Include the comments suggested by Paul. */
9864 #ifndef __cplusplus
9865   /* Ultrix mips cc rejects this.  */
9866   typedef int charset[2];
9867   const charset x;
9868   /* SunOS 4.1.1 cc rejects this.  */
9869   char const *const *ccp;
9870   char **p;
9871   /* NEC SVR4.0.2 mips cc rejects this.  */
9872   struct point {int x, y;};
9873   static struct point const zero = {0,0};
9874   /* AIX XL C 1.02.0.0 rejects this.
9875      It does not let you subtract one const X* pointer from another in
9876      an arm of an if-expression whose if-part is not a constant
9877      expression */
9878   const char *g = "string";
9879   ccp = &g + (g ? g-g : 0);
9880   /* HPUX 7.0 cc rejects these. */
9881   ++ccp;
9882   p = (char**) ccp;
9883   ccp = (char const *const *) p;
9884   { /* SCO 3.2v4 cc rejects this.  */
9885     char *t;
9886     char const *s = 0 ? (char *) 0 : (char const *) 0;
9887
9888     *t++ = 0;
9889   }
9890   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9891     int x[] = {25, 17};
9892     const int *foo = &x[0];
9893     ++foo;
9894   }
9895   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9896     typedef const int *iptr;
9897     iptr p = 0;
9898     ++p;
9899   }
9900   { /* AIX XL C 1.02.0.0 rejects this saying
9901        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9902     struct s { int j; const int *ap[3]; };
9903     struct s *b; b->j = 5;
9904   }
9905   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9906     const int foo = 10;
9907   }
9908 #endif
9909
9910   ;
9911   return 0;
9912 }
9913 _ACEOF
9914 rm -f conftest.$ac_objext
9915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9916   (eval $ac_compile) 2>conftest.er1
9917   ac_status=$?
9918   grep -v '^ *+' conftest.er1 >conftest.err
9919   rm -f conftest.er1
9920   cat conftest.err >&5
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); } &&
9923          { ac_try='test -z "$ac_c_werror_flag"
9924                          || test ! -s conftest.err'
9925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926   (eval $ac_try) 2>&5
9927   ac_status=$?
9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); }; } &&
9930          { ac_try='test -s conftest.$ac_objext'
9931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932   (eval $ac_try) 2>&5
9933   ac_status=$?
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); }; }; then
9936   ac_cv_c_const=yes
9937 else
9938   echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9940
9941 ac_cv_c_const=no
9942 fi
9943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9944 fi
9945 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9946 echo "${ECHO_T}$ac_cv_c_const" >&6
9947 if test $ac_cv_c_const = no; then
9948
9949 cat >>confdefs.h <<\_ACEOF
9950 #define const
9951 _ACEOF
9952
9953 fi
9954
9955  echo "$as_me:$LINENO: checking for inline" >&5
9956 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9957 if test "${ac_cv_c_inline+set}" = set; then
9958   echo $ECHO_N "(cached) $ECHO_C" >&6
9959 else
9960   ac_cv_c_inline=no
9961 for ac_kw in inline __inline__ __inline; do
9962   cat >conftest.$ac_ext <<_ACEOF
9963 /* confdefs.h.  */
9964 _ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h.  */
9968 #ifndef __cplusplus
9969 typedef int foo_t;
9970 static $ac_kw foo_t static_foo () {return 0; }
9971 $ac_kw foo_t foo () {return 0; }
9972 #endif
9973
9974 _ACEOF
9975 rm -f conftest.$ac_objext
9976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9977   (eval $ac_compile) 2>conftest.er1
9978   ac_status=$?
9979   grep -v '^ *+' conftest.er1 >conftest.err
9980   rm -f conftest.er1
9981   cat conftest.err >&5
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); } &&
9984          { ac_try='test -z "$ac_c_werror_flag"
9985                          || test ! -s conftest.err'
9986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987   (eval $ac_try) 2>&5
9988   ac_status=$?
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); }; } &&
9991          { ac_try='test -s conftest.$ac_objext'
9992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993   (eval $ac_try) 2>&5
9994   ac_status=$?
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); }; }; then
9997   ac_cv_c_inline=$ac_kw; break
9998 else
9999   echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10001
10002 fi
10003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10004 done
10005
10006 fi
10007 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10008 echo "${ECHO_T}$ac_cv_c_inline" >&6
10009
10010
10011 case $ac_cv_c_inline in
10012   inline | yes) ;;
10013   *)
10014     case $ac_cv_c_inline in
10015       no) ac_val=;;
10016       *) ac_val=$ac_cv_c_inline;;
10017     esac
10018     cat >>confdefs.h <<_ACEOF
10019 #ifndef __cplusplus
10020 #define inline $ac_val
10021 #endif
10022 _ACEOF
10023     ;;
10024 esac
10025
10026  echo "$as_me:$LINENO: checking for off_t" >&5
10027 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10028 if test "${ac_cv_type_off_t+set}" = set; then
10029   echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031   cat >conftest.$ac_ext <<_ACEOF
10032 /* confdefs.h.  */
10033 _ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h.  */
10037 $ac_includes_default
10038 int
10039 main ()
10040 {
10041 if ((off_t *) 0)
10042   return 0;
10043 if (sizeof (off_t))
10044   return 0;
10045   ;
10046   return 0;
10047 }
10048 _ACEOF
10049 rm -f conftest.$ac_objext
10050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10051   (eval $ac_compile) 2>conftest.er1
10052   ac_status=$?
10053   grep -v '^ *+' conftest.er1 >conftest.err
10054   rm -f conftest.er1
10055   cat conftest.err >&5
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); } &&
10058          { ac_try='test -z "$ac_c_werror_flag"
10059                          || test ! -s conftest.err'
10060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061   (eval $ac_try) 2>&5
10062   ac_status=$?
10063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064   (exit $ac_status); }; } &&
10065          { ac_try='test -s conftest.$ac_objext'
10066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067   (eval $ac_try) 2>&5
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); }; }; then
10071   ac_cv_type_off_t=yes
10072 else
10073   echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10075
10076 ac_cv_type_off_t=no
10077 fi
10078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10079 fi
10080 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10081 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10082 if test $ac_cv_type_off_t = yes; then
10083   :
10084 else
10085
10086 cat >>confdefs.h <<_ACEOF
10087 #define off_t long
10088 _ACEOF
10089
10090 fi
10091
10092  echo "$as_me:$LINENO: checking for size_t" >&5
10093 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10094 if test "${ac_cv_type_size_t+set}" = set; then
10095   echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097   cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h.  */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h.  */
10103 $ac_includes_default
10104 int
10105 main ()
10106 {
10107 if ((size_t *) 0)
10108   return 0;
10109 if (sizeof (size_t))
10110   return 0;
10111   ;
10112   return 0;
10113 }
10114 _ACEOF
10115 rm -f conftest.$ac_objext
10116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10117   (eval $ac_compile) 2>conftest.er1
10118   ac_status=$?
10119   grep -v '^ *+' conftest.er1 >conftest.err
10120   rm -f conftest.er1
10121   cat conftest.err >&5
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); } &&
10124          { ac_try='test -z "$ac_c_werror_flag"
10125                          || test ! -s conftest.err'
10126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127   (eval $ac_try) 2>&5
10128   ac_status=$?
10129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); }; } &&
10131          { ac_try='test -s conftest.$ac_objext'
10132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133   (eval $ac_try) 2>&5
10134   ac_status=$?
10135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136   (exit $ac_status); }; }; then
10137   ac_cv_type_size_t=yes
10138 else
10139   echo "$as_me: failed program was:" >&5
10140 sed 's/^/| /' conftest.$ac_ext >&5
10141
10142 ac_cv_type_size_t=no
10143 fi
10144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10145 fi
10146 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10147 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10148 if test $ac_cv_type_size_t = yes; then
10149   :
10150 else
10151
10152 cat >>confdefs.h <<_ACEOF
10153 #define size_t unsigned
10154 _ACEOF
10155
10156 fi
10157
10158  echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10159 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10160 if test "${ac_cv_struct_tm+set}" = set; then
10161   echo $ECHO_N "(cached) $ECHO_C" >&6
10162 else
10163   cat >conftest.$ac_ext <<_ACEOF
10164 /* confdefs.h.  */
10165 _ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h.  */
10169 #include <sys/types.h>
10170 #include <time.h>
10171
10172 int
10173 main ()
10174 {
10175 struct tm *tp; tp->tm_sec;
10176   ;
10177   return 0;
10178 }
10179 _ACEOF
10180 rm -f conftest.$ac_objext
10181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10182   (eval $ac_compile) 2>conftest.er1
10183   ac_status=$?
10184   grep -v '^ *+' conftest.er1 >conftest.err
10185   rm -f conftest.er1
10186   cat conftest.err >&5
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); } &&
10189          { ac_try='test -z "$ac_c_werror_flag"
10190                          || test ! -s conftest.err'
10191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192   (eval $ac_try) 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); }; } &&
10196          { ac_try='test -s conftest.$ac_objext'
10197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198   (eval $ac_try) 2>&5
10199   ac_status=$?
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); }; }; then
10202   ac_cv_struct_tm=time.h
10203 else
10204   echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10206
10207 ac_cv_struct_tm=sys/time.h
10208 fi
10209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10210 fi
10211 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10212 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10213 if test $ac_cv_struct_tm = sys/time.h; then
10214
10215 cat >>confdefs.h <<\_ACEOF
10216 #define TM_IN_SYS_TIME 1
10217 _ACEOF
10218
10219 fi
10220
10221  echo "$as_me:$LINENO: checking for boolean" >&5
10222 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
10223 if test "${ac_cv_type_boolean+set}" = set; then
10224   echo $ECHO_N "(cached) $ECHO_C" >&6
10225 else
10226   cat >conftest.$ac_ext <<_ACEOF
10227 /* confdefs.h.  */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h.  */
10232 $ac_includes_default
10233 int
10234 main ()
10235 {
10236 if ((boolean *) 0)
10237   return 0;
10238 if (sizeof (boolean))
10239   return 0;
10240   ;
10241   return 0;
10242 }
10243 _ACEOF
10244 rm -f conftest.$ac_objext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10246   (eval $ac_compile) 2>conftest.er1
10247   ac_status=$?
10248   grep -v '^ *+' conftest.er1 >conftest.err
10249   rm -f conftest.er1
10250   cat conftest.err >&5
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); } &&
10253          { ac_try='test -z "$ac_c_werror_flag"
10254                          || test ! -s conftest.err'
10255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256   (eval $ac_try) 2>&5
10257   ac_status=$?
10258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259   (exit $ac_status); }; } &&
10260          { ac_try='test -s conftest.$ac_objext'
10261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262   (eval $ac_try) 2>&5
10263   ac_status=$?
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); }; }; then
10266   ac_cv_type_boolean=yes
10267 else
10268   echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.$ac_ext >&5
10270
10271 ac_cv_type_boolean=no
10272 fi
10273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10274 fi
10275 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
10276 echo "${ECHO_T}$ac_cv_type_boolean" >&6
10277 if test $ac_cv_type_boolean = yes; then
10278   :
10279 else
10280
10281 cat >>confdefs.h <<_ACEOF
10282 #define boolean int
10283 _ACEOF
10284
10285 fi
10286
10287  echo "$as_me:$LINENO: checking for bool" >&5
10288 echo $ECHO_N "checking for bool... $ECHO_C" >&6
10289 if test "${ac_cv_type_bool+set}" = set; then
10290   echo $ECHO_N "(cached) $ECHO_C" >&6
10291 else
10292   cat >conftest.$ac_ext <<_ACEOF
10293 /* confdefs.h.  */
10294 _ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h.  */
10298 $ac_includes_default
10299 int
10300 main ()
10301 {
10302 if ((bool *) 0)
10303   return 0;
10304 if (sizeof (bool))
10305   return 0;
10306   ;
10307   return 0;
10308 }
10309 _ACEOF
10310 rm -f conftest.$ac_objext
10311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10312   (eval $ac_compile) 2>conftest.er1
10313   ac_status=$?
10314   grep -v '^ *+' conftest.er1 >conftest.err
10315   rm -f conftest.er1
10316   cat conftest.err >&5
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); } &&
10319          { ac_try='test -z "$ac_c_werror_flag"
10320                          || test ! -s conftest.err'
10321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322   (eval $ac_try) 2>&5
10323   ac_status=$?
10324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325   (exit $ac_status); }; } &&
10326          { ac_try='test -s conftest.$ac_objext'
10327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328   (eval $ac_try) 2>&5
10329   ac_status=$?
10330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331   (exit $ac_status); }; }; then
10332   ac_cv_type_bool=yes
10333 else
10334   echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10336
10337 ac_cv_type_bool=no
10338 fi
10339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10340 fi
10341 echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
10342 echo "${ECHO_T}$ac_cv_type_bool" >&6
10343 if test $ac_cv_type_bool = yes; then
10344   :
10345 else
10346
10347 cat >>confdefs.h <<_ACEOF
10348 #define bool char
10349 _ACEOF
10350
10351 fi
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
10365 do
10366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10367 echo "$as_me:$LINENO: checking for $ac_func" >&5
10368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10369 if eval "test \"\${$as_ac_var+set}\" = set"; then
10370   echo $ECHO_N "(cached) $ECHO_C" >&6
10371 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10380 #define $ac_func innocuous_$ac_func
10381
10382 /* System header to define __stub macros and hopefully few prototypes,
10383     which can conflict with char $ac_func (); below.
10384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10385     <limits.h> exists even on freestanding compilers.  */
10386
10387 #ifdef __STDC__
10388 # include <limits.h>
10389 #else
10390 # include <assert.h>
10391 #endif
10392
10393 #undef $ac_func
10394
10395 /* Override any gcc2 internal prototype to avoid an error.  */
10396 #ifdef __cplusplus
10397 extern "C"
10398 {
10399 #endif
10400 /* We use char because int might match the return type of a gcc2
10401    builtin and then its argument prototype would still apply.  */
10402 char $ac_func ();
10403 /* The GNU C library defines this for functions which it implements
10404     to always fail with ENOSYS.  Some functions are actually named
10405     something starting with __ and the normal name is an alias.  */
10406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10407 choke me
10408 #else
10409 char (*f) () = $ac_func;
10410 #endif
10411 #ifdef __cplusplus
10412 }
10413 #endif
10414
10415 int
10416 main ()
10417 {
10418 return f != $ac_func;
10419   ;
10420   return 0;
10421 }
10422 _ACEOF
10423 rm -f conftest.$ac_objext conftest$ac_exeext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10425   (eval $ac_link) 2>conftest.er1
10426   ac_status=$?
10427   grep -v '^ *+' conftest.er1 >conftest.err
10428   rm -f conftest.er1
10429   cat conftest.err >&5
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); } &&
10432          { ac_try='test -z "$ac_c_werror_flag"
10433                          || test ! -s conftest.err'
10434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435   (eval $ac_try) 2>&5
10436   ac_status=$?
10437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438   (exit $ac_status); }; } &&
10439          { ac_try='test -s conftest$ac_exeext'
10440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441   (eval $ac_try) 2>&5
10442   ac_status=$?
10443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444   (exit $ac_status); }; }; then
10445   eval "$as_ac_var=yes"
10446 else
10447   echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10449
10450 eval "$as_ac_var=no"
10451 fi
10452 rm -f conftest.err conftest.$ac_objext \
10453       conftest$ac_exeext conftest.$ac_ext
10454 fi
10455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10457 if test `eval echo '${'$as_ac_var'}'` = yes; then
10458   cat >>confdefs.h <<_ACEOF
10459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10460 _ACEOF
10461
10462 fi
10463 done
10464
10465
10466
10467 for ac_prog in avifile-config
10468 do
10469   # Extract the first word of "$ac_prog", so it can be a program name with args.
10470 set dummy $ac_prog; ac_word=$2
10471 echo "$as_me:$LINENO: checking for $ac_word" >&5
10472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10473 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10474   echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476   if test -n "$AVIFILE_CONFIG"; then
10477   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10478 else
10479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480 for as_dir in $PATH
10481 do
10482   IFS=$as_save_IFS
10483   test -z "$as_dir" && as_dir=.
10484   for ac_exec_ext in '' $ac_executable_extensions; do
10485   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10486     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10488     break 2
10489   fi
10490 done
10491 done
10492
10493 fi
10494 fi
10495 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10496 if test -n "$AVIFILE_CONFIG"; then
10497   echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10498 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
10499 else
10500   echo "$as_me:$LINENO: result: no" >&5
10501 echo "${ECHO_T}no" >&6
10502 fi
10503
10504   test -n "$AVIFILE_CONFIG" && break
10505 done
10506
10507
10508 if test "x$AVIFILE_CONFIG" '!=' "x";then
10509     OLDCPPFLAGS="$CPPFLAGS"
10510     #OLDLDFLAGS="$LDFLAGS"
10511     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10512     #LDFLAGS="$LDFLAGS `$AVIFILE_CONFIG --libs`"
10513
10514
10515 for ac_header in avifile/version.h version.h
10516 do
10517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10519   echo "$as_me:$LINENO: checking for $ac_header" >&5
10520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10522   echo $ECHO_N "(cached) $ECHO_C" >&6
10523 fi
10524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10526 else
10527   # Is the header compilable?
10528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10530 cat >conftest.$ac_ext <<_ACEOF
10531 /* confdefs.h.  */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h.  */
10536 $ac_includes_default
10537 #include <$ac_header>
10538 _ACEOF
10539 rm -f conftest.$ac_objext
10540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10541   (eval $ac_compile) 2>conftest.er1
10542   ac_status=$?
10543   grep -v '^ *+' conftest.er1 >conftest.err
10544   rm -f conftest.er1
10545   cat conftest.err >&5
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); } &&
10548          { ac_try='test -z "$ac_c_werror_flag"
10549                          || test ! -s conftest.err'
10550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551   (eval $ac_try) 2>&5
10552   ac_status=$?
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); }; } &&
10555          { ac_try='test -s conftest.$ac_objext'
10556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557   (eval $ac_try) 2>&5
10558   ac_status=$?
10559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560   (exit $ac_status); }; }; then
10561   ac_header_compiler=yes
10562 else
10563   echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10565
10566 ac_header_compiler=no
10567 fi
10568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10570 echo "${ECHO_T}$ac_header_compiler" >&6
10571
10572 # Is the header present?
10573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10575 cat >conftest.$ac_ext <<_ACEOF
10576 /* confdefs.h.  */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h.  */
10581 #include <$ac_header>
10582 _ACEOF
10583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10584   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10585   ac_status=$?
10586   grep -v '^ *+' conftest.er1 >conftest.err
10587   rm -f conftest.er1
10588   cat conftest.err >&5
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); } >/dev/null; then
10591   if test -s conftest.err; then
10592     ac_cpp_err=$ac_c_preproc_warn_flag
10593     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10594   else
10595     ac_cpp_err=
10596   fi
10597 else
10598   ac_cpp_err=yes
10599 fi
10600 if test -z "$ac_cpp_err"; then
10601   ac_header_preproc=yes
10602 else
10603   echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10605
10606   ac_header_preproc=no
10607 fi
10608 rm -f conftest.err conftest.$ac_ext
10609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10610 echo "${ECHO_T}$ac_header_preproc" >&6
10611
10612 # So?  What about this header?
10613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10614   yes:no: )
10615     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10619     ac_header_preproc=yes
10620     ;;
10621   no:yes:* )
10622     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10624     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10625 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10626     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10628     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10629 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10632     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10634     (
10635       cat <<\_ASBOX
10636 ## ------------------------------------------ ##
10637 ## Report this to the AC_PACKAGE_NAME lists.  ##
10638 ## ------------------------------------------ ##
10639 _ASBOX
10640     ) |
10641       sed "s/^/$as_me: WARNING:     /" >&2
10642     ;;
10643 esac
10644 echo "$as_me:$LINENO: checking for $ac_header" >&5
10645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10647   echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649   eval "$as_ac_Header=\$ac_header_preproc"
10650 fi
10651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10653
10654 fi
10655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10656   cat >>confdefs.h <<_ACEOF
10657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10658 _ACEOF
10659
10660 fi
10661
10662 done
10663
10664     #LDFLAGS="$OLDLDFLAGS"
10665     CPPFLAGS="$OLDCPPFLAGS"
10666 fi
10667
10668 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
10669 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
10670
10671 if test "x${ac_cv_header_version_h}" '=' "xyes";then
10672     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
10673 fi
10674 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
10675     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
10676 fi
10677
10678 cat > conftest.cpp << EOF
10679
10680 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
10681 // so we have to introduce them this way
10682 $HAVE_VERSION_H_DEFINE
10683 $HAVE_AVIFILE_VERSION_H_DEFINE
10684
10685 #ifdef HAVE_VERSION_H
10686   #include <version.h>
10687 #endif
10688 #ifdef HAVE_AVIFILE_VERSION_H
10689   #include <avifile/version.h>
10690 #endif
10691
10692 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
10693    #include <avifile.h>
10694    #include <aviplay.h>
10695    #include <fourcc.h>
10696    #include <creators.h>
10697    #include <StreamInfo.h>
10698    #define VERSION6
10699 #else
10700    #include <avifile.h>
10701    #include <aviplay.h>
10702    #include <aviutil.h>
10703    #define Width width
10704    #define Height height
10705    #define Data data
10706    #define Bpp bpp
10707 #endif
10708
10709 void test()
10710 {
10711   IAviReadFile* player;
10712   IAviReadStream* astream;
10713   IAviReadStream* vstream;
10714   player = CreateIAviReadFile(0);
10715   astream = player->GetStream(0, AviStream::Audio);
10716   vstream = player->GetStream(0, AviStream::Video);
10717   vstream -> StartStreaming();
10718   astream -> StartStreaming();
10719 #ifndef VERSION6
10720   MainAVIHeader head;
10721   player->GetFileHeader(&head);
10722   head.dwMicroSecPerFrame;
10723   head.dwTotalFrames;
10724   head.dwStreams;
10725   head.dwWidth;
10726   head.dwHeight;
10727   head.dwMicroSecPerFrame;
10728   astream->GetEndPos(),
10729   astream->GetEndTime());
10730   player->StreamCount();
10731 #else
10732   StreamInfo*audioinfo;
10733   StreamInfo*videoinfo;
10734   audioinfo = astream->GetStreamInfo();
10735   videoinfo = vstream->GetStreamInfo();
10736   videoinfo->GetVideoWidth();
10737   videoinfo->GetVideoHeight();
10738   audioinfo->GetAudioSamplesPerSec();
10739   videoinfo->GetFps();
10740 #endif
10741   CImage*img = vstream->GetFrame();
10742   img->ToRGB();
10743   img->Data();
10744   img->Bpp();
10745   img->Width();
10746   img->Height();
10747   WAVEFORMATEX wave;
10748   astream->GetAudioFormatInfo(&wave,0);
10749   uint_t a,b;
10750   astream->ReadFrames(0,0,0,a,b);
10751 }
10752 int main (int argc, char*argv)
10753 {
10754     return 0;
10755 }
10756 EOF
10757
10758 if test "x$AVIFILE_CONFIG" '!=' "x";then
10759     ac_link='$CXX $CPPFLAGS $CXXFLAGS `$AVIFILE_CONFIG --cflags` `$AVIFILE_CONFIG --libs` conftest.cpp -o conftest${ac_exeext}'
10760     if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
10761       echo "$as_me:$LINENO: result: yes" >&5
10762 echo "${ECHO_T}yes" >&6
10763       AVIFILE=true
10764       export AVIFILE
10765       cat >>confdefs.h <<_ACEOF
10766 #define AVIFILE true
10767 _ACEOF
10768
10769     else
10770       echo "configure: failed program was:" >&5
10771       cat conftest.cpp >&5
10772       echo "$as_me:$LINENO: result: no" >&5
10773 echo "${ECHO_T}no" >&6
10774     fi
10775 else
10776     echo "$as_me:$LINENO: result: no" >&5
10777 echo "${ECHO_T}no" >&6
10778 fi
10779 rm -f conftest*
10780
10781
10782 avi2swf="avi2swf/Makefile"
10783 if test "x${AVIFILE}" != "xtrue"; then
10784  echo "* Couldn't compile the avifile test program."
10785  echo "* Disabling avi2swf tool..."
10786  echo all install uninstall clean: > avi2swf/Makefile
10787  avi2swf=
10788 fi
10789
10790 if test "x${DISABLE_LAME}" = "xtrue"; then
10791     echo "*" Disabling lame support...
10792     lame_objects=
10793 else
10794     cat >>confdefs.h <<_ACEOF
10795 #define HAVE_LAME 1
10796 _ACEOF
10797
10798     lame_objects='$(lame_objects_2)'
10799 fi
10800
10801
10802 if test "x${UNCOMPRESS}" = "xgzip"; then
10803     cat >>confdefs.h <<_ACEOF
10804 #define USE_GZIP 1
10805 _ACEOF
10806
10807 fi
10808
10809
10810 JPEG2SWF='jpeg2swf$(E)'
10811 export JPEG2SWF
10812 PNG2SWF='png2swf$(E)'
10813 export PNG2SWF
10814 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10815   echo "***************************************************"
10816   echo "The following headers/libraries are missing: " ${MISSINGLIBS}
10817   if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10818     echo "Disabling pdf2swf tool..."
10819     rm -f pdf2swf/Makefile
10820     echo all install uninstall clean: > pdf2swf/Makefile
10821   fi
10822   if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10823     echo "Disabling jpeg2swf tool..."
10824     JPEG2SWF=
10825     export JPEG2SWF
10826   fi
10827   if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10828     echo "Disabling png2swf tool..."
10829     PNG2SWF=
10830     export PNG2SWF
10831   fi
10832   if test "x${ZLIBMISSING}" = "xtrue"; then
10833     echo
10834     echo "Warning! Without zlib, you will not be able to read"
10835     echo "or write compressed Flash MX files!"
10836   fi
10837   echo "***************************************************"
10838   FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile lib/action/Makefile src/Makefile swfs/Makefile"
10839 else
10840   FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile lib/action/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile swfs/Makefile"
10841 fi
10842
10843
10844
10845           ac_config_files="$ac_config_files ${FILES}"
10846 cat >confcache <<\_ACEOF
10847 # This file is a shell script that caches the results of configure
10848 # tests run on this system so they can be shared between configure
10849 # scripts and configure runs, see configure's option --config-cache.
10850 # It is not useful on other systems.  If it contains results you don't
10851 # want to keep, you may remove or edit it.
10852 #
10853 # config.status only pays attention to the cache file if you give it
10854 # the --recheck option to rerun configure.
10855 #
10856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10858 # following values.
10859
10860 _ACEOF
10861
10862 # The following way of writing the cache mishandles newlines in values,
10863 # but we know of no workaround that is simple, portable, and efficient.
10864 # So, don't put newlines in cache variables' values.
10865 # Ultrix sh set writes to stderr and can't be redirected directly,
10866 # and sets the high bit in the cache file unless we assign to the vars.
10867 {
10868   (set) 2>&1 |
10869     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10870     *ac_space=\ *)
10871       # `set' does not quote correctly, so add quotes (double-quote
10872       # substitution turns \\\\ into \\, and sed turns \\ into \).
10873       sed -n \
10874         "s/'/'\\\\''/g;
10875           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10876       ;;
10877     *)
10878       # `set' quotes correctly as required by POSIX, so do not add quotes.
10879       sed -n \
10880         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10881       ;;
10882     esac;
10883 } |
10884   sed '
10885      t clear
10886      : clear
10887      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10888      t end
10889      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10890      : end' >>confcache
10891 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10892   if test -w $cache_file; then
10893     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10894     cat confcache >$cache_file
10895   else
10896     echo "not updating unwritable cache $cache_file"
10897   fi
10898 fi
10899 rm -f confcache
10900
10901 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10902 # Let make expand exec_prefix.
10903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10904
10905 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10906 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10907 # trailing colons and then remove the whole line if VPATH becomes empty
10908 # (actually we leave an empty line to preserve line numbers).
10909 if test "x$srcdir" = x.; then
10910   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10911 s/:*\$(srcdir):*/:/;
10912 s/:*\${srcdir}:*/:/;
10913 s/:*@srcdir@:*/:/;
10914 s/^\([^=]*=[     ]*\):*/\1/;
10915 s/:*$//;
10916 s/^[^=]*=[       ]*$//;
10917 }'
10918 fi
10919
10920 DEFS=-DHAVE_CONFIG_H
10921
10922 ac_libobjs=
10923 ac_ltlibobjs=
10924 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10925   # 1. Remove the extension, and $U if already installed.
10926   ac_i=`echo "$ac_i" |
10927          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10928   # 2. Add them.
10929   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10930   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10931 done
10932 LIBOBJS=$ac_libobjs
10933
10934 LTLIBOBJS=$ac_ltlibobjs
10935
10936
10937
10938 : ${CONFIG_STATUS=./config.status}
10939 ac_clean_files_save=$ac_clean_files
10940 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10941 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10942 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10943 cat >$CONFIG_STATUS <<_ACEOF
10944 #! $SHELL
10945 # Generated by $as_me.
10946 # Run this file to recreate the current configuration.
10947 # Compiler output produced by configure, useful for debugging
10948 # configure, is in config.log if it exists.
10949
10950 debug=false
10951 ac_cs_recheck=false
10952 ac_cs_silent=false
10953 SHELL=\${CONFIG_SHELL-$SHELL}
10954 _ACEOF
10955
10956 cat >>$CONFIG_STATUS <<\_ACEOF
10957 ## --------------------- ##
10958 ## M4sh Initialization.  ##
10959 ## --------------------- ##
10960
10961 # Be Bourne compatible
10962 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10963   emulate sh
10964   NULLCMD=:
10965   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10966   # is contrary to our usage.  Disable this feature.
10967   alias -g '${1+"$@"}'='"$@"'
10968 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10969   set -o posix
10970 fi
10971 DUALCASE=1; export DUALCASE # for MKS sh
10972
10973 # Support unset when possible.
10974 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10975   as_unset=unset
10976 else
10977   as_unset=false
10978 fi
10979
10980
10981 # Work around bugs in pre-3.0 UWIN ksh.
10982 $as_unset ENV MAIL MAILPATH
10983 PS1='$ '
10984 PS2='> '
10985 PS4='+ '
10986
10987 # NLS nuisances.
10988 for as_var in \
10989   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10990   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10991   LC_TELEPHONE LC_TIME
10992 do
10993   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10994     eval $as_var=C; export $as_var
10995   else
10996     $as_unset $as_var
10997   fi
10998 done
10999
11000 # Required to use basename.
11001 if expr a : '\(a\)' >/dev/null 2>&1; then
11002   as_expr=expr
11003 else
11004   as_expr=false
11005 fi
11006
11007 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11008   as_basename=basename
11009 else
11010   as_basename=false
11011 fi
11012
11013
11014 # Name of the executable.
11015 as_me=`$as_basename "$0" ||
11016 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11017          X"$0" : 'X\(//\)$' \| \
11018          X"$0" : 'X\(/\)$' \| \
11019          .     : '\(.\)' 2>/dev/null ||
11020 echo X/"$0" |
11021     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11022           /^X\/\(\/\/\)$/{ s//\1/; q; }
11023           /^X\/\(\/\).*/{ s//\1/; q; }
11024           s/.*/./; q'`
11025
11026
11027 # PATH needs CR, and LINENO needs CR and PATH.
11028 # Avoid depending upon Character Ranges.
11029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11032 as_cr_digits='0123456789'
11033 as_cr_alnum=$as_cr_Letters$as_cr_digits
11034
11035 # The user is always right.
11036 if test "${PATH_SEPARATOR+set}" != set; then
11037   echo "#! /bin/sh" >conf$$.sh
11038   echo  "exit 0"   >>conf$$.sh
11039   chmod +x conf$$.sh
11040   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11041     PATH_SEPARATOR=';'
11042   else
11043     PATH_SEPARATOR=:
11044   fi
11045   rm -f conf$$.sh
11046 fi
11047
11048
11049   as_lineno_1=$LINENO
11050   as_lineno_2=$LINENO
11051   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11052   test "x$as_lineno_1" != "x$as_lineno_2" &&
11053   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11054   # Find who we are.  Look in the path if we contain no path at all
11055   # relative or not.
11056   case $0 in
11057     *[\\/]* ) as_myself=$0 ;;
11058     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11059 for as_dir in $PATH
11060 do
11061   IFS=$as_save_IFS
11062   test -z "$as_dir" && as_dir=.
11063   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11064 done
11065
11066        ;;
11067   esac
11068   # We did not find ourselves, most probably we were run as `sh COMMAND'
11069   # in which case we are not to be found in the path.
11070   if test "x$as_myself" = x; then
11071     as_myself=$0
11072   fi
11073   if test ! -f "$as_myself"; then
11074     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11075 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11076    { (exit 1); exit 1; }; }
11077   fi
11078   case $CONFIG_SHELL in
11079   '')
11080     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11081 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11082 do
11083   IFS=$as_save_IFS
11084   test -z "$as_dir" && as_dir=.
11085   for as_base in sh bash ksh sh5; do
11086          case $as_dir in
11087          /*)
11088            if ("$as_dir/$as_base" -c '
11089   as_lineno_1=$LINENO
11090   as_lineno_2=$LINENO
11091   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11092   test "x$as_lineno_1" != "x$as_lineno_2" &&
11093   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11094              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11095              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11096              CONFIG_SHELL=$as_dir/$as_base
11097              export CONFIG_SHELL
11098              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11099            fi;;
11100          esac
11101        done
11102 done
11103 ;;
11104   esac
11105
11106   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11107   # uniformly replaced by the line number.  The first 'sed' inserts a
11108   # line-number line before each line; the second 'sed' does the real
11109   # work.  The second script uses 'N' to pair each line-number line
11110   # with the numbered line, and appends trailing '-' during
11111   # substitution so that $LINENO is not a special case at line end.
11112   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11113   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11114   sed '=' <$as_myself |
11115     sed '
11116       N
11117       s,$,-,
11118       : loop
11119       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11120       t loop
11121       s,-$,,
11122       s,^['$as_cr_digits']*\n,,
11123     ' >$as_me.lineno &&
11124   chmod +x $as_me.lineno ||
11125     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11126 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11127    { (exit 1); exit 1; }; }
11128
11129   # Don't try to exec as it changes $[0], causing all sort of problems
11130   # (the dirname of $[0] is not the place where we might find the
11131   # original and so on.  Autoconf is especially sensible to this).
11132   . ./$as_me.lineno
11133   # Exit status is that of the last command.
11134   exit
11135 }
11136
11137
11138 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11139   *c*,-n*) ECHO_N= ECHO_C='
11140 ' ECHO_T='      ' ;;
11141   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11142   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11143 esac
11144
11145 if expr a : '\(a\)' >/dev/null 2>&1; then
11146   as_expr=expr
11147 else
11148   as_expr=false
11149 fi
11150
11151 rm -f conf$$ conf$$.exe conf$$.file
11152 echo >conf$$.file
11153 if ln -s conf$$.file conf$$ 2>/dev/null; then
11154   # We could just check for DJGPP; but this test a) works b) is more generic
11155   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11156   if test -f conf$$.exe; then
11157     # Don't use ln at all; we don't have any links
11158     as_ln_s='cp -p'
11159   else
11160     as_ln_s='ln -s'
11161   fi
11162 elif ln conf$$.file conf$$ 2>/dev/null; then
11163   as_ln_s=ln
11164 else
11165   as_ln_s='cp -p'
11166 fi
11167 rm -f conf$$ conf$$.exe conf$$.file
11168
11169 if mkdir -p . 2>/dev/null; then
11170   as_mkdir_p=:
11171 else
11172   test -d ./-p && rmdir ./-p
11173   as_mkdir_p=false
11174 fi
11175
11176 as_executable_p="test -f"
11177
11178 # Sed expression to map a string onto a valid CPP name.
11179 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11180
11181 # Sed expression to map a string onto a valid variable name.
11182 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11183
11184
11185 # IFS
11186 # We need space, tab and new line, in precisely that order.
11187 as_nl='
11188 '
11189 IFS="   $as_nl"
11190
11191 # CDPATH.
11192 $as_unset CDPATH
11193
11194 exec 6>&1
11195
11196 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11197 # report actual input values of CONFIG_FILES etc. instead of their
11198 # values after options handling.  Logging --version etc. is OK.
11199 exec 5>>config.log
11200 {
11201   echo
11202   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11203 ## Running $as_me. ##
11204 _ASBOX
11205 } >&5
11206 cat >&5 <<_CSEOF
11207
11208 This file was extended by $as_me, which was
11209 generated by GNU Autoconf 2.58.  Invocation command line was
11210
11211   CONFIG_FILES    = $CONFIG_FILES
11212   CONFIG_HEADERS  = $CONFIG_HEADERS
11213   CONFIG_LINKS    = $CONFIG_LINKS
11214   CONFIG_COMMANDS = $CONFIG_COMMANDS
11215   $ $0 $@
11216
11217 _CSEOF
11218 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11219 echo >&5
11220 _ACEOF
11221
11222 # Files that config.status was made for.
11223 if test -n "$ac_config_files"; then
11224   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11225 fi
11226
11227 if test -n "$ac_config_headers"; then
11228   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11229 fi
11230
11231 if test -n "$ac_config_links"; then
11232   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11233 fi
11234
11235 if test -n "$ac_config_commands"; then
11236   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11237 fi
11238
11239 cat >>$CONFIG_STATUS <<\_ACEOF
11240
11241 ac_cs_usage="\
11242 \`$as_me' instantiates files from templates according to the
11243 current configuration.
11244
11245 Usage: $0 [OPTIONS] [FILE]...
11246
11247   -h, --help       print this help, then exit
11248   -V, --version    print version number, then exit
11249   -q, --quiet      do not print progress messages
11250   -d, --debug      don't remove temporary files
11251       --recheck    update $as_me by reconfiguring in the same conditions
11252   --file=FILE[:TEMPLATE]
11253                    instantiate the configuration file FILE
11254   --header=FILE[:TEMPLATE]
11255                    instantiate the configuration header FILE
11256
11257 Configuration files:
11258 $config_files
11259
11260 Configuration headers:
11261 $config_headers
11262
11263 Report bugs to <bug-autoconf@gnu.org>."
11264 _ACEOF
11265
11266 cat >>$CONFIG_STATUS <<_ACEOF
11267 ac_cs_version="\\
11268 config.status
11269 configured by $0, generated by GNU Autoconf 2.58,
11270   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11271
11272 Copyright (C) 2003 Free Software Foundation, Inc.
11273 This config.status script is free software; the Free Software Foundation
11274 gives unlimited permission to copy, distribute and modify it."
11275 srcdir=$srcdir
11276 INSTALL="$INSTALL"
11277 _ACEOF
11278
11279 cat >>$CONFIG_STATUS <<\_ACEOF
11280 # If no file are specified by the user, then we need to provide default
11281 # value.  By we need to know if files were specified by the user.
11282 ac_need_defaults=:
11283 while test $# != 0
11284 do
11285   case $1 in
11286   --*=*)
11287     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11288     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11289     ac_shift=:
11290     ;;
11291   -*)
11292     ac_option=$1
11293     ac_optarg=$2
11294     ac_shift=shift
11295     ;;
11296   *) # This is not an option, so the user has probably given explicit
11297      # arguments.
11298      ac_option=$1
11299      ac_need_defaults=false;;
11300   esac
11301
11302   case $ac_option in
11303   # Handling of the options.
11304 _ACEOF
11305 cat >>$CONFIG_STATUS <<\_ACEOF
11306   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11307     ac_cs_recheck=: ;;
11308   --version | --vers* | -V )
11309     echo "$ac_cs_version"; exit 0 ;;
11310   --he | --h)
11311     # Conflict between --help and --header
11312     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11313 Try \`$0 --help' for more information." >&5
11314 echo "$as_me: error: ambiguous option: $1
11315 Try \`$0 --help' for more information." >&2;}
11316    { (exit 1); exit 1; }; };;
11317   --help | --hel | -h )
11318     echo "$ac_cs_usage"; exit 0 ;;
11319   --debug | --d* | -d )
11320     debug=: ;;
11321   --file | --fil | --fi | --f )
11322     $ac_shift
11323     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11324     ac_need_defaults=false;;
11325   --header | --heade | --head | --hea )
11326     $ac_shift
11327     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11328     ac_need_defaults=false;;
11329   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11330   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11331     ac_cs_silent=: ;;
11332
11333   # This is an error.
11334   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11335 Try \`$0 --help' for more information." >&5
11336 echo "$as_me: error: unrecognized option: $1
11337 Try \`$0 --help' for more information." >&2;}
11338    { (exit 1); exit 1; }; } ;;
11339
11340   *) ac_config_targets="$ac_config_targets $1" ;;
11341
11342   esac
11343   shift
11344 done
11345
11346 ac_configure_extra_args=
11347
11348 if $ac_cs_silent; then
11349   exec 6>/dev/null
11350   ac_configure_extra_args="$ac_configure_extra_args --silent"
11351 fi
11352
11353 _ACEOF
11354 cat >>$CONFIG_STATUS <<_ACEOF
11355 if \$ac_cs_recheck; then
11356   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11357   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11358 fi
11359
11360 _ACEOF
11361
11362
11363
11364
11365
11366 cat >>$CONFIG_STATUS <<\_ACEOF
11367 for ac_config_target in $ac_config_targets
11368 do
11369   case "$ac_config_target" in
11370   # Handling of arguments.
11371   "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11372   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11373   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11374 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11375    { (exit 1); exit 1; }; };;
11376   esac
11377 done
11378
11379 # If the user did not use the arguments to specify the items to instantiate,
11380 # then the envvar interface is used.  Set only those that are not.
11381 # We use the long form for the default assignment because of an extremely
11382 # bizarre bug on SunOS 4.1.3.
11383 if $ac_need_defaults; then
11384   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11385   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11386 fi
11387
11388 # Have a temporary directory for convenience.  Make it in the build tree
11389 # simply because there is no reason to put it here, and in addition,
11390 # creating and moving files from /tmp can sometimes cause problems.
11391 # Create a temporary directory, and hook for its removal unless debugging.
11392 $debug ||
11393 {
11394   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11395   trap '{ (exit 1); exit 1; }' 1 2 13 15
11396 }
11397
11398 # Create a (secure) tmp directory for tmp files.
11399
11400 {
11401   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11402   test -n "$tmp" && test -d "$tmp"
11403 }  ||
11404 {
11405   tmp=./confstat$$-$RANDOM
11406   (umask 077 && mkdir $tmp)
11407 } ||
11408 {
11409    echo "$me: cannot create a temporary directory in ." >&2
11410    { (exit 1); exit 1; }
11411 }
11412
11413 _ACEOF
11414
11415 cat >>$CONFIG_STATUS <<_ACEOF
11416
11417 #
11418 # CONFIG_FILES section.
11419 #
11420
11421 # No need to generate the scripts if there are no CONFIG_FILES.
11422 # This happens for instance when ./config.status config.h
11423 if test -n "\$CONFIG_FILES"; then
11424   # Protect against being on the right side of a sed subst in config.status.
11425   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11426    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11427 s,@SHELL@,$SHELL,;t t
11428 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11429 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11430 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11431 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11432 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11433 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11434 s,@exec_prefix@,$exec_prefix,;t t
11435 s,@prefix@,$prefix,;t t
11436 s,@program_transform_name@,$program_transform_name,;t t
11437 s,@bindir@,$bindir,;t t
11438 s,@sbindir@,$sbindir,;t t
11439 s,@libexecdir@,$libexecdir,;t t
11440 s,@datadir@,$datadir,;t t
11441 s,@sysconfdir@,$sysconfdir,;t t
11442 s,@sharedstatedir@,$sharedstatedir,;t t
11443 s,@localstatedir@,$localstatedir,;t t
11444 s,@libdir@,$libdir,;t t
11445 s,@includedir@,$includedir,;t t
11446 s,@oldincludedir@,$oldincludedir,;t t
11447 s,@infodir@,$infodir,;t t
11448 s,@mandir@,$mandir,;t t
11449 s,@build_alias@,$build_alias,;t t
11450 s,@host_alias@,$host_alias,;t t
11451 s,@target_alias@,$target_alias,;t t
11452 s,@DEFS@,$DEFS,;t t
11453 s,@ECHO_C@,$ECHO_C,;t t
11454 s,@ECHO_N@,$ECHO_N,;t t
11455 s,@ECHO_T@,$ECHO_T,;t t
11456 s,@LIBS@,$LIBS,;t t
11457 s,@build@,$build,;t t
11458 s,@build_cpu@,$build_cpu,;t t
11459 s,@build_vendor@,$build_vendor,;t t
11460 s,@build_os@,$build_os,;t t
11461 s,@host@,$host,;t t
11462 s,@host_cpu@,$host_cpu,;t t
11463 s,@host_vendor@,$host_vendor,;t t
11464 s,@host_os@,$host_os,;t t
11465 s,@CC@,$CC,;t t
11466 s,@CFLAGS@,$CFLAGS,;t t
11467 s,@LDFLAGS@,$LDFLAGS,;t t
11468 s,@CPPFLAGS@,$CPPFLAGS,;t t
11469 s,@ac_ct_CC@,$ac_ct_CC,;t t
11470 s,@EXEEXT@,$EXEEXT,;t t
11471 s,@OBJEXT@,$OBJEXT,;t t
11472 s,@CXX@,$CXX,;t t
11473 s,@CXXFLAGS@,$CXXFLAGS,;t t
11474 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11475 s,@CPP@,$CPP,;t t
11476 s,@RANLIB@,$RANLIB,;t t
11477 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11478 s,@SET_MAKE@,$SET_MAKE,;t t
11479 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11480 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11481 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11482 s,@LN_S@,$LN_S,;t t
11483 s,@ECHO@,$ECHO,;t t
11484 s,@STRIP@,$STRIP,;t t
11485 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11486 s,@EGREP@,$EGREP,;t t
11487 s,@LIBTOOL@,$LIBTOOL,;t t
11488 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
11489 s,@AR@,$AR,;t t
11490 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
11491 s,@target@,$target,;t t
11492 s,@target_cpu@,$target_cpu,;t t
11493 s,@target_vendor@,$target_vendor,;t t
11494 s,@target_os@,$target_os,;t t
11495 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
11496 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
11497 s,@PACKAGE@,$PACKAGE,;t t
11498 s,@VERSION@,$VERSION,;t t
11499 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
11500 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
11501 s,@lame_objects@,$lame_objects,;t t
11502 s,@USE_GZIP@,$USE_GZIP,;t t
11503 s,@JPEG2SWF@,$JPEG2SWF,;t t
11504 s,@PNG2SWF@,$PNG2SWF,;t t
11505 s,@LIBOBJS@,$LIBOBJS,;t t
11506 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11507 CEOF
11508
11509 _ACEOF
11510
11511   cat >>$CONFIG_STATUS <<\_ACEOF
11512   # Split the substitutions into bite-sized pieces for seds with
11513   # small command number limits, like on Digital OSF/1 and HP-UX.
11514   ac_max_sed_lines=48
11515   ac_sed_frag=1 # Number of current file.
11516   ac_beg=1 # First line for current file.
11517   ac_end=$ac_max_sed_lines # Line after last line for current file.
11518   ac_more_lines=:
11519   ac_sed_cmds=
11520   while $ac_more_lines; do
11521     if test $ac_beg -gt 1; then
11522       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11523     else
11524       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11525     fi
11526     if test ! -s $tmp/subs.frag; then
11527       ac_more_lines=false
11528     else
11529       # The purpose of the label and of the branching condition is to
11530       # speed up the sed processing (if there are no `@' at all, there
11531       # is no need to browse any of the substitutions).
11532       # These are the two extra sed commands mentioned above.
11533       (echo ':t
11534   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11535       if test -z "$ac_sed_cmds"; then
11536         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11537       else
11538         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11539       fi
11540       ac_sed_frag=`expr $ac_sed_frag + 1`
11541       ac_beg=$ac_end
11542       ac_end=`expr $ac_end + $ac_max_sed_lines`
11543     fi
11544   done
11545   if test -z "$ac_sed_cmds"; then
11546     ac_sed_cmds=cat
11547   fi
11548 fi # test -n "$CONFIG_FILES"
11549
11550 _ACEOF
11551 cat >>$CONFIG_STATUS <<\_ACEOF
11552 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11553   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11554   case $ac_file in
11555   - | *:- | *:-:* ) # input from stdin
11556         cat >$tmp/stdin
11557         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11558         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11559   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11560         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11561   * )   ac_file_in=$ac_file.in ;;
11562   esac
11563
11564   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11565   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11566 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11567          X"$ac_file" : 'X\(//\)[^/]' \| \
11568          X"$ac_file" : 'X\(//\)$' \| \
11569          X"$ac_file" : 'X\(/\)' \| \
11570          .     : '\(.\)' 2>/dev/null ||
11571 echo X"$ac_file" |
11572     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11573           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11574           /^X\(\/\/\)$/{ s//\1/; q; }
11575           /^X\(\/\).*/{ s//\1/; q; }
11576           s/.*/./; q'`
11577   { if $as_mkdir_p; then
11578     mkdir -p "$ac_dir"
11579   else
11580     as_dir="$ac_dir"
11581     as_dirs=
11582     while test ! -d "$as_dir"; do
11583       as_dirs="$as_dir $as_dirs"
11584       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11586          X"$as_dir" : 'X\(//\)[^/]' \| \
11587          X"$as_dir" : 'X\(//\)$' \| \
11588          X"$as_dir" : 'X\(/\)' \| \
11589          .     : '\(.\)' 2>/dev/null ||
11590 echo X"$as_dir" |
11591     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11592           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11593           /^X\(\/\/\)$/{ s//\1/; q; }
11594           /^X\(\/\).*/{ s//\1/; q; }
11595           s/.*/./; q'`
11596     done
11597     test ! -n "$as_dirs" || mkdir $as_dirs
11598   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11599 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11600    { (exit 1); exit 1; }; }; }
11601
11602   ac_builddir=.
11603
11604 if test "$ac_dir" != .; then
11605   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11606   # A "../" for each directory in $ac_dir_suffix.
11607   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11608 else
11609   ac_dir_suffix= ac_top_builddir=
11610 fi
11611
11612 case $srcdir in
11613   .)  # No --srcdir option.  We are building in place.
11614     ac_srcdir=.
11615     if test -z "$ac_top_builddir"; then
11616        ac_top_srcdir=.
11617     else
11618        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11619     fi ;;
11620   [\\/]* | ?:[\\/]* )  # Absolute path.
11621     ac_srcdir=$srcdir$ac_dir_suffix;
11622     ac_top_srcdir=$srcdir ;;
11623   *) # Relative path.
11624     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11625     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11626 esac
11627 case "$ac_dir" in
11628 .) ac_abs_builddir=$ac_builddir;;
11629 *)
11630   case $ac_builddir in
11631   .) ac_abs_builddir="$ac_dir";;
11632   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
11633   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
11634   esac;;
11635 esac
11636 case "$ac_dir" in
11637 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11638 *)
11639   case ${ac_top_builddir}. in
11640   .) ac_abs_top_builddir="$ac_dir";;
11641   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11642   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
11643   esac;;
11644 esac
11645 case "$ac_dir" in
11646 .) ac_abs_srcdir=$ac_srcdir;;
11647 *)
11648   case $ac_srcdir in
11649   .) ac_abs_srcdir="$ac_dir";;
11650   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11651   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
11652   esac;;
11653 esac
11654 case "$ac_dir" in
11655 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11656 *)
11657   case $ac_top_srcdir in
11658   .) ac_abs_top_srcdir="$ac_dir";;
11659   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11660   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
11661   esac;;
11662 esac
11663
11664
11665   case $INSTALL in
11666   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11667   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11668   esac
11669
11670   if test x"$ac_file" != x-; then
11671     { echo "$as_me:$LINENO: creating $ac_file" >&5
11672 echo "$as_me: creating $ac_file" >&6;}
11673     rm -f "$ac_file"
11674   fi
11675   # Let's still pretend it is `configure' which instantiates (i.e., don't
11676   # use $as_me), people would be surprised to read:
11677   #    /* config.h.  Generated by config.status.  */
11678   if test x"$ac_file" = x-; then
11679     configure_input=
11680   else
11681     configure_input="$ac_file.  "
11682   fi
11683   configure_input=$configure_input"Generated from `echo $ac_file_in |
11684                                      sed 's,.*/,,'` by configure."
11685
11686   # First look for the input files in the build tree, otherwise in the
11687   # src tree.
11688   ac_file_inputs=`IFS=:
11689     for f in $ac_file_in; do
11690       case $f in
11691       -) echo $tmp/stdin ;;
11692       [\\/$]*)
11693          # Absolute (can't be DOS-style, as IFS=:)
11694          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11695 echo "$as_me: error: cannot find input file: $f" >&2;}
11696    { (exit 1); exit 1; }; }
11697          echo "$f";;
11698       *) # Relative
11699          if test -f "$f"; then
11700            # Build tree
11701            echo "$f"
11702          elif test -f "$srcdir/$f"; then
11703            # Source tree
11704            echo "$srcdir/$f"
11705          else
11706            # /dev/null tree
11707            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11708 echo "$as_me: error: cannot find input file: $f" >&2;}
11709    { (exit 1); exit 1; }; }
11710          fi;;
11711       esac
11712     done` || { (exit 1); exit 1; }
11713 _ACEOF
11714 cat >>$CONFIG_STATUS <<_ACEOF
11715   sed "$ac_vpsub
11716 $extrasub
11717 _ACEOF
11718 cat >>$CONFIG_STATUS <<\_ACEOF
11719 :t
11720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11721 s,@configure_input@,$configure_input,;t t
11722 s,@srcdir@,$ac_srcdir,;t t
11723 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11724 s,@top_srcdir@,$ac_top_srcdir,;t t
11725 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11726 s,@builddir@,$ac_builddir,;t t
11727 s,@abs_builddir@,$ac_abs_builddir,;t t
11728 s,@top_builddir@,$ac_top_builddir,;t t
11729 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11730 s,@INSTALL@,$ac_INSTALL,;t t
11731 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11732   rm -f $tmp/stdin
11733   if test x"$ac_file" != x-; then
11734     mv $tmp/out $ac_file
11735   else
11736     cat $tmp/out
11737     rm -f $tmp/out
11738   fi
11739
11740 done
11741 _ACEOF
11742 cat >>$CONFIG_STATUS <<\_ACEOF
11743
11744 #
11745 # CONFIG_HEADER section.
11746 #
11747
11748 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11749 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11750 #
11751 # ac_d sets the value in "#define NAME VALUE" lines.
11752 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11753 ac_dB='[         ].*$,\1#\2'
11754 ac_dC=' '
11755 ac_dD=',;t'
11756 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11757 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11758 ac_uB='$,\1#\2define\3'
11759 ac_uC=' '
11760 ac_uD=',;t'
11761
11762 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11763   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11764   case $ac_file in
11765   - | *:- | *:-:* ) # input from stdin
11766         cat >$tmp/stdin
11767         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11768         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11769   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11770         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11771   * )   ac_file_in=$ac_file.in ;;
11772   esac
11773
11774   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11775 echo "$as_me: creating $ac_file" >&6;}
11776
11777   # First look for the input files in the build tree, otherwise in the
11778   # src tree.
11779   ac_file_inputs=`IFS=:
11780     for f in $ac_file_in; do
11781       case $f in
11782       -) echo $tmp/stdin ;;
11783       [\\/$]*)
11784          # Absolute (can't be DOS-style, as IFS=:)
11785          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11786 echo "$as_me: error: cannot find input file: $f" >&2;}
11787    { (exit 1); exit 1; }; }
11788          # Do quote $f, to prevent DOS paths from being IFS'd.
11789          echo "$f";;
11790       *) # Relative
11791          if test -f "$f"; then
11792            # Build tree
11793            echo "$f"
11794          elif test -f "$srcdir/$f"; then
11795            # Source tree
11796            echo "$srcdir/$f"
11797          else
11798            # /dev/null tree
11799            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11800 echo "$as_me: error: cannot find input file: $f" >&2;}
11801    { (exit 1); exit 1; }; }
11802          fi;;
11803       esac
11804     done` || { (exit 1); exit 1; }
11805   # Remove the trailing spaces.
11806   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11807
11808 _ACEOF
11809
11810 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11811 # `conftest.undefs', that substitutes the proper values into
11812 # config.h.in to produce config.h.  The first handles `#define'
11813 # templates, and the second `#undef' templates.
11814 # And first: Protect against being on the right side of a sed subst in
11815 # config.status.  Protect against being in an unquoted here document
11816 # in config.status.
11817 rm -f conftest.defines conftest.undefs
11818 # Using a here document instead of a string reduces the quoting nightmare.
11819 # Putting comments in sed scripts is not portable.
11820 #
11821 # `end' is used to avoid that the second main sed command (meant for
11822 # 0-ary CPP macros) applies to n-ary macro definitions.
11823 # See the Autoconf documentation for `clear'.
11824 cat >confdef2sed.sed <<\_ACEOF
11825 s/[\\&,]/\\&/g
11826 s,[\\$`],\\&,g
11827 t clear
11828 : clear
11829 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11830 t end
11831 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11832 : end
11833 _ACEOF
11834 # If some macros were called several times there might be several times
11835 # the same #defines, which is useless.  Nevertheless, we may not want to
11836 # sort them, since we want the *last* AC-DEFINE to be honored.
11837 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11838 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11839 rm -f confdef2sed.sed
11840
11841 # This sed command replaces #undef with comments.  This is necessary, for
11842 # example, in the case of _POSIX_SOURCE, which is predefined and required
11843 # on some systems where configure will not decide to define it.
11844 cat >>conftest.undefs <<\_ACEOF
11845 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11846 _ACEOF
11847
11848 # Break up conftest.defines because some shells have a limit on the size
11849 # of here documents, and old seds have small limits too (100 cmds).
11850 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11851 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11852 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11853 echo '  :' >>$CONFIG_STATUS
11854 rm -f conftest.tail
11855 while grep . conftest.defines >/dev/null
11856 do
11857   # Write a limited-size here document to $tmp/defines.sed.
11858   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11859   # Speed up: don't consider the non `#define' lines.
11860   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11861   # Work around the forget-to-reset-the-flag bug.
11862   echo 't clr' >>$CONFIG_STATUS
11863   echo ': clr' >>$CONFIG_STATUS
11864   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11865   echo 'CEOF
11866   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11867   rm -f $tmp/in
11868   mv $tmp/out $tmp/in
11869 ' >>$CONFIG_STATUS
11870   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11871   rm -f conftest.defines
11872   mv conftest.tail conftest.defines
11873 done
11874 rm -f conftest.defines
11875 echo '  fi # grep' >>$CONFIG_STATUS
11876 echo >>$CONFIG_STATUS
11877
11878 # Break up conftest.undefs because some shells have a limit on the size
11879 # of here documents, and old seds have small limits too (100 cmds).
11880 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11881 rm -f conftest.tail
11882 while grep . conftest.undefs >/dev/null
11883 do
11884   # Write a limited-size here document to $tmp/undefs.sed.
11885   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11886   # Speed up: don't consider the non `#undef'
11887   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11888   # Work around the forget-to-reset-the-flag bug.
11889   echo 't clr' >>$CONFIG_STATUS
11890   echo ': clr' >>$CONFIG_STATUS
11891   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11892   echo 'CEOF
11893   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11894   rm -f $tmp/in
11895   mv $tmp/out $tmp/in
11896 ' >>$CONFIG_STATUS
11897   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11898   rm -f conftest.undefs
11899   mv conftest.tail conftest.undefs
11900 done
11901 rm -f conftest.undefs
11902
11903 cat >>$CONFIG_STATUS <<\_ACEOF
11904   # Let's still pretend it is `configure' which instantiates (i.e., don't
11905   # use $as_me), people would be surprised to read:
11906   #    /* config.h.  Generated by config.status.  */
11907   if test x"$ac_file" = x-; then
11908     echo "/* Generated by configure.  */" >$tmp/config.h
11909   else
11910     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11911   fi
11912   cat $tmp/in >>$tmp/config.h
11913   rm -f $tmp/in
11914   if test x"$ac_file" != x-; then
11915     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11916       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11917 echo "$as_me: $ac_file is unchanged" >&6;}
11918     else
11919       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11921          X"$ac_file" : 'X\(//\)[^/]' \| \
11922          X"$ac_file" : 'X\(//\)$' \| \
11923          X"$ac_file" : 'X\(/\)' \| \
11924          .     : '\(.\)' 2>/dev/null ||
11925 echo X"$ac_file" |
11926     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11927           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11928           /^X\(\/\/\)$/{ s//\1/; q; }
11929           /^X\(\/\).*/{ s//\1/; q; }
11930           s/.*/./; q'`
11931       { if $as_mkdir_p; then
11932     mkdir -p "$ac_dir"
11933   else
11934     as_dir="$ac_dir"
11935     as_dirs=
11936     while test ! -d "$as_dir"; do
11937       as_dirs="$as_dir $as_dirs"
11938       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11939 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11940          X"$as_dir" : 'X\(//\)[^/]' \| \
11941          X"$as_dir" : 'X\(//\)$' \| \
11942          X"$as_dir" : 'X\(/\)' \| \
11943          .     : '\(.\)' 2>/dev/null ||
11944 echo X"$as_dir" |
11945     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11946           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11947           /^X\(\/\/\)$/{ s//\1/; q; }
11948           /^X\(\/\).*/{ s//\1/; q; }
11949           s/.*/./; q'`
11950     done
11951     test ! -n "$as_dirs" || mkdir $as_dirs
11952   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11953 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11954    { (exit 1); exit 1; }; }; }
11955
11956       rm -f $ac_file
11957       mv $tmp/config.h $ac_file
11958     fi
11959   else
11960     cat $tmp/config.h
11961     rm -f $tmp/config.h
11962   fi
11963 done
11964 _ACEOF
11965
11966 cat >>$CONFIG_STATUS <<\_ACEOF
11967
11968 { (exit 0); exit 0; }
11969 _ACEOF
11970 chmod +x $CONFIG_STATUS
11971 ac_clean_files=$ac_clean_files_save
11972
11973
11974 # configure is writing to config.log, and then calls config.status.
11975 # config.status does its own redirection, appending to config.log.
11976 # Unfortunately, on DOS this fails, as config.log is still kept open
11977 # by configure, so config.status won't be able to write to it; its
11978 # output is simply discarded.  So we exec the FD to /dev/null,
11979 # effectively closing config.log, so it can be properly (re)opened and
11980 # appended to by config.status.  When coming back to configure, we
11981 # need to make the FD available again.
11982 if test "$no_create" != yes; then
11983   ac_cs_success=:
11984   ac_config_status_args=
11985   test "$silent" = yes &&
11986     ac_config_status_args="$ac_config_status_args --quiet"
11987   exec 5>/dev/null
11988   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11989   exec 5>>config.log
11990   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11991   # would make configure fail if this is the last instruction.
11992   $ac_cs_success || { (exit 1); exit 1; }
11993 fi
11994
11995
11996 if test "x${srcdir}" != "x."; then
11997     echo "Warning: --srcdir is not supported"
11998 fi