generated from configure.in by autoconf.
[swftools.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Find the correct PATH separator.  Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247   UNAME=${UNAME-`uname 2>/dev/null`}
248   case X$UNAME in
249     *-DOS) lt_cv_sys_path_separator=';' ;;
250     *)     lt_cv_sys_path_separator=':' ;;
251   esac
252   PATH_SEPARATOR=$lt_cv_sys_path_separator
253 fi
254
255
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
258
259 case X$ECHO in
260 X*--fallback-echo)
261   # Remove one level of quotation (which was required for Make).
262   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
263   ;;
264 esac
265
266 echo=${ECHO-echo}
267 if test "X$1" = X--no-reexec; then
268   # Discard the --no-reexec flag, and continue.
269   shift
270 elif test "X$1" = X--fallback-echo; then
271   # Avoid inline document here, it may be left over
272   :
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274   # Yippee, $echo works!
275   :
276 else
277   # Restart under the correct shell.
278   exec $SHELL "$0" --no-reexec ${1+"$@"}
279 fi
280
281 if test "X$1" = X--fallback-echo; then
282   # used as fallback echo
283   shift
284   cat <<EOF
285
286 EOF
287   exit 0
288 fi
289
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
291 # if CDPATH is set.
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300        echo_test_string="`eval $cmd`" &&
301        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
302     then
303       break
304     fi
305   done
306 fi
307
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310    test "X$echo_testing_string" = "X$echo_test_string"; then
311   :
312 else
313   # The Solaris, AIX, and Digital Unix default echo programs unquote
314   # backslashes.  This makes it impossible to quote backslashes using
315   #   echo "$something" | sed 's/\\/\\\\/g'
316   #
317   # So, first we look for a working echo in the user's PATH.
318
319   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320   for dir in $PATH /usr/ucb; do
321     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324        test "X$echo_testing_string" = "X$echo_test_string"; then
325       echo="$dir/echo"
326       break
327     fi
328   done
329   IFS="$save_ifs"
330
331   if test "X$echo" = Xecho; then
332     # We didn't find a better echo, so look for alternatives.
333     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335        test "X$echo_testing_string" = "X$echo_test_string"; then
336       # This shell has a builtin print -r that does the trick.
337       echo='print -r'
338     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339          test "X$CONFIG_SHELL" != X/bin/ksh; then
340       # If we have ksh, try running configure again with it.
341       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342       export ORIGINAL_CONFIG_SHELL
343       CONFIG_SHELL=/bin/ksh
344       export CONFIG_SHELL
345       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
346     else
347       # Try using printf.
348       echo='printf %s\n'
349       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351          test "X$echo_testing_string" = "X$echo_test_string"; then
352         # Cool, printf works
353         :
354       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359         export CONFIG_SHELL
360         SHELL="$CONFIG_SHELL"
361         export SHELL
362         echo="$CONFIG_SHELL $0 --fallback-echo"
363       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364            test "X$echo_testing_string" = 'X\t' &&
365            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366            test "X$echo_testing_string" = "X$echo_test_string"; then
367         echo="$CONFIG_SHELL $0 --fallback-echo"
368       else
369         # maybe with a smaller string...
370         prev=:
371
372         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374           then
375             break
376           fi
377           prev="$cmd"
378         done
379
380         if test "$prev" != 'sed 50q "$0"'; then
381           echo_test_string=`eval $prev`
382           export echo_test_string
383           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384         else
385           # Oops.  We lost completely, so just stick with echo.
386           echo=echo
387         fi
388       fi
389     fi
390   fi
391 fi
392 fi
393
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
396 ECHO=$echo
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 fi
400
401
402
403 # Name of the host.
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
407
408 exec 6>&1
409
410 #
411 # Initializations.
412 #
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
415 cross_compiling=no
416 subdirs=
417 MFLAGS=
418 MAKEFLAGS=
419 SHELL=${CONFIG_SHELL-/bin/sh}
420
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete.  It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
425
426 # Identity of this package.
427 PACKAGE_NAME=
428 PACKAGE_TARNAME=
429 PACKAGE_VERSION=
430 PACKAGE_STRING=
431 PACKAGE_BUGREPORT=
432
433 ac_unique_file="src/"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
436 #include <stdio.h>
437 #if HAVE_SYS_TYPES_H
438 # include <sys/types.h>
439 #endif
440 #if HAVE_SYS_STAT_H
441 # include <sys/stat.h>
442 #endif
443 #if STDC_HEADERS
444 # include <stdlib.h>
445 # include <stddef.h>
446 #else
447 # if HAVE_STDLIB_H
448 #  include <stdlib.h>
449 # endif
450 #endif
451 #if HAVE_STRING_H
452 # if !STDC_HEADERS && HAVE_MEMORY_H
453 #  include <memory.h>
454 # endif
455 # include <string.h>
456 #endif
457 #if HAVE_STRINGS_H
458 # include <strings.h>
459 #endif
460 #if HAVE_INTTYPES_H
461 # include <inttypes.h>
462 #else
463 # if HAVE_STDINT_H
464 #  include <stdint.h>
465 # endif
466 #endif
467 #if HAVE_UNISTD_H
468 # include <unistd.h>
469 #endif"
470
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S ECHO STRIP ac_ct_STRIP EGREP LIBTOOL UNCOMPRESS AR SLEXT FREETYPE_CONFIG target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H AVIFILE_CONFIG lame_objects USE_GZIP PYTHON_LIB PYTHON_INCLUDES JPEG2SWF PNG2SWF LIBOBJS LTLIBOBJS'
472 ac_subst_files=''
473
474 # Initialize some variables set by options.
475 ac_init_help=
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
479 cache_file=/dev/null
480 exec_prefix=NONE
481 no_create=
482 no_recursion=
483 prefix=NONE
484 program_prefix=NONE
485 program_suffix=NONE
486 program_transform_name=s,x,x,
487 silent=
488 site=
489 srcdir=
490 verbose=
491 x_includes=NONE
492 x_libraries=NONE
493
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
511
512 ac_prev=
513 for ac_option
514 do
515   # If the previous option needs an argument, assign it.
516   if test -n "$ac_prev"; then
517     eval "$ac_prev=\$ac_option"
518     ac_prev=
519     continue
520   fi
521
522   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523
524   # Accept the important Cygnus configure options, so we can diagnose typos.
525
526   case $ac_option in
527
528   -bindir | --bindir | --bindi | --bind | --bin | --bi)
529     ac_prev=bindir ;;
530   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531     bindir=$ac_optarg ;;
532
533   -build | --build | --buil | --bui | --bu)
534     ac_prev=build_alias ;;
535   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536     build_alias=$ac_optarg ;;
537
538   -cache-file | --cache-file | --cache-fil | --cache-fi \
539   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540     ac_prev=cache_file ;;
541   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543     cache_file=$ac_optarg ;;
544
545   --config-cache | -C)
546     cache_file=config.cache ;;
547
548   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549     ac_prev=datadir ;;
550   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551   | --da=*)
552     datadir=$ac_optarg ;;
553
554   -disable-* | --disable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     eval "enable_$ac_feature=no" ;;
562
563   -enable-* | --enable-*)
564     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565     # Reject names that are not valid shell variable names.
566     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568    { (exit 1); exit 1; }; }
569     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570     case $ac_option in
571       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572       *) ac_optarg=yes ;;
573     esac
574     eval "enable_$ac_feature='$ac_optarg'" ;;
575
576   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578   | --exec | --exe | --ex)
579     ac_prev=exec_prefix ;;
580   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582   | --exec=* | --exe=* | --ex=*)
583     exec_prefix=$ac_optarg ;;
584
585   -gas | --gas | --ga | --g)
586     # Obsolete; use --with-gas.
587     with_gas=yes ;;
588
589   -help | --help | --hel | --he | -h)
590     ac_init_help=long ;;
591   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592     ac_init_help=recursive ;;
593   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594     ac_init_help=short ;;
595
596   -host | --host | --hos | --ho)
597     ac_prev=host_alias ;;
598   -host=* | --host=* | --hos=* | --ho=*)
599     host_alias=$ac_optarg ;;
600
601   -includedir | --includedir | --includedi | --included | --include \
602   | --includ | --inclu | --incl | --inc)
603     ac_prev=includedir ;;
604   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605   | --includ=* | --inclu=* | --incl=* | --inc=*)
606     includedir=$ac_optarg ;;
607
608   -infodir | --infodir | --infodi | --infod | --info | --inf)
609     ac_prev=infodir ;;
610   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611     infodir=$ac_optarg ;;
612
613   -libdir | --libdir | --libdi | --libd)
614     ac_prev=libdir ;;
615   -libdir=* | --libdir=* | --libdi=* | --libd=*)
616     libdir=$ac_optarg ;;
617
618   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619   | --libexe | --libex | --libe)
620     ac_prev=libexecdir ;;
621   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622   | --libexe=* | --libex=* | --libe=*)
623     libexecdir=$ac_optarg ;;
624
625   -localstatedir | --localstatedir | --localstatedi | --localstated \
626   | --localstate | --localstat | --localsta | --localst \
627   | --locals | --local | --loca | --loc | --lo)
628     ac_prev=localstatedir ;;
629   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632     localstatedir=$ac_optarg ;;
633
634   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635     ac_prev=mandir ;;
636   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637     mandir=$ac_optarg ;;
638
639   -nfp | --nfp | --nf)
640     # Obsolete; use --without-fp.
641     with_fp=no ;;
642
643   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644   | --no-cr | --no-c | -n)
645     no_create=yes ;;
646
647   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649     no_recursion=yes ;;
650
651   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653   | --oldin | --oldi | --old | --ol | --o)
654     ac_prev=oldincludedir ;;
655   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658     oldincludedir=$ac_optarg ;;
659
660   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661     ac_prev=prefix ;;
662   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663     prefix=$ac_optarg ;;
664
665   -program-prefix | --program-prefix | --program-prefi | --program-pref \
666   | --program-pre | --program-pr | --program-p)
667     ac_prev=program_prefix ;;
668   -program-prefix=* | --program-prefix=* | --program-prefi=* \
669   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670     program_prefix=$ac_optarg ;;
671
672   -program-suffix | --program-suffix | --program-suffi | --program-suff \
673   | --program-suf | --program-su | --program-s)
674     ac_prev=program_suffix ;;
675   -program-suffix=* | --program-suffix=* | --program-suffi=* \
676   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677     program_suffix=$ac_optarg ;;
678
679   -program-transform-name | --program-transform-name \
680   | --program-transform-nam | --program-transform-na \
681   | --program-transform-n | --program-transform- \
682   | --program-transform | --program-transfor \
683   | --program-transfo | --program-transf \
684   | --program-trans | --program-tran \
685   | --progr-tra | --program-tr | --program-t)
686     ac_prev=program_transform_name ;;
687   -program-transform-name=* | --program-transform-name=* \
688   | --program-transform-nam=* | --program-transform-na=* \
689   | --program-transform-n=* | --program-transform-=* \
690   | --program-transform=* | --program-transfor=* \
691   | --program-transfo=* | --program-transf=* \
692   | --program-trans=* | --program-tran=* \
693   | --progr-tra=* | --program-tr=* | --program-t=*)
694     program_transform_name=$ac_optarg ;;
695
696   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697   | -silent | --silent | --silen | --sile | --sil)
698     silent=yes ;;
699
700   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701     ac_prev=sbindir ;;
702   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703   | --sbi=* | --sb=*)
704     sbindir=$ac_optarg ;;
705
706   -sharedstatedir | --sharedstatedir | --sharedstatedi \
707   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708   | --sharedst | --shareds | --shared | --share | --shar \
709   | --sha | --sh)
710     ac_prev=sharedstatedir ;;
711   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714   | --sha=* | --sh=*)
715     sharedstatedir=$ac_optarg ;;
716
717   -site | --site | --sit)
718     ac_prev=site ;;
719   -site=* | --site=* | --sit=*)
720     site=$ac_optarg ;;
721
722   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723     ac_prev=srcdir ;;
724   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725     srcdir=$ac_optarg ;;
726
727   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728   | --syscon | --sysco | --sysc | --sys | --sy)
729     ac_prev=sysconfdir ;;
730   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732     sysconfdir=$ac_optarg ;;
733
734   -target | --target | --targe | --targ | --tar | --ta | --t)
735     ac_prev=target_alias ;;
736   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737     target_alias=$ac_optarg ;;
738
739   -v | -verbose | --verbose | --verbos | --verbo | --verb)
740     verbose=yes ;;
741
742   -version | --version | --versio | --versi | --vers | -V)
743     ac_init_version=: ;;
744
745   -with-* | --with-*)
746     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747     # Reject names that are not valid shell variable names.
748     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749       { echo "$as_me: error: invalid package name: $ac_package" >&2
750    { (exit 1); exit 1; }; }
751     ac_package=`echo $ac_package| sed 's/-/_/g'`
752     case $ac_option in
753       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754       *) ac_optarg=yes ;;
755     esac
756     eval "with_$ac_package='$ac_optarg'" ;;
757
758   -without-* | --without-*)
759     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760     # Reject names that are not valid shell variable names.
761     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762       { echo "$as_me: error: invalid package name: $ac_package" >&2
763    { (exit 1); exit 1; }; }
764     ac_package=`echo $ac_package | sed 's/-/_/g'`
765     eval "with_$ac_package=no" ;;
766
767   --x)
768     # Obsolete; use --with-x.
769     with_x=yes ;;
770
771   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772   | --x-incl | --x-inc | --x-in | --x-i)
773     ac_prev=x_includes ;;
774   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776     x_includes=$ac_optarg ;;
777
778   -x-libraries | --x-libraries | --x-librarie | --x-librari \
779   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780     ac_prev=x_libraries ;;
781   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783     x_libraries=$ac_optarg ;;
784
785   -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787    { (exit 1); exit 1; }; }
788     ;;
789
790   *=*)
791     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792     # Reject names that are not valid shell variable names.
793     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795    { (exit 1); exit 1; }; }
796     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797     eval "$ac_envvar='$ac_optarg'"
798     export $ac_envvar ;;
799
800   *)
801     # FIXME: should be removed in autoconf 3.0.
802     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806     ;;
807
808   esac
809 done
810
811 if test -n "$ac_prev"; then
812   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813   { echo "$as_me: error: missing argument to $ac_option" >&2
814    { (exit 1); exit 1; }; }
815 fi
816
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
819 do
820   eval ac_val=$`echo $ac_var`
821   case $ac_val in
822     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824    { (exit 1); exit 1; }; };;
825   esac
826 done
827
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830               localstatedir libdir includedir oldincludedir infodir mandir
831 do
832   eval ac_val=$`echo $ac_var`
833   case $ac_val in
834     [\\/$]* | ?:[\\/]* ) ;;
835     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836    { (exit 1); exit 1; }; };;
837   esac
838 done
839
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
843 build=$build_alias
844 host=$host_alias
845 target=$target_alias
846
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849   if test "x$build_alias" = x; then
850     cross_compiling=maybe
851     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852     If a cross compiler is detected then cross compile mode will be used." >&2
853   elif test "x$build_alias" != "x$host_alias"; then
854     cross_compiling=yes
855   fi
856 fi
857
858 ac_tool_prefix=
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860
861 test "$silent" = yes && exec 6>/dev/null
862
863
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866   ac_srcdir_defaulted=yes
867   # Try the directory containing this script, then its parent.
868   ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870          X"$0" : 'X\(//\)[^/]' \| \
871          X"$0" : 'X\(//\)$' \| \
872          X"$0" : 'X\(/\)' \| \
873          .     : '\(.\)' 2>/dev/null ||
874 echo X"$0" |
875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877           /^X\(\/\/\)$/{ s//\1/; q; }
878           /^X\(\/\).*/{ s//\1/; q; }
879           s/.*/./; q'`
880   srcdir=$ac_confdir
881   if test ! -r $srcdir/$ac_unique_file; then
882     srcdir=..
883   fi
884 else
885   ac_srcdir_defaulted=no
886 fi
887 if test ! -r $srcdir/$ac_unique_file; then
888   if test "$ac_srcdir_defaulted" = yes; then
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890    { (exit 1); exit 1; }; }
891   else
892     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893    { (exit 1); exit 1; }; }
894   fi
895 fi
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898    { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
913 ac_env_CC_value=$CC
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940
941 #
942 # Report the --help message.
943 #
944 if test "$ac_init_help" = "long"; then
945   # Omit some internal or obsolete options to make the list less imposing.
946   # This message is too long to be a string in the A/UX 3.1 sh.
947   cat <<_ACEOF
948 \`configure' configures this package to adapt to many kinds of systems.
949
950 Usage: $0 [OPTION]... [VAR=VALUE]...
951
952 To assign environment variables (e.g., CC, CFLAGS...), specify them as
953 VAR=VALUE.  See below for descriptions of some of the useful variables.
954
955 Defaults for the options are specified in brackets.
956
957 Configuration:
958   -h, --help              display this help and exit
959       --help=short        display options specific to this package
960       --help=recursive    display the short help of all the included packages
961   -V, --version           display version information and exit
962   -q, --quiet, --silent   do not print \`checking...' messages
963       --cache-file=FILE   cache test results in FILE [disabled]
964   -C, --config-cache      alias for \`--cache-file=config.cache'
965   -n, --no-create         do not create output files
966       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
967
968 _ACEOF
969
970   cat <<_ACEOF
971 Installation directories:
972   --prefix=PREFIX         install architecture-independent files in PREFIX
973                           [$ac_default_prefix]
974   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
975                           [PREFIX]
976
977 By default, \`make install' will install all the files in
978 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
979 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
980 for instance \`--prefix=\$HOME'.
981
982 For better control, use the options below.
983
984 Fine tuning of the installation directories:
985   --bindir=DIR           user executables [EPREFIX/bin]
986   --sbindir=DIR          system admin executables [EPREFIX/sbin]
987   --libexecdir=DIR       program executables [EPREFIX/libexec]
988   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
989   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
990   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
991   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
992   --libdir=DIR           object code libraries [EPREFIX/lib]
993   --includedir=DIR       C header files [PREFIX/include]
994   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
995   --infodir=DIR          info documentation [PREFIX/info]
996   --mandir=DIR           man documentation [PREFIX/man]
997 _ACEOF
998
999   cat <<\_ACEOF
1000
1001 Program names:
1002   --program-prefix=PREFIX            prepend PREFIX to installed program names
1003   --program-suffix=SUFFIX            append SUFFIX to installed program names
1004   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1005
1006 System types:
1007   --build=BUILD     configure for building on BUILD [guessed]
1008   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1009   --target=TARGET   configure for building compilers for TARGET [HOST]
1010 _ACEOF
1011 fi
1012
1013 if test -n "$ac_init_help"; then
1014
1015   cat <<\_ACEOF
1016
1017 Optional Features:
1018   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1019   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1020   --enable-checkmem       turn on ccmalloc debugging
1021   --enable-debug          turn on debugging
1022   --enable-warnings        turn on compiler warnings
1023   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1024   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1025   --enable-shared=PKGS  build shared libraries default=yes
1026   --enable-static=PKGS  build static libraries default=yes
1027   --enable-fast-install=PKGS  optimize for fast installation default=yes
1028   --disable-libtool-lock  avoid locking (might break parallel builds)
1029
1030 Optional Packages:
1031   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1032   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1033   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1034   --with-pic              try to use only PIC/non-PIC objects default=use both
1035
1036 Some influential environment variables:
1037   CC          C compiler command
1038   CFLAGS      C compiler flags
1039   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1040               nonstandard directory <lib dir>
1041   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042               headers in a nonstandard directory <include dir>
1043   CXX         C++ compiler command
1044   CXXFLAGS    C++ compiler flags
1045   CPP         C preprocessor
1046
1047 Use these variables to override the choices made by `configure' or to help
1048 it to find libraries and programs with nonstandard names/locations.
1049
1050 _ACEOF
1051 fi
1052
1053 if test "$ac_init_help" = "recursive"; then
1054   # If there are subdirs, report their specific --help.
1055   ac_popdir=`pwd`
1056   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057     test -d $ac_dir || continue
1058     ac_builddir=.
1059
1060 if test "$ac_dir" != .; then
1061   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062   # A "../" for each directory in $ac_dir_suffix.
1063   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064 else
1065   ac_dir_suffix= ac_top_builddir=
1066 fi
1067
1068 case $srcdir in
1069   .)  # No --srcdir option.  We are building in place.
1070     ac_srcdir=.
1071     if test -z "$ac_top_builddir"; then
1072        ac_top_srcdir=.
1073     else
1074        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075     fi ;;
1076   [\\/]* | ?:[\\/]* )  # Absolute path.
1077     ac_srcdir=$srcdir$ac_dir_suffix;
1078     ac_top_srcdir=$srcdir ;;
1079   *) # Relative path.
1080     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082 esac
1083
1084 # Do not use `cd foo && pwd` to compute absolute paths, because
1085 # the directories may not exist.
1086 case `pwd` in
1087 .) ac_abs_builddir="$ac_dir";;
1088 *)
1089   case "$ac_dir" in
1090   .) ac_abs_builddir=`pwd`;;
1091   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093   esac;;
1094 esac
1095 case $ac_abs_builddir in
1096 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1097 *)
1098   case ${ac_top_builddir}. in
1099   .) ac_abs_top_builddir=$ac_abs_builddir;;
1100   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102   esac;;
1103 esac
1104 case $ac_abs_builddir in
1105 .) ac_abs_srcdir=$ac_srcdir;;
1106 *)
1107   case $ac_srcdir in
1108   .) ac_abs_srcdir=$ac_abs_builddir;;
1109   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111   esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1115 *)
1116   case $ac_top_srcdir in
1117   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1120   esac;;
1121 esac
1122
1123     cd $ac_dir
1124     # Check for guested configure; otherwise get Cygnus style configure.
1125     if test -f $ac_srcdir/configure.gnu; then
1126       echo
1127       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1128     elif test -f $ac_srcdir/configure; then
1129       echo
1130       $SHELL $ac_srcdir/configure  --help=recursive
1131     elif test -f $ac_srcdir/configure.ac ||
1132            test -f $ac_srcdir/configure.in; then
1133       echo
1134       $ac_configure --help
1135     else
1136       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1137     fi
1138     cd $ac_popdir
1139   done
1140 fi
1141
1142 test -n "$ac_init_help" && exit 0
1143 if $ac_init_version; then
1144   cat <<\_ACEOF
1145
1146 Copyright (C) 2003 Free Software Foundation, Inc.
1147 This configure script is free software; the Free Software Foundation
1148 gives unlimited permission to copy, distribute and modify it.
1149 _ACEOF
1150   exit 0
1151 fi
1152 exec 5>config.log
1153 cat >&5 <<_ACEOF
1154 This file contains any messages produced by compilers while
1155 running configure, to aid debugging if configure makes a mistake.
1156
1157 It was created by $as_me, which was
1158 generated by GNU Autoconf 2.59.  Invocation command line was
1159
1160   $ $0 $@
1161
1162 _ACEOF
1163 {
1164 cat <<_ASUNAME
1165 ## --------- ##
1166 ## Platform. ##
1167 ## --------- ##
1168
1169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1174
1175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1177
1178 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1179 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1181 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1182 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1183 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1184 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1185
1186 _ASUNAME
1187
1188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189 for as_dir in $PATH
1190 do
1191   IFS=$as_save_IFS
1192   test -z "$as_dir" && as_dir=.
1193   echo "PATH: $as_dir"
1194 done
1195
1196 } >&5
1197
1198 cat >&5 <<_ACEOF
1199
1200
1201 ## ----------- ##
1202 ## Core tests. ##
1203 ## ----------- ##
1204
1205 _ACEOF
1206
1207
1208 # Keep a trace of the command line.
1209 # Strip out --no-create and --no-recursion so they do not pile up.
1210 # Strip out --silent because we don't want to record it for future runs.
1211 # Also quote any args containing shell meta-characters.
1212 # Make two passes to allow for proper duplicate-argument suppression.
1213 ac_configure_args=
1214 ac_configure_args0=
1215 ac_configure_args1=
1216 ac_sep=
1217 ac_must_keep_next=false
1218 for ac_pass in 1 2
1219 do
1220   for ac_arg
1221   do
1222     case $ac_arg in
1223     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225     | -silent | --silent | --silen | --sile | --sil)
1226       continue ;;
1227     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229     esac
1230     case $ac_pass in
1231     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1232     2)
1233       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234       if test $ac_must_keep_next = true; then
1235         ac_must_keep_next=false # Got value, back to normal.
1236       else
1237         case $ac_arg in
1238           *=* | --config-cache | -C | -disable-* | --disable-* \
1239           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241           | -with-* | --with-* | -without-* | --without-* | --x)
1242             case "$ac_configure_args0 " in
1243               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1244             esac
1245             ;;
1246           -* ) ac_must_keep_next=true ;;
1247         esac
1248       fi
1249       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250       # Get rid of the leading space.
1251       ac_sep=" "
1252       ;;
1253     esac
1254   done
1255 done
1256 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1258
1259 # When interrupted or exit'd, cleanup temporary files, and complete
1260 # config.log.  We remove comments because anyway the quotes in there
1261 # would cause problems or look ugly.
1262 # WARNING: Be sure not to use single quotes in there, as some shells,
1263 # such as our DU 5.0 friend, will then `close' the trap.
1264 trap 'exit_status=$?
1265   # Save into config.log some information that might help in debugging.
1266   {
1267     echo
1268
1269     cat <<\_ASBOX
1270 ## ---------------- ##
1271 ## Cache variables. ##
1272 ## ---------------- ##
1273 _ASBOX
1274     echo
1275     # The following way of writing the cache mishandles newlines in values,
1276 {
1277   (set) 2>&1 |
1278     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279     *ac_space=\ *)
1280       sed -n \
1281         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283       ;;
1284     *)
1285       sed -n \
1286         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1287       ;;
1288     esac;
1289 }
1290     echo
1291
1292     cat <<\_ASBOX
1293 ## ----------------- ##
1294 ## Output variables. ##
1295 ## ----------------- ##
1296 _ASBOX
1297     echo
1298     for ac_var in $ac_subst_vars
1299     do
1300       eval ac_val=$`echo $ac_var`
1301       echo "$ac_var='"'"'$ac_val'"'"'"
1302     done | sort
1303     echo
1304
1305     if test -n "$ac_subst_files"; then
1306       cat <<\_ASBOX
1307 ## ------------- ##
1308 ## Output files. ##
1309 ## ------------- ##
1310 _ASBOX
1311       echo
1312       for ac_var in $ac_subst_files
1313       do
1314         eval ac_val=$`echo $ac_var`
1315         echo "$ac_var='"'"'$ac_val'"'"'"
1316       done | sort
1317       echo
1318     fi
1319
1320     if test -s confdefs.h; then
1321       cat <<\_ASBOX
1322 ## ----------- ##
1323 ## confdefs.h. ##
1324 ## ----------- ##
1325 _ASBOX
1326       echo
1327       sed "/^$/d" confdefs.h | sort
1328       echo
1329     fi
1330     test "$ac_signal" != 0 &&
1331       echo "$as_me: caught signal $ac_signal"
1332     echo "$as_me: exit $exit_status"
1333   } >&5
1334   rm -f core *.core &&
1335   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1336     exit $exit_status
1337      ' 0
1338 for ac_signal in 1 2 13 15; do
1339   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340 done
1341 ac_signal=0
1342
1343 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1344 rm -rf conftest* confdefs.h
1345 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1346 echo >confdefs.h
1347
1348 # Predefined preprocessor variables.
1349
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_NAME "$PACKAGE_NAME"
1352 _ACEOF
1353
1354
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357 _ACEOF
1358
1359
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1362 _ACEOF
1363
1364
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_STRING "$PACKAGE_STRING"
1367 _ACEOF
1368
1369
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372 _ACEOF
1373
1374
1375 # Let the site file select an alternate cache file if it wants to.
1376 # Prefer explicitly selected file to automatically selected ones.
1377 if test -z "$CONFIG_SITE"; then
1378   if test "x$prefix" != xNONE; then
1379     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1380   else
1381     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382   fi
1383 fi
1384 for ac_site_file in $CONFIG_SITE; do
1385   if test -r "$ac_site_file"; then
1386     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387 echo "$as_me: loading site script $ac_site_file" >&6;}
1388     sed 's/^/| /' "$ac_site_file" >&5
1389     . "$ac_site_file"
1390   fi
1391 done
1392
1393 if test -r "$cache_file"; then
1394   # Some versions of bash will fail to source /dev/null (special
1395   # files actually), so we avoid doing that.
1396   if test -f "$cache_file"; then
1397     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398 echo "$as_me: loading cache $cache_file" >&6;}
1399     case $cache_file in
1400       [\\/]* | ?:[\\/]* ) . $cache_file;;
1401       *)                      . ./$cache_file;;
1402     esac
1403   fi
1404 else
1405   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406 echo "$as_me: creating cache $cache_file" >&6;}
1407   >$cache_file
1408 fi
1409
1410 # Check that the precious variables saved in the cache have kept the same
1411 # value.
1412 ac_cache_corrupted=false
1413 for ac_var in `(set) 2>&1 |
1414                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1415   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416   eval ac_new_set=\$ac_env_${ac_var}_set
1417   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418   eval ac_new_val="\$ac_env_${ac_var}_value"
1419   case $ac_old_set,$ac_new_set in
1420     set,)
1421       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423       ac_cache_corrupted=: ;;
1424     ,set)
1425       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427       ac_cache_corrupted=: ;;
1428     ,);;
1429     *)
1430       if test "x$ac_old_val" != "x$ac_new_val"; then
1431         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1432 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1433         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1434 echo "$as_me:   former value:  $ac_old_val" >&2;}
1435         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1436 echo "$as_me:   current value: $ac_new_val" >&2;}
1437         ac_cache_corrupted=:
1438       fi;;
1439   esac
1440   # Pass precious variables to config.status.
1441   if test "$ac_new_set" = set; then
1442     case $ac_new_val in
1443     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1444       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1445     *) ac_arg=$ac_var=$ac_new_val ;;
1446     esac
1447     case " $ac_configure_args " in
1448       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1449       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1450     esac
1451   fi
1452 done
1453 if $ac_cache_corrupted; then
1454   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1455 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1456   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1457 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1458    { (exit 1); exit 1; }; }
1459 fi
1460
1461 ac_ext=c
1462 ac_cpp='$CPP $CPPFLAGS'
1463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487 # Check whether --enable-checkmem or --disable-checkmem was given.
1488 if test "${enable_checkmem+set}" = set; then
1489   enableval="$enable_checkmem"
1490   CHECKMEM=true
1491 fi;
1492 # Check whether --enable-debug or --disable-debug was given.
1493 if test "${enable_debug+set}" = set; then
1494   enableval="$enable_debug"
1495   DEBUG=true
1496 fi;
1497 # Check whether --enable-warnings or --disable-warnings was given.
1498 if test "${enable_warnings+set}" = set; then
1499   enableval="$enable_warnings"
1500   ENABLE_WARNINGS=true
1501 fi;
1502 # Check whether --enable-optimizations or --disable-optimizations was given.
1503 if test "${enable_optimizations+set}" = set; then
1504   enableval="$enable_optimizations"
1505   OPTIMIZE=true
1506 fi;
1507 # Check whether --enable-lame or --disable-lame was given.
1508 if test "${enable_lame+set}" = set; then
1509   enableval="$enable_lame"
1510   DISABLE_LAME=true
1511 fi;
1512
1513 PACKAGE=swftools
1514 VERSION=2004-05-18-1254
1515
1516
1517
1518 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1519 if test "x$ENABLE_WARNINGS" '!=' "x";then
1520     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1521 fi
1522
1523 if test "x$CHECKMEM" '!=' "x";then
1524     DEBUG=yes
1525 fi
1526 if test "x$DEBUG" '!=' "x";then
1527     CFLAGS="$WARNINGS -g $CFLAGS"
1528     CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1529 else if test "x$OPTIMIZE" '!=' "x"; then
1530     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1531     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1532 else
1533     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1534     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1535 fi
1536 fi
1537 #OLDGCC=1
1538 #if test "x$OLDGCC" '!=' "x";then
1539 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1540 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1541 #     CFLAGS="$CFLAGS -ansi -pendantic"
1542 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1543 #fi
1544
1545 export PACKAGE VERSION CFLAGS CXXFLAGS
1546
1547  ac_aux_dir=
1548 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1549   if test -f $ac_dir/install-sh; then
1550     ac_aux_dir=$ac_dir
1551     ac_install_sh="$ac_aux_dir/install-sh -c"
1552     break
1553   elif test -f $ac_dir/install.sh; then
1554     ac_aux_dir=$ac_dir
1555     ac_install_sh="$ac_aux_dir/install.sh -c"
1556     break
1557   elif test -f $ac_dir/shtool; then
1558     ac_aux_dir=$ac_dir
1559     ac_install_sh="$ac_aux_dir/shtool install -c"
1560     break
1561   fi
1562 done
1563 if test -z "$ac_aux_dir"; then
1564   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1565 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1566    { (exit 1); exit 1; }; }
1567 fi
1568 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1569 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1570 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1571
1572 # Make sure we can run config.sub.
1573 $ac_config_sub sun4 >/dev/null 2>&1 ||
1574   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1575 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1576    { (exit 1); exit 1; }; }
1577
1578 echo "$as_me:$LINENO: checking build system type" >&5
1579 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1580 if test "${ac_cv_build+set}" = set; then
1581   echo $ECHO_N "(cached) $ECHO_C" >&6
1582 else
1583   ac_cv_build_alias=$build_alias
1584 test -z "$ac_cv_build_alias" &&
1585   ac_cv_build_alias=`$ac_config_guess`
1586 test -z "$ac_cv_build_alias" &&
1587   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1588 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1589    { (exit 1); exit 1; }; }
1590 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1591   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1592 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1593    { (exit 1); exit 1; }; }
1594
1595 fi
1596 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1597 echo "${ECHO_T}$ac_cv_build" >&6
1598 build=$ac_cv_build
1599 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1600 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1601 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1602
1603
1604 echo "$as_me:$LINENO: checking host system type" >&5
1605 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1606 if test "${ac_cv_host+set}" = set; then
1607   echo $ECHO_N "(cached) $ECHO_C" >&6
1608 else
1609   ac_cv_host_alias=$host_alias
1610 test -z "$ac_cv_host_alias" &&
1611   ac_cv_host_alias=$ac_cv_build_alias
1612 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1613   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1614 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1615    { (exit 1); exit 1; }; }
1616
1617 fi
1618 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1619 echo "${ECHO_T}$ac_cv_host" >&6
1620 host=$ac_cv_host
1621 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1624
1625
1626 MACOSX=
1627 case $host_os in
1628     *darwin* )
1629         MACOSX=yes
1630         CFLAGS="$CFLAGS -fno-rtti"
1631         CXXFLAGS="$CXXFLAGS -fno-rtti"
1632         ;;
1633 esac
1634  ac_ext=c
1635 ac_cpp='$CPP $CPPFLAGS'
1636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1639 if test -n "$ac_tool_prefix"; then
1640   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1641 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_CC+set}" = set; then
1645   echo $ECHO_N "(cached) $ECHO_C" >&6
1646 else
1647   if test -n "$CC"; then
1648   ac_cv_prog_CC="$CC" # Let the user override the test.
1649 else
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 for as_dir in $PATH
1652 do
1653   IFS=$as_save_IFS
1654   test -z "$as_dir" && as_dir=.
1655   for ac_exec_ext in '' $ac_executable_extensions; do
1656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659     break 2
1660   fi
1661 done
1662 done
1663
1664 fi
1665 fi
1666 CC=$ac_cv_prog_CC
1667 if test -n "$CC"; then
1668   echo "$as_me:$LINENO: result: $CC" >&5
1669 echo "${ECHO_T}$CC" >&6
1670 else
1671   echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1673 fi
1674
1675 fi
1676 if test -z "$ac_cv_prog_CC"; then
1677   ac_ct_CC=$CC
1678   # Extract the first word of "gcc", so it can be a program name with args.
1679 set dummy gcc; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1683   echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685   if test -n "$ac_ct_CC"; then
1686   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1687 else
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1690 do
1691   IFS=$as_save_IFS
1692   test -z "$as_dir" && as_dir=.
1693   for ac_exec_ext in '' $ac_executable_extensions; do
1694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695     ac_cv_prog_ac_ct_CC="gcc"
1696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697     break 2
1698   fi
1699 done
1700 done
1701
1702 fi
1703 fi
1704 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1705 if test -n "$ac_ct_CC"; then
1706   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1707 echo "${ECHO_T}$ac_ct_CC" >&6
1708 else
1709   echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1711 fi
1712
1713   CC=$ac_ct_CC
1714 else
1715   CC="$ac_cv_prog_CC"
1716 fi
1717
1718 if test -z "$CC"; then
1719   if test -n "$ac_tool_prefix"; then
1720   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1721 set dummy ${ac_tool_prefix}cc; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_CC+set}" = set; then
1725   echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727   if test -n "$CC"; then
1728   ac_cv_prog_CC="$CC" # Let the user override the test.
1729 else
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1732 do
1733   IFS=$as_save_IFS
1734   test -z "$as_dir" && as_dir=.
1735   for ac_exec_ext in '' $ac_executable_extensions; do
1736   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737     ac_cv_prog_CC="${ac_tool_prefix}cc"
1738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739     break 2
1740   fi
1741 done
1742 done
1743
1744 fi
1745 fi
1746 CC=$ac_cv_prog_CC
1747 if test -n "$CC"; then
1748   echo "$as_me:$LINENO: result: $CC" >&5
1749 echo "${ECHO_T}$CC" >&6
1750 else
1751   echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1753 fi
1754
1755 fi
1756 if test -z "$ac_cv_prog_CC"; then
1757   ac_ct_CC=$CC
1758   # Extract the first word of "cc", so it can be a program name with args.
1759 set dummy cc; ac_word=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1763   echo $ECHO_N "(cached) $ECHO_C" >&6
1764 else
1765   if test -n "$ac_ct_CC"; then
1766   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1767 else
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 for as_dir in $PATH
1770 do
1771   IFS=$as_save_IFS
1772   test -z "$as_dir" && as_dir=.
1773   for ac_exec_ext in '' $ac_executable_extensions; do
1774   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775     ac_cv_prog_ac_ct_CC="cc"
1776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777     break 2
1778   fi
1779 done
1780 done
1781
1782 fi
1783 fi
1784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1785 if test -n "$ac_ct_CC"; then
1786   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1787 echo "${ECHO_T}$ac_ct_CC" >&6
1788 else
1789   echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1791 fi
1792
1793   CC=$ac_ct_CC
1794 else
1795   CC="$ac_cv_prog_CC"
1796 fi
1797
1798 fi
1799 if test -z "$CC"; then
1800   # Extract the first word of "cc", so it can be a program name with args.
1801 set dummy cc; ac_word=$2
1802 echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804 if test "${ac_cv_prog_CC+set}" = set; then
1805   echo $ECHO_N "(cached) $ECHO_C" >&6
1806 else
1807   if test -n "$CC"; then
1808   ac_cv_prog_CC="$CC" # Let the user override the test.
1809 else
1810   ac_prog_rejected=no
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 for as_dir in $PATH
1813 do
1814   IFS=$as_save_IFS
1815   test -z "$as_dir" && as_dir=.
1816   for ac_exec_ext in '' $ac_executable_extensions; do
1817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1819        ac_prog_rejected=yes
1820        continue
1821      fi
1822     ac_cv_prog_CC="cc"
1823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824     break 2
1825   fi
1826 done
1827 done
1828
1829 if test $ac_prog_rejected = yes; then
1830   # We found a bogon in the path, so make sure we never use it.
1831   set dummy $ac_cv_prog_CC
1832   shift
1833   if test $# != 0; then
1834     # We chose a different compiler from the bogus one.
1835     # However, it has the same basename, so the bogon will be chosen
1836     # first if we set CC to just the basename; use the full file name.
1837     shift
1838     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1839   fi
1840 fi
1841 fi
1842 fi
1843 CC=$ac_cv_prog_CC
1844 if test -n "$CC"; then
1845   echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1847 else
1848   echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1850 fi
1851
1852 fi
1853 if test -z "$CC"; then
1854   if test -n "$ac_tool_prefix"; then
1855   for ac_prog in cl
1856   do
1857     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1858 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_CC+set}" = set; then
1862   echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864   if test -n "$CC"; then
1865   ac_cv_prog_CC="$CC" # Let the user override the test.
1866 else
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1869 do
1870   IFS=$as_save_IFS
1871   test -z "$as_dir" && as_dir=.
1872   for ac_exec_ext in '' $ac_executable_extensions; do
1873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876     break 2
1877   fi
1878 done
1879 done
1880
1881 fi
1882 fi
1883 CC=$ac_cv_prog_CC
1884 if test -n "$CC"; then
1885   echo "$as_me:$LINENO: result: $CC" >&5
1886 echo "${ECHO_T}$CC" >&6
1887 else
1888   echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1890 fi
1891
1892     test -n "$CC" && break
1893   done
1894 fi
1895 if test -z "$CC"; then
1896   ac_ct_CC=$CC
1897   for ac_prog in cl
1898 do
1899   # Extract the first word of "$ac_prog", so it can be a program name with args.
1900 set dummy $ac_prog; ac_word=$2
1901 echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1904   echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906   if test -n "$ac_ct_CC"; then
1907   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1908 else
1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910 for as_dir in $PATH
1911 do
1912   IFS=$as_save_IFS
1913   test -z "$as_dir" && as_dir=.
1914   for ac_exec_ext in '' $ac_executable_extensions; do
1915   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916     ac_cv_prog_ac_ct_CC="$ac_prog"
1917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918     break 2
1919   fi
1920 done
1921 done
1922
1923 fi
1924 fi
1925 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1926 if test -n "$ac_ct_CC"; then
1927   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1928 echo "${ECHO_T}$ac_ct_CC" >&6
1929 else
1930   echo "$as_me:$LINENO: result: no" >&5
1931 echo "${ECHO_T}no" >&6
1932 fi
1933
1934   test -n "$ac_ct_CC" && break
1935 done
1936
1937   CC=$ac_ct_CC
1938 fi
1939
1940 fi
1941
1942
1943 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1944 See \`config.log' for more details." >&5
1945 echo "$as_me: error: no acceptable C compiler found in \$PATH
1946 See \`config.log' for more details." >&2;}
1947    { (exit 1); exit 1; }; }
1948
1949 # Provide some information about the compiler.
1950 echo "$as_me:$LINENO:" \
1951      "checking for C compiler version" >&5
1952 ac_compiler=`set X $ac_compile; echo $2`
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1954   (eval $ac_compiler --version </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 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1964   (eval $ac_compiler -V </dev/null >&5) 2>&5
1965   ac_status=$?
1966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967   (exit $ac_status); }
1968
1969 cat >conftest.$ac_ext <<_ACEOF
1970 /* confdefs.h.  */
1971 _ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h.  */
1975
1976 int
1977 main ()
1978 {
1979
1980   ;
1981   return 0;
1982 }
1983 _ACEOF
1984 ac_clean_files_save=$ac_clean_files
1985 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1986 # Try to create an executable without -o first, disregard a.out.
1987 # It will help us diagnose broken compilers, and finding out an intuition
1988 # of exeext.
1989 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1990 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1991 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1992 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1993   (eval $ac_link_default) 2>&5
1994   ac_status=$?
1995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996   (exit $ac_status); }; then
1997   # Find the output, starting from the most likely.  This scheme is
1998 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1999 # resort.
2000
2001 # Be careful to initialize this variable, since it used to be cached.
2002 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2003 ac_cv_exeext=
2004 # b.out is created by i960 compilers.
2005 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2006 do
2007   test -f "$ac_file" || continue
2008   case $ac_file in
2009     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2010         ;;
2011     conftest.$ac_ext )
2012         # This is the source file.
2013         ;;
2014     [ab].out )
2015         # We found the default executable, but exeext='' is most
2016         # certainly right.
2017         break;;
2018     *.* )
2019         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2020         # FIXME: I believe we export ac_cv_exeext for Libtool,
2021         # but it would be cool to find out if it's true.  Does anybody
2022         # maintain Libtool? --akim.
2023         export ac_cv_exeext
2024         break;;
2025     * )
2026         break;;
2027   esac
2028 done
2029 else
2030   echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2032
2033 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: C compiler cannot create executables
2036 See \`config.log' for more details." >&2;}
2037    { (exit 77); exit 77; }; }
2038 fi
2039
2040 ac_exeext=$ac_cv_exeext
2041 echo "$as_me:$LINENO: result: $ac_file" >&5
2042 echo "${ECHO_T}$ac_file" >&6
2043
2044 # Check the compiler produces executables we can run.  If not, either
2045 # the compiler is broken, or we cross compile.
2046 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2047 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2048 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2049 # If not cross compiling, check that we can run a simple program.
2050 if test "$cross_compiling" != yes; then
2051   if { ac_try='./$ac_file'
2052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2053   (eval $ac_try) 2>&5
2054   ac_status=$?
2055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056   (exit $ac_status); }; }; then
2057     cross_compiling=no
2058   else
2059     if test "$cross_compiling" = maybe; then
2060         cross_compiling=yes
2061     else
2062         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2063 If you meant to cross compile, use \`--host'.
2064 See \`config.log' for more details." >&5
2065 echo "$as_me: error: cannot run C compiled programs.
2066 If you meant to cross compile, use \`--host'.
2067 See \`config.log' for more details." >&2;}
2068    { (exit 1); exit 1; }; }
2069     fi
2070   fi
2071 fi
2072 echo "$as_me:$LINENO: result: yes" >&5
2073 echo "${ECHO_T}yes" >&6
2074
2075 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2076 ac_clean_files=$ac_clean_files_save
2077 # Check the compiler produces executables we can run.  If not, either
2078 # the compiler is broken, or we cross compile.
2079 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2080 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2081 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2082 echo "${ECHO_T}$cross_compiling" >&6
2083
2084 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2085 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2087   (eval $ac_link) 2>&5
2088   ac_status=$?
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); }; then
2091   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2092 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2093 # work properly (i.e., refer to `conftest.exe'), while it won't with
2094 # `rm'.
2095 for ac_file in conftest.exe conftest conftest.*; do
2096   test -f "$ac_file" || continue
2097   case $ac_file in
2098     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2099     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2100           export ac_cv_exeext
2101           break;;
2102     * ) break;;
2103   esac
2104 done
2105 else
2106   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2109 See \`config.log' for more details." >&2;}
2110    { (exit 1); exit 1; }; }
2111 fi
2112
2113 rm -f conftest$ac_cv_exeext
2114 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2115 echo "${ECHO_T}$ac_cv_exeext" >&6
2116
2117 rm -f conftest.$ac_ext
2118 EXEEXT=$ac_cv_exeext
2119 ac_exeext=$EXEEXT
2120 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2121 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2122 if test "${ac_cv_objext+set}" = set; then
2123   echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125   cat >conftest.$ac_ext <<_ACEOF
2126 /* confdefs.h.  */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h.  */
2131
2132 int
2133 main ()
2134 {
2135
2136   ;
2137   return 0;
2138 }
2139 _ACEOF
2140 rm -f conftest.o conftest.obj
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142   (eval $ac_compile) 2>&5
2143   ac_status=$?
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); }; then
2146   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2147   case $ac_file in
2148     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2149     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2150        break;;
2151   esac
2152 done
2153 else
2154   echo "$as_me: failed program was:" >&5
2155 sed 's/^/| /' conftest.$ac_ext >&5
2156
2157 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2158 See \`config.log' for more details." >&5
2159 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2160 See \`config.log' for more details." >&2;}
2161    { (exit 1); exit 1; }; }
2162 fi
2163
2164 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2165 fi
2166 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2167 echo "${ECHO_T}$ac_cv_objext" >&6
2168 OBJEXT=$ac_cv_objext
2169 ac_objext=$OBJEXT
2170 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2171 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2172 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2173   echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175   cat >conftest.$ac_ext <<_ACEOF
2176 /* confdefs.h.  */
2177 _ACEOF
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h.  */
2181
2182 int
2183 main ()
2184 {
2185 #ifndef __GNUC__
2186        choke me
2187 #endif
2188
2189   ;
2190   return 0;
2191 }
2192 _ACEOF
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195   (eval $ac_compile) 2>conftest.er1
2196   ac_status=$?
2197   grep -v '^ *+' conftest.er1 >conftest.err
2198   rm -f conftest.er1
2199   cat conftest.err >&5
2200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); } &&
2202          { ac_try='test -z "$ac_c_werror_flag"
2203                          || test ! -s conftest.err'
2204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205   (eval $ac_try) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }; } &&
2209          { ac_try='test -s conftest.$ac_objext'
2210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211   (eval $ac_try) 2>&5
2212   ac_status=$?
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); }; }; then
2215   ac_compiler_gnu=yes
2216 else
2217   echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220 ac_compiler_gnu=no
2221 fi
2222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2223 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2224
2225 fi
2226 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2227 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2228 GCC=`test $ac_compiler_gnu = yes && echo yes`
2229 ac_test_CFLAGS=${CFLAGS+set}
2230 ac_save_CFLAGS=$CFLAGS
2231 CFLAGS="-g"
2232 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2233 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2234 if test "${ac_cv_prog_cc_g+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   cat >conftest.$ac_ext <<_ACEOF
2238 /* confdefs.h.  */
2239 _ACEOF
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h.  */
2243
2244 int
2245 main ()
2246 {
2247
2248   ;
2249   return 0;
2250 }
2251 _ACEOF
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254   (eval $ac_compile) 2>conftest.er1
2255   ac_status=$?
2256   grep -v '^ *+' conftest.er1 >conftest.err
2257   rm -f conftest.er1
2258   cat conftest.err >&5
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); } &&
2261          { ac_try='test -z "$ac_c_werror_flag"
2262                          || test ! -s conftest.err'
2263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264   (eval $ac_try) 2>&5
2265   ac_status=$?
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); }; } &&
2268          { ac_try='test -s conftest.$ac_objext'
2269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270   (eval $ac_try) 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; }; then
2274   ac_cv_prog_cc_g=yes
2275 else
2276   echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 ac_cv_prog_cc_g=no
2280 fi
2281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2282 fi
2283 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2284 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2285 if test "$ac_test_CFLAGS" = set; then
2286   CFLAGS=$ac_save_CFLAGS
2287 elif test $ac_cv_prog_cc_g = yes; then
2288   if test "$GCC" = yes; then
2289     CFLAGS="-g -O2"
2290   else
2291     CFLAGS="-g"
2292   fi
2293 else
2294   if test "$GCC" = yes; then
2295     CFLAGS="-O2"
2296   else
2297     CFLAGS=
2298   fi
2299 fi
2300 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2301 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2302 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   ac_cv_prog_cc_stdc=no
2306 ac_save_CC=$CC
2307 cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h.  */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h.  */
2313 #include <stdarg.h>
2314 #include <stdio.h>
2315 #include <sys/types.h>
2316 #include <sys/stat.h>
2317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2318 struct buf { int x; };
2319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2320 static char *e (p, i)
2321      char **p;
2322      int i;
2323 {
2324   return p[i];
2325 }
2326 static char *f (char * (*g) (char **, int), char **p, ...)
2327 {
2328   char *s;
2329   va_list v;
2330   va_start (v,p);
2331   s = g (p, va_arg (v,int));
2332   va_end (v);
2333   return s;
2334 }
2335
2336 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2337    function prototypes and stuff, but not '\xHH' hex character constants.
2338    These don't provoke an error unfortunately, instead are silently treated
2339    as 'x'.  The following induces an error, until -std1 is added to get
2340    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2341    array size at least.  It's necessary to write '\x00'==0 to get something
2342    that's true only with -std1.  */
2343 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2344
2345 int test (int i, double x);
2346 struct s1 {int (*f) (int a);};
2347 struct s2 {int (*f) (double a);};
2348 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2349 int argc;
2350 char **argv;
2351 int
2352 main ()
2353 {
2354 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2355   ;
2356   return 0;
2357 }
2358 _ACEOF
2359 # Don't try gcc -ansi; that turns off useful extensions and
2360 # breaks some systems' header files.
2361 # AIX                   -qlanglvl=ansi
2362 # Ultrix and OSF/1      -std1
2363 # HP-UX 10.20 and later -Ae
2364 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2365 # SVR4                  -Xc -D__EXTENSIONS__
2366 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2367 do
2368   CC="$ac_save_CC $ac_arg"
2369   rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371   (eval $ac_compile) 2>conftest.er1
2372   ac_status=$?
2373   grep -v '^ *+' conftest.er1 >conftest.err
2374   rm -f conftest.er1
2375   cat conftest.err >&5
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); } &&
2378          { ac_try='test -z "$ac_c_werror_flag"
2379                          || test ! -s conftest.err'
2380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381   (eval $ac_try) 2>&5
2382   ac_status=$?
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); }; } &&
2385          { ac_try='test -s conftest.$ac_objext'
2386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387   (eval $ac_try) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }; }; then
2391   ac_cv_prog_cc_stdc=$ac_arg
2392 break
2393 else
2394   echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2396
2397 fi
2398 rm -f conftest.err conftest.$ac_objext
2399 done
2400 rm -f conftest.$ac_ext conftest.$ac_objext
2401 CC=$ac_save_CC
2402
2403 fi
2404
2405 case "x$ac_cv_prog_cc_stdc" in
2406   x|xno)
2407     echo "$as_me:$LINENO: result: none needed" >&5
2408 echo "${ECHO_T}none needed" >&6 ;;
2409   *)
2410     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2411 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2412     CC="$CC $ac_cv_prog_cc_stdc" ;;
2413 esac
2414
2415 # Some people use a C++ compiler to compile C.  Since we use `exit',
2416 # in C++ we need to declare it.  In case someone uses the same compiler
2417 # for both compiling C and C++ we need to have the C++ compiler decide
2418 # the declaration of exit, since it's the most demanding environment.
2419 cat >conftest.$ac_ext <<_ACEOF
2420 #ifndef __cplusplus
2421   choke me
2422 #endif
2423 _ACEOF
2424 rm -f conftest.$ac_objext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426   (eval $ac_compile) 2>conftest.er1
2427   ac_status=$?
2428   grep -v '^ *+' conftest.er1 >conftest.err
2429   rm -f conftest.er1
2430   cat conftest.err >&5
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); } &&
2433          { ac_try='test -z "$ac_c_werror_flag"
2434                          || test ! -s conftest.err'
2435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436   (eval $ac_try) 2>&5
2437   ac_status=$?
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }; } &&
2440          { ac_try='test -s conftest.$ac_objext'
2441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442   (eval $ac_try) 2>&5
2443   ac_status=$?
2444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445   (exit $ac_status); }; }; then
2446   for ac_declaration in \
2447    '' \
2448    'extern "C" void std::exit (int) throw (); using std::exit;' \
2449    'extern "C" void std::exit (int); using std::exit;' \
2450    'extern "C" void exit (int) throw ();' \
2451    'extern "C" void exit (int);' \
2452    'void exit (int);'
2453 do
2454   cat >conftest.$ac_ext <<_ACEOF
2455 /* confdefs.h.  */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h.  */
2460 $ac_declaration
2461 #include <stdlib.h>
2462 int
2463 main ()
2464 {
2465 exit (42);
2466   ;
2467   return 0;
2468 }
2469 _ACEOF
2470 rm -f conftest.$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472   (eval $ac_compile) 2>conftest.er1
2473   ac_status=$?
2474   grep -v '^ *+' conftest.er1 >conftest.err
2475   rm -f conftest.er1
2476   cat conftest.err >&5
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); } &&
2479          { ac_try='test -z "$ac_c_werror_flag"
2480                          || test ! -s conftest.err'
2481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482   (eval $ac_try) 2>&5
2483   ac_status=$?
2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485   (exit $ac_status); }; } &&
2486          { ac_try='test -s conftest.$ac_objext'
2487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488   (eval $ac_try) 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }; }; then
2492   :
2493 else
2494   echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2496
2497 continue
2498 fi
2499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2500   cat >conftest.$ac_ext <<_ACEOF
2501 /* confdefs.h.  */
2502 _ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h.  */
2506 $ac_declaration
2507 int
2508 main ()
2509 {
2510 exit (42);
2511   ;
2512   return 0;
2513 }
2514 _ACEOF
2515 rm -f conftest.$ac_objext
2516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2517   (eval $ac_compile) 2>conftest.er1
2518   ac_status=$?
2519   grep -v '^ *+' conftest.er1 >conftest.err
2520   rm -f conftest.er1
2521   cat conftest.err >&5
2522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523   (exit $ac_status); } &&
2524          { ac_try='test -z "$ac_c_werror_flag"
2525                          || test ! -s conftest.err'
2526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527   (eval $ac_try) 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); }; } &&
2531          { ac_try='test -s conftest.$ac_objext'
2532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533   (eval $ac_try) 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; }; then
2537   break
2538 else
2539   echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 fi
2543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2544 done
2545 rm -f conftest*
2546 if test -n "$ac_declaration"; then
2547   echo '#ifdef __cplusplus' >>confdefs.h
2548   echo $ac_declaration      >>confdefs.h
2549   echo '#endif'             >>confdefs.h
2550 fi
2551
2552 else
2553   echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2555
2556 fi
2557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2558 ac_ext=c
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563
2564  ac_ext=cc
2565 ac_cpp='$CXXCPP $CPPFLAGS'
2566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2569 if test -n "$ac_tool_prefix"; then
2570   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2571   do
2572     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2574 echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2576 if test "${ac_cv_prog_CXX+set}" = set; then
2577   echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579   if test -n "$CXX"; then
2580   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585   IFS=$as_save_IFS
2586   test -z "$as_dir" && as_dir=.
2587   for ac_exec_ext in '' $ac_executable_extensions; do
2588   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591     break 2
2592   fi
2593 done
2594 done
2595
2596 fi
2597 fi
2598 CXX=$ac_cv_prog_CXX
2599 if test -n "$CXX"; then
2600   echo "$as_me:$LINENO: result: $CXX" >&5
2601 echo "${ECHO_T}$CXX" >&6
2602 else
2603   echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6
2605 fi
2606
2607     test -n "$CXX" && break
2608   done
2609 fi
2610 if test -z "$CXX"; then
2611   ac_ct_CXX=$CXX
2612   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2613 do
2614   # Extract the first word of "$ac_prog", so it can be a program name with args.
2615 set dummy $ac_prog; ac_word=$2
2616 echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2618 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2619   echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621   if test -n "$ac_ct_CXX"; then
2622   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627   IFS=$as_save_IFS
2628   test -z "$as_dir" && as_dir=.
2629   for ac_exec_ext in '' $ac_executable_extensions; do
2630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631     ac_cv_prog_ac_ct_CXX="$ac_prog"
2632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633     break 2
2634   fi
2635 done
2636 done
2637
2638 fi
2639 fi
2640 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2641 if test -n "$ac_ct_CXX"; then
2642   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2643 echo "${ECHO_T}$ac_ct_CXX" >&6
2644 else
2645   echo "$as_me:$LINENO: result: no" >&5
2646 echo "${ECHO_T}no" >&6
2647 fi
2648
2649   test -n "$ac_ct_CXX" && break
2650 done
2651 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2652
2653   CXX=$ac_ct_CXX
2654 fi
2655
2656
2657 # Provide some information about the compiler.
2658 echo "$as_me:$LINENO:" \
2659      "checking for C++ compiler version" >&5
2660 ac_compiler=`set X $ac_compile; echo $2`
2661 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2662   (eval $ac_compiler --version </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 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2672   (eval $ac_compiler -V </dev/null >&5) 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); }
2676
2677 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2678 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2679 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2680   echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682   cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688
2689 int
2690 main ()
2691 {
2692 #ifndef __GNUC__
2693        choke me
2694 #endif
2695
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702   (eval $ac_compile) 2>conftest.er1
2703   ac_status=$?
2704   grep -v '^ *+' conftest.er1 >conftest.err
2705   rm -f conftest.er1
2706   cat conftest.err >&5
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); } &&
2709          { ac_try='test -z "$ac_cxx_werror_flag"
2710                          || test ! -s conftest.err'
2711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712   (eval $ac_try) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }; } &&
2716          { ac_try='test -s conftest.$ac_objext'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; }; then
2722   ac_compiler_gnu=yes
2723 else
2724   echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 ac_compiler_gnu=no
2728 fi
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2731
2732 fi
2733 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2734 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2735 GXX=`test $ac_compiler_gnu = yes && echo yes`
2736 ac_test_CXXFLAGS=${CXXFLAGS+set}
2737 ac_save_CXXFLAGS=$CXXFLAGS
2738 CXXFLAGS="-g"
2739 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2740 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2741 if test "${ac_cv_prog_cxx_g+set}" = set; then
2742   echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744   cat >conftest.$ac_ext <<_ACEOF
2745 /* confdefs.h.  */
2746 _ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h.  */
2750
2751 int
2752 main ()
2753 {
2754
2755   ;
2756   return 0;
2757 }
2758 _ACEOF
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761   (eval $ac_compile) 2>conftest.er1
2762   ac_status=$?
2763   grep -v '^ *+' conftest.er1 >conftest.err
2764   rm -f conftest.er1
2765   cat conftest.err >&5
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); } &&
2768          { ac_try='test -z "$ac_cxx_werror_flag"
2769                          || test ! -s conftest.err'
2770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771   (eval $ac_try) 2>&5
2772   ac_status=$?
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); }; } &&
2775          { ac_try='test -s conftest.$ac_objext'
2776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777   (eval $ac_try) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }; }; then
2781   ac_cv_prog_cxx_g=yes
2782 else
2783   echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2785
2786 ac_cv_prog_cxx_g=no
2787 fi
2788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2789 fi
2790 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2791 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2792 if test "$ac_test_CXXFLAGS" = set; then
2793   CXXFLAGS=$ac_save_CXXFLAGS
2794 elif test $ac_cv_prog_cxx_g = yes; then
2795   if test "$GXX" = yes; then
2796     CXXFLAGS="-g -O2"
2797   else
2798     CXXFLAGS="-g"
2799   fi
2800 else
2801   if test "$GXX" = yes; then
2802     CXXFLAGS="-O2"
2803   else
2804     CXXFLAGS=
2805   fi
2806 fi
2807 for ac_declaration in \
2808    '' \
2809    'extern "C" void std::exit (int) throw (); using std::exit;' \
2810    'extern "C" void std::exit (int); using std::exit;' \
2811    'extern "C" void exit (int) throw ();' \
2812    'extern "C" void exit (int);' \
2813    'void exit (int);'
2814 do
2815   cat >conftest.$ac_ext <<_ACEOF
2816 /* confdefs.h.  */
2817 _ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h.  */
2821 $ac_declaration
2822 #include <stdlib.h>
2823 int
2824 main ()
2825 {
2826 exit (42);
2827   ;
2828   return 0;
2829 }
2830 _ACEOF
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833   (eval $ac_compile) 2>conftest.er1
2834   ac_status=$?
2835   grep -v '^ *+' conftest.er1 >conftest.err
2836   rm -f conftest.er1
2837   cat conftest.err >&5
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); } &&
2840          { ac_try='test -z "$ac_cxx_werror_flag"
2841                          || test ! -s conftest.err'
2842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843   (eval $ac_try) 2>&5
2844   ac_status=$?
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); }; } &&
2847          { ac_try='test -s conftest.$ac_objext'
2848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849   (eval $ac_try) 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); }; }; then
2853   :
2854 else
2855   echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858 continue
2859 fi
2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861   cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h.  */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h.  */
2867 $ac_declaration
2868 int
2869 main ()
2870 {
2871 exit (42);
2872   ;
2873   return 0;
2874 }
2875 _ACEOF
2876 rm -f conftest.$ac_objext
2877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2878   (eval $ac_compile) 2>conftest.er1
2879   ac_status=$?
2880   grep -v '^ *+' conftest.er1 >conftest.err
2881   rm -f conftest.er1
2882   cat conftest.err >&5
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); } &&
2885          { ac_try='test -z "$ac_cxx_werror_flag"
2886                          || test ! -s conftest.err'
2887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888   (eval $ac_try) 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }; } &&
2892          { ac_try='test -s conftest.$ac_objext'
2893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894   (eval $ac_try) 2>&5
2895   ac_status=$?
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); }; }; then
2898   break
2899 else
2900   echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903 fi
2904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905 done
2906 rm -f conftest*
2907 if test -n "$ac_declaration"; then
2908   echo '#ifdef __cplusplus' >>confdefs.h
2909   echo $ac_declaration      >>confdefs.h
2910   echo '#endif'             >>confdefs.h
2911 fi
2912
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918
2919
2920 if test "x$CHECKMEM" '!=' "x";then
2921     CC="ccmalloc $CC"
2922     CXX="ccmalloc $CXX"
2923     #echo running again
2924     #unset ac_cv_prog_CC
2925     #unset ac_cv_prog_CXX
2926     #AC_PROG_CC
2927     #AC_PROG_CXX
2928 fi
2929  ac_ext=c
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2935 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2936 # On Suns, sometimes $CPP names a directory.
2937 if test -n "$CPP" && test -d "$CPP"; then
2938   CPP=
2939 fi
2940 if test -z "$CPP"; then
2941   if test "${ac_cv_prog_CPP+set}" = set; then
2942   echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944       # Double quotes because CPP needs to be expanded
2945     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2946     do
2947       ac_preproc_ok=false
2948 for ac_c_preproc_warn_flag in '' yes
2949 do
2950   # Use a header file that comes with gcc, so configuring glibc
2951   # with a fresh cross-compiler works.
2952   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2953   # <limits.h> exists even on freestanding compilers.
2954   # On the NeXT, cc -E runs the code through the compiler's parser,
2955   # not just through cpp. "Syntax error" is here to catch this case.
2956   cat >conftest.$ac_ext <<_ACEOF
2957 /* confdefs.h.  */
2958 _ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h.  */
2962 #ifdef __STDC__
2963 # include <limits.h>
2964 #else
2965 # include <assert.h>
2966 #endif
2967                      Syntax error
2968 _ACEOF
2969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2971   ac_status=$?
2972   grep -v '^ *+' conftest.er1 >conftest.err
2973   rm -f conftest.er1
2974   cat conftest.err >&5
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); } >/dev/null; then
2977   if test -s conftest.err; then
2978     ac_cpp_err=$ac_c_preproc_warn_flag
2979     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2980   else
2981     ac_cpp_err=
2982   fi
2983 else
2984   ac_cpp_err=yes
2985 fi
2986 if test -z "$ac_cpp_err"; then
2987   :
2988 else
2989   echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992   # Broken: fails on valid input.
2993 continue
2994 fi
2995 rm -f conftest.err conftest.$ac_ext
2996
2997   # OK, works on sane cases.  Now check whether non-existent headers
2998   # can be detected and how.
2999   cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h.  */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h.  */
3005 #include <ac_nonexistent.h>
3006 _ACEOF
3007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3009   ac_status=$?
3010   grep -v '^ *+' conftest.er1 >conftest.err
3011   rm -f conftest.er1
3012   cat conftest.err >&5
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); } >/dev/null; then
3015   if test -s conftest.err; then
3016     ac_cpp_err=$ac_c_preproc_warn_flag
3017     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3018   else
3019     ac_cpp_err=
3020   fi
3021 else
3022   ac_cpp_err=yes
3023 fi
3024 if test -z "$ac_cpp_err"; then
3025   # Broken: success on invalid input.
3026 continue
3027 else
3028   echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3030
3031   # Passes both tests.
3032 ac_preproc_ok=:
3033 break
3034 fi
3035 rm -f conftest.err conftest.$ac_ext
3036
3037 done
3038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3039 rm -f conftest.err conftest.$ac_ext
3040 if $ac_preproc_ok; then
3041   break
3042 fi
3043
3044     done
3045     ac_cv_prog_CPP=$CPP
3046
3047 fi
3048   CPP=$ac_cv_prog_CPP
3049 else
3050   ac_cv_prog_CPP=$CPP
3051 fi
3052 echo "$as_me:$LINENO: result: $CPP" >&5
3053 echo "${ECHO_T}$CPP" >&6
3054 ac_preproc_ok=false
3055 for ac_c_preproc_warn_flag in '' yes
3056 do
3057   # Use a header file that comes with gcc, so configuring glibc
3058   # with a fresh cross-compiler works.
3059   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3060   # <limits.h> exists even on freestanding compilers.
3061   # On the NeXT, cc -E runs the code through the compiler's parser,
3062   # not just through cpp. "Syntax error" is here to catch this case.
3063   cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h.  */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h.  */
3069 #ifdef __STDC__
3070 # include <limits.h>
3071 #else
3072 # include <assert.h>
3073 #endif
3074                      Syntax error
3075 _ACEOF
3076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3077   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3078   ac_status=$?
3079   grep -v '^ *+' conftest.er1 >conftest.err
3080   rm -f conftest.er1
3081   cat conftest.err >&5
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); } >/dev/null; then
3084   if test -s conftest.err; then
3085     ac_cpp_err=$ac_c_preproc_warn_flag
3086     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3087   else
3088     ac_cpp_err=
3089   fi
3090 else
3091   ac_cpp_err=yes
3092 fi
3093 if test -z "$ac_cpp_err"; then
3094   :
3095 else
3096   echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099   # Broken: fails on valid input.
3100 continue
3101 fi
3102 rm -f conftest.err conftest.$ac_ext
3103
3104   # OK, works on sane cases.  Now check whether non-existent headers
3105   # can be detected and how.
3106   cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h.  */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h.  */
3112 #include <ac_nonexistent.h>
3113 _ACEOF
3114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3115   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3116   ac_status=$?
3117   grep -v '^ *+' conftest.er1 >conftest.err
3118   rm -f conftest.er1
3119   cat conftest.err >&5
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); } >/dev/null; then
3122   if test -s conftest.err; then
3123     ac_cpp_err=$ac_c_preproc_warn_flag
3124     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3125   else
3126     ac_cpp_err=
3127   fi
3128 else
3129   ac_cpp_err=yes
3130 fi
3131 if test -z "$ac_cpp_err"; then
3132   # Broken: success on invalid input.
3133 continue
3134 else
3135   echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138   # Passes both tests.
3139 ac_preproc_ok=:
3140 break
3141 fi
3142 rm -f conftest.err conftest.$ac_ext
3143
3144 done
3145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3146 rm -f conftest.err conftest.$ac_ext
3147 if $ac_preproc_ok; then
3148   :
3149 else
3150   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3151 See \`config.log' for more details." >&5
3152 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3153 See \`config.log' for more details." >&2;}
3154    { (exit 1); exit 1; }; }
3155 fi
3156
3157 ac_ext=c
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3162
3163
3164  if test -n "$ac_tool_prefix"; then
3165   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3166 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3167 echo "$as_me:$LINENO: checking for $ac_word" >&5
3168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3169 if test "${ac_cv_prog_RANLIB+set}" = set; then
3170   echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172   if test -n "$RANLIB"; then
3173   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3177 do
3178   IFS=$as_save_IFS
3179   test -z "$as_dir" && as_dir=.
3180   for ac_exec_ext in '' $ac_executable_extensions; do
3181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3184     break 2
3185   fi
3186 done
3187 done
3188
3189 fi
3190 fi
3191 RANLIB=$ac_cv_prog_RANLIB
3192 if test -n "$RANLIB"; then
3193   echo "$as_me:$LINENO: result: $RANLIB" >&5
3194 echo "${ECHO_T}$RANLIB" >&6
3195 else
3196   echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3198 fi
3199
3200 fi
3201 if test -z "$ac_cv_prog_RANLIB"; then
3202   ac_ct_RANLIB=$RANLIB
3203   # Extract the first word of "ranlib", so it can be a program name with args.
3204 set dummy ranlib; ac_word=$2
3205 echo "$as_me:$LINENO: checking for $ac_word" >&5
3206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3208   echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210   if test -n "$ac_ct_RANLIB"; then
3211   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216   IFS=$as_save_IFS
3217   test -z "$as_dir" && as_dir=.
3218   for ac_exec_ext in '' $ac_executable_extensions; do
3219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220     ac_cv_prog_ac_ct_RANLIB="ranlib"
3221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3222     break 2
3223   fi
3224 done
3225 done
3226
3227   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3228 fi
3229 fi
3230 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3231 if test -n "$ac_ct_RANLIB"; then
3232   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3233 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3234 else
3235   echo "$as_me:$LINENO: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3237 fi
3238
3239   RANLIB=$ac_ct_RANLIB
3240 else
3241   RANLIB="$ac_cv_prog_RANLIB"
3242 fi
3243
3244  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3245 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3246 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3247 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3248   echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250   cat >conftest.make <<\_ACEOF
3251 all:
3252         @echo 'ac_maketemp="$(MAKE)"'
3253 _ACEOF
3254 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3255 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3256 if test -n "$ac_maketemp"; then
3257   eval ac_cv_prog_make_${ac_make}_set=yes
3258 else
3259   eval ac_cv_prog_make_${ac_make}_set=no
3260 fi
3261 rm -f conftest.make
3262 fi
3263 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3264   echo "$as_me:$LINENO: result: yes" >&5
3265 echo "${ECHO_T}yes" >&6
3266   SET_MAKE=
3267 else
3268   echo "$as_me:$LINENO: result: no" >&5
3269 echo "${ECHO_T}no" >&6
3270   SET_MAKE="MAKE=${MAKE-make}"
3271 fi
3272
3273  # Find a good install program.  We prefer a C program (faster),
3274 # so one script is as good as another.  But avoid the broken or
3275 # incompatible versions:
3276 # SysV /etc/install, /usr/sbin/install
3277 # SunOS /usr/etc/install
3278 # IRIX /sbin/install
3279 # AIX /bin/install
3280 # AmigaOS /C/install, which installs bootblocks on floppy discs
3281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3284 # OS/2's system install, which has a completely different semantic
3285 # ./install, which can be erroneously created by make from ./install.sh.
3286 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3287 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3288 if test -z "$INSTALL"; then
3289 if test "${ac_cv_path_install+set}" = set; then
3290   echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297   # Account for people who put trailing slashes in PATH elements.
3298 case $as_dir/ in
3299   ./ | .// | /cC/* | \
3300   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3301   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3302   /usr/ucb/* ) ;;
3303   *)
3304     # OSF1 and SCO ODT 3.0 have their own names for install.
3305     # Don't use installbsd from OSF since it installs stuff as root
3306     # by default.
3307     for ac_prog in ginstall scoinst install; do
3308       for ac_exec_ext in '' $ac_executable_extensions; do
3309         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3310           if test $ac_prog = install &&
3311             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3312             # AIX install.  It has an incompatible calling convention.
3313             :
3314           elif test $ac_prog = install &&
3315             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3316             # program-specific install script used by HP pwplus--don't use.
3317             :
3318           else
3319             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3320             break 3
3321           fi
3322         fi
3323       done
3324     done
3325     ;;
3326 esac
3327 done
3328
3329
3330 fi
3331   if test "${ac_cv_path_install+set}" = set; then
3332     INSTALL=$ac_cv_path_install
3333   else
3334     # As a last resort, use the slow shell script.  We don't cache a
3335     # path for INSTALL within a source directory, because that will
3336     # break other packages using the cache if that directory is
3337     # removed, or if the path is relative.
3338     INSTALL=$ac_install_sh
3339   fi
3340 fi
3341 echo "$as_me:$LINENO: result: $INSTALL" >&5
3342 echo "${ECHO_T}$INSTALL" >&6
3343
3344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3345 # It thinks the first close brace ends the variable substitution.
3346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3347
3348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3349
3350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3351
3352  echo "$as_me:$LINENO: checking whether ln -s works" >&5
3353 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3354 LN_S=$as_ln_s
3355 if test "$LN_S" = "ln -s"; then
3356   echo "$as_me:$LINENO: result: yes" >&5
3357 echo "${ECHO_T}yes" >&6
3358 else
3359   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3360 echo "${ECHO_T}no, using $LN_S" >&6
3361 fi
3362
3363  # Check whether --enable-shared or --disable-shared was given.
3364 if test "${enable_shared+set}" = set; then
3365   enableval="$enable_shared"
3366   p=${PACKAGE-default}
3367 case $enableval in
3368 yes) enable_shared=yes ;;
3369 no) enable_shared=no ;;
3370 *)
3371   enable_shared=no
3372   # Look at the argument we got.  We use all the common list separators.
3373   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3374   for pkg in $enableval; do
3375     if test "X$pkg" = "X$p"; then
3376       enable_shared=yes
3377     fi
3378   done
3379   IFS="$ac_save_ifs"
3380   ;;
3381 esac
3382 else
3383   enable_shared=yes
3384 fi;
3385 # Check whether --enable-static or --disable-static was given.
3386 if test "${enable_static+set}" = set; then
3387   enableval="$enable_static"
3388   p=${PACKAGE-default}
3389 case $enableval in
3390 yes) enable_static=yes ;;
3391 no) enable_static=no ;;
3392 *)
3393   enable_static=no
3394   # Look at the argument we got.  We use all the common list separators.
3395   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3396   for pkg in $enableval; do
3397     if test "X$pkg" = "X$p"; then
3398       enable_static=yes
3399     fi
3400   done
3401   IFS="$ac_save_ifs"
3402   ;;
3403 esac
3404 else
3405   enable_static=yes
3406 fi;
3407 # Check whether --enable-fast-install or --disable-fast-install was given.
3408 if test "${enable_fast_install+set}" = set; then
3409   enableval="$enable_fast_install"
3410   p=${PACKAGE-default}
3411 case $enableval in
3412 yes) enable_fast_install=yes ;;
3413 no) enable_fast_install=no ;;
3414 *)
3415   enable_fast_install=no
3416   # Look at the argument we got.  We use all the common list separators.
3417   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3418   for pkg in $enableval; do
3419     if test "X$pkg" = "X$p"; then
3420       enable_fast_install=yes
3421     fi
3422   done
3423   IFS="$ac_save_ifs"
3424   ;;
3425 esac
3426 else
3427   enable_fast_install=yes
3428 fi;
3429 # Find the correct PATH separator.  Usually this is `:', but
3430 # DJGPP uses `;' like DOS.
3431 if test "X${PATH_SEPARATOR+set}" != Xset; then
3432   UNAME=${UNAME-`uname 2>/dev/null`}
3433   case X$UNAME in
3434     *-DOS) lt_cv_sys_path_separator=';' ;;
3435     *)     lt_cv_sys_path_separator=':' ;;
3436   esac
3437   PATH_SEPARATOR=$lt_cv_sys_path_separator
3438 fi
3439
3440
3441 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3442 if test "${with_gnu_ld+set}" = set; then
3443   withval="$with_gnu_ld"
3444   test "$withval" = no || with_gnu_ld=yes
3445 else
3446   with_gnu_ld=no
3447 fi;
3448 ac_prog=ld
3449 if test "$GCC" = yes; then
3450   # Check if gcc -print-prog-name=ld gives a path.
3451   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3452 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3453   case $host in
3454   *-*-mingw*)
3455     # gcc leaves a trailing carriage return which upsets mingw
3456     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3457   *)
3458     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3459   esac
3460   case $ac_prog in
3461     # Accept absolute paths.
3462     [\\/]* | [A-Za-z]:[\\/]*)
3463       re_direlt='/[^/][^/]*/\.\./'
3464       # Canonicalize the path of ld
3465       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3466       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3467         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3468       done
3469       test -z "$LD" && LD="$ac_prog"
3470       ;;
3471   "")
3472     # If it fails, then pretend we aren't using GCC.
3473     ac_prog=ld
3474     ;;
3475   *)
3476     # If it is relative, then search for the first ld in PATH.
3477     with_gnu_ld=unknown
3478     ;;
3479   esac
3480 elif test "$with_gnu_ld" = yes; then
3481   echo "$as_me:$LINENO: checking for GNU ld" >&5
3482 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3483 else
3484   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3485 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3486 fi
3487 if test "${lt_cv_path_LD+set}" = set; then
3488   echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490   if test -z "$LD"; then
3491   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3492   for ac_dir in $PATH; do
3493     test -z "$ac_dir" && ac_dir=.
3494     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3495       lt_cv_path_LD="$ac_dir/$ac_prog"
3496       # Check to see if the program is GNU ld.  I'd rather use --version,
3497       # but apparently some GNU ld's only accept -v.
3498       # Break only if it was the GNU/non-GNU ld that we prefer.
3499       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3500         test "$with_gnu_ld" != no && break
3501       else
3502         test "$with_gnu_ld" != yes && break
3503       fi
3504     fi
3505   done
3506   IFS="$ac_save_ifs"
3507 else
3508   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3509 fi
3510 fi
3511
3512 LD="$lt_cv_path_LD"
3513 if test -n "$LD"; then
3514   echo "$as_me:$LINENO: result: $LD" >&5
3515 echo "${ECHO_T}$LD" >&6
3516 else
3517   echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3519 fi
3520 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3521 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3522    { (exit 1); exit 1; }; }
3523 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3524 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3525 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3526   echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3529 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3530   lt_cv_prog_gnu_ld=yes
3531 else
3532   lt_cv_prog_gnu_ld=no
3533 fi
3534 fi
3535 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3536 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3537 with_gnu_ld=$lt_cv_prog_gnu_ld
3538
3539
3540 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3541 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3542 if test "${lt_cv_ld_reload_flag+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   lt_cv_ld_reload_flag='-r'
3546 fi
3547 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3548 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3549 reload_flag=$lt_cv_ld_reload_flag
3550 test -n "$reload_flag" && reload_flag=" $reload_flag"
3551
3552 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3553 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3554 if test "${lt_cv_path_NM+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   if test -n "$NM"; then
3558   # Let the user override the test.
3559   lt_cv_path_NM="$NM"
3560 else
3561   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3562   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3563     test -z "$ac_dir" && ac_dir=.
3564     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3565     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3566       # Check to see if the nm accepts a BSD-compat flag.
3567       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3568       #   nm: unknown option "B" ignored
3569       # Tru64's nm complains that /dev/null is an invalid object file
3570       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3571         lt_cv_path_NM="$tmp_nm -B"
3572         break
3573       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3574         lt_cv_path_NM="$tmp_nm -p"
3575         break
3576       else
3577         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3578         continue # so that we can try to find one that supports BSD flags
3579       fi
3580     fi
3581   done
3582   IFS="$ac_save_ifs"
3583   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3584 fi
3585 fi
3586
3587 NM="$lt_cv_path_NM"
3588 echo "$as_me:$LINENO: result: $NM" >&5
3589 echo "${ECHO_T}$NM" >&6
3590
3591 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3592 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3593 if test "${lt_cv_path_SED+set}" = set; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596   # Loop through the user's path and test for sed and gsed.
3597 # Then use that list of sed's as ones to test for truncation.
3598 as_executable_p="test -f"
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3601 do
3602   IFS=$as_save_IFS
3603   test -z "$as_dir" && as_dir=.
3604   for ac_prog in sed gsed; do
3605     for ac_exec_ext in '' $ac_executable_extensions; do
3606       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3607         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3608       fi
3609     done
3610   done
3611 done
3612
3613   # Create a temporary directory, and hook for its removal unless debugging.
3614 $debug ||
3615 {
3616   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3617   trap '{ (exit 1); exit 1; }' 1 2 13 15
3618 }
3619
3620 # Create a (secure) tmp directory for tmp files.
3621 : ${TMPDIR=/tmp}
3622 {
3623   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3624   test -n "$tmp" && test -d "$tmp"
3625 }  ||
3626 {
3627   tmp=$TMPDIR/sed$$-$RANDOM
3628   (umask 077 && mkdir $tmp)
3629 } ||
3630 {
3631    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3632    { (exit 1); exit 1; }
3633 }
3634   _max=0
3635   _count=0
3636   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3637   # along with /bin/sed that truncates output.
3638   for _sed in $_sed_list /usr/xpg4/bin/sed; do
3639     test ! -f ${_sed} && break
3640     cat /dev/null > "$tmp/sed.in"
3641     _count=0
3642     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3643     # Check for GNU sed and select it if it is found.
3644     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3645       lt_cv_path_SED=${_sed}
3646       break
3647     fi
3648     while true; do
3649       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3650       mv "$tmp/sed.tmp" "$tmp/sed.in"
3651       cp "$tmp/sed.in" "$tmp/sed.nl"
3652       echo >>"$tmp/sed.nl"
3653       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3654       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3655       # 40000 chars as input seems more than enough
3656       test $_count -gt 10 && break
3657       _count=`expr $_count + 1`
3658       if test $_count -gt $_max; then
3659         _max=$_count
3660         lt_cv_path_SED=$_sed
3661       fi
3662     done
3663   done
3664   rm -rf "$tmp"
3665
3666 fi
3667
3668 if test "X$SED" != "X"; then
3669   lt_cv_path_SED=$SED
3670 else
3671   SED=$lt_cv_path_SED
3672 fi
3673 echo "$as_me:$LINENO: result: $SED" >&5
3674 echo "${ECHO_T}$SED" >&6
3675
3676 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3677 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3678 if test "${lt_cv_deplibs_check_method+set}" = set; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   lt_cv_file_magic_cmd='$MAGIC_CMD'
3682 lt_cv_file_magic_test_file=
3683 lt_cv_deplibs_check_method='unknown'
3684 # Need to set the preceding variable on all platforms that support
3685 # interlibrary dependencies.
3686 # 'none' -- dependencies not supported.
3687 # `unknown' -- same as none, but documents that we really don't know.
3688 # 'pass_all' -- all dependencies passed with no checks.
3689 # 'test_compile' -- check by making test program.
3690 # 'file_magic [[regex]]' -- check by looking for files in library path
3691 # which responds to the $file_magic_cmd with a given egrep regex.
3692 # If you have `file' or equivalent on your system and you're not sure
3693 # whether `pass_all' will *always* work, you probably want this one.
3694
3695 case $host_os in
3696 aix4* | aix5*)
3697   lt_cv_deplibs_check_method=pass_all
3698   ;;
3699
3700 beos*)
3701   lt_cv_deplibs_check_method=pass_all
3702   ;;
3703
3704 bsdi4*)
3705   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3706   lt_cv_file_magic_cmd='/usr/bin/file -L'
3707   lt_cv_file_magic_test_file=/shlib/libc.so
3708   ;;
3709
3710 cygwin* | mingw* | pw32*)
3711   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3712   lt_cv_file_magic_cmd='$OBJDUMP -f'
3713   ;;
3714
3715 darwin* | rhapsody*)
3716   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3717   lt_cv_file_magic_cmd='/usr/bin/file -L'
3718   case "$host_os" in
3719   rhapsody* | darwin1.[012])
3720     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3721     ;;
3722   *) # Darwin 1.3 on
3723     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3724     ;;
3725   esac
3726   ;;
3727
3728 freebsd*)
3729   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3730     case $host_cpu in
3731     i*86 )
3732       # Not sure whether the presence of OpenBSD here was a mistake.
3733       # Let's accept both of them until this is cleared up.
3734       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3735       lt_cv_file_magic_cmd=/usr/bin/file
3736       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3737       ;;
3738     esac
3739   else
3740     lt_cv_deplibs_check_method=pass_all
3741   fi
3742   ;;
3743
3744 gnu*)
3745   lt_cv_deplibs_check_method=pass_all
3746   ;;
3747
3748 hpux10.20*|hpux11*)
3749   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3750   lt_cv_file_magic_cmd=/usr/bin/file
3751   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3752   ;;
3753
3754 irix5* | irix6* | nonstopux*)
3755   case $host_os in
3756   irix5* | nonstopux*)
3757     # this will be overridden with pass_all, but let us keep it just in case
3758     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3759     ;;
3760   *)
3761     case $LD in
3762     *-32|*"-32 ") libmagic=32-bit;;
3763     *-n32|*"-n32 ") libmagic=N32;;
3764     *-64|*"-64 ") libmagic=64-bit;;
3765     *) libmagic=never-match;;
3766     esac
3767     # this will be overridden with pass_all, but let us keep it just in case
3768     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3769     ;;
3770   esac
3771   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3772   lt_cv_deplibs_check_method=pass_all
3773   ;;
3774
3775 # This must be Linux ELF.
3776 linux-gnu*)
3777   case $host_cpu in
3778   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3779     lt_cv_deplibs_check_method=pass_all ;;
3780   *)
3781     # glibc up to 2.1.1 does not perform some relocations on ARM
3782     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3783   esac
3784   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3785   ;;
3786
3787 netbsd*)
3788   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3789     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3790   else
3791     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3792   fi
3793   ;;
3794
3795 newos6*)
3796   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3797   lt_cv_file_magic_cmd=/usr/bin/file
3798   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3799   ;;
3800
3801 openbsd*)
3802   lt_cv_file_magic_cmd=/usr/bin/file
3803   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3804   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3805     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3806   else
3807     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3808   fi
3809   ;;
3810
3811 osf3* | osf4* | osf5*)
3812   # this will be overridden with pass_all, but let us keep it just in case
3813   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3814   lt_cv_file_magic_test_file=/shlib/libc.so
3815   lt_cv_deplibs_check_method=pass_all
3816   ;;
3817
3818 sco3.2v5*)
3819   lt_cv_deplibs_check_method=pass_all
3820   ;;
3821
3822 solaris*)
3823   lt_cv_deplibs_check_method=pass_all
3824   lt_cv_file_magic_test_file=/lib/libc.so
3825   ;;
3826
3827 sysv5uw[78]* | sysv4*uw2*)
3828   lt_cv_deplibs_check_method=pass_all
3829   ;;
3830
3831 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3832   case $host_vendor in
3833   motorola)
3834     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]'
3835     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3836     ;;
3837   ncr)
3838     lt_cv_deplibs_check_method=pass_all
3839     ;;
3840   sequent)
3841     lt_cv_file_magic_cmd='/bin/file'
3842     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3843     ;;
3844   sni)
3845     lt_cv_file_magic_cmd='/bin/file'
3846     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3847     lt_cv_file_magic_test_file=/lib/libc.so
3848     ;;
3849   siemens)
3850     lt_cv_deplibs_check_method=pass_all
3851     ;;
3852   esac
3853   ;;
3854 esac
3855
3856 fi
3857 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3858 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3859 file_magic_cmd=$lt_cv_file_magic_cmd
3860 deplibs_check_method=$lt_cv_deplibs_check_method
3861
3862
3863
3864
3865
3866
3867
3868
3869 # Check for command to grab the raw symbol name followed by C symbol from nm.
3870 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3871 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3872 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3873   echo $ECHO_N "(cached) $ECHO_C" >&6
3874 else
3875
3876 # These are sane defaults that work on at least a few old systems.
3877 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3878
3879 # Character class describing NM global symbol codes.
3880 symcode='[BCDEGRST]'
3881
3882 # Regexp to match symbols that can be accessed directly from C.
3883 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3884
3885 # Transform the above into a raw symbol and a C symbol.
3886 symxfrm='\1 \2\3 \3'
3887
3888 # Transform an extracted symbol line into a proper C declaration
3889 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3890
3891 # Transform an extracted symbol line into symbol name and symbol address
3892 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'"
3893
3894 # Define system-specific variables.
3895 case $host_os in
3896 aix*)
3897   symcode='[BCDT]'
3898   ;;
3899 cygwin* | mingw* | pw32*)
3900   symcode='[ABCDGISTW]'
3901   ;;
3902 hpux*) # Its linker distinguishes data from code symbols
3903   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3904   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'"
3905   ;;
3906 irix* | nonstopux*)
3907   symcode='[BCDEGRST]'
3908   ;;
3909 osf*)
3910   symcode='[BCDEGQRST]'
3911   ;;
3912 solaris* | sysv5*)
3913   symcode='[BDT]'
3914   ;;
3915 sysv4)
3916   symcode='[DFNSTU]'
3917   ;;
3918 esac
3919
3920 # Handle CRLF in mingw tool chain
3921 opt_cr=
3922 case $host_os in
3923 mingw*)
3924   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3925   ;;
3926 esac
3927
3928 # If we're using GNU nm, then use its standard symbol codes.
3929 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3930   symcode='[ABCDGISTW]'
3931 fi
3932
3933 # Try without a prefix undercore, then with it.
3934 for ac_symprfx in "" "_"; do
3935
3936   # Write the raw and C identifiers.
3937 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3938
3939   # Check to see that the pipe works correctly.
3940   pipe_works=no
3941   rm -f conftest*
3942   cat > conftest.$ac_ext <<EOF
3943 #ifdef __cplusplus
3944 extern "C" {
3945 #endif
3946 char nm_test_var;
3947 void nm_test_func(){}
3948 #ifdef __cplusplus
3949 }
3950 #endif
3951 int main(){nm_test_var='a';nm_test_func();return(0);}
3952 EOF
3953
3954   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955   (eval $ac_compile) 2>&5
3956   ac_status=$?
3957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958   (exit $ac_status); }; then
3959     # Now try to grab the symbols.
3960     nlist=conftest.nm
3961     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3962   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3963   ac_status=$?
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); } && test -s "$nlist"; then
3966       # Try sorting and uniquifying the output.
3967       if sort "$nlist" | uniq > "$nlist"T; then
3968         mv -f "$nlist"T "$nlist"
3969       else
3970         rm -f "$nlist"T
3971       fi
3972
3973       # Make sure that we snagged all the symbols we need.
3974       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3975         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3976           cat <<EOF > conftest.$ac_ext
3977 #ifdef __cplusplus
3978 extern "C" {
3979 #endif
3980
3981 EOF
3982           # Now generate the symbol file.
3983           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3984
3985           cat <<EOF >> conftest.$ac_ext
3986 #if defined (__STDC__) && __STDC__
3987 # define lt_ptr void *
3988 #else
3989 # define lt_ptr char *
3990 # define const
3991 #endif
3992
3993 /* The mapping between symbol names and symbols. */
3994 const struct {
3995   const char *name;
3996   lt_ptr address;
3997 }
3998 lt_preloaded_symbols[] =
3999 {
4000 EOF
4001           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4002           cat <<\EOF >> conftest.$ac_ext
4003   {0, (lt_ptr) 0}
4004 };
4005
4006 #ifdef __cplusplus
4007 }
4008 #endif
4009 EOF
4010           # Now try linking the two files.
4011           mv conftest.$ac_objext conftstm.$ac_objext
4012           save_LIBS="$LIBS"
4013           save_CFLAGS="$CFLAGS"
4014           LIBS="conftstm.$ac_objext"
4015           CFLAGS="$CFLAGS$no_builtin_flag"
4016           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4017   (eval $ac_link) 2>&5
4018   ac_status=$?
4019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020   (exit $ac_status); } && test -s conftest$ac_exeext; then
4021             pipe_works=yes
4022           fi
4023           LIBS="$save_LIBS"
4024           CFLAGS="$save_CFLAGS"
4025         else
4026           echo "cannot find nm_test_func in $nlist" >&5
4027         fi
4028       else
4029         echo "cannot find nm_test_var in $nlist" >&5
4030       fi
4031     else
4032       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4033     fi
4034   else
4035     echo "$progname: failed program was:" >&5
4036     cat conftest.$ac_ext >&5
4037   fi
4038   rm -f conftest* conftst*
4039
4040   # Do not use the global_symbol_pipe unless it works.
4041   if test "$pipe_works" = yes; then
4042     break
4043   else
4044     lt_cv_sys_global_symbol_pipe=
4045   fi
4046 done
4047
4048 fi
4049
4050 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4051 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4052   global_symbol_to_cdecl=
4053   global_symbol_to_c_name_address=
4054 else
4055   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4056   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4057 fi
4058 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4059 then
4060   echo "$as_me:$LINENO: result: failed" >&5
4061 echo "${ECHO_T}failed" >&6
4062 else
4063   echo "$as_me:$LINENO: result: ok" >&5
4064 echo "${ECHO_T}ok" >&6
4065 fi
4066
4067
4068 echo "$as_me:$LINENO: checking for egrep" >&5
4069 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4070 if test "${ac_cv_prog_egrep+set}" = set; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4074     then ac_cv_prog_egrep='grep -E'
4075     else ac_cv_prog_egrep='egrep'
4076     fi
4077 fi
4078 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4079 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4080  EGREP=$ac_cv_prog_egrep
4081
4082
4083 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4084 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4085 if test "${ac_cv_header_stdc+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   cat >conftest.$ac_ext <<_ACEOF
4089 /* confdefs.h.  */
4090 _ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h.  */
4094 #include <stdlib.h>
4095 #include <stdarg.h>
4096 #include <string.h>
4097 #include <float.h>
4098
4099 int
4100 main ()
4101 {
4102
4103   ;
4104   return 0;
4105 }
4106 _ACEOF
4107 rm -f conftest.$ac_objext
4108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109   (eval $ac_compile) 2>conftest.er1
4110   ac_status=$?
4111   grep -v '^ *+' conftest.er1 >conftest.err
4112   rm -f conftest.er1
4113   cat conftest.err >&5
4114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115   (exit $ac_status); } &&
4116          { ac_try='test -z "$ac_c_werror_flag"
4117                          || test ! -s conftest.err'
4118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119   (eval $ac_try) 2>&5
4120   ac_status=$?
4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); }; } &&
4123          { ac_try='test -s conftest.$ac_objext'
4124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125   (eval $ac_try) 2>&5
4126   ac_status=$?
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); }; }; then
4129   ac_cv_header_stdc=yes
4130 else
4131   echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4133
4134 ac_cv_header_stdc=no
4135 fi
4136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4137
4138 if test $ac_cv_header_stdc = yes; then
4139   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4140   cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146 #include <string.h>
4147
4148 _ACEOF
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150   $EGREP "memchr" >/dev/null 2>&1; then
4151   :
4152 else
4153   ac_cv_header_stdc=no
4154 fi
4155 rm -f conftest*
4156
4157 fi
4158
4159 if test $ac_cv_header_stdc = yes; then
4160   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4161   cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h.  */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 #include <stdlib.h>
4168
4169 _ACEOF
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171   $EGREP "free" >/dev/null 2>&1; then
4172   :
4173 else
4174   ac_cv_header_stdc=no
4175 fi
4176 rm -f conftest*
4177
4178 fi
4179
4180 if test $ac_cv_header_stdc = yes; then
4181   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4182   if test "$cross_compiling" = yes; then
4183   :
4184 else
4185   cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h.  */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h.  */
4191 #include <ctype.h>
4192 #if ((' ' & 0x0FF) == 0x020)
4193 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4194 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4195 #else
4196 # define ISLOWER(c) \
4197                    (('a' <= (c) && (c) <= 'i') \
4198                      || ('j' <= (c) && (c) <= 'r') \
4199                      || ('s' <= (c) && (c) <= 'z'))
4200 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4201 #endif
4202
4203 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4204 int
4205 main ()
4206 {
4207   int i;
4208   for (i = 0; i < 256; i++)
4209     if (XOR (islower (i), ISLOWER (i))
4210         || toupper (i) != TOUPPER (i))
4211       exit(2);
4212   exit (0);
4213 }
4214 _ACEOF
4215 rm -f conftest$ac_exeext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4217   (eval $ac_link) 2>&5
4218   ac_status=$?
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222   (eval $ac_try) 2>&5
4223   ac_status=$?
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); }; }; then
4226   :
4227 else
4228   echo "$as_me: program exited with status $ac_status" >&5
4229 echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4231
4232 ( exit $ac_status )
4233 ac_cv_header_stdc=no
4234 fi
4235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4236 fi
4237 fi
4238 fi
4239 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4240 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4241 if test $ac_cv_header_stdc = yes; then
4242
4243 cat >>confdefs.h <<\_ACEOF
4244 #define STDC_HEADERS 1
4245 _ACEOF
4246
4247 fi
4248
4249 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4260                   inttypes.h stdint.h unistd.h
4261 do
4262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4263 echo "$as_me:$LINENO: checking for $ac_header" >&5
4264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4266   echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268   cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h.  */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h.  */
4274 $ac_includes_default
4275
4276 #include <$ac_header>
4277 _ACEOF
4278 rm -f conftest.$ac_objext
4279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4280   (eval $ac_compile) 2>conftest.er1
4281   ac_status=$?
4282   grep -v '^ *+' conftest.er1 >conftest.err
4283   rm -f conftest.er1
4284   cat conftest.err >&5
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); } &&
4287          { ac_try='test -z "$ac_c_werror_flag"
4288                          || test ! -s conftest.err'
4289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290   (eval $ac_try) 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); }; } &&
4294          { ac_try='test -s conftest.$ac_objext'
4295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296   (eval $ac_try) 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); }; }; then
4300   eval "$as_ac_Header=yes"
4301 else
4302   echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305 eval "$as_ac_Header=no"
4306 fi
4307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4308 fi
4309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4312   cat >>confdefs.h <<_ACEOF
4313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4314 _ACEOF
4315
4316 fi
4317
4318 done
4319
4320
4321
4322 for ac_header in dlfcn.h
4323 do
4324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4326   echo "$as_me:$LINENO: checking for $ac_header" >&5
4327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4329   echo $ECHO_N "(cached) $ECHO_C" >&6
4330 fi
4331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4333 else
4334   # Is the header compilable?
4335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4337 cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h.  */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h.  */
4343 $ac_includes_default
4344 #include <$ac_header>
4345 _ACEOF
4346 rm -f conftest.$ac_objext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4348   (eval $ac_compile) 2>conftest.er1
4349   ac_status=$?
4350   grep -v '^ *+' conftest.er1 >conftest.err
4351   rm -f conftest.er1
4352   cat conftest.err >&5
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); } &&
4355          { ac_try='test -z "$ac_c_werror_flag"
4356                          || test ! -s conftest.err'
4357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358   (eval $ac_try) 2>&5
4359   ac_status=$?
4360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361   (exit $ac_status); }; } &&
4362          { ac_try='test -s conftest.$ac_objext'
4363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364   (eval $ac_try) 2>&5
4365   ac_status=$?
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); }; }; then
4368   ac_header_compiler=yes
4369 else
4370   echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373 ac_header_compiler=no
4374 fi
4375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4377 echo "${ECHO_T}$ac_header_compiler" >&6
4378
4379 # Is the header present?
4380 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h.  */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h.  */
4388 #include <$ac_header>
4389 _ACEOF
4390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4391   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4392   ac_status=$?
4393   grep -v '^ *+' conftest.er1 >conftest.err
4394   rm -f conftest.er1
4395   cat conftest.err >&5
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); } >/dev/null; then
4398   if test -s conftest.err; then
4399     ac_cpp_err=$ac_c_preproc_warn_flag
4400     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4401   else
4402     ac_cpp_err=
4403   fi
4404 else
4405   ac_cpp_err=yes
4406 fi
4407 if test -z "$ac_cpp_err"; then
4408   ac_header_preproc=yes
4409 else
4410   echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413   ac_header_preproc=no
4414 fi
4415 rm -f conftest.err conftest.$ac_ext
4416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4417 echo "${ECHO_T}$ac_header_preproc" >&6
4418
4419 # So?  What about this header?
4420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4421   yes:no: )
4422     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4426     ac_header_preproc=yes
4427     ;;
4428   no:yes:* )
4429     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4431     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4432 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4433     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4435     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4436 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4439     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4441     (
4442       cat <<\_ASBOX
4443 ## ------------------------------------------ ##
4444 ## Report this to the AC_PACKAGE_NAME lists.  ##
4445 ## ------------------------------------------ ##
4446 _ASBOX
4447     ) |
4448       sed "s/^/$as_me: WARNING:     /" >&2
4449     ;;
4450 esac
4451 echo "$as_me:$LINENO: checking for $ac_header" >&5
4452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4454   echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456   eval "$as_ac_Header=\$ac_header_preproc"
4457 fi
4458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4460
4461 fi
4462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4463   cat >>confdefs.h <<_ACEOF
4464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4465 _ACEOF
4466
4467 fi
4468
4469 done
4470
4471
4472
4473
4474
4475
4476 # Only perform the check for file, if the check method requires it
4477 case $deplibs_check_method in
4478 file_magic*)
4479   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4480     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4481 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4482 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4483   echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485   case $MAGIC_CMD in
4486   /*)
4487   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4488   ;;
4489   ?:/*)
4490   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4491   ;;
4492   *)
4493   ac_save_MAGIC_CMD="$MAGIC_CMD"
4494   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4495   ac_dummy="/usr/bin:$PATH"
4496   for ac_dir in $ac_dummy; do
4497     test -z "$ac_dir" && ac_dir=.
4498     if test -f $ac_dir/${ac_tool_prefix}file; then
4499       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4500       if test -n "$file_magic_test_file"; then
4501         case $deplibs_check_method in
4502         "file_magic "*)
4503           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4504           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4505           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4506             egrep "$file_magic_regex" > /dev/null; then
4507             :
4508           else
4509             cat <<EOF 1>&2
4510
4511 *** Warning: the command libtool uses to detect shared libraries,
4512 *** $file_magic_cmd, produces output that libtool cannot recognize.
4513 *** The result is that libtool may fail to recognize shared libraries
4514 *** as such.  This will affect the creation of libtool libraries that
4515 *** depend on shared libraries, but programs linked with such libtool
4516 *** libraries will work regardless of this problem.  Nevertheless, you
4517 *** may want to report the problem to your system manager and/or to
4518 *** bug-libtool@gnu.org
4519
4520 EOF
4521           fi ;;
4522         esac
4523       fi
4524       break
4525     fi
4526   done
4527   IFS="$ac_save_ifs"
4528   MAGIC_CMD="$ac_save_MAGIC_CMD"
4529   ;;
4530 esac
4531 fi
4532
4533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4534 if test -n "$MAGIC_CMD"; then
4535   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4536 echo "${ECHO_T}$MAGIC_CMD" >&6
4537 else
4538   echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6
4540 fi
4541
4542 if test -z "$lt_cv_path_MAGIC_CMD"; then
4543   if test -n "$ac_tool_prefix"; then
4544     echo "$as_me:$LINENO: checking for file" >&5
4545 echo $ECHO_N "checking for file... $ECHO_C" >&6
4546 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4547   echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549   case $MAGIC_CMD in
4550   /*)
4551   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4552   ;;
4553   ?:/*)
4554   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4555   ;;
4556   *)
4557   ac_save_MAGIC_CMD="$MAGIC_CMD"
4558   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4559   ac_dummy="/usr/bin:$PATH"
4560   for ac_dir in $ac_dummy; do
4561     test -z "$ac_dir" && ac_dir=.
4562     if test -f $ac_dir/file; then
4563       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4564       if test -n "$file_magic_test_file"; then
4565         case $deplibs_check_method in
4566         "file_magic "*)
4567           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4568           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4569           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4570             egrep "$file_magic_regex" > /dev/null; then
4571             :
4572           else
4573             cat <<EOF 1>&2
4574
4575 *** Warning: the command libtool uses to detect shared libraries,
4576 *** $file_magic_cmd, produces output that libtool cannot recognize.
4577 *** The result is that libtool may fail to recognize shared libraries
4578 *** as such.  This will affect the creation of libtool libraries that
4579 *** depend on shared libraries, but programs linked with such libtool
4580 *** libraries will work regardless of this problem.  Nevertheless, you
4581 *** may want to report the problem to your system manager and/or to
4582 *** bug-libtool@gnu.org
4583
4584 EOF
4585           fi ;;
4586         esac
4587       fi
4588       break
4589     fi
4590   done
4591   IFS="$ac_save_ifs"
4592   MAGIC_CMD="$ac_save_MAGIC_CMD"
4593   ;;
4594 esac
4595 fi
4596
4597 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4598 if test -n "$MAGIC_CMD"; then
4599   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4600 echo "${ECHO_T}$MAGIC_CMD" >&6
4601 else
4602   echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6
4604 fi
4605
4606   else
4607     MAGIC_CMD=:
4608   fi
4609 fi
4610
4611   fi
4612   ;;
4613 esac
4614
4615 if test -n "$ac_tool_prefix"; then
4616   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4618 echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4620 if test "${ac_cv_prog_RANLIB+set}" = set; then
4621   echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623   if test -n "$RANLIB"; then
4624   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631   for ac_exec_ext in '' $ac_executable_extensions; do
4632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638 done
4639
4640 fi
4641 fi
4642 RANLIB=$ac_cv_prog_RANLIB
4643 if test -n "$RANLIB"; then
4644   echo "$as_me:$LINENO: result: $RANLIB" >&5
4645 echo "${ECHO_T}$RANLIB" >&6
4646 else
4647   echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6
4649 fi
4650
4651 fi
4652 if test -z "$ac_cv_prog_RANLIB"; then
4653   ac_ct_RANLIB=$RANLIB
4654   # Extract the first word of "ranlib", so it can be a program name with args.
4655 set dummy ranlib; ac_word=$2
4656 echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4658 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   if test -n "$ac_ct_RANLIB"; then
4662   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4663 else
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4666 do
4667   IFS=$as_save_IFS
4668   test -z "$as_dir" && as_dir=.
4669   for ac_exec_ext in '' $ac_executable_extensions; do
4670   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4671     ac_cv_prog_ac_ct_RANLIB="ranlib"
4672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673     break 2
4674   fi
4675 done
4676 done
4677
4678   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4679 fi
4680 fi
4681 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4682 if test -n "$ac_ct_RANLIB"; then
4683   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4684 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4685 else
4686   echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6
4688 fi
4689
4690   RANLIB=$ac_ct_RANLIB
4691 else
4692   RANLIB="$ac_cv_prog_RANLIB"
4693 fi
4694
4695 if test -n "$ac_tool_prefix"; then
4696   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4697 set dummy ${ac_tool_prefix}strip; ac_word=$2
4698 echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4700 if test "${ac_cv_prog_STRIP+set}" = set; then
4701   echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703   if test -n "$STRIP"; then
4704   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711   for ac_exec_ext in '' $ac_executable_extensions; do
4712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715     break 2
4716   fi
4717 done
4718 done
4719
4720 fi
4721 fi
4722 STRIP=$ac_cv_prog_STRIP
4723 if test -n "$STRIP"; then
4724   echo "$as_me:$LINENO: result: $STRIP" >&5
4725 echo "${ECHO_T}$STRIP" >&6
4726 else
4727   echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6
4729 fi
4730
4731 fi
4732 if test -z "$ac_cv_prog_STRIP"; then
4733   ac_ct_STRIP=$STRIP
4734   # Extract the first word of "strip", so it can be a program name with args.
4735 set dummy strip; ac_word=$2
4736 echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   if test -n "$ac_ct_STRIP"; then
4742   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749   for ac_exec_ext in '' $ac_executable_extensions; do
4750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751     ac_cv_prog_ac_ct_STRIP="strip"
4752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753     break 2
4754   fi
4755 done
4756 done
4757
4758   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4759 fi
4760 fi
4761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4762 if test -n "$ac_ct_STRIP"; then
4763   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4764 echo "${ECHO_T}$ac_ct_STRIP" >&6
4765 else
4766   echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6
4768 fi
4769
4770   STRIP=$ac_ct_STRIP
4771 else
4772   STRIP="$ac_cv_prog_STRIP"
4773 fi
4774
4775
4776 enable_dlopen=no
4777 enable_win32_dll=no
4778
4779 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4780 if test "${enable_libtool_lock+set}" = set; then
4781   enableval="$enable_libtool_lock"
4782
4783 fi;
4784 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4785
4786 # Some flags need to be propagated to the compiler or linker for good
4787 # libtool support.
4788 case $host in
4789 *-*-irix6*)
4790   # Find out which ABI we are using.
4791   echo '#line 4791 "configure"' > conftest.$ac_ext
4792   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793   (eval $ac_compile) 2>&5
4794   ac_status=$?
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); }; then
4797     case `/usr/bin/file conftest.$ac_objext` in
4798     *32-bit*)
4799       LD="${LD-ld} -32"
4800       ;;
4801     *N32*)
4802       LD="${LD-ld} -n32"
4803       ;;
4804     *64-bit*)
4805       LD="${LD-ld} -64"
4806       ;;
4807     esac
4808   fi
4809   rm -rf conftest*
4810   ;;
4811
4812 *-*-linux*)
4813   # Test if the compiler is 64bit
4814   echo 'int i;' > conftest.$ac_ext
4815   lt_cv_cc_64bit_output=no
4816   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817   (eval $ac_compile) 2>&5
4818   ac_status=$?
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); }; then
4821     case `/usr/bin/file conftest.$ac_objext` in
4822     *"ELF 64"*)
4823       lt_cv_cc_64bit_output=yes
4824       ;;
4825     esac
4826   fi
4827   rm -rf conftest*
4828   ;;
4829
4830 *-*-sco3.2v5*)
4831   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4832   SAVE_CFLAGS="$CFLAGS"
4833   CFLAGS="$CFLAGS -belf"
4834   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4835 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4836 if test "${lt_cv_cc_needs_belf+set}" = set; then
4837   echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839
4840
4841      ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846
4847      cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h.  */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h.  */
4853
4854 int
4855 main ()
4856 {
4857
4858   ;
4859   return 0;
4860 }
4861 _ACEOF
4862 rm -f conftest.$ac_objext conftest$ac_exeext
4863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4864   (eval $ac_link) 2>conftest.er1
4865   ac_status=$?
4866   grep -v '^ *+' conftest.er1 >conftest.err
4867   rm -f conftest.er1
4868   cat conftest.err >&5
4869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870   (exit $ac_status); } &&
4871          { ac_try='test -z "$ac_c_werror_flag"
4872                          || test ! -s conftest.err'
4873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874   (eval $ac_try) 2>&5
4875   ac_status=$?
4876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); }; } &&
4878          { ac_try='test -s conftest$ac_exeext'
4879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880   (eval $ac_try) 2>&5
4881   ac_status=$?
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); }; }; then
4884   lt_cv_cc_needs_belf=yes
4885 else
4886   echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4888
4889 lt_cv_cc_needs_belf=no
4890 fi
4891 rm -f conftest.err conftest.$ac_objext \
4892       conftest$ac_exeext conftest.$ac_ext
4893      ac_ext=c
4894 ac_cpp='$CPP $CPPFLAGS'
4895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4898
4899 fi
4900 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4901 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4902   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4903     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4904     CFLAGS="$SAVE_CFLAGS"
4905   fi
4906   ;;
4907
4908
4909 esac
4910
4911 # Sed substitution that helps us do robust quoting.  It backslashifies
4912 # metacharacters that are still active within double-quoted strings.
4913 Xsed='sed -e s/^X//'
4914 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4915
4916 # Same as above, but do not quote variable references.
4917 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4918
4919 # Sed substitution to delay expansion of an escaped shell variable in a
4920 # double_quote_subst'ed string.
4921 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4922
4923 # Constants:
4924 rm="rm -f"
4925
4926 # Global variables:
4927 default_ofile=libtool
4928 can_build_shared=yes
4929
4930 # All known linkers require a `.a' archive for static linking (except M$VC,
4931 # which needs '.lib').
4932 libext=a
4933 ltmain="$ac_aux_dir/ltmain.sh"
4934 ofile="$default_ofile"
4935 with_gnu_ld="$lt_cv_prog_gnu_ld"
4936 need_locks="$enable_libtool_lock"
4937
4938 old_CC="$CC"
4939 old_CFLAGS="$CFLAGS"
4940
4941 # Set sane defaults for various variables
4942 test -z "$AR" && AR=ar
4943 test -z "$AR_FLAGS" && AR_FLAGS=cru
4944 test -z "$AS" && AS=as
4945 test -z "$CC" && CC=cc
4946 test -z "$DLLTOOL" && DLLTOOL=dlltool
4947 test -z "$LD" && LD=ld
4948 test -z "$LN_S" && LN_S="ln -s"
4949 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4950 test -z "$NM" && NM=nm
4951 test -z "$OBJDUMP" && OBJDUMP=objdump
4952 test -z "$RANLIB" && RANLIB=:
4953 test -z "$STRIP" && STRIP=:
4954 test -z "$ac_objext" && ac_objext=o
4955
4956 if test x"$host" != x"$build"; then
4957   ac_tool_prefix=${host_alias}-
4958 else
4959   ac_tool_prefix=
4960 fi
4961
4962 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4963 case $host_os in
4964 linux-gnu*) ;;
4965 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4966 esac
4967
4968 case $host_os in
4969 aix3*)
4970   # AIX sometimes has problems with the GCC collect2 program.  For some
4971   # reason, if we set the COLLECT_NAMES environment variable, the problems
4972   # vanish in a puff of smoke.
4973   if test "X${COLLECT_NAMES+set}" != Xset; then
4974     COLLECT_NAMES=
4975     export COLLECT_NAMES
4976   fi
4977   ;;
4978 esac
4979
4980 # Determine commands to create old-style static archives.
4981 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4982 old_postinstall_cmds='chmod 644 $oldlib'
4983 old_postuninstall_cmds=
4984
4985 if test -n "$RANLIB"; then
4986   case $host_os in
4987   openbsd*)
4988     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4989     ;;
4990   *)
4991     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4992     ;;
4993   esac
4994   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4995 fi
4996
4997 # Allow CC to be a program name with arguments.
4998 set dummy $CC
4999 compiler="$2"
5000
5001 echo "$as_me:$LINENO: checking for objdir" >&5
5002 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5003 rm -f .libs 2>/dev/null
5004 mkdir .libs 2>/dev/null
5005 if test -d .libs; then
5006   objdir=.libs
5007 else
5008   # MS-DOS does not allow filenames that begin with a dot.
5009   objdir=_libs
5010 fi
5011 rmdir .libs 2>/dev/null
5012 echo "$as_me:$LINENO: result: $objdir" >&5
5013 echo "${ECHO_T}$objdir" >&6
5014
5015
5016
5017 # Check whether --with-pic or --without-pic was given.
5018 if test "${with_pic+set}" = set; then
5019   withval="$with_pic"
5020   pic_mode="$withval"
5021 else
5022   pic_mode=default
5023 fi;
5024 test -z "$pic_mode" && pic_mode=default
5025
5026 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5027 # in isolation, and that seeing it set (from the cache) indicates that
5028 # the associated values are set (in the cache) correctly too.
5029 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5030 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5031 if test "${lt_cv_prog_cc_pic+set}" = set; then
5032   echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034    lt_cv_prog_cc_pic=
5035   lt_cv_prog_cc_shlib=
5036   lt_cv_prog_cc_wl=
5037   lt_cv_prog_cc_static=
5038   lt_cv_prog_cc_no_builtin=
5039   lt_cv_prog_cc_can_build_shared=$can_build_shared
5040
5041   if test "$GCC" = yes; then
5042     lt_cv_prog_cc_wl='-Wl,'
5043     lt_cv_prog_cc_static='-static'
5044
5045     case $host_os in
5046     aix*)
5047       # Below there is a dirty hack to force normal static linking with -ldl
5048       # The problem is because libdl dynamically linked with both libc and
5049       # libC (AIX C++ library), which obviously doesn't included in libraries
5050       # list by gcc. This cause undefined symbols with -static flags.
5051       # This hack allows C programs to be linked with "-static -ldl", but
5052       # not sure about C++ programs.
5053       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5054       ;;
5055     amigaos*)
5056       # FIXME: we need at least 68020 code to build shared libraries, but
5057       # adding the `-m68020' flag to GCC prevents building anything better,
5058       # like `-m68040'.
5059       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5060       ;;
5061     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5062       # PIC is the default for these OSes.
5063       ;;
5064     darwin* | rhapsody*)
5065       # PIC is the default on this platform
5066       # Common symbols not allowed in MH_DYLIB files
5067       lt_cv_prog_cc_pic='-fno-common'
5068       ;;
5069     cygwin* | mingw* | pw32* | os2*)
5070       # This hack is so that the source file can tell whether it is being
5071       # built for inclusion in a dll (and should export symbols for example).
5072       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5073       ;;
5074     sysv4*MP*)
5075       if test -d /usr/nec; then
5076          lt_cv_prog_cc_pic=-Kconform_pic
5077       fi
5078       ;;
5079     *)
5080       lt_cv_prog_cc_pic='-fPIC'
5081       ;;
5082     esac
5083   else
5084     # PORTME Check for PIC flags for the system compiler.
5085     case $host_os in
5086     aix3* | aix4* | aix5*)
5087       lt_cv_prog_cc_wl='-Wl,'
5088       # All AIX code is PIC.
5089       if test "$host_cpu" = ia64; then
5090         # AIX 5 now supports IA64 processor
5091         lt_cv_prog_cc_static='-Bstatic'
5092       else
5093         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5094       fi
5095       ;;
5096
5097     hpux9* | hpux10* | hpux11*)
5098       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5099       lt_cv_prog_cc_wl='-Wl,'
5100       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5101       lt_cv_prog_cc_pic='+Z'
5102       ;;
5103
5104     irix5* | irix6* | nonstopux*)
5105       lt_cv_prog_cc_wl='-Wl,'
5106       lt_cv_prog_cc_static='-non_shared'
5107       # PIC (with -KPIC) is the default.
5108       ;;
5109
5110     cygwin* | mingw* | pw32* | os2*)
5111       # This hack is so that the source file can tell whether it is being
5112       # built for inclusion in a dll (and should export symbols for example).
5113       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5114       ;;
5115
5116     newsos6)
5117       lt_cv_prog_cc_pic='-KPIC'
5118       lt_cv_prog_cc_static='-Bstatic'
5119       ;;
5120
5121     osf3* | osf4* | osf5*)
5122       # All OSF/1 code is PIC.
5123       lt_cv_prog_cc_wl='-Wl,'
5124       lt_cv_prog_cc_static='-non_shared'
5125       ;;
5126
5127     sco3.2v5*)
5128       lt_cv_prog_cc_pic='-Kpic'
5129       lt_cv_prog_cc_static='-dn'
5130       lt_cv_prog_cc_shlib='-belf'
5131       ;;
5132
5133     solaris*)
5134       lt_cv_prog_cc_pic='-KPIC'
5135       lt_cv_prog_cc_static='-Bstatic'
5136       lt_cv_prog_cc_wl='-Wl,'
5137       ;;
5138
5139     sunos4*)
5140       lt_cv_prog_cc_pic='-PIC'
5141       lt_cv_prog_cc_static='-Bstatic'
5142       lt_cv_prog_cc_wl='-Qoption ld '
5143       ;;
5144
5145     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5146       lt_cv_prog_cc_pic='-KPIC'
5147       lt_cv_prog_cc_static='-Bstatic'
5148       lt_cv_prog_cc_wl='-Wl,'
5149       ;;
5150
5151     uts4*)
5152       lt_cv_prog_cc_pic='-pic'
5153       lt_cv_prog_cc_static='-Bstatic'
5154       ;;
5155
5156     sysv4*MP*)
5157       if test -d /usr/nec ;then
5158         lt_cv_prog_cc_pic='-Kconform_pic'
5159         lt_cv_prog_cc_static='-Bstatic'
5160       fi
5161       ;;
5162
5163     *)
5164       lt_cv_prog_cc_can_build_shared=no
5165       ;;
5166     esac
5167   fi
5168
5169 fi
5170
5171 if test -z "$lt_cv_prog_cc_pic"; then
5172   echo "$as_me:$LINENO: result: none" >&5
5173 echo "${ECHO_T}none" >&6
5174 else
5175   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5176 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5177
5178   # Check to make sure the pic_flag actually works.
5179   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5180 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5181   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5182   echo $ECHO_N "(cached) $ECHO_C" >&6
5183 else
5184       save_CFLAGS="$CFLAGS"
5185     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5186     cat >conftest.$ac_ext <<_ACEOF
5187 /* confdefs.h.  */
5188 _ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h.  */
5192
5193 int
5194 main ()
5195 {
5196
5197   ;
5198   return 0;
5199 }
5200 _ACEOF
5201 rm -f conftest.$ac_objext
5202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5203   (eval $ac_compile) 2>conftest.er1
5204   ac_status=$?
5205   grep -v '^ *+' conftest.er1 >conftest.err
5206   rm -f conftest.er1
5207   cat conftest.err >&5
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); } &&
5210          { ac_try='test -z "$ac_c_werror_flag"
5211                          || test ! -s conftest.err'
5212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213   (eval $ac_try) 2>&5
5214   ac_status=$?
5215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216   (exit $ac_status); }; } &&
5217          { ac_try='test -s conftest.$ac_objext'
5218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219   (eval $ac_try) 2>&5
5220   ac_status=$?
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); }; }; then
5223         case $host_os in
5224       hpux9* | hpux10* | hpux11*)
5225         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5226         # they create non-PIC objects.  So, if there were any warnings, we
5227         # assume that PIC is not supported.
5228         if test -s conftest.err; then
5229           lt_cv_prog_cc_pic_works=no
5230         else
5231           lt_cv_prog_cc_pic_works=yes
5232         fi
5233         ;;
5234       *)
5235         lt_cv_prog_cc_pic_works=yes
5236         ;;
5237       esac
5238
5239 else
5240   echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5242
5243       lt_cv_prog_cc_pic_works=no
5244
5245 fi
5246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5247     CFLAGS="$save_CFLAGS"
5248
5249 fi
5250
5251
5252   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5253     lt_cv_prog_cc_pic=
5254     lt_cv_prog_cc_can_build_shared=no
5255   else
5256     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5257   fi
5258
5259   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5260 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5261 fi
5262
5263 # Check for any special shared library compilation flags.
5264 if test -n "$lt_cv_prog_cc_shlib"; then
5265   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5266 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5267   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5268   else
5269    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5270 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5271     lt_cv_prog_cc_can_build_shared=no
5272   fi
5273 fi
5274
5275 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5276 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5277 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5278   echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280     lt_cv_prog_cc_static_works=no
5281   save_LDFLAGS="$LDFLAGS"
5282   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5283   cat >conftest.$ac_ext <<_ACEOF
5284 /* confdefs.h.  */
5285 _ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h.  */
5289
5290 int
5291 main ()
5292 {
5293
5294   ;
5295   return 0;
5296 }
5297 _ACEOF
5298 rm -f conftest.$ac_objext conftest$ac_exeext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5300   (eval $ac_link) 2>conftest.er1
5301   ac_status=$?
5302   grep -v '^ *+' conftest.er1 >conftest.err
5303   rm -f conftest.er1
5304   cat conftest.err >&5
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); } &&
5307          { ac_try='test -z "$ac_c_werror_flag"
5308                          || test ! -s conftest.err'
5309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310   (eval $ac_try) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); }; } &&
5314          { ac_try='test -s conftest$ac_exeext'
5315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316   (eval $ac_try) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; }; then
5320   lt_cv_prog_cc_static_works=yes
5321 else
5322   echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325 fi
5326 rm -f conftest.err conftest.$ac_objext \
5327       conftest$ac_exeext conftest.$ac_ext
5328   LDFLAGS="$save_LDFLAGS"
5329
5330 fi
5331
5332
5333 # Belt *and* braces to stop my trousers falling down:
5334 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5335 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5336 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5337
5338 pic_flag="$lt_cv_prog_cc_pic"
5339 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5340 wl="$lt_cv_prog_cc_wl"
5341 link_static_flag="$lt_cv_prog_cc_static"
5342 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5343 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5344
5345
5346 # Check to see if options -o and -c are simultaneously supported by compiler
5347 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5348 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5349 if test "${lt_cv_compiler_c_o+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352
5353 $rm -r conftest 2>/dev/null
5354 mkdir conftest
5355 cd conftest
5356 echo "int some_variable = 0;" > conftest.$ac_ext
5357 mkdir out
5358 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5359 # that will create temporary files in the current directory regardless of
5360 # the output directory.  Thus, making CWD read-only will cause this test
5361 # to fail, enabling locking or at least warning the user not to do parallel
5362 # builds.
5363 chmod -w .
5364 save_CFLAGS="$CFLAGS"
5365 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5366 compiler_c_o=no
5367 if { (eval echo configure:5367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5368   # The compiler can only warn and ignore the option if not recognized
5369   # So say no if there are warnings
5370   if test -s out/conftest.err; then
5371     lt_cv_compiler_c_o=no
5372   else
5373     lt_cv_compiler_c_o=yes
5374   fi
5375 else
5376   # Append any errors to the config.log.
5377   cat out/conftest.err 1>&5
5378   lt_cv_compiler_c_o=no
5379 fi
5380 CFLAGS="$save_CFLAGS"
5381 chmod u+w .
5382 $rm conftest* out/*
5383 rmdir out
5384 cd ..
5385 rmdir conftest
5386 $rm -r conftest 2>/dev/null
5387
5388 fi
5389
5390 compiler_c_o=$lt_cv_compiler_c_o
5391 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5392 echo "${ECHO_T}$compiler_c_o" >&6
5393
5394 if test x"$compiler_c_o" = x"yes"; then
5395   # Check to see if we can write to a .lo
5396   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5397 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5398   if test "${lt_cv_compiler_o_lo+set}" = set; then
5399   echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401
5402   lt_cv_compiler_o_lo=no
5403   save_CFLAGS="$CFLAGS"
5404   CFLAGS="$CFLAGS -c -o conftest.lo"
5405   save_objext="$ac_objext"
5406   ac_objext=lo
5407   cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h.  */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h.  */
5413
5414 int
5415 main ()
5416 {
5417 int some_variable = 0;
5418   ;
5419   return 0;
5420 }
5421 _ACEOF
5422 rm -f conftest.$ac_objext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424   (eval $ac_compile) 2>conftest.er1
5425   ac_status=$?
5426   grep -v '^ *+' conftest.er1 >conftest.err
5427   rm -f conftest.er1
5428   cat conftest.err >&5
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); } &&
5431          { ac_try='test -z "$ac_c_werror_flag"
5432                          || test ! -s conftest.err'
5433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434   (eval $ac_try) 2>&5
5435   ac_status=$?
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); }; } &&
5438          { ac_try='test -s conftest.$ac_objext'
5439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440   (eval $ac_try) 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); }; }; then
5444       # The compiler can only warn and ignore the option if not recognized
5445     # So say no if there are warnings
5446     if test -s conftest.err; then
5447       lt_cv_compiler_o_lo=no
5448     else
5449       lt_cv_compiler_o_lo=yes
5450     fi
5451
5452 else
5453   echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5455
5456 fi
5457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5458   ac_objext="$save_objext"
5459   CFLAGS="$save_CFLAGS"
5460
5461 fi
5462
5463   compiler_o_lo=$lt_cv_compiler_o_lo
5464   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5465 echo "${ECHO_T}$compiler_o_lo" >&6
5466 else
5467   compiler_o_lo=no
5468 fi
5469
5470 # Check to see if we can do hard links to lock some files if needed
5471 hard_links="nottested"
5472 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5473   # do not overwrite the value of need_locks provided by the user
5474   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5475 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5476   hard_links=yes
5477   $rm conftest*
5478   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5479   touch conftest.a
5480   ln conftest.a conftest.b 2>&5 || hard_links=no
5481   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5482   echo "$as_me:$LINENO: result: $hard_links" >&5
5483 echo "${ECHO_T}$hard_links" >&6
5484   if test "$hard_links" = no; then
5485     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5486 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5487     need_locks=warn
5488   fi
5489 else
5490   need_locks=no
5491 fi
5492
5493 if test "$GCC" = yes; then
5494   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5495   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5496 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5497   echo "int some_variable = 0;" > conftest.$ac_ext
5498   save_CFLAGS="$CFLAGS"
5499   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5500   compiler_rtti_exceptions=no
5501   cat >conftest.$ac_ext <<_ACEOF
5502 /* confdefs.h.  */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h.  */
5507
5508 int
5509 main ()
5510 {
5511 int some_variable = 0;
5512   ;
5513   return 0;
5514 }
5515 _ACEOF
5516 rm -f conftest.$ac_objext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518   (eval $ac_compile) 2>conftest.er1
5519   ac_status=$?
5520   grep -v '^ *+' conftest.er1 >conftest.err
5521   rm -f conftest.er1
5522   cat conftest.err >&5
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); } &&
5525          { ac_try='test -z "$ac_c_werror_flag"
5526                          || test ! -s conftest.err'
5527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528   (eval $ac_try) 2>&5
5529   ac_status=$?
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); }; } &&
5532          { ac_try='test -s conftest.$ac_objext'
5533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534   (eval $ac_try) 2>&5
5535   ac_status=$?
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); }; }; then
5538       # The compiler can only warn and ignore the option if not recognized
5539     # So say no if there are warnings
5540     if test -s conftest.err; then
5541       compiler_rtti_exceptions=no
5542     else
5543       compiler_rtti_exceptions=yes
5544     fi
5545
5546 else
5547   echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5549
5550 fi
5551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5552   CFLAGS="$save_CFLAGS"
5553   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5554 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5555
5556   if test "$compiler_rtti_exceptions" = "yes"; then
5557     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5558   else
5559     no_builtin_flag=' -fno-builtin'
5560   fi
5561 fi
5562
5563 # See if the linker supports building shared libraries.
5564 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5565 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5566
5567 allow_undefined_flag=
5568 no_undefined_flag=
5569 need_lib_prefix=unknown
5570 need_version=unknown
5571 # when you set need_version to no, make sure it does not cause -set_version
5572 # flags to be left without arguments
5573 archive_cmds=
5574 archive_expsym_cmds=
5575 old_archive_from_new_cmds=
5576 old_archive_from_expsyms_cmds=
5577 export_dynamic_flag_spec=
5578 whole_archive_flag_spec=
5579 thread_safe_flag_spec=
5580 hardcode_into_libs=no
5581 hardcode_libdir_flag_spec=
5582 hardcode_libdir_separator=
5583 hardcode_direct=no
5584 hardcode_minus_L=no
5585 hardcode_shlibpath_var=unsupported
5586 runpath_var=
5587 link_all_deplibs=unknown
5588 always_export_symbols=no
5589 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5590 # include_expsyms should be a list of space-separated symbols to be *always*
5591 # included in the symbol list
5592 include_expsyms=
5593 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5594 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5595 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5596 # as well as any symbol that contains `d'.
5597 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5598 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5599 # platforms (ab)use it in PIC code, but their linkers get confused if
5600 # the symbol is explicitly referenced.  Since portable code cannot
5601 # rely on this symbol name, it's probably fine to never include it in
5602 # preloaded symbol tables.
5603 extract_expsyms_cmds=
5604
5605 case $host_os in
5606 cygwin* | mingw* | pw32*)
5607   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5608   # When not using gcc, we currently assume that we are using
5609   # Microsoft Visual C++.
5610   if test "$GCC" != yes; then
5611     with_gnu_ld=no
5612   fi
5613   ;;
5614 openbsd*)
5615   with_gnu_ld=no
5616   ;;
5617 esac
5618
5619 ld_shlibs=yes
5620 if test "$with_gnu_ld" = yes; then
5621   # If archive_cmds runs LD, not CC, wlarc should be empty
5622   wlarc='${wl}'
5623
5624   # See if GNU ld supports shared libraries.
5625   case $host_os in
5626   aix3* | aix4* | aix5*)
5627     # On AIX, the GNU linker is very broken
5628     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5629     ld_shlibs=no
5630     cat <<EOF 1>&2
5631
5632 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5633 *** to be unable to reliably create shared libraries on AIX.
5634 *** Therefore, libtool is disabling shared libraries support.  If you
5635 *** really care for shared libraries, you may want to modify your PATH
5636 *** so that a non-GNU linker is found, and then restart.
5637
5638 EOF
5639     ;;
5640
5641   amigaos*)
5642     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)'
5643     hardcode_libdir_flag_spec='-L$libdir'
5644     hardcode_minus_L=yes
5645
5646     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5647     # that the semantics of dynamic libraries on AmigaOS, at least up
5648     # to version 4, is to share data among multiple programs linked
5649     # with the same dynamic library.  Since this doesn't match the
5650     # behavior of shared libraries on other platforms, we can use
5651     # them.
5652     ld_shlibs=no
5653     ;;
5654
5655   beos*)
5656     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5657       allow_undefined_flag=unsupported
5658       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5659       # support --undefined.  This deserves some investigation.  FIXME
5660       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5661     else
5662       ld_shlibs=no
5663     fi
5664     ;;
5665
5666   cygwin* | mingw* | pw32*)
5667     # hardcode_libdir_flag_spec is actually meaningless, as there is
5668     # no search path for DLLs.
5669     hardcode_libdir_flag_spec='-L$libdir'
5670     allow_undefined_flag=unsupported
5671     always_export_symbols=yes
5672
5673     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5674       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5675       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5676       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5677       else $CC -o impgen impgen.c ; fi)~
5678       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5679
5680     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5681
5682     # cygwin and mingw dlls have different entry points and sets of symbols
5683     # to exclude.
5684     # FIXME: what about values for MSVC?
5685     dll_entry=__cygwin_dll_entry@12
5686     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5687     case $host_os in
5688     mingw*)
5689       # mingw values
5690       dll_entry=_DllMainCRTStartup@12
5691       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5692       ;;
5693     esac
5694
5695     # mingw and cygwin differ, and it's simplest to just exclude the union
5696     # of the two symbol sets.
5697     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5698
5699     # recent cygwin and mingw systems supply a stub DllMain which the user
5700     # can override, but on older systems we have to supply one (in ltdll.c)
5701     if test "x$lt_cv_need_dllmain" = "xyes"; then
5702       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5703       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~
5704         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5705     else
5706       ltdll_obj=
5707       ltdll_cmds=
5708     fi
5709
5710     # Extract the symbol export list from an `--export-all' def file,
5711     # then regenerate the def file from the symbol export list, so that
5712     # the compiled dll only exports the symbol export list.
5713     # Be careful not to strip the DATA tag left be newer dlltools.
5714     export_symbols_cmds="$ltdll_cmds"'
5715       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5716       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5717
5718     # If the export-symbols file already is a .def file (1st line
5719     # is EXPORTS), use it as is.
5720     # If DATA tags from a recent dlltool are present, honour them!
5721     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5722         cp $export_symbols $output_objdir/$soname-def;
5723       else
5724         echo EXPORTS > $output_objdir/$soname-def;
5725         _lt_hint=1;
5726         cat $export_symbols | while read symbol; do
5727          set dummy \$symbol;
5728          case \$# in
5729            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5730            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5731            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5732          esac;
5733          _lt_hint=`expr 1 + \$_lt_hint`;
5734         done;
5735       fi~
5736       '"$ltdll_cmds"'
5737       $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~
5738       $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~
5739       $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~
5740       $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~
5741       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5742     ;;
5743
5744   netbsd*)
5745     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5746       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5747       wlarc=
5748     else
5749       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5750       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5751     fi
5752     ;;
5753
5754   solaris* | sysv5*)
5755     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5756       ld_shlibs=no
5757       cat <<EOF 1>&2
5758
5759 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5760 *** create shared libraries on Solaris systems.  Therefore, libtool
5761 *** is disabling shared libraries support.  We urge you to upgrade GNU
5762 *** binutils to release 2.9.1 or newer.  Another option is to modify
5763 *** your PATH or compiler configuration so that the native linker is
5764 *** used, and then restart.
5765
5766 EOF
5767     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5768       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5769       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5770     else
5771       ld_shlibs=no
5772     fi
5773     ;;
5774
5775   sunos4*)
5776     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5777     wlarc=
5778     hardcode_direct=yes
5779     hardcode_shlibpath_var=no
5780     ;;
5781
5782   *)
5783     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5784       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5785       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5786     else
5787       ld_shlibs=no
5788     fi
5789     ;;
5790   esac
5791
5792   if test "$ld_shlibs" = yes; then
5793     runpath_var=LD_RUN_PATH
5794     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5795     export_dynamic_flag_spec='${wl}--export-dynamic'
5796     case $host_os in
5797     cygwin* | mingw* | pw32*)
5798       # dlltool doesn't understand --whole-archive et. al.
5799       whole_archive_flag_spec=
5800       ;;
5801     *)
5802       # ancient GNU ld didn't support --whole-archive et. al.
5803       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5804         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5805       else
5806         whole_archive_flag_spec=
5807       fi
5808       ;;
5809     esac
5810   fi
5811 else
5812   # PORTME fill in a description of your system's linker (not GNU ld)
5813   case $host_os in
5814   aix3*)
5815     allow_undefined_flag=unsupported
5816     always_export_symbols=yes
5817     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'
5818     # Note: this linker hardcodes the directories in LIBPATH if there
5819     # are no directories specified by -L.
5820     hardcode_minus_L=yes
5821     if test "$GCC" = yes && test -z "$link_static_flag"; then
5822       # Neither direct hardcoding nor static linking is supported with a
5823       # broken collect2.
5824       hardcode_direct=unsupported
5825     fi
5826     ;;
5827
5828   aix4* | aix5*)
5829     if test "$host_cpu" = ia64; then
5830       # On IA64, the linker does run time linking by default, so we don't
5831       # have to do anything special.
5832       aix_use_runtimelinking=no
5833       exp_sym_flag='-Bexport'
5834       no_entry_flag=""
5835     else
5836       aix_use_runtimelinking=no
5837
5838       # Test if we are trying to use run time linking or normal
5839       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5840       # need to do runtime linking.
5841       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5842         for ld_flag in $LDFLAGS; do
5843           case $ld_flag in
5844           *-brtl*)
5845             aix_use_runtimelinking=yes
5846             break
5847           ;;
5848           esac
5849         done
5850       esac
5851
5852       exp_sym_flag='-bexport'
5853       no_entry_flag='-bnoentry'
5854     fi
5855
5856     # When large executables or shared objects are built, AIX ld can
5857     # have problems creating the table of contents.  If linking a library
5858     # or program results in "error TOC overflow" add -mminimal-toc to
5859     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5860     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5861
5862     hardcode_direct=yes
5863     archive_cmds=''
5864     hardcode_libdir_separator=':'
5865     if test "$GCC" = yes; then
5866       case $host_os in aix4.[012]|aix4.[012].*)
5867         collect2name=`${CC} -print-prog-name=collect2`
5868         if test -f "$collect2name" && \
5869           strings "$collect2name" | grep resolve_lib_name >/dev/null
5870         then
5871           # We have reworked collect2
5872           hardcode_direct=yes
5873         else
5874           # We have old collect2
5875           hardcode_direct=unsupported
5876           # It fails to find uninstalled libraries when the uninstalled
5877           # path is not listed in the libpath.  Setting hardcode_minus_L
5878           # to unsupported forces relinking
5879           hardcode_minus_L=yes
5880           hardcode_libdir_flag_spec='-L$libdir'
5881           hardcode_libdir_separator=
5882         fi
5883       esac
5884
5885       shared_flag='-shared'
5886     else
5887       # not using gcc
5888       if test "$host_cpu" = ia64; then
5889         shared_flag='${wl}-G'
5890       else
5891         if test "$aix_use_runtimelinking" = yes; then
5892           shared_flag='${wl}-G'
5893         else
5894           shared_flag='${wl}-bM:SRE'
5895         fi
5896       fi
5897     fi
5898
5899     # It seems that -bexpall can do strange things, so it is better to
5900     # generate a list of symbols to export.
5901     always_export_symbols=yes
5902     if test "$aix_use_runtimelinking" = yes; then
5903       # Warning - without using the other runtime loading flags (-brtl),
5904       # -berok will link without error, but may produce a broken library.
5905       allow_undefined_flag='-berok'
5906       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5907       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"
5908     else
5909       if test "$host_cpu" = ia64; then
5910         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5911         allow_undefined_flag="-z nodefs"
5912         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"
5913       else
5914         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5915         # Warning - without using the other run time loading flags,
5916         # -berok will link without error, but may produce a broken library.
5917         allow_undefined_flag='${wl}-berok'
5918         # This is a bit strange, but is similar to how AIX traditionally builds
5919         # it's shared libraries.
5920         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'
5921       fi
5922     fi
5923     ;;
5924
5925   amigaos*)
5926     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)'
5927     hardcode_libdir_flag_spec='-L$libdir'
5928     hardcode_minus_L=yes
5929     # see comment about different semantics on the GNU ld section
5930     ld_shlibs=no
5931     ;;
5932
5933   cygwin* | mingw* | pw32*)
5934     # When not using gcc, we currently assume that we are using
5935     # Microsoft Visual C++.
5936     # hardcode_libdir_flag_spec is actually meaningless, as there is
5937     # no search path for DLLs.
5938     hardcode_libdir_flag_spec=' '
5939     allow_undefined_flag=unsupported
5940     # Tell ltmain to make .lib files, not .a files.
5941     libext=lib
5942     # FIXME: Setting linknames here is a bad hack.
5943     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5944     # The linker will automatically build a .lib file if we build a DLL.
5945     old_archive_from_new_cmds='true'
5946     # FIXME: Should let the user specify the lib program.
5947     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5948     fix_srcfile_path='`cygpath -w "$srcfile"`'
5949     ;;
5950
5951   darwin* | rhapsody*)
5952     case "$host_os" in
5953     rhapsody* | darwin1.[012])
5954       allow_undefined_flag='-undefined suppress'
5955       ;;
5956     *) # Darwin 1.3 on
5957       allow_undefined_flag='-flat_namespace -undefined suppress'
5958       ;;
5959     esac
5960     # FIXME: Relying on posixy $() will cause problems for
5961     #        cross-compilation, but unfortunately the echo tests do not
5962     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5963     #        `"' quotes if we put them in here... so don't!
5964     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)'
5965     # We need to add '_' to the symbols in $export_symbols first
5966     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5967     hardcode_direct=yes
5968     hardcode_shlibpath_var=no
5969     whole_archive_flag_spec='-all_load $convenience'
5970     ;;
5971
5972   freebsd1*)
5973     ld_shlibs=no
5974     ;;
5975
5976   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5977   # support.  Future versions do this automatically, but an explicit c++rt0.o
5978   # does not break anything, and helps significantly (at the cost of a little
5979   # extra space).
5980   freebsd2.2*)
5981     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5982     hardcode_libdir_flag_spec='-R$libdir'
5983     hardcode_direct=yes
5984     hardcode_shlibpath_var=no
5985     ;;
5986
5987   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5988   freebsd2*)
5989     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5990     hardcode_direct=yes
5991     hardcode_minus_L=yes
5992     hardcode_shlibpath_var=no
5993     ;;
5994
5995   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5996   freebsd*)
5997     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5998     hardcode_libdir_flag_spec='-R$libdir'
5999     hardcode_direct=yes
6000     hardcode_shlibpath_var=no
6001     ;;
6002
6003   hpux9* | hpux10* | hpux11*)
6004     case $host_os in
6005     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' ;;
6006     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6007     esac
6008     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6009     hardcode_libdir_separator=:
6010     hardcode_direct=yes
6011     hardcode_minus_L=yes # Not in the search PATH, but as the default
6012                          # location of the library.
6013     export_dynamic_flag_spec='${wl}-E'
6014     ;;
6015
6016   irix5* | irix6* | nonstopux*)
6017     if test "$GCC" = yes; then
6018       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'
6019       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6020     else
6021       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'
6022       hardcode_libdir_flag_spec='-rpath $libdir'
6023     fi
6024     hardcode_libdir_separator=:
6025     link_all_deplibs=yes
6026     ;;
6027
6028   netbsd*)
6029     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6030       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6031     else
6032       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6033     fi
6034     hardcode_libdir_flag_spec='-R$libdir'
6035     hardcode_direct=yes
6036     hardcode_shlibpath_var=no
6037     ;;
6038
6039   newsos6)
6040     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6041     hardcode_direct=yes
6042     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6043     hardcode_libdir_separator=:
6044     hardcode_shlibpath_var=no
6045     ;;
6046
6047   openbsd*)
6048     hardcode_direct=yes
6049     hardcode_shlibpath_var=no
6050     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6051       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6052       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6053       export_dynamic_flag_spec='${wl}-E'
6054     else
6055       case "$host_os" in
6056       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6057         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6058         hardcode_libdir_flag_spec='-R$libdir'
6059         ;;
6060       *)
6061         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6062         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6063         ;;
6064       esac
6065     fi
6066     ;;
6067
6068   os2*)
6069     hardcode_libdir_flag_spec='-L$libdir'
6070     hardcode_minus_L=yes
6071     allow_undefined_flag=unsupported
6072     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'
6073     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6074     ;;
6075
6076   osf3*)
6077     if test "$GCC" = yes; then
6078       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6079       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'
6080     else
6081       allow_undefined_flag=' -expect_unresolved \*'
6082       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'
6083     fi
6084     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6085     hardcode_libdir_separator=:
6086     ;;
6087
6088   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6089     if test "$GCC" = yes; then
6090       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6091       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'
6092       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6093     else
6094       allow_undefined_flag=' -expect_unresolved \*'
6095       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'
6096       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6097       $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'
6098
6099       #Both c and cxx compiler support -rpath directly
6100       hardcode_libdir_flag_spec='-rpath $libdir'
6101     fi
6102     hardcode_libdir_separator=:
6103     ;;
6104
6105   sco3.2v5*)
6106     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6107     hardcode_shlibpath_var=no
6108     runpath_var=LD_RUN_PATH
6109     hardcode_runpath_var=yes
6110     export_dynamic_flag_spec='${wl}-Bexport'
6111     ;;
6112
6113   solaris*)
6114     # gcc --version < 3.0 without binutils cannot create self contained
6115     # shared libraries reliably, requiring libgcc.a to resolve some of
6116     # the object symbols generated in some cases.  Libraries that use
6117     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6118     # a copy of libgcc.a into every shared library to guarantee resolving
6119     # such symbols causes other problems:  According to Tim Van Holder
6120     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6121     # (to the application) exception stack for one thing.
6122     no_undefined_flag=' -z defs'
6123     if test "$GCC" = yes; then
6124       case `$CC --version 2>/dev/null` in
6125       [12].*)
6126         cat <<EOF 1>&2
6127
6128 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6129 *** create self contained shared libraries on Solaris systems, without
6130 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6131 *** -no-undefined support, which will at least allow you to build shared
6132 *** libraries.  However, you may find that when you link such libraries
6133 *** into an application without using GCC, you have to manually add
6134 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6135 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6136 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6137
6138 EOF
6139         no_undefined_flag=
6140         ;;
6141       esac
6142     fi
6143     # $CC -shared without GNU ld will not create a library from C++
6144     # object files and a static libstdc++, better avoid it by now
6145     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6146     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6147                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6148     hardcode_libdir_flag_spec='-R$libdir'
6149     hardcode_shlibpath_var=no
6150     case $host_os in
6151     solaris2.[0-5] | solaris2.[0-5].*) ;;
6152     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6153       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6154     esac
6155     link_all_deplibs=yes
6156     ;;
6157
6158   sunos4*)
6159     if test "x$host_vendor" = xsequent; then
6160       # Use $CC to link under sequent, because it throws in some extra .o
6161       # files that make .init and .fini sections work.
6162       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6163     else
6164       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6165     fi
6166     hardcode_libdir_flag_spec='-L$libdir'
6167     hardcode_direct=yes
6168     hardcode_minus_L=yes
6169     hardcode_shlibpath_var=no
6170     ;;
6171
6172   sysv4)
6173     case $host_vendor in
6174       sni)
6175         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6176         hardcode_direct=yes # is this really true???
6177         ;;
6178       siemens)
6179         ## LD is ld it makes a PLAMLIB
6180         ## CC just makes a GrossModule.
6181         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6182         reload_cmds='$CC -r -o $output$reload_objs'
6183         hardcode_direct=no
6184         ;;
6185       motorola)
6186         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6187         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6188         ;;
6189     esac
6190     runpath_var='LD_RUN_PATH'
6191     hardcode_shlibpath_var=no
6192     ;;
6193
6194   sysv4.3*)
6195     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6196     hardcode_shlibpath_var=no
6197     export_dynamic_flag_spec='-Bexport'
6198     ;;
6199
6200   sysv5*)
6201     no_undefined_flag=' -z text'
6202     # $CC -shared without GNU ld will not create a library from C++
6203     # object files and a static libstdc++, better avoid it by now
6204     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6205     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6206                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6207     hardcode_libdir_flag_spec=
6208     hardcode_shlibpath_var=no
6209     runpath_var='LD_RUN_PATH'
6210     ;;
6211
6212   uts4*)
6213     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6214     hardcode_libdir_flag_spec='-L$libdir'
6215     hardcode_shlibpath_var=no
6216     ;;
6217
6218   dgux*)
6219     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6220     hardcode_libdir_flag_spec='-L$libdir'
6221     hardcode_shlibpath_var=no
6222     ;;
6223
6224   sysv4*MP*)
6225     if test -d /usr/nec; then
6226       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6227       hardcode_shlibpath_var=no
6228       runpath_var=LD_RUN_PATH
6229       hardcode_runpath_var=yes
6230       ld_shlibs=yes
6231     fi
6232     ;;
6233
6234   sysv4.2uw2*)
6235     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6236     hardcode_direct=yes
6237     hardcode_minus_L=no
6238     hardcode_shlibpath_var=no
6239     hardcode_runpath_var=yes
6240     runpath_var=LD_RUN_PATH
6241     ;;
6242
6243   sysv5uw7* | unixware7*)
6244     no_undefined_flag='${wl}-z ${wl}text'
6245     if test "$GCC" = yes; then
6246       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6247     else
6248       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6249     fi
6250     runpath_var='LD_RUN_PATH'
6251     hardcode_shlibpath_var=no
6252     ;;
6253
6254   *)
6255     ld_shlibs=no
6256     ;;
6257   esac
6258 fi
6259 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6260 echo "${ECHO_T}$ld_shlibs" >&6
6261 test "$ld_shlibs" = no && can_build_shared=no
6262
6263 # Check hardcoding attributes.
6264 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6265 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6266 hardcode_action=
6267 if test -n "$hardcode_libdir_flag_spec" || \
6268    test -n "$runpath_var"; then
6269
6270   # We can hardcode non-existant directories.
6271   if test "$hardcode_direct" != no &&
6272      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6273      # have to relink, otherwise we might link with an installed library
6274      # when we should be linking with a yet-to-be-installed one
6275      ## test "$hardcode_shlibpath_var" != no &&
6276      test "$hardcode_minus_L" != no; then
6277     # Linking always hardcodes the temporary library directory.
6278     hardcode_action=relink
6279   else
6280     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6281     hardcode_action=immediate
6282   fi
6283 else
6284   # We cannot hardcode anything, or else we can only hardcode existing
6285   # directories.
6286   hardcode_action=unsupported
6287 fi
6288 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6289 echo "${ECHO_T}$hardcode_action" >&6
6290
6291 striplib=
6292 old_striplib=
6293 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6294 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6295 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6296   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6297   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6298   echo "$as_me:$LINENO: result: yes" >&5
6299 echo "${ECHO_T}yes" >&6
6300 else
6301   echo "$as_me:$LINENO: result: no" >&5
6302 echo "${ECHO_T}no" >&6
6303 fi
6304
6305 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6306 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6307
6308 # PORTME Fill in your ld.so characteristics
6309 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6310 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6311 library_names_spec=
6312 libname_spec='lib$name'
6313 soname_spec=
6314 postinstall_cmds=
6315 postuninstall_cmds=
6316 finish_cmds=
6317 finish_eval=
6318 shlibpath_var=
6319 shlibpath_overrides_runpath=unknown
6320 version_type=none
6321 dynamic_linker="$host_os ld.so"
6322 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6323 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6324
6325 case $host_os in
6326 aix3*)
6327   version_type=linux
6328   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6329   shlibpath_var=LIBPATH
6330
6331   # AIX has no versioning support, so we append a major version to the name.
6332   soname_spec='${libname}${release}.so$major'
6333   ;;
6334
6335 aix4* | aix5*)
6336   version_type=linux
6337   need_lib_prefix=no
6338   need_version=no
6339   hardcode_into_libs=yes
6340   if test "$host_cpu" = ia64; then
6341     # AIX 5 supports IA64
6342     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6343     shlibpath_var=LD_LIBRARY_PATH
6344   else
6345     # With GCC up to 2.95.x, collect2 would create an import file
6346     # for dependence libraries.  The import file would start with
6347     # the line `#! .'.  This would cause the generated library to
6348     # depend on `.', always an invalid library.  This was fixed in
6349     # development snapshots of GCC prior to 3.0.
6350     case $host_os in
6351       aix4 | aix4.[01] | aix4.[01].*)
6352         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6353              echo ' yes '
6354              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6355           :
6356         else
6357           can_build_shared=no
6358         fi
6359         ;;
6360     esac
6361     # AIX (on Power*) has no versioning support, so currently we can
6362     # not hardcode correct soname into executable. Probably we can
6363     # add versioning support to collect2, so additional links can
6364     # be useful in future.
6365     if test "$aix_use_runtimelinking" = yes; then
6366       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6367       # instead of lib<name>.a to let people know that these are not
6368       # typical AIX shared libraries.
6369       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6370     else
6371       # We preserve .a as extension for shared libraries through AIX4.2
6372       # and later when we are not doing run time linking.
6373       library_names_spec='${libname}${release}.a $libname.a'
6374       soname_spec='${libname}${release}.so$major'
6375     fi
6376     shlibpath_var=LIBPATH
6377   fi
6378   hardcode_into_libs=yes
6379   ;;
6380
6381 amigaos*)
6382   library_names_spec='$libname.ixlibrary $libname.a'
6383   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6384   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'
6385   ;;
6386
6387 beos*)
6388   library_names_spec='${libname}.so'
6389   dynamic_linker="$host_os ld.so"
6390   shlibpath_var=LIBRARY_PATH
6391   ;;
6392
6393 bsdi4*)
6394   version_type=linux
6395   need_version=no
6396   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6397   soname_spec='${libname}${release}.so$major'
6398   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6399   shlibpath_var=LD_LIBRARY_PATH
6400   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6401   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6402   export_dynamic_flag_spec=-rdynamic
6403   # the default ld.so.conf also contains /usr/contrib/lib and
6404   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6405   # libtool to hard-code these into programs
6406   ;;
6407
6408 cygwin* | mingw* | pw32*)
6409   version_type=windows
6410   need_version=no
6411   need_lib_prefix=no
6412   case $GCC,$host_os in
6413   yes,cygwin*)
6414     library_names_spec='$libname.dll.a'
6415     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6416     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6417       dldir=$destdir/`dirname \$dlpath`~
6418       test -d \$dldir || mkdir -p \$dldir~
6419       $install_prog .libs/$dlname \$dldir/$dlname'
6420     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6421       dlpath=$dir/\$dldll~
6422        $rm \$dlpath'
6423     ;;
6424   yes,mingw*)
6425     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6426     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6427     ;;
6428   yes,pw32*)
6429     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6430     ;;
6431   *)
6432     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6433     ;;
6434   esac
6435   dynamic_linker='Win32 ld.exe'
6436   # FIXME: first we should search . and the directory the executable is in
6437   shlibpath_var=PATH
6438   ;;
6439
6440 darwin* | rhapsody*)
6441   dynamic_linker="$host_os dyld"
6442   version_type=darwin
6443   need_lib_prefix=no
6444   need_version=no
6445   # FIXME: Relying on posixy $() will cause problems for
6446   #        cross-compilation, but unfortunately the echo tests do not
6447   #        yet detect zsh echo's removal of \ escapes.
6448   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)'
6449   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6450   shlibpath_overrides_runpath=yes
6451   shlibpath_var=DYLD_LIBRARY_PATH
6452   ;;
6453
6454 freebsd1*)
6455   dynamic_linker=no
6456   ;;
6457
6458 freebsd*)
6459   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6460   version_type=freebsd-$objformat
6461   case $version_type in
6462     freebsd-elf*)
6463       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6464       need_version=no
6465       need_lib_prefix=no
6466       ;;
6467     freebsd-*)
6468       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6469       need_version=yes
6470       ;;
6471   esac
6472   shlibpath_var=LD_LIBRARY_PATH
6473   case $host_os in
6474   freebsd2*)
6475     shlibpath_overrides_runpath=yes
6476     ;;
6477   *)
6478     shlibpath_overrides_runpath=no
6479     hardcode_into_libs=yes
6480     ;;
6481   esac
6482   ;;
6483
6484 gnu*)
6485   version_type=linux
6486   need_lib_prefix=no
6487   need_version=no
6488   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6489   soname_spec='${libname}${release}.so$major'
6490   shlibpath_var=LD_LIBRARY_PATH
6491   hardcode_into_libs=yes
6492   ;;
6493
6494 hpux9* | hpux10* | hpux11*)
6495   # Give a soname corresponding to the major version so that dld.sl refuses to
6496   # link against other versions.
6497   dynamic_linker="$host_os dld.sl"
6498   version_type=sunos
6499   need_lib_prefix=no
6500   need_version=no
6501   shlibpath_var=SHLIB_PATH
6502   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6503   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6504   soname_spec='${libname}${release}.sl$major'
6505   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6506   postinstall_cmds='chmod 555 $lib'
6507   ;;
6508
6509 irix5* | irix6* | nonstopux*)
6510   case $host_os in
6511     nonstopux*) version_type=nonstopux ;;
6512     *)          version_type=irix ;;
6513   esac
6514   need_lib_prefix=no
6515   need_version=no
6516   soname_spec='${libname}${release}.so$major'
6517   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6518   case $host_os in
6519   irix5* | nonstopux*)
6520     libsuff= shlibsuff=
6521     ;;
6522   *)
6523     case $LD in # libtool.m4 will add one of these switches to LD
6524     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6525     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6526     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6527     *) libsuff= shlibsuff= libmagic=never-match;;
6528     esac
6529     ;;
6530   esac
6531   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6532   shlibpath_overrides_runpath=no
6533   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6534   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6535   ;;
6536
6537 # No shared lib support for Linux oldld, aout, or coff.
6538 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6539   dynamic_linker=no
6540   ;;
6541
6542 # This must be Linux ELF.
6543 linux-gnu*)
6544   version_type=linux
6545   need_lib_prefix=no
6546   need_version=no
6547   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6548   soname_spec='${libname}${release}.so$major'
6549   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6550   shlibpath_var=LD_LIBRARY_PATH
6551   shlibpath_overrides_runpath=no
6552   # This implies no fast_install, which is unacceptable.
6553   # Some rework will be needed to allow for fast_install
6554   # before this can be enabled.
6555   hardcode_into_libs=yes
6556
6557   case $host_cpu:$lt_cv_cc_64bit_output in
6558   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6559     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6560     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6561     ;;
6562   esac
6563
6564   # We used to test for /lib/ld.so.1 and disable shared libraries on
6565   # powerpc, because MkLinux only supported shared libraries with the
6566   # GNU dynamic linker.  Since this was broken with cross compilers,
6567   # most powerpc-linux boxes support dynamic linking these days and
6568   # people can always --disable-shared, the test was removed, and we
6569   # assume the GNU/Linux dynamic linker is in use.
6570   dynamic_linker='GNU/Linux ld.so'
6571
6572   # Find out which ABI we are using (multilib Linux x86_64 hack).
6573   libsuff=
6574   case "$host_cpu" in
6575   x86_64*)
6576     echo '#line 6576 "configure"' > conftest.$ac_ext
6577     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578   (eval $ac_compile) 2>&5
6579   ac_status=$?
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); }; then
6582       case `/usr/bin/file conftest.$ac_objext` in
6583       *64-bit*)
6584         libsuff=64
6585         ;;
6586       esac
6587     fi
6588     rm -rf conftest*
6589     ;;
6590   *)
6591     ;;
6592   esac
6593   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6594   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6595   ;;
6596
6597 netbsd*)
6598   version_type=sunos
6599   need_lib_prefix=no
6600   need_version=no
6601   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6602     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6603     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6604     dynamic_linker='NetBSD (a.out) ld.so'
6605   else
6606     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6607     soname_spec='${libname}${release}.so$major'
6608     dynamic_linker='NetBSD ld.elf_so'
6609   fi
6610   shlibpath_var=LD_LIBRARY_PATH
6611   shlibpath_overrides_runpath=yes
6612   hardcode_into_libs=yes
6613   ;;
6614
6615 newsos6)
6616   version_type=linux
6617   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6618   shlibpath_var=LD_LIBRARY_PATH
6619   shlibpath_overrides_runpath=yes
6620   ;;
6621
6622 openbsd*)
6623   version_type=sunos
6624   need_lib_prefix=no
6625   need_version=no
6626   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6627     case "$host_os" in
6628     openbsd2.[89] | openbsd2.[89].*)
6629       shlibpath_overrides_runpath=no
6630       ;;
6631     *)
6632       shlibpath_overrides_runpath=yes
6633       ;;
6634     esac
6635   else
6636     shlibpath_overrides_runpath=yes
6637   fi
6638   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6639   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6640   shlibpath_var=LD_LIBRARY_PATH
6641   ;;
6642
6643 os2*)
6644   libname_spec='$name'
6645   need_lib_prefix=no
6646   library_names_spec='$libname.dll $libname.a'
6647   dynamic_linker='OS/2 ld.exe'
6648   shlibpath_var=LIBPATH
6649   ;;
6650
6651 osf3* | osf4* | osf5*)
6652   version_type=osf
6653   need_version=no
6654   soname_spec='${libname}${release}.so$major'
6655   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6656   shlibpath_var=LD_LIBRARY_PATH
6657   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6658   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6659   hardcode_into_libs=yes
6660   ;;
6661
6662 sco3.2v5*)
6663   version_type=osf
6664   soname_spec='${libname}${release}.so$major'
6665   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6666   shlibpath_var=LD_LIBRARY_PATH
6667   ;;
6668
6669 solaris*)
6670   version_type=linux
6671   need_lib_prefix=no
6672   need_version=no
6673   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6674   soname_spec='${libname}${release}.so$major'
6675   shlibpath_var=LD_LIBRARY_PATH
6676   shlibpath_overrides_runpath=yes
6677   hardcode_into_libs=yes
6678   # ldd complains unless libraries are executable
6679   postinstall_cmds='chmod +x $lib'
6680   ;;
6681
6682 sunos4*)
6683   version_type=sunos
6684   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6685   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6686   shlibpath_var=LD_LIBRARY_PATH
6687   shlibpath_overrides_runpath=yes
6688   if test "$with_gnu_ld" = yes; then
6689     need_lib_prefix=no
6690   fi
6691   need_version=yes
6692   ;;
6693
6694 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6695   version_type=linux
6696   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6697   soname_spec='${libname}${release}.so$major'
6698   shlibpath_var=LD_LIBRARY_PATH
6699   case $host_vendor in
6700     sni)
6701       shlibpath_overrides_runpath=no
6702       need_lib_prefix=no
6703       export_dynamic_flag_spec='${wl}-Blargedynsym'
6704       runpath_var=LD_RUN_PATH
6705       ;;
6706     siemens)
6707       need_lib_prefix=no
6708       ;;
6709     motorola)
6710       need_lib_prefix=no
6711       need_version=no
6712       shlibpath_overrides_runpath=no
6713       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6714       ;;
6715   esac
6716   ;;
6717
6718 uts4*)
6719   version_type=linux
6720   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6721   soname_spec='${libname}${release}.so$major'
6722   shlibpath_var=LD_LIBRARY_PATH
6723   ;;
6724
6725 dgux*)
6726   version_type=linux
6727   need_lib_prefix=no
6728   need_version=no
6729   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6730   soname_spec='${libname}${release}.so$major'
6731   shlibpath_var=LD_LIBRARY_PATH
6732   ;;
6733
6734 sysv4*MP*)
6735   if test -d /usr/nec ;then
6736     version_type=linux
6737     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6738     soname_spec='$libname.so.$major'
6739     shlibpath_var=LD_LIBRARY_PATH
6740   fi
6741   ;;
6742
6743 *)
6744   dynamic_linker=no
6745   ;;
6746 esac
6747 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6748 echo "${ECHO_T}$dynamic_linker" >&6
6749 test "$dynamic_linker" = no && can_build_shared=no
6750
6751 # Report the final consequences.
6752 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6753 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6754 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6755 echo "${ECHO_T}$can_build_shared" >&6
6756
6757 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6758 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6759 test "$can_build_shared" = "no" && enable_shared=no
6760
6761 # On AIX, shared libraries and static libraries use the same namespace, and
6762 # are all built from PIC.
6763 case "$host_os" in
6764 aix3*)
6765   test "$enable_shared" = yes && enable_static=no
6766   if test -n "$RANLIB"; then
6767     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6768     postinstall_cmds='$RANLIB $lib'
6769   fi
6770   ;;
6771
6772 aix4*)
6773   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6774     test "$enable_shared" = yes && enable_static=no
6775   fi
6776   ;;
6777 esac
6778 echo "$as_me:$LINENO: result: $enable_shared" >&5
6779 echo "${ECHO_T}$enable_shared" >&6
6780
6781 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6782 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6783 # Make sure either enable_shared or enable_static is yes.
6784 test "$enable_shared" = yes || enable_static=yes
6785 echo "$as_me:$LINENO: result: $enable_static" >&5
6786 echo "${ECHO_T}$enable_static" >&6
6787
6788 if test "$hardcode_action" = relink; then
6789   # Fast installation is not supported
6790   enable_fast_install=no
6791 elif test "$shlibpath_overrides_runpath" = yes ||
6792      test "$enable_shared" = no; then
6793   # Fast installation is not necessary
6794   enable_fast_install=needless
6795 fi
6796
6797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6798 if test "$GCC" = yes; then
6799   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6800 fi
6801
6802 if test "x$enable_dlopen" != xyes; then
6803   enable_dlopen=unknown
6804   enable_dlopen_self=unknown
6805   enable_dlopen_self_static=unknown
6806 else
6807   lt_cv_dlopen=no
6808   lt_cv_dlopen_libs=
6809
6810   case $host_os in
6811   beos*)
6812     lt_cv_dlopen="load_add_on"
6813     lt_cv_dlopen_libs=
6814     lt_cv_dlopen_self=yes
6815     ;;
6816
6817   cygwin* | mingw* | pw32*)
6818     lt_cv_dlopen="LoadLibrary"
6819     lt_cv_dlopen_libs=
6820    ;;
6821
6822   *)
6823     echo "$as_me:$LINENO: checking for shl_load" >&5
6824 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6825 if test "${ac_cv_func_shl_load+set}" = set; then
6826   echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828   cat >conftest.$ac_ext <<_ACEOF
6829 /* confdefs.h.  */
6830 _ACEOF
6831 cat confdefs.h >>conftest.$ac_ext
6832 cat >>conftest.$ac_ext <<_ACEOF
6833 /* end confdefs.h.  */
6834 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6836 #define shl_load innocuous_shl_load
6837
6838 /* System header to define __stub macros and hopefully few prototypes,
6839     which can conflict with char shl_load (); below.
6840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6841     <limits.h> exists even on freestanding compilers.  */
6842
6843 #ifdef __STDC__
6844 # include <limits.h>
6845 #else
6846 # include <assert.h>
6847 #endif
6848
6849 #undef shl_load
6850
6851 /* Override any gcc2 internal prototype to avoid an error.  */
6852 #ifdef __cplusplus
6853 extern "C"
6854 {
6855 #endif
6856 /* We use char because int might match the return type of a gcc2
6857    builtin and then its argument prototype would still apply.  */
6858 char shl_load ();
6859 /* The GNU C library defines this for functions which it implements
6860     to always fail with ENOSYS.  Some functions are actually named
6861     something starting with __ and the normal name is an alias.  */
6862 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6863 choke me
6864 #else
6865 char (*f) () = shl_load;
6866 #endif
6867 #ifdef __cplusplus
6868 }
6869 #endif
6870
6871 int
6872 main ()
6873 {
6874 return f != shl_load;
6875   ;
6876   return 0;
6877 }
6878 _ACEOF
6879 rm -f conftest.$ac_objext conftest$ac_exeext
6880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6881   (eval $ac_link) 2>conftest.er1
6882   ac_status=$?
6883   grep -v '^ *+' conftest.er1 >conftest.err
6884   rm -f conftest.er1
6885   cat conftest.err >&5
6886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887   (exit $ac_status); } &&
6888          { ac_try='test -z "$ac_c_werror_flag"
6889                          || test ! -s conftest.err'
6890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891   (eval $ac_try) 2>&5
6892   ac_status=$?
6893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894   (exit $ac_status); }; } &&
6895          { ac_try='test -s conftest$ac_exeext'
6896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897   (eval $ac_try) 2>&5
6898   ac_status=$?
6899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900   (exit $ac_status); }; }; then
6901   ac_cv_func_shl_load=yes
6902 else
6903   echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6905
6906 ac_cv_func_shl_load=no
6907 fi
6908 rm -f conftest.err conftest.$ac_objext \
6909       conftest$ac_exeext conftest.$ac_ext
6910 fi
6911 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6912 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6913 if test $ac_cv_func_shl_load = yes; then
6914   lt_cv_dlopen="shl_load"
6915 else
6916   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6917 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6918 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6919   echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921   ac_check_lib_save_LIBS=$LIBS
6922 LIBS="-ldld  $LIBS"
6923 cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h.  */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h.  */
6929
6930 /* Override any gcc2 internal prototype to avoid an error.  */
6931 #ifdef __cplusplus
6932 extern "C"
6933 #endif
6934 /* We use char because int might match the return type of a gcc2
6935    builtin and then its argument prototype would still apply.  */
6936 char shl_load ();
6937 int
6938 main ()
6939 {
6940 shl_load ();
6941   ;
6942   return 0;
6943 }
6944 _ACEOF
6945 rm -f conftest.$ac_objext conftest$ac_exeext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6947   (eval $ac_link) 2>conftest.er1
6948   ac_status=$?
6949   grep -v '^ *+' conftest.er1 >conftest.err
6950   rm -f conftest.er1
6951   cat conftest.err >&5
6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); } &&
6954          { ac_try='test -z "$ac_c_werror_flag"
6955                          || test ! -s conftest.err'
6956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957   (eval $ac_try) 2>&5
6958   ac_status=$?
6959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960   (exit $ac_status); }; } &&
6961          { ac_try='test -s conftest$ac_exeext'
6962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963   (eval $ac_try) 2>&5
6964   ac_status=$?
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); }; }; then
6967   ac_cv_lib_dld_shl_load=yes
6968 else
6969   echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6971
6972 ac_cv_lib_dld_shl_load=no
6973 fi
6974 rm -f conftest.err conftest.$ac_objext \
6975       conftest$ac_exeext conftest.$ac_ext
6976 LIBS=$ac_check_lib_save_LIBS
6977 fi
6978 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6979 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6980 if test $ac_cv_lib_dld_shl_load = yes; then
6981   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6982 else
6983   echo "$as_me:$LINENO: checking for dlopen" >&5
6984 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6985 if test "${ac_cv_func_dlopen+set}" = set; then
6986   echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988   cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h.  */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h.  */
6994 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
6995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6996 #define dlopen innocuous_dlopen
6997
6998 /* System header to define __stub macros and hopefully few prototypes,
6999     which can conflict with char dlopen (); below.
7000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7001     <limits.h> exists even on freestanding compilers.  */
7002
7003 #ifdef __STDC__
7004 # include <limits.h>
7005 #else
7006 # include <assert.h>
7007 #endif
7008
7009 #undef dlopen
7010
7011 /* Override any gcc2 internal prototype to avoid an error.  */
7012 #ifdef __cplusplus
7013 extern "C"
7014 {
7015 #endif
7016 /* We use char because int might match the return type of a gcc2
7017    builtin and then its argument prototype would still apply.  */
7018 char dlopen ();
7019 /* The GNU C library defines this for functions which it implements
7020     to always fail with ENOSYS.  Some functions are actually named
7021     something starting with __ and the normal name is an alias.  */
7022 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7023 choke me
7024 #else
7025 char (*f) () = dlopen;
7026 #endif
7027 #ifdef __cplusplus
7028 }
7029 #endif
7030
7031 int
7032 main ()
7033 {
7034 return f != dlopen;
7035   ;
7036   return 0;
7037 }
7038 _ACEOF
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041   (eval $ac_link) 2>conftest.er1
7042   ac_status=$?
7043   grep -v '^ *+' conftest.er1 >conftest.err
7044   rm -f conftest.er1
7045   cat conftest.err >&5
7046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047   (exit $ac_status); } &&
7048          { ac_try='test -z "$ac_c_werror_flag"
7049                          || test ! -s conftest.err'
7050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051   (eval $ac_try) 2>&5
7052   ac_status=$?
7053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054   (exit $ac_status); }; } &&
7055          { ac_try='test -s conftest$ac_exeext'
7056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057   (eval $ac_try) 2>&5
7058   ac_status=$?
7059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060   (exit $ac_status); }; }; then
7061   ac_cv_func_dlopen=yes
7062 else
7063   echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7065
7066 ac_cv_func_dlopen=no
7067 fi
7068 rm -f conftest.err conftest.$ac_objext \
7069       conftest$ac_exeext conftest.$ac_ext
7070 fi
7071 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7072 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7073 if test $ac_cv_func_dlopen = yes; then
7074   lt_cv_dlopen="dlopen"
7075 else
7076   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7077 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7078 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7079   echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081   ac_check_lib_save_LIBS=$LIBS
7082 LIBS="-ldl  $LIBS"
7083 cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h.  */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h.  */
7089
7090 /* Override any gcc2 internal prototype to avoid an error.  */
7091 #ifdef __cplusplus
7092 extern "C"
7093 #endif
7094 /* We use char because int might match the return type of a gcc2
7095    builtin and then its argument prototype would still apply.  */
7096 char dlopen ();
7097 int
7098 main ()
7099 {
7100 dlopen ();
7101   ;
7102   return 0;
7103 }
7104 _ACEOF
7105 rm -f conftest.$ac_objext conftest$ac_exeext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7107   (eval $ac_link) 2>conftest.er1
7108   ac_status=$?
7109   grep -v '^ *+' conftest.er1 >conftest.err
7110   rm -f conftest.er1
7111   cat conftest.err >&5
7112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113   (exit $ac_status); } &&
7114          { ac_try='test -z "$ac_c_werror_flag"
7115                          || test ! -s conftest.err'
7116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117   (eval $ac_try) 2>&5
7118   ac_status=$?
7119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120   (exit $ac_status); }; } &&
7121          { ac_try='test -s conftest$ac_exeext'
7122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123   (eval $ac_try) 2>&5
7124   ac_status=$?
7125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); }; }; then
7127   ac_cv_lib_dl_dlopen=yes
7128 else
7129   echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7131
7132 ac_cv_lib_dl_dlopen=no
7133 fi
7134 rm -f conftest.err conftest.$ac_objext \
7135       conftest$ac_exeext conftest.$ac_ext
7136 LIBS=$ac_check_lib_save_LIBS
7137 fi
7138 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7139 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7140 if test $ac_cv_lib_dl_dlopen = yes; then
7141   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7142 else
7143   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7144 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7145 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148   ac_check_lib_save_LIBS=$LIBS
7149 LIBS="-lsvld  $LIBS"
7150 cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h.  */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h.  */
7156
7157 /* Override any gcc2 internal prototype to avoid an error.  */
7158 #ifdef __cplusplus
7159 extern "C"
7160 #endif
7161 /* We use char because int might match the return type of a gcc2
7162    builtin and then its argument prototype would still apply.  */
7163 char dlopen ();
7164 int
7165 main ()
7166 {
7167 dlopen ();
7168   ;
7169   return 0;
7170 }
7171 _ACEOF
7172 rm -f conftest.$ac_objext conftest$ac_exeext
7173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7174   (eval $ac_link) 2>conftest.er1
7175   ac_status=$?
7176   grep -v '^ *+' conftest.er1 >conftest.err
7177   rm -f conftest.er1
7178   cat conftest.err >&5
7179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180   (exit $ac_status); } &&
7181          { ac_try='test -z "$ac_c_werror_flag"
7182                          || test ! -s conftest.err'
7183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184   (eval $ac_try) 2>&5
7185   ac_status=$?
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); }; } &&
7188          { ac_try='test -s conftest$ac_exeext'
7189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190   (eval $ac_try) 2>&5
7191   ac_status=$?
7192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193   (exit $ac_status); }; }; then
7194   ac_cv_lib_svld_dlopen=yes
7195 else
7196   echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7198
7199 ac_cv_lib_svld_dlopen=no
7200 fi
7201 rm -f conftest.err conftest.$ac_objext \
7202       conftest$ac_exeext conftest.$ac_ext
7203 LIBS=$ac_check_lib_save_LIBS
7204 fi
7205 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7206 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7207 if test $ac_cv_lib_svld_dlopen = yes; then
7208   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7209 else
7210   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7211 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7212 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7213   echo $ECHO_N "(cached) $ECHO_C" >&6
7214 else
7215   ac_check_lib_save_LIBS=$LIBS
7216 LIBS="-ldld  $LIBS"
7217 cat >conftest.$ac_ext <<_ACEOF
7218 /* confdefs.h.  */
7219 _ACEOF
7220 cat confdefs.h >>conftest.$ac_ext
7221 cat >>conftest.$ac_ext <<_ACEOF
7222 /* end confdefs.h.  */
7223
7224 /* Override any gcc2 internal prototype to avoid an error.  */
7225 #ifdef __cplusplus
7226 extern "C"
7227 #endif
7228 /* We use char because int might match the return type of a gcc2
7229    builtin and then its argument prototype would still apply.  */
7230 char dld_link ();
7231 int
7232 main ()
7233 {
7234 dld_link ();
7235   ;
7236   return 0;
7237 }
7238 _ACEOF
7239 rm -f conftest.$ac_objext conftest$ac_exeext
7240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7241   (eval $ac_link) 2>conftest.er1
7242   ac_status=$?
7243   grep -v '^ *+' conftest.er1 >conftest.err
7244   rm -f conftest.er1
7245   cat conftest.err >&5
7246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247   (exit $ac_status); } &&
7248          { ac_try='test -z "$ac_c_werror_flag"
7249                          || test ! -s conftest.err'
7250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251   (eval $ac_try) 2>&5
7252   ac_status=$?
7253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254   (exit $ac_status); }; } &&
7255          { ac_try='test -s conftest$ac_exeext'
7256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257   (eval $ac_try) 2>&5
7258   ac_status=$?
7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); }; }; then
7261   ac_cv_lib_dld_dld_link=yes
7262 else
7263   echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7265
7266 ac_cv_lib_dld_dld_link=no
7267 fi
7268 rm -f conftest.err conftest.$ac_objext \
7269       conftest$ac_exeext conftest.$ac_ext
7270 LIBS=$ac_check_lib_save_LIBS
7271 fi
7272 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7273 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7274 if test $ac_cv_lib_dld_dld_link = yes; then
7275   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7276 fi
7277
7278
7279 fi
7280
7281
7282 fi
7283
7284
7285 fi
7286
7287
7288 fi
7289
7290
7291 fi
7292
7293     ;;
7294   esac
7295
7296   if test "x$lt_cv_dlopen" != xno; then
7297     enable_dlopen=yes
7298   else
7299     enable_dlopen=no
7300   fi
7301
7302   case $lt_cv_dlopen in
7303   dlopen)
7304     save_CPPFLAGS="$CPPFLAGS"
7305         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7306
7307     save_LDFLAGS="$LDFLAGS"
7308     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7309
7310     save_LIBS="$LIBS"
7311     LIBS="$lt_cv_dlopen_libs $LIBS"
7312
7313     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7314 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7315 if test "${lt_cv_dlopen_self+set}" = set; then
7316   echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318           if test "$cross_compiling" = yes; then :
7319   lt_cv_dlopen_self=cross
7320 else
7321     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7322   lt_status=$lt_dlunknown
7323   cat > conftest.$ac_ext <<EOF
7324 #line 7324 "configure"
7325 #include "confdefs.h"
7326
7327 #if HAVE_DLFCN_H
7328 #include <dlfcn.h>
7329 #endif
7330
7331 #include <stdio.h>
7332
7333 #ifdef RTLD_GLOBAL
7334 #  define LT_DLGLOBAL           RTLD_GLOBAL
7335 #else
7336 #  ifdef DL_GLOBAL
7337 #    define LT_DLGLOBAL         DL_GLOBAL
7338 #  else
7339 #    define LT_DLGLOBAL         0
7340 #  endif
7341 #endif
7342
7343 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7344    find out it does not work in some platform. */
7345 #ifndef LT_DLLAZY_OR_NOW
7346 #  ifdef RTLD_LAZY
7347 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7348 #  else
7349 #    ifdef DL_LAZY
7350 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7351 #    else
7352 #      ifdef RTLD_NOW
7353 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7354 #      else
7355 #        ifdef DL_NOW
7356 #          define LT_DLLAZY_OR_NOW      DL_NOW
7357 #        else
7358 #          define LT_DLLAZY_OR_NOW      0
7359 #        endif
7360 #      endif
7361 #    endif
7362 #  endif
7363 #endif
7364
7365 #ifdef __cplusplus
7366 extern "C" void exit (int);
7367 #endif
7368
7369 void fnord() { int i=42;}
7370 int main ()
7371 {
7372   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7373   int status = $lt_dlunknown;
7374
7375   if (self)
7376     {
7377       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7378       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7379       /* dlclose (self); */
7380     }
7381
7382     exit (status);
7383 }
7384 EOF
7385   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7386   (eval $ac_link) 2>&5
7387   ac_status=$?
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7390     (./conftest; exit; ) 2>/dev/null
7391     lt_status=$?
7392     case x$lt_status in
7393       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7394       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7395       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7396     esac
7397   else :
7398     # compilation failed
7399     lt_cv_dlopen_self=no
7400   fi
7401 fi
7402 rm -fr conftest*
7403
7404
7405 fi
7406 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7407 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7408
7409     if test "x$lt_cv_dlopen_self" = xyes; then
7410       LDFLAGS="$LDFLAGS $link_static_flag"
7411       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7412 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7413 if test "${lt_cv_dlopen_self_static+set}" = set; then
7414   echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416           if test "$cross_compiling" = yes; then :
7417   lt_cv_dlopen_self_static=cross
7418 else
7419     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7420   lt_status=$lt_dlunknown
7421   cat > conftest.$ac_ext <<EOF
7422 #line 7422 "configure"
7423 #include "confdefs.h"
7424
7425 #if HAVE_DLFCN_H
7426 #include <dlfcn.h>
7427 #endif
7428
7429 #include <stdio.h>
7430
7431 #ifdef RTLD_GLOBAL
7432 #  define LT_DLGLOBAL           RTLD_GLOBAL
7433 #else
7434 #  ifdef DL_GLOBAL
7435 #    define LT_DLGLOBAL         DL_GLOBAL
7436 #  else
7437 #    define LT_DLGLOBAL         0
7438 #  endif
7439 #endif
7440
7441 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7442    find out it does not work in some platform. */
7443 #ifndef LT_DLLAZY_OR_NOW
7444 #  ifdef RTLD_LAZY
7445 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7446 #  else
7447 #    ifdef DL_LAZY
7448 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7449 #    else
7450 #      ifdef RTLD_NOW
7451 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7452 #      else
7453 #        ifdef DL_NOW
7454 #          define LT_DLLAZY_OR_NOW      DL_NOW
7455 #        else
7456 #          define LT_DLLAZY_OR_NOW      0
7457 #        endif
7458 #      endif
7459 #    endif
7460 #  endif
7461 #endif
7462
7463 #ifdef __cplusplus
7464 extern "C" void exit (int);
7465 #endif
7466
7467 void fnord() { int i=42;}
7468 int main ()
7469 {
7470   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7471   int status = $lt_dlunknown;
7472
7473   if (self)
7474     {
7475       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7476       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7477       /* dlclose (self); */
7478     }
7479
7480     exit (status);
7481 }
7482 EOF
7483   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7484   (eval $ac_link) 2>&5
7485   ac_status=$?
7486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7488     (./conftest; exit; ) 2>/dev/null
7489     lt_status=$?
7490     case x$lt_status in
7491       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7492       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7493       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7494     esac
7495   else :
7496     # compilation failed
7497     lt_cv_dlopen_self_static=no
7498   fi
7499 fi
7500 rm -fr conftest*
7501
7502
7503 fi
7504 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7505 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7506     fi
7507
7508     CPPFLAGS="$save_CPPFLAGS"
7509     LDFLAGS="$save_LDFLAGS"
7510     LIBS="$save_LIBS"
7511     ;;
7512   esac
7513
7514   case $lt_cv_dlopen_self in
7515   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7516   *) enable_dlopen_self=unknown ;;
7517   esac
7518
7519   case $lt_cv_dlopen_self_static in
7520   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7521   *) enable_dlopen_self_static=unknown ;;
7522   esac
7523 fi
7524
7525
7526 if test "$enable_shared" = yes && test "$GCC" = yes; then
7527   case $archive_cmds in
7528   *'~'*)
7529     # FIXME: we may have to deal with multi-command sequences.
7530     ;;
7531   '$CC '*)
7532     # Test whether the compiler implicitly links with -lc since on some
7533     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7534     # to ld, don't add -lc before -lgcc.
7535     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7536 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7537     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7538   echo $ECHO_N "(cached) $ECHO_C" >&6
7539 else
7540   $rm conftest*
7541     echo 'static int dummy;' > conftest.$ac_ext
7542
7543     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7544   (eval $ac_compile) 2>&5
7545   ac_status=$?
7546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547   (exit $ac_status); }; then
7548       soname=conftest
7549       lib=conftest
7550       libobjs=conftest.$ac_objext
7551       deplibs=
7552       wl=$lt_cv_prog_cc_wl
7553       compiler_flags=-v
7554       linker_flags=-v
7555       verstring=
7556       output_objdir=.
7557       libname=conftest
7558       save_allow_undefined_flag=$allow_undefined_flag
7559       allow_undefined_flag=
7560       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7561   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7562   ac_status=$?
7563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564   (exit $ac_status); }
7565       then
7566         lt_cv_archive_cmds_need_lc=no
7567       else
7568         lt_cv_archive_cmds_need_lc=yes
7569       fi
7570       allow_undefined_flag=$save_allow_undefined_flag
7571     else
7572       cat conftest.err 1>&5
7573     fi
7574 fi
7575
7576     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7577 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7578     ;;
7579   esac
7580 fi
7581 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7582
7583 # The second clause should only fire when bootstrapping the
7584 # libtool distribution, otherwise you forgot to ship ltmain.sh
7585 # with your package, and you will get complaints that there are
7586 # no rules to generate ltmain.sh.
7587 if test -f "$ltmain"; then
7588   :
7589 else
7590   # If there is no Makefile yet, we rely on a make rule to execute
7591   # `config.status --recheck' to rerun these tests and create the
7592   # libtool script then.
7593   test -f Makefile && make "$ltmain"
7594 fi
7595
7596 if test -f "$ltmain"; then
7597   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7598   $rm -f "${ofile}T"
7599
7600   echo creating $ofile
7601
7602   # Now quote all the things that may contain metacharacters while being
7603   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7604   # variables and quote the copies for generation of the libtool script.
7605   for var in echo old_CC old_CFLAGS SED \
7606     AR AR_FLAGS CC LD LN_S NM SHELL \
7607     reload_flag reload_cmds wl \
7608     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7609     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7610     library_names_spec soname_spec \
7611     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7612     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7613     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7614     old_striplib striplib file_magic_cmd export_symbols_cmds \
7615     deplibs_check_method allow_undefined_flag no_undefined_flag \
7616     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7617     global_symbol_to_c_name_address \
7618     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7619     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7620     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7621
7622     case $var in
7623     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7624     old_postinstall_cmds | old_postuninstall_cmds | \
7625     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7626     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7627     postinstall_cmds | postuninstall_cmds | \
7628     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7629       # Double-quote double-evaled strings.
7630       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7631       ;;
7632     *)
7633       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7634       ;;
7635     esac
7636   done
7637
7638   cat <<__EOF__ > "${ofile}T"
7639 #! $SHELL
7640
7641 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7642 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7643 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7644 #
7645 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7646 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7647 #
7648 # This program is free software; you can redistribute it and/or modify
7649 # it under the terms of the GNU General Public License as published by
7650 # the Free Software Foundation; either version 2 of the License, or
7651 # (at your option) any later version.
7652 #
7653 # This program is distributed in the hope that it will be useful, but
7654 # WITHOUT ANY WARRANTY; without even the implied warranty of
7655 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7656 # General Public License for more details.
7657 #
7658 # You should have received a copy of the GNU General Public License
7659 # along with this program; if not, write to the Free Software
7660 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7661 #
7662 # As a special exception to the GNU General Public License, if you
7663 # distribute this file as part of a program that contains a
7664 # configuration script generated by Autoconf, you may include it under
7665 # the same distribution terms that you use for the rest of that program.
7666
7667 # A sed that does not truncate output.
7668 SED=$lt_SED
7669
7670 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7671 Xsed="${SED} -e s/^X//"
7672
7673 # The HP-UX ksh and POSIX shell print the target directory to stdout
7674 # if CDPATH is set.
7675 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7676
7677 # ### BEGIN LIBTOOL CONFIG
7678
7679 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7680
7681 # Shell to use when invoking shell scripts.
7682 SHELL=$lt_SHELL
7683
7684 # Whether or not to build shared libraries.
7685 build_libtool_libs=$enable_shared
7686
7687 # Whether or not to build static libraries.
7688 build_old_libs=$enable_static
7689
7690 # Whether or not to add -lc for building shared libraries.
7691 build_libtool_need_lc=$need_lc
7692
7693 # Whether or not to optimize for fast installation.
7694 fast_install=$enable_fast_install
7695
7696 # The host system.
7697 host_alias=$host_alias
7698 host=$host
7699
7700 # An echo program that does not interpret backslashes.
7701 echo=$lt_echo
7702
7703 # The archiver.
7704 AR=$lt_AR
7705 AR_FLAGS=$lt_AR_FLAGS
7706
7707 # The default C compiler.
7708 CC=$lt_CC
7709
7710 # Is the compiler the GNU C compiler?
7711 with_gcc=$GCC
7712
7713 # The linker used to build libraries.
7714 LD=$lt_LD
7715
7716 # Whether we need hard or soft links.
7717 LN_S=$lt_LN_S
7718
7719 # A BSD-compatible nm program.
7720 NM=$lt_NM
7721
7722 # A symbol stripping program
7723 STRIP=$STRIP
7724
7725 # Used to examine libraries when file_magic_cmd begins "file"
7726 MAGIC_CMD=$MAGIC_CMD
7727
7728 # Used on cygwin: DLL creation program.
7729 DLLTOOL="$DLLTOOL"
7730
7731 # Used on cygwin: object dumper.
7732 OBJDUMP="$OBJDUMP"
7733
7734 # Used on cygwin: assembler.
7735 AS="$AS"
7736
7737 # The name of the directory that contains temporary libtool files.
7738 objdir=$objdir
7739
7740 # How to create reloadable object files.
7741 reload_flag=$lt_reload_flag
7742 reload_cmds=$lt_reload_cmds
7743
7744 # How to pass a linker flag through the compiler.
7745 wl=$lt_wl
7746
7747 # Object file suffix (normally "o").
7748 objext="$ac_objext"
7749
7750 # Old archive suffix (normally "a").
7751 libext="$libext"
7752
7753 # Executable file suffix (normally "").
7754 exeext="$exeext"
7755
7756 # Additional compiler flags for building library objects.
7757 pic_flag=$lt_pic_flag
7758 pic_mode=$pic_mode
7759
7760 # Does compiler simultaneously support -c and -o options?
7761 compiler_c_o=$lt_compiler_c_o
7762
7763 # Can we write directly to a .lo ?
7764 compiler_o_lo=$lt_compiler_o_lo
7765
7766 # Must we lock files when doing compilation ?
7767 need_locks=$lt_need_locks
7768
7769 # Do we need the lib prefix for modules?
7770 need_lib_prefix=$need_lib_prefix
7771
7772 # Do we need a version for libraries?
7773 need_version=$need_version
7774
7775 # Whether dlopen is supported.
7776 dlopen_support=$enable_dlopen
7777
7778 # Whether dlopen of programs is supported.
7779 dlopen_self=$enable_dlopen_self
7780
7781 # Whether dlopen of statically linked programs is supported.
7782 dlopen_self_static=$enable_dlopen_self_static
7783
7784 # Compiler flag to prevent dynamic linking.
7785 link_static_flag=$lt_link_static_flag
7786
7787 # Compiler flag to turn off builtin functions.
7788 no_builtin_flag=$lt_no_builtin_flag
7789
7790 # Compiler flag to allow reflexive dlopens.
7791 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7792
7793 # Compiler flag to generate shared objects directly from archives.
7794 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7795
7796 # Compiler flag to generate thread-safe objects.
7797 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7798
7799 # Library versioning type.
7800 version_type=$version_type
7801
7802 # Format of library name prefix.
7803 libname_spec=$lt_libname_spec
7804
7805 # List of archive names.  First name is the real one, the rest are links.
7806 # The last name is the one that the linker finds with -lNAME.
7807 library_names_spec=$lt_library_names_spec
7808
7809 # The coded name of the library, if different from the real name.
7810 soname_spec=$lt_soname_spec
7811
7812 # Commands used to build and install an old-style archive.
7813 RANLIB=$lt_RANLIB
7814 old_archive_cmds=$lt_old_archive_cmds
7815 old_postinstall_cmds=$lt_old_postinstall_cmds
7816 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7817
7818 # Create an old-style archive from a shared archive.
7819 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7820
7821 # Create a temporary old-style archive to link instead of a shared archive.
7822 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7823
7824 # Commands used to build and install a shared archive.
7825 archive_cmds=$lt_archive_cmds
7826 archive_expsym_cmds=$lt_archive_expsym_cmds
7827 postinstall_cmds=$lt_postinstall_cmds
7828 postuninstall_cmds=$lt_postuninstall_cmds
7829
7830 # Commands to strip libraries.
7831 old_striplib=$lt_old_striplib
7832 striplib=$lt_striplib
7833
7834 # Method to check whether dependent libraries are shared objects.
7835 deplibs_check_method=$lt_deplibs_check_method
7836
7837 # Command to use when deplibs_check_method == file_magic.
7838 file_magic_cmd=$lt_file_magic_cmd
7839
7840 # Flag that allows shared libraries with undefined symbols to be built.
7841 allow_undefined_flag=$lt_allow_undefined_flag
7842
7843 # Flag that forces no undefined symbols.
7844 no_undefined_flag=$lt_no_undefined_flag
7845
7846 # Commands used to finish a libtool library installation in a directory.
7847 finish_cmds=$lt_finish_cmds
7848
7849 # Same as above, but a single script fragment to be evaled but not shown.
7850 finish_eval=$lt_finish_eval
7851
7852 # Take the output of nm and produce a listing of raw symbols and C names.
7853 global_symbol_pipe=$lt_global_symbol_pipe
7854
7855 # Transform the output of nm in a proper C declaration
7856 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7857
7858 # Transform the output of nm in a C name address pair
7859 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7860
7861 # This is the shared library runtime path variable.
7862 runpath_var=$runpath_var
7863
7864 # This is the shared library path variable.
7865 shlibpath_var=$shlibpath_var
7866
7867 # Is shlibpath searched before the hard-coded library search path?
7868 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7869
7870 # How to hardcode a shared library path into an executable.
7871 hardcode_action=$hardcode_action
7872
7873 # Whether we should hardcode library paths into libraries.
7874 hardcode_into_libs=$hardcode_into_libs
7875
7876 # Flag to hardcode \$libdir into a binary during linking.
7877 # This must work even if \$libdir does not exist.
7878 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7879
7880 # Whether we need a single -rpath flag with a separated argument.
7881 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7882
7883 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7884 # resulting binary.
7885 hardcode_direct=$hardcode_direct
7886
7887 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7888 # resulting binary.
7889 hardcode_minus_L=$hardcode_minus_L
7890
7891 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7892 # the resulting binary.
7893 hardcode_shlibpath_var=$hardcode_shlibpath_var
7894
7895 # Variables whose values should be saved in libtool wrapper scripts and
7896 # restored at relink time.
7897 variables_saved_for_relink="$variables_saved_for_relink"
7898
7899 # Whether libtool must link a program against all its dependency libraries.
7900 link_all_deplibs=$link_all_deplibs
7901
7902 # Compile-time system search path for libraries
7903 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7904
7905 # Run-time system search path for libraries
7906 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7907
7908 # Fix the shell variable \$srcfile for the compiler.
7909 fix_srcfile_path="$fix_srcfile_path"
7910
7911 # Set to yes if exported symbols are required.
7912 always_export_symbols=$always_export_symbols
7913
7914 # The commands to list exported symbols.
7915 export_symbols_cmds=$lt_export_symbols_cmds
7916
7917 # The commands to extract the exported symbol list from a shared archive.
7918 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7919
7920 # Symbols that should not be listed in the preloaded symbols.
7921 exclude_expsyms=$lt_exclude_expsyms
7922
7923 # Symbols that must always be exported.
7924 include_expsyms=$lt_include_expsyms
7925
7926 # ### END LIBTOOL CONFIG
7927
7928 __EOF__
7929
7930   case $host_os in
7931   aix3*)
7932     cat <<\EOF >> "${ofile}T"
7933
7934 # AIX sometimes has problems with the GCC collect2 program.  For some
7935 # reason, if we set the COLLECT_NAMES environment variable, the problems
7936 # vanish in a puff of smoke.
7937 if test "X${COLLECT_NAMES+set}" != Xset; then
7938   COLLECT_NAMES=
7939   export COLLECT_NAMES
7940 fi
7941 EOF
7942     ;;
7943   esac
7944
7945   case $host_os in
7946   cygwin* | mingw* | pw32* | os2*)
7947     cat <<'EOF' >> "${ofile}T"
7948       # This is a source program that is used to create dlls on Windows
7949       # Don't remove nor modify the starting and closing comments
7950 # /* ltdll.c starts here */
7951 # #define WIN32_LEAN_AND_MEAN
7952 # #include <windows.h>
7953 # #undef WIN32_LEAN_AND_MEAN
7954 # #include <stdio.h>
7955 #
7956 # #ifndef __CYGWIN__
7957 # #  ifdef __CYGWIN32__
7958 # #    define __CYGWIN__ __CYGWIN32__
7959 # #  endif
7960 # #endif
7961 #
7962 # #ifdef __cplusplus
7963 # extern "C" {
7964 # #endif
7965 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7966 # #ifdef __cplusplus
7967 # }
7968 # #endif
7969 #
7970 # #ifdef __CYGWIN__
7971 # #include <cygwin/cygwin_dll.h>
7972 # DECLARE_CYGWIN_DLL( DllMain );
7973 # #endif
7974 # HINSTANCE __hDllInstance_base;
7975 #
7976 # BOOL APIENTRY
7977 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7978 # {
7979 #   __hDllInstance_base = hInst;
7980 #   return TRUE;
7981 # }
7982 # /* ltdll.c ends here */
7983         # This is a source program that is used to create import libraries
7984         # on Windows for dlls which lack them. Don't remove nor modify the
7985         # starting and closing comments
7986 # /* impgen.c starts here */
7987 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7988 #
7989 #  This file is part of GNU libtool.
7990 #
7991 #  This program is free software; you can redistribute it and/or modify
7992 #  it under the terms of the GNU General Public License as published by
7993 #  the Free Software Foundation; either version 2 of the License, or
7994 #  (at your option) any later version.
7995 #
7996 #  This program is distributed in the hope that it will be useful,
7997 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7998 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7999 #  GNU General Public License for more details.
8000 #
8001 #  You should have received a copy of the GNU General Public License
8002 #  along with this program; if not, write to the Free Software
8003 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8004 #  */
8005 #
8006 # #include <stdio.h>            /* for printf() */
8007 # #include <unistd.h>           /* for open(), lseek(), read() */
8008 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8009 # #include <string.h>           /* for strdup() */
8010 #
8011 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8012 # #ifndef O_BINARY
8013 # #define O_BINARY 0
8014 # #endif
8015 #
8016 # static unsigned int
8017 # pe_get16 (fd, offset)
8018 #      int fd;
8019 #      int offset;
8020 # {
8021 #   unsigned char b[2];
8022 #   lseek (fd, offset, SEEK_SET);
8023 #   read (fd, b, 2);
8024 #   return b[0] + (b[1]<<8);
8025 # }
8026 #
8027 # static unsigned int
8028 # pe_get32 (fd, offset)
8029 #     int fd;
8030 #     int offset;
8031 # {
8032 #   unsigned char b[4];
8033 #   lseek (fd, offset, SEEK_SET);
8034 #   read (fd, b, 4);
8035 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8036 # }
8037 #
8038 # static unsigned int
8039 # pe_as32 (ptr)
8040 #      void *ptr;
8041 # {
8042 #   unsigned char *b = ptr;
8043 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8044 # }
8045 #
8046 # int
8047 # main (argc, argv)
8048 #     int argc;
8049 #     char *argv[];
8050 # {
8051 #     int dll;
8052 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8053 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8054 #     unsigned long name_rvas, nexp;
8055 #     unsigned char *expdata, *erva;
8056 #     char *filename, *dll_name;
8057 #
8058 #     filename = argv[1];
8059 #
8060 #     dll = open(filename, O_RDONLY|O_BINARY);
8061 #     if (dll < 1)
8062 #       return 1;
8063 #
8064 #     dll_name = filename;
8065 #
8066 #     for (i=0; filename[i]; i++)
8067 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8068 #           dll_name = filename + i +1;
8069 #
8070 #     pe_header_offset = pe_get32 (dll, 0x3c);
8071 #     opthdr_ofs = pe_header_offset + 4 + 20;
8072 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8073 #
8074 #     if (num_entries < 1) /* no exports */
8075 #       return 1;
8076 #
8077 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8078 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8079 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8080 #     secptr = (pe_header_offset + 4 + 20 +
8081 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8082 #
8083 #     expptr = 0;
8084 #     for (i = 0; i < nsections; i++)
8085 #     {
8086 #       char sname[8];
8087 #       unsigned long secptr1 = secptr + 40 * i;
8088 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8089 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8090 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8091 #       lseek(dll, secptr1, SEEK_SET);
8092 #       read(dll, sname, 8);
8093 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8094 #       {
8095 #           expptr = fptr + (export_rva - vaddr);
8096 #           if (export_rva + export_size > vaddr + vsize)
8097 #               export_size = vsize - (export_rva - vaddr);
8098 #           break;
8099 #       }
8100 #     }
8101 #
8102 #     expdata = (unsigned char*)malloc(export_size);
8103 #     lseek (dll, expptr, SEEK_SET);
8104 #     read (dll, expdata, export_size);
8105 #     erva = expdata - export_rva;
8106 #
8107 #     nexp = pe_as32 (expdata+24);
8108 #     name_rvas = pe_as32 (expdata+32);
8109 #
8110 #     printf ("EXPORTS\n");
8111 #     for (i = 0; i<nexp; i++)
8112 #     {
8113 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8114 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8115 #     }
8116 #
8117 #     return 0;
8118 # }
8119 # /* impgen.c ends here */
8120
8121 EOF
8122     ;;
8123   esac
8124
8125   # We use sed instead of cat because bash on DJGPP gets confused if
8126   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8127   # text mode, it properly converts lines to CR/LF.  This bash problem
8128   # is reportedly fixed, but why not run on old versions too?
8129   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8130
8131   mv -f "${ofile}T" "$ofile" || \
8132     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8133   chmod +x "$ofile"
8134 fi
8135
8136
8137
8138
8139
8140 # This can be used to rebuild libtool when needed
8141 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8142
8143 # Always use our own libtool.
8144 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8145
8146 # Prevent multiple expansion
8147
8148
8149  for ac_prog in gzip uncompress compress
8150 do
8151   # Extract the first word of "$ac_prog", so it can be a program name with args.
8152 set dummy $ac_prog; ac_word=$2
8153 echo "$as_me:$LINENO: checking for $ac_word" >&5
8154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8155 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8156   echo $ECHO_N "(cached) $ECHO_C" >&6
8157 else
8158   if test -n "$UNCOMPRESS"; then
8159   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8160 else
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 for as_dir in $PATH
8163 do
8164   IFS=$as_save_IFS
8165   test -z "$as_dir" && as_dir=.
8166   for ac_exec_ext in '' $ac_executable_extensions; do
8167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8168     ac_cv_prog_UNCOMPRESS="$ac_prog"
8169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8170     break 2
8171   fi
8172 done
8173 done
8174
8175 fi
8176 fi
8177 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8178 if test -n "$UNCOMPRESS"; then
8179   echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8180 echo "${ECHO_T}$UNCOMPRESS" >&6
8181 else
8182   echo "$as_me:$LINENO: result: no" >&5
8183 echo "${ECHO_T}no" >&6
8184 fi
8185
8186   test -n "$UNCOMPRESS" && break
8187 done
8188
8189
8190
8191
8192
8193
8194
8195
8196 echo "$as_me:$LINENO: checking for target system" >&5
8197 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8198 CYGWIN=
8199 MINGW=
8200 case $host_os in
8201     *cygwin* ) CYGWIN=yes;;
8202     *mingw* ) MINGW=yes;;
8203 esac
8204
8205 AR=ar
8206 if test "x$MINGW" = "xyes"; then
8207     #fix for the debian distribution of mingw
8208     if test -x "/usr/i586-mingw32msvc/bin/ar";then
8209         AR="/usr/i586-mingw32msvc/bin/ar"
8210     fi
8211     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8212         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8213     fi
8214     #fix for the gentoo distribution of mingw
8215     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8216         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8217     fi
8218     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8219         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8220     fi
8221     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8222         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8223     fi
8224 fi
8225
8226
8227
8228 if test "x${CYGWIN}" = "xyes"; then
8229     cat >>confdefs.h <<_ACEOF
8230 #define CYGWIN 1
8231 _ACEOF
8232
8233     echo "$as_me:$LINENO: result: cygwin" >&5
8234 echo "${ECHO_T}cygwin" >&6
8235 else
8236     if test "x${MINGW}" = "xyes"; then
8237         cat >>confdefs.h <<_ACEOF
8238 #define MINGW 1
8239 _ACEOF
8240
8241         WIN32=1
8242         cat >>confdefs.h <<_ACEOF
8243 #define WIN32 1
8244 _ACEOF
8245
8246         LIBS="$LIBS -lws2_32"
8247         echo "$as_me:$LINENO: result: mingw" >&5
8248 echo "${ECHO_T}mingw" >&6
8249     else
8250         LINUX=1
8251         export LINUX
8252         cat >>confdefs.h <<_ACEOF
8253 #define LINUX 1
8254 _ACEOF
8255
8256         echo "$as_me:$LINENO: result: " >&5
8257 echo "${ECHO_T}" >&6
8258     fi
8259 fi
8260
8261
8262 SLEXT="so"
8263 if test "x${MINGW}" != "xyes"; then
8264     cat >>confdefs.h <<_ACEOF
8265 #define O_BINARY 0
8266 _ACEOF
8267
8268     SLEXT="dll"
8269 fi
8270 export SLEXT
8271
8272
8273 # The following tries to make use of includes and libraries in
8274 # /usr/local, too. Notice: A -I/usr/local/include might break
8275 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8276 # especially on systems which link /usr/local to /usr, so it has yet
8277 # to be seen how useful this is.
8278 if test -d /usr/local/lib; then
8279     LDFLAGS="$LDFLAGS -L/usr/local/lib"
8280 fi
8281 if test -d /usr/local/include; then
8282 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8283 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8284     echo > /dev/null
8285 fi
8286 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8287     # if the user has a special prefix (like /opt), there might also be $prefix/lib
8288     # and $prefix/include, which should be included in our search paths for libraries
8289     # and includes.
8290     LDFLAGS="$LDFLAGS -L${libdir}"
8291     CPPFLAGS="$CPPFLAGS -I${includedir}"
8292     # TODO- test whether gcc still works after this
8293 fi
8294
8295 # this must be done after (I believe) AC_PROG_MAKE_SET
8296 if test "x$DEBUG" '!=' "x";then
8297     STRIP="@echo debug enabled, not stripping "
8298     export STRIP
8299
8300 fi
8301
8302
8303 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8304 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8305 if test "${ac_cv_lib_m_sin+set}" = set; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   ac_check_lib_save_LIBS=$LIBS
8309 LIBS="-lm  $LIBS"
8310 cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h.  */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h.  */
8316
8317 /* Override any gcc2 internal prototype to avoid an error.  */
8318 #ifdef __cplusplus
8319 extern "C"
8320 #endif
8321 /* We use char because int might match the return type of a gcc2
8322    builtin and then its argument prototype would still apply.  */
8323 char sin ();
8324 int
8325 main ()
8326 {
8327 sin ();
8328   ;
8329   return 0;
8330 }
8331 _ACEOF
8332 rm -f conftest.$ac_objext conftest$ac_exeext
8333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8334   (eval $ac_link) 2>conftest.er1
8335   ac_status=$?
8336   grep -v '^ *+' conftest.er1 >conftest.err
8337   rm -f conftest.er1
8338   cat conftest.err >&5
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); } &&
8341          { ac_try='test -z "$ac_c_werror_flag"
8342                          || test ! -s conftest.err'
8343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344   (eval $ac_try) 2>&5
8345   ac_status=$?
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); }; } &&
8348          { ac_try='test -s conftest$ac_exeext'
8349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350   (eval $ac_try) 2>&5
8351   ac_status=$?
8352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353   (exit $ac_status); }; }; then
8354   ac_cv_lib_m_sin=yes
8355 else
8356   echo "$as_me: failed program was:" >&5
8357 sed 's/^/| /' conftest.$ac_ext >&5
8358
8359 ac_cv_lib_m_sin=no
8360 fi
8361 rm -f conftest.err conftest.$ac_objext \
8362       conftest$ac_exeext conftest.$ac_ext
8363 LIBS=$ac_check_lib_save_LIBS
8364 fi
8365 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8366 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8367 if test $ac_cv_lib_m_sin = yes; then
8368   cat >>confdefs.h <<_ACEOF
8369 #define HAVE_LIBM 1
8370 _ACEOF
8371
8372   LIBS="-lm $LIBS"
8373
8374 else
8375   echo "Error: Math library not found.";
8376  exit;
8377
8378 fi
8379
8380
8381 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8382 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8383 if test "${ac_cv_lib_z_deflate+set}" = set; then
8384   echo $ECHO_N "(cached) $ECHO_C" >&6
8385 else
8386   ac_check_lib_save_LIBS=$LIBS
8387 LIBS="-lz  $LIBS"
8388 cat >conftest.$ac_ext <<_ACEOF
8389 /* confdefs.h.  */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h.  */
8394
8395 /* Override any gcc2 internal prototype to avoid an error.  */
8396 #ifdef __cplusplus
8397 extern "C"
8398 #endif
8399 /* We use char because int might match the return type of a gcc2
8400    builtin and then its argument prototype would still apply.  */
8401 char deflate ();
8402 int
8403 main ()
8404 {
8405 deflate ();
8406   ;
8407   return 0;
8408 }
8409 _ACEOF
8410 rm -f conftest.$ac_objext conftest$ac_exeext
8411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8412   (eval $ac_link) 2>conftest.er1
8413   ac_status=$?
8414   grep -v '^ *+' conftest.er1 >conftest.err
8415   rm -f conftest.er1
8416   cat conftest.err >&5
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); } &&
8419          { ac_try='test -z "$ac_c_werror_flag"
8420                          || test ! -s conftest.err'
8421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422   (eval $ac_try) 2>&5
8423   ac_status=$?
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); }; } &&
8426          { ac_try='test -s conftest$ac_exeext'
8427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428   (eval $ac_try) 2>&5
8429   ac_status=$?
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); }; }; then
8432   ac_cv_lib_z_deflate=yes
8433 else
8434   echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8436
8437 ac_cv_lib_z_deflate=no
8438 fi
8439 rm -f conftest.err conftest.$ac_objext \
8440       conftest$ac_exeext conftest.$ac_ext
8441 LIBS=$ac_check_lib_save_LIBS
8442 fi
8443 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8444 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8445 if test $ac_cv_lib_z_deflate = yes; then
8446   cat >>confdefs.h <<_ACEOF
8447 #define HAVE_LIBZ 1
8448 _ACEOF
8449
8450   LIBS="-lz $LIBS"
8451
8452 else
8453   DISABLEPNG2SWF=true;
8454  MISSINGLIBS="${MISSINGLIBS} zlib"
8455  ZLIBMISSING=true;
8456
8457 fi
8458
8459
8460 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8461 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8462 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8463   echo $ECHO_N "(cached) $ECHO_C" >&6
8464 else
8465   ac_check_lib_save_LIBS=$LIBS
8466 LIBS="-ljpeg  $LIBS"
8467 cat >conftest.$ac_ext <<_ACEOF
8468 /* confdefs.h.  */
8469 _ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h.  */
8473
8474 /* Override any gcc2 internal prototype to avoid an error.  */
8475 #ifdef __cplusplus
8476 extern "C"
8477 #endif
8478 /* We use char because int might match the return type of a gcc2
8479    builtin and then its argument prototype would still apply.  */
8480 char jpeg_write_raw_data ();
8481 int
8482 main ()
8483 {
8484 jpeg_write_raw_data ();
8485   ;
8486   return 0;
8487 }
8488 _ACEOF
8489 rm -f conftest.$ac_objext conftest$ac_exeext
8490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8491   (eval $ac_link) 2>conftest.er1
8492   ac_status=$?
8493   grep -v '^ *+' conftest.er1 >conftest.err
8494   rm -f conftest.er1
8495   cat conftest.err >&5
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); } &&
8498          { ac_try='test -z "$ac_c_werror_flag"
8499                          || test ! -s conftest.err'
8500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501   (eval $ac_try) 2>&5
8502   ac_status=$?
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); }; } &&
8505          { ac_try='test -s conftest$ac_exeext'
8506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507   (eval $ac_try) 2>&5
8508   ac_status=$?
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); }; }; then
8511   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8512 else
8513   echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8517 fi
8518 rm -f conftest.err conftest.$ac_objext \
8519       conftest$ac_exeext conftest.$ac_ext
8520 LIBS=$ac_check_lib_save_LIBS
8521 fi
8522 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8523 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8524 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8525   cat >>confdefs.h <<_ACEOF
8526 #define HAVE_LIBJPEG 1
8527 _ACEOF
8528
8529   LIBS="-ljpeg $LIBS"
8530
8531 else
8532   DISABLEPDF2SWF=true;
8533  DISABLEJPEG2SWF=true;
8534  MISSINGLIBS="${MISSINGLIBS} jpeglib"
8535
8536 fi
8537
8538
8539 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8540 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8541 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8542   echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544   ac_check_lib_save_LIBS=$LIBS
8545 LIBS="-lt1  $LIBS"
8546 cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h.  */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h.  */
8552
8553 /* Override any gcc2 internal prototype to avoid an error.  */
8554 #ifdef __cplusplus
8555 extern "C"
8556 #endif
8557 /* We use char because int might match the return type of a gcc2
8558    builtin and then its argument prototype would still apply.  */
8559 char T1_LoadFont ();
8560 int
8561 main ()
8562 {
8563 T1_LoadFont ();
8564   ;
8565   return 0;
8566 }
8567 _ACEOF
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570   (eval $ac_link) 2>conftest.er1
8571   ac_status=$?
8572   grep -v '^ *+' conftest.er1 >conftest.err
8573   rm -f conftest.er1
8574   cat conftest.err >&5
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); } &&
8577          { ac_try='test -z "$ac_c_werror_flag"
8578                          || test ! -s conftest.err'
8579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580   (eval $ac_try) 2>&5
8581   ac_status=$?
8582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583   (exit $ac_status); }; } &&
8584          { ac_try='test -s conftest$ac_exeext'
8585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586   (eval $ac_try) 2>&5
8587   ac_status=$?
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); }; }; then
8590   ac_cv_lib_t1_T1_LoadFont=yes
8591 else
8592   echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8594
8595 ac_cv_lib_t1_T1_LoadFont=no
8596 fi
8597 rm -f conftest.err conftest.$ac_objext \
8598       conftest$ac_exeext conftest.$ac_ext
8599 LIBS=$ac_check_lib_save_LIBS
8600 fi
8601 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8602 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8603 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8604   cat >>confdefs.h <<_ACEOF
8605 #define HAVE_LIBT1 1
8606 _ACEOF
8607
8608   LIBS="-lt1 $LIBS"
8609
8610 else
8611   DISABLEPDF2SWF=true;
8612  MISSINGLIBS="${MISSINGLIBS} t1lib"
8613
8614 fi
8615
8616
8617
8618 for ac_prog in freetype-config
8619 do
8620   # Extract the first word of "$ac_prog", so it can be a program name with args.
8621 set dummy $ac_prog; ac_word=$2
8622 echo "$as_me:$LINENO: checking for $ac_word" >&5
8623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8624 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
8625   echo $ECHO_N "(cached) $ECHO_C" >&6
8626 else
8627   if test -n "$FREETYPE_CONFIG"; then
8628   ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
8629 else
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 for as_dir in $PATH
8632 do
8633   IFS=$as_save_IFS
8634   test -z "$as_dir" && as_dir=.
8635   for ac_exec_ext in '' $ac_executable_extensions; do
8636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8637     ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
8638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8639     break 2
8640   fi
8641 done
8642 done
8643
8644 fi
8645 fi
8646 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
8647 if test -n "$FREETYPE_CONFIG"; then
8648   echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8649 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
8650 else
8651   echo "$as_me:$LINENO: result: no" >&5
8652 echo "${ECHO_T}no" >&6
8653 fi
8654
8655   test -n "$FREETYPE_CONFIG" && break
8656 done
8657
8658 OLDCPPFLAGS="${CPPFLAGS}"
8659 OLDLIBS="${LIBS}"
8660 if test "x${FREETYPE_CONFIG}" != "x"; then
8661     CPPFLAGS="$CPPFLAGS "`freetype-config --cflags`
8662 else if test -d /usr/include/freetype2; then
8663     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8664 else if test -d /usr/local/include/freetype2; then
8665     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8666 fi
8667 fi
8668 fi
8669 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8670 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8671 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8672   echo $ECHO_N "(cached) $ECHO_C" >&6
8673 else
8674   ac_check_lib_save_LIBS=$LIBS
8675 LIBS="-lfreetype  $LIBS"
8676 cat >conftest.$ac_ext <<_ACEOF
8677 /* confdefs.h.  */
8678 _ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h.  */
8682
8683 /* Override any gcc2 internal prototype to avoid an error.  */
8684 #ifdef __cplusplus
8685 extern "C"
8686 #endif
8687 /* We use char because int might match the return type of a gcc2
8688    builtin and then its argument prototype would still apply.  */
8689 char FT_Init_FreeType ();
8690 int
8691 main ()
8692 {
8693 FT_Init_FreeType ();
8694   ;
8695   return 0;
8696 }
8697 _ACEOF
8698 rm -f conftest.$ac_objext conftest$ac_exeext
8699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8700   (eval $ac_link) 2>conftest.er1
8701   ac_status=$?
8702   grep -v '^ *+' conftest.er1 >conftest.err
8703   rm -f conftest.er1
8704   cat conftest.err >&5
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); } &&
8707          { ac_try='test -z "$ac_c_werror_flag"
8708                          || test ! -s conftest.err'
8709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710   (eval $ac_try) 2>&5
8711   ac_status=$?
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); }; } &&
8714          { ac_try='test -s conftest$ac_exeext'
8715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716   (eval $ac_try) 2>&5
8717   ac_status=$?
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); }; }; then
8720   ac_cv_lib_freetype_FT_Init_FreeType=yes
8721 else
8722   echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8724
8725 ac_cv_lib_freetype_FT_Init_FreeType=no
8726 fi
8727 rm -f conftest.err conftest.$ac_objext \
8728       conftest$ac_exeext conftest.$ac_ext
8729 LIBS=$ac_check_lib_save_LIBS
8730 fi
8731 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8732 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8733 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8734   HAVE_LIB_FREETYPE=1
8735 fi
8736
8737
8738 for ac_header in freetype/freetype.h
8739 do
8740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8742   echo "$as_me:$LINENO: checking for $ac_header" >&5
8743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8745   echo $ECHO_N "(cached) $ECHO_C" >&6
8746 fi
8747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8749 else
8750   # Is the header compilable?
8751 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8753 cat >conftest.$ac_ext <<_ACEOF
8754 /* confdefs.h.  */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h.  */
8759 $ac_includes_default
8760 #include <$ac_header>
8761 _ACEOF
8762 rm -f conftest.$ac_objext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764   (eval $ac_compile) 2>conftest.er1
8765   ac_status=$?
8766   grep -v '^ *+' conftest.er1 >conftest.err
8767   rm -f conftest.er1
8768   cat conftest.err >&5
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); } &&
8771          { ac_try='test -z "$ac_c_werror_flag"
8772                          || test ! -s conftest.err'
8773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774   (eval $ac_try) 2>&5
8775   ac_status=$?
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); }; } &&
8778          { ac_try='test -s conftest.$ac_objext'
8779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780   (eval $ac_try) 2>&5
8781   ac_status=$?
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); }; }; then
8784   ac_header_compiler=yes
8785 else
8786   echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8788
8789 ac_header_compiler=no
8790 fi
8791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8793 echo "${ECHO_T}$ac_header_compiler" >&6
8794
8795 # Is the header present?
8796 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8798 cat >conftest.$ac_ext <<_ACEOF
8799 /* confdefs.h.  */
8800 _ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h.  */
8804 #include <$ac_header>
8805 _ACEOF
8806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8807   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8808   ac_status=$?
8809   grep -v '^ *+' conftest.er1 >conftest.err
8810   rm -f conftest.er1
8811   cat conftest.err >&5
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); } >/dev/null; then
8814   if test -s conftest.err; then
8815     ac_cpp_err=$ac_c_preproc_warn_flag
8816     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8817   else
8818     ac_cpp_err=
8819   fi
8820 else
8821   ac_cpp_err=yes
8822 fi
8823 if test -z "$ac_cpp_err"; then
8824   ac_header_preproc=yes
8825 else
8826   echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8828
8829   ac_header_preproc=no
8830 fi
8831 rm -f conftest.err conftest.$ac_ext
8832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8833 echo "${ECHO_T}$ac_header_preproc" >&6
8834
8835 # So?  What about this header?
8836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8837   yes:no: )
8838     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8840     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8842     ac_header_preproc=yes
8843     ;;
8844   no:yes:* )
8845     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8847     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8848 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8849     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8851     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8852 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8855     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8857     (
8858       cat <<\_ASBOX
8859 ## ------------------------------------------ ##
8860 ## Report this to the AC_PACKAGE_NAME lists.  ##
8861 ## ------------------------------------------ ##
8862 _ASBOX
8863     ) |
8864       sed "s/^/$as_me: WARNING:     /" >&2
8865     ;;
8866 esac
8867 echo "$as_me:$LINENO: checking for $ac_header" >&5
8868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8870   echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872   eval "$as_ac_Header=\$ac_header_preproc"
8873 fi
8874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8876
8877 fi
8878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8879   cat >>confdefs.h <<_ACEOF
8880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8881 _ACEOF
8882  HAVE_FREETYPE_FREETYPE_H=1
8883 fi
8884
8885 done
8886
8887 if test "x${HAVE_LIB_FREETYPE}" != "x";then
8888 if test "x${HAVE_FREETYPE_FREETYPE_H}" != "x";then
8889     HAVE_FREETYPE=1
8890 fi
8891 fi
8892
8893 if test "x${HAVE_FREETYPE}" = "x1"; then
8894     if test "x{$FREETYPE_CONFIG}" != "x"; then
8895         LIBS="$LIBS "`freetype-config --libs`
8896     else
8897         LIBS="$LIBS -lfreetype"
8898     fi
8899
8900     echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8901 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
8902
8903     cat > conftest.c << EOF
8904 #include <freetype/freetype.h>
8905 #include <freetype/ftglyph.h>
8906 #include <freetype/ftsnames.h>
8907 #include <freetype/ttnameid.h>
8908 #include <freetype/ftoutln.h>
8909
8910 int main()
8911 {
8912     FT_Library ftlibrary;
8913     FT_Face face;
8914     FT_Error error;
8915     FT_ULong charcode;
8916     FT_UInt gindex;
8917     FT_Glyph glyph;
8918     FT_BBox bbox;
8919     FT_Matrix matrix;
8920     FT_UInt i;
8921     char* name = 0;
8922     char italic, bold;
8923
8924     FT_Init_FreeType(&ftlibrary);
8925     FT_New_Face(ftlibrary, "filename", 0, &face);
8926     i = face->num_glyphs - 1;
8927     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8928     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8929     FT_Get_Postscript_Name(face);
8930     FT_Get_Char_Index(face, 33);
8931     FT_Get_First_Char(face, &i);
8932     FT_Get_Next_Char(face, 33, &i);
8933     if(FT_HAS_GLYPH_NAMES(face)) {
8934         FT_Get_Glyph_Name(face, 33, name, 127);
8935     }
8936     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8937     FT_Get_Glyph(face->glyph, &glyph);
8938     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8939     FT_Done_Glyph(glyph);
8940     FT_Done_Face(face);
8941     FT_Done_FreeType(ftlibrary);
8942     return 0;
8943 }
8944 EOF
8945
8946     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8947     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8948         echo "$as_me:$LINENO: result: yes" >&5
8949 echo "${ECHO_T}yes" >&6
8950         cat >>confdefs.h <<_ACEOF
8951 #define HAVE_FREETYPE 1
8952 _ACEOF
8953
8954         cat >>confdefs.h <<_ACEOF
8955 #define USE_FREETYPE 1
8956 _ACEOF
8957   # for ttf2tp1
8958     else
8959         echo "configure: failed program was:" >&5
8960         cat conftest.c >&5
8961         HAVE_FREETYPE=0
8962         echo "$as_me:$LINENO: result: no" >&5
8963 echo "${ECHO_T}no" >&6
8964     fi
8965     rm -f conftest*
8966 fi
8967
8968 # if the above didn't work out, reset all changes to the compiler variables.
8969 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
8970     CPPFLAGS=$OLDCPPFLAGS
8971     LIBS=$OLDLIBS
8972 fi
8973
8974
8975
8976 echo "$as_me:$LINENO: checking for byte order" >&5
8977 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8978 if test "$cross_compiling" = yes; then
8979   CROSSCOMPILE=1
8980 else
8981   cat >conftest.$ac_ext <<_ACEOF
8982 /* confdefs.h.  */
8983 _ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h.  */
8987
8988 int main (int argc, char *argv[])
8989 {
8990     int i = 1;
8991     return *(char*)&i;
8992 }
8993
8994 _ACEOF
8995 rm -f conftest$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997   (eval $ac_link) 2>&5
8998   ac_status=$?
8999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002   (eval $ac_try) 2>&5
9003   ac_status=$?
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); }; }; then
9006   BIGENDIAN=1
9007 else
9008   echo "$as_me: program exited with status $ac_status" >&5
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9011
9012 ( exit $ac_status )
9013 LITTLEENDIAN=1
9014 fi
9015 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9016 fi
9017 export CROSSCOMPILE
9018
9019 if test "x${CROSSCOMPILE}" = "x1"; then
9020  echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
9021 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
9022  echo "$as_me:$LINENO: checking target system type" >&5
9023 echo $ECHO_N "checking target system type... $ECHO_C" >&6
9024 if test "${ac_cv_target+set}" = set; then
9025   echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027   ac_cv_target_alias=$target_alias
9028 test "x$ac_cv_target_alias" = "x" &&
9029   ac_cv_target_alias=$ac_cv_host_alias
9030 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
9031   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
9032 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
9033    { (exit 1); exit 1; }; }
9034
9035 fi
9036 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
9037 echo "${ECHO_T}$ac_cv_target" >&6
9038 target=$ac_cv_target
9039 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9040 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9041 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9042
9043
9044 # The aliases save the names the user supplied, while $host etc.
9045 # will get canonicalized.
9046 test -n "$target_alias" &&
9047   test "$program_prefix$program_suffix$program_transform_name" = \
9048     NONENONEs,x,x, &&
9049   program_prefix=${target_alias}-
9050  echo "$as_me:$LINENO: checking for byte order, try 2" >&5
9051 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
9052  case "${target}" in
9053   *86* | *-pc-* )
9054      LITTLEENDIAN=1
9055      ;;
9056   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
9057      BIGENDIAN=1
9058      ;;
9059  esac
9060 fi
9061
9062 export LITTLEENDIAN
9063 if test "x${LITTLEENDIAN}" = "x1"; then
9064 echo "$as_me:$LINENO: result: little endian" >&5
9065 echo "${ECHO_T}little endian" >&6
9066 BYTEORDERCHECKOK=1
9067 fi
9068 export BIGENDIAN
9069 if test "x${BIGENDIAN}" = "x1"; then
9070 echo "$as_me:$LINENO: result: big endian" >&5
9071 echo "${ECHO_T}big endian" >&6
9072 BYTEORDERCHECKOK=1
9073 WORDS_BIGENDIAN=1
9074 export WORDS_BIGENDIAN
9075 cat >>confdefs.h <<_ACEOF
9076 #define WORDS_BIGENDIAN 1
9077 _ACEOF
9078
9079 fi
9080 if test "x${BYTEORDERCHECKOK}" != "x1"; then
9081 echo "$as_me:$LINENO: result: unknown" >&5
9082 echo "${ECHO_T}unknown" >&6
9083 echo Byte order could not determined.
9084 exit 1
9085 fi
9086
9087
9088
9089 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
9090 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
9091 if test "$cross_compiling" = yes; then
9092   CROSSCOMPILE=1
9093 else
9094   cat >conftest.$ac_ext <<_ACEOF
9095 /* confdefs.h.  */
9096 _ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h.  */
9100
9101 #include "stdlib.h"
9102 int main (int argc, char*argv[])
9103 {
9104     return system("test `touch config.tmp2`");
9105 }
9106
9107 _ACEOF
9108 rm -f conftest$ac_exeext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110   (eval $ac_link) 2>&5
9111   ac_status=$?
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115   (eval $ac_try) 2>&5
9116   ac_status=$?
9117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118   (exit $ac_status); }; }; then
9119   OK=OK
9120 else
9121   echo "$as_me: program exited with status $ac_status" >&5
9122 echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9124
9125 fi
9126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9127 fi
9128
9129 if test "x${OK}" = "xOK";then
9130     test -f config.tmp2 || OK=
9131 fi
9132
9133 if test "x${CROSSCOMPILE}" = "x1";then
9134     OK=OK;
9135 fi
9136 if test "x${OK}" = "xOK";then
9137 rm -f config.tmp2
9138 echo "$as_me:$LINENO: result: yes" >&5
9139 echo "${ECHO_T}yes" >&6
9140 SYSTEM_BACKTICKS=1
9141 export SYSTEM_BACKTICKS
9142 cat >>confdefs.h <<_ACEOF
9143 #define SYSTEM_BACKTICKS 1
9144 _ACEOF
9145
9146 else
9147 echo "$as_me:$LINENO: result: no" >&5
9148 echo "${ECHO_T}no" >&6
9149 fi
9150
9151
9152
9153 test "$program_prefix" != NONE &&
9154   program_transform_name="s,^,$program_prefix,;$program_transform_name"
9155 # Use a double $ so make ignores it.
9156 test "$program_suffix" != NONE &&
9157   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9158 # Double any \ or $.  echo might interpret backslashes.
9159 # By default was `s,x,x', remove it if useless.
9160 cat <<\_ACEOF >conftest.sed
9161 s/[\\$]/&&/g;s/;s,x,x,$//
9162 _ACEOF
9163 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
9164 rm conftest.sed
9165
9166
9167            ac_config_headers="$ac_config_headers config.h"
9168
9169
9170
9171
9172
9173
9174 ac_header_dirent=no
9175 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9176   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9177 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9178 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9180   echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182   cat >conftest.$ac_ext <<_ACEOF
9183 /* confdefs.h.  */
9184 _ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h.  */
9188 #include <sys/types.h>
9189 #include <$ac_hdr>
9190
9191 int
9192 main ()
9193 {
9194 if ((DIR *) 0)
9195 return 0;
9196   ;
9197   return 0;
9198 }
9199 _ACEOF
9200 rm -f conftest.$ac_objext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9202   (eval $ac_compile) 2>conftest.er1
9203   ac_status=$?
9204   grep -v '^ *+' conftest.er1 >conftest.err
9205   rm -f conftest.er1
9206   cat conftest.err >&5
9207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208   (exit $ac_status); } &&
9209          { ac_try='test -z "$ac_c_werror_flag"
9210                          || test ! -s conftest.err'
9211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212   (eval $ac_try) 2>&5
9213   ac_status=$?
9214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215   (exit $ac_status); }; } &&
9216          { ac_try='test -s conftest.$ac_objext'
9217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218   (eval $ac_try) 2>&5
9219   ac_status=$?
9220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221   (exit $ac_status); }; }; then
9222   eval "$as_ac_Header=yes"
9223 else
9224   echo "$as_me: failed program was:" >&5
9225 sed 's/^/| /' conftest.$ac_ext >&5
9226
9227 eval "$as_ac_Header=no"
9228 fi
9229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9230 fi
9231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9234   cat >>confdefs.h <<_ACEOF
9235 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9236 _ACEOF
9237
9238 ac_header_dirent=$ac_hdr; break
9239 fi
9240
9241 done
9242 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9243 if test $ac_header_dirent = dirent.h; then
9244   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9245 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9246 if test "${ac_cv_search_opendir+set}" = set; then
9247   echo $ECHO_N "(cached) $ECHO_C" >&6
9248 else
9249   ac_func_search_save_LIBS=$LIBS
9250 ac_cv_search_opendir=no
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h.  */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h.  */
9257
9258 /* Override any gcc2 internal prototype to avoid an error.  */
9259 #ifdef __cplusplus
9260 extern "C"
9261 #endif
9262 /* We use char because int might match the return type of a gcc2
9263    builtin and then its argument prototype would still apply.  */
9264 char opendir ();
9265 int
9266 main ()
9267 {
9268 opendir ();
9269   ;
9270   return 0;
9271 }
9272 _ACEOF
9273 rm -f conftest.$ac_objext conftest$ac_exeext
9274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9275   (eval $ac_link) 2>conftest.er1
9276   ac_status=$?
9277   grep -v '^ *+' conftest.er1 >conftest.err
9278   rm -f conftest.er1
9279   cat conftest.err >&5
9280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281   (exit $ac_status); } &&
9282          { ac_try='test -z "$ac_c_werror_flag"
9283                          || test ! -s conftest.err'
9284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285   (eval $ac_try) 2>&5
9286   ac_status=$?
9287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288   (exit $ac_status); }; } &&
9289          { ac_try='test -s conftest$ac_exeext'
9290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291   (eval $ac_try) 2>&5
9292   ac_status=$?
9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); }; }; then
9295   ac_cv_search_opendir="none required"
9296 else
9297   echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9299
9300 fi
9301 rm -f conftest.err conftest.$ac_objext \
9302       conftest$ac_exeext conftest.$ac_ext
9303 if test "$ac_cv_search_opendir" = no; then
9304   for ac_lib in dir; do
9305     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9306     cat >conftest.$ac_ext <<_ACEOF
9307 /* confdefs.h.  */
9308 _ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h.  */
9312
9313 /* Override any gcc2 internal prototype to avoid an error.  */
9314 #ifdef __cplusplus
9315 extern "C"
9316 #endif
9317 /* We use char because int might match the return type of a gcc2
9318    builtin and then its argument prototype would still apply.  */
9319 char opendir ();
9320 int
9321 main ()
9322 {
9323 opendir ();
9324   ;
9325   return 0;
9326 }
9327 _ACEOF
9328 rm -f conftest.$ac_objext conftest$ac_exeext
9329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330   (eval $ac_link) 2>conftest.er1
9331   ac_status=$?
9332   grep -v '^ *+' conftest.er1 >conftest.err
9333   rm -f conftest.er1
9334   cat conftest.err >&5
9335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336   (exit $ac_status); } &&
9337          { ac_try='test -z "$ac_c_werror_flag"
9338                          || test ! -s conftest.err'
9339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340   (eval $ac_try) 2>&5
9341   ac_status=$?
9342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343   (exit $ac_status); }; } &&
9344          { ac_try='test -s conftest$ac_exeext'
9345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346   (eval $ac_try) 2>&5
9347   ac_status=$?
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   (exit $ac_status); }; }; then
9350   ac_cv_search_opendir="-l$ac_lib"
9351 break
9352 else
9353   echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9355
9356 fi
9357 rm -f conftest.err conftest.$ac_objext \
9358       conftest$ac_exeext conftest.$ac_ext
9359   done
9360 fi
9361 LIBS=$ac_func_search_save_LIBS
9362 fi
9363 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9364 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9365 if test "$ac_cv_search_opendir" != no; then
9366   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9367
9368 fi
9369
9370 else
9371   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9372 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9373 if test "${ac_cv_search_opendir+set}" = set; then
9374   echo $ECHO_N "(cached) $ECHO_C" >&6
9375 else
9376   ac_func_search_save_LIBS=$LIBS
9377 ac_cv_search_opendir=no
9378 cat >conftest.$ac_ext <<_ACEOF
9379 /* confdefs.h.  */
9380 _ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h.  */
9384
9385 /* Override any gcc2 internal prototype to avoid an error.  */
9386 #ifdef __cplusplus
9387 extern "C"
9388 #endif
9389 /* We use char because int might match the return type of a gcc2
9390    builtin and then its argument prototype would still apply.  */
9391 char opendir ();
9392 int
9393 main ()
9394 {
9395 opendir ();
9396   ;
9397   return 0;
9398 }
9399 _ACEOF
9400 rm -f conftest.$ac_objext conftest$ac_exeext
9401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9402   (eval $ac_link) 2>conftest.er1
9403   ac_status=$?
9404   grep -v '^ *+' conftest.er1 >conftest.err
9405   rm -f conftest.er1
9406   cat conftest.err >&5
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); } &&
9409          { ac_try='test -z "$ac_c_werror_flag"
9410                          || test ! -s conftest.err'
9411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412   (eval $ac_try) 2>&5
9413   ac_status=$?
9414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415   (exit $ac_status); }; } &&
9416          { ac_try='test -s conftest$ac_exeext'
9417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418   (eval $ac_try) 2>&5
9419   ac_status=$?
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   (exit $ac_status); }; }; then
9422   ac_cv_search_opendir="none required"
9423 else
9424   echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9426
9427 fi
9428 rm -f conftest.err conftest.$ac_objext \
9429       conftest$ac_exeext conftest.$ac_ext
9430 if test "$ac_cv_search_opendir" = no; then
9431   for ac_lib in x; do
9432     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9433     cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h.  */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h.  */
9439
9440 /* Override any gcc2 internal prototype to avoid an error.  */
9441 #ifdef __cplusplus
9442 extern "C"
9443 #endif
9444 /* We use char because int might match the return type of a gcc2
9445    builtin and then its argument prototype would still apply.  */
9446 char opendir ();
9447 int
9448 main ()
9449 {
9450 opendir ();
9451   ;
9452   return 0;
9453 }
9454 _ACEOF
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9457   (eval $ac_link) 2>conftest.er1
9458   ac_status=$?
9459   grep -v '^ *+' conftest.er1 >conftest.err
9460   rm -f conftest.er1
9461   cat conftest.err >&5
9462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463   (exit $ac_status); } &&
9464          { ac_try='test -z "$ac_c_werror_flag"
9465                          || test ! -s conftest.err'
9466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467   (eval $ac_try) 2>&5
9468   ac_status=$?
9469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470   (exit $ac_status); }; } &&
9471          { ac_try='test -s conftest$ac_exeext'
9472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473   (eval $ac_try) 2>&5
9474   ac_status=$?
9475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476   (exit $ac_status); }; }; then
9477   ac_cv_search_opendir="-l$ac_lib"
9478 break
9479 else
9480   echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9482
9483 fi
9484 rm -f conftest.err conftest.$ac_objext \
9485       conftest$ac_exeext conftest.$ac_ext
9486   done
9487 fi
9488 LIBS=$ac_func_search_save_LIBS
9489 fi
9490 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9491 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9492 if test "$ac_cv_search_opendir" != no; then
9493   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9494
9495 fi
9496
9497 fi
9498
9499  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9500 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9501 if test "${ac_cv_header_stdc+set}" = set; then
9502   echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504   cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h.  */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h.  */
9510 #include <stdlib.h>
9511 #include <stdarg.h>
9512 #include <string.h>
9513 #include <float.h>
9514
9515 int
9516 main ()
9517 {
9518
9519   ;
9520   return 0;
9521 }
9522 _ACEOF
9523 rm -f conftest.$ac_objext
9524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9525   (eval $ac_compile) 2>conftest.er1
9526   ac_status=$?
9527   grep -v '^ *+' conftest.er1 >conftest.err
9528   rm -f conftest.er1
9529   cat conftest.err >&5
9530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531   (exit $ac_status); } &&
9532          { ac_try='test -z "$ac_c_werror_flag"
9533                          || test ! -s conftest.err'
9534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535   (eval $ac_try) 2>&5
9536   ac_status=$?
9537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); }; } &&
9539          { ac_try='test -s conftest.$ac_objext'
9540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541   (eval $ac_try) 2>&5
9542   ac_status=$?
9543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544   (exit $ac_status); }; }; then
9545   ac_cv_header_stdc=yes
9546 else
9547   echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9549
9550 ac_cv_header_stdc=no
9551 fi
9552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9553
9554 if test $ac_cv_header_stdc = yes; then
9555   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9556   cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h.  */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h.  */
9562 #include <string.h>
9563
9564 _ACEOF
9565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9566   $EGREP "memchr" >/dev/null 2>&1; then
9567   :
9568 else
9569   ac_cv_header_stdc=no
9570 fi
9571 rm -f conftest*
9572
9573 fi
9574
9575 if test $ac_cv_header_stdc = yes; then
9576   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9577   cat >conftest.$ac_ext <<_ACEOF
9578 /* confdefs.h.  */
9579 _ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h.  */
9583 #include <stdlib.h>
9584
9585 _ACEOF
9586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9587   $EGREP "free" >/dev/null 2>&1; then
9588   :
9589 else
9590   ac_cv_header_stdc=no
9591 fi
9592 rm -f conftest*
9593
9594 fi
9595
9596 if test $ac_cv_header_stdc = yes; then
9597   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9598   if test "$cross_compiling" = yes; then
9599   :
9600 else
9601   cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h.  */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h.  */
9607 #include <ctype.h>
9608 #if ((' ' & 0x0FF) == 0x020)
9609 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9610 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9611 #else
9612 # define ISLOWER(c) \
9613                    (('a' <= (c) && (c) <= 'i') \
9614                      || ('j' <= (c) && (c) <= 'r') \
9615                      || ('s' <= (c) && (c) <= 'z'))
9616 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9617 #endif
9618
9619 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9620 int
9621 main ()
9622 {
9623   int i;
9624   for (i = 0; i < 256; i++)
9625     if (XOR (islower (i), ISLOWER (i))
9626         || toupper (i) != TOUPPER (i))
9627       exit(2);
9628   exit (0);
9629 }
9630 _ACEOF
9631 rm -f conftest$ac_exeext
9632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633   (eval $ac_link) 2>&5
9634   ac_status=$?
9635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638   (eval $ac_try) 2>&5
9639   ac_status=$?
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); }; }; then
9642   :
9643 else
9644   echo "$as_me: program exited with status $ac_status" >&5
9645 echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9647
9648 ( exit $ac_status )
9649 ac_cv_header_stdc=no
9650 fi
9651 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9652 fi
9653 fi
9654 fi
9655 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9656 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9657 if test $ac_cv_header_stdc = yes; then
9658
9659 cat >>confdefs.h <<\_ACEOF
9660 #define STDC_HEADERS 1
9661 _ACEOF
9662
9663 fi
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679 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
9680 do
9681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9683   echo "$as_me:$LINENO: checking for $ac_header" >&5
9684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9686   echo $ECHO_N "(cached) $ECHO_C" >&6
9687 fi
9688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9690 else
9691   # Is the header compilable?
9692 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9694 cat >conftest.$ac_ext <<_ACEOF
9695 /* confdefs.h.  */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h.  */
9700 $ac_includes_default
9701 #include <$ac_header>
9702 _ACEOF
9703 rm -f conftest.$ac_objext
9704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9705   (eval $ac_compile) 2>conftest.er1
9706   ac_status=$?
9707   grep -v '^ *+' conftest.er1 >conftest.err
9708   rm -f conftest.er1
9709   cat conftest.err >&5
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); } &&
9712          { ac_try='test -z "$ac_c_werror_flag"
9713                          || test ! -s conftest.err'
9714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715   (eval $ac_try) 2>&5
9716   ac_status=$?
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); }; } &&
9719          { ac_try='test -s conftest.$ac_objext'
9720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721   (eval $ac_try) 2>&5
9722   ac_status=$?
9723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724   (exit $ac_status); }; }; then
9725   ac_header_compiler=yes
9726 else
9727   echo "$as_me: failed program was:" >&5
9728 sed 's/^/| /' conftest.$ac_ext >&5
9729
9730 ac_header_compiler=no
9731 fi
9732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9734 echo "${ECHO_T}$ac_header_compiler" >&6
9735
9736 # Is the header present?
9737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9739 cat >conftest.$ac_ext <<_ACEOF
9740 /* confdefs.h.  */
9741 _ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h.  */
9745 #include <$ac_header>
9746 _ACEOF
9747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9748   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9749   ac_status=$?
9750   grep -v '^ *+' conftest.er1 >conftest.err
9751   rm -f conftest.er1
9752   cat conftest.err >&5
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); } >/dev/null; then
9755   if test -s conftest.err; then
9756     ac_cpp_err=$ac_c_preproc_warn_flag
9757     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9758   else
9759     ac_cpp_err=
9760   fi
9761 else
9762   ac_cpp_err=yes
9763 fi
9764 if test -z "$ac_cpp_err"; then
9765   ac_header_preproc=yes
9766 else
9767   echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770   ac_header_preproc=no
9771 fi
9772 rm -f conftest.err conftest.$ac_ext
9773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9774 echo "${ECHO_T}$ac_header_preproc" >&6
9775
9776 # So?  What about this header?
9777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9778   yes:no: )
9779     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9783     ac_header_preproc=yes
9784     ;;
9785   no:yes:* )
9786     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9788     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9789 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9790     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9792     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9793 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9796     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9798     (
9799       cat <<\_ASBOX
9800 ## ------------------------------------------ ##
9801 ## Report this to the AC_PACKAGE_NAME lists.  ##
9802 ## ------------------------------------------ ##
9803 _ASBOX
9804     ) |
9805       sed "s/^/$as_me: WARNING:     /" >&2
9806     ;;
9807 esac
9808 echo "$as_me:$LINENO: checking for $ac_header" >&5
9809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9811   echo $ECHO_N "(cached) $ECHO_C" >&6
9812 else
9813   eval "$as_ac_Header=\$ac_header_preproc"
9814 fi
9815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9817
9818 fi
9819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9820   cat >>confdefs.h <<_ACEOF
9821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9822 _ACEOF
9823
9824 fi
9825
9826 done
9827
9828
9829 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
9830  DISABLEPDF2SWF=true;
9831  DISABLEJPEG2SWF=true;
9832  MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9833 fi
9834 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
9835  DISABLEPDF2SWF=true;
9836  MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9837 fi
9838 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
9839  DISABLEPNG2SWF=true;
9840  MISSINGLIBS="${MISSINGLIBS} zlib.h"
9841  ZLIBMISSING=true;
9842 fi
9843
9844 cat >>confdefs.h <<_ACEOF
9845 #define PACKAGE "$PACKAGE"
9846 _ACEOF
9847
9848 cat >>confdefs.h <<_ACEOF
9849 #define VERSION "$VERSION"
9850 _ACEOF
9851
9852
9853
9854
9855
9856
9857
9858  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9859 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9860 if test "${ac_cv_c_const+set}" = set; then
9861   echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863   cat >conftest.$ac_ext <<_ACEOF
9864 /* confdefs.h.  */
9865 _ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h.  */
9869
9870 int
9871 main ()
9872 {
9873 /* FIXME: Include the comments suggested by Paul. */
9874 #ifndef __cplusplus
9875   /* Ultrix mips cc rejects this.  */
9876   typedef int charset[2];
9877   const charset x;
9878   /* SunOS 4.1.1 cc rejects this.  */
9879   char const *const *ccp;
9880   char **p;
9881   /* NEC SVR4.0.2 mips cc rejects this.  */
9882   struct point {int x, y;};
9883   static struct point const zero = {0,0};
9884   /* AIX XL C 1.02.0.0 rejects this.
9885      It does not let you subtract one const X* pointer from another in
9886      an arm of an if-expression whose if-part is not a constant
9887      expression */
9888   const char *g = "string";
9889   ccp = &g + (g ? g-g : 0);
9890   /* HPUX 7.0 cc rejects these. */
9891   ++ccp;
9892   p = (char**) ccp;
9893   ccp = (char const *const *) p;
9894   { /* SCO 3.2v4 cc rejects this.  */
9895     char *t;
9896     char const *s = 0 ? (char *) 0 : (char const *) 0;
9897
9898     *t++ = 0;
9899   }
9900   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9901     int x[] = {25, 17};
9902     const int *foo = &x[0];
9903     ++foo;
9904   }
9905   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9906     typedef const int *iptr;
9907     iptr p = 0;
9908     ++p;
9909   }
9910   { /* AIX XL C 1.02.0.0 rejects this saying
9911        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9912     struct s { int j; const int *ap[3]; };
9913     struct s *b; b->j = 5;
9914   }
9915   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9916     const int foo = 10;
9917   }
9918 #endif
9919
9920   ;
9921   return 0;
9922 }
9923 _ACEOF
9924 rm -f conftest.$ac_objext
9925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9926   (eval $ac_compile) 2>conftest.er1
9927   ac_status=$?
9928   grep -v '^ *+' conftest.er1 >conftest.err
9929   rm -f conftest.er1
9930   cat conftest.err >&5
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); } &&
9933          { ac_try='test -z "$ac_c_werror_flag"
9934                          || test ! -s conftest.err'
9935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936   (eval $ac_try) 2>&5
9937   ac_status=$?
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); }; } &&
9940          { ac_try='test -s conftest.$ac_objext'
9941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942   (eval $ac_try) 2>&5
9943   ac_status=$?
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); }; }; then
9946   ac_cv_c_const=yes
9947 else
9948   echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951 ac_cv_c_const=no
9952 fi
9953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9954 fi
9955 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9956 echo "${ECHO_T}$ac_cv_c_const" >&6
9957 if test $ac_cv_c_const = no; then
9958
9959 cat >>confdefs.h <<\_ACEOF
9960 #define const
9961 _ACEOF
9962
9963 fi
9964
9965  echo "$as_me:$LINENO: checking for inline" >&5
9966 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9967 if test "${ac_cv_c_inline+set}" = set; then
9968   echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970   ac_cv_c_inline=no
9971 for ac_kw in inline __inline__ __inline; do
9972   cat >conftest.$ac_ext <<_ACEOF
9973 /* confdefs.h.  */
9974 _ACEOF
9975 cat confdefs.h >>conftest.$ac_ext
9976 cat >>conftest.$ac_ext <<_ACEOF
9977 /* end confdefs.h.  */
9978 #ifndef __cplusplus
9979 typedef int foo_t;
9980 static $ac_kw foo_t static_foo () {return 0; }
9981 $ac_kw foo_t foo () {return 0; }
9982 #endif
9983
9984 _ACEOF
9985 rm -f conftest.$ac_objext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9987   (eval $ac_compile) 2>conftest.er1
9988   ac_status=$?
9989   grep -v '^ *+' conftest.er1 >conftest.err
9990   rm -f conftest.er1
9991   cat conftest.err >&5
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); } &&
9994          { ac_try='test -z "$ac_c_werror_flag"
9995                          || test ! -s conftest.err'
9996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997   (eval $ac_try) 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; } &&
10001          { ac_try='test -s conftest.$ac_objext'
10002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003   (eval $ac_try) 2>&5
10004   ac_status=$?
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); }; }; then
10007   ac_cv_c_inline=$ac_kw; break
10008 else
10009   echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10011
10012 fi
10013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10014 done
10015
10016 fi
10017 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10018 echo "${ECHO_T}$ac_cv_c_inline" >&6
10019
10020
10021 case $ac_cv_c_inline in
10022   inline | yes) ;;
10023   *)
10024     case $ac_cv_c_inline in
10025       no) ac_val=;;
10026       *) ac_val=$ac_cv_c_inline;;
10027     esac
10028     cat >>confdefs.h <<_ACEOF
10029 #ifndef __cplusplus
10030 #define inline $ac_val
10031 #endif
10032 _ACEOF
10033     ;;
10034 esac
10035
10036  echo "$as_me:$LINENO: checking for off_t" >&5
10037 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10038 if test "${ac_cv_type_off_t+set}" = set; then
10039   echo $ECHO_N "(cached) $ECHO_C" >&6
10040 else
10041   cat >conftest.$ac_ext <<_ACEOF
10042 /* confdefs.h.  */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h.  */
10047 $ac_includes_default
10048 int
10049 main ()
10050 {
10051 if ((off_t *) 0)
10052   return 0;
10053 if (sizeof (off_t))
10054   return 0;
10055   ;
10056   return 0;
10057 }
10058 _ACEOF
10059 rm -f conftest.$ac_objext
10060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10061   (eval $ac_compile) 2>conftest.er1
10062   ac_status=$?
10063   grep -v '^ *+' conftest.er1 >conftest.err
10064   rm -f conftest.er1
10065   cat conftest.err >&5
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); } &&
10068          { ac_try='test -z "$ac_c_werror_flag"
10069                          || test ! -s conftest.err'
10070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071   (eval $ac_try) 2>&5
10072   ac_status=$?
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); }; } &&
10075          { ac_try='test -s conftest.$ac_objext'
10076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077   (eval $ac_try) 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); }; }; then
10081   ac_cv_type_off_t=yes
10082 else
10083   echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10085
10086 ac_cv_type_off_t=no
10087 fi
10088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10089 fi
10090 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10091 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10092 if test $ac_cv_type_off_t = yes; then
10093   :
10094 else
10095
10096 cat >>confdefs.h <<_ACEOF
10097 #define off_t long
10098 _ACEOF
10099
10100 fi
10101
10102  echo "$as_me:$LINENO: checking for size_t" >&5
10103 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10104 if test "${ac_cv_type_size_t+set}" = set; then
10105   echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107   cat >conftest.$ac_ext <<_ACEOF
10108 /* confdefs.h.  */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h.  */
10113 $ac_includes_default
10114 int
10115 main ()
10116 {
10117 if ((size_t *) 0)
10118   return 0;
10119 if (sizeof (size_t))
10120   return 0;
10121   ;
10122   return 0;
10123 }
10124 _ACEOF
10125 rm -f conftest.$ac_objext
10126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10127   (eval $ac_compile) 2>conftest.er1
10128   ac_status=$?
10129   grep -v '^ *+' conftest.er1 >conftest.err
10130   rm -f conftest.er1
10131   cat conftest.err >&5
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); } &&
10134          { ac_try='test -z "$ac_c_werror_flag"
10135                          || test ! -s conftest.err'
10136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137   (eval $ac_try) 2>&5
10138   ac_status=$?
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); }; } &&
10141          { ac_try='test -s conftest.$ac_objext'
10142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143   (eval $ac_try) 2>&5
10144   ac_status=$?
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); }; }; then
10147   ac_cv_type_size_t=yes
10148 else
10149   echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10151
10152 ac_cv_type_size_t=no
10153 fi
10154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10155 fi
10156 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10157 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10158 if test $ac_cv_type_size_t = yes; then
10159   :
10160 else
10161
10162 cat >>confdefs.h <<_ACEOF
10163 #define size_t unsigned
10164 _ACEOF
10165
10166 fi
10167
10168  echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10169 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10170 if test "${ac_cv_struct_tm+set}" = set; then
10171   echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173   cat >conftest.$ac_ext <<_ACEOF
10174 /* confdefs.h.  */
10175 _ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h.  */
10179 #include <sys/types.h>
10180 #include <time.h>
10181
10182 int
10183 main ()
10184 {
10185 struct tm *tp; tp->tm_sec;
10186   ;
10187   return 0;
10188 }
10189 _ACEOF
10190 rm -f conftest.$ac_objext
10191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10192   (eval $ac_compile) 2>conftest.er1
10193   ac_status=$?
10194   grep -v '^ *+' conftest.er1 >conftest.err
10195   rm -f conftest.er1
10196   cat conftest.err >&5
10197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198   (exit $ac_status); } &&
10199          { ac_try='test -z "$ac_c_werror_flag"
10200                          || test ! -s conftest.err'
10201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202   (eval $ac_try) 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }; } &&
10206          { ac_try='test -s conftest.$ac_objext'
10207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208   (eval $ac_try) 2>&5
10209   ac_status=$?
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); }; }; then
10212   ac_cv_struct_tm=time.h
10213 else
10214   echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10216
10217 ac_cv_struct_tm=sys/time.h
10218 fi
10219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10220 fi
10221 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10222 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10223 if test $ac_cv_struct_tm = sys/time.h; then
10224
10225 cat >>confdefs.h <<\_ACEOF
10226 #define TM_IN_SYS_TIME 1
10227 _ACEOF
10228
10229 fi
10230
10231  echo "$as_me:$LINENO: checking for boolean" >&5
10232 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
10233 if test "${ac_cv_type_boolean+set}" = set; then
10234   echo $ECHO_N "(cached) $ECHO_C" >&6
10235 else
10236   cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h.  */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h.  */
10242 $ac_includes_default
10243 int
10244 main ()
10245 {
10246 if ((boolean *) 0)
10247   return 0;
10248 if (sizeof (boolean))
10249   return 0;
10250   ;
10251   return 0;
10252 }
10253 _ACEOF
10254 rm -f conftest.$ac_objext
10255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10256   (eval $ac_compile) 2>conftest.er1
10257   ac_status=$?
10258   grep -v '^ *+' conftest.er1 >conftest.err
10259   rm -f conftest.er1
10260   cat conftest.err >&5
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); } &&
10263          { ac_try='test -z "$ac_c_werror_flag"
10264                          || test ! -s conftest.err'
10265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266   (eval $ac_try) 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); }; } &&
10270          { ac_try='test -s conftest.$ac_objext'
10271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272   (eval $ac_try) 2>&5
10273   ac_status=$?
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); }; }; then
10276   ac_cv_type_boolean=yes
10277 else
10278   echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10280
10281 ac_cv_type_boolean=no
10282 fi
10283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10284 fi
10285 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
10286 echo "${ECHO_T}$ac_cv_type_boolean" >&6
10287 if test $ac_cv_type_boolean = yes; then
10288   :
10289 else
10290
10291 cat >>confdefs.h <<_ACEOF
10292 #define boolean int
10293 _ACEOF
10294
10295 fi
10296
10297  echo "$as_me:$LINENO: checking for bool" >&5
10298 echo $ECHO_N "checking for bool... $ECHO_C" >&6
10299 if test "${ac_cv_type_bool+set}" = set; then
10300   echo $ECHO_N "(cached) $ECHO_C" >&6
10301 else
10302   cat >conftest.$ac_ext <<_ACEOF
10303 /* confdefs.h.  */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h.  */
10308 $ac_includes_default
10309 int
10310 main ()
10311 {
10312 if ((bool *) 0)
10313   return 0;
10314 if (sizeof (bool))
10315   return 0;
10316   ;
10317   return 0;
10318 }
10319 _ACEOF
10320 rm -f conftest.$ac_objext
10321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10322   (eval $ac_compile) 2>conftest.er1
10323   ac_status=$?
10324   grep -v '^ *+' conftest.er1 >conftest.err
10325   rm -f conftest.er1
10326   cat conftest.err >&5
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); } &&
10329          { ac_try='test -z "$ac_c_werror_flag"
10330                          || test ! -s conftest.err'
10331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332   (eval $ac_try) 2>&5
10333   ac_status=$?
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); }; } &&
10336          { ac_try='test -s conftest.$ac_objext'
10337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338   (eval $ac_try) 2>&5
10339   ac_status=$?
10340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341   (exit $ac_status); }; }; then
10342   ac_cv_type_bool=yes
10343 else
10344   echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10346
10347 ac_cv_type_bool=no
10348 fi
10349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10350 fi
10351 echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
10352 echo "${ECHO_T}$ac_cv_type_bool" >&6
10353 if test $ac_cv_type_bool = yes; then
10354   :
10355 else
10356
10357 cat >>confdefs.h <<_ACEOF
10358 #define bool char
10359 _ACEOF
10360
10361 fi
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
10375 do
10376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10377 echo "$as_me:$LINENO: checking for $ac_func" >&5
10378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10379 if eval "test \"\${$as_ac_var+set}\" = set"; then
10380   echo $ECHO_N "(cached) $ECHO_C" >&6
10381 else
10382   cat >conftest.$ac_ext <<_ACEOF
10383 /* confdefs.h.  */
10384 _ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h.  */
10388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10390 #define $ac_func innocuous_$ac_func
10391
10392 /* System header to define __stub macros and hopefully few prototypes,
10393     which can conflict with char $ac_func (); below.
10394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10395     <limits.h> exists even on freestanding compilers.  */
10396
10397 #ifdef __STDC__
10398 # include <limits.h>
10399 #else
10400 # include <assert.h>
10401 #endif
10402
10403 #undef $ac_func
10404
10405 /* Override any gcc2 internal prototype to avoid an error.  */
10406 #ifdef __cplusplus
10407 extern "C"
10408 {
10409 #endif
10410 /* We use char because int might match the return type of a gcc2
10411    builtin and then its argument prototype would still apply.  */
10412 char $ac_func ();
10413 /* The GNU C library defines this for functions which it implements
10414     to always fail with ENOSYS.  Some functions are actually named
10415     something starting with __ and the normal name is an alias.  */
10416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10417 choke me
10418 #else
10419 char (*f) () = $ac_func;
10420 #endif
10421 #ifdef __cplusplus
10422 }
10423 #endif
10424
10425 int
10426 main ()
10427 {
10428 return f != $ac_func;
10429   ;
10430   return 0;
10431 }
10432 _ACEOF
10433 rm -f conftest.$ac_objext conftest$ac_exeext
10434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10435   (eval $ac_link) 2>conftest.er1
10436   ac_status=$?
10437   grep -v '^ *+' conftest.er1 >conftest.err
10438   rm -f conftest.er1
10439   cat conftest.err >&5
10440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441   (exit $ac_status); } &&
10442          { ac_try='test -z "$ac_c_werror_flag"
10443                          || test ! -s conftest.err'
10444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445   (eval $ac_try) 2>&5
10446   ac_status=$?
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); }; } &&
10449          { ac_try='test -s conftest$ac_exeext'
10450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451   (eval $ac_try) 2>&5
10452   ac_status=$?
10453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); }; }; then
10455   eval "$as_ac_var=yes"
10456 else
10457   echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10459
10460 eval "$as_ac_var=no"
10461 fi
10462 rm -f conftest.err conftest.$ac_objext \
10463       conftest$ac_exeext conftest.$ac_ext
10464 fi
10465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10467 if test `eval echo '${'$as_ac_var'}'` = yes; then
10468   cat >>confdefs.h <<_ACEOF
10469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10470 _ACEOF
10471
10472 fi
10473 done
10474
10475
10476
10477 for ac_prog in avifile-config
10478 do
10479   # Extract the first word of "$ac_prog", so it can be a program name with args.
10480 set dummy $ac_prog; ac_word=$2
10481 echo "$as_me:$LINENO: checking for $ac_word" >&5
10482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10483 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10484   echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486   if test -n "$AVIFILE_CONFIG"; then
10487   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10488 else
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490 for as_dir in $PATH
10491 do
10492   IFS=$as_save_IFS
10493   test -z "$as_dir" && as_dir=.
10494   for ac_exec_ext in '' $ac_executable_extensions; do
10495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10496     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10498     break 2
10499   fi
10500 done
10501 done
10502
10503 fi
10504 fi
10505 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10506 if test -n "$AVIFILE_CONFIG"; then
10507   echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10508 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
10509 else
10510   echo "$as_me:$LINENO: result: no" >&5
10511 echo "${ECHO_T}no" >&6
10512 fi
10513
10514   test -n "$AVIFILE_CONFIG" && break
10515 done
10516
10517
10518 if test "x$AVIFILE_CONFIG" '!=' "x";then
10519     OLDCPPFLAGS="$CPPFLAGS"
10520     #OLDLDFLAGS="$LDFLAGS"
10521     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10522     #LDFLAGS="$LDFLAGS `$AVIFILE_CONFIG --libs`"
10523
10524
10525 for ac_header in avifile/version.h version.h
10526 do
10527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10529   echo "$as_me:$LINENO: checking for $ac_header" >&5
10530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10532   echo $ECHO_N "(cached) $ECHO_C" >&6
10533 fi
10534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10536 else
10537   # Is the header compilable?
10538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10540 cat >conftest.$ac_ext <<_ACEOF
10541 /* confdefs.h.  */
10542 _ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h.  */
10546 $ac_includes_default
10547 #include <$ac_header>
10548 _ACEOF
10549 rm -f conftest.$ac_objext
10550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10551   (eval $ac_compile) 2>conftest.er1
10552   ac_status=$?
10553   grep -v '^ *+' conftest.er1 >conftest.err
10554   rm -f conftest.er1
10555   cat conftest.err >&5
10556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557   (exit $ac_status); } &&
10558          { ac_try='test -z "$ac_c_werror_flag"
10559                          || test ! -s conftest.err'
10560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561   (eval $ac_try) 2>&5
10562   ac_status=$?
10563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); }; } &&
10565          { ac_try='test -s conftest.$ac_objext'
10566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567   (eval $ac_try) 2>&5
10568   ac_status=$?
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); }; }; then
10571   ac_header_compiler=yes
10572 else
10573   echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10575
10576 ac_header_compiler=no
10577 fi
10578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10580 echo "${ECHO_T}$ac_header_compiler" >&6
10581
10582 # Is the header present?
10583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10585 cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h.  */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h.  */
10591 #include <$ac_header>
10592 _ACEOF
10593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10594   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10595   ac_status=$?
10596   grep -v '^ *+' conftest.er1 >conftest.err
10597   rm -f conftest.er1
10598   cat conftest.err >&5
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); } >/dev/null; then
10601   if test -s conftest.err; then
10602     ac_cpp_err=$ac_c_preproc_warn_flag
10603     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10604   else
10605     ac_cpp_err=
10606   fi
10607 else
10608   ac_cpp_err=yes
10609 fi
10610 if test -z "$ac_cpp_err"; then
10611   ac_header_preproc=yes
10612 else
10613   echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10615
10616   ac_header_preproc=no
10617 fi
10618 rm -f conftest.err conftest.$ac_ext
10619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10620 echo "${ECHO_T}$ac_header_preproc" >&6
10621
10622 # So?  What about this header?
10623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10624   yes:no: )
10625     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10629     ac_header_preproc=yes
10630     ;;
10631   no:yes:* )
10632     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10634     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10635 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10636     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10638     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10639 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10642     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10644     (
10645       cat <<\_ASBOX
10646 ## ------------------------------------------ ##
10647 ## Report this to the AC_PACKAGE_NAME lists.  ##
10648 ## ------------------------------------------ ##
10649 _ASBOX
10650     ) |
10651       sed "s/^/$as_me: WARNING:     /" >&2
10652     ;;
10653 esac
10654 echo "$as_me:$LINENO: checking for $ac_header" >&5
10655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10657   echo $ECHO_N "(cached) $ECHO_C" >&6
10658 else
10659   eval "$as_ac_Header=\$ac_header_preproc"
10660 fi
10661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10663
10664 fi
10665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10666   cat >>confdefs.h <<_ACEOF
10667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10668 _ACEOF
10669
10670 fi
10671
10672 done
10673
10674     #LDFLAGS="$OLDLDFLAGS"
10675     CPPFLAGS="$OLDCPPFLAGS"
10676 fi
10677
10678 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
10679 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
10680
10681 if test "x${ac_cv_header_version_h}" '=' "xyes";then
10682     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
10683 fi
10684 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
10685     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
10686 fi
10687
10688 cat > conftest.cpp << EOF
10689
10690 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
10691 // so we have to introduce them this way
10692 $HAVE_VERSION_H_DEFINE
10693 $HAVE_AVIFILE_VERSION_H_DEFINE
10694
10695 #ifdef HAVE_VERSION_H
10696   #include <version.h>
10697 #endif
10698 #ifdef HAVE_AVIFILE_VERSION_H
10699   #include <avifile/version.h>
10700 #endif
10701
10702 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
10703    #include <avifile.h>
10704    #include <aviplay.h>
10705    #include <fourcc.h>
10706    #include <creators.h>
10707    #include <StreamInfo.h>
10708    #define VERSION6
10709 #else
10710    #include <avifile.h>
10711    #include <aviplay.h>
10712    #include <aviutil.h>
10713    #define Width width
10714    #define Height height
10715    #define Data data
10716    #define Bpp bpp
10717 #endif
10718
10719 void test()
10720 {
10721   IAviReadFile* player;
10722   IAviReadStream* astream;
10723   IAviReadStream* vstream;
10724   player = CreateIAviReadFile(0);
10725   astream = player->GetStream(0, AviStream::Audio);
10726   vstream = player->GetStream(0, AviStream::Video);
10727   vstream -> StartStreaming();
10728   astream -> StartStreaming();
10729 #ifndef VERSION6
10730   MainAVIHeader head;
10731   player->GetFileHeader(&head);
10732   head.dwMicroSecPerFrame;
10733   head.dwTotalFrames;
10734   head.dwStreams;
10735   head.dwWidth;
10736   head.dwHeight;
10737   head.dwMicroSecPerFrame;
10738   astream->GetEndPos(),
10739   astream->GetEndTime());
10740   player->StreamCount();
10741 #else
10742   StreamInfo*audioinfo;
10743   StreamInfo*videoinfo;
10744   audioinfo = astream->GetStreamInfo();
10745   videoinfo = vstream->GetStreamInfo();
10746   videoinfo->GetVideoWidth();
10747   videoinfo->GetVideoHeight();
10748   audioinfo->GetAudioSamplesPerSec();
10749   videoinfo->GetFps();
10750 #endif
10751   CImage*img = vstream->GetFrame();
10752   img->ToRGB();
10753   img->Data();
10754   img->Bpp();
10755   img->Width();
10756   img->Height();
10757   WAVEFORMATEX wave;
10758   astream->GetAudioFormatInfo(&wave,0);
10759   uint_t a,b;
10760   astream->ReadFrames(0,0,0,a,b);
10761 }
10762 int main (int argc, char*argv)
10763 {
10764     return 0;
10765 }
10766 EOF
10767
10768 if test "x$AVIFILE_CONFIG" '!=' "x";then
10769     ac_link='$CXX $CPPFLAGS $CXXFLAGS `$AVIFILE_CONFIG --cflags` conftest.cpp `$AVIFILE_CONFIG --libs` -o conftest${ac_exeext}'
10770     if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
10771       echo "$as_me:$LINENO: result: yes" >&5
10772 echo "${ECHO_T}yes" >&6
10773       AVIFILE=true
10774       export AVIFILE
10775       cat >>confdefs.h <<_ACEOF
10776 #define AVIFILE true
10777 _ACEOF
10778
10779     else
10780       echo "configure: failed program was:" >&5
10781       cat conftest.cpp >&5
10782       echo "$as_me:$LINENO: result: no" >&5
10783 echo "${ECHO_T}no" >&6
10784     fi
10785 else
10786     echo "$as_me:$LINENO: result: no" >&5
10787 echo "${ECHO_T}no" >&6
10788 fi
10789 rm -f conftest*
10790
10791
10792 avi2swf="avi2swf/Makefile"
10793 if test "x${AVIFILE}" != "xtrue"; then
10794  echo "* Couldn't compile the avifile test program."
10795  echo "* Disabling avi2swf tool..."
10796  echo all install uninstall clean: > avi2swf/Makefile
10797  avi2swf=
10798 fi
10799
10800 if test "x${DISABLE_LAME}" = "xtrue"; then
10801     echo "*" Disabling lame support...
10802     lame_objects=
10803 else
10804     cat >>confdefs.h <<_ACEOF
10805 #define HAVE_LAME 1
10806 _ACEOF
10807
10808     lame_objects='$(lame_objects_2)'
10809 fi
10810
10811
10812 if test "x${UNCOMPRESS}" = "xgzip"; then
10813     cat >>confdefs.h <<_ACEOF
10814 #define USE_GZIP 1
10815 _ACEOF
10816
10817 fi
10818
10819
10820 JPEG2SWF='jpeg2swf$(E)'
10821 export JPEG2SWF
10822 PNG2SWF='png2swf$(E)'
10823 export PNG2SWF
10824
10825 # ------------------------------------------------------------------
10826
10827 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
10828 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
10829 # should we support python versions below 2.2?
10830 if test -f "/usr/lib/python2.2/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.2/Python.h";then
10831     PY_VERSION=2.2
10832 fi
10833 if test -f "/usr/lib/python2.3/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.3/Python.h";then
10834     PY_VERSION=2.3
10835 fi
10836 if test -f "/usr/lib/python2.4/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.4/Python.h";then
10837     PY_VERSION=2.4
10838 fi
10839
10840 if test "x$PY_VERSION" "!=" "x"; then
10841     pythonrfxswf="lib/python/Makefile"
10842     if test "x$PYTHON_LIB" = "x";then
10843         PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
10844     fi
10845     if test "x$PYTHON_INCLUDES" = "x";then
10846         PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
10847     fi
10848     export PYTHON_INCLUDES PYTHON_LIB
10849
10850
10851     echo "$as_me:$LINENO: result: yes" >&5
10852 echo "${ECHO_T}yes" >&6
10853 else
10854     echo all install uninstall clean: > lib/python/Makefile
10855     echo "* No usable python installation found"
10856     echo "* Not compiling the python interface"
10857     echo "$as_me:$LINENO: result: nope" >&5
10858 echo "${ECHO_T}nope" >&6
10859 fi
10860
10861 # ------------------------------------------------------------------
10862
10863 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10864   echo "***************************************************"
10865   echo "The following headers/libraries are missing: " ${MISSINGLIBS}
10866   if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10867     echo "Disabling pdf2swf tool..."
10868     rm -f pdf2swf/Makefile
10869     echo all install uninstall clean: > pdf2swf/Makefile
10870   fi
10871   if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10872     echo "Disabling jpeg2swf tool..."
10873     JPEG2SWF=
10874     export JPEG2SWF
10875   fi
10876   if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10877     echo "Disabling png2swf tool..."
10878     PNG2SWF=
10879     export PNG2SWF
10880   fi
10881   if test "x${ZLIBMISSING}" = "xtrue"; then
10882     echo
10883     echo "Warning! Without zlib, you will not be able to read"
10884     echo "or write compressed Flash MX files!"
10885   fi
10886   echo "***************************************************"
10887   FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile lib/action/Makefile src/Makefile swfs/Makefile ${pythonrfxswf}"
10888 else
10889   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 ${pythonrfxswf}"
10890 fi
10891
10892
10893
10894           ac_config_files="$ac_config_files ${FILES}"
10895
10896 cat >confcache <<\_ACEOF
10897 # This file is a shell script that caches the results of configure
10898 # tests run on this system so they can be shared between configure
10899 # scripts and configure runs, see configure's option --config-cache.
10900 # It is not useful on other systems.  If it contains results you don't
10901 # want to keep, you may remove or edit it.
10902 #
10903 # config.status only pays attention to the cache file if you give it
10904 # the --recheck option to rerun configure.
10905 #
10906 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10907 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10908 # following values.
10909
10910 _ACEOF
10911
10912 # The following way of writing the cache mishandles newlines in values,
10913 # but we know of no workaround that is simple, portable, and efficient.
10914 # So, don't put newlines in cache variables' values.
10915 # Ultrix sh set writes to stderr and can't be redirected directly,
10916 # and sets the high bit in the cache file unless we assign to the vars.
10917 {
10918   (set) 2>&1 |
10919     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10920     *ac_space=\ *)
10921       # `set' does not quote correctly, so add quotes (double-quote
10922       # substitution turns \\\\ into \\, and sed turns \\ into \).
10923       sed -n \
10924         "s/'/'\\\\''/g;
10925           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10926       ;;
10927     *)
10928       # `set' quotes correctly as required by POSIX, so do not add quotes.
10929       sed -n \
10930         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10931       ;;
10932     esac;
10933 } |
10934   sed '
10935      t clear
10936      : clear
10937      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10938      t end
10939      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10940      : end' >>confcache
10941 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10942   if test -w $cache_file; then
10943     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10944     cat confcache >$cache_file
10945   else
10946     echo "not updating unwritable cache $cache_file"
10947   fi
10948 fi
10949 rm -f confcache
10950
10951 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10952 # Let make expand exec_prefix.
10953 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10954
10955 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10956 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10957 # trailing colons and then remove the whole line if VPATH becomes empty
10958 # (actually we leave an empty line to preserve line numbers).
10959 if test "x$srcdir" = x.; then
10960   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10961 s/:*\$(srcdir):*/:/;
10962 s/:*\${srcdir}:*/:/;
10963 s/:*@srcdir@:*/:/;
10964 s/^\([^=]*=[     ]*\):*/\1/;
10965 s/:*$//;
10966 s/^[^=]*=[       ]*$//;
10967 }'
10968 fi
10969
10970 DEFS=-DHAVE_CONFIG_H
10971
10972 ac_libobjs=
10973 ac_ltlibobjs=
10974 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10975   # 1. Remove the extension, and $U if already installed.
10976   ac_i=`echo "$ac_i" |
10977          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10978   # 2. Add them.
10979   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10980   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10981 done
10982 LIBOBJS=$ac_libobjs
10983
10984 LTLIBOBJS=$ac_ltlibobjs
10985
10986
10987
10988 : ${CONFIG_STATUS=./config.status}
10989 ac_clean_files_save=$ac_clean_files
10990 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10991 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10992 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10993 cat >$CONFIG_STATUS <<_ACEOF
10994 #! $SHELL
10995 # Generated by $as_me.
10996 # Run this file to recreate the current configuration.
10997 # Compiler output produced by configure, useful for debugging
10998 # configure, is in config.log if it exists.
10999
11000 debug=false
11001 ac_cs_recheck=false
11002 ac_cs_silent=false
11003 SHELL=\${CONFIG_SHELL-$SHELL}
11004 _ACEOF
11005
11006 cat >>$CONFIG_STATUS <<\_ACEOF
11007 ## --------------------- ##
11008 ## M4sh Initialization.  ##
11009 ## --------------------- ##
11010
11011 # Be Bourne compatible
11012 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11013   emulate sh
11014   NULLCMD=:
11015   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11016   # is contrary to our usage.  Disable this feature.
11017   alias -g '${1+"$@"}'='"$@"'
11018 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11019   set -o posix
11020 fi
11021 DUALCASE=1; export DUALCASE # for MKS sh
11022
11023 # Support unset when possible.
11024 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11025   as_unset=unset
11026 else
11027   as_unset=false
11028 fi
11029
11030
11031 # Work around bugs in pre-3.0 UWIN ksh.
11032 $as_unset ENV MAIL MAILPATH
11033 PS1='$ '
11034 PS2='> '
11035 PS4='+ '
11036
11037 # NLS nuisances.
11038 for as_var in \
11039   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11040   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11041   LC_TELEPHONE LC_TIME
11042 do
11043   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11044     eval $as_var=C; export $as_var
11045   else
11046     $as_unset $as_var
11047   fi
11048 done
11049
11050 # Required to use basename.
11051 if expr a : '\(a\)' >/dev/null 2>&1; then
11052   as_expr=expr
11053 else
11054   as_expr=false
11055 fi
11056
11057 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11058   as_basename=basename
11059 else
11060   as_basename=false
11061 fi
11062
11063
11064 # Name of the executable.
11065 as_me=`$as_basename "$0" ||
11066 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11067          X"$0" : 'X\(//\)$' \| \
11068          X"$0" : 'X\(/\)$' \| \
11069          .     : '\(.\)' 2>/dev/null ||
11070 echo X/"$0" |
11071     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11072           /^X\/\(\/\/\)$/{ s//\1/; q; }
11073           /^X\/\(\/\).*/{ s//\1/; q; }
11074           s/.*/./; q'`
11075
11076
11077 # PATH needs CR, and LINENO needs CR and PATH.
11078 # Avoid depending upon Character Ranges.
11079 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11080 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11081 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11082 as_cr_digits='0123456789'
11083 as_cr_alnum=$as_cr_Letters$as_cr_digits
11084
11085 # The user is always right.
11086 if test "${PATH_SEPARATOR+set}" != set; then
11087   echo "#! /bin/sh" >conf$$.sh
11088   echo  "exit 0"   >>conf$$.sh
11089   chmod +x conf$$.sh
11090   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11091     PATH_SEPARATOR=';'
11092   else
11093     PATH_SEPARATOR=:
11094   fi
11095   rm -f conf$$.sh
11096 fi
11097
11098
11099   as_lineno_1=$LINENO
11100   as_lineno_2=$LINENO
11101   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11102   test "x$as_lineno_1" != "x$as_lineno_2" &&
11103   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11104   # Find who we are.  Look in the path if we contain no path at all
11105   # relative or not.
11106   case $0 in
11107     *[\\/]* ) as_myself=$0 ;;
11108     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11109 for as_dir in $PATH
11110 do
11111   IFS=$as_save_IFS
11112   test -z "$as_dir" && as_dir=.
11113   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11114 done
11115
11116        ;;
11117   esac
11118   # We did not find ourselves, most probably we were run as `sh COMMAND'
11119   # in which case we are not to be found in the path.
11120   if test "x$as_myself" = x; then
11121     as_myself=$0
11122   fi
11123   if test ! -f "$as_myself"; then
11124     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11125 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11126    { (exit 1); exit 1; }; }
11127   fi
11128   case $CONFIG_SHELL in
11129   '')
11130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11132 do
11133   IFS=$as_save_IFS
11134   test -z "$as_dir" && as_dir=.
11135   for as_base in sh bash ksh sh5; do
11136          case $as_dir in
11137          /*)
11138            if ("$as_dir/$as_base" -c '
11139   as_lineno_1=$LINENO
11140   as_lineno_2=$LINENO
11141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11142   test "x$as_lineno_1" != "x$as_lineno_2" &&
11143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11146              CONFIG_SHELL=$as_dir/$as_base
11147              export CONFIG_SHELL
11148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11149            fi;;
11150          esac
11151        done
11152 done
11153 ;;
11154   esac
11155
11156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11157   # uniformly replaced by the line number.  The first 'sed' inserts a
11158   # line-number line before each line; the second 'sed' does the real
11159   # work.  The second script uses 'N' to pair each line-number line
11160   # with the numbered line, and appends trailing '-' during
11161   # substitution so that $LINENO is not a special case at line end.
11162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11164   sed '=' <$as_myself |
11165     sed '
11166       N
11167       s,$,-,
11168       : loop
11169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11170       t loop
11171       s,-$,,
11172       s,^['$as_cr_digits']*\n,,
11173     ' >$as_me.lineno &&
11174   chmod +x $as_me.lineno ||
11175     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11176 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11177    { (exit 1); exit 1; }; }
11178
11179   # Don't try to exec as it changes $[0], causing all sort of problems
11180   # (the dirname of $[0] is not the place where we might find the
11181   # original and so on.  Autoconf is especially sensible to this).
11182   . ./$as_me.lineno
11183   # Exit status is that of the last command.
11184   exit
11185 }
11186
11187
11188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11189   *c*,-n*) ECHO_N= ECHO_C='
11190 ' ECHO_T='      ' ;;
11191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11193 esac
11194
11195 if expr a : '\(a\)' >/dev/null 2>&1; then
11196   as_expr=expr
11197 else
11198   as_expr=false
11199 fi
11200
11201 rm -f conf$$ conf$$.exe conf$$.file
11202 echo >conf$$.file
11203 if ln -s conf$$.file conf$$ 2>/dev/null; then
11204   # We could just check for DJGPP; but this test a) works b) is more generic
11205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11206   if test -f conf$$.exe; then
11207     # Don't use ln at all; we don't have any links
11208     as_ln_s='cp -p'
11209   else
11210     as_ln_s='ln -s'
11211   fi
11212 elif ln conf$$.file conf$$ 2>/dev/null; then
11213   as_ln_s=ln
11214 else
11215   as_ln_s='cp -p'
11216 fi
11217 rm -f conf$$ conf$$.exe conf$$.file
11218
11219 if mkdir -p . 2>/dev/null; then
11220   as_mkdir_p=:
11221 else
11222   test -d ./-p && rmdir ./-p
11223   as_mkdir_p=false
11224 fi
11225
11226 as_executable_p="test -f"
11227
11228 # Sed expression to map a string onto a valid CPP name.
11229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11230
11231 # Sed expression to map a string onto a valid variable name.
11232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11233
11234
11235 # IFS
11236 # We need space, tab and new line, in precisely that order.
11237 as_nl='
11238 '
11239 IFS="   $as_nl"
11240
11241 # CDPATH.
11242 $as_unset CDPATH
11243
11244 exec 6>&1
11245
11246 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11247 # report actual input values of CONFIG_FILES etc. instead of their
11248 # values after options handling.  Logging --version etc. is OK.
11249 exec 5>>config.log
11250 {
11251   echo
11252   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11253 ## Running $as_me. ##
11254 _ASBOX
11255 } >&5
11256 cat >&5 <<_CSEOF
11257
11258 This file was extended by $as_me, which was
11259 generated by GNU Autoconf 2.59.  Invocation command line was
11260
11261   CONFIG_FILES    = $CONFIG_FILES
11262   CONFIG_HEADERS  = $CONFIG_HEADERS
11263   CONFIG_LINKS    = $CONFIG_LINKS
11264   CONFIG_COMMANDS = $CONFIG_COMMANDS
11265   $ $0 $@
11266
11267 _CSEOF
11268 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11269 echo >&5
11270 _ACEOF
11271
11272 # Files that config.status was made for.
11273 if test -n "$ac_config_files"; then
11274   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11275 fi
11276
11277 if test -n "$ac_config_headers"; then
11278   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11279 fi
11280
11281 if test -n "$ac_config_links"; then
11282   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11283 fi
11284
11285 if test -n "$ac_config_commands"; then
11286   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11287 fi
11288
11289 cat >>$CONFIG_STATUS <<\_ACEOF
11290
11291 ac_cs_usage="\
11292 \`$as_me' instantiates files from templates according to the
11293 current configuration.
11294
11295 Usage: $0 [OPTIONS] [FILE]...
11296
11297   -h, --help       print this help, then exit
11298   -V, --version    print version number, then exit
11299   -q, --quiet      do not print progress messages
11300   -d, --debug      don't remove temporary files
11301       --recheck    update $as_me by reconfiguring in the same conditions
11302   --file=FILE[:TEMPLATE]
11303                    instantiate the configuration file FILE
11304   --header=FILE[:TEMPLATE]
11305                    instantiate the configuration header FILE
11306
11307 Configuration files:
11308 $config_files
11309
11310 Configuration headers:
11311 $config_headers
11312
11313 Report bugs to <bug-autoconf@gnu.org>."
11314 _ACEOF
11315
11316 cat >>$CONFIG_STATUS <<_ACEOF
11317 ac_cs_version="\\
11318 config.status
11319 configured by $0, generated by GNU Autoconf 2.59,
11320   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11321
11322 Copyright (C) 2003 Free Software Foundation, Inc.
11323 This config.status script is free software; the Free Software Foundation
11324 gives unlimited permission to copy, distribute and modify it."
11325 srcdir=$srcdir
11326 INSTALL="$INSTALL"
11327 _ACEOF
11328
11329 cat >>$CONFIG_STATUS <<\_ACEOF
11330 # If no file are specified by the user, then we need to provide default
11331 # value.  By we need to know if files were specified by the user.
11332 ac_need_defaults=:
11333 while test $# != 0
11334 do
11335   case $1 in
11336   --*=*)
11337     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11338     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11339     ac_shift=:
11340     ;;
11341   -*)
11342     ac_option=$1
11343     ac_optarg=$2
11344     ac_shift=shift
11345     ;;
11346   *) # This is not an option, so the user has probably given explicit
11347      # arguments.
11348      ac_option=$1
11349      ac_need_defaults=false;;
11350   esac
11351
11352   case $ac_option in
11353   # Handling of the options.
11354 _ACEOF
11355 cat >>$CONFIG_STATUS <<\_ACEOF
11356   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11357     ac_cs_recheck=: ;;
11358   --version | --vers* | -V )
11359     echo "$ac_cs_version"; exit 0 ;;
11360   --he | --h)
11361     # Conflict between --help and --header
11362     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11363 Try \`$0 --help' for more information." >&5
11364 echo "$as_me: error: ambiguous option: $1
11365 Try \`$0 --help' for more information." >&2;}
11366    { (exit 1); exit 1; }; };;
11367   --help | --hel | -h )
11368     echo "$ac_cs_usage"; exit 0 ;;
11369   --debug | --d* | -d )
11370     debug=: ;;
11371   --file | --fil | --fi | --f )
11372     $ac_shift
11373     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11374     ac_need_defaults=false;;
11375   --header | --heade | --head | --hea )
11376     $ac_shift
11377     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11378     ac_need_defaults=false;;
11379   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11380   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11381     ac_cs_silent=: ;;
11382
11383   # This is an error.
11384   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11385 Try \`$0 --help' for more information." >&5
11386 echo "$as_me: error: unrecognized option: $1
11387 Try \`$0 --help' for more information." >&2;}
11388    { (exit 1); exit 1; }; } ;;
11389
11390   *) ac_config_targets="$ac_config_targets $1" ;;
11391
11392   esac
11393   shift
11394 done
11395
11396 ac_configure_extra_args=
11397
11398 if $ac_cs_silent; then
11399   exec 6>/dev/null
11400   ac_configure_extra_args="$ac_configure_extra_args --silent"
11401 fi
11402
11403 _ACEOF
11404 cat >>$CONFIG_STATUS <<_ACEOF
11405 if \$ac_cs_recheck; then
11406   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11407   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11408 fi
11409
11410 _ACEOF
11411
11412
11413
11414
11415
11416 cat >>$CONFIG_STATUS <<\_ACEOF
11417 for ac_config_target in $ac_config_targets
11418 do
11419   case "$ac_config_target" in
11420   # Handling of arguments.
11421   "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11422   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11423   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11424 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11425    { (exit 1); exit 1; }; };;
11426   esac
11427 done
11428
11429 # If the user did not use the arguments to specify the items to instantiate,
11430 # then the envvar interface is used.  Set only those that are not.
11431 # We use the long form for the default assignment because of an extremely
11432 # bizarre bug on SunOS 4.1.3.
11433 if $ac_need_defaults; then
11434   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11435   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11436 fi
11437
11438 # Have a temporary directory for convenience.  Make it in the build tree
11439 # simply because there is no reason to put it here, and in addition,
11440 # creating and moving files from /tmp can sometimes cause problems.
11441 # Create a temporary directory, and hook for its removal unless debugging.
11442 $debug ||
11443 {
11444   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11445   trap '{ (exit 1); exit 1; }' 1 2 13 15
11446 }
11447
11448 # Create a (secure) tmp directory for tmp files.
11449
11450 {
11451   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11452   test -n "$tmp" && test -d "$tmp"
11453 }  ||
11454 {
11455   tmp=./confstat$$-$RANDOM
11456   (umask 077 && mkdir $tmp)
11457 } ||
11458 {
11459    echo "$me: cannot create a temporary directory in ." >&2
11460    { (exit 1); exit 1; }
11461 }
11462
11463 _ACEOF
11464
11465 cat >>$CONFIG_STATUS <<_ACEOF
11466
11467 #
11468 # CONFIG_FILES section.
11469 #
11470
11471 # No need to generate the scripts if there are no CONFIG_FILES.
11472 # This happens for instance when ./config.status config.h
11473 if test -n "\$CONFIG_FILES"; then
11474   # Protect against being on the right side of a sed subst in config.status.
11475   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11476    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11477 s,@SHELL@,$SHELL,;t t
11478 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11479 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11480 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11481 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11482 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11483 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11484 s,@exec_prefix@,$exec_prefix,;t t
11485 s,@prefix@,$prefix,;t t
11486 s,@program_transform_name@,$program_transform_name,;t t
11487 s,@bindir@,$bindir,;t t
11488 s,@sbindir@,$sbindir,;t t
11489 s,@libexecdir@,$libexecdir,;t t
11490 s,@datadir@,$datadir,;t t
11491 s,@sysconfdir@,$sysconfdir,;t t
11492 s,@sharedstatedir@,$sharedstatedir,;t t
11493 s,@localstatedir@,$localstatedir,;t t
11494 s,@libdir@,$libdir,;t t
11495 s,@includedir@,$includedir,;t t
11496 s,@oldincludedir@,$oldincludedir,;t t
11497 s,@infodir@,$infodir,;t t
11498 s,@mandir@,$mandir,;t t
11499 s,@build_alias@,$build_alias,;t t
11500 s,@host_alias@,$host_alias,;t t
11501 s,@target_alias@,$target_alias,;t t
11502 s,@DEFS@,$DEFS,;t t
11503 s,@ECHO_C@,$ECHO_C,;t t
11504 s,@ECHO_N@,$ECHO_N,;t t
11505 s,@ECHO_T@,$ECHO_T,;t t
11506 s,@LIBS@,$LIBS,;t t
11507 s,@build@,$build,;t t
11508 s,@build_cpu@,$build_cpu,;t t
11509 s,@build_vendor@,$build_vendor,;t t
11510 s,@build_os@,$build_os,;t t
11511 s,@host@,$host,;t t
11512 s,@host_cpu@,$host_cpu,;t t
11513 s,@host_vendor@,$host_vendor,;t t
11514 s,@host_os@,$host_os,;t t
11515 s,@CC@,$CC,;t t
11516 s,@CFLAGS@,$CFLAGS,;t t
11517 s,@LDFLAGS@,$LDFLAGS,;t t
11518 s,@CPPFLAGS@,$CPPFLAGS,;t t
11519 s,@ac_ct_CC@,$ac_ct_CC,;t t
11520 s,@EXEEXT@,$EXEEXT,;t t
11521 s,@OBJEXT@,$OBJEXT,;t t
11522 s,@CXX@,$CXX,;t t
11523 s,@CXXFLAGS@,$CXXFLAGS,;t t
11524 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11525 s,@CPP@,$CPP,;t t
11526 s,@RANLIB@,$RANLIB,;t t
11527 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11528 s,@SET_MAKE@,$SET_MAKE,;t t
11529 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11530 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11531 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11532 s,@LN_S@,$LN_S,;t t
11533 s,@ECHO@,$ECHO,;t t
11534 s,@STRIP@,$STRIP,;t t
11535 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11536 s,@EGREP@,$EGREP,;t t
11537 s,@LIBTOOL@,$LIBTOOL,;t t
11538 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
11539 s,@AR@,$AR,;t t
11540 s,@SLEXT@,$SLEXT,;t t
11541 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
11542 s,@target@,$target,;t t
11543 s,@target_cpu@,$target_cpu,;t t
11544 s,@target_vendor@,$target_vendor,;t t
11545 s,@target_os@,$target_os,;t t
11546 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
11547 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
11548 s,@PACKAGE@,$PACKAGE,;t t
11549 s,@VERSION@,$VERSION,;t t
11550 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
11551 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
11552 s,@lame_objects@,$lame_objects,;t t
11553 s,@USE_GZIP@,$USE_GZIP,;t t
11554 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
11555 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
11556 s,@JPEG2SWF@,$JPEG2SWF,;t t
11557 s,@PNG2SWF@,$PNG2SWF,;t t
11558 s,@LIBOBJS@,$LIBOBJS,;t t
11559 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11560 CEOF
11561
11562 _ACEOF
11563
11564   cat >>$CONFIG_STATUS <<\_ACEOF
11565   # Split the substitutions into bite-sized pieces for seds with
11566   # small command number limits, like on Digital OSF/1 and HP-UX.
11567   ac_max_sed_lines=48
11568   ac_sed_frag=1 # Number of current file.
11569   ac_beg=1 # First line for current file.
11570   ac_end=$ac_max_sed_lines # Line after last line for current file.
11571   ac_more_lines=:
11572   ac_sed_cmds=
11573   while $ac_more_lines; do
11574     if test $ac_beg -gt 1; then
11575       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11576     else
11577       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11578     fi
11579     if test ! -s $tmp/subs.frag; then
11580       ac_more_lines=false
11581     else
11582       # The purpose of the label and of the branching condition is to
11583       # speed up the sed processing (if there are no `@' at all, there
11584       # is no need to browse any of the substitutions).
11585       # These are the two extra sed commands mentioned above.
11586       (echo ':t
11587   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11588       if test -z "$ac_sed_cmds"; then
11589         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11590       else
11591         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11592       fi
11593       ac_sed_frag=`expr $ac_sed_frag + 1`
11594       ac_beg=$ac_end
11595       ac_end=`expr $ac_end + $ac_max_sed_lines`
11596     fi
11597   done
11598   if test -z "$ac_sed_cmds"; then
11599     ac_sed_cmds=cat
11600   fi
11601 fi # test -n "$CONFIG_FILES"
11602
11603 _ACEOF
11604 cat >>$CONFIG_STATUS <<\_ACEOF
11605 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11606   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11607   case $ac_file in
11608   - | *:- | *:-:* ) # input from stdin
11609         cat >$tmp/stdin
11610         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11611         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11612   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11613         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11614   * )   ac_file_in=$ac_file.in ;;
11615   esac
11616
11617   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11618   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11619 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11620          X"$ac_file" : 'X\(//\)[^/]' \| \
11621          X"$ac_file" : 'X\(//\)$' \| \
11622          X"$ac_file" : 'X\(/\)' \| \
11623          .     : '\(.\)' 2>/dev/null ||
11624 echo X"$ac_file" |
11625     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11626           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11627           /^X\(\/\/\)$/{ s//\1/; q; }
11628           /^X\(\/\).*/{ s//\1/; q; }
11629           s/.*/./; q'`
11630   { if $as_mkdir_p; then
11631     mkdir -p "$ac_dir"
11632   else
11633     as_dir="$ac_dir"
11634     as_dirs=
11635     while test ! -d "$as_dir"; do
11636       as_dirs="$as_dir $as_dirs"
11637       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11638 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11639          X"$as_dir" : 'X\(//\)[^/]' \| \
11640          X"$as_dir" : 'X\(//\)$' \| \
11641          X"$as_dir" : 'X\(/\)' \| \
11642          .     : '\(.\)' 2>/dev/null ||
11643 echo X"$as_dir" |
11644     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11645           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11646           /^X\(\/\/\)$/{ s//\1/; q; }
11647           /^X\(\/\).*/{ s//\1/; q; }
11648           s/.*/./; q'`
11649     done
11650     test ! -n "$as_dirs" || mkdir $as_dirs
11651   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11652 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11653    { (exit 1); exit 1; }; }; }
11654
11655   ac_builddir=.
11656
11657 if test "$ac_dir" != .; then
11658   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11659   # A "../" for each directory in $ac_dir_suffix.
11660   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11661 else
11662   ac_dir_suffix= ac_top_builddir=
11663 fi
11664
11665 case $srcdir in
11666   .)  # No --srcdir option.  We are building in place.
11667     ac_srcdir=.
11668     if test -z "$ac_top_builddir"; then
11669        ac_top_srcdir=.
11670     else
11671        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11672     fi ;;
11673   [\\/]* | ?:[\\/]* )  # Absolute path.
11674     ac_srcdir=$srcdir$ac_dir_suffix;
11675     ac_top_srcdir=$srcdir ;;
11676   *) # Relative path.
11677     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11678     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11679 esac
11680
11681 # Do not use `cd foo && pwd` to compute absolute paths, because
11682 # the directories may not exist.
11683 case `pwd` in
11684 .) ac_abs_builddir="$ac_dir";;
11685 *)
11686   case "$ac_dir" in
11687   .) ac_abs_builddir=`pwd`;;
11688   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11689   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11690   esac;;
11691 esac
11692 case $ac_abs_builddir in
11693 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11694 *)
11695   case ${ac_top_builddir}. in
11696   .) ac_abs_top_builddir=$ac_abs_builddir;;
11697   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11698   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11699   esac;;
11700 esac
11701 case $ac_abs_builddir in
11702 .) ac_abs_srcdir=$ac_srcdir;;
11703 *)
11704   case $ac_srcdir in
11705   .) ac_abs_srcdir=$ac_abs_builddir;;
11706   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11707   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11708   esac;;
11709 esac
11710 case $ac_abs_builddir in
11711 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11712 *)
11713   case $ac_top_srcdir in
11714   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11715   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11716   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11717   esac;;
11718 esac
11719
11720
11721   case $INSTALL in
11722   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11723   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11724   esac
11725
11726   if test x"$ac_file" != x-; then
11727     { echo "$as_me:$LINENO: creating $ac_file" >&5
11728 echo "$as_me: creating $ac_file" >&6;}
11729     rm -f "$ac_file"
11730   fi
11731   # Let's still pretend it is `configure' which instantiates (i.e., don't
11732   # use $as_me), people would be surprised to read:
11733   #    /* config.h.  Generated by config.status.  */
11734   if test x"$ac_file" = x-; then
11735     configure_input=
11736   else
11737     configure_input="$ac_file.  "
11738   fi
11739   configure_input=$configure_input"Generated from `echo $ac_file_in |
11740                                      sed 's,.*/,,'` by configure."
11741
11742   # First look for the input files in the build tree, otherwise in the
11743   # src tree.
11744   ac_file_inputs=`IFS=:
11745     for f in $ac_file_in; do
11746       case $f in
11747       -) echo $tmp/stdin ;;
11748       [\\/$]*)
11749          # Absolute (can't be DOS-style, as IFS=:)
11750          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11751 echo "$as_me: error: cannot find input file: $f" >&2;}
11752    { (exit 1); exit 1; }; }
11753          echo "$f";;
11754       *) # Relative
11755          if test -f "$f"; then
11756            # Build tree
11757            echo "$f"
11758          elif test -f "$srcdir/$f"; then
11759            # Source tree
11760            echo "$srcdir/$f"
11761          else
11762            # /dev/null tree
11763            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11764 echo "$as_me: error: cannot find input file: $f" >&2;}
11765    { (exit 1); exit 1; }; }
11766          fi;;
11767       esac
11768     done` || { (exit 1); exit 1; }
11769 _ACEOF
11770 cat >>$CONFIG_STATUS <<_ACEOF
11771   sed "$ac_vpsub
11772 $extrasub
11773 _ACEOF
11774 cat >>$CONFIG_STATUS <<\_ACEOF
11775 :t
11776 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11777 s,@configure_input@,$configure_input,;t t
11778 s,@srcdir@,$ac_srcdir,;t t
11779 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11780 s,@top_srcdir@,$ac_top_srcdir,;t t
11781 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11782 s,@builddir@,$ac_builddir,;t t
11783 s,@abs_builddir@,$ac_abs_builddir,;t t
11784 s,@top_builddir@,$ac_top_builddir,;t t
11785 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11786 s,@INSTALL@,$ac_INSTALL,;t t
11787 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11788   rm -f $tmp/stdin
11789   if test x"$ac_file" != x-; then
11790     mv $tmp/out $ac_file
11791   else
11792     cat $tmp/out
11793     rm -f $tmp/out
11794   fi
11795
11796 done
11797 _ACEOF
11798 cat >>$CONFIG_STATUS <<\_ACEOF
11799
11800 #
11801 # CONFIG_HEADER section.
11802 #
11803
11804 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11805 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11806 #
11807 # ac_d sets the value in "#define NAME VALUE" lines.
11808 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11809 ac_dB='[         ].*$,\1#\2'
11810 ac_dC=' '
11811 ac_dD=',;t'
11812 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11813 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11814 ac_uB='$,\1#\2define\3'
11815 ac_uC=' '
11816 ac_uD=',;t'
11817
11818 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11819   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11820   case $ac_file in
11821   - | *:- | *:-:* ) # input from stdin
11822         cat >$tmp/stdin
11823         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11824         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11825   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11826         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11827   * )   ac_file_in=$ac_file.in ;;
11828   esac
11829
11830   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11831 echo "$as_me: creating $ac_file" >&6;}
11832
11833   # First look for the input files in the build tree, otherwise in the
11834   # src tree.
11835   ac_file_inputs=`IFS=:
11836     for f in $ac_file_in; do
11837       case $f in
11838       -) echo $tmp/stdin ;;
11839       [\\/$]*)
11840          # Absolute (can't be DOS-style, as IFS=:)
11841          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11842 echo "$as_me: error: cannot find input file: $f" >&2;}
11843    { (exit 1); exit 1; }; }
11844          # Do quote $f, to prevent DOS paths from being IFS'd.
11845          echo "$f";;
11846       *) # Relative
11847          if test -f "$f"; then
11848            # Build tree
11849            echo "$f"
11850          elif test -f "$srcdir/$f"; then
11851            # Source tree
11852            echo "$srcdir/$f"
11853          else
11854            # /dev/null tree
11855            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11856 echo "$as_me: error: cannot find input file: $f" >&2;}
11857    { (exit 1); exit 1; }; }
11858          fi;;
11859       esac
11860     done` || { (exit 1); exit 1; }
11861   # Remove the trailing spaces.
11862   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11863
11864 _ACEOF
11865
11866 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11867 # `conftest.undefs', that substitutes the proper values into
11868 # config.h.in to produce config.h.  The first handles `#define'
11869 # templates, and the second `#undef' templates.
11870 # And first: Protect against being on the right side of a sed subst in
11871 # config.status.  Protect against being in an unquoted here document
11872 # in config.status.
11873 rm -f conftest.defines conftest.undefs
11874 # Using a here document instead of a string reduces the quoting nightmare.
11875 # Putting comments in sed scripts is not portable.
11876 #
11877 # `end' is used to avoid that the second main sed command (meant for
11878 # 0-ary CPP macros) applies to n-ary macro definitions.
11879 # See the Autoconf documentation for `clear'.
11880 cat >confdef2sed.sed <<\_ACEOF
11881 s/[\\&,]/\\&/g
11882 s,[\\$`],\\&,g
11883 t clear
11884 : clear
11885 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11886 t end
11887 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11888 : end
11889 _ACEOF
11890 # If some macros were called several times there might be several times
11891 # the same #defines, which is useless.  Nevertheless, we may not want to
11892 # sort them, since we want the *last* AC-DEFINE to be honored.
11893 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11894 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11895 rm -f confdef2sed.sed
11896
11897 # This sed command replaces #undef with comments.  This is necessary, for
11898 # example, in the case of _POSIX_SOURCE, which is predefined and required
11899 # on some systems where configure will not decide to define it.
11900 cat >>conftest.undefs <<\_ACEOF
11901 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11902 _ACEOF
11903
11904 # Break up conftest.defines because some shells have a limit on the size
11905 # of here documents, and old seds have small limits too (100 cmds).
11906 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11907 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11908 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11909 echo '  :' >>$CONFIG_STATUS
11910 rm -f conftest.tail
11911 while grep . conftest.defines >/dev/null
11912 do
11913   # Write a limited-size here document to $tmp/defines.sed.
11914   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11915   # Speed up: don't consider the non `#define' lines.
11916   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11917   # Work around the forget-to-reset-the-flag bug.
11918   echo 't clr' >>$CONFIG_STATUS
11919   echo ': clr' >>$CONFIG_STATUS
11920   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11921   echo 'CEOF
11922   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11923   rm -f $tmp/in
11924   mv $tmp/out $tmp/in
11925 ' >>$CONFIG_STATUS
11926   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11927   rm -f conftest.defines
11928   mv conftest.tail conftest.defines
11929 done
11930 rm -f conftest.defines
11931 echo '  fi # grep' >>$CONFIG_STATUS
11932 echo >>$CONFIG_STATUS
11933
11934 # Break up conftest.undefs because some shells have a limit on the size
11935 # of here documents, and old seds have small limits too (100 cmds).
11936 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11937 rm -f conftest.tail
11938 while grep . conftest.undefs >/dev/null
11939 do
11940   # Write a limited-size here document to $tmp/undefs.sed.
11941   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11942   # Speed up: don't consider the non `#undef'
11943   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11944   # Work around the forget-to-reset-the-flag bug.
11945   echo 't clr' >>$CONFIG_STATUS
11946   echo ': clr' >>$CONFIG_STATUS
11947   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11948   echo 'CEOF
11949   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11950   rm -f $tmp/in
11951   mv $tmp/out $tmp/in
11952 ' >>$CONFIG_STATUS
11953   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11954   rm -f conftest.undefs
11955   mv conftest.tail conftest.undefs
11956 done
11957 rm -f conftest.undefs
11958
11959 cat >>$CONFIG_STATUS <<\_ACEOF
11960   # Let's still pretend it is `configure' which instantiates (i.e., don't
11961   # use $as_me), people would be surprised to read:
11962   #    /* config.h.  Generated by config.status.  */
11963   if test x"$ac_file" = x-; then
11964     echo "/* Generated by configure.  */" >$tmp/config.h
11965   else
11966     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11967   fi
11968   cat $tmp/in >>$tmp/config.h
11969   rm -f $tmp/in
11970   if test x"$ac_file" != x-; then
11971     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11972       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11973 echo "$as_me: $ac_file is unchanged" >&6;}
11974     else
11975       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11976 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11977          X"$ac_file" : 'X\(//\)[^/]' \| \
11978          X"$ac_file" : 'X\(//\)$' \| \
11979          X"$ac_file" : 'X\(/\)' \| \
11980          .     : '\(.\)' 2>/dev/null ||
11981 echo X"$ac_file" |
11982     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11983           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11984           /^X\(\/\/\)$/{ s//\1/; q; }
11985           /^X\(\/\).*/{ s//\1/; q; }
11986           s/.*/./; q'`
11987       { if $as_mkdir_p; then
11988     mkdir -p "$ac_dir"
11989   else
11990     as_dir="$ac_dir"
11991     as_dirs=
11992     while test ! -d "$as_dir"; do
11993       as_dirs="$as_dir $as_dirs"
11994       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11996          X"$as_dir" : 'X\(//\)[^/]' \| \
11997          X"$as_dir" : 'X\(//\)$' \| \
11998          X"$as_dir" : 'X\(/\)' \| \
11999          .     : '\(.\)' 2>/dev/null ||
12000 echo X"$as_dir" |
12001     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12002           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12003           /^X\(\/\/\)$/{ s//\1/; q; }
12004           /^X\(\/\).*/{ s//\1/; q; }
12005           s/.*/./; q'`
12006     done
12007     test ! -n "$as_dirs" || mkdir $as_dirs
12008   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12009 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12010    { (exit 1); exit 1; }; }; }
12011
12012       rm -f $ac_file
12013       mv $tmp/config.h $ac_file
12014     fi
12015   else
12016     cat $tmp/config.h
12017     rm -f $tmp/config.h
12018   fi
12019 done
12020 _ACEOF
12021
12022 cat >>$CONFIG_STATUS <<\_ACEOF
12023
12024 { (exit 0); exit 0; }
12025 _ACEOF
12026 chmod +x $CONFIG_STATUS
12027 ac_clean_files=$ac_clean_files_save
12028
12029
12030 # configure is writing to config.log, and then calls config.status.
12031 # config.status does its own redirection, appending to config.log.
12032 # Unfortunately, on DOS this fails, as config.log is still kept open
12033 # by configure, so config.status won't be able to write to it; its
12034 # output is simply discarded.  So we exec the FD to /dev/null,
12035 # effectively closing config.log, so it can be properly (re)opened and
12036 # appended to by config.status.  When coming back to configure, we
12037 # need to make the FD available again.
12038 if test "$no_create" != yes; then
12039   ac_cs_success=:
12040   ac_config_status_args=
12041   test "$silent" = yes &&
12042     ac_config_status_args="$ac_config_status_args --quiet"
12043   exec 5>/dev/null
12044   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12045   exec 5>>config.log
12046   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12047   # would make configure fail if this is the last instruction.
12048   $ac_cs_success || { (exit 1); exit 1; }
12049 fi
12050
12051
12052 if test "x${srcdir}" != "x."; then
12053     echo "Warning: --srcdir is not supported"
12054 fi