fixed check for freetype-config (again).
[swftools.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Find the correct PATH separator.  Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247   UNAME=${UNAME-`uname 2>/dev/null`}
248   case X$UNAME in
249     *-DOS) lt_cv_sys_path_separator=';' ;;
250     *)     lt_cv_sys_path_separator=':' ;;
251   esac
252   PATH_SEPARATOR=$lt_cv_sys_path_separator
253 fi
254
255
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
258
259 case X$ECHO in
260 X*--fallback-echo)
261   # Remove one level of quotation (which was required for Make).
262   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
263   ;;
264 esac
265
266 echo=${ECHO-echo}
267 if test "X$1" = X--no-reexec; then
268   # Discard the --no-reexec flag, and continue.
269   shift
270 elif test "X$1" = X--fallback-echo; then
271   # Avoid inline document here, it may be left over
272   :
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274   # Yippee, $echo works!
275   :
276 else
277   # Restart under the correct shell.
278   exec $SHELL "$0" --no-reexec ${1+"$@"}
279 fi
280
281 if test "X$1" = X--fallback-echo; then
282   # used as fallback echo
283   shift
284   cat <<EOF
285
286 EOF
287   exit 0
288 fi
289
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
291 # if CDPATH is set.
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300        echo_test_string="`eval $cmd`" &&
301        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
302     then
303       break
304     fi
305   done
306 fi
307
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310    test "X$echo_testing_string" = "X$echo_test_string"; then
311   :
312 else
313   # The Solaris, AIX, and Digital Unix default echo programs unquote
314   # backslashes.  This makes it impossible to quote backslashes using
315   #   echo "$something" | sed 's/\\/\\\\/g'
316   #
317   # So, first we look for a working echo in the user's PATH.
318
319   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320   for dir in $PATH /usr/ucb; do
321     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324        test "X$echo_testing_string" = "X$echo_test_string"; then
325       echo="$dir/echo"
326       break
327     fi
328   done
329   IFS="$save_ifs"
330
331   if test "X$echo" = Xecho; then
332     # We didn't find a better echo, so look for alternatives.
333     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335        test "X$echo_testing_string" = "X$echo_test_string"; then
336       # This shell has a builtin print -r that does the trick.
337       echo='print -r'
338     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339          test "X$CONFIG_SHELL" != X/bin/ksh; then
340       # If we have ksh, try running configure again with it.
341       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342       export ORIGINAL_CONFIG_SHELL
343       CONFIG_SHELL=/bin/ksh
344       export CONFIG_SHELL
345       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
346     else
347       # Try using printf.
348       echo='printf %s\n'
349       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351          test "X$echo_testing_string" = "X$echo_test_string"; then
352         # Cool, printf works
353         :
354       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359         export CONFIG_SHELL
360         SHELL="$CONFIG_SHELL"
361         export SHELL
362         echo="$CONFIG_SHELL $0 --fallback-echo"
363       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364            test "X$echo_testing_string" = 'X\t' &&
365            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366            test "X$echo_testing_string" = "X$echo_test_string"; then
367         echo="$CONFIG_SHELL $0 --fallback-echo"
368       else
369         # maybe with a smaller string...
370         prev=:
371
372         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374           then
375             break
376           fi
377           prev="$cmd"
378         done
379
380         if test "$prev" != 'sed 50q "$0"'; then
381           echo_test_string=`eval $prev`
382           export echo_test_string
383           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384         else
385           # Oops.  We lost completely, so just stick with echo.
386           echo=echo
387         fi
388       fi
389     fi
390   fi
391 fi
392 fi
393
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
396 ECHO=$echo
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 fi
400
401
402
403 # Name of the host.
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
407
408 exec 6>&1
409
410 #
411 # Initializations.
412 #
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
415 cross_compiling=no
416 subdirs=
417 MFLAGS=
418 MAKEFLAGS=
419 SHELL=${CONFIG_SHELL-/bin/sh}
420
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete.  It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
425
426 # Identity of this package.
427 PACKAGE_NAME=
428 PACKAGE_TARNAME=
429 PACKAGE_VERSION=
430 PACKAGE_STRING=
431 PACKAGE_BUGREPORT=
432
433 ac_unique_file="src/"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
436 #include <stdio.h>
437 #if HAVE_SYS_TYPES_H
438 # include <sys/types.h>
439 #endif
440 #if HAVE_SYS_STAT_H
441 # include <sys/stat.h>
442 #endif
443 #if STDC_HEADERS
444 # include <stdlib.h>
445 # include <stddef.h>
446 #else
447 # if HAVE_STDLIB_H
448 #  include <stdlib.h>
449 # endif
450 #endif
451 #if HAVE_STRING_H
452 # if !STDC_HEADERS && HAVE_MEMORY_H
453 #  include <memory.h>
454 # endif
455 # include <string.h>
456 #endif
457 #if HAVE_STRINGS_H
458 # include <strings.h>
459 #endif
460 #if HAVE_INTTYPES_H
461 # include <inttypes.h>
462 #else
463 # if HAVE_STDINT_H
464 #  include <stdint.h>
465 # endif
466 #endif
467 #if HAVE_UNISTD_H
468 # include <unistd.h>
469 #endif"
470
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHARED CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S ECHO STRIP ac_ct_STRIP EGREP LIBTOOL UNCOMPRESS AR SLEXT target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H FREETYPE_CONFIG lame_objects AVIFILE_CONFIG VIDEO_LIBS VIDEO_CFLAGS USE_GZIP PYTHON_LIB PYTHON_INCLUDES JPEG2SWF PNG2SWF LIBOBJS LTLIBOBJS'
472 ac_subst_files=''
473
474 # Initialize some variables set by options.
475 ac_init_help=
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
479 cache_file=/dev/null
480 exec_prefix=NONE
481 no_create=
482 no_recursion=
483 prefix=NONE
484 program_prefix=NONE
485 program_suffix=NONE
486 program_transform_name=s,x,x,
487 silent=
488 site=
489 srcdir=
490 verbose=
491 x_includes=NONE
492 x_libraries=NONE
493
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
511
512 ac_prev=
513 for ac_option
514 do
515   # If the previous option needs an argument, assign it.
516   if test -n "$ac_prev"; then
517     eval "$ac_prev=\$ac_option"
518     ac_prev=
519     continue
520   fi
521
522   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523
524   # Accept the important Cygnus configure options, so we can diagnose typos.
525
526   case $ac_option in
527
528   -bindir | --bindir | --bindi | --bind | --bin | --bi)
529     ac_prev=bindir ;;
530   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531     bindir=$ac_optarg ;;
532
533   -build | --build | --buil | --bui | --bu)
534     ac_prev=build_alias ;;
535   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536     build_alias=$ac_optarg ;;
537
538   -cache-file | --cache-file | --cache-fil | --cache-fi \
539   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540     ac_prev=cache_file ;;
541   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543     cache_file=$ac_optarg ;;
544
545   --config-cache | -C)
546     cache_file=config.cache ;;
547
548   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549     ac_prev=datadir ;;
550   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551   | --da=*)
552     datadir=$ac_optarg ;;
553
554   -disable-* | --disable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     eval "enable_$ac_feature=no" ;;
562
563   -enable-* | --enable-*)
564     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565     # Reject names that are not valid shell variable names.
566     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568    { (exit 1); exit 1; }; }
569     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570     case $ac_option in
571       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572       *) ac_optarg=yes ;;
573     esac
574     eval "enable_$ac_feature='$ac_optarg'" ;;
575
576   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578   | --exec | --exe | --ex)
579     ac_prev=exec_prefix ;;
580   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582   | --exec=* | --exe=* | --ex=*)
583     exec_prefix=$ac_optarg ;;
584
585   -gas | --gas | --ga | --g)
586     # Obsolete; use --with-gas.
587     with_gas=yes ;;
588
589   -help | --help | --hel | --he | -h)
590     ac_init_help=long ;;
591   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592     ac_init_help=recursive ;;
593   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594     ac_init_help=short ;;
595
596   -host | --host | --hos | --ho)
597     ac_prev=host_alias ;;
598   -host=* | --host=* | --hos=* | --ho=*)
599     host_alias=$ac_optarg ;;
600
601   -includedir | --includedir | --includedi | --included | --include \
602   | --includ | --inclu | --incl | --inc)
603     ac_prev=includedir ;;
604   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605   | --includ=* | --inclu=* | --incl=* | --inc=*)
606     includedir=$ac_optarg ;;
607
608   -infodir | --infodir | --infodi | --infod | --info | --inf)
609     ac_prev=infodir ;;
610   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611     infodir=$ac_optarg ;;
612
613   -libdir | --libdir | --libdi | --libd)
614     ac_prev=libdir ;;
615   -libdir=* | --libdir=* | --libdi=* | --libd=*)
616     libdir=$ac_optarg ;;
617
618   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619   | --libexe | --libex | --libe)
620     ac_prev=libexecdir ;;
621   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622   | --libexe=* | --libex=* | --libe=*)
623     libexecdir=$ac_optarg ;;
624
625   -localstatedir | --localstatedir | --localstatedi | --localstated \
626   | --localstate | --localstat | --localsta | --localst \
627   | --locals | --local | --loca | --loc | --lo)
628     ac_prev=localstatedir ;;
629   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632     localstatedir=$ac_optarg ;;
633
634   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635     ac_prev=mandir ;;
636   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637     mandir=$ac_optarg ;;
638
639   -nfp | --nfp | --nf)
640     # Obsolete; use --without-fp.
641     with_fp=no ;;
642
643   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644   | --no-cr | --no-c | -n)
645     no_create=yes ;;
646
647   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649     no_recursion=yes ;;
650
651   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653   | --oldin | --oldi | --old | --ol | --o)
654     ac_prev=oldincludedir ;;
655   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658     oldincludedir=$ac_optarg ;;
659
660   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661     ac_prev=prefix ;;
662   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663     prefix=$ac_optarg ;;
664
665   -program-prefix | --program-prefix | --program-prefi | --program-pref \
666   | --program-pre | --program-pr | --program-p)
667     ac_prev=program_prefix ;;
668   -program-prefix=* | --program-prefix=* | --program-prefi=* \
669   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670     program_prefix=$ac_optarg ;;
671
672   -program-suffix | --program-suffix | --program-suffi | --program-suff \
673   | --program-suf | --program-su | --program-s)
674     ac_prev=program_suffix ;;
675   -program-suffix=* | --program-suffix=* | --program-suffi=* \
676   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677     program_suffix=$ac_optarg ;;
678
679   -program-transform-name | --program-transform-name \
680   | --program-transform-nam | --program-transform-na \
681   | --program-transform-n | --program-transform- \
682   | --program-transform | --program-transfor \
683   | --program-transfo | --program-transf \
684   | --program-trans | --program-tran \
685   | --progr-tra | --program-tr | --program-t)
686     ac_prev=program_transform_name ;;
687   -program-transform-name=* | --program-transform-name=* \
688   | --program-transform-nam=* | --program-transform-na=* \
689   | --program-transform-n=* | --program-transform-=* \
690   | --program-transform=* | --program-transfor=* \
691   | --program-transfo=* | --program-transf=* \
692   | --program-trans=* | --program-tran=* \
693   | --progr-tra=* | --program-tr=* | --program-t=*)
694     program_transform_name=$ac_optarg ;;
695
696   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697   | -silent | --silent | --silen | --sile | --sil)
698     silent=yes ;;
699
700   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701     ac_prev=sbindir ;;
702   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703   | --sbi=* | --sb=*)
704     sbindir=$ac_optarg ;;
705
706   -sharedstatedir | --sharedstatedir | --sharedstatedi \
707   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708   | --sharedst | --shareds | --shared | --share | --shar \
709   | --sha | --sh)
710     ac_prev=sharedstatedir ;;
711   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714   | --sha=* | --sh=*)
715     sharedstatedir=$ac_optarg ;;
716
717   -site | --site | --sit)
718     ac_prev=site ;;
719   -site=* | --site=* | --sit=*)
720     site=$ac_optarg ;;
721
722   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723     ac_prev=srcdir ;;
724   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725     srcdir=$ac_optarg ;;
726
727   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728   | --syscon | --sysco | --sysc | --sys | --sy)
729     ac_prev=sysconfdir ;;
730   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732     sysconfdir=$ac_optarg ;;
733
734   -target | --target | --targe | --targ | --tar | --ta | --t)
735     ac_prev=target_alias ;;
736   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737     target_alias=$ac_optarg ;;
738
739   -v | -verbose | --verbose | --verbos | --verbo | --verb)
740     verbose=yes ;;
741
742   -version | --version | --versio | --versi | --vers | -V)
743     ac_init_version=: ;;
744
745   -with-* | --with-*)
746     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747     # Reject names that are not valid shell variable names.
748     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749       { echo "$as_me: error: invalid package name: $ac_package" >&2
750    { (exit 1); exit 1; }; }
751     ac_package=`echo $ac_package| sed 's/-/_/g'`
752     case $ac_option in
753       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754       *) ac_optarg=yes ;;
755     esac
756     eval "with_$ac_package='$ac_optarg'" ;;
757
758   -without-* | --without-*)
759     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760     # Reject names that are not valid shell variable names.
761     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762       { echo "$as_me: error: invalid package name: $ac_package" >&2
763    { (exit 1); exit 1; }; }
764     ac_package=`echo $ac_package | sed 's/-/_/g'`
765     eval "with_$ac_package=no" ;;
766
767   --x)
768     # Obsolete; use --with-x.
769     with_x=yes ;;
770
771   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772   | --x-incl | --x-inc | --x-in | --x-i)
773     ac_prev=x_includes ;;
774   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776     x_includes=$ac_optarg ;;
777
778   -x-libraries | --x-libraries | --x-librarie | --x-librari \
779   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780     ac_prev=x_libraries ;;
781   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783     x_libraries=$ac_optarg ;;
784
785   -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787    { (exit 1); exit 1; }; }
788     ;;
789
790   *=*)
791     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792     # Reject names that are not valid shell variable names.
793     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795    { (exit 1); exit 1; }; }
796     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797     eval "$ac_envvar='$ac_optarg'"
798     export $ac_envvar ;;
799
800   *)
801     # FIXME: should be removed in autoconf 3.0.
802     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806     ;;
807
808   esac
809 done
810
811 if test -n "$ac_prev"; then
812   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813   { echo "$as_me: error: missing argument to $ac_option" >&2
814    { (exit 1); exit 1; }; }
815 fi
816
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
819 do
820   eval ac_val=$`echo $ac_var`
821   case $ac_val in
822     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824    { (exit 1); exit 1; }; };;
825   esac
826 done
827
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830               localstatedir libdir includedir oldincludedir infodir mandir
831 do
832   eval ac_val=$`echo $ac_var`
833   case $ac_val in
834     [\\/$]* | ?:[\\/]* ) ;;
835     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836    { (exit 1); exit 1; }; };;
837   esac
838 done
839
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
843 build=$build_alias
844 host=$host_alias
845 target=$target_alias
846
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849   if test "x$build_alias" = x; then
850     cross_compiling=maybe
851     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852     If a cross compiler is detected then cross compile mode will be used." >&2
853   elif test "x$build_alias" != "x$host_alias"; then
854     cross_compiling=yes
855   fi
856 fi
857
858 ac_tool_prefix=
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860
861 test "$silent" = yes && exec 6>/dev/null
862
863
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866   ac_srcdir_defaulted=yes
867   # Try the directory containing this script, then its parent.
868   ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870          X"$0" : 'X\(//\)[^/]' \| \
871          X"$0" : 'X\(//\)$' \| \
872          X"$0" : 'X\(/\)' \| \
873          .     : '\(.\)' 2>/dev/null ||
874 echo X"$0" |
875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877           /^X\(\/\/\)$/{ s//\1/; q; }
878           /^X\(\/\).*/{ s//\1/; q; }
879           s/.*/./; q'`
880   srcdir=$ac_confdir
881   if test ! -r $srcdir/$ac_unique_file; then
882     srcdir=..
883   fi
884 else
885   ac_srcdir_defaulted=no
886 fi
887 if test ! -r $srcdir/$ac_unique_file; then
888   if test "$ac_srcdir_defaulted" = yes; then
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890    { (exit 1); exit 1; }; }
891   else
892     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893    { (exit 1); exit 1; }; }
894   fi
895 fi
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898    { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
913 ac_env_CC_value=$CC
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940
941 #
942 # Report the --help message.
943 #
944 if test "$ac_init_help" = "long"; then
945   # Omit some internal or obsolete options to make the list less imposing.
946   # This message is too long to be a string in the A/UX 3.1 sh.
947   cat <<_ACEOF
948 \`configure' configures this package to adapt to many kinds of systems.
949
950 Usage: $0 [OPTION]... [VAR=VALUE]...
951
952 To assign environment variables (e.g., CC, CFLAGS...), specify them as
953 VAR=VALUE.  See below for descriptions of some of the useful variables.
954
955 Defaults for the options are specified in brackets.
956
957 Configuration:
958   -h, --help              display this help and exit
959       --help=short        display options specific to this package
960       --help=recursive    display the short help of all the included packages
961   -V, --version           display version information and exit
962   -q, --quiet, --silent   do not print \`checking...' messages
963       --cache-file=FILE   cache test results in FILE [disabled]
964   -C, --config-cache      alias for \`--cache-file=config.cache'
965   -n, --no-create         do not create output files
966       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
967
968 _ACEOF
969
970   cat <<_ACEOF
971 Installation directories:
972   --prefix=PREFIX         install architecture-independent files in PREFIX
973                           [$ac_default_prefix]
974   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
975                           [PREFIX]
976
977 By default, \`make install' will install all the files in
978 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
979 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
980 for instance \`--prefix=\$HOME'.
981
982 For better control, use the options below.
983
984 Fine tuning of the installation directories:
985   --bindir=DIR           user executables [EPREFIX/bin]
986   --sbindir=DIR          system admin executables [EPREFIX/sbin]
987   --libexecdir=DIR       program executables [EPREFIX/libexec]
988   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
989   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
990   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
991   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
992   --libdir=DIR           object code libraries [EPREFIX/lib]
993   --includedir=DIR       C header files [PREFIX/include]
994   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
995   --infodir=DIR          info documentation [PREFIX/info]
996   --mandir=DIR           man documentation [PREFIX/man]
997 _ACEOF
998
999   cat <<\_ACEOF
1000
1001 Program names:
1002   --program-prefix=PREFIX            prepend PREFIX to installed program names
1003   --program-suffix=SUFFIX            append SUFFIX to installed program names
1004   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1005
1006 System types:
1007   --build=BUILD     configure for building on BUILD [guessed]
1008   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1009   --target=TARGET   configure for building compilers for TARGET [HOST]
1010 _ACEOF
1011 fi
1012
1013 if test -n "$ac_init_help"; then
1014
1015   cat <<\_ACEOF
1016
1017 Optional Features:
1018   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1019   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1020   --enable-checkmem       turn on ccmalloc debugging
1021   --enable-debug          turn on debugging
1022   --enable-profiling      turn on profiling
1023   --enable-warnings        turn on compiler warnings
1024   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1025   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1026   --enable-shared=PKGS  build shared libraries default=yes
1027   --enable-static=PKGS  build static libraries default=yes
1028   --enable-fast-install=PKGS  optimize for fast installation default=yes
1029   --disable-libtool-lock  avoid locking (might break parallel builds)
1030
1031 Optional Packages:
1032   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1033   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1034   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1035   --with-pic              try to use only PIC/non-PIC objects default=use both
1036
1037 Some influential environment variables:
1038   CC          C compiler command
1039   CFLAGS      C compiler flags
1040   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1041               nonstandard directory <lib dir>
1042   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1043               headers in a nonstandard directory <include dir>
1044   CXX         C++ compiler command
1045   CXXFLAGS    C++ compiler flags
1046   CPP         C preprocessor
1047
1048 Use these variables to override the choices made by `configure' or to help
1049 it to find libraries and programs with nonstandard names/locations.
1050
1051 _ACEOF
1052 fi
1053
1054 if test "$ac_init_help" = "recursive"; then
1055   # If there are subdirs, report their specific --help.
1056   ac_popdir=`pwd`
1057   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058     test -d $ac_dir || continue
1059     ac_builddir=.
1060
1061 if test "$ac_dir" != .; then
1062   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063   # A "../" for each directory in $ac_dir_suffix.
1064   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065 else
1066   ac_dir_suffix= ac_top_builddir=
1067 fi
1068
1069 case $srcdir in
1070   .)  # No --srcdir option.  We are building in place.
1071     ac_srcdir=.
1072     if test -z "$ac_top_builddir"; then
1073        ac_top_srcdir=.
1074     else
1075        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076     fi ;;
1077   [\\/]* | ?:[\\/]* )  # Absolute path.
1078     ac_srcdir=$srcdir$ac_dir_suffix;
1079     ac_top_srcdir=$srcdir ;;
1080   *) # Relative path.
1081     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1083 esac
1084 case "$ac_dir" in
1085 .) ac_abs_builddir=$ac_builddir;;
1086 *)
1087   case $ac_builddir in
1088   .) ac_abs_builddir="$ac_dir";;
1089   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
1090   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
1091   esac;;
1092 esac
1093 case "$ac_dir" in
1094 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1095 *)
1096   case ${ac_top_builddir}. in
1097   .) ac_abs_top_builddir="$ac_dir";;
1098   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1099   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
1100   esac;;
1101 esac
1102 case "$ac_dir" in
1103 .) ac_abs_srcdir=$ac_srcdir;;
1104 *)
1105   case $ac_srcdir in
1106   .) ac_abs_srcdir="$ac_dir";;
1107   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1108   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
1109   esac;;
1110 esac
1111 case "$ac_dir" in
1112 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1113 *)
1114   case $ac_top_srcdir in
1115   .) ac_abs_top_srcdir="$ac_dir";;
1116   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1117   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1118   esac;;
1119 esac
1120
1121     cd $ac_dir
1122     # Check for guested configure; otherwise get Cygnus style configure.
1123     if test -f $ac_srcdir/configure.gnu; then
1124       echo
1125       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1126     elif test -f $ac_srcdir/configure; then
1127       echo
1128       $SHELL $ac_srcdir/configure  --help=recursive
1129     elif test -f $ac_srcdir/configure.ac ||
1130            test -f $ac_srcdir/configure.in; then
1131       echo
1132       $ac_configure --help
1133     else
1134       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1135     fi
1136     cd $ac_popdir
1137   done
1138 fi
1139
1140 test -n "$ac_init_help" && exit 0
1141 if $ac_init_version; then
1142   cat <<\_ACEOF
1143
1144 Copyright (C) 2003 Free Software Foundation, Inc.
1145 This configure script is free software; the Free Software Foundation
1146 gives unlimited permission to copy, distribute and modify it.
1147 _ACEOF
1148   exit 0
1149 fi
1150 exec 5>config.log
1151 cat >&5 <<_ACEOF
1152 This file contains any messages produced by compilers while
1153 running configure, to aid debugging if configure makes a mistake.
1154
1155 It was created by $as_me, which was
1156 generated by GNU Autoconf 2.58.  Invocation command line was
1157
1158   $ $0 $@
1159
1160 _ACEOF
1161 {
1162 cat <<_ASUNAME
1163 ## --------- ##
1164 ## Platform. ##
1165 ## --------- ##
1166
1167 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1168 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1169 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1170 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1171 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1172
1173 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1174 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1175
1176 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1177 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1178 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1179 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1180 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1181 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1182 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1183
1184 _ASUNAME
1185
1186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1187 for as_dir in $PATH
1188 do
1189   IFS=$as_save_IFS
1190   test -z "$as_dir" && as_dir=.
1191   echo "PATH: $as_dir"
1192 done
1193
1194 } >&5
1195
1196 cat >&5 <<_ACEOF
1197
1198
1199 ## ----------- ##
1200 ## Core tests. ##
1201 ## ----------- ##
1202
1203 _ACEOF
1204
1205
1206 # Keep a trace of the command line.
1207 # Strip out --no-create and --no-recursion so they do not pile up.
1208 # Strip out --silent because we don't want to record it for future runs.
1209 # Also quote any args containing shell meta-characters.
1210 # Make two passes to allow for proper duplicate-argument suppression.
1211 ac_configure_args=
1212 ac_configure_args0=
1213 ac_configure_args1=
1214 ac_sep=
1215 ac_must_keep_next=false
1216 for ac_pass in 1 2
1217 do
1218   for ac_arg
1219   do
1220     case $ac_arg in
1221     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1222     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223     | -silent | --silent | --silen | --sile | --sil)
1224       continue ;;
1225     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1227     esac
1228     case $ac_pass in
1229     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1230     2)
1231       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1232       if test $ac_must_keep_next = true; then
1233         ac_must_keep_next=false # Got value, back to normal.
1234       else
1235         case $ac_arg in
1236           *=* | --config-cache | -C | -disable-* | --disable-* \
1237           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1238           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1239           | -with-* | --with-* | -without-* | --without-* | --x)
1240             case "$ac_configure_args0 " in
1241               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1242             esac
1243             ;;
1244           -* ) ac_must_keep_next=true ;;
1245         esac
1246       fi
1247       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1248       # Get rid of the leading space.
1249       ac_sep=" "
1250       ;;
1251     esac
1252   done
1253 done
1254 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1255 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1256
1257 # When interrupted or exit'd, cleanup temporary files, and complete
1258 # config.log.  We remove comments because anyway the quotes in there
1259 # would cause problems or look ugly.
1260 # WARNING: Be sure not to use single quotes in there, as some shells,
1261 # such as our DU 5.0 friend, will then `close' the trap.
1262 trap 'exit_status=$?
1263   # Save into config.log some information that might help in debugging.
1264   {
1265     echo
1266
1267     cat <<\_ASBOX
1268 ## ---------------- ##
1269 ## Cache variables. ##
1270 ## ---------------- ##
1271 _ASBOX
1272     echo
1273     # The following way of writing the cache mishandles newlines in values,
1274 {
1275   (set) 2>&1 |
1276     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1277     *ac_space=\ *)
1278       sed -n \
1279         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1280           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1281       ;;
1282     *)
1283       sed -n \
1284         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1285       ;;
1286     esac;
1287 }
1288     echo
1289
1290     cat <<\_ASBOX
1291 ## ----------------- ##
1292 ## Output variables. ##
1293 ## ----------------- ##
1294 _ASBOX
1295     echo
1296     for ac_var in $ac_subst_vars
1297     do
1298       eval ac_val=$`echo $ac_var`
1299       echo "$ac_var='"'"'$ac_val'"'"'"
1300     done | sort
1301     echo
1302
1303     if test -n "$ac_subst_files"; then
1304       cat <<\_ASBOX
1305 ## ------------- ##
1306 ## Output files. ##
1307 ## ------------- ##
1308 _ASBOX
1309       echo
1310       for ac_var in $ac_subst_files
1311       do
1312         eval ac_val=$`echo $ac_var`
1313         echo "$ac_var='"'"'$ac_val'"'"'"
1314       done | sort
1315       echo
1316     fi
1317
1318     if test -s confdefs.h; then
1319       cat <<\_ASBOX
1320 ## ----------- ##
1321 ## confdefs.h. ##
1322 ## ----------- ##
1323 _ASBOX
1324       echo
1325       sed "/^$/d" confdefs.h | sort
1326       echo
1327     fi
1328     test "$ac_signal" != 0 &&
1329       echo "$as_me: caught signal $ac_signal"
1330     echo "$as_me: exit $exit_status"
1331   } >&5
1332   rm -f core *.core &&
1333   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1334     exit $exit_status
1335      ' 0
1336 for ac_signal in 1 2 13 15; do
1337   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1338 done
1339 ac_signal=0
1340
1341 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1342 rm -rf conftest* confdefs.h
1343 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1344 echo >confdefs.h
1345
1346 # Predefined preprocessor variables.
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_NAME "$PACKAGE_NAME"
1350 _ACEOF
1351
1352
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1355 _ACEOF
1356
1357
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1360 _ACEOF
1361
1362
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_STRING "$PACKAGE_STRING"
1365 _ACEOF
1366
1367
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1370 _ACEOF
1371
1372
1373 # Let the site file select an alternate cache file if it wants to.
1374 # Prefer explicitly selected file to automatically selected ones.
1375 if test -z "$CONFIG_SITE"; then
1376   if test "x$prefix" != xNONE; then
1377     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1378   else
1379     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1380   fi
1381 fi
1382 for ac_site_file in $CONFIG_SITE; do
1383   if test -r "$ac_site_file"; then
1384     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1385 echo "$as_me: loading site script $ac_site_file" >&6;}
1386     sed 's/^/| /' "$ac_site_file" >&5
1387     . "$ac_site_file"
1388   fi
1389 done
1390
1391 if test -r "$cache_file"; then
1392   # Some versions of bash will fail to source /dev/null (special
1393   # files actually), so we avoid doing that.
1394   if test -f "$cache_file"; then
1395     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1396 echo "$as_me: loading cache $cache_file" >&6;}
1397     case $cache_file in
1398       [\\/]* | ?:[\\/]* ) . $cache_file;;
1399       *)                      . ./$cache_file;;
1400     esac
1401   fi
1402 else
1403   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1404 echo "$as_me: creating cache $cache_file" >&6;}
1405   >$cache_file
1406 fi
1407
1408 # Check that the precious variables saved in the cache have kept the same
1409 # value.
1410 ac_cache_corrupted=false
1411 for ac_var in `(set) 2>&1 |
1412                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1413   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1414   eval ac_new_set=\$ac_env_${ac_var}_set
1415   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1416   eval ac_new_val="\$ac_env_${ac_var}_value"
1417   case $ac_old_set,$ac_new_set in
1418     set,)
1419       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1421       ac_cache_corrupted=: ;;
1422     ,set)
1423       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1424 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1425       ac_cache_corrupted=: ;;
1426     ,);;
1427     *)
1428       if test "x$ac_old_val" != "x$ac_new_val"; then
1429         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1430 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1431         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1432 echo "$as_me:   former value:  $ac_old_val" >&2;}
1433         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1434 echo "$as_me:   current value: $ac_new_val" >&2;}
1435         ac_cache_corrupted=:
1436       fi;;
1437   esac
1438   # Pass precious variables to config.status.
1439   if test "$ac_new_set" = set; then
1440     case $ac_new_val in
1441     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1442       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1443     *) ac_arg=$ac_var=$ac_new_val ;;
1444     esac
1445     case " $ac_configure_args " in
1446       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1447       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1448     esac
1449   fi
1450 done
1451 if $ac_cache_corrupted; then
1452   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1453 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1454   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1455 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1456    { (exit 1); exit 1; }; }
1457 fi
1458
1459 ac_ext=c
1460 ac_cpp='$CPP $CPPFLAGS'
1461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485 # Check whether --enable-checkmem or --disable-checkmem was given.
1486 if test "${enable_checkmem+set}" = set; then
1487   enableval="$enable_checkmem"
1488   CHECKMEM=true
1489 fi;
1490 # Check whether --enable-debug or --disable-debug was given.
1491 if test "${enable_debug+set}" = set; then
1492   enableval="$enable_debug"
1493   DEBUG=true
1494 fi;
1495 # Check whether --enable-profiling or --disable-profiling was given.
1496 if test "${enable_profiling+set}" = set; then
1497   enableval="$enable_profiling"
1498   PROFILING=true
1499 fi;
1500 # Check whether --enable-warnings or --disable-warnings was given.
1501 if test "${enable_warnings+set}" = set; then
1502   enableval="$enable_warnings"
1503   ENABLE_WARNINGS=true
1504 fi;
1505 # Check whether --enable-optimizations or --disable-optimizations was given.
1506 if test "${enable_optimizations+set}" = set; then
1507   enableval="$enable_optimizations"
1508   OPTIMIZE=true
1509 fi;
1510 # Check whether --enable-lame or --disable-lame was given.
1511 if test "${enable_lame+set}" = set; then
1512   enableval="$enable_lame"
1513   DISABLE_LAME=true
1514 fi;
1515
1516 PACKAGE=swftools
1517 VERSION=2004-11-13-2026
1518
1519
1520 # ------------------------------------------------------------------
1521
1522 if test "x${srcdir}" != "x."; then
1523     echo "--srcdir is not supported"
1524     exit 1
1525 fi
1526
1527 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1528 if test "x$ENABLE_WARNINGS" '!=' "x";then
1529     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1530 fi
1531
1532 if test "x$CHECKMEM" '!=' "x";then
1533     DEBUG=yes
1534 fi
1535 if test "x$PROFILING" '!=' "x";then
1536     DEBUG=yes
1537 fi
1538 if test "x$DEBUG" '!=' "x";then
1539     if test "x$PROFILING" = "x";then
1540         CFLAGS="$WARNINGS -g $CFLAGS"
1541         CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1542     else
1543         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1544         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1545         LDFLAGS="-g -pg $LIBS"
1546     fi
1547 else if test "x$OPTIMIZE" '!=' "x"; then
1548     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1549     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1550 else
1551     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1552     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1553 fi
1554 fi
1555 #OLDGCC=1
1556 #if test "x$OLDGCC" '!=' "x";then
1557 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1558 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1559 #     CFLAGS="$CFLAGS -ansi -pendantic"
1560 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1561 #fi
1562
1563 export PACKAGE VERSION CFLAGS CXXFLAGS
1564
1565
1566 ac_aux_dir=
1567 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1568   if test -f $ac_dir/install-sh; then
1569     ac_aux_dir=$ac_dir
1570     ac_install_sh="$ac_aux_dir/install-sh -c"
1571     break
1572   elif test -f $ac_dir/install.sh; then
1573     ac_aux_dir=$ac_dir
1574     ac_install_sh="$ac_aux_dir/install.sh -c"
1575     break
1576   elif test -f $ac_dir/shtool; then
1577     ac_aux_dir=$ac_dir
1578     ac_install_sh="$ac_aux_dir/shtool install -c"
1579     break
1580   fi
1581 done
1582 if test -z "$ac_aux_dir"; then
1583   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1584 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1585    { (exit 1); exit 1; }; }
1586 fi
1587 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1588 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1589 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1590
1591 # Make sure we can run config.sub.
1592 $ac_config_sub sun4 >/dev/null 2>&1 ||
1593   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1594 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1595    { (exit 1); exit 1; }; }
1596
1597 echo "$as_me:$LINENO: checking build system type" >&5
1598 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1599 if test "${ac_cv_build+set}" = set; then
1600   echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602   ac_cv_build_alias=$build_alias
1603 test -z "$ac_cv_build_alias" &&
1604   ac_cv_build_alias=`$ac_config_guess`
1605 test -z "$ac_cv_build_alias" &&
1606   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1607 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1608    { (exit 1); exit 1; }; }
1609 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1610   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1612    { (exit 1); exit 1; }; }
1613
1614 fi
1615 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1616 echo "${ECHO_T}$ac_cv_build" >&6
1617 build=$ac_cv_build
1618 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623 echo "$as_me:$LINENO: checking host system type" >&5
1624 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1625 if test "${ac_cv_host+set}" = set; then
1626   echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628   ac_cv_host_alias=$host_alias
1629 test -z "$ac_cv_host_alias" &&
1630   ac_cv_host_alias=$ac_cv_build_alias
1631 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1632   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1633 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1634    { (exit 1); exit 1; }; }
1635
1636 fi
1637 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1638 echo "${ECHO_T}$ac_cv_host" >&6
1639 host=$ac_cv_host
1640 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643
1644
1645
1646 SHARED="-shared"
1647 MACOSX=
1648 case $host_os in
1649     *darwin* )
1650         MACOSX=yes
1651         CFLAGS="$CFLAGS -fno-rtti"
1652         CXXFLAGS="$CXXFLAGS -fno-rtti"
1653         SHARED="-bundle"
1654         ;;
1655 esac
1656
1657
1658
1659  ac_ext=c
1660 ac_cpp='$CPP $CPPFLAGS'
1661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1664 if test -n "$ac_tool_prefix"; then
1665   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1666 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_CC+set}" = set; then
1670   echo $ECHO_N "(cached) $ECHO_C" >&6
1671 else
1672   if test -n "$CC"; then
1673   ac_cv_prog_CC="$CC" # Let the user override the test.
1674 else
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1677 do
1678   IFS=$as_save_IFS
1679   test -z "$as_dir" && as_dir=.
1680   for ac_exec_ext in '' $ac_executable_extensions; do
1681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684     break 2
1685   fi
1686 done
1687 done
1688
1689 fi
1690 fi
1691 CC=$ac_cv_prog_CC
1692 if test -n "$CC"; then
1693   echo "$as_me:$LINENO: result: $CC" >&5
1694 echo "${ECHO_T}$CC" >&6
1695 else
1696   echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1698 fi
1699
1700 fi
1701 if test -z "$ac_cv_prog_CC"; then
1702   ac_ct_CC=$CC
1703   # Extract the first word of "gcc", so it can be a program name with args.
1704 set dummy gcc; ac_word=$2
1705 echo "$as_me:$LINENO: checking for $ac_word" >&5
1706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1708   echo $ECHO_N "(cached) $ECHO_C" >&6
1709 else
1710   if test -n "$ac_ct_CC"; then
1711   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1712 else
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 for as_dir in $PATH
1715 do
1716   IFS=$as_save_IFS
1717   test -z "$as_dir" && as_dir=.
1718   for ac_exec_ext in '' $ac_executable_extensions; do
1719   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1720     ac_cv_prog_ac_ct_CC="gcc"
1721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722     break 2
1723   fi
1724 done
1725 done
1726
1727 fi
1728 fi
1729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1730 if test -n "$ac_ct_CC"; then
1731   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1732 echo "${ECHO_T}$ac_ct_CC" >&6
1733 else
1734   echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1736 fi
1737
1738   CC=$ac_ct_CC
1739 else
1740   CC="$ac_cv_prog_CC"
1741 fi
1742
1743 if test -z "$CC"; then
1744   if test -n "$ac_tool_prefix"; then
1745   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1746 set dummy ${ac_tool_prefix}cc; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_CC+set}" = set; then
1750   echo $ECHO_N "(cached) $ECHO_C" >&6
1751 else
1752   if test -n "$CC"; then
1753   ac_cv_prog_CC="$CC" # Let the user override the test.
1754 else
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 for as_dir in $PATH
1757 do
1758   IFS=$as_save_IFS
1759   test -z "$as_dir" && as_dir=.
1760   for ac_exec_ext in '' $ac_executable_extensions; do
1761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762     ac_cv_prog_CC="${ac_tool_prefix}cc"
1763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764     break 2
1765   fi
1766 done
1767 done
1768
1769 fi
1770 fi
1771 CC=$ac_cv_prog_CC
1772 if test -n "$CC"; then
1773   echo "$as_me:$LINENO: result: $CC" >&5
1774 echo "${ECHO_T}$CC" >&6
1775 else
1776   echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1778 fi
1779
1780 fi
1781 if test -z "$ac_cv_prog_CC"; then
1782   ac_ct_CC=$CC
1783   # Extract the first word of "cc", so it can be a program name with args.
1784 set dummy cc; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1788   echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790   if test -n "$ac_ct_CC"; then
1791   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1792 else
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 for as_dir in $PATH
1795 do
1796   IFS=$as_save_IFS
1797   test -z "$as_dir" && as_dir=.
1798   for ac_exec_ext in '' $ac_executable_extensions; do
1799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800     ac_cv_prog_ac_ct_CC="cc"
1801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802     break 2
1803   fi
1804 done
1805 done
1806
1807 fi
1808 fi
1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1810 if test -n "$ac_ct_CC"; then
1811   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1812 echo "${ECHO_T}$ac_ct_CC" >&6
1813 else
1814   echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816 fi
1817
1818   CC=$ac_ct_CC
1819 else
1820   CC="$ac_cv_prog_CC"
1821 fi
1822
1823 fi
1824 if test -z "$CC"; then
1825   # Extract the first word of "cc", so it can be a program name with args.
1826 set dummy cc; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_CC+set}" = set; then
1830   echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832   if test -n "$CC"; then
1833   ac_cv_prog_CC="$CC" # Let the user override the test.
1834 else
1835   ac_prog_rejected=no
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839   IFS=$as_save_IFS
1840   test -z "$as_dir" && as_dir=.
1841   for ac_exec_ext in '' $ac_executable_extensions; do
1842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1844        ac_prog_rejected=yes
1845        continue
1846      fi
1847     ac_cv_prog_CC="cc"
1848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849     break 2
1850   fi
1851 done
1852 done
1853
1854 if test $ac_prog_rejected = yes; then
1855   # We found a bogon in the path, so make sure we never use it.
1856   set dummy $ac_cv_prog_CC
1857   shift
1858   if test $# != 0; then
1859     # We chose a different compiler from the bogus one.
1860     # However, it has the same basename, so the bogon will be chosen
1861     # first if we set CC to just the basename; use the full file name.
1862     shift
1863     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1864   fi
1865 fi
1866 fi
1867 fi
1868 CC=$ac_cv_prog_CC
1869 if test -n "$CC"; then
1870   echo "$as_me:$LINENO: result: $CC" >&5
1871 echo "${ECHO_T}$CC" >&6
1872 else
1873   echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1875 fi
1876
1877 fi
1878 if test -z "$CC"; then
1879   if test -n "$ac_tool_prefix"; then
1880   for ac_prog in cl
1881   do
1882     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_CC+set}" = set; then
1887   echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889   if test -n "$CC"; then
1890   ac_cv_prog_CC="$CC" # Let the user override the test.
1891 else
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1894 do
1895   IFS=$as_save_IFS
1896   test -z "$as_dir" && as_dir=.
1897   for ac_exec_ext in '' $ac_executable_extensions; do
1898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901     break 2
1902   fi
1903 done
1904 done
1905
1906 fi
1907 fi
1908 CC=$ac_cv_prog_CC
1909 if test -n "$CC"; then
1910   echo "$as_me:$LINENO: result: $CC" >&5
1911 echo "${ECHO_T}$CC" >&6
1912 else
1913   echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1915 fi
1916
1917     test -n "$CC" && break
1918   done
1919 fi
1920 if test -z "$CC"; then
1921   ac_ct_CC=$CC
1922   for ac_prog in cl
1923 do
1924   # Extract the first word of "$ac_prog", so it can be a program name with args.
1925 set dummy $ac_prog; ac_word=$2
1926 echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1929   echo $ECHO_N "(cached) $ECHO_C" >&6
1930 else
1931   if test -n "$ac_ct_CC"; then
1932   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1933 else
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 for as_dir in $PATH
1936 do
1937   IFS=$as_save_IFS
1938   test -z "$as_dir" && as_dir=.
1939   for ac_exec_ext in '' $ac_executable_extensions; do
1940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941     ac_cv_prog_ac_ct_CC="$ac_prog"
1942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943     break 2
1944   fi
1945 done
1946 done
1947
1948 fi
1949 fi
1950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1951 if test -n "$ac_ct_CC"; then
1952   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1953 echo "${ECHO_T}$ac_ct_CC" >&6
1954 else
1955   echo "$as_me:$LINENO: result: no" >&5
1956 echo "${ECHO_T}no" >&6
1957 fi
1958
1959   test -n "$ac_ct_CC" && break
1960 done
1961
1962   CC=$ac_ct_CC
1963 fi
1964
1965 fi
1966
1967
1968 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1969 See \`config.log' for more details." >&5
1970 echo "$as_me: error: no acceptable C compiler found in \$PATH
1971 See \`config.log' for more details." >&2;}
1972    { (exit 1); exit 1; }; }
1973
1974 # Provide some information about the compiler.
1975 echo "$as_me:$LINENO:" \
1976      "checking for C compiler version" >&5
1977 ac_compiler=`set X $ac_compile; echo $2`
1978 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1979   (eval $ac_compiler --version </dev/null >&5) 2>&5
1980   ac_status=$?
1981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982   (exit $ac_status); }
1983 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1984   (eval $ac_compiler -v </dev/null >&5) 2>&5
1985   ac_status=$?
1986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987   (exit $ac_status); }
1988 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1989   (eval $ac_compiler -V </dev/null >&5) 2>&5
1990   ac_status=$?
1991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992   (exit $ac_status); }
1993
1994 cat >conftest.$ac_ext <<_ACEOF
1995 /* confdefs.h.  */
1996 _ACEOF
1997 cat confdefs.h >>conftest.$ac_ext
1998 cat >>conftest.$ac_ext <<_ACEOF
1999 /* end confdefs.h.  */
2000
2001 int
2002 main ()
2003 {
2004
2005   ;
2006   return 0;
2007 }
2008 _ACEOF
2009 ac_clean_files_save=$ac_clean_files
2010 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2011 # Try to create an executable without -o first, disregard a.out.
2012 # It will help us diagnose broken compilers, and finding out an intuition
2013 # of exeext.
2014 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2015 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2016 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2017 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2018   (eval $ac_link_default) 2>&5
2019   ac_status=$?
2020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021   (exit $ac_status); }; then
2022   # Find the output, starting from the most likely.  This scheme is
2023 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2024 # resort.
2025
2026 # Be careful to initialize this variable, since it used to be cached.
2027 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2028 ac_cv_exeext=
2029 # b.out is created by i960 compilers.
2030 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2031 do
2032   test -f "$ac_file" || continue
2033   case $ac_file in
2034     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2035         ;;
2036     conftest.$ac_ext )
2037         # This is the source file.
2038         ;;
2039     [ab].out )
2040         # We found the default executable, but exeext='' is most
2041         # certainly right.
2042         break;;
2043     *.* )
2044         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2045         # FIXME: I believe we export ac_cv_exeext for Libtool,
2046         # but it would be cool to find out if it's true.  Does anybody
2047         # maintain Libtool? --akim.
2048         export ac_cv_exeext
2049         break;;
2050     * )
2051         break;;
2052   esac
2053 done
2054 else
2055   echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2057
2058 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2059 See \`config.log' for more details." >&5
2060 echo "$as_me: error: C compiler cannot create executables
2061 See \`config.log' for more details." >&2;}
2062    { (exit 77); exit 77; }; }
2063 fi
2064
2065 ac_exeext=$ac_cv_exeext
2066 echo "$as_me:$LINENO: result: $ac_file" >&5
2067 echo "${ECHO_T}$ac_file" >&6
2068
2069 # Check the compiler produces executables we can run.  If not, either
2070 # the compiler is broken, or we cross compile.
2071 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2072 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2073 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2074 # If not cross compiling, check that we can run a simple program.
2075 if test "$cross_compiling" != yes; then
2076   if { ac_try='./$ac_file'
2077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2078   (eval $ac_try) 2>&5
2079   ac_status=$?
2080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081   (exit $ac_status); }; }; then
2082     cross_compiling=no
2083   else
2084     if test "$cross_compiling" = maybe; then
2085         cross_compiling=yes
2086     else
2087         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2088 If you meant to cross compile, use \`--host'.
2089 See \`config.log' for more details." >&5
2090 echo "$as_me: error: cannot run C compiled programs.
2091 If you meant to cross compile, use \`--host'.
2092 See \`config.log' for more details." >&2;}
2093    { (exit 1); exit 1; }; }
2094     fi
2095   fi
2096 fi
2097 echo "$as_me:$LINENO: result: yes" >&5
2098 echo "${ECHO_T}yes" >&6
2099
2100 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2101 ac_clean_files=$ac_clean_files_save
2102 # Check the compiler produces executables we can run.  If not, either
2103 # the compiler is broken, or we cross compile.
2104 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2105 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2106 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2107 echo "${ECHO_T}$cross_compiling" >&6
2108
2109 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2110 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2112   (eval $ac_link) 2>&5
2113   ac_status=$?
2114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115   (exit $ac_status); }; then
2116   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2117 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2118 # work properly (i.e., refer to `conftest.exe'), while it won't with
2119 # `rm'.
2120 for ac_file in conftest.exe conftest conftest.*; do
2121   test -f "$ac_file" || continue
2122   case $ac_file in
2123     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2124     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2125           export ac_cv_exeext
2126           break;;
2127     * ) break;;
2128   esac
2129 done
2130 else
2131   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2134 See \`config.log' for more details." >&2;}
2135    { (exit 1); exit 1; }; }
2136 fi
2137
2138 rm -f conftest$ac_cv_exeext
2139 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2140 echo "${ECHO_T}$ac_cv_exeext" >&6
2141
2142 rm -f conftest.$ac_ext
2143 EXEEXT=$ac_cv_exeext
2144 ac_exeext=$EXEEXT
2145 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2146 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2147 if test "${ac_cv_objext+set}" = set; then
2148   echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150   cat >conftest.$ac_ext <<_ACEOF
2151 /* confdefs.h.  */
2152 _ACEOF
2153 cat confdefs.h >>conftest.$ac_ext
2154 cat >>conftest.$ac_ext <<_ACEOF
2155 /* end confdefs.h.  */
2156
2157 int
2158 main ()
2159 {
2160
2161   ;
2162   return 0;
2163 }
2164 _ACEOF
2165 rm -f conftest.o conftest.obj
2166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167   (eval $ac_compile) 2>&5
2168   ac_status=$?
2169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170   (exit $ac_status); }; then
2171   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2172   case $ac_file in
2173     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2174     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2175        break;;
2176   esac
2177 done
2178 else
2179   echo "$as_me: failed program was:" >&5
2180 sed 's/^/| /' conftest.$ac_ext >&5
2181
2182 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2185 See \`config.log' for more details." >&2;}
2186    { (exit 1); exit 1; }; }
2187 fi
2188
2189 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2190 fi
2191 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2192 echo "${ECHO_T}$ac_cv_objext" >&6
2193 OBJEXT=$ac_cv_objext
2194 ac_objext=$OBJEXT
2195 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2196 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2197 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2198   echo $ECHO_N "(cached) $ECHO_C" >&6
2199 else
2200   cat >conftest.$ac_ext <<_ACEOF
2201 /* confdefs.h.  */
2202 _ACEOF
2203 cat confdefs.h >>conftest.$ac_ext
2204 cat >>conftest.$ac_ext <<_ACEOF
2205 /* end confdefs.h.  */
2206
2207 int
2208 main ()
2209 {
2210 #ifndef __GNUC__
2211        choke me
2212 #endif
2213
2214   ;
2215   return 0;
2216 }
2217 _ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220   (eval $ac_compile) 2>conftest.er1
2221   ac_status=$?
2222   grep -v '^ *+' conftest.er1 >conftest.err
2223   rm -f conftest.er1
2224   cat conftest.err >&5
2225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226   (exit $ac_status); } &&
2227          { ac_try='test -z "$ac_c_werror_flag"
2228                          || test ! -s conftest.err'
2229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230   (eval $ac_try) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }; } &&
2234          { ac_try='test -s conftest.$ac_objext'
2235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236   (eval $ac_try) 2>&5
2237   ac_status=$?
2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239   (exit $ac_status); }; }; then
2240   ac_compiler_gnu=yes
2241 else
2242   echo "$as_me: failed program was:" >&5
2243 sed 's/^/| /' conftest.$ac_ext >&5
2244
2245 ac_compiler_gnu=no
2246 fi
2247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2248 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2249
2250 fi
2251 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2252 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2253 GCC=`test $ac_compiler_gnu = yes && echo yes`
2254 ac_test_CFLAGS=${CFLAGS+set}
2255 ac_save_CFLAGS=$CFLAGS
2256 CFLAGS="-g"
2257 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2258 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2259 if test "${ac_cv_prog_cc_g+set}" = set; then
2260   echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262   cat >conftest.$ac_ext <<_ACEOF
2263 /* confdefs.h.  */
2264 _ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h.  */
2268
2269 int
2270 main ()
2271 {
2272
2273   ;
2274   return 0;
2275 }
2276 _ACEOF
2277 rm -f conftest.$ac_objext
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279   (eval $ac_compile) 2>conftest.er1
2280   ac_status=$?
2281   grep -v '^ *+' conftest.er1 >conftest.err
2282   rm -f conftest.er1
2283   cat conftest.err >&5
2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285   (exit $ac_status); } &&
2286          { ac_try='test -z "$ac_c_werror_flag"
2287                          || test ! -s conftest.err'
2288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289   (eval $ac_try) 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); }; } &&
2293          { ac_try='test -s conftest.$ac_objext'
2294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295   (eval $ac_try) 2>&5
2296   ac_status=$?
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); }; }; then
2299   ac_cv_prog_cc_g=yes
2300 else
2301   echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2303
2304 ac_cv_prog_cc_g=no
2305 fi
2306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2307 fi
2308 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2309 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2310 if test "$ac_test_CFLAGS" = set; then
2311   CFLAGS=$ac_save_CFLAGS
2312 elif test $ac_cv_prog_cc_g = yes; then
2313   if test "$GCC" = yes; then
2314     CFLAGS="-g -O2"
2315   else
2316     CFLAGS="-g"
2317   fi
2318 else
2319   if test "$GCC" = yes; then
2320     CFLAGS="-O2"
2321   else
2322     CFLAGS=
2323   fi
2324 fi
2325 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2326 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2327 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   ac_cv_prog_cc_stdc=no
2331 ac_save_CC=$CC
2332 cat >conftest.$ac_ext <<_ACEOF
2333 /* confdefs.h.  */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h.  */
2338 #include <stdarg.h>
2339 #include <stdio.h>
2340 #include <sys/types.h>
2341 #include <sys/stat.h>
2342 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2343 struct buf { int x; };
2344 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2345 static char *e (p, i)
2346      char **p;
2347      int i;
2348 {
2349   return p[i];
2350 }
2351 static char *f (char * (*g) (char **, int), char **p, ...)
2352 {
2353   char *s;
2354   va_list v;
2355   va_start (v,p);
2356   s = g (p, va_arg (v,int));
2357   va_end (v);
2358   return s;
2359 }
2360
2361 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2362    function prototypes and stuff, but not '\xHH' hex character constants.
2363    These don't provoke an error unfortunately, instead are silently treated
2364    as 'x'.  The following induces an error, until -std1 is added to get
2365    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2366    array size at least.  It's necessary to write '\x00'==0 to get something
2367    that's true only with -std1.  */
2368 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2369
2370 int test (int i, double x);
2371 struct s1 {int (*f) (int a);};
2372 struct s2 {int (*f) (double a);};
2373 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2374 int argc;
2375 char **argv;
2376 int
2377 main ()
2378 {
2379 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2380   ;
2381   return 0;
2382 }
2383 _ACEOF
2384 # Don't try gcc -ansi; that turns off useful extensions and
2385 # breaks some systems' header files.
2386 # AIX                   -qlanglvl=ansi
2387 # Ultrix and OSF/1      -std1
2388 # HP-UX 10.20 and later -Ae
2389 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2390 # SVR4                  -Xc -D__EXTENSIONS__
2391 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2392 do
2393   CC="$ac_save_CC $ac_arg"
2394   rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396   (eval $ac_compile) 2>conftest.er1
2397   ac_status=$?
2398   grep -v '^ *+' conftest.er1 >conftest.err
2399   rm -f conftest.er1
2400   cat conftest.err >&5
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); } &&
2403          { ac_try='test -z "$ac_c_werror_flag"
2404                          || test ! -s conftest.err'
2405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406   (eval $ac_try) 2>&5
2407   ac_status=$?
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); }; } &&
2410          { ac_try='test -s conftest.$ac_objext'
2411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412   (eval $ac_try) 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; }; then
2416   ac_cv_prog_cc_stdc=$ac_arg
2417 break
2418 else
2419   echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2421
2422 fi
2423 rm -f conftest.err conftest.$ac_objext
2424 done
2425 rm -f conftest.$ac_ext conftest.$ac_objext
2426 CC=$ac_save_CC
2427
2428 fi
2429
2430 case "x$ac_cv_prog_cc_stdc" in
2431   x|xno)
2432     echo "$as_me:$LINENO: result: none needed" >&5
2433 echo "${ECHO_T}none needed" >&6 ;;
2434   *)
2435     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2436 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2437     CC="$CC $ac_cv_prog_cc_stdc" ;;
2438 esac
2439
2440 # Some people use a C++ compiler to compile C.  Since we use `exit',
2441 # in C++ we need to declare it.  In case someone uses the same compiler
2442 # for both compiling C and C++ we need to have the C++ compiler decide
2443 # the declaration of exit, since it's the most demanding environment.
2444 cat >conftest.$ac_ext <<_ACEOF
2445 #ifndef __cplusplus
2446   choke me
2447 #endif
2448 _ACEOF
2449 rm -f conftest.$ac_objext
2450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451   (eval $ac_compile) 2>conftest.er1
2452   ac_status=$?
2453   grep -v '^ *+' conftest.er1 >conftest.err
2454   rm -f conftest.er1
2455   cat conftest.err >&5
2456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457   (exit $ac_status); } &&
2458          { ac_try='test -z "$ac_c_werror_flag"
2459                          || test ! -s conftest.err'
2460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461   (eval $ac_try) 2>&5
2462   ac_status=$?
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); }; } &&
2465          { ac_try='test -s conftest.$ac_objext'
2466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467   (eval $ac_try) 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); }; }; then
2471   for ac_declaration in \
2472    '' \
2473    'extern "C" void std::exit (int) throw (); using std::exit;' \
2474    'extern "C" void std::exit (int); using std::exit;' \
2475    'extern "C" void exit (int) throw ();' \
2476    'extern "C" void exit (int);' \
2477    'void exit (int);'
2478 do
2479   cat >conftest.$ac_ext <<_ACEOF
2480 /* confdefs.h.  */
2481 _ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h.  */
2485 $ac_declaration
2486 #include <stdlib.h>
2487 int
2488 main ()
2489 {
2490 exit (42);
2491   ;
2492   return 0;
2493 }
2494 _ACEOF
2495 rm -f conftest.$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497   (eval $ac_compile) 2>conftest.er1
2498   ac_status=$?
2499   grep -v '^ *+' conftest.er1 >conftest.err
2500   rm -f conftest.er1
2501   cat conftest.err >&5
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); } &&
2504          { ac_try='test -z "$ac_c_werror_flag"
2505                          || test ! -s conftest.err'
2506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507   (eval $ac_try) 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); }; } &&
2511          { ac_try='test -s conftest.$ac_objext'
2512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513   (eval $ac_try) 2>&5
2514   ac_status=$?
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); }; }; then
2517   :
2518 else
2519   echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2521
2522 continue
2523 fi
2524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2525   cat >conftest.$ac_ext <<_ACEOF
2526 /* confdefs.h.  */
2527 _ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h.  */
2531 $ac_declaration
2532 int
2533 main ()
2534 {
2535 exit (42);
2536   ;
2537   return 0;
2538 }
2539 _ACEOF
2540 rm -f conftest.$ac_objext
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542   (eval $ac_compile) 2>conftest.er1
2543   ac_status=$?
2544   grep -v '^ *+' conftest.er1 >conftest.err
2545   rm -f conftest.er1
2546   cat conftest.err >&5
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); } &&
2549          { ac_try='test -z "$ac_c_werror_flag"
2550                          || test ! -s conftest.err'
2551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552   (eval $ac_try) 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }; } &&
2556          { ac_try='test -s conftest.$ac_objext'
2557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558   (eval $ac_try) 2>&5
2559   ac_status=$?
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); }; }; then
2562   break
2563 else
2564   echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2566
2567 fi
2568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2569 done
2570 rm -f conftest*
2571 if test -n "$ac_declaration"; then
2572   echo '#ifdef __cplusplus' >>confdefs.h
2573   echo $ac_declaration      >>confdefs.h
2574   echo '#endif'             >>confdefs.h
2575 fi
2576
2577 else
2578   echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2580
2581 fi
2582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2583 ac_ext=c
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588
2589  ac_ext=cc
2590 ac_cpp='$CXXCPP $CPPFLAGS'
2591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2594 if test -n "$ac_tool_prefix"; then
2595   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2596   do
2597     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2598 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2599 echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2601 if test "${ac_cv_prog_CXX+set}" = set; then
2602   echo $ECHO_N "(cached) $ECHO_C" >&6
2603 else
2604   if test -n "$CXX"; then
2605   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2609 do
2610   IFS=$as_save_IFS
2611   test -z "$as_dir" && as_dir=.
2612   for ac_exec_ext in '' $ac_executable_extensions; do
2613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2614     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616     break 2
2617   fi
2618 done
2619 done
2620
2621 fi
2622 fi
2623 CXX=$ac_cv_prog_CXX
2624 if test -n "$CXX"; then
2625   echo "$as_me:$LINENO: result: $CXX" >&5
2626 echo "${ECHO_T}$CXX" >&6
2627 else
2628   echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6
2630 fi
2631
2632     test -n "$CXX" && break
2633   done
2634 fi
2635 if test -z "$CXX"; then
2636   ac_ct_CXX=$CXX
2637   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2638 do
2639   # Extract the first word of "$ac_prog", so it can be a program name with args.
2640 set dummy $ac_prog; ac_word=$2
2641 echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2643 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2644   echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646   if test -n "$ac_ct_CXX"; then
2647   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2648 else
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652   IFS=$as_save_IFS
2653   test -z "$as_dir" && as_dir=.
2654   for ac_exec_ext in '' $ac_executable_extensions; do
2655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656     ac_cv_prog_ac_ct_CXX="$ac_prog"
2657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658     break 2
2659   fi
2660 done
2661 done
2662
2663 fi
2664 fi
2665 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2666 if test -n "$ac_ct_CXX"; then
2667   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2668 echo "${ECHO_T}$ac_ct_CXX" >&6
2669 else
2670   echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6
2672 fi
2673
2674   test -n "$ac_ct_CXX" && break
2675 done
2676 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2677
2678   CXX=$ac_ct_CXX
2679 fi
2680
2681
2682 # Provide some information about the compiler.
2683 echo "$as_me:$LINENO:" \
2684      "checking for C++ compiler version" >&5
2685 ac_compiler=`set X $ac_compile; echo $2`
2686 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2687   (eval $ac_compiler --version </dev/null >&5) 2>&5
2688   ac_status=$?
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); }
2691 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2692   (eval $ac_compiler -v </dev/null >&5) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); }
2696 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2697   (eval $ac_compiler -V </dev/null >&5) 2>&5
2698   ac_status=$?
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); }
2701
2702 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2703 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2704 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2705   echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707   cat >conftest.$ac_ext <<_ACEOF
2708 /* confdefs.h.  */
2709 _ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h.  */
2713
2714 int
2715 main ()
2716 {
2717 #ifndef __GNUC__
2718        choke me
2719 #endif
2720
2721   ;
2722   return 0;
2723 }
2724 _ACEOF
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727   (eval $ac_compile) 2>conftest.er1
2728   ac_status=$?
2729   grep -v '^ *+' conftest.er1 >conftest.err
2730   rm -f conftest.er1
2731   cat conftest.err >&5
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); } &&
2734          { ac_try='test -z "$ac_cxx_werror_flag"
2735                          || test ! -s conftest.err'
2736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737   (eval $ac_try) 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; } &&
2741          { ac_try='test -s conftest.$ac_objext'
2742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743   (eval $ac_try) 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }; }; then
2747   ac_compiler_gnu=yes
2748 else
2749   echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752 ac_compiler_gnu=no
2753 fi
2754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2756
2757 fi
2758 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2759 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2760 GXX=`test $ac_compiler_gnu = yes && echo yes`
2761 ac_test_CXXFLAGS=${CXXFLAGS+set}
2762 ac_save_CXXFLAGS=$CXXFLAGS
2763 CXXFLAGS="-g"
2764 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2765 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2766 if test "${ac_cv_prog_cxx_g+set}" = set; then
2767   echo $ECHO_N "(cached) $ECHO_C" >&6
2768 else
2769   cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h.  */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h.  */
2775
2776 int
2777 main ()
2778 {
2779
2780   ;
2781   return 0;
2782 }
2783 _ACEOF
2784 rm -f conftest.$ac_objext
2785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786   (eval $ac_compile) 2>conftest.er1
2787   ac_status=$?
2788   grep -v '^ *+' conftest.er1 >conftest.err
2789   rm -f conftest.er1
2790   cat conftest.err >&5
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); } &&
2793          { ac_try='test -z "$ac_cxx_werror_flag"
2794                          || test ! -s conftest.err'
2795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796   (eval $ac_try) 2>&5
2797   ac_status=$?
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); }; } &&
2800          { ac_try='test -s conftest.$ac_objext'
2801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802   (eval $ac_try) 2>&5
2803   ac_status=$?
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); }; }; then
2806   ac_cv_prog_cxx_g=yes
2807 else
2808   echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2810
2811 ac_cv_prog_cxx_g=no
2812 fi
2813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2814 fi
2815 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2816 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2817 if test "$ac_test_CXXFLAGS" = set; then
2818   CXXFLAGS=$ac_save_CXXFLAGS
2819 elif test $ac_cv_prog_cxx_g = yes; then
2820   if test "$GXX" = yes; then
2821     CXXFLAGS="-g -O2"
2822   else
2823     CXXFLAGS="-g"
2824   fi
2825 else
2826   if test "$GXX" = yes; then
2827     CXXFLAGS="-O2"
2828   else
2829     CXXFLAGS=
2830   fi
2831 fi
2832 for ac_declaration in \
2833    '' \
2834    'extern "C" void std::exit (int) throw (); using std::exit;' \
2835    'extern "C" void std::exit (int); using std::exit;' \
2836    'extern "C" void exit (int) throw ();' \
2837    'extern "C" void exit (int);' \
2838    'void exit (int);'
2839 do
2840   cat >conftest.$ac_ext <<_ACEOF
2841 /* confdefs.h.  */
2842 _ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h.  */
2846 $ac_declaration
2847 #include <stdlib.h>
2848 int
2849 main ()
2850 {
2851 exit (42);
2852   ;
2853   return 0;
2854 }
2855 _ACEOF
2856 rm -f conftest.$ac_objext
2857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2858   (eval $ac_compile) 2>conftest.er1
2859   ac_status=$?
2860   grep -v '^ *+' conftest.er1 >conftest.err
2861   rm -f conftest.er1
2862   cat conftest.err >&5
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); } &&
2865          { ac_try='test -z "$ac_cxx_werror_flag"
2866                          || test ! -s conftest.err'
2867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868   (eval $ac_try) 2>&5
2869   ac_status=$?
2870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); }; } &&
2872          { ac_try='test -s conftest.$ac_objext'
2873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874   (eval $ac_try) 2>&5
2875   ac_status=$?
2876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); }; }; then
2878   :
2879 else
2880   echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2882
2883 continue
2884 fi
2885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2886   cat >conftest.$ac_ext <<_ACEOF
2887 /* confdefs.h.  */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h.  */
2892 $ac_declaration
2893 int
2894 main ()
2895 {
2896 exit (42);
2897   ;
2898   return 0;
2899 }
2900 _ACEOF
2901 rm -f conftest.$ac_objext
2902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2903   (eval $ac_compile) 2>conftest.er1
2904   ac_status=$?
2905   grep -v '^ *+' conftest.er1 >conftest.err
2906   rm -f conftest.er1
2907   cat conftest.err >&5
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); } &&
2910          { ac_try='test -z "$ac_cxx_werror_flag"
2911                          || test ! -s conftest.err'
2912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913   (eval $ac_try) 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; } &&
2917          { ac_try='test -s conftest.$ac_objext'
2918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919   (eval $ac_try) 2>&5
2920   ac_status=$?
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); }; }; then
2923   break
2924 else
2925   echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2927
2928 fi
2929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2930 done
2931 rm -f conftest*
2932 if test -n "$ac_declaration"; then
2933   echo '#ifdef __cplusplus' >>confdefs.h
2934   echo $ac_declaration      >>confdefs.h
2935   echo '#endif'             >>confdefs.h
2936 fi
2937
2938 ac_ext=c
2939 ac_cpp='$CPP $CPPFLAGS'
2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943
2944
2945 if test "x$CHECKMEM" '!=' "x";then
2946     CC="ccmalloc $CC"
2947     CXX="ccmalloc $CXX"
2948     #echo running again
2949     #unset ac_cv_prog_CC
2950     #unset ac_cv_prog_CXX
2951     #AC_PROG_CC
2952     #AC_PROG_CXX
2953 fi
2954  ac_ext=c
2955 ac_cpp='$CPP $CPPFLAGS'
2956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2959 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2960 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2961 # On Suns, sometimes $CPP names a directory.
2962 if test -n "$CPP" && test -d "$CPP"; then
2963   CPP=
2964 fi
2965 if test -z "$CPP"; then
2966   if test "${ac_cv_prog_CPP+set}" = set; then
2967   echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969       # Double quotes because CPP needs to be expanded
2970     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2971     do
2972       ac_preproc_ok=false
2973 for ac_c_preproc_warn_flag in '' yes
2974 do
2975   # Use a header file that comes with gcc, so configuring glibc
2976   # with a fresh cross-compiler works.
2977   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2978   # <limits.h> exists even on freestanding compilers.
2979   # On the NeXT, cc -E runs the code through the compiler's parser,
2980   # not just through cpp. "Syntax error" is here to catch this case.
2981   cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h.  */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h.  */
2987 #ifdef __STDC__
2988 # include <limits.h>
2989 #else
2990 # include <assert.h>
2991 #endif
2992                      Syntax error
2993 _ACEOF
2994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2996   ac_status=$?
2997   grep -v '^ *+' conftest.er1 >conftest.err
2998   rm -f conftest.er1
2999   cat conftest.err >&5
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); } >/dev/null; then
3002   if test -s conftest.err; then
3003     ac_cpp_err=$ac_c_preproc_warn_flag
3004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3005   else
3006     ac_cpp_err=
3007   fi
3008 else
3009   ac_cpp_err=yes
3010 fi
3011 if test -z "$ac_cpp_err"; then
3012   :
3013 else
3014   echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3016
3017   # Broken: fails on valid input.
3018 continue
3019 fi
3020 rm -f conftest.err conftest.$ac_ext
3021
3022   # OK, works on sane cases.  Now check whether non-existent headers
3023   # can be detected and how.
3024   cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030 #include <ac_nonexistent.h>
3031 _ACEOF
3032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3033   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3034   ac_status=$?
3035   grep -v '^ *+' conftest.er1 >conftest.err
3036   rm -f conftest.er1
3037   cat conftest.err >&5
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); } >/dev/null; then
3040   if test -s conftest.err; then
3041     ac_cpp_err=$ac_c_preproc_warn_flag
3042     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3043   else
3044     ac_cpp_err=
3045   fi
3046 else
3047   ac_cpp_err=yes
3048 fi
3049 if test -z "$ac_cpp_err"; then
3050   # Broken: success on invalid input.
3051 continue
3052 else
3053   echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056   # Passes both tests.
3057 ac_preproc_ok=:
3058 break
3059 fi
3060 rm -f conftest.err conftest.$ac_ext
3061
3062 done
3063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3064 rm -f conftest.err conftest.$ac_ext
3065 if $ac_preproc_ok; then
3066   break
3067 fi
3068
3069     done
3070     ac_cv_prog_CPP=$CPP
3071
3072 fi
3073   CPP=$ac_cv_prog_CPP
3074 else
3075   ac_cv_prog_CPP=$CPP
3076 fi
3077 echo "$as_me:$LINENO: result: $CPP" >&5
3078 echo "${ECHO_T}$CPP" >&6
3079 ac_preproc_ok=false
3080 for ac_c_preproc_warn_flag in '' yes
3081 do
3082   # Use a header file that comes with gcc, so configuring glibc
3083   # with a fresh cross-compiler works.
3084   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3085   # <limits.h> exists even on freestanding compilers.
3086   # On the NeXT, cc -E runs the code through the compiler's parser,
3087   # not just through cpp. "Syntax error" is here to catch this case.
3088   cat >conftest.$ac_ext <<_ACEOF
3089 /* confdefs.h.  */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h.  */
3094 #ifdef __STDC__
3095 # include <limits.h>
3096 #else
3097 # include <assert.h>
3098 #endif
3099                      Syntax error
3100 _ACEOF
3101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3103   ac_status=$?
3104   grep -v '^ *+' conftest.er1 >conftest.err
3105   rm -f conftest.er1
3106   cat conftest.err >&5
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } >/dev/null; then
3109   if test -s conftest.err; then
3110     ac_cpp_err=$ac_c_preproc_warn_flag
3111     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3112   else
3113     ac_cpp_err=
3114   fi
3115 else
3116   ac_cpp_err=yes
3117 fi
3118 if test -z "$ac_cpp_err"; then
3119   :
3120 else
3121   echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124   # Broken: fails on valid input.
3125 continue
3126 fi
3127 rm -f conftest.err conftest.$ac_ext
3128
3129   # OK, works on sane cases.  Now check whether non-existent headers
3130   # can be detected and how.
3131   cat >conftest.$ac_ext <<_ACEOF
3132 /* confdefs.h.  */
3133 _ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h.  */
3137 #include <ac_nonexistent.h>
3138 _ACEOF
3139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3140   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3141   ac_status=$?
3142   grep -v '^ *+' conftest.er1 >conftest.err
3143   rm -f conftest.er1
3144   cat conftest.err >&5
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); } >/dev/null; then
3147   if test -s conftest.err; then
3148     ac_cpp_err=$ac_c_preproc_warn_flag
3149     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3150   else
3151     ac_cpp_err=
3152   fi
3153 else
3154   ac_cpp_err=yes
3155 fi
3156 if test -z "$ac_cpp_err"; then
3157   # Broken: success on invalid input.
3158 continue
3159 else
3160   echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3162
3163   # Passes both tests.
3164 ac_preproc_ok=:
3165 break
3166 fi
3167 rm -f conftest.err conftest.$ac_ext
3168
3169 done
3170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3171 rm -f conftest.err conftest.$ac_ext
3172 if $ac_preproc_ok; then
3173   :
3174 else
3175   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3176 See \`config.log' for more details." >&5
3177 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3178 See \`config.log' for more details." >&2;}
3179    { (exit 1); exit 1; }; }
3180 fi
3181
3182 ac_ext=c
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187
3188
3189  if test -n "$ac_tool_prefix"; then
3190   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3191 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3192 echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3194 if test "${ac_cv_prog_RANLIB+set}" = set; then
3195   echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197   if test -n "$RANLIB"; then
3198   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205   for ac_exec_ext in '' $ac_executable_extensions; do
3206   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3207     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209     break 2
3210   fi
3211 done
3212 done
3213
3214 fi
3215 fi
3216 RANLIB=$ac_cv_prog_RANLIB
3217 if test -n "$RANLIB"; then
3218   echo "$as_me:$LINENO: result: $RANLIB" >&5
3219 echo "${ECHO_T}$RANLIB" >&6
3220 else
3221   echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3223 fi
3224
3225 fi
3226 if test -z "$ac_cv_prog_RANLIB"; then
3227   ac_ct_RANLIB=$RANLIB
3228   # Extract the first word of "ranlib", so it can be a program name with args.
3229 set dummy ranlib; ac_word=$2
3230 echo "$as_me:$LINENO: checking for $ac_word" >&5
3231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3232 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3233   echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235   if test -n "$ac_ct_RANLIB"; then
3236   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3237 else
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH
3240 do
3241   IFS=$as_save_IFS
3242   test -z "$as_dir" && as_dir=.
3243   for ac_exec_ext in '' $ac_executable_extensions; do
3244   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245     ac_cv_prog_ac_ct_RANLIB="ranlib"
3246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247     break 2
3248   fi
3249 done
3250 done
3251
3252   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3253 fi
3254 fi
3255 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3256 if test -n "$ac_ct_RANLIB"; then
3257   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3258 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3259 else
3260   echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3262 fi
3263
3264   RANLIB=$ac_ct_RANLIB
3265 else
3266   RANLIB="$ac_cv_prog_RANLIB"
3267 fi
3268
3269  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3270 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3271 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3272 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3273   echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275   cat >conftest.make <<\_ACEOF
3276 all:
3277         @echo 'ac_maketemp="$(MAKE)"'
3278 _ACEOF
3279 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3280 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3281 if test -n "$ac_maketemp"; then
3282   eval ac_cv_prog_make_${ac_make}_set=yes
3283 else
3284   eval ac_cv_prog_make_${ac_make}_set=no
3285 fi
3286 rm -f conftest.make
3287 fi
3288 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3289   echo "$as_me:$LINENO: result: yes" >&5
3290 echo "${ECHO_T}yes" >&6
3291   SET_MAKE=
3292 else
3293   echo "$as_me:$LINENO: result: no" >&5
3294 echo "${ECHO_T}no" >&6
3295   SET_MAKE="MAKE=${MAKE-make}"
3296 fi
3297
3298  # Find a good install program.  We prefer a C program (faster),
3299 # so one script is as good as another.  But avoid the broken or
3300 # incompatible versions:
3301 # SysV /etc/install, /usr/sbin/install
3302 # SunOS /usr/etc/install
3303 # IRIX /sbin/install
3304 # AIX /bin/install
3305 # AmigaOS /C/install, which installs bootblocks on floppy discs
3306 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3307 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3308 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3309 # OS/2's system install, which has a completely different semantic
3310 # ./install, which can be erroneously created by make from ./install.sh.
3311 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3312 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3313 if test -z "$INSTALL"; then
3314 if test "${ac_cv_path_install+set}" = set; then
3315   echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3319 do
3320   IFS=$as_save_IFS
3321   test -z "$as_dir" && as_dir=.
3322   # Account for people who put trailing slashes in PATH elements.
3323 case $as_dir/ in
3324   ./ | .// | /cC/* | \
3325   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3326   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3327   /usr/ucb/* ) ;;
3328   *)
3329     # OSF1 and SCO ODT 3.0 have their own names for install.
3330     # Don't use installbsd from OSF since it installs stuff as root
3331     # by default.
3332     for ac_prog in ginstall scoinst install; do
3333       for ac_exec_ext in '' $ac_executable_extensions; do
3334         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3335           if test $ac_prog = install &&
3336             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3337             # AIX install.  It has an incompatible calling convention.
3338             :
3339           elif test $ac_prog = install &&
3340             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3341             # program-specific install script used by HP pwplus--don't use.
3342             :
3343           else
3344             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3345             break 3
3346           fi
3347         fi
3348       done
3349     done
3350     ;;
3351 esac
3352 done
3353
3354
3355 fi
3356   if test "${ac_cv_path_install+set}" = set; then
3357     INSTALL=$ac_cv_path_install
3358   else
3359     # As a last resort, use the slow shell script.  We don't cache a
3360     # path for INSTALL within a source directory, because that will
3361     # break other packages using the cache if that directory is
3362     # removed, or if the path is relative.
3363     INSTALL=$ac_install_sh
3364   fi
3365 fi
3366 echo "$as_me:$LINENO: result: $INSTALL" >&5
3367 echo "${ECHO_T}$INSTALL" >&6
3368
3369 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3370 # It thinks the first close brace ends the variable substitution.
3371 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3372
3373 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3374
3375 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3376
3377  echo "$as_me:$LINENO: checking whether ln -s works" >&5
3378 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3379 LN_S=$as_ln_s
3380 if test "$LN_S" = "ln -s"; then
3381   echo "$as_me:$LINENO: result: yes" >&5
3382 echo "${ECHO_T}yes" >&6
3383 else
3384   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3385 echo "${ECHO_T}no, using $LN_S" >&6
3386 fi
3387
3388  # Check whether --enable-shared or --disable-shared was given.
3389 if test "${enable_shared+set}" = set; then
3390   enableval="$enable_shared"
3391   p=${PACKAGE-default}
3392 case $enableval in
3393 yes) enable_shared=yes ;;
3394 no) enable_shared=no ;;
3395 *)
3396   enable_shared=no
3397   # Look at the argument we got.  We use all the common list separators.
3398   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3399   for pkg in $enableval; do
3400     if test "X$pkg" = "X$p"; then
3401       enable_shared=yes
3402     fi
3403   done
3404   IFS="$ac_save_ifs"
3405   ;;
3406 esac
3407 else
3408   enable_shared=yes
3409 fi;
3410 # Check whether --enable-static or --disable-static was given.
3411 if test "${enable_static+set}" = set; then
3412   enableval="$enable_static"
3413   p=${PACKAGE-default}
3414 case $enableval in
3415 yes) enable_static=yes ;;
3416 no) enable_static=no ;;
3417 *)
3418   enable_static=no
3419   # Look at the argument we got.  We use all the common list separators.
3420   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3421   for pkg in $enableval; do
3422     if test "X$pkg" = "X$p"; then
3423       enable_static=yes
3424     fi
3425   done
3426   IFS="$ac_save_ifs"
3427   ;;
3428 esac
3429 else
3430   enable_static=yes
3431 fi;
3432 # Check whether --enable-fast-install or --disable-fast-install was given.
3433 if test "${enable_fast_install+set}" = set; then
3434   enableval="$enable_fast_install"
3435   p=${PACKAGE-default}
3436 case $enableval in
3437 yes) enable_fast_install=yes ;;
3438 no) enable_fast_install=no ;;
3439 *)
3440   enable_fast_install=no
3441   # Look at the argument we got.  We use all the common list separators.
3442   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3443   for pkg in $enableval; do
3444     if test "X$pkg" = "X$p"; then
3445       enable_fast_install=yes
3446     fi
3447   done
3448   IFS="$ac_save_ifs"
3449   ;;
3450 esac
3451 else
3452   enable_fast_install=yes
3453 fi;
3454 # Find the correct PATH separator.  Usually this is `:', but
3455 # DJGPP uses `;' like DOS.
3456 if test "X${PATH_SEPARATOR+set}" != Xset; then
3457   UNAME=${UNAME-`uname 2>/dev/null`}
3458   case X$UNAME in
3459     *-DOS) lt_cv_sys_path_separator=';' ;;
3460     *)     lt_cv_sys_path_separator=':' ;;
3461   esac
3462   PATH_SEPARATOR=$lt_cv_sys_path_separator
3463 fi
3464
3465
3466 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3467 if test "${with_gnu_ld+set}" = set; then
3468   withval="$with_gnu_ld"
3469   test "$withval" = no || with_gnu_ld=yes
3470 else
3471   with_gnu_ld=no
3472 fi;
3473 ac_prog=ld
3474 if test "$GCC" = yes; then
3475   # Check if gcc -print-prog-name=ld gives a path.
3476   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3477 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3478   case $host in
3479   *-*-mingw*)
3480     # gcc leaves a trailing carriage return which upsets mingw
3481     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3482   *)
3483     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3484   esac
3485   case $ac_prog in
3486     # Accept absolute paths.
3487     [\\/]* | [A-Za-z]:[\\/]*)
3488       re_direlt='/[^/][^/]*/\.\./'
3489       # Canonicalize the path of ld
3490       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3491       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3492         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3493       done
3494       test -z "$LD" && LD="$ac_prog"
3495       ;;
3496   "")
3497     # If it fails, then pretend we aren't using GCC.
3498     ac_prog=ld
3499     ;;
3500   *)
3501     # If it is relative, then search for the first ld in PATH.
3502     with_gnu_ld=unknown
3503     ;;
3504   esac
3505 elif test "$with_gnu_ld" = yes; then
3506   echo "$as_me:$LINENO: checking for GNU ld" >&5
3507 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3508 else
3509   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3510 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3511 fi
3512 if test "${lt_cv_path_LD+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   if test -z "$LD"; then
3516   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3517   for ac_dir in $PATH; do
3518     test -z "$ac_dir" && ac_dir=.
3519     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3520       lt_cv_path_LD="$ac_dir/$ac_prog"
3521       # Check to see if the program is GNU ld.  I'd rather use --version,
3522       # but apparently some GNU ld's only accept -v.
3523       # Break only if it was the GNU/non-GNU ld that we prefer.
3524       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3525         test "$with_gnu_ld" != no && break
3526       else
3527         test "$with_gnu_ld" != yes && break
3528       fi
3529     fi
3530   done
3531   IFS="$ac_save_ifs"
3532 else
3533   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3534 fi
3535 fi
3536
3537 LD="$lt_cv_path_LD"
3538 if test -n "$LD"; then
3539   echo "$as_me:$LINENO: result: $LD" >&5
3540 echo "${ECHO_T}$LD" >&6
3541 else
3542   echo "$as_me:$LINENO: result: no" >&5
3543 echo "${ECHO_T}no" >&6
3544 fi
3545 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3546 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3547    { (exit 1); exit 1; }; }
3548 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3549 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3550 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3551   echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3554 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3555   lt_cv_prog_gnu_ld=yes
3556 else
3557   lt_cv_prog_gnu_ld=no
3558 fi
3559 fi
3560 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3561 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3562 with_gnu_ld=$lt_cv_prog_gnu_ld
3563
3564
3565 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3566 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3567 if test "${lt_cv_ld_reload_flag+set}" = set; then
3568   echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570   lt_cv_ld_reload_flag='-r'
3571 fi
3572 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3573 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3574 reload_flag=$lt_cv_ld_reload_flag
3575 test -n "$reload_flag" && reload_flag=" $reload_flag"
3576
3577 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3578 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3579 if test "${lt_cv_path_NM+set}" = set; then
3580   echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582   if test -n "$NM"; then
3583   # Let the user override the test.
3584   lt_cv_path_NM="$NM"
3585 else
3586   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3587   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3588     test -z "$ac_dir" && ac_dir=.
3589     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3590     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3591       # Check to see if the nm accepts a BSD-compat flag.
3592       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3593       #   nm: unknown option "B" ignored
3594       # Tru64's nm complains that /dev/null is an invalid object file
3595       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3596         lt_cv_path_NM="$tmp_nm -B"
3597         break
3598       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3599         lt_cv_path_NM="$tmp_nm -p"
3600         break
3601       else
3602         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3603         continue # so that we can try to find one that supports BSD flags
3604       fi
3605     fi
3606   done
3607   IFS="$ac_save_ifs"
3608   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3609 fi
3610 fi
3611
3612 NM="$lt_cv_path_NM"
3613 echo "$as_me:$LINENO: result: $NM" >&5
3614 echo "${ECHO_T}$NM" >&6
3615
3616 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3617 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3618 if test "${lt_cv_path_SED+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   # Loop through the user's path and test for sed and gsed.
3622 # Then use that list of sed's as ones to test for truncation.
3623 as_executable_p="test -f"
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH
3626 do
3627   IFS=$as_save_IFS
3628   test -z "$as_dir" && as_dir=.
3629   for ac_prog in sed gsed; do
3630     for ac_exec_ext in '' $ac_executable_extensions; do
3631       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3632         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3633       fi
3634     done
3635   done
3636 done
3637
3638   # Create a temporary directory, and hook for its removal unless debugging.
3639 $debug ||
3640 {
3641   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3642   trap '{ (exit 1); exit 1; }' 1 2 13 15
3643 }
3644
3645 # Create a (secure) tmp directory for tmp files.
3646 : ${TMPDIR=/tmp}
3647 {
3648   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3649   test -n "$tmp" && test -d "$tmp"
3650 }  ||
3651 {
3652   tmp=$TMPDIR/sed$$-$RANDOM
3653   (umask 077 && mkdir $tmp)
3654 } ||
3655 {
3656    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3657    { (exit 1); exit 1; }
3658 }
3659   _max=0
3660   _count=0
3661   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3662   # along with /bin/sed that truncates output.
3663   for _sed in $_sed_list /usr/xpg4/bin/sed; do
3664     test ! -f ${_sed} && break
3665     cat /dev/null > "$tmp/sed.in"
3666     _count=0
3667     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3668     # Check for GNU sed and select it if it is found.
3669     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3670       lt_cv_path_SED=${_sed}
3671       break
3672     fi
3673     while true; do
3674       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3675       mv "$tmp/sed.tmp" "$tmp/sed.in"
3676       cp "$tmp/sed.in" "$tmp/sed.nl"
3677       echo >>"$tmp/sed.nl"
3678       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3679       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3680       # 40000 chars as input seems more than enough
3681       test $_count -gt 10 && break
3682       _count=`expr $_count + 1`
3683       if test $_count -gt $_max; then
3684         _max=$_count
3685         lt_cv_path_SED=$_sed
3686       fi
3687     done
3688   done
3689   rm -rf "$tmp"
3690
3691 fi
3692
3693 if test "X$SED" != "X"; then
3694   lt_cv_path_SED=$SED
3695 else
3696   SED=$lt_cv_path_SED
3697 fi
3698 echo "$as_me:$LINENO: result: $SED" >&5
3699 echo "${ECHO_T}$SED" >&6
3700
3701 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3702 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3703 if test "${lt_cv_deplibs_check_method+set}" = set; then
3704   echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706   lt_cv_file_magic_cmd='$MAGIC_CMD'
3707 lt_cv_file_magic_test_file=
3708 lt_cv_deplibs_check_method='unknown'
3709 # Need to set the preceding variable on all platforms that support
3710 # interlibrary dependencies.
3711 # 'none' -- dependencies not supported.
3712 # `unknown' -- same as none, but documents that we really don't know.
3713 # 'pass_all' -- all dependencies passed with no checks.
3714 # 'test_compile' -- check by making test program.
3715 # 'file_magic [[regex]]' -- check by looking for files in library path
3716 # which responds to the $file_magic_cmd with a given egrep regex.
3717 # If you have `file' or equivalent on your system and you're not sure
3718 # whether `pass_all' will *always* work, you probably want this one.
3719
3720 case $host_os in
3721 aix4* | aix5*)
3722   lt_cv_deplibs_check_method=pass_all
3723   ;;
3724
3725 beos*)
3726   lt_cv_deplibs_check_method=pass_all
3727   ;;
3728
3729 bsdi4*)
3730   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3731   lt_cv_file_magic_cmd='/usr/bin/file -L'
3732   lt_cv_file_magic_test_file=/shlib/libc.so
3733   ;;
3734
3735 cygwin* | mingw* | pw32*)
3736   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3737   lt_cv_file_magic_cmd='$OBJDUMP -f'
3738   ;;
3739
3740 darwin* | rhapsody*)
3741   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3742   lt_cv_file_magic_cmd='/usr/bin/file -L'
3743   case "$host_os" in
3744   rhapsody* | darwin1.[012])
3745     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3746     ;;
3747   *) # Darwin 1.3 on
3748     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3749     ;;
3750   esac
3751   ;;
3752
3753 freebsd*)
3754   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3755     case $host_cpu in
3756     i*86 )
3757       # Not sure whether the presence of OpenBSD here was a mistake.
3758       # Let's accept both of them until this is cleared up.
3759       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3760       lt_cv_file_magic_cmd=/usr/bin/file
3761       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3762       ;;
3763     esac
3764   else
3765     lt_cv_deplibs_check_method=pass_all
3766   fi
3767   ;;
3768
3769 gnu*)
3770   lt_cv_deplibs_check_method=pass_all
3771   ;;
3772
3773 hpux10.20*|hpux11*)
3774   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3775   lt_cv_file_magic_cmd=/usr/bin/file
3776   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3777   ;;
3778
3779 irix5* | irix6* | nonstopux*)
3780   case $host_os in
3781   irix5* | nonstopux*)
3782     # this will be overridden with pass_all, but let us keep it just in case
3783     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3784     ;;
3785   *)
3786     case $LD in
3787     *-32|*"-32 ") libmagic=32-bit;;
3788     *-n32|*"-n32 ") libmagic=N32;;
3789     *-64|*"-64 ") libmagic=64-bit;;
3790     *) libmagic=never-match;;
3791     esac
3792     # this will be overridden with pass_all, but let us keep it just in case
3793     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3794     ;;
3795   esac
3796   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3797   lt_cv_deplibs_check_method=pass_all
3798   ;;
3799
3800 # This must be Linux ELF.
3801 linux-gnu*)
3802   case $host_cpu in
3803   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3804     lt_cv_deplibs_check_method=pass_all ;;
3805   *)
3806     # glibc up to 2.1.1 does not perform some relocations on ARM
3807     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3808   esac
3809   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3810   ;;
3811
3812 netbsd*)
3813   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3814     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3815   else
3816     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3817   fi
3818   ;;
3819
3820 newos6*)
3821   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3822   lt_cv_file_magic_cmd=/usr/bin/file
3823   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3824   ;;
3825
3826 openbsd*)
3827   lt_cv_file_magic_cmd=/usr/bin/file
3828   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3829   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3830     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3831   else
3832     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3833   fi
3834   ;;
3835
3836 osf3* | osf4* | osf5*)
3837   # this will be overridden with pass_all, but let us keep it just in case
3838   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3839   lt_cv_file_magic_test_file=/shlib/libc.so
3840   lt_cv_deplibs_check_method=pass_all
3841   ;;
3842
3843 sco3.2v5*)
3844   lt_cv_deplibs_check_method=pass_all
3845   ;;
3846
3847 solaris*)
3848   lt_cv_deplibs_check_method=pass_all
3849   lt_cv_file_magic_test_file=/lib/libc.so
3850   ;;
3851
3852 sysv5uw[78]* | sysv4*uw2*)
3853   lt_cv_deplibs_check_method=pass_all
3854   ;;
3855
3856 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3857   case $host_vendor in
3858   motorola)
3859     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]'
3860     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3861     ;;
3862   ncr)
3863     lt_cv_deplibs_check_method=pass_all
3864     ;;
3865   sequent)
3866     lt_cv_file_magic_cmd='/bin/file'
3867     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3868     ;;
3869   sni)
3870     lt_cv_file_magic_cmd='/bin/file'
3871     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3872     lt_cv_file_magic_test_file=/lib/libc.so
3873     ;;
3874   siemens)
3875     lt_cv_deplibs_check_method=pass_all
3876     ;;
3877   esac
3878   ;;
3879 esac
3880
3881 fi
3882 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3883 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3884 file_magic_cmd=$lt_cv_file_magic_cmd
3885 deplibs_check_method=$lt_cv_deplibs_check_method
3886
3887
3888
3889
3890
3891
3892
3893
3894 # Check for command to grab the raw symbol name followed by C symbol from nm.
3895 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3896 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3897 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3898   echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900
3901 # These are sane defaults that work on at least a few old systems.
3902 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3903
3904 # Character class describing NM global symbol codes.
3905 symcode='[BCDEGRST]'
3906
3907 # Regexp to match symbols that can be accessed directly from C.
3908 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3909
3910 # Transform the above into a raw symbol and a C symbol.
3911 symxfrm='\1 \2\3 \3'
3912
3913 # Transform an extracted symbol line into a proper C declaration
3914 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3915
3916 # Transform an extracted symbol line into symbol name and symbol address
3917 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'"
3918
3919 # Define system-specific variables.
3920 case $host_os in
3921 aix*)
3922   symcode='[BCDT]'
3923   ;;
3924 cygwin* | mingw* | pw32*)
3925   symcode='[ABCDGISTW]'
3926   ;;
3927 hpux*) # Its linker distinguishes data from code symbols
3928   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3929   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'"
3930   ;;
3931 irix* | nonstopux*)
3932   symcode='[BCDEGRST]'
3933   ;;
3934 osf*)
3935   symcode='[BCDEGQRST]'
3936   ;;
3937 solaris* | sysv5*)
3938   symcode='[BDT]'
3939   ;;
3940 sysv4)
3941   symcode='[DFNSTU]'
3942   ;;
3943 esac
3944
3945 # Handle CRLF in mingw tool chain
3946 opt_cr=
3947 case $host_os in
3948 mingw*)
3949   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3950   ;;
3951 esac
3952
3953 # If we're using GNU nm, then use its standard symbol codes.
3954 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3955   symcode='[ABCDGISTW]'
3956 fi
3957
3958 # Try without a prefix undercore, then with it.
3959 for ac_symprfx in "" "_"; do
3960
3961   # Write the raw and C identifiers.
3962 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3963
3964   # Check to see that the pipe works correctly.
3965   pipe_works=no
3966   rm -f conftest*
3967   cat > conftest.$ac_ext <<EOF
3968 #ifdef __cplusplus
3969 extern "C" {
3970 #endif
3971 char nm_test_var;
3972 void nm_test_func(){}
3973 #ifdef __cplusplus
3974 }
3975 #endif
3976 int main(){nm_test_var='a';nm_test_func();return(0);}
3977 EOF
3978
3979   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980   (eval $ac_compile) 2>&5
3981   ac_status=$?
3982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983   (exit $ac_status); }; then
3984     # Now try to grab the symbols.
3985     nlist=conftest.nm
3986     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3987   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3988   ac_status=$?
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); } && test -s "$nlist"; then
3991       # Try sorting and uniquifying the output.
3992       if sort "$nlist" | uniq > "$nlist"T; then
3993         mv -f "$nlist"T "$nlist"
3994       else
3995         rm -f "$nlist"T
3996       fi
3997
3998       # Make sure that we snagged all the symbols we need.
3999       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4000         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4001           cat <<EOF > conftest.$ac_ext
4002 #ifdef __cplusplus
4003 extern "C" {
4004 #endif
4005
4006 EOF
4007           # Now generate the symbol file.
4008           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4009
4010           cat <<EOF >> conftest.$ac_ext
4011 #if defined (__STDC__) && __STDC__
4012 # define lt_ptr void *
4013 #else
4014 # define lt_ptr char *
4015 # define const
4016 #endif
4017
4018 /* The mapping between symbol names and symbols. */
4019 const struct {
4020   const char *name;
4021   lt_ptr address;
4022 }
4023 lt_preloaded_symbols[] =
4024 {
4025 EOF
4026           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4027           cat <<\EOF >> conftest.$ac_ext
4028   {0, (lt_ptr) 0}
4029 };
4030
4031 #ifdef __cplusplus
4032 }
4033 #endif
4034 EOF
4035           # Now try linking the two files.
4036           mv conftest.$ac_objext conftstm.$ac_objext
4037           save_LIBS="$LIBS"
4038           save_CFLAGS="$CFLAGS"
4039           LIBS="conftstm.$ac_objext"
4040           CFLAGS="$CFLAGS$no_builtin_flag"
4041           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4042   (eval $ac_link) 2>&5
4043   ac_status=$?
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); } && test -s conftest$ac_exeext; then
4046             pipe_works=yes
4047           fi
4048           LIBS="$save_LIBS"
4049           CFLAGS="$save_CFLAGS"
4050         else
4051           echo "cannot find nm_test_func in $nlist" >&5
4052         fi
4053       else
4054         echo "cannot find nm_test_var in $nlist" >&5
4055       fi
4056     else
4057       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4058     fi
4059   else
4060     echo "$progname: failed program was:" >&5
4061     cat conftest.$ac_ext >&5
4062   fi
4063   rm -f conftest* conftst*
4064
4065   # Do not use the global_symbol_pipe unless it works.
4066   if test "$pipe_works" = yes; then
4067     break
4068   else
4069     lt_cv_sys_global_symbol_pipe=
4070   fi
4071 done
4072
4073 fi
4074
4075 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4076 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4077   global_symbol_to_cdecl=
4078   global_symbol_to_c_name_address=
4079 else
4080   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4081   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4082 fi
4083 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4084 then
4085   echo "$as_me:$LINENO: result: failed" >&5
4086 echo "${ECHO_T}failed" >&6
4087 else
4088   echo "$as_me:$LINENO: result: ok" >&5
4089 echo "${ECHO_T}ok" >&6
4090 fi
4091
4092
4093 echo "$as_me:$LINENO: checking for egrep" >&5
4094 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4095 if test "${ac_cv_prog_egrep+set}" = set; then
4096   echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4099     then ac_cv_prog_egrep='grep -E'
4100     else ac_cv_prog_egrep='egrep'
4101     fi
4102 fi
4103 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4104 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4105  EGREP=$ac_cv_prog_egrep
4106
4107
4108 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4109 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4110 if test "${ac_cv_header_stdc+set}" = set; then
4111   echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113   cat >conftest.$ac_ext <<_ACEOF
4114 /* confdefs.h.  */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h.  */
4119 #include <stdlib.h>
4120 #include <stdarg.h>
4121 #include <string.h>
4122 #include <float.h>
4123
4124 int
4125 main ()
4126 {
4127
4128   ;
4129   return 0;
4130 }
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134   (eval $ac_compile) 2>conftest.er1
4135   ac_status=$?
4136   grep -v '^ *+' conftest.er1 >conftest.err
4137   rm -f conftest.er1
4138   cat conftest.err >&5
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); } &&
4141          { ac_try='test -z "$ac_c_werror_flag"
4142                          || test ! -s conftest.err'
4143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144   (eval $ac_try) 2>&5
4145   ac_status=$?
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); }; } &&
4148          { ac_try='test -s conftest.$ac_objext'
4149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150   (eval $ac_try) 2>&5
4151   ac_status=$?
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); }; }; then
4154   ac_cv_header_stdc=yes
4155 else
4156   echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159 ac_cv_header_stdc=no
4160 fi
4161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4162
4163 if test $ac_cv_header_stdc = yes; then
4164   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4165   cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h.  */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h.  */
4171 #include <string.h>
4172
4173 _ACEOF
4174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4175   $EGREP "memchr" >/dev/null 2>&1; then
4176   :
4177 else
4178   ac_cv_header_stdc=no
4179 fi
4180 rm -f conftest*
4181
4182 fi
4183
4184 if test $ac_cv_header_stdc = yes; then
4185   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4186   cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h.  */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h.  */
4192 #include <stdlib.h>
4193
4194 _ACEOF
4195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4196   $EGREP "free" >/dev/null 2>&1; then
4197   :
4198 else
4199   ac_cv_header_stdc=no
4200 fi
4201 rm -f conftest*
4202
4203 fi
4204
4205 if test $ac_cv_header_stdc = yes; then
4206   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4207   if test "$cross_compiling" = yes; then
4208   :
4209 else
4210   cat >conftest.$ac_ext <<_ACEOF
4211 /* confdefs.h.  */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h.  */
4216 #include <ctype.h>
4217 #if ((' ' & 0x0FF) == 0x020)
4218 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4219 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4220 #else
4221 # define ISLOWER(c) \
4222                    (('a' <= (c) && (c) <= 'i') \
4223                      || ('j' <= (c) && (c) <= 'r') \
4224                      || ('s' <= (c) && (c) <= 'z'))
4225 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4226 #endif
4227
4228 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4229 int
4230 main ()
4231 {
4232   int i;
4233   for (i = 0; i < 256; i++)
4234     if (XOR (islower (i), ISLOWER (i))
4235         || toupper (i) != TOUPPER (i))
4236       exit(2);
4237   exit (0);
4238 }
4239 _ACEOF
4240 rm -f conftest$ac_exeext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242   (eval $ac_link) 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247   (eval $ac_try) 2>&5
4248   ac_status=$?
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); }; }; then
4251   :
4252 else
4253   echo "$as_me: program exited with status $ac_status" >&5
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 ( exit $ac_status )
4258 ac_cv_header_stdc=no
4259 fi
4260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4261 fi
4262 fi
4263 fi
4264 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4265 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4266 if test $ac_cv_header_stdc = yes; then
4267
4268 cat >>confdefs.h <<\_ACEOF
4269 #define STDC_HEADERS 1
4270 _ACEOF
4271
4272 fi
4273
4274 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4285                   inttypes.h stdint.h unistd.h
4286 do
4287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4288 echo "$as_me:$LINENO: checking for $ac_header" >&5
4289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4291   echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293   cat >conftest.$ac_ext <<_ACEOF
4294 /* confdefs.h.  */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h.  */
4299 $ac_includes_default
4300
4301 #include <$ac_header>
4302 _ACEOF
4303 rm -f conftest.$ac_objext
4304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4305   (eval $ac_compile) 2>conftest.er1
4306   ac_status=$?
4307   grep -v '^ *+' conftest.er1 >conftest.err
4308   rm -f conftest.er1
4309   cat conftest.err >&5
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); } &&
4312          { ac_try='test -z "$ac_c_werror_flag"
4313                          || test ! -s conftest.err'
4314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315   (eval $ac_try) 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); }; } &&
4319          { ac_try='test -s conftest.$ac_objext'
4320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321   (eval $ac_try) 2>&5
4322   ac_status=$?
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); }; }; then
4325   eval "$as_ac_Header=yes"
4326 else
4327   echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330 eval "$as_ac_Header=no"
4331 fi
4332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4333 fi
4334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4337   cat >>confdefs.h <<_ACEOF
4338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4339 _ACEOF
4340
4341 fi
4342
4343 done
4344
4345
4346
4347 for ac_header in dlfcn.h
4348 do
4349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4351   echo "$as_me:$LINENO: checking for $ac_header" >&5
4352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4354   echo $ECHO_N "(cached) $ECHO_C" >&6
4355 fi
4356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4358 else
4359   # Is the header compilable?
4360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h.  */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h.  */
4368 $ac_includes_default
4369 #include <$ac_header>
4370 _ACEOF
4371 rm -f conftest.$ac_objext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373   (eval $ac_compile) 2>conftest.er1
4374   ac_status=$?
4375   grep -v '^ *+' conftest.er1 >conftest.err
4376   rm -f conftest.er1
4377   cat conftest.err >&5
4378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379   (exit $ac_status); } &&
4380          { ac_try='test -z "$ac_c_werror_flag"
4381                          || test ! -s conftest.err'
4382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383   (eval $ac_try) 2>&5
4384   ac_status=$?
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); }; } &&
4387          { ac_try='test -s conftest.$ac_objext'
4388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389   (eval $ac_try) 2>&5
4390   ac_status=$?
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); }; }; then
4393   ac_header_compiler=yes
4394 else
4395   echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398 ac_header_compiler=no
4399 fi
4400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4402 echo "${ECHO_T}$ac_header_compiler" >&6
4403
4404 # Is the header present?
4405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h.  */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h.  */
4413 #include <$ac_header>
4414 _ACEOF
4415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4416   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4417   ac_status=$?
4418   grep -v '^ *+' conftest.er1 >conftest.err
4419   rm -f conftest.er1
4420   cat conftest.err >&5
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); } >/dev/null; then
4423   if test -s conftest.err; then
4424     ac_cpp_err=$ac_c_preproc_warn_flag
4425     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4426   else
4427     ac_cpp_err=
4428   fi
4429 else
4430   ac_cpp_err=yes
4431 fi
4432 if test -z "$ac_cpp_err"; then
4433   ac_header_preproc=yes
4434 else
4435   echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4437
4438   ac_header_preproc=no
4439 fi
4440 rm -f conftest.err conftest.$ac_ext
4441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4442 echo "${ECHO_T}$ac_header_preproc" >&6
4443
4444 # So?  What about this header?
4445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4446   yes:no: )
4447     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4451     ac_header_preproc=yes
4452     ;;
4453   no:yes:* )
4454     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4456     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4457 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4458     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4460     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4461 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4464     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4466     (
4467       cat <<\_ASBOX
4468 ## ------------------------------------------ ##
4469 ## Report this to the AC_PACKAGE_NAME lists.  ##
4470 ## ------------------------------------------ ##
4471 _ASBOX
4472     ) |
4473       sed "s/^/$as_me: WARNING:     /" >&2
4474     ;;
4475 esac
4476 echo "$as_me:$LINENO: checking for $ac_header" >&5
4477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   eval "$as_ac_Header=\$ac_header_preproc"
4482 fi
4483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4485
4486 fi
4487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4488   cat >>confdefs.h <<_ACEOF
4489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4490 _ACEOF
4491
4492 fi
4493
4494 done
4495
4496
4497
4498
4499
4500
4501 # Only perform the check for file, if the check method requires it
4502 case $deplibs_check_method in
4503 file_magic*)
4504   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4505     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4506 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4507 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4508   echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510   case $MAGIC_CMD in
4511   /*)
4512   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4513   ;;
4514   ?:/*)
4515   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4516   ;;
4517   *)
4518   ac_save_MAGIC_CMD="$MAGIC_CMD"
4519   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4520   ac_dummy="/usr/bin:$PATH"
4521   for ac_dir in $ac_dummy; do
4522     test -z "$ac_dir" && ac_dir=.
4523     if test -f $ac_dir/${ac_tool_prefix}file; then
4524       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4525       if test -n "$file_magic_test_file"; then
4526         case $deplibs_check_method in
4527         "file_magic "*)
4528           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4529           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4530           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4531             egrep "$file_magic_regex" > /dev/null; then
4532             :
4533           else
4534             cat <<EOF 1>&2
4535
4536 *** Warning: the command libtool uses to detect shared libraries,
4537 *** $file_magic_cmd, produces output that libtool cannot recognize.
4538 *** The result is that libtool may fail to recognize shared libraries
4539 *** as such.  This will affect the creation of libtool libraries that
4540 *** depend on shared libraries, but programs linked with such libtool
4541 *** libraries will work regardless of this problem.  Nevertheless, you
4542 *** may want to report the problem to your system manager and/or to
4543 *** bug-libtool@gnu.org
4544
4545 EOF
4546           fi ;;
4547         esac
4548       fi
4549       break
4550     fi
4551   done
4552   IFS="$ac_save_ifs"
4553   MAGIC_CMD="$ac_save_MAGIC_CMD"
4554   ;;
4555 esac
4556 fi
4557
4558 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4559 if test -n "$MAGIC_CMD"; then
4560   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4561 echo "${ECHO_T}$MAGIC_CMD" >&6
4562 else
4563   echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6
4565 fi
4566
4567 if test -z "$lt_cv_path_MAGIC_CMD"; then
4568   if test -n "$ac_tool_prefix"; then
4569     echo "$as_me:$LINENO: checking for file" >&5
4570 echo $ECHO_N "checking for file... $ECHO_C" >&6
4571 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4572   echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574   case $MAGIC_CMD in
4575   /*)
4576   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4577   ;;
4578   ?:/*)
4579   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4580   ;;
4581   *)
4582   ac_save_MAGIC_CMD="$MAGIC_CMD"
4583   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4584   ac_dummy="/usr/bin:$PATH"
4585   for ac_dir in $ac_dummy; do
4586     test -z "$ac_dir" && ac_dir=.
4587     if test -f $ac_dir/file; then
4588       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4589       if test -n "$file_magic_test_file"; then
4590         case $deplibs_check_method in
4591         "file_magic "*)
4592           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4593           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4594           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4595             egrep "$file_magic_regex" > /dev/null; then
4596             :
4597           else
4598             cat <<EOF 1>&2
4599
4600 *** Warning: the command libtool uses to detect shared libraries,
4601 *** $file_magic_cmd, produces output that libtool cannot recognize.
4602 *** The result is that libtool may fail to recognize shared libraries
4603 *** as such.  This will affect the creation of libtool libraries that
4604 *** depend on shared libraries, but programs linked with such libtool
4605 *** libraries will work regardless of this problem.  Nevertheless, you
4606 *** may want to report the problem to your system manager and/or to
4607 *** bug-libtool@gnu.org
4608
4609 EOF
4610           fi ;;
4611         esac
4612       fi
4613       break
4614     fi
4615   done
4616   IFS="$ac_save_ifs"
4617   MAGIC_CMD="$ac_save_MAGIC_CMD"
4618   ;;
4619 esac
4620 fi
4621
4622 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4623 if test -n "$MAGIC_CMD"; then
4624   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4625 echo "${ECHO_T}$MAGIC_CMD" >&6
4626 else
4627   echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6
4629 fi
4630
4631   else
4632     MAGIC_CMD=:
4633   fi
4634 fi
4635
4636   fi
4637   ;;
4638 esac
4639
4640 if test -n "$ac_tool_prefix"; then
4641   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4642 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4643 echo "$as_me:$LINENO: checking for $ac_word" >&5
4644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4645 if test "${ac_cv_prog_RANLIB+set}" = set; then
4646   echo $ECHO_N "(cached) $ECHO_C" >&6
4647 else
4648   if test -n "$RANLIB"; then
4649   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4650 else
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4653 do
4654   IFS=$as_save_IFS
4655   test -z "$as_dir" && as_dir=.
4656   for ac_exec_ext in '' $ac_executable_extensions; do
4657   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4658     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660     break 2
4661   fi
4662 done
4663 done
4664
4665 fi
4666 fi
4667 RANLIB=$ac_cv_prog_RANLIB
4668 if test -n "$RANLIB"; then
4669   echo "$as_me:$LINENO: result: $RANLIB" >&5
4670 echo "${ECHO_T}$RANLIB" >&6
4671 else
4672   echo "$as_me:$LINENO: result: no" >&5
4673 echo "${ECHO_T}no" >&6
4674 fi
4675
4676 fi
4677 if test -z "$ac_cv_prog_RANLIB"; then
4678   ac_ct_RANLIB=$RANLIB
4679   # Extract the first word of "ranlib", so it can be a program name with args.
4680 set dummy ranlib; ac_word=$2
4681 echo "$as_me:$LINENO: checking for $ac_word" >&5
4682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4683 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4684   echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686   if test -n "$ac_ct_RANLIB"; then
4687   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4688 else
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH
4691 do
4692   IFS=$as_save_IFS
4693   test -z "$as_dir" && as_dir=.
4694   for ac_exec_ext in '' $ac_executable_extensions; do
4695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4696     ac_cv_prog_ac_ct_RANLIB="ranlib"
4697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698     break 2
4699   fi
4700 done
4701 done
4702
4703   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4704 fi
4705 fi
4706 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4707 if test -n "$ac_ct_RANLIB"; then
4708   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4709 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4710 else
4711   echo "$as_me:$LINENO: result: no" >&5
4712 echo "${ECHO_T}no" >&6
4713 fi
4714
4715   RANLIB=$ac_ct_RANLIB
4716 else
4717   RANLIB="$ac_cv_prog_RANLIB"
4718 fi
4719
4720 if test -n "$ac_tool_prefix"; then
4721   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4722 set dummy ${ac_tool_prefix}strip; ac_word=$2
4723 echo "$as_me:$LINENO: checking for $ac_word" >&5
4724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4725 if test "${ac_cv_prog_STRIP+set}" = set; then
4726   echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728   if test -n "$STRIP"; then
4729   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734   IFS=$as_save_IFS
4735   test -z "$as_dir" && as_dir=.
4736   for ac_exec_ext in '' $ac_executable_extensions; do
4737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740     break 2
4741   fi
4742 done
4743 done
4744
4745 fi
4746 fi
4747 STRIP=$ac_cv_prog_STRIP
4748 if test -n "$STRIP"; then
4749   echo "$as_me:$LINENO: result: $STRIP" >&5
4750 echo "${ECHO_T}$STRIP" >&6
4751 else
4752   echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6
4754 fi
4755
4756 fi
4757 if test -z "$ac_cv_prog_STRIP"; then
4758   ac_ct_STRIP=$STRIP
4759   # Extract the first word of "strip", so it can be a program name with args.
4760 set dummy strip; ac_word=$2
4761 echo "$as_me:$LINENO: checking for $ac_word" >&5
4762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4763 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4764   echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766   if test -n "$ac_ct_STRIP"; then
4767   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4768 else
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4771 do
4772   IFS=$as_save_IFS
4773   test -z "$as_dir" && as_dir=.
4774   for ac_exec_ext in '' $ac_executable_extensions; do
4775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4776     ac_cv_prog_ac_ct_STRIP="strip"
4777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778     break 2
4779   fi
4780 done
4781 done
4782
4783   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4784 fi
4785 fi
4786 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4787 if test -n "$ac_ct_STRIP"; then
4788   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4789 echo "${ECHO_T}$ac_ct_STRIP" >&6
4790 else
4791   echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6
4793 fi
4794
4795   STRIP=$ac_ct_STRIP
4796 else
4797   STRIP="$ac_cv_prog_STRIP"
4798 fi
4799
4800
4801 enable_dlopen=no
4802 enable_win32_dll=no
4803
4804 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4805 if test "${enable_libtool_lock+set}" = set; then
4806   enableval="$enable_libtool_lock"
4807
4808 fi;
4809 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4810
4811 # Some flags need to be propagated to the compiler or linker for good
4812 # libtool support.
4813 case $host in
4814 *-*-irix6*)
4815   # Find out which ABI we are using.
4816   echo '#line 4816 "configure"' > conftest.$ac_ext
4817   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818   (eval $ac_compile) 2>&5
4819   ac_status=$?
4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); }; then
4822     case `/usr/bin/file conftest.$ac_objext` in
4823     *32-bit*)
4824       LD="${LD-ld} -32"
4825       ;;
4826     *N32*)
4827       LD="${LD-ld} -n32"
4828       ;;
4829     *64-bit*)
4830       LD="${LD-ld} -64"
4831       ;;
4832     esac
4833   fi
4834   rm -rf conftest*
4835   ;;
4836
4837 *-*-linux*)
4838   # Test if the compiler is 64bit
4839   echo 'int i;' > conftest.$ac_ext
4840   lt_cv_cc_64bit_output=no
4841   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842   (eval $ac_compile) 2>&5
4843   ac_status=$?
4844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845   (exit $ac_status); }; then
4846     case `/usr/bin/file conftest.$ac_objext` in
4847     *"ELF 64"*)
4848       lt_cv_cc_64bit_output=yes
4849       ;;
4850     esac
4851   fi
4852   rm -rf conftest*
4853   ;;
4854
4855 *-*-sco3.2v5*)
4856   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4857   SAVE_CFLAGS="$CFLAGS"
4858   CFLAGS="$CFLAGS -belf"
4859   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4860 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4861 if test "${lt_cv_cc_needs_belf+set}" = set; then
4862   echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864
4865
4866      ac_ext=c
4867 ac_cpp='$CPP $CPPFLAGS'
4868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4871
4872      cat >conftest.$ac_ext <<_ACEOF
4873 /* confdefs.h.  */
4874 _ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h.  */
4878
4879 int
4880 main ()
4881 {
4882
4883   ;
4884   return 0;
4885 }
4886 _ACEOF
4887 rm -f conftest.$ac_objext conftest$ac_exeext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4889   (eval $ac_link) 2>conftest.er1
4890   ac_status=$?
4891   grep -v '^ *+' conftest.er1 >conftest.err
4892   rm -f conftest.er1
4893   cat conftest.err >&5
4894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895   (exit $ac_status); } &&
4896          { ac_try='test -z "$ac_c_werror_flag"
4897                          || test ! -s conftest.err'
4898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899   (eval $ac_try) 2>&5
4900   ac_status=$?
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); }; } &&
4903          { ac_try='test -s conftest$ac_exeext'
4904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905   (eval $ac_try) 2>&5
4906   ac_status=$?
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); }; }; then
4909   lt_cv_cc_needs_belf=yes
4910 else
4911   echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4913
4914 lt_cv_cc_needs_belf=no
4915 fi
4916 rm -f conftest.err conftest.$ac_objext \
4917       conftest$ac_exeext conftest.$ac_ext
4918      ac_ext=c
4919 ac_cpp='$CPP $CPPFLAGS'
4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923
4924 fi
4925 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4926 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4927   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4928     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4929     CFLAGS="$SAVE_CFLAGS"
4930   fi
4931   ;;
4932
4933
4934 esac
4935
4936 # Sed substitution that helps us do robust quoting.  It backslashifies
4937 # metacharacters that are still active within double-quoted strings.
4938 Xsed='sed -e s/^X//'
4939 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4940
4941 # Same as above, but do not quote variable references.
4942 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4943
4944 # Sed substitution to delay expansion of an escaped shell variable in a
4945 # double_quote_subst'ed string.
4946 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4947
4948 # Constants:
4949 rm="rm -f"
4950
4951 # Global variables:
4952 default_ofile=libtool
4953 can_build_shared=yes
4954
4955 # All known linkers require a `.a' archive for static linking (except M$VC,
4956 # which needs '.lib').
4957 libext=a
4958 ltmain="$ac_aux_dir/ltmain.sh"
4959 ofile="$default_ofile"
4960 with_gnu_ld="$lt_cv_prog_gnu_ld"
4961 need_locks="$enable_libtool_lock"
4962
4963 old_CC="$CC"
4964 old_CFLAGS="$CFLAGS"
4965
4966 # Set sane defaults for various variables
4967 test -z "$AR" && AR=ar
4968 test -z "$AR_FLAGS" && AR_FLAGS=cru
4969 test -z "$AS" && AS=as
4970 test -z "$CC" && CC=cc
4971 test -z "$DLLTOOL" && DLLTOOL=dlltool
4972 test -z "$LD" && LD=ld
4973 test -z "$LN_S" && LN_S="ln -s"
4974 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4975 test -z "$NM" && NM=nm
4976 test -z "$OBJDUMP" && OBJDUMP=objdump
4977 test -z "$RANLIB" && RANLIB=:
4978 test -z "$STRIP" && STRIP=:
4979 test -z "$ac_objext" && ac_objext=o
4980
4981 if test x"$host" != x"$build"; then
4982   ac_tool_prefix=${host_alias}-
4983 else
4984   ac_tool_prefix=
4985 fi
4986
4987 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4988 case $host_os in
4989 linux-gnu*) ;;
4990 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4991 esac
4992
4993 case $host_os in
4994 aix3*)
4995   # AIX sometimes has problems with the GCC collect2 program.  For some
4996   # reason, if we set the COLLECT_NAMES environment variable, the problems
4997   # vanish in a puff of smoke.
4998   if test "X${COLLECT_NAMES+set}" != Xset; then
4999     COLLECT_NAMES=
5000     export COLLECT_NAMES
5001   fi
5002   ;;
5003 esac
5004
5005 # Determine commands to create old-style static archives.
5006 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5007 old_postinstall_cmds='chmod 644 $oldlib'
5008 old_postuninstall_cmds=
5009
5010 if test -n "$RANLIB"; then
5011   case $host_os in
5012   openbsd*)
5013     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5014     ;;
5015   *)
5016     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5017     ;;
5018   esac
5019   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5020 fi
5021
5022 # Allow CC to be a program name with arguments.
5023 set dummy $CC
5024 compiler="$2"
5025
5026 echo "$as_me:$LINENO: checking for objdir" >&5
5027 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5028 rm -f .libs 2>/dev/null
5029 mkdir .libs 2>/dev/null
5030 if test -d .libs; then
5031   objdir=.libs
5032 else
5033   # MS-DOS does not allow filenames that begin with a dot.
5034   objdir=_libs
5035 fi
5036 rmdir .libs 2>/dev/null
5037 echo "$as_me:$LINENO: result: $objdir" >&5
5038 echo "${ECHO_T}$objdir" >&6
5039
5040
5041
5042 # Check whether --with-pic or --without-pic was given.
5043 if test "${with_pic+set}" = set; then
5044   withval="$with_pic"
5045   pic_mode="$withval"
5046 else
5047   pic_mode=default
5048 fi;
5049 test -z "$pic_mode" && pic_mode=default
5050
5051 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5052 # in isolation, and that seeing it set (from the cache) indicates that
5053 # the associated values are set (in the cache) correctly too.
5054 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5055 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5056 if test "${lt_cv_prog_cc_pic+set}" = set; then
5057   echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059    lt_cv_prog_cc_pic=
5060   lt_cv_prog_cc_shlib=
5061   lt_cv_prog_cc_wl=
5062   lt_cv_prog_cc_static=
5063   lt_cv_prog_cc_no_builtin=
5064   lt_cv_prog_cc_can_build_shared=$can_build_shared
5065
5066   if test "$GCC" = yes; then
5067     lt_cv_prog_cc_wl='-Wl,'
5068     lt_cv_prog_cc_static='-static'
5069
5070     case $host_os in
5071     aix*)
5072       # Below there is a dirty hack to force normal static linking with -ldl
5073       # The problem is because libdl dynamically linked with both libc and
5074       # libC (AIX C++ library), which obviously doesn't included in libraries
5075       # list by gcc. This cause undefined symbols with -static flags.
5076       # This hack allows C programs to be linked with "-static -ldl", but
5077       # not sure about C++ programs.
5078       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5079       ;;
5080     amigaos*)
5081       # FIXME: we need at least 68020 code to build shared libraries, but
5082       # adding the `-m68020' flag to GCC prevents building anything better,
5083       # like `-m68040'.
5084       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5085       ;;
5086     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5087       # PIC is the default for these OSes.
5088       ;;
5089     darwin* | rhapsody*)
5090       # PIC is the default on this platform
5091       # Common symbols not allowed in MH_DYLIB files
5092       lt_cv_prog_cc_pic='-fno-common'
5093       ;;
5094     cygwin* | mingw* | pw32* | os2*)
5095       # This hack is so that the source file can tell whether it is being
5096       # built for inclusion in a dll (and should export symbols for example).
5097       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5098       ;;
5099     sysv4*MP*)
5100       if test -d /usr/nec; then
5101          lt_cv_prog_cc_pic=-Kconform_pic
5102       fi
5103       ;;
5104     *)
5105       lt_cv_prog_cc_pic='-fPIC'
5106       ;;
5107     esac
5108   else
5109     # PORTME Check for PIC flags for the system compiler.
5110     case $host_os in
5111     aix3* | aix4* | aix5*)
5112       lt_cv_prog_cc_wl='-Wl,'
5113       # All AIX code is PIC.
5114       if test "$host_cpu" = ia64; then
5115         # AIX 5 now supports IA64 processor
5116         lt_cv_prog_cc_static='-Bstatic'
5117       else
5118         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5119       fi
5120       ;;
5121
5122     hpux9* | hpux10* | hpux11*)
5123       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5124       lt_cv_prog_cc_wl='-Wl,'
5125       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5126       lt_cv_prog_cc_pic='+Z'
5127       ;;
5128
5129     irix5* | irix6* | nonstopux*)
5130       lt_cv_prog_cc_wl='-Wl,'
5131       lt_cv_prog_cc_static='-non_shared'
5132       # PIC (with -KPIC) is the default.
5133       ;;
5134
5135     cygwin* | mingw* | pw32* | os2*)
5136       # This hack is so that the source file can tell whether it is being
5137       # built for inclusion in a dll (and should export symbols for example).
5138       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5139       ;;
5140
5141     newsos6)
5142       lt_cv_prog_cc_pic='-KPIC'
5143       lt_cv_prog_cc_static='-Bstatic'
5144       ;;
5145
5146     osf3* | osf4* | osf5*)
5147       # All OSF/1 code is PIC.
5148       lt_cv_prog_cc_wl='-Wl,'
5149       lt_cv_prog_cc_static='-non_shared'
5150       ;;
5151
5152     sco3.2v5*)
5153       lt_cv_prog_cc_pic='-Kpic'
5154       lt_cv_prog_cc_static='-dn'
5155       lt_cv_prog_cc_shlib='-belf'
5156       ;;
5157
5158     solaris*)
5159       lt_cv_prog_cc_pic='-KPIC'
5160       lt_cv_prog_cc_static='-Bstatic'
5161       lt_cv_prog_cc_wl='-Wl,'
5162       ;;
5163
5164     sunos4*)
5165       lt_cv_prog_cc_pic='-PIC'
5166       lt_cv_prog_cc_static='-Bstatic'
5167       lt_cv_prog_cc_wl='-Qoption ld '
5168       ;;
5169
5170     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5171       lt_cv_prog_cc_pic='-KPIC'
5172       lt_cv_prog_cc_static='-Bstatic'
5173       lt_cv_prog_cc_wl='-Wl,'
5174       ;;
5175
5176     uts4*)
5177       lt_cv_prog_cc_pic='-pic'
5178       lt_cv_prog_cc_static='-Bstatic'
5179       ;;
5180
5181     sysv4*MP*)
5182       if test -d /usr/nec ;then
5183         lt_cv_prog_cc_pic='-Kconform_pic'
5184         lt_cv_prog_cc_static='-Bstatic'
5185       fi
5186       ;;
5187
5188     *)
5189       lt_cv_prog_cc_can_build_shared=no
5190       ;;
5191     esac
5192   fi
5193
5194 fi
5195
5196 if test -z "$lt_cv_prog_cc_pic"; then
5197   echo "$as_me:$LINENO: result: none" >&5
5198 echo "${ECHO_T}none" >&6
5199 else
5200   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5201 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5202
5203   # Check to make sure the pic_flag actually works.
5204   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5205 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5206   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5207   echo $ECHO_N "(cached) $ECHO_C" >&6
5208 else
5209       save_CFLAGS="$CFLAGS"
5210     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5211     cat >conftest.$ac_ext <<_ACEOF
5212 /* confdefs.h.  */
5213 _ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h.  */
5217
5218 int
5219 main ()
5220 {
5221
5222   ;
5223   return 0;
5224 }
5225 _ACEOF
5226 rm -f conftest.$ac_objext
5227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5228   (eval $ac_compile) 2>conftest.er1
5229   ac_status=$?
5230   grep -v '^ *+' conftest.er1 >conftest.err
5231   rm -f conftest.er1
5232   cat conftest.err >&5
5233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234   (exit $ac_status); } &&
5235          { ac_try='test -z "$ac_c_werror_flag"
5236                          || test ! -s conftest.err'
5237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238   (eval $ac_try) 2>&5
5239   ac_status=$?
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); }; } &&
5242          { ac_try='test -s conftest.$ac_objext'
5243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244   (eval $ac_try) 2>&5
5245   ac_status=$?
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); }; }; then
5248         case $host_os in
5249       hpux9* | hpux10* | hpux11*)
5250         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5251         # they create non-PIC objects.  So, if there were any warnings, we
5252         # assume that PIC is not supported.
5253         if test -s conftest.err; then
5254           lt_cv_prog_cc_pic_works=no
5255         else
5256           lt_cv_prog_cc_pic_works=yes
5257         fi
5258         ;;
5259       *)
5260         lt_cv_prog_cc_pic_works=yes
5261         ;;
5262       esac
5263
5264 else
5265   echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5267
5268       lt_cv_prog_cc_pic_works=no
5269
5270 fi
5271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5272     CFLAGS="$save_CFLAGS"
5273
5274 fi
5275
5276
5277   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5278     lt_cv_prog_cc_pic=
5279     lt_cv_prog_cc_can_build_shared=no
5280   else
5281     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5282   fi
5283
5284   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5285 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5286 fi
5287
5288 # Check for any special shared library compilation flags.
5289 if test -n "$lt_cv_prog_cc_shlib"; then
5290   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5291 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5292   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5293   else
5294    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5295 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5296     lt_cv_prog_cc_can_build_shared=no
5297   fi
5298 fi
5299
5300 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5301 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5302 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5303   echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305     lt_cv_prog_cc_static_works=no
5306   save_LDFLAGS="$LDFLAGS"
5307   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5308   cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h.  */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h.  */
5314
5315 int
5316 main ()
5317 {
5318
5319   ;
5320   return 0;
5321 }
5322 _ACEOF
5323 rm -f conftest.$ac_objext conftest$ac_exeext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5325   (eval $ac_link) 2>conftest.er1
5326   ac_status=$?
5327   grep -v '^ *+' conftest.er1 >conftest.err
5328   rm -f conftest.er1
5329   cat conftest.err >&5
5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331   (exit $ac_status); } &&
5332          { ac_try='test -z "$ac_c_werror_flag"
5333                          || test ! -s conftest.err'
5334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335   (eval $ac_try) 2>&5
5336   ac_status=$?
5337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338   (exit $ac_status); }; } &&
5339          { ac_try='test -s conftest$ac_exeext'
5340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341   (eval $ac_try) 2>&5
5342   ac_status=$?
5343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344   (exit $ac_status); }; }; then
5345   lt_cv_prog_cc_static_works=yes
5346 else
5347   echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5349
5350 fi
5351 rm -f conftest.err conftest.$ac_objext \
5352       conftest$ac_exeext conftest.$ac_ext
5353   LDFLAGS="$save_LDFLAGS"
5354
5355 fi
5356
5357
5358 # Belt *and* braces to stop my trousers falling down:
5359 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5360 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5361 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5362
5363 pic_flag="$lt_cv_prog_cc_pic"
5364 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5365 wl="$lt_cv_prog_cc_wl"
5366 link_static_flag="$lt_cv_prog_cc_static"
5367 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5368 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5369
5370
5371 # Check to see if options -o and -c are simultaneously supported by compiler
5372 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5373 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5374 if test "${lt_cv_compiler_c_o+set}" = set; then
5375   echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377
5378 $rm -r conftest 2>/dev/null
5379 mkdir conftest
5380 cd conftest
5381 echo "int some_variable = 0;" > conftest.$ac_ext
5382 mkdir out
5383 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5384 # that will create temporary files in the current directory regardless of
5385 # the output directory.  Thus, making CWD read-only will cause this test
5386 # to fail, enabling locking or at least warning the user not to do parallel
5387 # builds.
5388 chmod -w .
5389 save_CFLAGS="$CFLAGS"
5390 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5391 compiler_c_o=no
5392 if { (eval echo configure:5392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5393   # The compiler can only warn and ignore the option if not recognized
5394   # So say no if there are warnings
5395   if test -s out/conftest.err; then
5396     lt_cv_compiler_c_o=no
5397   else
5398     lt_cv_compiler_c_o=yes
5399   fi
5400 else
5401   # Append any errors to the config.log.
5402   cat out/conftest.err 1>&5
5403   lt_cv_compiler_c_o=no
5404 fi
5405 CFLAGS="$save_CFLAGS"
5406 chmod u+w .
5407 $rm conftest* out/*
5408 rmdir out
5409 cd ..
5410 rmdir conftest
5411 $rm -r conftest 2>/dev/null
5412
5413 fi
5414
5415 compiler_c_o=$lt_cv_compiler_c_o
5416 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5417 echo "${ECHO_T}$compiler_c_o" >&6
5418
5419 if test x"$compiler_c_o" = x"yes"; then
5420   # Check to see if we can write to a .lo
5421   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5422 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5423   if test "${lt_cv_compiler_o_lo+set}" = set; then
5424   echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426
5427   lt_cv_compiler_o_lo=no
5428   save_CFLAGS="$CFLAGS"
5429   CFLAGS="$CFLAGS -c -o conftest.lo"
5430   save_objext="$ac_objext"
5431   ac_objext=lo
5432   cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h.  */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h.  */
5438
5439 int
5440 main ()
5441 {
5442 int some_variable = 0;
5443   ;
5444   return 0;
5445 }
5446 _ACEOF
5447 rm -f conftest.$ac_objext
5448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5449   (eval $ac_compile) 2>conftest.er1
5450   ac_status=$?
5451   grep -v '^ *+' conftest.er1 >conftest.err
5452   rm -f conftest.er1
5453   cat conftest.err >&5
5454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455   (exit $ac_status); } &&
5456          { ac_try='test -z "$ac_c_werror_flag"
5457                          || test ! -s conftest.err'
5458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459   (eval $ac_try) 2>&5
5460   ac_status=$?
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); }; } &&
5463          { ac_try='test -s conftest.$ac_objext'
5464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465   (eval $ac_try) 2>&5
5466   ac_status=$?
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); }; }; then
5469       # The compiler can only warn and ignore the option if not recognized
5470     # So say no if there are warnings
5471     if test -s conftest.err; then
5472       lt_cv_compiler_o_lo=no
5473     else
5474       lt_cv_compiler_o_lo=yes
5475     fi
5476
5477 else
5478   echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5480
5481 fi
5482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5483   ac_objext="$save_objext"
5484   CFLAGS="$save_CFLAGS"
5485
5486 fi
5487
5488   compiler_o_lo=$lt_cv_compiler_o_lo
5489   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5490 echo "${ECHO_T}$compiler_o_lo" >&6
5491 else
5492   compiler_o_lo=no
5493 fi
5494
5495 # Check to see if we can do hard links to lock some files if needed
5496 hard_links="nottested"
5497 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5498   # do not overwrite the value of need_locks provided by the user
5499   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5500 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5501   hard_links=yes
5502   $rm conftest*
5503   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5504   touch conftest.a
5505   ln conftest.a conftest.b 2>&5 || hard_links=no
5506   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5507   echo "$as_me:$LINENO: result: $hard_links" >&5
5508 echo "${ECHO_T}$hard_links" >&6
5509   if test "$hard_links" = no; then
5510     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5511 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5512     need_locks=warn
5513   fi
5514 else
5515   need_locks=no
5516 fi
5517
5518 if test "$GCC" = yes; then
5519   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5520   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5521 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5522   echo "int some_variable = 0;" > conftest.$ac_ext
5523   save_CFLAGS="$CFLAGS"
5524   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5525   compiler_rtti_exceptions=no
5526   cat >conftest.$ac_ext <<_ACEOF
5527 /* confdefs.h.  */
5528 _ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h.  */
5532
5533 int
5534 main ()
5535 {
5536 int some_variable = 0;
5537   ;
5538   return 0;
5539 }
5540 _ACEOF
5541 rm -f conftest.$ac_objext
5542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5543   (eval $ac_compile) 2>conftest.er1
5544   ac_status=$?
5545   grep -v '^ *+' conftest.er1 >conftest.err
5546   rm -f conftest.er1
5547   cat conftest.err >&5
5548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549   (exit $ac_status); } &&
5550          { ac_try='test -z "$ac_c_werror_flag"
5551                          || test ! -s conftest.err'
5552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553   (eval $ac_try) 2>&5
5554   ac_status=$?
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); }; } &&
5557          { ac_try='test -s conftest.$ac_objext'
5558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559   (eval $ac_try) 2>&5
5560   ac_status=$?
5561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562   (exit $ac_status); }; }; then
5563       # The compiler can only warn and ignore the option if not recognized
5564     # So say no if there are warnings
5565     if test -s conftest.err; then
5566       compiler_rtti_exceptions=no
5567     else
5568       compiler_rtti_exceptions=yes
5569     fi
5570
5571 else
5572   echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5574
5575 fi
5576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5577   CFLAGS="$save_CFLAGS"
5578   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5579 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5580
5581   if test "$compiler_rtti_exceptions" = "yes"; then
5582     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5583   else
5584     no_builtin_flag=' -fno-builtin'
5585   fi
5586 fi
5587
5588 # See if the linker supports building shared libraries.
5589 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5590 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5591
5592 allow_undefined_flag=
5593 no_undefined_flag=
5594 need_lib_prefix=unknown
5595 need_version=unknown
5596 # when you set need_version to no, make sure it does not cause -set_version
5597 # flags to be left without arguments
5598 archive_cmds=
5599 archive_expsym_cmds=
5600 old_archive_from_new_cmds=
5601 old_archive_from_expsyms_cmds=
5602 export_dynamic_flag_spec=
5603 whole_archive_flag_spec=
5604 thread_safe_flag_spec=
5605 hardcode_into_libs=no
5606 hardcode_libdir_flag_spec=
5607 hardcode_libdir_separator=
5608 hardcode_direct=no
5609 hardcode_minus_L=no
5610 hardcode_shlibpath_var=unsupported
5611 runpath_var=
5612 link_all_deplibs=unknown
5613 always_export_symbols=no
5614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5615 # include_expsyms should be a list of space-separated symbols to be *always*
5616 # included in the symbol list
5617 include_expsyms=
5618 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5619 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5620 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5621 # as well as any symbol that contains `d'.
5622 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5623 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5624 # platforms (ab)use it in PIC code, but their linkers get confused if
5625 # the symbol is explicitly referenced.  Since portable code cannot
5626 # rely on this symbol name, it's probably fine to never include it in
5627 # preloaded symbol tables.
5628 extract_expsyms_cmds=
5629
5630 case $host_os in
5631 cygwin* | mingw* | pw32*)
5632   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5633   # When not using gcc, we currently assume that we are using
5634   # Microsoft Visual C++.
5635   if test "$GCC" != yes; then
5636     with_gnu_ld=no
5637   fi
5638   ;;
5639 openbsd*)
5640   with_gnu_ld=no
5641   ;;
5642 esac
5643
5644 ld_shlibs=yes
5645 if test "$with_gnu_ld" = yes; then
5646   # If archive_cmds runs LD, not CC, wlarc should be empty
5647   wlarc='${wl}'
5648
5649   # See if GNU ld supports shared libraries.
5650   case $host_os in
5651   aix3* | aix4* | aix5*)
5652     # On AIX, the GNU linker is very broken
5653     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5654     ld_shlibs=no
5655     cat <<EOF 1>&2
5656
5657 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5658 *** to be unable to reliably create shared libraries on AIX.
5659 *** Therefore, libtool is disabling shared libraries support.  If you
5660 *** really care for shared libraries, you may want to modify your PATH
5661 *** so that a non-GNU linker is found, and then restart.
5662
5663 EOF
5664     ;;
5665
5666   amigaos*)
5667     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)'
5668     hardcode_libdir_flag_spec='-L$libdir'
5669     hardcode_minus_L=yes
5670
5671     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5672     # that the semantics of dynamic libraries on AmigaOS, at least up
5673     # to version 4, is to share data among multiple programs linked
5674     # with the same dynamic library.  Since this doesn't match the
5675     # behavior of shared libraries on other platforms, we can use
5676     # them.
5677     ld_shlibs=no
5678     ;;
5679
5680   beos*)
5681     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5682       allow_undefined_flag=unsupported
5683       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5684       # support --undefined.  This deserves some investigation.  FIXME
5685       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5686     else
5687       ld_shlibs=no
5688     fi
5689     ;;
5690
5691   cygwin* | mingw* | pw32*)
5692     # hardcode_libdir_flag_spec is actually meaningless, as there is
5693     # no search path for DLLs.
5694     hardcode_libdir_flag_spec='-L$libdir'
5695     allow_undefined_flag=unsupported
5696     always_export_symbols=yes
5697
5698     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5699       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5700       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5701       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5702       else $CC -o impgen impgen.c ; fi)~
5703       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5704
5705     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5706
5707     # cygwin and mingw dlls have different entry points and sets of symbols
5708     # to exclude.
5709     # FIXME: what about values for MSVC?
5710     dll_entry=__cygwin_dll_entry@12
5711     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5712     case $host_os in
5713     mingw*)
5714       # mingw values
5715       dll_entry=_DllMainCRTStartup@12
5716       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5717       ;;
5718     esac
5719
5720     # mingw and cygwin differ, and it's simplest to just exclude the union
5721     # of the two symbol sets.
5722     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5723
5724     # recent cygwin and mingw systems supply a stub DllMain which the user
5725     # can override, but on older systems we have to supply one (in ltdll.c)
5726     if test "x$lt_cv_need_dllmain" = "xyes"; then
5727       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5728       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~
5729         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5730     else
5731       ltdll_obj=
5732       ltdll_cmds=
5733     fi
5734
5735     # Extract the symbol export list from an `--export-all' def file,
5736     # then regenerate the def file from the symbol export list, so that
5737     # the compiled dll only exports the symbol export list.
5738     # Be careful not to strip the DATA tag left be newer dlltools.
5739     export_symbols_cmds="$ltdll_cmds"'
5740       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5741       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5742
5743     # If the export-symbols file already is a .def file (1st line
5744     # is EXPORTS), use it as is.
5745     # If DATA tags from a recent dlltool are present, honour them!
5746     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5747         cp $export_symbols $output_objdir/$soname-def;
5748       else
5749         echo EXPORTS > $output_objdir/$soname-def;
5750         _lt_hint=1;
5751         cat $export_symbols | while read symbol; do
5752          set dummy \$symbol;
5753          case \$# in
5754            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5755            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5756            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5757          esac;
5758          _lt_hint=`expr 1 + \$_lt_hint`;
5759         done;
5760       fi~
5761       '"$ltdll_cmds"'
5762       $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~
5763       $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~
5764       $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~
5765       $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~
5766       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5767     ;;
5768
5769   netbsd*)
5770     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5771       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5772       wlarc=
5773     else
5774       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5775       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5776     fi
5777     ;;
5778
5779   solaris* | sysv5*)
5780     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5781       ld_shlibs=no
5782       cat <<EOF 1>&2
5783
5784 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5785 *** create shared libraries on Solaris systems.  Therefore, libtool
5786 *** is disabling shared libraries support.  We urge you to upgrade GNU
5787 *** binutils to release 2.9.1 or newer.  Another option is to modify
5788 *** your PATH or compiler configuration so that the native linker is
5789 *** used, and then restart.
5790
5791 EOF
5792     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5793       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5794       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5795     else
5796       ld_shlibs=no
5797     fi
5798     ;;
5799
5800   sunos4*)
5801     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5802     wlarc=
5803     hardcode_direct=yes
5804     hardcode_shlibpath_var=no
5805     ;;
5806
5807   linux*)
5808     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5809       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5810       supports_anon_versioning=no
5811       case `$LD -v 2>/dev/null` in
5812         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5813         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5814         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5815         *\ 2.11.*) ;; # other 2.11 versions
5816         *) supports_anon_versioning=yes ;;
5817       esac
5818       if test $supports_anon_versioning = yes; then
5819         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5820 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5821 $echo "local: *; };" >> $output_objdir/$libname.ver~
5822         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5823       else
5824         $archive_expsym_cmds="$archive_cmds"
5825       fi
5826     else
5827       ld_shlibs=no
5828     fi
5829     ;;
5830
5831   *)
5832     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5833       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5834       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5835     else
5836       ld_shlibs=no
5837     fi
5838     ;;
5839   esac
5840
5841   if test "$ld_shlibs" = yes; then
5842     runpath_var=LD_RUN_PATH
5843     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5844     export_dynamic_flag_spec='${wl}--export-dynamic'
5845     case $host_os in
5846     cygwin* | mingw* | pw32*)
5847       # dlltool doesn't understand --whole-archive et. al.
5848       whole_archive_flag_spec=
5849       ;;
5850     *)
5851       # ancient GNU ld didn't support --whole-archive et. al.
5852       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5853         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5854       else
5855         whole_archive_flag_spec=
5856       fi
5857       ;;
5858     esac
5859   fi
5860 else
5861   # PORTME fill in a description of your system's linker (not GNU ld)
5862   case $host_os in
5863   aix3*)
5864     allow_undefined_flag=unsupported
5865     always_export_symbols=yes
5866     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'
5867     # Note: this linker hardcodes the directories in LIBPATH if there
5868     # are no directories specified by -L.
5869     hardcode_minus_L=yes
5870     if test "$GCC" = yes && test -z "$link_static_flag"; then
5871       # Neither direct hardcoding nor static linking is supported with a
5872       # broken collect2.
5873       hardcode_direct=unsupported
5874     fi
5875     ;;
5876
5877   aix4* | aix5*)
5878     if test "$host_cpu" = ia64; then
5879       # On IA64, the linker does run time linking by default, so we don't
5880       # have to do anything special.
5881       aix_use_runtimelinking=no
5882       exp_sym_flag='-Bexport'
5883       no_entry_flag=""
5884     else
5885       aix_use_runtimelinking=no
5886
5887       # Test if we are trying to use run time linking or normal
5888       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5889       # need to do runtime linking.
5890       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5891         for ld_flag in $LDFLAGS; do
5892           case $ld_flag in
5893           *-brtl*)
5894             aix_use_runtimelinking=yes
5895             break
5896           ;;
5897           esac
5898         done
5899       esac
5900
5901       exp_sym_flag='-bexport'
5902       no_entry_flag='-bnoentry'
5903     fi
5904
5905     # When large executables or shared objects are built, AIX ld can
5906     # have problems creating the table of contents.  If linking a library
5907     # or program results in "error TOC overflow" add -mminimal-toc to
5908     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5909     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5910
5911     hardcode_direct=yes
5912     archive_cmds=''
5913     hardcode_libdir_separator=':'
5914     if test "$GCC" = yes; then
5915       case $host_os in aix4.[012]|aix4.[012].*)
5916         collect2name=`${CC} -print-prog-name=collect2`
5917         if test -f "$collect2name" && \
5918           strings "$collect2name" | grep resolve_lib_name >/dev/null
5919         then
5920           # We have reworked collect2
5921           hardcode_direct=yes
5922         else
5923           # We have old collect2
5924           hardcode_direct=unsupported
5925           # It fails to find uninstalled libraries when the uninstalled
5926           # path is not listed in the libpath.  Setting hardcode_minus_L
5927           # to unsupported forces relinking
5928           hardcode_minus_L=yes
5929           hardcode_libdir_flag_spec='-L$libdir'
5930           hardcode_libdir_separator=
5931         fi
5932       esac
5933
5934       shared_flag='-shared'
5935     else
5936       # not using gcc
5937       if test "$host_cpu" = ia64; then
5938         shared_flag='${wl}-G'
5939       else
5940         if test "$aix_use_runtimelinking" = yes; then
5941           shared_flag='${wl}-G'
5942         else
5943           shared_flag='${wl}-bM:SRE'
5944         fi
5945       fi
5946     fi
5947
5948     # It seems that -bexpall can do strange things, so it is better to
5949     # generate a list of symbols to export.
5950     always_export_symbols=yes
5951     if test "$aix_use_runtimelinking" = yes; then
5952       # Warning - without using the other runtime loading flags (-brtl),
5953       # -berok will link without error, but may produce a broken library.
5954       allow_undefined_flag='-berok'
5955       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5956       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"
5957     else
5958       if test "$host_cpu" = ia64; then
5959         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5960         allow_undefined_flag="-z nodefs"
5961         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"
5962       else
5963         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5964         # Warning - without using the other run time loading flags,
5965         # -berok will link without error, but may produce a broken library.
5966         allow_undefined_flag='${wl}-berok'
5967         # This is a bit strange, but is similar to how AIX traditionally builds
5968         # it's shared libraries.
5969         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'
5970       fi
5971     fi
5972     ;;
5973
5974   amigaos*)
5975     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)'
5976     hardcode_libdir_flag_spec='-L$libdir'
5977     hardcode_minus_L=yes
5978     # see comment about different semantics on the GNU ld section
5979     ld_shlibs=no
5980     ;;
5981
5982   cygwin* | mingw* | pw32*)
5983     # When not using gcc, we currently assume that we are using
5984     # Microsoft Visual C++.
5985     # hardcode_libdir_flag_spec is actually meaningless, as there is
5986     # no search path for DLLs.
5987     hardcode_libdir_flag_spec=' '
5988     allow_undefined_flag=unsupported
5989     # Tell ltmain to make .lib files, not .a files.
5990     libext=lib
5991     # FIXME: Setting linknames here is a bad hack.
5992     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5993     # The linker will automatically build a .lib file if we build a DLL.
5994     old_archive_from_new_cmds='true'
5995     # FIXME: Should let the user specify the lib program.
5996     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5997     fix_srcfile_path='`cygpath -w "$srcfile"`'
5998     ;;
5999
6000   darwin* | rhapsody*)
6001     case "$host_os" in
6002     rhapsody* | darwin1.[012])
6003       allow_undefined_flag='-undefined suppress'
6004       ;;
6005     *) # Darwin 1.3 on
6006       allow_undefined_flag='-flat_namespace -undefined suppress'
6007       ;;
6008     esac
6009     # FIXME: Relying on posixy $() will cause problems for
6010     #        cross-compilation, but unfortunately the echo tests do not
6011     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6012     #        `"' quotes if we put them in here... so don't!
6013     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)'
6014     # We need to add '_' to the symbols in $export_symbols first
6015     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6016     hardcode_direct=yes
6017     hardcode_shlibpath_var=no
6018     whole_archive_flag_spec='-all_load $convenience'
6019     ;;
6020
6021   freebsd1*)
6022     ld_shlibs=no
6023     ;;
6024
6025   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6026   # support.  Future versions do this automatically, but an explicit c++rt0.o
6027   # does not break anything, and helps significantly (at the cost of a little
6028   # extra space).
6029   freebsd2.2*)
6030     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6031     hardcode_libdir_flag_spec='-R$libdir'
6032     hardcode_direct=yes
6033     hardcode_shlibpath_var=no
6034     ;;
6035
6036   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6037   freebsd2*)
6038     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6039     hardcode_direct=yes
6040     hardcode_minus_L=yes
6041     hardcode_shlibpath_var=no
6042     ;;
6043
6044   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6045   freebsd*)
6046     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6047     hardcode_libdir_flag_spec='-R$libdir'
6048     hardcode_direct=yes
6049     hardcode_shlibpath_var=no
6050     ;;
6051
6052   hpux9* | hpux10* | hpux11*)
6053     case $host_os in
6054     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' ;;
6055     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6056     esac
6057     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6058     hardcode_libdir_separator=:
6059     hardcode_direct=yes
6060     hardcode_minus_L=yes # Not in the search PATH, but as the default
6061                          # location of the library.
6062     export_dynamic_flag_spec='${wl}-E'
6063     ;;
6064
6065   irix5* | irix6* | nonstopux*)
6066     if test "$GCC" = yes; then
6067       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'
6068       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6069     else
6070       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'
6071       hardcode_libdir_flag_spec='-rpath $libdir'
6072     fi
6073     hardcode_libdir_separator=:
6074     link_all_deplibs=yes
6075     ;;
6076
6077   netbsd*)
6078     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6079       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6080     else
6081       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6082     fi
6083     hardcode_libdir_flag_spec='-R$libdir'
6084     hardcode_direct=yes
6085     hardcode_shlibpath_var=no
6086     ;;
6087
6088   newsos6)
6089     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6090     hardcode_direct=yes
6091     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6092     hardcode_libdir_separator=:
6093     hardcode_shlibpath_var=no
6094     ;;
6095
6096   openbsd*)
6097     hardcode_direct=yes
6098     hardcode_shlibpath_var=no
6099     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6100       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6101       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6102       export_dynamic_flag_spec='${wl}-E'
6103     else
6104       case "$host_os" in
6105       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6106         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6107         hardcode_libdir_flag_spec='-R$libdir'
6108         ;;
6109       *)
6110         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6111         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6112         ;;
6113       esac
6114     fi
6115     ;;
6116
6117   os2*)
6118     hardcode_libdir_flag_spec='-L$libdir'
6119     hardcode_minus_L=yes
6120     allow_undefined_flag=unsupported
6121     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'
6122     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6123     ;;
6124
6125   osf3*)
6126     if test "$GCC" = yes; then
6127       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6128       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'
6129     else
6130       allow_undefined_flag=' -expect_unresolved \*'
6131       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'
6132     fi
6133     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6134     hardcode_libdir_separator=:
6135     ;;
6136
6137   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6138     if test "$GCC" = yes; then
6139       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6140       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'
6141       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6142     else
6143       allow_undefined_flag=' -expect_unresolved \*'
6144       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'
6145       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6146       $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'
6147
6148       #Both c and cxx compiler support -rpath directly
6149       hardcode_libdir_flag_spec='-rpath $libdir'
6150     fi
6151     hardcode_libdir_separator=:
6152     ;;
6153
6154   sco3.2v5*)
6155     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6156     hardcode_shlibpath_var=no
6157     runpath_var=LD_RUN_PATH
6158     hardcode_runpath_var=yes
6159     export_dynamic_flag_spec='${wl}-Bexport'
6160     ;;
6161
6162   solaris*)
6163     # gcc --version < 3.0 without binutils cannot create self contained
6164     # shared libraries reliably, requiring libgcc.a to resolve some of
6165     # the object symbols generated in some cases.  Libraries that use
6166     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6167     # a copy of libgcc.a into every shared library to guarantee resolving
6168     # such symbols causes other problems:  According to Tim Van Holder
6169     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6170     # (to the application) exception stack for one thing.
6171     no_undefined_flag=' -z defs'
6172     if test "$GCC" = yes; then
6173       case `$CC --version 2>/dev/null` in
6174       [12].*)
6175         cat <<EOF 1>&2
6176
6177 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6178 *** create self contained shared libraries on Solaris systems, without
6179 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6180 *** -no-undefined support, which will at least allow you to build shared
6181 *** libraries.  However, you may find that when you link such libraries
6182 *** into an application without using GCC, you have to manually add
6183 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6184 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6185 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6186
6187 EOF
6188         no_undefined_flag=
6189         ;;
6190       esac
6191     fi
6192     # $CC -shared without GNU ld will not create a library from C++
6193     # object files and a static libstdc++, better avoid it by now
6194     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6195     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6196                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6197     hardcode_libdir_flag_spec='-R$libdir'
6198     hardcode_shlibpath_var=no
6199     case $host_os in
6200     solaris2.[0-5] | solaris2.[0-5].*) ;;
6201     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6202       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6203     esac
6204     link_all_deplibs=yes
6205     ;;
6206
6207   sunos4*)
6208     if test "x$host_vendor" = xsequent; then
6209       # Use $CC to link under sequent, because it throws in some extra .o
6210       # files that make .init and .fini sections work.
6211       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6212     else
6213       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6214     fi
6215     hardcode_libdir_flag_spec='-L$libdir'
6216     hardcode_direct=yes
6217     hardcode_minus_L=yes
6218     hardcode_shlibpath_var=no
6219     ;;
6220
6221   sysv4)
6222     case $host_vendor in
6223       sni)
6224         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6225         hardcode_direct=yes # is this really true???
6226         ;;
6227       siemens)
6228         ## LD is ld it makes a PLAMLIB
6229         ## CC just makes a GrossModule.
6230         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6231         reload_cmds='$CC -r -o $output$reload_objs'
6232         hardcode_direct=no
6233         ;;
6234       motorola)
6235         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6236         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6237         ;;
6238     esac
6239     runpath_var='LD_RUN_PATH'
6240     hardcode_shlibpath_var=no
6241     ;;
6242
6243   sysv4.3*)
6244     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6245     hardcode_shlibpath_var=no
6246     export_dynamic_flag_spec='-Bexport'
6247     ;;
6248
6249   sysv5*)
6250     no_undefined_flag=' -z text'
6251     # $CC -shared without GNU ld will not create a library from C++
6252     # object files and a static libstdc++, better avoid it by now
6253     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6254     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6255                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6256     hardcode_libdir_flag_spec=
6257     hardcode_shlibpath_var=no
6258     runpath_var='LD_RUN_PATH'
6259     ;;
6260
6261   uts4*)
6262     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6263     hardcode_libdir_flag_spec='-L$libdir'
6264     hardcode_shlibpath_var=no
6265     ;;
6266
6267   dgux*)
6268     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6269     hardcode_libdir_flag_spec='-L$libdir'
6270     hardcode_shlibpath_var=no
6271     ;;
6272
6273   sysv4*MP*)
6274     if test -d /usr/nec; then
6275       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6276       hardcode_shlibpath_var=no
6277       runpath_var=LD_RUN_PATH
6278       hardcode_runpath_var=yes
6279       ld_shlibs=yes
6280     fi
6281     ;;
6282
6283   sysv4.2uw2*)
6284     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6285     hardcode_direct=yes
6286     hardcode_minus_L=no
6287     hardcode_shlibpath_var=no
6288     hardcode_runpath_var=yes
6289     runpath_var=LD_RUN_PATH
6290     ;;
6291
6292   sysv5uw7* | unixware7*)
6293     no_undefined_flag='${wl}-z ${wl}text'
6294     if test "$GCC" = yes; then
6295       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6296     else
6297       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6298     fi
6299     runpath_var='LD_RUN_PATH'
6300     hardcode_shlibpath_var=no
6301     ;;
6302
6303   *)
6304     ld_shlibs=no
6305     ;;
6306   esac
6307 fi
6308 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6309 echo "${ECHO_T}$ld_shlibs" >&6
6310 test "$ld_shlibs" = no && can_build_shared=no
6311
6312 # Check hardcoding attributes.
6313 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6314 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6315 hardcode_action=
6316 if test -n "$hardcode_libdir_flag_spec" || \
6317    test -n "$runpath_var"; then
6318
6319   # We can hardcode non-existant directories.
6320   if test "$hardcode_direct" != no &&
6321      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6322      # have to relink, otherwise we might link with an installed library
6323      # when we should be linking with a yet-to-be-installed one
6324      ## test "$hardcode_shlibpath_var" != no &&
6325      test "$hardcode_minus_L" != no; then
6326     # Linking always hardcodes the temporary library directory.
6327     hardcode_action=relink
6328   else
6329     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6330     hardcode_action=immediate
6331   fi
6332 else
6333   # We cannot hardcode anything, or else we can only hardcode existing
6334   # directories.
6335   hardcode_action=unsupported
6336 fi
6337 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6338 echo "${ECHO_T}$hardcode_action" >&6
6339
6340 striplib=
6341 old_striplib=
6342 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6343 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6344 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6345   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6346   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6347   echo "$as_me:$LINENO: result: yes" >&5
6348 echo "${ECHO_T}yes" >&6
6349 else
6350   echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6
6352 fi
6353
6354 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6355 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6356
6357 # PORTME Fill in your ld.so characteristics
6358 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6359 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6360 library_names_spec=
6361 libname_spec='lib$name'
6362 soname_spec=
6363 postinstall_cmds=
6364 postuninstall_cmds=
6365 finish_cmds=
6366 finish_eval=
6367 shlibpath_var=
6368 shlibpath_overrides_runpath=unknown
6369 version_type=none
6370 dynamic_linker="$host_os ld.so"
6371 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6372 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6373
6374 case $host_os in
6375 aix3*)
6376   version_type=linux
6377   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6378   shlibpath_var=LIBPATH
6379
6380   # AIX has no versioning support, so we append a major version to the name.
6381   soname_spec='${libname}${release}.so$major'
6382   ;;
6383
6384 aix4* | aix5*)
6385   version_type=linux
6386   need_lib_prefix=no
6387   need_version=no
6388   hardcode_into_libs=yes
6389   if test "$host_cpu" = ia64; then
6390     # AIX 5 supports IA64
6391     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6392     shlibpath_var=LD_LIBRARY_PATH
6393   else
6394     # With GCC up to 2.95.x, collect2 would create an import file
6395     # for dependence libraries.  The import file would start with
6396     # the line `#! .'.  This would cause the generated library to
6397     # depend on `.', always an invalid library.  This was fixed in
6398     # development snapshots of GCC prior to 3.0.
6399     case $host_os in
6400       aix4 | aix4.[01] | aix4.[01].*)
6401         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6402              echo ' yes '
6403              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6404           :
6405         else
6406           can_build_shared=no
6407         fi
6408         ;;
6409     esac
6410     # AIX (on Power*) has no versioning support, so currently we can
6411     # not hardcode correct soname into executable. Probably we can
6412     # add versioning support to collect2, so additional links can
6413     # be useful in future.
6414     if test "$aix_use_runtimelinking" = yes; then
6415       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6416       # instead of lib<name>.a to let people know that these are not
6417       # typical AIX shared libraries.
6418       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6419     else
6420       # We preserve .a as extension for shared libraries through AIX4.2
6421       # and later when we are not doing run time linking.
6422       library_names_spec='${libname}${release}.a $libname.a'
6423       soname_spec='${libname}${release}.so$major'
6424     fi
6425     shlibpath_var=LIBPATH
6426   fi
6427   hardcode_into_libs=yes
6428   ;;
6429
6430 amigaos*)
6431   library_names_spec='$libname.ixlibrary $libname.a'
6432   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6433   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'
6434   ;;
6435
6436 beos*)
6437   library_names_spec='${libname}.so'
6438   dynamic_linker="$host_os ld.so"
6439   shlibpath_var=LIBRARY_PATH
6440   ;;
6441
6442 bsdi4*)
6443   version_type=linux
6444   need_version=no
6445   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6446   soname_spec='${libname}${release}.so$major'
6447   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6448   shlibpath_var=LD_LIBRARY_PATH
6449   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6450   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6451   export_dynamic_flag_spec=-rdynamic
6452   # the default ld.so.conf also contains /usr/contrib/lib and
6453   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6454   # libtool to hard-code these into programs
6455   ;;
6456
6457 cygwin* | mingw* | pw32*)
6458   version_type=windows
6459   need_version=no
6460   need_lib_prefix=no
6461   case $GCC,$host_os in
6462   yes,cygwin*)
6463     library_names_spec='$libname.dll.a'
6464     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6465     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6466       dldir=$destdir/`dirname \$dlpath`~
6467       test -d \$dldir || mkdir -p \$dldir~
6468       $install_prog .libs/$dlname \$dldir/$dlname'
6469     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6470       dlpath=$dir/\$dldll~
6471        $rm \$dlpath'
6472     ;;
6473   yes,mingw*)
6474     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6475     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6476     ;;
6477   yes,pw32*)
6478     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6479     ;;
6480   *)
6481     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6482     ;;
6483   esac
6484   dynamic_linker='Win32 ld.exe'
6485   # FIXME: first we should search . and the directory the executable is in
6486   shlibpath_var=PATH
6487   ;;
6488
6489 darwin* | rhapsody*)
6490   dynamic_linker="$host_os dyld"
6491   version_type=darwin
6492   need_lib_prefix=no
6493   need_version=no
6494   # FIXME: Relying on posixy $() will cause problems for
6495   #        cross-compilation, but unfortunately the echo tests do not
6496   #        yet detect zsh echo's removal of \ escapes.
6497   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)'
6498   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6499   shlibpath_overrides_runpath=yes
6500   shlibpath_var=DYLD_LIBRARY_PATH
6501   ;;
6502
6503 freebsd1*)
6504   dynamic_linker=no
6505   ;;
6506
6507 freebsd*)
6508   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6509   version_type=freebsd-$objformat
6510   case $version_type in
6511     freebsd-elf*)
6512       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6513       need_version=no
6514       need_lib_prefix=no
6515       ;;
6516     freebsd-*)
6517       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6518       need_version=yes
6519       ;;
6520   esac
6521   shlibpath_var=LD_LIBRARY_PATH
6522   case $host_os in
6523   freebsd2*)
6524     shlibpath_overrides_runpath=yes
6525     ;;
6526   *)
6527     shlibpath_overrides_runpath=no
6528     hardcode_into_libs=yes
6529     ;;
6530   esac
6531   ;;
6532
6533 gnu*)
6534   version_type=linux
6535   need_lib_prefix=no
6536   need_version=no
6537   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6538   soname_spec='${libname}${release}.so$major'
6539   shlibpath_var=LD_LIBRARY_PATH
6540   hardcode_into_libs=yes
6541   ;;
6542
6543 hpux9* | hpux10* | hpux11*)
6544   # Give a soname corresponding to the major version so that dld.sl refuses to
6545   # link against other versions.
6546   dynamic_linker="$host_os dld.sl"
6547   version_type=sunos
6548   need_lib_prefix=no
6549   need_version=no
6550   shlibpath_var=SHLIB_PATH
6551   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6552   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6553   soname_spec='${libname}${release}.sl$major'
6554   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6555   postinstall_cmds='chmod 555 $lib'
6556   ;;
6557
6558 irix5* | irix6* | nonstopux*)
6559   case $host_os in
6560     nonstopux*) version_type=nonstopux ;;
6561     *)          version_type=irix ;;
6562   esac
6563   need_lib_prefix=no
6564   need_version=no
6565   soname_spec='${libname}${release}.so$major'
6566   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6567   case $host_os in
6568   irix5* | nonstopux*)
6569     libsuff= shlibsuff=
6570     ;;
6571   *)
6572     case $LD in # libtool.m4 will add one of these switches to LD
6573     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6574     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6575     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6576     *) libsuff= shlibsuff= libmagic=never-match;;
6577     esac
6578     ;;
6579   esac
6580   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6581   shlibpath_overrides_runpath=no
6582   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6583   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6584   ;;
6585
6586 # No shared lib support for Linux oldld, aout, or coff.
6587 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6588   dynamic_linker=no
6589   ;;
6590
6591 # This must be Linux ELF.
6592 linux-gnu*)
6593   version_type=linux
6594   need_lib_prefix=no
6595   need_version=no
6596   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6597   soname_spec='${libname}${release}.so$major'
6598   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6599   shlibpath_var=LD_LIBRARY_PATH
6600   shlibpath_overrides_runpath=no
6601   # This implies no fast_install, which is unacceptable.
6602   # Some rework will be needed to allow for fast_install
6603   # before this can be enabled.
6604   hardcode_into_libs=yes
6605
6606   case $host_cpu:$lt_cv_cc_64bit_output in
6607   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6608     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6609     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6610     ;;
6611   esac
6612
6613   # We used to test for /lib/ld.so.1 and disable shared libraries on
6614   # powerpc, because MkLinux only supported shared libraries with the
6615   # GNU dynamic linker.  Since this was broken with cross compilers,
6616   # most powerpc-linux boxes support dynamic linking these days and
6617   # people can always --disable-shared, the test was removed, and we
6618   # assume the GNU/Linux dynamic linker is in use.
6619   dynamic_linker='GNU/Linux ld.so'
6620
6621   # Find out which ABI we are using (multilib Linux x86_64 hack).
6622   libsuff=
6623   case "$host_cpu" in
6624   x86_64*)
6625     echo '#line 6625 "configure"' > conftest.$ac_ext
6626     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6627   (eval $ac_compile) 2>&5
6628   ac_status=$?
6629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630   (exit $ac_status); }; then
6631       case `/usr/bin/file conftest.$ac_objext` in
6632       *64-bit*)
6633         libsuff=64
6634         ;;
6635       esac
6636     fi
6637     rm -rf conftest*
6638     ;;
6639   *)
6640     ;;
6641   esac
6642   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6643   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6644   ;;
6645
6646 netbsd*)
6647   version_type=sunos
6648   need_lib_prefix=no
6649   need_version=no
6650   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6651     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6652     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6653     dynamic_linker='NetBSD (a.out) ld.so'
6654   else
6655     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6656     soname_spec='${libname}${release}.so$major'
6657     dynamic_linker='NetBSD ld.elf_so'
6658   fi
6659   shlibpath_var=LD_LIBRARY_PATH
6660   shlibpath_overrides_runpath=yes
6661   hardcode_into_libs=yes
6662   ;;
6663
6664 newsos6)
6665   version_type=linux
6666   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6667   shlibpath_var=LD_LIBRARY_PATH
6668   shlibpath_overrides_runpath=yes
6669   ;;
6670
6671 openbsd*)
6672   version_type=sunos
6673   need_lib_prefix=no
6674   need_version=no
6675   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6676     case "$host_os" in
6677     openbsd2.[89] | openbsd2.[89].*)
6678       shlibpath_overrides_runpath=no
6679       ;;
6680     *)
6681       shlibpath_overrides_runpath=yes
6682       ;;
6683     esac
6684   else
6685     shlibpath_overrides_runpath=yes
6686   fi
6687   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6688   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6689   shlibpath_var=LD_LIBRARY_PATH
6690   ;;
6691
6692 os2*)
6693   libname_spec='$name'
6694   need_lib_prefix=no
6695   library_names_spec='$libname.dll $libname.a'
6696   dynamic_linker='OS/2 ld.exe'
6697   shlibpath_var=LIBPATH
6698   ;;
6699
6700 osf3* | osf4* | osf5*)
6701   version_type=osf
6702   need_version=no
6703   soname_spec='${libname}${release}.so$major'
6704   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6705   shlibpath_var=LD_LIBRARY_PATH
6706   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6707   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6708   hardcode_into_libs=yes
6709   ;;
6710
6711 sco3.2v5*)
6712   version_type=osf
6713   soname_spec='${libname}${release}.so$major'
6714   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6715   shlibpath_var=LD_LIBRARY_PATH
6716   ;;
6717
6718 solaris*)
6719   version_type=linux
6720   need_lib_prefix=no
6721   need_version=no
6722   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6723   soname_spec='${libname}${release}.so$major'
6724   shlibpath_var=LD_LIBRARY_PATH
6725   shlibpath_overrides_runpath=yes
6726   hardcode_into_libs=yes
6727   # ldd complains unless libraries are executable
6728   postinstall_cmds='chmod +x $lib'
6729   ;;
6730
6731 sunos4*)
6732   version_type=sunos
6733   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6734   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6735   shlibpath_var=LD_LIBRARY_PATH
6736   shlibpath_overrides_runpath=yes
6737   if test "$with_gnu_ld" = yes; then
6738     need_lib_prefix=no
6739   fi
6740   need_version=yes
6741   ;;
6742
6743 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6744   version_type=linux
6745   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6746   soname_spec='${libname}${release}.so$major'
6747   shlibpath_var=LD_LIBRARY_PATH
6748   case $host_vendor in
6749     sni)
6750       shlibpath_overrides_runpath=no
6751       need_lib_prefix=no
6752       export_dynamic_flag_spec='${wl}-Blargedynsym'
6753       runpath_var=LD_RUN_PATH
6754       ;;
6755     siemens)
6756       need_lib_prefix=no
6757       ;;
6758     motorola)
6759       need_lib_prefix=no
6760       need_version=no
6761       shlibpath_overrides_runpath=no
6762       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6763       ;;
6764   esac
6765   ;;
6766
6767 uts4*)
6768   version_type=linux
6769   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6770   soname_spec='${libname}${release}.so$major'
6771   shlibpath_var=LD_LIBRARY_PATH
6772   ;;
6773
6774 dgux*)
6775   version_type=linux
6776   need_lib_prefix=no
6777   need_version=no
6778   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6779   soname_spec='${libname}${release}.so$major'
6780   shlibpath_var=LD_LIBRARY_PATH
6781   ;;
6782
6783 sysv4*MP*)
6784   if test -d /usr/nec ;then
6785     version_type=linux
6786     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6787     soname_spec='$libname.so.$major'
6788     shlibpath_var=LD_LIBRARY_PATH
6789   fi
6790   ;;
6791
6792 *)
6793   dynamic_linker=no
6794   ;;
6795 esac
6796 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6797 echo "${ECHO_T}$dynamic_linker" >&6
6798 test "$dynamic_linker" = no && can_build_shared=no
6799
6800 # Report the final consequences.
6801 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6802 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6803 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6804 echo "${ECHO_T}$can_build_shared" >&6
6805
6806 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6807 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6808 test "$can_build_shared" = "no" && enable_shared=no
6809
6810 # On AIX, shared libraries and static libraries use the same namespace, and
6811 # are all built from PIC.
6812 case "$host_os" in
6813 aix3*)
6814   test "$enable_shared" = yes && enable_static=no
6815   if test -n "$RANLIB"; then
6816     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6817     postinstall_cmds='$RANLIB $lib'
6818   fi
6819   ;;
6820
6821 aix4*)
6822   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6823     test "$enable_shared" = yes && enable_static=no
6824   fi
6825   ;;
6826 esac
6827 echo "$as_me:$LINENO: result: $enable_shared" >&5
6828 echo "${ECHO_T}$enable_shared" >&6
6829
6830 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6831 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6832 # Make sure either enable_shared or enable_static is yes.
6833 test "$enable_shared" = yes || enable_static=yes
6834 echo "$as_me:$LINENO: result: $enable_static" >&5
6835 echo "${ECHO_T}$enable_static" >&6
6836
6837 if test "$hardcode_action" = relink; then
6838   # Fast installation is not supported
6839   enable_fast_install=no
6840 elif test "$shlibpath_overrides_runpath" = yes ||
6841      test "$enable_shared" = no; then
6842   # Fast installation is not necessary
6843   enable_fast_install=needless
6844 fi
6845
6846 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6847 if test "$GCC" = yes; then
6848   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6849 fi
6850
6851 if test "x$enable_dlopen" != xyes; then
6852   enable_dlopen=unknown
6853   enable_dlopen_self=unknown
6854   enable_dlopen_self_static=unknown
6855 else
6856   lt_cv_dlopen=no
6857   lt_cv_dlopen_libs=
6858
6859   case $host_os in
6860   beos*)
6861     lt_cv_dlopen="load_add_on"
6862     lt_cv_dlopen_libs=
6863     lt_cv_dlopen_self=yes
6864     ;;
6865
6866   cygwin* | mingw* | pw32*)
6867     lt_cv_dlopen="LoadLibrary"
6868     lt_cv_dlopen_libs=
6869    ;;
6870
6871   *)
6872     echo "$as_me:$LINENO: checking for shl_load" >&5
6873 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6874 if test "${ac_cv_func_shl_load+set}" = set; then
6875   echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877   cat >conftest.$ac_ext <<_ACEOF
6878 /* confdefs.h.  */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h.  */
6883 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6885 #define shl_load innocuous_shl_load
6886
6887 /* System header to define __stub macros and hopefully few prototypes,
6888     which can conflict with char shl_load (); below.
6889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6890     <limits.h> exists even on freestanding compilers.  */
6891
6892 #ifdef __STDC__
6893 # include <limits.h>
6894 #else
6895 # include <assert.h>
6896 #endif
6897
6898 #undef shl_load
6899
6900 /* Override any gcc2 internal prototype to avoid an error.  */
6901 #ifdef __cplusplus
6902 extern "C"
6903 {
6904 #endif
6905 /* We use char because int might match the return type of a gcc2
6906    builtin and then its argument prototype would still apply.  */
6907 char shl_load ();
6908 /* The GNU C library defines this for functions which it implements
6909     to always fail with ENOSYS.  Some functions are actually named
6910     something starting with __ and the normal name is an alias.  */
6911 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6912 choke me
6913 #else
6914 char (*f) () = shl_load;
6915 #endif
6916 #ifdef __cplusplus
6917 }
6918 #endif
6919
6920 int
6921 main ()
6922 {
6923 return f != shl_load;
6924   ;
6925   return 0;
6926 }
6927 _ACEOF
6928 rm -f conftest.$ac_objext conftest$ac_exeext
6929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6930   (eval $ac_link) 2>conftest.er1
6931   ac_status=$?
6932   grep -v '^ *+' conftest.er1 >conftest.err
6933   rm -f conftest.er1
6934   cat conftest.err >&5
6935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936   (exit $ac_status); } &&
6937          { ac_try='test -z "$ac_c_werror_flag"
6938                          || test ! -s conftest.err'
6939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940   (eval $ac_try) 2>&5
6941   ac_status=$?
6942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943   (exit $ac_status); }; } &&
6944          { ac_try='test -s conftest$ac_exeext'
6945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946   (eval $ac_try) 2>&5
6947   ac_status=$?
6948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949   (exit $ac_status); }; }; then
6950   ac_cv_func_shl_load=yes
6951 else
6952   echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.$ac_ext >&5
6954
6955 ac_cv_func_shl_load=no
6956 fi
6957 rm -f conftest.err conftest.$ac_objext \
6958       conftest$ac_exeext conftest.$ac_ext
6959 fi
6960 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6961 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6962 if test $ac_cv_func_shl_load = yes; then
6963   lt_cv_dlopen="shl_load"
6964 else
6965   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6966 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6967 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6968   echo $ECHO_N "(cached) $ECHO_C" >&6
6969 else
6970   ac_check_lib_save_LIBS=$LIBS
6971 LIBS="-ldld  $LIBS"
6972 cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h.  */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h.  */
6978
6979 /* Override any gcc2 internal prototype to avoid an error.  */
6980 #ifdef __cplusplus
6981 extern "C"
6982 #endif
6983 /* We use char because int might match the return type of a gcc2
6984    builtin and then its argument prototype would still apply.  */
6985 char shl_load ();
6986 int
6987 main ()
6988 {
6989 shl_load ();
6990   ;
6991   return 0;
6992 }
6993 _ACEOF
6994 rm -f conftest.$ac_objext conftest$ac_exeext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6996   (eval $ac_link) 2>conftest.er1
6997   ac_status=$?
6998   grep -v '^ *+' conftest.er1 >conftest.err
6999   rm -f conftest.er1
7000   cat conftest.err >&5
7001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002   (exit $ac_status); } &&
7003          { ac_try='test -z "$ac_c_werror_flag"
7004                          || test ! -s conftest.err'
7005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006   (eval $ac_try) 2>&5
7007   ac_status=$?
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); }; } &&
7010          { ac_try='test -s conftest$ac_exeext'
7011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012   (eval $ac_try) 2>&5
7013   ac_status=$?
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); }; }; then
7016   ac_cv_lib_dld_shl_load=yes
7017 else
7018   echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7020
7021 ac_cv_lib_dld_shl_load=no
7022 fi
7023 rm -f conftest.err conftest.$ac_objext \
7024       conftest$ac_exeext conftest.$ac_ext
7025 LIBS=$ac_check_lib_save_LIBS
7026 fi
7027 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7028 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7029 if test $ac_cv_lib_dld_shl_load = yes; then
7030   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7031 else
7032   echo "$as_me:$LINENO: checking for dlopen" >&5
7033 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7034 if test "${ac_cv_func_dlopen+set}" = set; then
7035   echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037   cat >conftest.$ac_ext <<_ACEOF
7038 /* confdefs.h.  */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h.  */
7043 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7044    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7045 #define dlopen innocuous_dlopen
7046
7047 /* System header to define __stub macros and hopefully few prototypes,
7048     which can conflict with char dlopen (); below.
7049     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7050     <limits.h> exists even on freestanding compilers.  */
7051
7052 #ifdef __STDC__
7053 # include <limits.h>
7054 #else
7055 # include <assert.h>
7056 #endif
7057
7058 #undef dlopen
7059
7060 /* Override any gcc2 internal prototype to avoid an error.  */
7061 #ifdef __cplusplus
7062 extern "C"
7063 {
7064 #endif
7065 /* We use char because int might match the return type of a gcc2
7066    builtin and then its argument prototype would still apply.  */
7067 char dlopen ();
7068 /* The GNU C library defines this for functions which it implements
7069     to always fail with ENOSYS.  Some functions are actually named
7070     something starting with __ and the normal name is an alias.  */
7071 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7072 choke me
7073 #else
7074 char (*f) () = dlopen;
7075 #endif
7076 #ifdef __cplusplus
7077 }
7078 #endif
7079
7080 int
7081 main ()
7082 {
7083 return f != dlopen;
7084   ;
7085   return 0;
7086 }
7087 _ACEOF
7088 rm -f conftest.$ac_objext conftest$ac_exeext
7089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7090   (eval $ac_link) 2>conftest.er1
7091   ac_status=$?
7092   grep -v '^ *+' conftest.er1 >conftest.err
7093   rm -f conftest.er1
7094   cat conftest.err >&5
7095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096   (exit $ac_status); } &&
7097          { ac_try='test -z "$ac_c_werror_flag"
7098                          || test ! -s conftest.err'
7099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100   (eval $ac_try) 2>&5
7101   ac_status=$?
7102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103   (exit $ac_status); }; } &&
7104          { ac_try='test -s conftest$ac_exeext'
7105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106   (eval $ac_try) 2>&5
7107   ac_status=$?
7108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109   (exit $ac_status); }; }; then
7110   ac_cv_func_dlopen=yes
7111 else
7112   echo "$as_me: failed program was:" >&5
7113 sed 's/^/| /' conftest.$ac_ext >&5
7114
7115 ac_cv_func_dlopen=no
7116 fi
7117 rm -f conftest.err conftest.$ac_objext \
7118       conftest$ac_exeext conftest.$ac_ext
7119 fi
7120 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7121 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7122 if test $ac_cv_func_dlopen = yes; then
7123   lt_cv_dlopen="dlopen"
7124 else
7125   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7126 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7127 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   ac_check_lib_save_LIBS=$LIBS
7131 LIBS="-ldl  $LIBS"
7132 cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h.  */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h.  */
7138
7139 /* Override any gcc2 internal prototype to avoid an error.  */
7140 #ifdef __cplusplus
7141 extern "C"
7142 #endif
7143 /* We use char because int might match the return type of a gcc2
7144    builtin and then its argument prototype would still apply.  */
7145 char dlopen ();
7146 int
7147 main ()
7148 {
7149 dlopen ();
7150   ;
7151   return 0;
7152 }
7153 _ACEOF
7154 rm -f conftest.$ac_objext conftest$ac_exeext
7155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7156   (eval $ac_link) 2>conftest.er1
7157   ac_status=$?
7158   grep -v '^ *+' conftest.er1 >conftest.err
7159   rm -f conftest.er1
7160   cat conftest.err >&5
7161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162   (exit $ac_status); } &&
7163          { ac_try='test -z "$ac_c_werror_flag"
7164                          || test ! -s conftest.err'
7165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166   (eval $ac_try) 2>&5
7167   ac_status=$?
7168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169   (exit $ac_status); }; } &&
7170          { ac_try='test -s conftest$ac_exeext'
7171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172   (eval $ac_try) 2>&5
7173   ac_status=$?
7174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175   (exit $ac_status); }; }; then
7176   ac_cv_lib_dl_dlopen=yes
7177 else
7178   echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7180
7181 ac_cv_lib_dl_dlopen=no
7182 fi
7183 rm -f conftest.err conftest.$ac_objext \
7184       conftest$ac_exeext conftest.$ac_ext
7185 LIBS=$ac_check_lib_save_LIBS
7186 fi
7187 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7188 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7189 if test $ac_cv_lib_dl_dlopen = yes; then
7190   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7191 else
7192   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7193 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7194 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7195   echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197   ac_check_lib_save_LIBS=$LIBS
7198 LIBS="-lsvld  $LIBS"
7199 cat >conftest.$ac_ext <<_ACEOF
7200 /* confdefs.h.  */
7201 _ACEOF
7202 cat confdefs.h >>conftest.$ac_ext
7203 cat >>conftest.$ac_ext <<_ACEOF
7204 /* end confdefs.h.  */
7205
7206 /* Override any gcc2 internal prototype to avoid an error.  */
7207 #ifdef __cplusplus
7208 extern "C"
7209 #endif
7210 /* We use char because int might match the return type of a gcc2
7211    builtin and then its argument prototype would still apply.  */
7212 char dlopen ();
7213 int
7214 main ()
7215 {
7216 dlopen ();
7217   ;
7218   return 0;
7219 }
7220 _ACEOF
7221 rm -f conftest.$ac_objext conftest$ac_exeext
7222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7223   (eval $ac_link) 2>conftest.er1
7224   ac_status=$?
7225   grep -v '^ *+' conftest.er1 >conftest.err
7226   rm -f conftest.er1
7227   cat conftest.err >&5
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); } &&
7230          { ac_try='test -z "$ac_c_werror_flag"
7231                          || test ! -s conftest.err'
7232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233   (eval $ac_try) 2>&5
7234   ac_status=$?
7235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236   (exit $ac_status); }; } &&
7237          { ac_try='test -s conftest$ac_exeext'
7238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239   (eval $ac_try) 2>&5
7240   ac_status=$?
7241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242   (exit $ac_status); }; }; then
7243   ac_cv_lib_svld_dlopen=yes
7244 else
7245   echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.$ac_ext >&5
7247
7248 ac_cv_lib_svld_dlopen=no
7249 fi
7250 rm -f conftest.err conftest.$ac_objext \
7251       conftest$ac_exeext conftest.$ac_ext
7252 LIBS=$ac_check_lib_save_LIBS
7253 fi
7254 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7255 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7256 if test $ac_cv_lib_svld_dlopen = yes; then
7257   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7258 else
7259   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7260 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7261 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7262   echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264   ac_check_lib_save_LIBS=$LIBS
7265 LIBS="-ldld  $LIBS"
7266 cat >conftest.$ac_ext <<_ACEOF
7267 /* confdefs.h.  */
7268 _ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h.  */
7272
7273 /* Override any gcc2 internal prototype to avoid an error.  */
7274 #ifdef __cplusplus
7275 extern "C"
7276 #endif
7277 /* We use char because int might match the return type of a gcc2
7278    builtin and then its argument prototype would still apply.  */
7279 char dld_link ();
7280 int
7281 main ()
7282 {
7283 dld_link ();
7284   ;
7285   return 0;
7286 }
7287 _ACEOF
7288 rm -f conftest.$ac_objext conftest$ac_exeext
7289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7290   (eval $ac_link) 2>conftest.er1
7291   ac_status=$?
7292   grep -v '^ *+' conftest.er1 >conftest.err
7293   rm -f conftest.er1
7294   cat conftest.err >&5
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); } &&
7297          { ac_try='test -z "$ac_c_werror_flag"
7298                          || test ! -s conftest.err'
7299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300   (eval $ac_try) 2>&5
7301   ac_status=$?
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); }; } &&
7304          { ac_try='test -s conftest$ac_exeext'
7305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306   (eval $ac_try) 2>&5
7307   ac_status=$?
7308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309   (exit $ac_status); }; }; then
7310   ac_cv_lib_dld_dld_link=yes
7311 else
7312   echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7314
7315 ac_cv_lib_dld_dld_link=no
7316 fi
7317 rm -f conftest.err conftest.$ac_objext \
7318       conftest$ac_exeext conftest.$ac_ext
7319 LIBS=$ac_check_lib_save_LIBS
7320 fi
7321 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7322 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7323 if test $ac_cv_lib_dld_dld_link = yes; then
7324   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7325 fi
7326
7327
7328 fi
7329
7330
7331 fi
7332
7333
7334 fi
7335
7336
7337 fi
7338
7339
7340 fi
7341
7342     ;;
7343   esac
7344
7345   if test "x$lt_cv_dlopen" != xno; then
7346     enable_dlopen=yes
7347   else
7348     enable_dlopen=no
7349   fi
7350
7351   case $lt_cv_dlopen in
7352   dlopen)
7353     save_CPPFLAGS="$CPPFLAGS"
7354         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7355
7356     save_LDFLAGS="$LDFLAGS"
7357     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7358
7359     save_LIBS="$LIBS"
7360     LIBS="$lt_cv_dlopen_libs $LIBS"
7361
7362     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7363 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7364 if test "${lt_cv_dlopen_self+set}" = set; then
7365   echo $ECHO_N "(cached) $ECHO_C" >&6
7366 else
7367           if test "$cross_compiling" = yes; then :
7368   lt_cv_dlopen_self=cross
7369 else
7370     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7371   lt_status=$lt_dlunknown
7372   cat > conftest.$ac_ext <<EOF
7373 #line 7373 "configure"
7374 #include "confdefs.h"
7375
7376 #if HAVE_DLFCN_H
7377 #include <dlfcn.h>
7378 #endif
7379
7380 #include <stdio.h>
7381
7382 #ifdef RTLD_GLOBAL
7383 #  define LT_DLGLOBAL           RTLD_GLOBAL
7384 #else
7385 #  ifdef DL_GLOBAL
7386 #    define LT_DLGLOBAL         DL_GLOBAL
7387 #  else
7388 #    define LT_DLGLOBAL         0
7389 #  endif
7390 #endif
7391
7392 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7393    find out it does not work in some platform. */
7394 #ifndef LT_DLLAZY_OR_NOW
7395 #  ifdef RTLD_LAZY
7396 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7397 #  else
7398 #    ifdef DL_LAZY
7399 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7400 #    else
7401 #      ifdef RTLD_NOW
7402 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7403 #      else
7404 #        ifdef DL_NOW
7405 #          define LT_DLLAZY_OR_NOW      DL_NOW
7406 #        else
7407 #          define LT_DLLAZY_OR_NOW      0
7408 #        endif
7409 #      endif
7410 #    endif
7411 #  endif
7412 #endif
7413
7414 #ifdef __cplusplus
7415 extern "C" void exit (int);
7416 #endif
7417
7418 void fnord() { int i=42;}
7419 int main ()
7420 {
7421   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7422   int status = $lt_dlunknown;
7423
7424   if (self)
7425     {
7426       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7427       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7428       /* dlclose (self); */
7429     }
7430
7431     exit (status);
7432 }
7433 EOF
7434   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7435   (eval $ac_link) 2>&5
7436   ac_status=$?
7437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7439     (./conftest; exit; ) 2>/dev/null
7440     lt_status=$?
7441     case x$lt_status in
7442       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7443       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7444       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7445     esac
7446   else :
7447     # compilation failed
7448     lt_cv_dlopen_self=no
7449   fi
7450 fi
7451 rm -fr conftest*
7452
7453
7454 fi
7455 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7456 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7457
7458     if test "x$lt_cv_dlopen_self" = xyes; then
7459       LDFLAGS="$LDFLAGS $link_static_flag"
7460       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7461 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7462 if test "${lt_cv_dlopen_self_static+set}" = set; then
7463   echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465           if test "$cross_compiling" = yes; then :
7466   lt_cv_dlopen_self_static=cross
7467 else
7468     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7469   lt_status=$lt_dlunknown
7470   cat > conftest.$ac_ext <<EOF
7471 #line 7471 "configure"
7472 #include "confdefs.h"
7473
7474 #if HAVE_DLFCN_H
7475 #include <dlfcn.h>
7476 #endif
7477
7478 #include <stdio.h>
7479
7480 #ifdef RTLD_GLOBAL
7481 #  define LT_DLGLOBAL           RTLD_GLOBAL
7482 #else
7483 #  ifdef DL_GLOBAL
7484 #    define LT_DLGLOBAL         DL_GLOBAL
7485 #  else
7486 #    define LT_DLGLOBAL         0
7487 #  endif
7488 #endif
7489
7490 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7491    find out it does not work in some platform. */
7492 #ifndef LT_DLLAZY_OR_NOW
7493 #  ifdef RTLD_LAZY
7494 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7495 #  else
7496 #    ifdef DL_LAZY
7497 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7498 #    else
7499 #      ifdef RTLD_NOW
7500 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7501 #      else
7502 #        ifdef DL_NOW
7503 #          define LT_DLLAZY_OR_NOW      DL_NOW
7504 #        else
7505 #          define LT_DLLAZY_OR_NOW      0
7506 #        endif
7507 #      endif
7508 #    endif
7509 #  endif
7510 #endif
7511
7512 #ifdef __cplusplus
7513 extern "C" void exit (int);
7514 #endif
7515
7516 void fnord() { int i=42;}
7517 int main ()
7518 {
7519   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7520   int status = $lt_dlunknown;
7521
7522   if (self)
7523     {
7524       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7525       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7526       /* dlclose (self); */
7527     }
7528
7529     exit (status);
7530 }
7531 EOF
7532   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7533   (eval $ac_link) 2>&5
7534   ac_status=$?
7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7537     (./conftest; exit; ) 2>/dev/null
7538     lt_status=$?
7539     case x$lt_status in
7540       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7541       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7542       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7543     esac
7544   else :
7545     # compilation failed
7546     lt_cv_dlopen_self_static=no
7547   fi
7548 fi
7549 rm -fr conftest*
7550
7551
7552 fi
7553 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7554 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7555     fi
7556
7557     CPPFLAGS="$save_CPPFLAGS"
7558     LDFLAGS="$save_LDFLAGS"
7559     LIBS="$save_LIBS"
7560     ;;
7561   esac
7562
7563   case $lt_cv_dlopen_self in
7564   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7565   *) enable_dlopen_self=unknown ;;
7566   esac
7567
7568   case $lt_cv_dlopen_self_static in
7569   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7570   *) enable_dlopen_self_static=unknown ;;
7571   esac
7572 fi
7573
7574
7575 if test "$enable_shared" = yes && test "$GCC" = yes; then
7576   case $archive_cmds in
7577   *'~'*)
7578     # FIXME: we may have to deal with multi-command sequences.
7579     ;;
7580   '$CC '*)
7581     # Test whether the compiler implicitly links with -lc since on some
7582     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7583     # to ld, don't add -lc before -lgcc.
7584     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7585 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7586     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   $rm conftest*
7590     echo 'static int dummy;' > conftest.$ac_ext
7591
7592     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593   (eval $ac_compile) 2>&5
7594   ac_status=$?
7595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596   (exit $ac_status); }; then
7597       soname=conftest
7598       lib=conftest
7599       libobjs=conftest.$ac_objext
7600       deplibs=
7601       wl=$lt_cv_prog_cc_wl
7602       compiler_flags=-v
7603       linker_flags=-v
7604       verstring=
7605       output_objdir=.
7606       libname=conftest
7607       save_allow_undefined_flag=$allow_undefined_flag
7608       allow_undefined_flag=
7609       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7610   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7611   ac_status=$?
7612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613   (exit $ac_status); }
7614       then
7615         lt_cv_archive_cmds_need_lc=no
7616       else
7617         lt_cv_archive_cmds_need_lc=yes
7618       fi
7619       allow_undefined_flag=$save_allow_undefined_flag
7620     else
7621       cat conftest.err 1>&5
7622     fi
7623 fi
7624
7625     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7626 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7627     ;;
7628   esac
7629 fi
7630 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7631
7632 # The second clause should only fire when bootstrapping the
7633 # libtool distribution, otherwise you forgot to ship ltmain.sh
7634 # with your package, and you will get complaints that there are
7635 # no rules to generate ltmain.sh.
7636 if test -f "$ltmain"; then
7637   :
7638 else
7639   # If there is no Makefile yet, we rely on a make rule to execute
7640   # `config.status --recheck' to rerun these tests and create the
7641   # libtool script then.
7642   test -f Makefile && make "$ltmain"
7643 fi
7644
7645 if test -f "$ltmain"; then
7646   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7647   $rm -f "${ofile}T"
7648
7649   echo creating $ofile
7650
7651   # Now quote all the things that may contain metacharacters while being
7652   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7653   # variables and quote the copies for generation of the libtool script.
7654   for var in echo old_CC old_CFLAGS SED \
7655     AR AR_FLAGS CC LD LN_S NM SHELL \
7656     reload_flag reload_cmds wl \
7657     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7658     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7659     library_names_spec soname_spec \
7660     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7661     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7662     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7663     old_striplib striplib file_magic_cmd export_symbols_cmds \
7664     deplibs_check_method allow_undefined_flag no_undefined_flag \
7665     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7666     global_symbol_to_c_name_address \
7667     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7668     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7669     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7670
7671     case $var in
7672     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7673     old_postinstall_cmds | old_postuninstall_cmds | \
7674     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7675     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7676     postinstall_cmds | postuninstall_cmds | \
7677     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7678       # Double-quote double-evaled strings.
7679       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7680       ;;
7681     *)
7682       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7683       ;;
7684     esac
7685   done
7686
7687   cat <<__EOF__ > "${ofile}T"
7688 #! $SHELL
7689
7690 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7691 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7692 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7693 #
7694 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7695 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7696 #
7697 # This program is free software; you can redistribute it and/or modify
7698 # it under the terms of the GNU General Public License as published by
7699 # the Free Software Foundation; either version 2 of the License, or
7700 # (at your option) any later version.
7701 #
7702 # This program is distributed in the hope that it will be useful, but
7703 # WITHOUT ANY WARRANTY; without even the implied warranty of
7704 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7705 # General Public License for more details.
7706 #
7707 # You should have received a copy of the GNU General Public License
7708 # along with this program; if not, write to the Free Software
7709 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7710 #
7711 # As a special exception to the GNU General Public License, if you
7712 # distribute this file as part of a program that contains a
7713 # configuration script generated by Autoconf, you may include it under
7714 # the same distribution terms that you use for the rest of that program.
7715
7716 # A sed that does not truncate output.
7717 SED=$lt_SED
7718
7719 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7720 Xsed="${SED} -e s/^X//"
7721
7722 # The HP-UX ksh and POSIX shell print the target directory to stdout
7723 # if CDPATH is set.
7724 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7725
7726 # ### BEGIN LIBTOOL CONFIG
7727
7728 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7729
7730 # Shell to use when invoking shell scripts.
7731 SHELL=$lt_SHELL
7732
7733 # Whether or not to build shared libraries.
7734 build_libtool_libs=$enable_shared
7735
7736 # Whether or not to build static libraries.
7737 build_old_libs=$enable_static
7738
7739 # Whether or not to add -lc for building shared libraries.
7740 build_libtool_need_lc=$need_lc
7741
7742 # Whether or not to optimize for fast installation.
7743 fast_install=$enable_fast_install
7744
7745 # The host system.
7746 host_alias=$host_alias
7747 host=$host
7748
7749 # An echo program that does not interpret backslashes.
7750 echo=$lt_echo
7751
7752 # The archiver.
7753 AR=$lt_AR
7754 AR_FLAGS=$lt_AR_FLAGS
7755
7756 # The default C compiler.
7757 CC=$lt_CC
7758
7759 # Is the compiler the GNU C compiler?
7760 with_gcc=$GCC
7761
7762 # The linker used to build libraries.
7763 LD=$lt_LD
7764
7765 # Whether we need hard or soft links.
7766 LN_S=$lt_LN_S
7767
7768 # A BSD-compatible nm program.
7769 NM=$lt_NM
7770
7771 # A symbol stripping program
7772 STRIP=$STRIP
7773
7774 # Used to examine libraries when file_magic_cmd begins "file"
7775 MAGIC_CMD=$MAGIC_CMD
7776
7777 # Used on cygwin: DLL creation program.
7778 DLLTOOL="$DLLTOOL"
7779
7780 # Used on cygwin: object dumper.
7781 OBJDUMP="$OBJDUMP"
7782
7783 # Used on cygwin: assembler.
7784 AS="$AS"
7785
7786 # The name of the directory that contains temporary libtool files.
7787 objdir=$objdir
7788
7789 # How to create reloadable object files.
7790 reload_flag=$lt_reload_flag
7791 reload_cmds=$lt_reload_cmds
7792
7793 # How to pass a linker flag through the compiler.
7794 wl=$lt_wl
7795
7796 # Object file suffix (normally "o").
7797 objext="$ac_objext"
7798
7799 # Old archive suffix (normally "a").
7800 libext="$libext"
7801
7802 # Executable file suffix (normally "").
7803 exeext="$exeext"
7804
7805 # Additional compiler flags for building library objects.
7806 pic_flag=$lt_pic_flag
7807 pic_mode=$pic_mode
7808
7809 # Does compiler simultaneously support -c and -o options?
7810 compiler_c_o=$lt_compiler_c_o
7811
7812 # Can we write directly to a .lo ?
7813 compiler_o_lo=$lt_compiler_o_lo
7814
7815 # Must we lock files when doing compilation ?
7816 need_locks=$lt_need_locks
7817
7818 # Do we need the lib prefix for modules?
7819 need_lib_prefix=$need_lib_prefix
7820
7821 # Do we need a version for libraries?
7822 need_version=$need_version
7823
7824 # Whether dlopen is supported.
7825 dlopen_support=$enable_dlopen
7826
7827 # Whether dlopen of programs is supported.
7828 dlopen_self=$enable_dlopen_self
7829
7830 # Whether dlopen of statically linked programs is supported.
7831 dlopen_self_static=$enable_dlopen_self_static
7832
7833 # Compiler flag to prevent dynamic linking.
7834 link_static_flag=$lt_link_static_flag
7835
7836 # Compiler flag to turn off builtin functions.
7837 no_builtin_flag=$lt_no_builtin_flag
7838
7839 # Compiler flag to allow reflexive dlopens.
7840 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7841
7842 # Compiler flag to generate shared objects directly from archives.
7843 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7844
7845 # Compiler flag to generate thread-safe objects.
7846 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7847
7848 # Library versioning type.
7849 version_type=$version_type
7850
7851 # Format of library name prefix.
7852 libname_spec=$lt_libname_spec
7853
7854 # List of archive names.  First name is the real one, the rest are links.
7855 # The last name is the one that the linker finds with -lNAME.
7856 library_names_spec=$lt_library_names_spec
7857
7858 # The coded name of the library, if different from the real name.
7859 soname_spec=$lt_soname_spec
7860
7861 # Commands used to build and install an old-style archive.
7862 RANLIB=$lt_RANLIB
7863 old_archive_cmds=$lt_old_archive_cmds
7864 old_postinstall_cmds=$lt_old_postinstall_cmds
7865 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7866
7867 # Create an old-style archive from a shared archive.
7868 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7869
7870 # Create a temporary old-style archive to link instead of a shared archive.
7871 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7872
7873 # Commands used to build and install a shared archive.
7874 archive_cmds=$lt_archive_cmds
7875 archive_expsym_cmds=$lt_archive_expsym_cmds
7876 postinstall_cmds=$lt_postinstall_cmds
7877 postuninstall_cmds=$lt_postuninstall_cmds
7878
7879 # Commands to strip libraries.
7880 old_striplib=$lt_old_striplib
7881 striplib=$lt_striplib
7882
7883 # Method to check whether dependent libraries are shared objects.
7884 deplibs_check_method=$lt_deplibs_check_method
7885
7886 # Command to use when deplibs_check_method == file_magic.
7887 file_magic_cmd=$lt_file_magic_cmd
7888
7889 # Flag that allows shared libraries with undefined symbols to be built.
7890 allow_undefined_flag=$lt_allow_undefined_flag
7891
7892 # Flag that forces no undefined symbols.
7893 no_undefined_flag=$lt_no_undefined_flag
7894
7895 # Commands used to finish a libtool library installation in a directory.
7896 finish_cmds=$lt_finish_cmds
7897
7898 # Same as above, but a single script fragment to be evaled but not shown.
7899 finish_eval=$lt_finish_eval
7900
7901 # Take the output of nm and produce a listing of raw symbols and C names.
7902 global_symbol_pipe=$lt_global_symbol_pipe
7903
7904 # Transform the output of nm in a proper C declaration
7905 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7906
7907 # Transform the output of nm in a C name address pair
7908 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7909
7910 # This is the shared library runtime path variable.
7911 runpath_var=$runpath_var
7912
7913 # This is the shared library path variable.
7914 shlibpath_var=$shlibpath_var
7915
7916 # Is shlibpath searched before the hard-coded library search path?
7917 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7918
7919 # How to hardcode a shared library path into an executable.
7920 hardcode_action=$hardcode_action
7921
7922 # Whether we should hardcode library paths into libraries.
7923 hardcode_into_libs=$hardcode_into_libs
7924
7925 # Flag to hardcode \$libdir into a binary during linking.
7926 # This must work even if \$libdir does not exist.
7927 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7928
7929 # Whether we need a single -rpath flag with a separated argument.
7930 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7931
7932 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7933 # resulting binary.
7934 hardcode_direct=$hardcode_direct
7935
7936 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7937 # resulting binary.
7938 hardcode_minus_L=$hardcode_minus_L
7939
7940 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7941 # the resulting binary.
7942 hardcode_shlibpath_var=$hardcode_shlibpath_var
7943
7944 # Variables whose values should be saved in libtool wrapper scripts and
7945 # restored at relink time.
7946 variables_saved_for_relink="$variables_saved_for_relink"
7947
7948 # Whether libtool must link a program against all its dependency libraries.
7949 link_all_deplibs=$link_all_deplibs
7950
7951 # Compile-time system search path for libraries
7952 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7953
7954 # Run-time system search path for libraries
7955 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7956
7957 # Fix the shell variable \$srcfile for the compiler.
7958 fix_srcfile_path="$fix_srcfile_path"
7959
7960 # Set to yes if exported symbols are required.
7961 always_export_symbols=$always_export_symbols
7962
7963 # The commands to list exported symbols.
7964 export_symbols_cmds=$lt_export_symbols_cmds
7965
7966 # The commands to extract the exported symbol list from a shared archive.
7967 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7968
7969 # Symbols that should not be listed in the preloaded symbols.
7970 exclude_expsyms=$lt_exclude_expsyms
7971
7972 # Symbols that must always be exported.
7973 include_expsyms=$lt_include_expsyms
7974
7975 # ### END LIBTOOL CONFIG
7976
7977 __EOF__
7978
7979   case $host_os in
7980   aix3*)
7981     cat <<\EOF >> "${ofile}T"
7982
7983 # AIX sometimes has problems with the GCC collect2 program.  For some
7984 # reason, if we set the COLLECT_NAMES environment variable, the problems
7985 # vanish in a puff of smoke.
7986 if test "X${COLLECT_NAMES+set}" != Xset; then
7987   COLLECT_NAMES=
7988   export COLLECT_NAMES
7989 fi
7990 EOF
7991     ;;
7992   esac
7993
7994   case $host_os in
7995   cygwin* | mingw* | pw32* | os2*)
7996     cat <<'EOF' >> "${ofile}T"
7997       # This is a source program that is used to create dlls on Windows
7998       # Don't remove nor modify the starting and closing comments
7999 # /* ltdll.c starts here */
8000 # #define WIN32_LEAN_AND_MEAN
8001 # #include <windows.h>
8002 # #undef WIN32_LEAN_AND_MEAN
8003 # #include <stdio.h>
8004 #
8005 # #ifndef __CYGWIN__
8006 # #  ifdef __CYGWIN32__
8007 # #    define __CYGWIN__ __CYGWIN32__
8008 # #  endif
8009 # #endif
8010 #
8011 # #ifdef __cplusplus
8012 # extern "C" {
8013 # #endif
8014 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8015 # #ifdef __cplusplus
8016 # }
8017 # #endif
8018 #
8019 # #ifdef __CYGWIN__
8020 # #include <cygwin/cygwin_dll.h>
8021 # DECLARE_CYGWIN_DLL( DllMain );
8022 # #endif
8023 # HINSTANCE __hDllInstance_base;
8024 #
8025 # BOOL APIENTRY
8026 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8027 # {
8028 #   __hDllInstance_base = hInst;
8029 #   return TRUE;
8030 # }
8031 # /* ltdll.c ends here */
8032         # This is a source program that is used to create import libraries
8033         # on Windows for dlls which lack them. Don't remove nor modify the
8034         # starting and closing comments
8035 # /* impgen.c starts here */
8036 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8037 #
8038 #  This file is part of GNU libtool.
8039 #
8040 #  This program is free software; you can redistribute it and/or modify
8041 #  it under the terms of the GNU General Public License as published by
8042 #  the Free Software Foundation; either version 2 of the License, or
8043 #  (at your option) any later version.
8044 #
8045 #  This program is distributed in the hope that it will be useful,
8046 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8047 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8048 #  GNU General Public License for more details.
8049 #
8050 #  You should have received a copy of the GNU General Public License
8051 #  along with this program; if not, write to the Free Software
8052 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8053 #  */
8054 #
8055 # #include <stdio.h>            /* for printf() */
8056 # #include <unistd.h>           /* for open(), lseek(), read() */
8057 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8058 # #include <string.h>           /* for strdup() */
8059 #
8060 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8061 # #ifndef O_BINARY
8062 # #define O_BINARY 0
8063 # #endif
8064 #
8065 # static unsigned int
8066 # pe_get16 (fd, offset)
8067 #      int fd;
8068 #      int offset;
8069 # {
8070 #   unsigned char b[2];
8071 #   lseek (fd, offset, SEEK_SET);
8072 #   read (fd, b, 2);
8073 #   return b[0] + (b[1]<<8);
8074 # }
8075 #
8076 # static unsigned int
8077 # pe_get32 (fd, offset)
8078 #     int fd;
8079 #     int offset;
8080 # {
8081 #   unsigned char b[4];
8082 #   lseek (fd, offset, SEEK_SET);
8083 #   read (fd, b, 4);
8084 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8085 # }
8086 #
8087 # static unsigned int
8088 # pe_as32 (ptr)
8089 #      void *ptr;
8090 # {
8091 #   unsigned char *b = ptr;
8092 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8093 # }
8094 #
8095 # int
8096 # main (argc, argv)
8097 #     int argc;
8098 #     char *argv[];
8099 # {
8100 #     int dll;
8101 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8102 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8103 #     unsigned long name_rvas, nexp;
8104 #     unsigned char *expdata, *erva;
8105 #     char *filename, *dll_name;
8106 #
8107 #     filename = argv[1];
8108 #
8109 #     dll = open(filename, O_RDONLY|O_BINARY);
8110 #     if (dll < 1)
8111 #       return 1;
8112 #
8113 #     dll_name = filename;
8114 #
8115 #     for (i=0; filename[i]; i++)
8116 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8117 #           dll_name = filename + i +1;
8118 #
8119 #     pe_header_offset = pe_get32 (dll, 0x3c);
8120 #     opthdr_ofs = pe_header_offset + 4 + 20;
8121 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8122 #
8123 #     if (num_entries < 1) /* no exports */
8124 #       return 1;
8125 #
8126 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8127 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8128 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8129 #     secptr = (pe_header_offset + 4 + 20 +
8130 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8131 #
8132 #     expptr = 0;
8133 #     for (i = 0; i < nsections; i++)
8134 #     {
8135 #       char sname[8];
8136 #       unsigned long secptr1 = secptr + 40 * i;
8137 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8138 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8139 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8140 #       lseek(dll, secptr1, SEEK_SET);
8141 #       read(dll, sname, 8);
8142 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8143 #       {
8144 #           expptr = fptr + (export_rva - vaddr);
8145 #           if (export_rva + export_size > vaddr + vsize)
8146 #               export_size = vsize - (export_rva - vaddr);
8147 #           break;
8148 #       }
8149 #     }
8150 #
8151 #     expdata = (unsigned char*)malloc(export_size);
8152 #     lseek (dll, expptr, SEEK_SET);
8153 #     read (dll, expdata, export_size);
8154 #     erva = expdata - export_rva;
8155 #
8156 #     nexp = pe_as32 (expdata+24);
8157 #     name_rvas = pe_as32 (expdata+32);
8158 #
8159 #     printf ("EXPORTS\n");
8160 #     for (i = 0; i<nexp; i++)
8161 #     {
8162 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8163 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8164 #     }
8165 #
8166 #     return 0;
8167 # }
8168 # /* impgen.c ends here */
8169
8170 EOF
8171     ;;
8172   esac
8173
8174   # We use sed instead of cat because bash on DJGPP gets confused if
8175   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8176   # text mode, it properly converts lines to CR/LF.  This bash problem
8177   # is reportedly fixed, but why not run on old versions too?
8178   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8179
8180   mv -f "${ofile}T" "$ofile" || \
8181     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8182   chmod +x "$ofile"
8183 fi
8184
8185
8186
8187
8188
8189 # This can be used to rebuild libtool when needed
8190 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8191
8192 # Always use our own libtool.
8193 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8194
8195 # Prevent multiple expansion
8196
8197
8198  for ac_prog in gzip uncompress compress
8199 do
8200   # Extract the first word of "$ac_prog", so it can be a program name with args.
8201 set dummy $ac_prog; ac_word=$2
8202 echo "$as_me:$LINENO: checking for $ac_word" >&5
8203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8204 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8205   echo $ECHO_N "(cached) $ECHO_C" >&6
8206 else
8207   if test -n "$UNCOMPRESS"; then
8208   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8209 else
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 for as_dir in $PATH
8212 do
8213   IFS=$as_save_IFS
8214   test -z "$as_dir" && as_dir=.
8215   for ac_exec_ext in '' $ac_executable_extensions; do
8216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8217     ac_cv_prog_UNCOMPRESS="$ac_prog"
8218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8219     break 2
8220   fi
8221 done
8222 done
8223
8224 fi
8225 fi
8226 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8227 if test -n "$UNCOMPRESS"; then
8228   echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8229 echo "${ECHO_T}$UNCOMPRESS" >&6
8230 else
8231   echo "$as_me:$LINENO: result: no" >&5
8232 echo "${ECHO_T}no" >&6
8233 fi
8234
8235   test -n "$UNCOMPRESS" && break
8236 done
8237
8238
8239 OBJEXT="o"
8240
8241 if test "x$EXEEXT" = "x.exe";then
8242     OBJEXT="obj"
8243 fi
8244
8245
8246
8247
8248
8249
8250 echo "$as_me:$LINENO: checking for target system" >&5
8251 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8252 CYGWIN=
8253 MINGW=
8254 case $host_os in
8255     *cygwin* ) CYGWIN=yes;;
8256     *mingw* ) MINGW=yes;;
8257 esac
8258
8259 AR=ar
8260 if test "x$MINGW" = "xyes"; then
8261     #fix for the debian distribution of mingw
8262     if test -x "/usr/i586-mingw32msvc/bin/ar";then
8263         AR="/usr/i586-mingw32msvc/bin/ar"
8264     fi
8265     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8266         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8267     fi
8268     #fix for the gentoo distribution of mingw
8269     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8270         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8271     fi
8272     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8273         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8274     fi
8275     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8276         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8277     fi
8278 fi
8279
8280
8281
8282 if test "x${CYGWIN}" = "xyes"; then
8283     cat >>confdefs.h <<_ACEOF
8284 #define CYGWIN 1
8285 _ACEOF
8286
8287     echo "$as_me:$LINENO: result: cygwin" >&5
8288 echo "${ECHO_T}cygwin" >&6
8289 else
8290     if test "x${MINGW}" = "xyes"; then
8291         cat >>confdefs.h <<_ACEOF
8292 #define MINGW 1
8293 _ACEOF
8294
8295         WIN32=1
8296         cat >>confdefs.h <<_ACEOF
8297 #define WIN32 1
8298 _ACEOF
8299
8300         LIBS="$LIBS -lws2_32"
8301         echo "$as_me:$LINENO: result: mingw" >&5
8302 echo "${ECHO_T}mingw" >&6
8303     else
8304         LINUX=1
8305         export LINUX
8306         cat >>confdefs.h <<_ACEOF
8307 #define LINUX 1
8308 _ACEOF
8309
8310         echo "$as_me:$LINENO: result: " >&5
8311 echo "${ECHO_T}" >&6
8312     fi
8313 fi
8314
8315
8316 SLEXT="so"
8317 if test "x${MINGW}" != "xyes"; then
8318     # no mingW
8319     cat >>confdefs.h <<_ACEOF
8320 #define O_BINARY 0
8321 _ACEOF
8322
8323 else
8324     # mingW
8325     SLEXT="dll"
8326 fi
8327 export SLEXT
8328
8329
8330 # The following tries to make use of includes and libraries in
8331 # /usr/local, too. Notice: A -I/usr/local/include might break
8332 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8333 # especially on systems which link /usr/local to /usr, so it has yet
8334 # to be seen how useful this is.
8335 if test -d /usr/local/lib; then
8336     LDFLAGS="$LDFLAGS -L/usr/local/lib"
8337 fi
8338 if test -d /usr/local/include; then
8339 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8340 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8341     echo > /dev/null
8342 fi
8343 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8344     # if the user has a special prefix (like /opt), there might also be $prefix/lib
8345     # and $prefix/include, which should be included in our search paths for libraries
8346     # and includes.
8347     LDFLAGS="$LDFLAGS -L${libdir}"
8348     CPPFLAGS="$CPPFLAGS -I${includedir}"
8349     # TODO- test whether gcc still works after this
8350 fi
8351
8352 #Mac OS:
8353 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
8354
8355
8356 # this must be done after (I believe) AC_PROG_MAKE_SET
8357 if test "x$DEBUG" '!=' "x";then
8358     STRIP="@echo debug enabled, not stripping "
8359     export STRIP
8360
8361 fi
8362
8363
8364 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8365 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8366 if test "${ac_cv_lib_m_sin+set}" = set; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 else
8369   ac_check_lib_save_LIBS=$LIBS
8370 LIBS="-lm  $LIBS"
8371 cat >conftest.$ac_ext <<_ACEOF
8372 /* confdefs.h.  */
8373 _ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h.  */
8377
8378 /* Override any gcc2 internal prototype to avoid an error.  */
8379 #ifdef __cplusplus
8380 extern "C"
8381 #endif
8382 /* We use char because int might match the return type of a gcc2
8383    builtin and then its argument prototype would still apply.  */
8384 char sin ();
8385 int
8386 main ()
8387 {
8388 sin ();
8389   ;
8390   return 0;
8391 }
8392 _ACEOF
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8395   (eval $ac_link) 2>conftest.er1
8396   ac_status=$?
8397   grep -v '^ *+' conftest.er1 >conftest.err
8398   rm -f conftest.er1
8399   cat conftest.err >&5
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); } &&
8402          { ac_try='test -z "$ac_c_werror_flag"
8403                          || test ! -s conftest.err'
8404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405   (eval $ac_try) 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }; } &&
8409          { ac_try='test -s conftest$ac_exeext'
8410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411   (eval $ac_try) 2>&5
8412   ac_status=$?
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   (exit $ac_status); }; }; then
8415   ac_cv_lib_m_sin=yes
8416 else
8417   echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8419
8420 ac_cv_lib_m_sin=no
8421 fi
8422 rm -f conftest.err conftest.$ac_objext \
8423       conftest$ac_exeext conftest.$ac_ext
8424 LIBS=$ac_check_lib_save_LIBS
8425 fi
8426 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8427 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8428 if test $ac_cv_lib_m_sin = yes; then
8429   cat >>confdefs.h <<_ACEOF
8430 #define HAVE_LIBM 1
8431 _ACEOF
8432
8433   LIBS="-lm $LIBS"
8434
8435 else
8436   echo "Error: Math library not found.";
8437  exit;
8438
8439 fi
8440
8441
8442 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8443 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8444 if test "${ac_cv_lib_z_deflate+set}" = set; then
8445   echo $ECHO_N "(cached) $ECHO_C" >&6
8446 else
8447   ac_check_lib_save_LIBS=$LIBS
8448 LIBS="-lz  $LIBS"
8449 cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h.  */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h.  */
8455
8456 /* Override any gcc2 internal prototype to avoid an error.  */
8457 #ifdef __cplusplus
8458 extern "C"
8459 #endif
8460 /* We use char because int might match the return type of a gcc2
8461    builtin and then its argument prototype would still apply.  */
8462 char deflate ();
8463 int
8464 main ()
8465 {
8466 deflate ();
8467   ;
8468   return 0;
8469 }
8470 _ACEOF
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473   (eval $ac_link) 2>conftest.er1
8474   ac_status=$?
8475   grep -v '^ *+' conftest.er1 >conftest.err
8476   rm -f conftest.er1
8477   cat conftest.err >&5
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); } &&
8480          { ac_try='test -z "$ac_c_werror_flag"
8481                          || test ! -s conftest.err'
8482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483   (eval $ac_try) 2>&5
8484   ac_status=$?
8485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486   (exit $ac_status); }; } &&
8487          { ac_try='test -s conftest$ac_exeext'
8488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489   (eval $ac_try) 2>&5
8490   ac_status=$?
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); }; }; then
8493   ac_cv_lib_z_deflate=yes
8494 else
8495   echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8497
8498 ac_cv_lib_z_deflate=no
8499 fi
8500 rm -f conftest.err conftest.$ac_objext \
8501       conftest$ac_exeext conftest.$ac_ext
8502 LIBS=$ac_check_lib_save_LIBS
8503 fi
8504 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8505 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8506 if test $ac_cv_lib_z_deflate = yes; then
8507   cat >>confdefs.h <<_ACEOF
8508 #define HAVE_LIBZ 1
8509 _ACEOF
8510
8511   LIBS="-lz $LIBS"
8512
8513 else
8514   ZLIBMISSING=true
8515 fi
8516
8517
8518 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8519 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8520 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8521   echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523   ac_check_lib_save_LIBS=$LIBS
8524 LIBS="-ljpeg  $LIBS"
8525 cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h.  */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h.  */
8531
8532 /* Override any gcc2 internal prototype to avoid an error.  */
8533 #ifdef __cplusplus
8534 extern "C"
8535 #endif
8536 /* We use char because int might match the return type of a gcc2
8537    builtin and then its argument prototype would still apply.  */
8538 char jpeg_write_raw_data ();
8539 int
8540 main ()
8541 {
8542 jpeg_write_raw_data ();
8543   ;
8544   return 0;
8545 }
8546 _ACEOF
8547 rm -f conftest.$ac_objext conftest$ac_exeext
8548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8549   (eval $ac_link) 2>conftest.er1
8550   ac_status=$?
8551   grep -v '^ *+' conftest.er1 >conftest.err
8552   rm -f conftest.er1
8553   cat conftest.err >&5
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); } &&
8556          { ac_try='test -z "$ac_c_werror_flag"
8557                          || test ! -s conftest.err'
8558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559   (eval $ac_try) 2>&5
8560   ac_status=$?
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); }; } &&
8563          { ac_try='test -s conftest$ac_exeext'
8564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565   (eval $ac_try) 2>&5
8566   ac_status=$?
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); }; }; then
8569   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8570 else
8571   echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8573
8574 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8575 fi
8576 rm -f conftest.err conftest.$ac_objext \
8577       conftest$ac_exeext conftest.$ac_ext
8578 LIBS=$ac_check_lib_save_LIBS
8579 fi
8580 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8581 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8582 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8583   cat >>confdefs.h <<_ACEOF
8584 #define HAVE_LIBJPEG 1
8585 _ACEOF
8586
8587   LIBS="-ljpeg $LIBS"
8588
8589 else
8590   JPEGLIBMISSING=true
8591 fi
8592
8593
8594 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8595 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8596 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8597   echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599   ac_check_lib_save_LIBS=$LIBS
8600 LIBS="-lt1  $LIBS"
8601 cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h.  */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h.  */
8607
8608 /* Override any gcc2 internal prototype to avoid an error.  */
8609 #ifdef __cplusplus
8610 extern "C"
8611 #endif
8612 /* We use char because int might match the return type of a gcc2
8613    builtin and then its argument prototype would still apply.  */
8614 char T1_LoadFont ();
8615 int
8616 main ()
8617 {
8618 T1_LoadFont ();
8619   ;
8620   return 0;
8621 }
8622 _ACEOF
8623 rm -f conftest.$ac_objext conftest$ac_exeext
8624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8625   (eval $ac_link) 2>conftest.er1
8626   ac_status=$?
8627   grep -v '^ *+' conftest.er1 >conftest.err
8628   rm -f conftest.er1
8629   cat conftest.err >&5
8630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); } &&
8632          { ac_try='test -z "$ac_c_werror_flag"
8633                          || test ! -s conftest.err'
8634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635   (eval $ac_try) 2>&5
8636   ac_status=$?
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); }; } &&
8639          { ac_try='test -s conftest$ac_exeext'
8640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641   (eval $ac_try) 2>&5
8642   ac_status=$?
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); }; }; then
8645   ac_cv_lib_t1_T1_LoadFont=yes
8646 else
8647   echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8649
8650 ac_cv_lib_t1_T1_LoadFont=no
8651 fi
8652 rm -f conftest.err conftest.$ac_objext \
8653       conftest$ac_exeext conftest.$ac_ext
8654 LIBS=$ac_check_lib_save_LIBS
8655 fi
8656 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8657 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8658 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8659   cat >>confdefs.h <<_ACEOF
8660 #define HAVE_LIBT1 1
8661 _ACEOF
8662
8663   LIBS="-lt1 $LIBS"
8664
8665 else
8666   T1LIBMISSING=true
8667 fi
8668
8669
8670
8671 echo "$as_me:$LINENO: checking for byte order" >&5
8672 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8673 if test "$cross_compiling" = yes; then
8674   CROSSCOMPILE=1
8675 else
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 int main (int argc, char *argv[])
8684 {
8685     int i = 1;
8686     return *(char*)&i;
8687 }
8688
8689 _ACEOF
8690 rm -f conftest$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692   (eval $ac_link) 2>&5
8693   ac_status=$?
8694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697   (eval $ac_try) 2>&5
8698   ac_status=$?
8699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); }; }; then
8701   BIGENDIAN=1
8702 else
8703   echo "$as_me: program exited with status $ac_status" >&5
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8706
8707 ( exit $ac_status )
8708 LITTLEENDIAN=1
8709 fi
8710 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8711 fi
8712 export CROSSCOMPILE
8713
8714 if test "x${CROSSCOMPILE}" = "x1"; then
8715  echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
8716 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
8717  echo "$as_me:$LINENO: checking target system type" >&5
8718 echo $ECHO_N "checking target system type... $ECHO_C" >&6
8719 if test "${ac_cv_target+set}" = set; then
8720   echo $ECHO_N "(cached) $ECHO_C" >&6
8721 else
8722   ac_cv_target_alias=$target_alias
8723 test "x$ac_cv_target_alias" = "x" &&
8724   ac_cv_target_alias=$ac_cv_host_alias
8725 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
8726   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
8727 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
8728    { (exit 1); exit 1; }; }
8729
8730 fi
8731 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
8732 echo "${ECHO_T}$ac_cv_target" >&6
8733 target=$ac_cv_target
8734 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8735 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8736 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8737
8738
8739 # The aliases save the names the user supplied, while $host etc.
8740 # will get canonicalized.
8741 test -n "$target_alias" &&
8742   test "$program_prefix$program_suffix$program_transform_name" = \
8743     NONENONEs,x,x, &&
8744   program_prefix=${target_alias}-
8745  echo "$as_me:$LINENO: checking for byte order, try 2" >&5
8746 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
8747  case "${target}" in
8748   *86* | *-pc-* )
8749      LITTLEENDIAN=1
8750      ;;
8751   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
8752      BIGENDIAN=1
8753      ;;
8754  esac
8755 fi
8756
8757 export LITTLEENDIAN
8758 if test "x${LITTLEENDIAN}" = "x1"; then
8759 echo "$as_me:$LINENO: result: little endian" >&5
8760 echo "${ECHO_T}little endian" >&6
8761 BYTEORDERCHECKOK=1
8762 fi
8763 export BIGENDIAN
8764 if test "x${BIGENDIAN}" = "x1"; then
8765 echo "$as_me:$LINENO: result: big endian" >&5
8766 echo "${ECHO_T}big endian" >&6
8767 BYTEORDERCHECKOK=1
8768 WORDS_BIGENDIAN=1
8769 export WORDS_BIGENDIAN
8770 cat >>confdefs.h <<_ACEOF
8771 #define WORDS_BIGENDIAN 1
8772 _ACEOF
8773
8774 fi
8775 if test "x${BYTEORDERCHECKOK}" != "x1"; then
8776 echo "$as_me:$LINENO: result: unknown" >&5
8777 echo "${ECHO_T}unknown" >&6
8778 echo Byte order could not determined.
8779 exit 1
8780 fi
8781
8782
8783
8784 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
8785 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
8786 if test "$cross_compiling" = yes; then
8787   CROSSCOMPILE=1
8788 else
8789   cat >conftest.$ac_ext <<_ACEOF
8790 /* confdefs.h.  */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h.  */
8795
8796 #include "stdlib.h"
8797 int main (int argc, char*argv[])
8798 {
8799     return system("test `touch config.tmp2`");
8800 }
8801
8802 _ACEOF
8803 rm -f conftest$ac_exeext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8805   (eval $ac_link) 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810   (eval $ac_try) 2>&5
8811   ac_status=$?
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); }; }; then
8814   OK=OK
8815 else
8816   echo "$as_me: program exited with status $ac_status" >&5
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8819
8820 fi
8821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8822 fi
8823
8824 if test "x${OK}" = "xOK";then
8825     test -f config.tmp2 || OK=
8826 fi
8827
8828 if test "x${CROSSCOMPILE}" = "x1";then
8829     OK=OK;
8830 fi
8831 if test "x${OK}" = "xOK";then
8832 rm -f config.tmp2
8833 echo "$as_me:$LINENO: result: yes" >&5
8834 echo "${ECHO_T}yes" >&6
8835 SYSTEM_BACKTICKS=1
8836 export SYSTEM_BACKTICKS
8837 cat >>confdefs.h <<_ACEOF
8838 #define SYSTEM_BACKTICKS 1
8839 _ACEOF
8840
8841 else
8842 echo "$as_me:$LINENO: result: no" >&5
8843 echo "${ECHO_T}no" >&6
8844 fi
8845
8846
8847
8848 test "$program_prefix" != NONE &&
8849   program_transform_name="s,^,$program_prefix,;$program_transform_name"
8850 # Use a double $ so make ignores it.
8851 test "$program_suffix" != NONE &&
8852   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8853 # Double any \ or $.  echo might interpret backslashes.
8854 # By default was `s,x,x', remove it if useless.
8855 cat <<\_ACEOF >conftest.sed
8856 s/[\\$]/&&/g;s/;s,x,x,$//
8857 _ACEOF
8858 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8859 rm conftest.sed
8860
8861
8862            ac_config_headers="$ac_config_headers config.h"
8863
8864
8865
8866
8867
8868
8869 ac_header_dirent=no
8870 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8871   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8872 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8873 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8875   echo $ECHO_N "(cached) $ECHO_C" >&6
8876 else
8877   cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h.  */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h.  */
8883 #include <sys/types.h>
8884 #include <$ac_hdr>
8885
8886 int
8887 main ()
8888 {
8889 if ((DIR *) 0)
8890 return 0;
8891   ;
8892   return 0;
8893 }
8894 _ACEOF
8895 rm -f conftest.$ac_objext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8897   (eval $ac_compile) 2>conftest.er1
8898   ac_status=$?
8899   grep -v '^ *+' conftest.er1 >conftest.err
8900   rm -f conftest.er1
8901   cat conftest.err >&5
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); } &&
8904          { ac_try='test -z "$ac_c_werror_flag"
8905                          || test ! -s conftest.err'
8906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907   (eval $ac_try) 2>&5
8908   ac_status=$?
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); }; } &&
8911          { ac_try='test -s conftest.$ac_objext'
8912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913   (eval $ac_try) 2>&5
8914   ac_status=$?
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); }; }; then
8917   eval "$as_ac_Header=yes"
8918 else
8919   echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8921
8922 eval "$as_ac_Header=no"
8923 fi
8924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8925 fi
8926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8929   cat >>confdefs.h <<_ACEOF
8930 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8931 _ACEOF
8932
8933 ac_header_dirent=$ac_hdr; break
8934 fi
8935
8936 done
8937 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8938 if test $ac_header_dirent = dirent.h; then
8939   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8940 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8941 if test "${ac_cv_search_opendir+set}" = set; then
8942   echo $ECHO_N "(cached) $ECHO_C" >&6
8943 else
8944   ac_func_search_save_LIBS=$LIBS
8945 ac_cv_search_opendir=no
8946 cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h.  */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h.  */
8952
8953 /* Override any gcc2 internal prototype to avoid an error.  */
8954 #ifdef __cplusplus
8955 extern "C"
8956 #endif
8957 /* We use char because int might match the return type of a gcc2
8958    builtin and then its argument prototype would still apply.  */
8959 char opendir ();
8960 int
8961 main ()
8962 {
8963 opendir ();
8964   ;
8965   return 0;
8966 }
8967 _ACEOF
8968 rm -f conftest.$ac_objext conftest$ac_exeext
8969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8970   (eval $ac_link) 2>conftest.er1
8971   ac_status=$?
8972   grep -v '^ *+' conftest.er1 >conftest.err
8973   rm -f conftest.er1
8974   cat conftest.err >&5
8975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); } &&
8977          { ac_try='test -z "$ac_c_werror_flag"
8978                          || test ! -s conftest.err'
8979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980   (eval $ac_try) 2>&5
8981   ac_status=$?
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); }; } &&
8984          { ac_try='test -s conftest$ac_exeext'
8985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986   (eval $ac_try) 2>&5
8987   ac_status=$?
8988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); }; }; then
8990   ac_cv_search_opendir="none required"
8991 else
8992   echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8994
8995 fi
8996 rm -f conftest.err conftest.$ac_objext \
8997       conftest$ac_exeext conftest.$ac_ext
8998 if test "$ac_cv_search_opendir" = no; then
8999   for ac_lib in dir; do
9000     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9001     cat >conftest.$ac_ext <<_ACEOF
9002 /* confdefs.h.  */
9003 _ACEOF
9004 cat confdefs.h >>conftest.$ac_ext
9005 cat >>conftest.$ac_ext <<_ACEOF
9006 /* end confdefs.h.  */
9007
9008 /* Override any gcc2 internal prototype to avoid an error.  */
9009 #ifdef __cplusplus
9010 extern "C"
9011 #endif
9012 /* We use char because int might match the return type of a gcc2
9013    builtin and then its argument prototype would still apply.  */
9014 char opendir ();
9015 int
9016 main ()
9017 {
9018 opendir ();
9019   ;
9020   return 0;
9021 }
9022 _ACEOF
9023 rm -f conftest.$ac_objext conftest$ac_exeext
9024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9025   (eval $ac_link) 2>conftest.er1
9026   ac_status=$?
9027   grep -v '^ *+' conftest.er1 >conftest.err
9028   rm -f conftest.er1
9029   cat conftest.err >&5
9030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031   (exit $ac_status); } &&
9032          { ac_try='test -z "$ac_c_werror_flag"
9033                          || test ! -s conftest.err'
9034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035   (eval $ac_try) 2>&5
9036   ac_status=$?
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); }; } &&
9039          { ac_try='test -s conftest$ac_exeext'
9040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041   (eval $ac_try) 2>&5
9042   ac_status=$?
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); }; }; then
9045   ac_cv_search_opendir="-l$ac_lib"
9046 break
9047 else
9048   echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9050
9051 fi
9052 rm -f conftest.err conftest.$ac_objext \
9053       conftest$ac_exeext conftest.$ac_ext
9054   done
9055 fi
9056 LIBS=$ac_func_search_save_LIBS
9057 fi
9058 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9059 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9060 if test "$ac_cv_search_opendir" != no; then
9061   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9062
9063 fi
9064
9065 else
9066   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9067 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9068 if test "${ac_cv_search_opendir+set}" = set; then
9069   echo $ECHO_N "(cached) $ECHO_C" >&6
9070 else
9071   ac_func_search_save_LIBS=$LIBS
9072 ac_cv_search_opendir=no
9073 cat >conftest.$ac_ext <<_ACEOF
9074 /* confdefs.h.  */
9075 _ACEOF
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h.  */
9079
9080 /* Override any gcc2 internal prototype to avoid an error.  */
9081 #ifdef __cplusplus
9082 extern "C"
9083 #endif
9084 /* We use char because int might match the return type of a gcc2
9085    builtin and then its argument prototype would still apply.  */
9086 char opendir ();
9087 int
9088 main ()
9089 {
9090 opendir ();
9091   ;
9092   return 0;
9093 }
9094 _ACEOF
9095 rm -f conftest.$ac_objext conftest$ac_exeext
9096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9097   (eval $ac_link) 2>conftest.er1
9098   ac_status=$?
9099   grep -v '^ *+' conftest.er1 >conftest.err
9100   rm -f conftest.er1
9101   cat conftest.err >&5
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   (exit $ac_status); } &&
9104          { ac_try='test -z "$ac_c_werror_flag"
9105                          || test ! -s conftest.err'
9106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107   (eval $ac_try) 2>&5
9108   ac_status=$?
9109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110   (exit $ac_status); }; } &&
9111          { ac_try='test -s conftest$ac_exeext'
9112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113   (eval $ac_try) 2>&5
9114   ac_status=$?
9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116   (exit $ac_status); }; }; then
9117   ac_cv_search_opendir="none required"
9118 else
9119   echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9121
9122 fi
9123 rm -f conftest.err conftest.$ac_objext \
9124       conftest$ac_exeext conftest.$ac_ext
9125 if test "$ac_cv_search_opendir" = no; then
9126   for ac_lib in x; do
9127     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9128     cat >conftest.$ac_ext <<_ACEOF
9129 /* confdefs.h.  */
9130 _ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h.  */
9134
9135 /* Override any gcc2 internal prototype to avoid an error.  */
9136 #ifdef __cplusplus
9137 extern "C"
9138 #endif
9139 /* We use char because int might match the return type of a gcc2
9140    builtin and then its argument prototype would still apply.  */
9141 char opendir ();
9142 int
9143 main ()
9144 {
9145 opendir ();
9146   ;
9147   return 0;
9148 }
9149 _ACEOF
9150 rm -f conftest.$ac_objext conftest$ac_exeext
9151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9152   (eval $ac_link) 2>conftest.er1
9153   ac_status=$?
9154   grep -v '^ *+' conftest.er1 >conftest.err
9155   rm -f conftest.er1
9156   cat conftest.err >&5
9157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158   (exit $ac_status); } &&
9159          { ac_try='test -z "$ac_c_werror_flag"
9160                          || test ! -s conftest.err'
9161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162   (eval $ac_try) 2>&5
9163   ac_status=$?
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); }; } &&
9166          { ac_try='test -s conftest$ac_exeext'
9167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168   (eval $ac_try) 2>&5
9169   ac_status=$?
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); }; }; then
9172   ac_cv_search_opendir="-l$ac_lib"
9173 break
9174 else
9175   echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9177
9178 fi
9179 rm -f conftest.err conftest.$ac_objext \
9180       conftest$ac_exeext conftest.$ac_ext
9181   done
9182 fi
9183 LIBS=$ac_func_search_save_LIBS
9184 fi
9185 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9186 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9187 if test "$ac_cv_search_opendir" != no; then
9188   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9189
9190 fi
9191
9192 fi
9193
9194  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9195 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9196 if test "${ac_cv_header_stdc+set}" = set; then
9197   echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199   cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h.  */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h.  */
9205 #include <stdlib.h>
9206 #include <stdarg.h>
9207 #include <string.h>
9208 #include <float.h>
9209
9210 int
9211 main ()
9212 {
9213
9214   ;
9215   return 0;
9216 }
9217 _ACEOF
9218 rm -f conftest.$ac_objext
9219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9220   (eval $ac_compile) 2>conftest.er1
9221   ac_status=$?
9222   grep -v '^ *+' conftest.er1 >conftest.err
9223   rm -f conftest.er1
9224   cat conftest.err >&5
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); } &&
9227          { ac_try='test -z "$ac_c_werror_flag"
9228                          || test ! -s conftest.err'
9229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230   (eval $ac_try) 2>&5
9231   ac_status=$?
9232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233   (exit $ac_status); }; } &&
9234          { ac_try='test -s conftest.$ac_objext'
9235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236   (eval $ac_try) 2>&5
9237   ac_status=$?
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); }; }; then
9240   ac_cv_header_stdc=yes
9241 else
9242   echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9244
9245 ac_cv_header_stdc=no
9246 fi
9247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9248
9249 if test $ac_cv_header_stdc = yes; then
9250   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 #include <string.h>
9258
9259 _ACEOF
9260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9261   $EGREP "memchr" >/dev/null 2>&1; then
9262   :
9263 else
9264   ac_cv_header_stdc=no
9265 fi
9266 rm -f conftest*
9267
9268 fi
9269
9270 if test $ac_cv_header_stdc = yes; then
9271   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9272   cat >conftest.$ac_ext <<_ACEOF
9273 /* confdefs.h.  */
9274 _ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h.  */
9278 #include <stdlib.h>
9279
9280 _ACEOF
9281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9282   $EGREP "free" >/dev/null 2>&1; then
9283   :
9284 else
9285   ac_cv_header_stdc=no
9286 fi
9287 rm -f conftest*
9288
9289 fi
9290
9291 if test $ac_cv_header_stdc = yes; then
9292   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9293   if test "$cross_compiling" = yes; then
9294   :
9295 else
9296   cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h.  */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h.  */
9302 #include <ctype.h>
9303 #if ((' ' & 0x0FF) == 0x020)
9304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9306 #else
9307 # define ISLOWER(c) \
9308                    (('a' <= (c) && (c) <= 'i') \
9309                      || ('j' <= (c) && (c) <= 'r') \
9310                      || ('s' <= (c) && (c) <= 'z'))
9311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9312 #endif
9313
9314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9315 int
9316 main ()
9317 {
9318   int i;
9319   for (i = 0; i < 256; i++)
9320     if (XOR (islower (i), ISLOWER (i))
9321         || toupper (i) != TOUPPER (i))
9322       exit(2);
9323   exit (0);
9324 }
9325 _ACEOF
9326 rm -f conftest$ac_exeext
9327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9328   (eval $ac_link) 2>&5
9329   ac_status=$?
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333   (eval $ac_try) 2>&5
9334   ac_status=$?
9335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336   (exit $ac_status); }; }; then
9337   :
9338 else
9339   echo "$as_me: program exited with status $ac_status" >&5
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9342
9343 ( exit $ac_status )
9344 ac_cv_header_stdc=no
9345 fi
9346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9347 fi
9348 fi
9349 fi
9350 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9351 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9352 if test $ac_cv_header_stdc = yes; then
9353
9354 cat >>confdefs.h <<\_ACEOF
9355 #define STDC_HEADERS 1
9356 _ACEOF
9357
9358 fi
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374 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
9375 do
9376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9378   echo "$as_me:$LINENO: checking for $ac_header" >&5
9379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9381   echo $ECHO_N "(cached) $ECHO_C" >&6
9382 fi
9383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9385 else
9386   # Is the header compilable?
9387 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9389 cat >conftest.$ac_ext <<_ACEOF
9390 /* confdefs.h.  */
9391 _ACEOF
9392 cat confdefs.h >>conftest.$ac_ext
9393 cat >>conftest.$ac_ext <<_ACEOF
9394 /* end confdefs.h.  */
9395 $ac_includes_default
9396 #include <$ac_header>
9397 _ACEOF
9398 rm -f conftest.$ac_objext
9399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9400   (eval $ac_compile) 2>conftest.er1
9401   ac_status=$?
9402   grep -v '^ *+' conftest.er1 >conftest.err
9403   rm -f conftest.er1
9404   cat conftest.err >&5
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); } &&
9407          { ac_try='test -z "$ac_c_werror_flag"
9408                          || test ! -s conftest.err'
9409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410   (eval $ac_try) 2>&5
9411   ac_status=$?
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); }; } &&
9414          { ac_try='test -s conftest.$ac_objext'
9415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416   (eval $ac_try) 2>&5
9417   ac_status=$?
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); }; }; then
9420   ac_header_compiler=yes
9421 else
9422   echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9424
9425 ac_header_compiler=no
9426 fi
9427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9428 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9429 echo "${ECHO_T}$ac_header_compiler" >&6
9430
9431 # Is the header present?
9432 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9434 cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h.  */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h.  */
9440 #include <$ac_header>
9441 _ACEOF
9442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9443   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9444   ac_status=$?
9445   grep -v '^ *+' conftest.er1 >conftest.err
9446   rm -f conftest.er1
9447   cat conftest.err >&5
9448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449   (exit $ac_status); } >/dev/null; then
9450   if test -s conftest.err; then
9451     ac_cpp_err=$ac_c_preproc_warn_flag
9452     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9453   else
9454     ac_cpp_err=
9455   fi
9456 else
9457   ac_cpp_err=yes
9458 fi
9459 if test -z "$ac_cpp_err"; then
9460   ac_header_preproc=yes
9461 else
9462   echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9464
9465   ac_header_preproc=no
9466 fi
9467 rm -f conftest.err conftest.$ac_ext
9468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9469 echo "${ECHO_T}$ac_header_preproc" >&6
9470
9471 # So?  What about this header?
9472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9473   yes:no: )
9474     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9478     ac_header_preproc=yes
9479     ;;
9480   no:yes:* )
9481     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9483     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9484 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9485     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9487     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9488 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9491     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9493     (
9494       cat <<\_ASBOX
9495 ## ------------------------------------------ ##
9496 ## Report this to the AC_PACKAGE_NAME lists.  ##
9497 ## ------------------------------------------ ##
9498 _ASBOX
9499     ) |
9500       sed "s/^/$as_me: WARNING:     /" >&2
9501     ;;
9502 esac
9503 echo "$as_me:$LINENO: checking for $ac_header" >&5
9504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9506   echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508   eval "$as_ac_Header=\$ac_header_preproc"
9509 fi
9510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9512
9513 fi
9514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9515   cat >>confdefs.h <<_ACEOF
9516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9517 _ACEOF
9518
9519 fi
9520
9521 done
9522
9523
9524 cat >>confdefs.h <<_ACEOF
9525 #define PACKAGE "$PACKAGE"
9526 _ACEOF
9527
9528 cat >>confdefs.h <<_ACEOF
9529 #define VERSION "$VERSION"
9530 _ACEOF
9531
9532
9533
9534
9535
9536
9537
9538  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9539 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9540 if test "${ac_cv_c_const+set}" = set; then
9541   echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543   cat >conftest.$ac_ext <<_ACEOF
9544 /* confdefs.h.  */
9545 _ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h.  */
9549
9550 int
9551 main ()
9552 {
9553 /* FIXME: Include the comments suggested by Paul. */
9554 #ifndef __cplusplus
9555   /* Ultrix mips cc rejects this.  */
9556   typedef int charset[2];
9557   const charset x;
9558   /* SunOS 4.1.1 cc rejects this.  */
9559   char const *const *ccp;
9560   char **p;
9561   /* NEC SVR4.0.2 mips cc rejects this.  */
9562   struct point {int x, y;};
9563   static struct point const zero = {0,0};
9564   /* AIX XL C 1.02.0.0 rejects this.
9565      It does not let you subtract one const X* pointer from another in
9566      an arm of an if-expression whose if-part is not a constant
9567      expression */
9568   const char *g = "string";
9569   ccp = &g + (g ? g-g : 0);
9570   /* HPUX 7.0 cc rejects these. */
9571   ++ccp;
9572   p = (char**) ccp;
9573   ccp = (char const *const *) p;
9574   { /* SCO 3.2v4 cc rejects this.  */
9575     char *t;
9576     char const *s = 0 ? (char *) 0 : (char const *) 0;
9577
9578     *t++ = 0;
9579   }
9580   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9581     int x[] = {25, 17};
9582     const int *foo = &x[0];
9583     ++foo;
9584   }
9585   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9586     typedef const int *iptr;
9587     iptr p = 0;
9588     ++p;
9589   }
9590   { /* AIX XL C 1.02.0.0 rejects this saying
9591        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9592     struct s { int j; const int *ap[3]; };
9593     struct s *b; b->j = 5;
9594   }
9595   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9596     const int foo = 10;
9597   }
9598 #endif
9599
9600   ;
9601   return 0;
9602 }
9603 _ACEOF
9604 rm -f conftest.$ac_objext
9605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9606   (eval $ac_compile) 2>conftest.er1
9607   ac_status=$?
9608   grep -v '^ *+' conftest.er1 >conftest.err
9609   rm -f conftest.er1
9610   cat conftest.err >&5
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); } &&
9613          { ac_try='test -z "$ac_c_werror_flag"
9614                          || test ! -s conftest.err'
9615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616   (eval $ac_try) 2>&5
9617   ac_status=$?
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); }; } &&
9620          { ac_try='test -s conftest.$ac_objext'
9621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622   (eval $ac_try) 2>&5
9623   ac_status=$?
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); }; }; then
9626   ac_cv_c_const=yes
9627 else
9628   echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9630
9631 ac_cv_c_const=no
9632 fi
9633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9634 fi
9635 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9636 echo "${ECHO_T}$ac_cv_c_const" >&6
9637 if test $ac_cv_c_const = no; then
9638
9639 cat >>confdefs.h <<\_ACEOF
9640 #define const
9641 _ACEOF
9642
9643 fi
9644
9645  echo "$as_me:$LINENO: checking for inline" >&5
9646 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9647 if test "${ac_cv_c_inline+set}" = set; then
9648   echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650   ac_cv_c_inline=no
9651 for ac_kw in inline __inline__ __inline; do
9652   cat >conftest.$ac_ext <<_ACEOF
9653 /* confdefs.h.  */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h.  */
9658 #ifndef __cplusplus
9659 typedef int foo_t;
9660 static $ac_kw foo_t static_foo () {return 0; }
9661 $ac_kw foo_t foo () {return 0; }
9662 #endif
9663
9664 _ACEOF
9665 rm -f conftest.$ac_objext
9666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9667   (eval $ac_compile) 2>conftest.er1
9668   ac_status=$?
9669   grep -v '^ *+' conftest.er1 >conftest.err
9670   rm -f conftest.er1
9671   cat conftest.err >&5
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); } &&
9674          { ac_try='test -z "$ac_c_werror_flag"
9675                          || test ! -s conftest.err'
9676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677   (eval $ac_try) 2>&5
9678   ac_status=$?
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); }; } &&
9681          { ac_try='test -s conftest.$ac_objext'
9682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683   (eval $ac_try) 2>&5
9684   ac_status=$?
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); }; }; then
9687   ac_cv_c_inline=$ac_kw; break
9688 else
9689   echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9691
9692 fi
9693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9694 done
9695
9696 fi
9697 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9698 echo "${ECHO_T}$ac_cv_c_inline" >&6
9699
9700
9701 case $ac_cv_c_inline in
9702   inline | yes) ;;
9703   *)
9704     case $ac_cv_c_inline in
9705       no) ac_val=;;
9706       *) ac_val=$ac_cv_c_inline;;
9707     esac
9708     cat >>confdefs.h <<_ACEOF
9709 #ifndef __cplusplus
9710 #define inline $ac_val
9711 #endif
9712 _ACEOF
9713     ;;
9714 esac
9715
9716  echo "$as_me:$LINENO: checking for off_t" >&5
9717 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9718 if test "${ac_cv_type_off_t+set}" = set; then
9719   echo $ECHO_N "(cached) $ECHO_C" >&6
9720 else
9721   cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h.  */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h.  */
9727 $ac_includes_default
9728 int
9729 main ()
9730 {
9731 if ((off_t *) 0)
9732   return 0;
9733 if (sizeof (off_t))
9734   return 0;
9735   ;
9736   return 0;
9737 }
9738 _ACEOF
9739 rm -f conftest.$ac_objext
9740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9741   (eval $ac_compile) 2>conftest.er1
9742   ac_status=$?
9743   grep -v '^ *+' conftest.er1 >conftest.err
9744   rm -f conftest.er1
9745   cat conftest.err >&5
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); } &&
9748          { ac_try='test -z "$ac_c_werror_flag"
9749                          || test ! -s conftest.err'
9750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751   (eval $ac_try) 2>&5
9752   ac_status=$?
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); }; } &&
9755          { ac_try='test -s conftest.$ac_objext'
9756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757   (eval $ac_try) 2>&5
9758   ac_status=$?
9759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760   (exit $ac_status); }; }; then
9761   ac_cv_type_off_t=yes
9762 else
9763   echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9765
9766 ac_cv_type_off_t=no
9767 fi
9768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9769 fi
9770 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9771 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9772 if test $ac_cv_type_off_t = yes; then
9773   :
9774 else
9775
9776 cat >>confdefs.h <<_ACEOF
9777 #define off_t long
9778 _ACEOF
9779
9780 fi
9781
9782  echo "$as_me:$LINENO: checking for size_t" >&5
9783 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9784 if test "${ac_cv_type_size_t+set}" = set; then
9785   echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787   cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h.  */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h.  */
9793 $ac_includes_default
9794 int
9795 main ()
9796 {
9797 if ((size_t *) 0)
9798   return 0;
9799 if (sizeof (size_t))
9800   return 0;
9801   ;
9802   return 0;
9803 }
9804 _ACEOF
9805 rm -f conftest.$ac_objext
9806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9807   (eval $ac_compile) 2>conftest.er1
9808   ac_status=$?
9809   grep -v '^ *+' conftest.er1 >conftest.err
9810   rm -f conftest.er1
9811   cat conftest.err >&5
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); } &&
9814          { ac_try='test -z "$ac_c_werror_flag"
9815                          || test ! -s conftest.err'
9816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817   (eval $ac_try) 2>&5
9818   ac_status=$?
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); }; } &&
9821          { ac_try='test -s conftest.$ac_objext'
9822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823   (eval $ac_try) 2>&5
9824   ac_status=$?
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); }; }; then
9827   ac_cv_type_size_t=yes
9828 else
9829   echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9831
9832 ac_cv_type_size_t=no
9833 fi
9834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9835 fi
9836 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9837 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9838 if test $ac_cv_type_size_t = yes; then
9839   :
9840 else
9841
9842 cat >>confdefs.h <<_ACEOF
9843 #define size_t unsigned
9844 _ACEOF
9845
9846 fi
9847
9848  echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9849 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9850 if test "${ac_cv_struct_tm+set}" = set; then
9851   echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853   cat >conftest.$ac_ext <<_ACEOF
9854 /* confdefs.h.  */
9855 _ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h.  */
9859 #include <sys/types.h>
9860 #include <time.h>
9861
9862 int
9863 main ()
9864 {
9865 struct tm *tp; tp->tm_sec;
9866   ;
9867   return 0;
9868 }
9869 _ACEOF
9870 rm -f conftest.$ac_objext
9871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9872   (eval $ac_compile) 2>conftest.er1
9873   ac_status=$?
9874   grep -v '^ *+' conftest.er1 >conftest.err
9875   rm -f conftest.er1
9876   cat conftest.err >&5
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); } &&
9879          { ac_try='test -z "$ac_c_werror_flag"
9880                          || test ! -s conftest.err'
9881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882   (eval $ac_try) 2>&5
9883   ac_status=$?
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); }; } &&
9886          { ac_try='test -s conftest.$ac_objext'
9887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888   (eval $ac_try) 2>&5
9889   ac_status=$?
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); }; }; then
9892   ac_cv_struct_tm=time.h
9893 else
9894   echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9896
9897 ac_cv_struct_tm=sys/time.h
9898 fi
9899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9900 fi
9901 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9902 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9903 if test $ac_cv_struct_tm = sys/time.h; then
9904
9905 cat >>confdefs.h <<\_ACEOF
9906 #define TM_IN_SYS_TIME 1
9907 _ACEOF
9908
9909 fi
9910
9911  echo "$as_me:$LINENO: checking for boolean" >&5
9912 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
9913 if test "${ac_cv_type_boolean+set}" = set; then
9914   echo $ECHO_N "(cached) $ECHO_C" >&6
9915 else
9916   cat >conftest.$ac_ext <<_ACEOF
9917 /* confdefs.h.  */
9918 _ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h.  */
9922 $ac_includes_default
9923 int
9924 main ()
9925 {
9926 if ((boolean *) 0)
9927   return 0;
9928 if (sizeof (boolean))
9929   return 0;
9930   ;
9931   return 0;
9932 }
9933 _ACEOF
9934 rm -f conftest.$ac_objext
9935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9936   (eval $ac_compile) 2>conftest.er1
9937   ac_status=$?
9938   grep -v '^ *+' conftest.er1 >conftest.err
9939   rm -f conftest.er1
9940   cat conftest.err >&5
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); } &&
9943          { ac_try='test -z "$ac_c_werror_flag"
9944                          || test ! -s conftest.err'
9945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946   (eval $ac_try) 2>&5
9947   ac_status=$?
9948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949   (exit $ac_status); }; } &&
9950          { ac_try='test -s conftest.$ac_objext'
9951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952   (eval $ac_try) 2>&5
9953   ac_status=$?
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); }; }; then
9956   ac_cv_type_boolean=yes
9957 else
9958   echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9960
9961 ac_cv_type_boolean=no
9962 fi
9963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9964 fi
9965 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
9966 echo "${ECHO_T}$ac_cv_type_boolean" >&6
9967 if test $ac_cv_type_boolean = yes; then
9968   :
9969 else
9970
9971 cat >>confdefs.h <<_ACEOF
9972 #define boolean int
9973 _ACEOF
9974
9975 fi
9976  #needed for jpeglib
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
9989 do
9990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9991 echo "$as_me:$LINENO: checking for $ac_func" >&5
9992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9993 if eval "test \"\${$as_ac_var+set}\" = set"; then
9994   echo $ECHO_N "(cached) $ECHO_C" >&6
9995 else
9996   cat >conftest.$ac_ext <<_ACEOF
9997 /* confdefs.h.  */
9998 _ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h.  */
10002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10004 #define $ac_func innocuous_$ac_func
10005
10006 /* System header to define __stub macros and hopefully few prototypes,
10007     which can conflict with char $ac_func (); below.
10008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10009     <limits.h> exists even on freestanding compilers.  */
10010
10011 #ifdef __STDC__
10012 # include <limits.h>
10013 #else
10014 # include <assert.h>
10015 #endif
10016
10017 #undef $ac_func
10018
10019 /* Override any gcc2 internal prototype to avoid an error.  */
10020 #ifdef __cplusplus
10021 extern "C"
10022 {
10023 #endif
10024 /* We use char because int might match the return type of a gcc2
10025    builtin and then its argument prototype would still apply.  */
10026 char $ac_func ();
10027 /* The GNU C library defines this for functions which it implements
10028     to always fail with ENOSYS.  Some functions are actually named
10029     something starting with __ and the normal name is an alias.  */
10030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10031 choke me
10032 #else
10033 char (*f) () = $ac_func;
10034 #endif
10035 #ifdef __cplusplus
10036 }
10037 #endif
10038
10039 int
10040 main ()
10041 {
10042 return f != $ac_func;
10043   ;
10044   return 0;
10045 }
10046 _ACEOF
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10049   (eval $ac_link) 2>conftest.er1
10050   ac_status=$?
10051   grep -v '^ *+' conftest.er1 >conftest.err
10052   rm -f conftest.er1
10053   cat conftest.err >&5
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); } &&
10056          { ac_try='test -z "$ac_c_werror_flag"
10057                          || test ! -s conftest.err'
10058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059   (eval $ac_try) 2>&5
10060   ac_status=$?
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); }; } &&
10063          { ac_try='test -s conftest$ac_exeext'
10064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065   (eval $ac_try) 2>&5
10066   ac_status=$?
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); }; }; then
10069   eval "$as_ac_var=yes"
10070 else
10071   echo "$as_me: failed program was:" >&5
10072 sed 's/^/| /' conftest.$ac_ext >&5
10073
10074 eval "$as_ac_var=no"
10075 fi
10076 rm -f conftest.err conftest.$ac_objext \
10077       conftest$ac_exeext conftest.$ac_ext
10078 fi
10079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10081 if test `eval echo '${'$as_ac_var'}'` = yes; then
10082   cat >>confdefs.h <<_ACEOF
10083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10084 _ACEOF
10085
10086 fi
10087 done
10088
10089
10090 # ------------------------------------------------------------------
10091
10092
10093
10094 # Extract the first word of "freetype-config", so it can be a program name with args.
10095 set dummy freetype-config; ac_word=$2
10096 echo "$as_me:$LINENO: checking for $ac_word" >&5
10097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10098 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
10099   echo $ECHO_N "(cached) $ECHO_C" >&6
10100 else
10101   case $FREETYPE_CONFIG in
10102   [\\/]* | ?:[\\/]*)
10103   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
10104   ;;
10105   *)
10106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
10108 for as_dir in $as_dummy
10109 do
10110   IFS=$as_save_IFS
10111   test -z "$as_dir" && as_dir=.
10112   for ac_exec_ext in '' $ac_executable_extensions; do
10113   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10114     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10116     break 2
10117   fi
10118 done
10119 done
10120
10121   ;;
10122 esac
10123 fi
10124 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
10125
10126 if test -n "$FREETYPE_CONFIG"; then
10127   echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
10128 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
10129 else
10130   echo "$as_me:$LINENO: result: no" >&5
10131 echo "${ECHO_T}no" >&6
10132 fi
10133
10134
10135 OLDCPPFLAGS="${CPPFLAGS}"
10136 OLDLIBS="${LIBS}"
10137 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10138     CPPFLAGS="$CPPFLAGS "`freetype-config --cflags`
10139 else if test -d /usr/include/freetype2; then
10140     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
10141 else if test -d /usr/local/include/freetype2; then
10142     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
10143 fi
10144 fi
10145 fi
10146
10147 if test "x${FREETYPE_CONFIG}" '=' "x";then
10148     # if we didn't find the freetype-config program, we won't
10149     # know where the libs are expected to be. So just blindly
10150     # try to link against them.
10151     echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10152 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10153 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10154   echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156   ac_check_lib_save_LIBS=$LIBS
10157 LIBS="-lfreetype  $LIBS"
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h.  */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h.  */
10164
10165 /* Override any gcc2 internal prototype to avoid an error.  */
10166 #ifdef __cplusplus
10167 extern "C"
10168 #endif
10169 /* We use char because int might match the return type of a gcc2
10170    builtin and then its argument prototype would still apply.  */
10171 char FT_Init_FreeType ();
10172 int
10173 main ()
10174 {
10175 FT_Init_FreeType ();
10176   ;
10177   return 0;
10178 }
10179 _ACEOF
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10182   (eval $ac_link) 2>conftest.er1
10183   ac_status=$?
10184   grep -v '^ *+' conftest.er1 >conftest.err
10185   rm -f conftest.er1
10186   cat conftest.err >&5
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); } &&
10189          { ac_try='test -z "$ac_c_werror_flag"
10190                          || test ! -s conftest.err'
10191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192   (eval $ac_try) 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); }; } &&
10196          { ac_try='test -s conftest$ac_exeext'
10197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198   (eval $ac_try) 2>&5
10199   ac_status=$?
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); }; }; then
10202   ac_cv_lib_freetype_FT_Init_FreeType=yes
10203 else
10204   echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10206
10207 ac_cv_lib_freetype_FT_Init_FreeType=no
10208 fi
10209 rm -f conftest.err conftest.$ac_objext \
10210       conftest$ac_exeext conftest.$ac_ext
10211 LIBS=$ac_check_lib_save_LIBS
10212 fi
10213 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10214 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10215 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10216   HAVE_LIB_FREETYPE=1
10217 fi
10218
10219 fi
10220
10221
10222 for ac_header in ft2build.h
10223 do
10224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10226   echo "$as_me:$LINENO: checking for $ac_header" >&5
10227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10229   echo $ECHO_N "(cached) $ECHO_C" >&6
10230 fi
10231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10233 else
10234   # Is the header compilable?
10235 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10237 cat >conftest.$ac_ext <<_ACEOF
10238 /* confdefs.h.  */
10239 _ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h.  */
10243 $ac_includes_default
10244 #include <$ac_header>
10245 _ACEOF
10246 rm -f conftest.$ac_objext
10247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10248   (eval $ac_compile) 2>conftest.er1
10249   ac_status=$?
10250   grep -v '^ *+' conftest.er1 >conftest.err
10251   rm -f conftest.er1
10252   cat conftest.err >&5
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); } &&
10255          { ac_try='test -z "$ac_c_werror_flag"
10256                          || test ! -s conftest.err'
10257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258   (eval $ac_try) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; } &&
10262          { ac_try='test -s conftest.$ac_objext'
10263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264   (eval $ac_try) 2>&5
10265   ac_status=$?
10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267   (exit $ac_status); }; }; then
10268   ac_header_compiler=yes
10269 else
10270   echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10272
10273 ac_header_compiler=no
10274 fi
10275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10277 echo "${ECHO_T}$ac_header_compiler" >&6
10278
10279 # Is the header present?
10280 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10282 cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h.  */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h.  */
10288 #include <$ac_header>
10289 _ACEOF
10290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10291   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10292   ac_status=$?
10293   grep -v '^ *+' conftest.er1 >conftest.err
10294   rm -f conftest.er1
10295   cat conftest.err >&5
10296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); } >/dev/null; then
10298   if test -s conftest.err; then
10299     ac_cpp_err=$ac_c_preproc_warn_flag
10300     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10301   else
10302     ac_cpp_err=
10303   fi
10304 else
10305   ac_cpp_err=yes
10306 fi
10307 if test -z "$ac_cpp_err"; then
10308   ac_header_preproc=yes
10309 else
10310   echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10312
10313   ac_header_preproc=no
10314 fi
10315 rm -f conftest.err conftest.$ac_ext
10316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10317 echo "${ECHO_T}$ac_header_preproc" >&6
10318
10319 # So?  What about this header?
10320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10321   yes:no: )
10322     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10326     ac_header_preproc=yes
10327     ;;
10328   no:yes:* )
10329     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10331     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10332 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10333     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10335     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10336 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10339     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10341     (
10342       cat <<\_ASBOX
10343 ## ------------------------------------------ ##
10344 ## Report this to the AC_PACKAGE_NAME lists.  ##
10345 ## ------------------------------------------ ##
10346 _ASBOX
10347     ) |
10348       sed "s/^/$as_me: WARNING:     /" >&2
10349     ;;
10350 esac
10351 echo "$as_me:$LINENO: checking for $ac_header" >&5
10352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10354   echo $ECHO_N "(cached) $ECHO_C" >&6
10355 else
10356   eval "$as_ac_Header=\$ac_header_preproc"
10357 fi
10358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10360
10361 fi
10362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10363   cat >>confdefs.h <<_ACEOF
10364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10365 _ACEOF
10366  HAVE_FT2BUILD_H=1
10367 fi
10368
10369 done
10370
10371 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
10372
10373 for ac_header in freetype/freetype.h
10374 do
10375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10377   echo "$as_me:$LINENO: checking for $ac_header" >&5
10378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10380   echo $ECHO_N "(cached) $ECHO_C" >&6
10381 fi
10382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10384 else
10385   # Is the header compilable?
10386 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10388 cat >conftest.$ac_ext <<_ACEOF
10389 /* confdefs.h.  */
10390 _ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h.  */
10394 $ac_includes_default
10395 #include <$ac_header>
10396 _ACEOF
10397 rm -f conftest.$ac_objext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10399   (eval $ac_compile) 2>conftest.er1
10400   ac_status=$?
10401   grep -v '^ *+' conftest.er1 >conftest.err
10402   rm -f conftest.er1
10403   cat conftest.err >&5
10404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405   (exit $ac_status); } &&
10406          { ac_try='test -z "$ac_c_werror_flag"
10407                          || test ! -s conftest.err'
10408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409   (eval $ac_try) 2>&5
10410   ac_status=$?
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); }; } &&
10413          { ac_try='test -s conftest.$ac_objext'
10414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415   (eval $ac_try) 2>&5
10416   ac_status=$?
10417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418   (exit $ac_status); }; }; then
10419   ac_header_compiler=yes
10420 else
10421   echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10423
10424 ac_header_compiler=no
10425 fi
10426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10428 echo "${ECHO_T}$ac_header_compiler" >&6
10429
10430 # Is the header present?
10431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h.  */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h.  */
10439 #include <$ac_header>
10440 _ACEOF
10441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10442   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10443   ac_status=$?
10444   grep -v '^ *+' conftest.er1 >conftest.err
10445   rm -f conftest.er1
10446   cat conftest.err >&5
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); } >/dev/null; then
10449   if test -s conftest.err; then
10450     ac_cpp_err=$ac_c_preproc_warn_flag
10451     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10452   else
10453     ac_cpp_err=
10454   fi
10455 else
10456   ac_cpp_err=yes
10457 fi
10458 if test -z "$ac_cpp_err"; then
10459   ac_header_preproc=yes
10460 else
10461   echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10463
10464   ac_header_preproc=no
10465 fi
10466 rm -f conftest.err conftest.$ac_ext
10467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10468 echo "${ECHO_T}$ac_header_preproc" >&6
10469
10470 # So?  What about this header?
10471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10472   yes:no: )
10473     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10477     ac_header_preproc=yes
10478     ;;
10479   no:yes:* )
10480     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10482     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10483 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10484     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10486     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10487 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10488     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10490     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10492     (
10493       cat <<\_ASBOX
10494 ## ------------------------------------------ ##
10495 ## Report this to the AC_PACKAGE_NAME lists.  ##
10496 ## ------------------------------------------ ##
10497 _ASBOX
10498     ) |
10499       sed "s/^/$as_me: WARNING:     /" >&2
10500     ;;
10501 esac
10502 echo "$as_me:$LINENO: checking for $ac_header" >&5
10503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10505   echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507   eval "$as_ac_Header=\$ac_header_preproc"
10508 fi
10509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10511
10512 fi
10513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10514   cat >>confdefs.h <<_ACEOF
10515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10516 _ACEOF
10517  HAVE_FREETYPE_FREETYPE_H=1
10518 fi
10519
10520 done
10521
10522 fi
10523
10524 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
10525         "x${FREETYPE_CONFIG}" '!=' "x";then
10526     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
10527         HAVE_FREETYPE=1
10528     fi
10529     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
10530         HAVE_FREETYPE=1
10531     fi
10532 fi
10533
10534 if test "x${HAVE_FREETYPE}" = "x1"; then
10535     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10536         LIBS="$LIBS "`freetype-config --libs`
10537     else
10538         LIBS="$LIBS -lfreetype"
10539     fi
10540
10541     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
10542         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
10543     fi
10544
10545     echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
10546 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
10547
10548     cat > conftest.c << EOF
10549 $HAVE_FT2BUILD_H_DEFINE
10550
10551 #ifdef HAVE_FT2BUILD_H
10552 #include <ft2build.h>
10553 #include FT_FREETYPE_H
10554 #include FT_GLYPH_H
10555 #include FT_SIZES_H
10556 #include FT_SFNT_NAMES_H
10557 #include FT_TRUETYPE_IDS_H
10558 #include FT_OUTLINE_H
10559 #else
10560 #include <freetype/freetype.h>
10561 #include <freetype/ftglyph.h>
10562 #include <freetype/ftsizes.h>
10563 #include <freetype/ftsnames.h>
10564 #include <freetype/ttnameid.h>
10565 #include <freetype/ftoutln.h>
10566 #endif
10567
10568 int main()
10569 {
10570     FT_Library ftlibrary;
10571     FT_Face face;
10572     FT_Error error;
10573     FT_ULong charcode;
10574     FT_UInt gindex;
10575     FT_Glyph glyph;
10576     FT_BBox bbox;
10577     FT_Matrix matrix;
10578     FT_UInt i;
10579     char* name = 0;
10580     char italic, bold;
10581
10582     FT_Init_FreeType(&ftlibrary);
10583     FT_New_Face(ftlibrary, "filename", 0, &face);
10584     i = face->num_glyphs - 1;
10585     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
10586     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
10587     FT_Get_Postscript_Name(face);
10588     FT_Get_Char_Index(face, 33);
10589     FT_Get_First_Char(face, &i);
10590     FT_Get_Next_Char(face, 33, &i);
10591     if(FT_HAS_GLYPH_NAMES(face)) {
10592         FT_Get_Glyph_Name(face, 33, name, 127);
10593     }
10594     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
10595     FT_Get_Glyph(face->glyph, &glyph);
10596     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
10597     FT_Done_Glyph(glyph);
10598     FT_Done_Face(face);
10599     FT_Done_FreeType(ftlibrary);
10600     return 0;
10601 }
10602 EOF
10603
10604     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10605     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10606         echo "$as_me:$LINENO: result: yes" >&5
10607 echo "${ECHO_T}yes" >&6
10608         cat >>confdefs.h <<_ACEOF
10609 #define HAVE_FREETYPE 1
10610 _ACEOF
10611
10612         cat >>confdefs.h <<_ACEOF
10613 #define USE_FREETYPE 1
10614 _ACEOF
10615   # for ttf2tp1
10616     else
10617         echo "configure: failed program was:" >&5
10618         cat conftest.c >&5
10619         HAVE_FREETYPE=0
10620         echo "$as_me:$LINENO: result: no" >&5
10621 echo "${ECHO_T}no" >&6
10622     fi
10623     rm -f conftest*
10624 fi
10625
10626 # if the above didn't work out, reset all changes to the compiler variables.
10627 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
10628     CPPFLAGS=$OLDCPPFLAGS
10629     LIBS=$OLDLIBS
10630 fi
10631
10632
10633
10634 OLDCPPFLAGS="${CPPFLAGS}"
10635 OLDLIBS="${LIBS}"
10636
10637 if test -d /usr/include/fontconfig; then
10638     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
10639 fi
10640
10641 echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
10642 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
10643 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
10644   echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646   ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-lfontconfig  $LIBS"
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h.  */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h.  */
10654
10655 /* Override any gcc2 internal prototype to avoid an error.  */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 /* We use char because int might match the return type of a gcc2
10660    builtin and then its argument prototype would still apply.  */
10661 char FcInit ();
10662 int
10663 main ()
10664 {
10665 FcInit ();
10666   ;
10667   return 0;
10668 }
10669 _ACEOF
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672   (eval $ac_link) 2>conftest.er1
10673   ac_status=$?
10674   grep -v '^ *+' conftest.er1 >conftest.err
10675   rm -f conftest.er1
10676   cat conftest.err >&5
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); } &&
10679          { ac_try='test -z "$ac_c_werror_flag"
10680                          || test ! -s conftest.err'
10681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682   (eval $ac_try) 2>&5
10683   ac_status=$?
10684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685   (exit $ac_status); }; } &&
10686          { ac_try='test -s conftest$ac_exeext'
10687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688   (eval $ac_try) 2>&5
10689   ac_status=$?
10690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); }; }; then
10692   ac_cv_lib_fontconfig_FcInit=yes
10693 else
10694   echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10696
10697 ac_cv_lib_fontconfig_FcInit=no
10698 fi
10699 rm -f conftest.err conftest.$ac_objext \
10700       conftest$ac_exeext conftest.$ac_ext
10701 LIBS=$ac_check_lib_save_LIBS
10702 fi
10703 echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
10704 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
10705 if test $ac_cv_lib_fontconfig_FcInit = yes; then
10706   HAVE_LIB_FONTCONFIG=1
10707 fi
10708
10709
10710 for ac_header in fontconfig.h
10711 do
10712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10714   echo "$as_me:$LINENO: checking for $ac_header" >&5
10715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10717   echo $ECHO_N "(cached) $ECHO_C" >&6
10718 fi
10719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10721 else
10722   # Is the header compilable?
10723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10725 cat >conftest.$ac_ext <<_ACEOF
10726 /* confdefs.h.  */
10727 _ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h.  */
10731 $ac_includes_default
10732 #include <$ac_header>
10733 _ACEOF
10734 rm -f conftest.$ac_objext
10735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10736   (eval $ac_compile) 2>conftest.er1
10737   ac_status=$?
10738   grep -v '^ *+' conftest.er1 >conftest.err
10739   rm -f conftest.er1
10740   cat conftest.err >&5
10741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); } &&
10743          { ac_try='test -z "$ac_c_werror_flag"
10744                          || test ! -s conftest.err'
10745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746   (eval $ac_try) 2>&5
10747   ac_status=$?
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); }; } &&
10750          { ac_try='test -s conftest.$ac_objext'
10751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752   (eval $ac_try) 2>&5
10753   ac_status=$?
10754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755   (exit $ac_status); }; }; then
10756   ac_header_compiler=yes
10757 else
10758   echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10760
10761 ac_header_compiler=no
10762 fi
10763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10765 echo "${ECHO_T}$ac_header_compiler" >&6
10766
10767 # Is the header present?
10768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10770 cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h.  */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h.  */
10776 #include <$ac_header>
10777 _ACEOF
10778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10780   ac_status=$?
10781   grep -v '^ *+' conftest.er1 >conftest.err
10782   rm -f conftest.er1
10783   cat conftest.err >&5
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } >/dev/null; then
10786   if test -s conftest.err; then
10787     ac_cpp_err=$ac_c_preproc_warn_flag
10788     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10789   else
10790     ac_cpp_err=
10791   fi
10792 else
10793   ac_cpp_err=yes
10794 fi
10795 if test -z "$ac_cpp_err"; then
10796   ac_header_preproc=yes
10797 else
10798   echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10800
10801   ac_header_preproc=no
10802 fi
10803 rm -f conftest.err conftest.$ac_ext
10804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10805 echo "${ECHO_T}$ac_header_preproc" >&6
10806
10807 # So?  What about this header?
10808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10809   yes:no: )
10810     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10814     ac_header_preproc=yes
10815     ;;
10816   no:yes:* )
10817     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10819     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10820 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10821     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10823     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10824 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10827     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10829     (
10830       cat <<\_ASBOX
10831 ## ------------------------------------------ ##
10832 ## Report this to the AC_PACKAGE_NAME lists.  ##
10833 ## ------------------------------------------ ##
10834 _ASBOX
10835     ) |
10836       sed "s/^/$as_me: WARNING:     /" >&2
10837     ;;
10838 esac
10839 echo "$as_me:$LINENO: checking for $ac_header" >&5
10840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10842   echo $ECHO_N "(cached) $ECHO_C" >&6
10843 else
10844   eval "$as_ac_Header=\$ac_header_preproc"
10845 fi
10846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10848
10849 fi
10850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10851   cat >>confdefs.h <<_ACEOF
10852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10853 _ACEOF
10854  HAVE_FONTCONFIG_H=1
10855 fi
10856
10857 done
10858
10859
10860 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
10861 if test "x${HAVE_FONTCONFIG_H}" != "x";then
10862     HAVE_FONTCONFIG=1
10863 fi
10864 fi
10865
10866 if test "x${HAVE_FONTCONFIG}" = "x1"; then
10867     LIBS="$LIBS -lfontconfig"
10868 echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
10869 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6
10870
10871 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
10872     #move freetype library to the end of libraries, otherwise fontconfig
10873     #won't compile.
10874     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
10875 fi
10876
10877 cat > conftest.c << EOF
10878 #include <fontconfig.h>
10879
10880 int main()
10881 {
10882     FcPattern *pattern, *match;
10883     FcResult result;
10884     FcChar8 *v;
10885     FcInit();
10886     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
10887     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
10888     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
10889     FcConfigSubstitute(0, pattern, FcMatchPattern);
10890     FcDefaultSubstitute(pattern);
10891     match = FcFontMatch(0, pattern, &result);
10892     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
10893     FcPatternPrint(pattern);
10894     FcPatternDestroy(pattern);
10895     FcPatternDestroy(match);
10896     return 0;
10897 }
10898 EOF
10899
10900     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10901     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10902         echo "$as_me:$LINENO: result: yes" >&5
10903 echo "${ECHO_T}yes" >&6
10904         cat >>confdefs.h <<_ACEOF
10905 #define HAVE_FONTCONFIG 1
10906 _ACEOF
10907
10908     else
10909         echo "configure: failed program was:" >&5
10910         cat conftest.c >&5
10911         HAVE_FONTCONFIG=0
10912         echo "$as_me:$LINENO: result: no" >&5
10913 echo "${ECHO_T}no" >&6
10914     fi
10915     rm -f conftest*
10916 fi
10917
10918 # if the above didn't work out, reset all changes to the compiler variables.
10919 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
10920     CPPFLAGS=$OLDCPPFLAGS
10921     LIBS=$OLDLIBS
10922 fi
10923
10924
10925 # ------------------------------------------------------------------
10926
10927 lame_objects=
10928 lame_makefile=
10929 if test "x${DISABLE_LAME}" = "xtrue"; then
10930     echo "*" Disabling lame support...
10931 else
10932     # old lame code at lib/lame
10933     if test -f lib/lame/Makefile.in; then
10934         lame_objects="lame/psymodel.\$(O) lame/fft.\$(O) lame/newmdct.\$(O) lame/quantize.\$(O) lame/takehiro.\$(O) lame/reservoir.\$(O) lame/quantize_pvt.\$(O) lame/vbrquantize.\$(O) lame/encoder.\$(O) lame/id3tag.\$(O) lame/version.\$(O) lame/tables.\$(O) lame/util.\$(O) lame/bitstream.\$(O) lame/set_get.\$(O) lame/VbrTag.\$(O) lame/lame.\$(O)"
10935         lame_makefile="lib/lame/Makefile"
10936         CPPFLAGS="$CPPFLAGS -Ilame"
10937         cat >>confdefs.h <<_ACEOF
10938 #define HAVE_LAME 1
10939 _ACEOF
10940
10941     else
10942         if test -d /usr/include/lame; then
10943             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
10944         else
10945             if test -d /usr/local/include/lame; then
10946                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
10947             fi
10948         fi
10949
10950 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
10951 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
10952 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
10953   echo $ECHO_N "(cached) $ECHO_C" >&6
10954 else
10955   ac_check_lib_save_LIBS=$LIBS
10956 LIBS="-lmp3lame  $LIBS"
10957 cat >conftest.$ac_ext <<_ACEOF
10958 /* confdefs.h.  */
10959 _ACEOF
10960 cat confdefs.h >>conftest.$ac_ext
10961 cat >>conftest.$ac_ext <<_ACEOF
10962 /* end confdefs.h.  */
10963
10964 /* Override any gcc2 internal prototype to avoid an error.  */
10965 #ifdef __cplusplus
10966 extern "C"
10967 #endif
10968 /* We use char because int might match the return type of a gcc2
10969    builtin and then its argument prototype would still apply.  */
10970 char lame_init ();
10971 int
10972 main ()
10973 {
10974 lame_init ();
10975   ;
10976   return 0;
10977 }
10978 _ACEOF
10979 rm -f conftest.$ac_objext conftest$ac_exeext
10980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10981   (eval $ac_link) 2>conftest.er1
10982   ac_status=$?
10983   grep -v '^ *+' conftest.er1 >conftest.err
10984   rm -f conftest.er1
10985   cat conftest.err >&5
10986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987   (exit $ac_status); } &&
10988          { ac_try='test -z "$ac_c_werror_flag"
10989                          || test ! -s conftest.err'
10990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991   (eval $ac_try) 2>&5
10992   ac_status=$?
10993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994   (exit $ac_status); }; } &&
10995          { ac_try='test -s conftest$ac_exeext'
10996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997   (eval $ac_try) 2>&5
10998   ac_status=$?
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); }; }; then
11001   ac_cv_lib_mp3lame_lame_init=yes
11002 else
11003   echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11005
11006 ac_cv_lib_mp3lame_lame_init=no
11007 fi
11008 rm -f conftest.err conftest.$ac_objext \
11009       conftest$ac_exeext conftest.$ac_ext
11010 LIBS=$ac_check_lib_save_LIBS
11011 fi
11012 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
11013 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
11014 if test $ac_cv_lib_mp3lame_lame_init = yes; then
11015   cat >>confdefs.h <<_ACEOF
11016 #define HAVE_LIBMP3LAME 1
11017 _ACEOF
11018
11019   LIBS="-lmp3lame $LIBS"
11020
11021 else
11022   NO_LIBMP3LAME=1
11023 fi
11024
11025
11026 for ac_header in lame.h
11027 do
11028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11030   echo "$as_me:$LINENO: checking for $ac_header" >&5
11031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11033   echo $ECHO_N "(cached) $ECHO_C" >&6
11034 fi
11035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11037 else
11038   # Is the header compilable?
11039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11041 cat >conftest.$ac_ext <<_ACEOF
11042 /* confdefs.h.  */
11043 _ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h.  */
11047 $ac_includes_default
11048 #include <$ac_header>
11049 _ACEOF
11050 rm -f conftest.$ac_objext
11051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11052   (eval $ac_compile) 2>conftest.er1
11053   ac_status=$?
11054   grep -v '^ *+' conftest.er1 >conftest.err
11055   rm -f conftest.er1
11056   cat conftest.err >&5
11057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); } &&
11059          { ac_try='test -z "$ac_c_werror_flag"
11060                          || test ! -s conftest.err'
11061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11062   (eval $ac_try) 2>&5
11063   ac_status=$?
11064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065   (exit $ac_status); }; } &&
11066          { ac_try='test -s conftest.$ac_objext'
11067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068   (eval $ac_try) 2>&5
11069   ac_status=$?
11070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071   (exit $ac_status); }; }; then
11072   ac_header_compiler=yes
11073 else
11074   echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11076
11077 ac_header_compiler=no
11078 fi
11079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11080 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11081 echo "${ECHO_T}$ac_header_compiler" >&6
11082
11083 # Is the header present?
11084 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11086 cat >conftest.$ac_ext <<_ACEOF
11087 /* confdefs.h.  */
11088 _ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h.  */
11092 #include <$ac_header>
11093 _ACEOF
11094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11096   ac_status=$?
11097   grep -v '^ *+' conftest.er1 >conftest.err
11098   rm -f conftest.er1
11099   cat conftest.err >&5
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); } >/dev/null; then
11102   if test -s conftest.err; then
11103     ac_cpp_err=$ac_c_preproc_warn_flag
11104     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11105   else
11106     ac_cpp_err=
11107   fi
11108 else
11109   ac_cpp_err=yes
11110 fi
11111 if test -z "$ac_cpp_err"; then
11112   ac_header_preproc=yes
11113 else
11114   echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11116
11117   ac_header_preproc=no
11118 fi
11119 rm -f conftest.err conftest.$ac_ext
11120 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11121 echo "${ECHO_T}$ac_header_preproc" >&6
11122
11123 # So?  What about this header?
11124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11125   yes:no: )
11126     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11130     ac_header_preproc=yes
11131     ;;
11132   no:yes:* )
11133     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11135     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11136 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11137     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11139     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11140 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11143     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11145     (
11146       cat <<\_ASBOX
11147 ## ------------------------------------------ ##
11148 ## Report this to the AC_PACKAGE_NAME lists.  ##
11149 ## ------------------------------------------ ##
11150 _ASBOX
11151     ) |
11152       sed "s/^/$as_me: WARNING:     /" >&2
11153     ;;
11154 esac
11155 echo "$as_me:$LINENO: checking for $ac_header" >&5
11156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11158   echo $ECHO_N "(cached) $ECHO_C" >&6
11159 else
11160   eval "$as_ac_Header=\$ac_header_preproc"
11161 fi
11162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11164
11165 fi
11166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11167   cat >>confdefs.h <<_ACEOF
11168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11169 _ACEOF
11170
11171 fi
11172
11173 done
11174
11175         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
11176             cat >>confdefs.h <<_ACEOF
11177 #define HAVE_LAME 1
11178 _ACEOF
11179
11180         fi
11181     fi
11182 fi
11183
11184
11185 # ------------------------------------------------------------------
11186
11187
11188
11189 for ac_prog in avifile-config
11190 do
11191   # Extract the first word of "$ac_prog", so it can be a program name with args.
11192 set dummy $ac_prog; ac_word=$2
11193 echo "$as_me:$LINENO: checking for $ac_word" >&5
11194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11195 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
11196   echo $ECHO_N "(cached) $ECHO_C" >&6
11197 else
11198   if test -n "$AVIFILE_CONFIG"; then
11199   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
11200 else
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11203 do
11204   IFS=$as_save_IFS
11205   test -z "$as_dir" && as_dir=.
11206   for ac_exec_ext in '' $ac_executable_extensions; do
11207   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11208     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
11209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11210     break 2
11211   fi
11212 done
11213 done
11214
11215 fi
11216 fi
11217 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
11218 if test -n "$AVIFILE_CONFIG"; then
11219   echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
11220 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
11221 else
11222   echo "$as_me:$LINENO: result: no" >&5
11223 echo "${ECHO_T}no" >&6
11224 fi
11225
11226   test -n "$AVIFILE_CONFIG" && break
11227 done
11228
11229
11230 if test "x$AVIFILE_CONFIG" '!=' "x";then
11231     OLDCPPFLAGS="$CPPFLAGS"
11232     # temporarily add avifile paths to CPPFLAGS...
11233     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
11234
11235
11236 for ac_header in avifile/version.h version.h
11237 do
11238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11240   echo "$as_me:$LINENO: checking for $ac_header" >&5
11241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11243   echo $ECHO_N "(cached) $ECHO_C" >&6
11244 fi
11245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11247 else
11248   # Is the header compilable?
11249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11251 cat >conftest.$ac_ext <<_ACEOF
11252 /* confdefs.h.  */
11253 _ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h.  */
11257 $ac_includes_default
11258 #include <$ac_header>
11259 _ACEOF
11260 rm -f conftest.$ac_objext
11261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11262   (eval $ac_compile) 2>conftest.er1
11263   ac_status=$?
11264   grep -v '^ *+' conftest.er1 >conftest.err
11265   rm -f conftest.er1
11266   cat conftest.err >&5
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); } &&
11269          { ac_try='test -z "$ac_c_werror_flag"
11270                          || test ! -s conftest.err'
11271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272   (eval $ac_try) 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; } &&
11276          { ac_try='test -s conftest.$ac_objext'
11277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278   (eval $ac_try) 2>&5
11279   ac_status=$?
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); }; }; then
11282   ac_header_compiler=yes
11283 else
11284   echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11286
11287 ac_header_compiler=no
11288 fi
11289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11291 echo "${ECHO_T}$ac_header_compiler" >&6
11292
11293 # Is the header present?
11294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11296 cat >conftest.$ac_ext <<_ACEOF
11297 /* confdefs.h.  */
11298 _ACEOF
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h.  */
11302 #include <$ac_header>
11303 _ACEOF
11304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11306   ac_status=$?
11307   grep -v '^ *+' conftest.er1 >conftest.err
11308   rm -f conftest.er1
11309   cat conftest.err >&5
11310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); } >/dev/null; then
11312   if test -s conftest.err; then
11313     ac_cpp_err=$ac_c_preproc_warn_flag
11314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11315   else
11316     ac_cpp_err=
11317   fi
11318 else
11319   ac_cpp_err=yes
11320 fi
11321 if test -z "$ac_cpp_err"; then
11322   ac_header_preproc=yes
11323 else
11324   echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11326
11327   ac_header_preproc=no
11328 fi
11329 rm -f conftest.err conftest.$ac_ext
11330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11331 echo "${ECHO_T}$ac_header_preproc" >&6
11332
11333 # So?  What about this header?
11334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11335   yes:no: )
11336     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11340     ac_header_preproc=yes
11341     ;;
11342   no:yes:* )
11343     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11345     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11346 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11347     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11349     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11350 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11353     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11355     (
11356       cat <<\_ASBOX
11357 ## ------------------------------------------ ##
11358 ## Report this to the AC_PACKAGE_NAME lists.  ##
11359 ## ------------------------------------------ ##
11360 _ASBOX
11361     ) |
11362       sed "s/^/$as_me: WARNING:     /" >&2
11363     ;;
11364 esac
11365 echo "$as_me:$LINENO: checking for $ac_header" >&5
11366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11368   echo $ECHO_N "(cached) $ECHO_C" >&6
11369 else
11370   eval "$as_ac_Header=\$ac_header_preproc"
11371 fi
11372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11374
11375 fi
11376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11377   cat >>confdefs.h <<_ACEOF
11378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11379 _ACEOF
11380
11381 fi
11382
11383 done
11384
11385     # ... and reset
11386     CPPFLAGS="$OLDCPPFLAGS"
11387 fi
11388
11389 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
11390 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
11391
11392 if test "x${ac_cv_header_version_h}" '=' "xyes";then
11393     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
11394 fi
11395 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
11396     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
11397 fi
11398
11399 cat > conftest.cpp << EOF
11400
11401 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
11402 // so we have to introduce them this way
11403 $HAVE_VERSION_H_DEFINE
11404 $HAVE_AVIFILE_VERSION_H_DEFINE
11405
11406 #ifdef HAVE_VERSION_H
11407   #include <version.h>
11408 #endif
11409 #ifdef HAVE_AVIFILE_VERSION_H
11410   #include <avifile/version.h>
11411 #endif
11412
11413 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
11414    #include <avifile.h>
11415    #include <aviplay.h>
11416    #include <fourcc.h>
11417    #include <creators.h>
11418    #include <StreamInfo.h>
11419    #define VERSION6
11420 #else
11421    #include <avifile.h>
11422    #include <aviplay.h>
11423    #include <aviutil.h>
11424    #define Width width
11425    #define Height height
11426    #define Data data
11427    #define Bpp bpp
11428 #endif
11429
11430 void test()
11431 {
11432   IAviReadFile* player;
11433   IAviReadStream* astream;
11434   IAviReadStream* vstream;
11435   player = CreateIAviReadFile(0);
11436   astream = player->GetStream(0, AviStream::Audio);
11437   vstream = player->GetStream(0, AviStream::Video);
11438   vstream -> StartStreaming();
11439   astream -> StartStreaming();
11440 #ifndef VERSION6
11441   MainAVIHeader head;
11442   player->GetFileHeader(&head);
11443   head.dwMicroSecPerFrame;
11444   head.dwTotalFrames;
11445   head.dwStreams;
11446   head.dwWidth;
11447   head.dwHeight;
11448   head.dwMicroSecPerFrame;
11449   astream->GetEndPos(),
11450   astream->GetEndTime());
11451   player->StreamCount();
11452 #else
11453   StreamInfo*audioinfo;
11454   StreamInfo*videoinfo;
11455   audioinfo = astream->GetStreamInfo();
11456   videoinfo = vstream->GetStreamInfo();
11457   videoinfo->GetVideoWidth();
11458   videoinfo->GetVideoHeight();
11459   audioinfo->GetAudioSamplesPerSec();
11460   videoinfo->GetFps();
11461 #endif
11462   CImage*img = vstream->GetFrame();
11463   img->ToRGB();
11464   img->Data();
11465   img->Bpp();
11466   img->Width();
11467   img->Height();
11468   WAVEFORMATEX wave;
11469   astream->GetAudioFormatInfo(&wave,0);
11470   uint_t a,b;
11471   astream->ReadFrames(0,0,0,a,b);
11472 }
11473 int main (int argc, char*argv)
11474 {
11475     return 0;
11476 }
11477 EOF
11478
11479 if test "x$AVIFILE_CONFIG" '!=' "x";then
11480     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
11481     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
11482     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
11483     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
11484       echo "$as_me:$LINENO: result: yes" >&5
11485 echo "${ECHO_T}yes" >&6
11486       AVIFILE=true
11487       export AVIFILE
11488       cat >>confdefs.h <<_ACEOF
11489 #define AVIFILE true
11490 _ACEOF
11491
11492     else
11493       echo "configure: failed program was:" >&5
11494       cat conftest.cpp >&5
11495       echo "$as_me:$LINENO: result: no" >&5
11496 echo "${ECHO_T}no" >&6
11497     fi
11498 else
11499     echo "$as_me:$LINENO: result: no" >&5
11500 echo "${ECHO_T}no" >&6
11501 fi
11502 rm -f conftest*
11503
11504 if test "x${AVIFILE}" = "xtrue"; then
11505     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
11506     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
11507     cat >>confdefs.h <<_ACEOF
11508 #define HAVE_AVIFILE 1
11509 _ACEOF
11510
11511 fi
11512
11513 if test "x${WIN32}" != "x"; then
11514     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
11515     #if test "x${AVIFIL32}" != "x"; then
11516     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11517     #fi
11518     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11519     AVIFIL32=true
11520 fi
11521
11522
11523
11524 # ------------------------------------------------------------------
11525
11526 if test "x${UNCOMPRESS}" = "xgzip"; then
11527     cat >>confdefs.h <<_ACEOF
11528 #define USE_GZIP 1
11529 _ACEOF
11530
11531 fi
11532
11533
11534 # ------------------------------------------------------------------
11535
11536
11537 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
11538 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
11539
11540 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
11541     PY_VERSION=unknown
11542 else
11543     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
11544         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
11545     fi
11546     # iterate through version 2.2 to 2.4
11547     for v in 2 3 4; do
11548         # Linux
11549         if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
11550             PY_VERSION=2.$v
11551             PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
11552             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
11553         # Mac OS X
11554         elif test -f "/Library/Python/2.$v/PIL/_imaging.so" \
11555                -a -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
11556             PY_VERSION=2.$v
11557             PYTHON_LIB="-framework Python /Library/Python/2.$v/PIL/_imaging.so"
11558             PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
11559         # Mac OS X [Fink]:
11560         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
11561                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
11562                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
11563                   ")" \
11564                -a -f "/sw/include/python2.$v/Python.h" \
11565                -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
11566             PY_VERSION=2.$v
11567             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
11568             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
11569         fi
11570     done
11571 fi
11572
11573 if test "x$PY_VERSION" "!=" "x"; then
11574     echo "$as_me:$LINENO: result: $PY_VERSION" >&5
11575 echo "${ECHO_T}$PY_VERSION" >&6
11576     export PYTHON_INCLUDES PYTHON_LIB
11577
11578
11579     echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
11580 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
11581
11582     cat > conftest.c << EOF
11583 #include <Python.h>
11584 #include <Imaging.h>
11585
11586 int main()
11587 {
11588     int ret;
11589     ret = Py_Main(0, 0);
11590     int x; // check also for gcc 2.95.x incompatibilities
11591     return ret;
11592 }
11593 EOF
11594     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
11595     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11596         echo "$as_me:$LINENO: result: yes" >&5
11597 echo "${ECHO_T}yes" >&6
11598         PYTHON_OK=yes
11599     else
11600         echo "configure: failed program was:" >&5
11601         cat conftest.c >&5
11602         echo "$as_me:$LINENO: result: no" >&5
11603 echo "${ECHO_T}no" >&6
11604     fi
11605     rm -f conftest*
11606 else
11607     echo "$as_me:$LINENO: result: nope" >&5
11608 echo "${ECHO_T}nope" >&6
11609 fi
11610
11611
11612 if test "x$PYTHON_OK" '!=' "xyes";then
11613     echo all install uninstall clean: > lib/python/Makefile
11614     # fail silently- the most users won't have any need for the
11615     # python interface anyway
11616 else
11617     pythonrfxswf="lib/python/Makefile"
11618 fi
11619
11620 # ------------------------------------------------------------------
11621
11622 echo "$as_me:$LINENO: checking for missing libraries" >&5
11623 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
11624
11625 if test "x$ZLIBMISSING" = "xtrue";then
11626     MISSINGLIBS="${MISSINGLIBS} zlib"
11627     DISABLEPNG2SWF=true
11628     PARTIAL=true
11629 fi
11630 if test "x$JPEGLIBMISSING" = "xtrue";then
11631     MISSINGLIBS="${MISSINGLIBS} jpeglib"
11632     DISABLEPDF2SWF=true
11633     DISABLEJPEG2SWF=true
11634     PARTIAL=true
11635 fi
11636 if test "x$T1LIBMISSING" = "xtrue";then
11637     MISSINGLIBS="${MISSINGLIBS} t1lib"
11638 fi
11639
11640 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
11641     DISABLEPDF2SWF=true;
11642     DISABLEJPEG2SWF=true;
11643     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
11644     PARTIAL=true
11645 fi
11646 if test "x$HAVE_FREETYPE" '!=' "x1"; then
11647     DISABLEPDF2SWF=true;
11648     MISSINGLIBS="${MISSINGLIBS} freetype"
11649     PARTIAL=true
11650 fi
11651 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
11652     MISSINGLIBS="${MISSINGLIBS} t1lib.h"
11653 fi
11654 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
11655     DISABLEPNG2SWF=true;
11656     MISSINGLIBS="${MISSINGLIBS} zlib.h"
11657     PARTIAL=true
11658 fi
11659 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11660     MISSINGLIBS="${MISSINGLIBS} avifile"
11661     PARTIAL=true
11662 fi
11663
11664 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11665 echo "${ECHO_T}${MISSINGLIBS}" >&6
11666
11667 # ------------------------------------------------------------------
11668
11669 if test "x${MISSINGLIBS}" '!=' "x"; then
11670   echo "***************************************************"
11671   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11672 fi
11673
11674 avi2swf="avi2swf/Makefile"
11675 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11676  echo "* Disabling avi2swf tool..."
11677  echo all install uninstall clean: > avi2swf/Makefile
11678  avi2swf=
11679 fi
11680
11681 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
11682 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11683   echo "* Disabling pdf2swf tool..."
11684   rm -f pdf2swf/Makefile
11685   echo all install uninstall clean: > pdf2swf/Makefile
11686   pdf2swf_makefile=""
11687 fi
11688
11689 if test "x${ZLIBMISSING}" = "xtrue"; then
11690   echo
11691   echo "* Warning! Without zlib, you will not be able to read"
11692   echo "* or write compressed Flash MX files!"
11693 fi
11694
11695 JPEG2SWF='jpeg2swf$(E)'
11696 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11697   echo "* Disabling jpeg2swf tool..."
11698   JPEG2SWF=
11699 fi
11700 export JPEG2SWF
11701
11702
11703 PNG2SWF='png2swf$(E)'
11704 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11705   echo "* Disabling png2swf tool..."
11706   PNG2SWF=
11707 fi
11708 export PNG2SWF
11709
11710
11711 if test "x${MISSINGLIBS}" '!=' "x"; then
11712   if test "x${PARTIAL}" '=' "x"; then
11713     echo "* (never mind)"
11714   fi
11715   echo "***************************************************"
11716 fi
11717
11718 # ------------------------------------------------------------------
11719
11720 if test -f "release.in"; then release_in="./release"; fi
11721 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
11722
11723           ac_config_files="$ac_config_files ${FILES}"
11724
11725 cat >confcache <<\_ACEOF
11726 # This file is a shell script that caches the results of configure
11727 # tests run on this system so they can be shared between configure
11728 # scripts and configure runs, see configure's option --config-cache.
11729 # It is not useful on other systems.  If it contains results you don't
11730 # want to keep, you may remove or edit it.
11731 #
11732 # config.status only pays attention to the cache file if you give it
11733 # the --recheck option to rerun configure.
11734 #
11735 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11736 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11737 # following values.
11738
11739 _ACEOF
11740
11741 # The following way of writing the cache mishandles newlines in values,
11742 # but we know of no workaround that is simple, portable, and efficient.
11743 # So, don't put newlines in cache variables' values.
11744 # Ultrix sh set writes to stderr and can't be redirected directly,
11745 # and sets the high bit in the cache file unless we assign to the vars.
11746 {
11747   (set) 2>&1 |
11748     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11749     *ac_space=\ *)
11750       # `set' does not quote correctly, so add quotes (double-quote
11751       # substitution turns \\\\ into \\, and sed turns \\ into \).
11752       sed -n \
11753         "s/'/'\\\\''/g;
11754           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11755       ;;
11756     *)
11757       # `set' quotes correctly as required by POSIX, so do not add quotes.
11758       sed -n \
11759         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11760       ;;
11761     esac;
11762 } |
11763   sed '
11764      t clear
11765      : clear
11766      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11767      t end
11768      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11769      : end' >>confcache
11770 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11771   if test -w $cache_file; then
11772     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11773     cat confcache >$cache_file
11774   else
11775     echo "not updating unwritable cache $cache_file"
11776   fi
11777 fi
11778 rm -f confcache
11779
11780 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11781 # Let make expand exec_prefix.
11782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11783
11784 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11785 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11786 # trailing colons and then remove the whole line if VPATH becomes empty
11787 # (actually we leave an empty line to preserve line numbers).
11788 if test "x$srcdir" = x.; then
11789   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11790 s/:*\$(srcdir):*/:/;
11791 s/:*\${srcdir}:*/:/;
11792 s/:*@srcdir@:*/:/;
11793 s/^\([^=]*=[     ]*\):*/\1/;
11794 s/:*$//;
11795 s/^[^=]*=[       ]*$//;
11796 }'
11797 fi
11798
11799 DEFS=-DHAVE_CONFIG_H
11800
11801 ac_libobjs=
11802 ac_ltlibobjs=
11803 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11804   # 1. Remove the extension, and $U if already installed.
11805   ac_i=`echo "$ac_i" |
11806          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11807   # 2. Add them.
11808   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11809   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11810 done
11811 LIBOBJS=$ac_libobjs
11812
11813 LTLIBOBJS=$ac_ltlibobjs
11814
11815
11816
11817 : ${CONFIG_STATUS=./config.status}
11818 ac_clean_files_save=$ac_clean_files
11819 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11820 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11821 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11822 cat >$CONFIG_STATUS <<_ACEOF
11823 #! $SHELL
11824 # Generated by $as_me.
11825 # Run this file to recreate the current configuration.
11826 # Compiler output produced by configure, useful for debugging
11827 # configure, is in config.log if it exists.
11828
11829 debug=false
11830 ac_cs_recheck=false
11831 ac_cs_silent=false
11832 SHELL=\${CONFIG_SHELL-$SHELL}
11833 _ACEOF
11834
11835 cat >>$CONFIG_STATUS <<\_ACEOF
11836 ## --------------------- ##
11837 ## M4sh Initialization.  ##
11838 ## --------------------- ##
11839
11840 # Be Bourne compatible
11841 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11842   emulate sh
11843   NULLCMD=:
11844   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11845   # is contrary to our usage.  Disable this feature.
11846   alias -g '${1+"$@"}'='"$@"'
11847 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11848   set -o posix
11849 fi
11850 DUALCASE=1; export DUALCASE # for MKS sh
11851
11852 # Support unset when possible.
11853 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11854   as_unset=unset
11855 else
11856   as_unset=false
11857 fi
11858
11859
11860 # Work around bugs in pre-3.0 UWIN ksh.
11861 $as_unset ENV MAIL MAILPATH
11862 PS1='$ '
11863 PS2='> '
11864 PS4='+ '
11865
11866 # NLS nuisances.
11867 for as_var in \
11868   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11869   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11870   LC_TELEPHONE LC_TIME
11871 do
11872   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11873     eval $as_var=C; export $as_var
11874   else
11875     $as_unset $as_var
11876   fi
11877 done
11878
11879 # Required to use basename.
11880 if expr a : '\(a\)' >/dev/null 2>&1; then
11881   as_expr=expr
11882 else
11883   as_expr=false
11884 fi
11885
11886 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11887   as_basename=basename
11888 else
11889   as_basename=false
11890 fi
11891
11892
11893 # Name of the executable.
11894 as_me=`$as_basename "$0" ||
11895 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11896          X"$0" : 'X\(//\)$' \| \
11897          X"$0" : 'X\(/\)$' \| \
11898          .     : '\(.\)' 2>/dev/null ||
11899 echo X/"$0" |
11900     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11901           /^X\/\(\/\/\)$/{ s//\1/; q; }
11902           /^X\/\(\/\).*/{ s//\1/; q; }
11903           s/.*/./; q'`
11904
11905
11906 # PATH needs CR, and LINENO needs CR and PATH.
11907 # Avoid depending upon Character Ranges.
11908 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11909 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11910 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11911 as_cr_digits='0123456789'
11912 as_cr_alnum=$as_cr_Letters$as_cr_digits
11913
11914 # The user is always right.
11915 if test "${PATH_SEPARATOR+set}" != set; then
11916   echo "#! /bin/sh" >conf$$.sh
11917   echo  "exit 0"   >>conf$$.sh
11918   chmod +x conf$$.sh
11919   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11920     PATH_SEPARATOR=';'
11921   else
11922     PATH_SEPARATOR=:
11923   fi
11924   rm -f conf$$.sh
11925 fi
11926
11927
11928   as_lineno_1=$LINENO
11929   as_lineno_2=$LINENO
11930   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11931   test "x$as_lineno_1" != "x$as_lineno_2" &&
11932   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11933   # Find who we are.  Look in the path if we contain no path at all
11934   # relative or not.
11935   case $0 in
11936     *[\\/]* ) as_myself=$0 ;;
11937     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938 for as_dir in $PATH
11939 do
11940   IFS=$as_save_IFS
11941   test -z "$as_dir" && as_dir=.
11942   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11943 done
11944
11945        ;;
11946   esac
11947   # We did not find ourselves, most probably we were run as `sh COMMAND'
11948   # in which case we are not to be found in the path.
11949   if test "x$as_myself" = x; then
11950     as_myself=$0
11951   fi
11952   if test ! -f "$as_myself"; then
11953     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11954 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11955    { (exit 1); exit 1; }; }
11956   fi
11957   case $CONFIG_SHELL in
11958   '')
11959     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11961 do
11962   IFS=$as_save_IFS
11963   test -z "$as_dir" && as_dir=.
11964   for as_base in sh bash ksh sh5; do
11965          case $as_dir in
11966          /*)
11967            if ("$as_dir/$as_base" -c '
11968   as_lineno_1=$LINENO
11969   as_lineno_2=$LINENO
11970   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11971   test "x$as_lineno_1" != "x$as_lineno_2" &&
11972   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11973              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11974              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11975              CONFIG_SHELL=$as_dir/$as_base
11976              export CONFIG_SHELL
11977              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11978            fi;;
11979          esac
11980        done
11981 done
11982 ;;
11983   esac
11984
11985   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11986   # uniformly replaced by the line number.  The first 'sed' inserts a
11987   # line-number line before each line; the second 'sed' does the real
11988   # work.  The second script uses 'N' to pair each line-number line
11989   # with the numbered line, and appends trailing '-' during
11990   # substitution so that $LINENO is not a special case at line end.
11991   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11992   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11993   sed '=' <$as_myself |
11994     sed '
11995       N
11996       s,$,-,
11997       : loop
11998       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11999       t loop
12000       s,-$,,
12001       s,^['$as_cr_digits']*\n,,
12002     ' >$as_me.lineno &&
12003   chmod +x $as_me.lineno ||
12004     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12005 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12006    { (exit 1); exit 1; }; }
12007
12008   # Don't try to exec as it changes $[0], causing all sort of problems
12009   # (the dirname of $[0] is not the place where we might find the
12010   # original and so on.  Autoconf is especially sensible to this).
12011   . ./$as_me.lineno
12012   # Exit status is that of the last command.
12013   exit
12014 }
12015
12016
12017 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12018   *c*,-n*) ECHO_N= ECHO_C='
12019 ' ECHO_T='      ' ;;
12020   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12021   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12022 esac
12023
12024 if expr a : '\(a\)' >/dev/null 2>&1; then
12025   as_expr=expr
12026 else
12027   as_expr=false
12028 fi
12029
12030 rm -f conf$$ conf$$.exe conf$$.file
12031 echo >conf$$.file
12032 if ln -s conf$$.file conf$$ 2>/dev/null; then
12033   # We could just check for DJGPP; but this test a) works b) is more generic
12034   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12035   if test -f conf$$.exe; then
12036     # Don't use ln at all; we don't have any links
12037     as_ln_s='cp -p'
12038   else
12039     as_ln_s='ln -s'
12040   fi
12041 elif ln conf$$.file conf$$ 2>/dev/null; then
12042   as_ln_s=ln
12043 else
12044   as_ln_s='cp -p'
12045 fi
12046 rm -f conf$$ conf$$.exe conf$$.file
12047
12048 if mkdir -p . 2>/dev/null; then
12049   as_mkdir_p=:
12050 else
12051   test -d ./-p && rmdir ./-p
12052   as_mkdir_p=false
12053 fi
12054
12055 as_executable_p="test -f"
12056
12057 # Sed expression to map a string onto a valid CPP name.
12058 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12059
12060 # Sed expression to map a string onto a valid variable name.
12061 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12062
12063
12064 # IFS
12065 # We need space, tab and new line, in precisely that order.
12066 as_nl='
12067 '
12068 IFS="   $as_nl"
12069
12070 # CDPATH.
12071 $as_unset CDPATH
12072
12073 exec 6>&1
12074
12075 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12076 # report actual input values of CONFIG_FILES etc. instead of their
12077 # values after options handling.  Logging --version etc. is OK.
12078 exec 5>>config.log
12079 {
12080   echo
12081   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12082 ## Running $as_me. ##
12083 _ASBOX
12084 } >&5
12085 cat >&5 <<_CSEOF
12086
12087 This file was extended by $as_me, which was
12088 generated by GNU Autoconf 2.58.  Invocation command line was
12089
12090   CONFIG_FILES    = $CONFIG_FILES
12091   CONFIG_HEADERS  = $CONFIG_HEADERS
12092   CONFIG_LINKS    = $CONFIG_LINKS
12093   CONFIG_COMMANDS = $CONFIG_COMMANDS
12094   $ $0 $@
12095
12096 _CSEOF
12097 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12098 echo >&5
12099 _ACEOF
12100
12101 # Files that config.status was made for.
12102 if test -n "$ac_config_files"; then
12103   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12104 fi
12105
12106 if test -n "$ac_config_headers"; then
12107   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12108 fi
12109
12110 if test -n "$ac_config_links"; then
12111   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12112 fi
12113
12114 if test -n "$ac_config_commands"; then
12115   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12116 fi
12117
12118 cat >>$CONFIG_STATUS <<\_ACEOF
12119
12120 ac_cs_usage="\
12121 \`$as_me' instantiates files from templates according to the
12122 current configuration.
12123
12124 Usage: $0 [OPTIONS] [FILE]...
12125
12126   -h, --help       print this help, then exit
12127   -V, --version    print version number, then exit
12128   -q, --quiet      do not print progress messages
12129   -d, --debug      don't remove temporary files
12130       --recheck    update $as_me by reconfiguring in the same conditions
12131   --file=FILE[:TEMPLATE]
12132                    instantiate the configuration file FILE
12133   --header=FILE[:TEMPLATE]
12134                    instantiate the configuration header FILE
12135
12136 Configuration files:
12137 $config_files
12138
12139 Configuration headers:
12140 $config_headers
12141
12142 Report bugs to <bug-autoconf@gnu.org>."
12143 _ACEOF
12144
12145 cat >>$CONFIG_STATUS <<_ACEOF
12146 ac_cs_version="\\
12147 config.status
12148 configured by $0, generated by GNU Autoconf 2.58,
12149   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12150
12151 Copyright (C) 2003 Free Software Foundation, Inc.
12152 This config.status script is free software; the Free Software Foundation
12153 gives unlimited permission to copy, distribute and modify it."
12154 srcdir=$srcdir
12155 INSTALL="$INSTALL"
12156 _ACEOF
12157
12158 cat >>$CONFIG_STATUS <<\_ACEOF
12159 # If no file are specified by the user, then we need to provide default
12160 # value.  By we need to know if files were specified by the user.
12161 ac_need_defaults=:
12162 while test $# != 0
12163 do
12164   case $1 in
12165   --*=*)
12166     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12167     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12168     ac_shift=:
12169     ;;
12170   -*)
12171     ac_option=$1
12172     ac_optarg=$2
12173     ac_shift=shift
12174     ;;
12175   *) # This is not an option, so the user has probably given explicit
12176      # arguments.
12177      ac_option=$1
12178      ac_need_defaults=false;;
12179   esac
12180
12181   case $ac_option in
12182   # Handling of the options.
12183 _ACEOF
12184 cat >>$CONFIG_STATUS <<\_ACEOF
12185   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12186     ac_cs_recheck=: ;;
12187   --version | --vers* | -V )
12188     echo "$ac_cs_version"; exit 0 ;;
12189   --he | --h)
12190     # Conflict between --help and --header
12191     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12192 Try \`$0 --help' for more information." >&5
12193 echo "$as_me: error: ambiguous option: $1
12194 Try \`$0 --help' for more information." >&2;}
12195    { (exit 1); exit 1; }; };;
12196   --help | --hel | -h )
12197     echo "$ac_cs_usage"; exit 0 ;;
12198   --debug | --d* | -d )
12199     debug=: ;;
12200   --file | --fil | --fi | --f )
12201     $ac_shift
12202     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12203     ac_need_defaults=false;;
12204   --header | --heade | --head | --hea )
12205     $ac_shift
12206     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12207     ac_need_defaults=false;;
12208   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12209   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12210     ac_cs_silent=: ;;
12211
12212   # This is an error.
12213   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12214 Try \`$0 --help' for more information." >&5
12215 echo "$as_me: error: unrecognized option: $1
12216 Try \`$0 --help' for more information." >&2;}
12217    { (exit 1); exit 1; }; } ;;
12218
12219   *) ac_config_targets="$ac_config_targets $1" ;;
12220
12221   esac
12222   shift
12223 done
12224
12225 ac_configure_extra_args=
12226
12227 if $ac_cs_silent; then
12228   exec 6>/dev/null
12229   ac_configure_extra_args="$ac_configure_extra_args --silent"
12230 fi
12231
12232 _ACEOF
12233 cat >>$CONFIG_STATUS <<_ACEOF
12234 if \$ac_cs_recheck; then
12235   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12236   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12237 fi
12238
12239 _ACEOF
12240
12241
12242
12243
12244
12245 cat >>$CONFIG_STATUS <<\_ACEOF
12246 for ac_config_target in $ac_config_targets
12247 do
12248   case "$ac_config_target" in
12249   # Handling of arguments.
12250   "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
12251   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12252   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12253 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12254    { (exit 1); exit 1; }; };;
12255   esac
12256 done
12257
12258 # If the user did not use the arguments to specify the items to instantiate,
12259 # then the envvar interface is used.  Set only those that are not.
12260 # We use the long form for the default assignment because of an extremely
12261 # bizarre bug on SunOS 4.1.3.
12262 if $ac_need_defaults; then
12263   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12264   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12265 fi
12266
12267 # Have a temporary directory for convenience.  Make it in the build tree
12268 # simply because there is no reason to put it here, and in addition,
12269 # creating and moving files from /tmp can sometimes cause problems.
12270 # Create a temporary directory, and hook for its removal unless debugging.
12271 $debug ||
12272 {
12273   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12274   trap '{ (exit 1); exit 1; }' 1 2 13 15
12275 }
12276
12277 # Create a (secure) tmp directory for tmp files.
12278
12279 {
12280   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12281   test -n "$tmp" && test -d "$tmp"
12282 }  ||
12283 {
12284   tmp=./confstat$$-$RANDOM
12285   (umask 077 && mkdir $tmp)
12286 } ||
12287 {
12288    echo "$me: cannot create a temporary directory in ." >&2
12289    { (exit 1); exit 1; }
12290 }
12291
12292 _ACEOF
12293
12294 cat >>$CONFIG_STATUS <<_ACEOF
12295
12296 #
12297 # CONFIG_FILES section.
12298 #
12299
12300 # No need to generate the scripts if there are no CONFIG_FILES.
12301 # This happens for instance when ./config.status config.h
12302 if test -n "\$CONFIG_FILES"; then
12303   # Protect against being on the right side of a sed subst in config.status.
12304   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12305    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12306 s,@SHELL@,$SHELL,;t t
12307 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12308 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12309 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12310 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12311 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12312 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12313 s,@exec_prefix@,$exec_prefix,;t t
12314 s,@prefix@,$prefix,;t t
12315 s,@program_transform_name@,$program_transform_name,;t t
12316 s,@bindir@,$bindir,;t t
12317 s,@sbindir@,$sbindir,;t t
12318 s,@libexecdir@,$libexecdir,;t t
12319 s,@datadir@,$datadir,;t t
12320 s,@sysconfdir@,$sysconfdir,;t t
12321 s,@sharedstatedir@,$sharedstatedir,;t t
12322 s,@localstatedir@,$localstatedir,;t t
12323 s,@libdir@,$libdir,;t t
12324 s,@includedir@,$includedir,;t t
12325 s,@oldincludedir@,$oldincludedir,;t t
12326 s,@infodir@,$infodir,;t t
12327 s,@mandir@,$mandir,;t t
12328 s,@build_alias@,$build_alias,;t t
12329 s,@host_alias@,$host_alias,;t t
12330 s,@target_alias@,$target_alias,;t t
12331 s,@DEFS@,$DEFS,;t t
12332 s,@ECHO_C@,$ECHO_C,;t t
12333 s,@ECHO_N@,$ECHO_N,;t t
12334 s,@ECHO_T@,$ECHO_T,;t t
12335 s,@LIBS@,$LIBS,;t t
12336 s,@build@,$build,;t t
12337 s,@build_cpu@,$build_cpu,;t t
12338 s,@build_vendor@,$build_vendor,;t t
12339 s,@build_os@,$build_os,;t t
12340 s,@host@,$host,;t t
12341 s,@host_cpu@,$host_cpu,;t t
12342 s,@host_vendor@,$host_vendor,;t t
12343 s,@host_os@,$host_os,;t t
12344 s,@SHARED@,$SHARED,;t t
12345 s,@CC@,$CC,;t t
12346 s,@CFLAGS@,$CFLAGS,;t t
12347 s,@LDFLAGS@,$LDFLAGS,;t t
12348 s,@CPPFLAGS@,$CPPFLAGS,;t t
12349 s,@ac_ct_CC@,$ac_ct_CC,;t t
12350 s,@EXEEXT@,$EXEEXT,;t t
12351 s,@OBJEXT@,$OBJEXT,;t t
12352 s,@CXX@,$CXX,;t t
12353 s,@CXXFLAGS@,$CXXFLAGS,;t t
12354 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12355 s,@CPP@,$CPP,;t t
12356 s,@RANLIB@,$RANLIB,;t t
12357 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12358 s,@SET_MAKE@,$SET_MAKE,;t t
12359 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12360 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12361 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12362 s,@LN_S@,$LN_S,;t t
12363 s,@ECHO@,$ECHO,;t t
12364 s,@STRIP@,$STRIP,;t t
12365 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12366 s,@EGREP@,$EGREP,;t t
12367 s,@LIBTOOL@,$LIBTOOL,;t t
12368 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
12369 s,@AR@,$AR,;t t
12370 s,@SLEXT@,$SLEXT,;t t
12371 s,@target@,$target,;t t
12372 s,@target_cpu@,$target_cpu,;t t
12373 s,@target_vendor@,$target_vendor,;t t
12374 s,@target_os@,$target_os,;t t
12375 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
12376 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
12377 s,@PACKAGE@,$PACKAGE,;t t
12378 s,@VERSION@,$VERSION,;t t
12379 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
12380 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
12381 s,@lame_objects@,$lame_objects,;t t
12382 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
12383 s,@VIDEO_LIBS@,$VIDEO_LIBS,;t t
12384 s,@VIDEO_CFLAGS@,$VIDEO_CFLAGS,;t t
12385 s,@USE_GZIP@,$USE_GZIP,;t t
12386 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
12387 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
12388 s,@JPEG2SWF@,$JPEG2SWF,;t t
12389 s,@PNG2SWF@,$PNG2SWF,;t t
12390 s,@LIBOBJS@,$LIBOBJS,;t t
12391 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12392 CEOF
12393
12394 _ACEOF
12395
12396   cat >>$CONFIG_STATUS <<\_ACEOF
12397   # Split the substitutions into bite-sized pieces for seds with
12398   # small command number limits, like on Digital OSF/1 and HP-UX.
12399   ac_max_sed_lines=48
12400   ac_sed_frag=1 # Number of current file.
12401   ac_beg=1 # First line for current file.
12402   ac_end=$ac_max_sed_lines # Line after last line for current file.
12403   ac_more_lines=:
12404   ac_sed_cmds=
12405   while $ac_more_lines; do
12406     if test $ac_beg -gt 1; then
12407       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12408     else
12409       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12410     fi
12411     if test ! -s $tmp/subs.frag; then
12412       ac_more_lines=false
12413     else
12414       # The purpose of the label and of the branching condition is to
12415       # speed up the sed processing (if there are no `@' at all, there
12416       # is no need to browse any of the substitutions).
12417       # These are the two extra sed commands mentioned above.
12418       (echo ':t
12419   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12420       if test -z "$ac_sed_cmds"; then
12421         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12422       else
12423         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12424       fi
12425       ac_sed_frag=`expr $ac_sed_frag + 1`
12426       ac_beg=$ac_end
12427       ac_end=`expr $ac_end + $ac_max_sed_lines`
12428     fi
12429   done
12430   if test -z "$ac_sed_cmds"; then
12431     ac_sed_cmds=cat
12432   fi
12433 fi # test -n "$CONFIG_FILES"
12434
12435 _ACEOF
12436 cat >>$CONFIG_STATUS <<\_ACEOF
12437 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12438   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12439   case $ac_file in
12440   - | *:- | *:-:* ) # input from stdin
12441         cat >$tmp/stdin
12442         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12443         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12444   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12445         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12446   * )   ac_file_in=$ac_file.in ;;
12447   esac
12448
12449   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12450   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12451 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12452          X"$ac_file" : 'X\(//\)[^/]' \| \
12453          X"$ac_file" : 'X\(//\)$' \| \
12454          X"$ac_file" : 'X\(/\)' \| \
12455          .     : '\(.\)' 2>/dev/null ||
12456 echo X"$ac_file" |
12457     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12458           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12459           /^X\(\/\/\)$/{ s//\1/; q; }
12460           /^X\(\/\).*/{ s//\1/; q; }
12461           s/.*/./; q'`
12462   { if $as_mkdir_p; then
12463     mkdir -p "$ac_dir"
12464   else
12465     as_dir="$ac_dir"
12466     as_dirs=
12467     while test ! -d "$as_dir"; do
12468       as_dirs="$as_dir $as_dirs"
12469       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12471          X"$as_dir" : 'X\(//\)[^/]' \| \
12472          X"$as_dir" : 'X\(//\)$' \| \
12473          X"$as_dir" : 'X\(/\)' \| \
12474          .     : '\(.\)' 2>/dev/null ||
12475 echo X"$as_dir" |
12476     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12477           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12478           /^X\(\/\/\)$/{ s//\1/; q; }
12479           /^X\(\/\).*/{ s//\1/; q; }
12480           s/.*/./; q'`
12481     done
12482     test ! -n "$as_dirs" || mkdir $as_dirs
12483   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12484 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12485    { (exit 1); exit 1; }; }; }
12486
12487   ac_builddir=.
12488
12489 if test "$ac_dir" != .; then
12490   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12491   # A "../" for each directory in $ac_dir_suffix.
12492   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12493 else
12494   ac_dir_suffix= ac_top_builddir=
12495 fi
12496
12497 case $srcdir in
12498   .)  # No --srcdir option.  We are building in place.
12499     ac_srcdir=.
12500     if test -z "$ac_top_builddir"; then
12501        ac_top_srcdir=.
12502     else
12503        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12504     fi ;;
12505   [\\/]* | ?:[\\/]* )  # Absolute path.
12506     ac_srcdir=$srcdir$ac_dir_suffix;
12507     ac_top_srcdir=$srcdir ;;
12508   *) # Relative path.
12509     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12510     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12511 esac
12512 case "$ac_dir" in
12513 .) ac_abs_builddir=$ac_builddir;;
12514 *)
12515   case $ac_builddir in
12516   .) ac_abs_builddir="$ac_dir";;
12517   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
12518   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
12519   esac;;
12520 esac
12521 case "$ac_dir" in
12522 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12523 *)
12524   case ${ac_top_builddir}. in
12525   .) ac_abs_top_builddir="$ac_dir";;
12526   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12527   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
12528   esac;;
12529 esac
12530 case "$ac_dir" in
12531 .) ac_abs_srcdir=$ac_srcdir;;
12532 *)
12533   case $ac_srcdir in
12534   .) ac_abs_srcdir="$ac_dir";;
12535   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12536   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
12537   esac;;
12538 esac
12539 case "$ac_dir" in
12540 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12541 *)
12542   case $ac_top_srcdir in
12543   .) ac_abs_top_srcdir="$ac_dir";;
12544   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12545   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
12546   esac;;
12547 esac
12548
12549
12550   case $INSTALL in
12551   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12552   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12553   esac
12554
12555   if test x"$ac_file" != x-; then
12556     { echo "$as_me:$LINENO: creating $ac_file" >&5
12557 echo "$as_me: creating $ac_file" >&6;}
12558     rm -f "$ac_file"
12559   fi
12560   # Let's still pretend it is `configure' which instantiates (i.e., don't
12561   # use $as_me), people would be surprised to read:
12562   #    /* config.h.  Generated by config.status.  */
12563   if test x"$ac_file" = x-; then
12564     configure_input=
12565   else
12566     configure_input="$ac_file.  "
12567   fi
12568   configure_input=$configure_input"Generated from `echo $ac_file_in |
12569                                      sed 's,.*/,,'` by configure."
12570
12571   # First look for the input files in the build tree, otherwise in the
12572   # src tree.
12573   ac_file_inputs=`IFS=:
12574     for f in $ac_file_in; do
12575       case $f in
12576       -) echo $tmp/stdin ;;
12577       [\\/$]*)
12578          # Absolute (can't be DOS-style, as IFS=:)
12579          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12580 echo "$as_me: error: cannot find input file: $f" >&2;}
12581    { (exit 1); exit 1; }; }
12582          echo "$f";;
12583       *) # Relative
12584          if test -f "$f"; then
12585            # Build tree
12586            echo "$f"
12587          elif test -f "$srcdir/$f"; then
12588            # Source tree
12589            echo "$srcdir/$f"
12590          else
12591            # /dev/null tree
12592            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12593 echo "$as_me: error: cannot find input file: $f" >&2;}
12594    { (exit 1); exit 1; }; }
12595          fi;;
12596       esac
12597     done` || { (exit 1); exit 1; }
12598 _ACEOF
12599 cat >>$CONFIG_STATUS <<_ACEOF
12600   sed "$ac_vpsub
12601 $extrasub
12602 _ACEOF
12603 cat >>$CONFIG_STATUS <<\_ACEOF
12604 :t
12605 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12606 s,@configure_input@,$configure_input,;t t
12607 s,@srcdir@,$ac_srcdir,;t t
12608 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12609 s,@top_srcdir@,$ac_top_srcdir,;t t
12610 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12611 s,@builddir@,$ac_builddir,;t t
12612 s,@abs_builddir@,$ac_abs_builddir,;t t
12613 s,@top_builddir@,$ac_top_builddir,;t t
12614 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12615 s,@INSTALL@,$ac_INSTALL,;t t
12616 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12617   rm -f $tmp/stdin
12618   if test x"$ac_file" != x-; then
12619     mv $tmp/out $ac_file
12620   else
12621     cat $tmp/out
12622     rm -f $tmp/out
12623   fi
12624
12625 done
12626 _ACEOF
12627 cat >>$CONFIG_STATUS <<\_ACEOF
12628
12629 #
12630 # CONFIG_HEADER section.
12631 #
12632
12633 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12634 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12635 #
12636 # ac_d sets the value in "#define NAME VALUE" lines.
12637 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12638 ac_dB='[         ].*$,\1#\2'
12639 ac_dC=' '
12640 ac_dD=',;t'
12641 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12642 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12643 ac_uB='$,\1#\2define\3'
12644 ac_uC=' '
12645 ac_uD=',;t'
12646
12647 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12648   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12649   case $ac_file in
12650   - | *:- | *:-:* ) # input from stdin
12651         cat >$tmp/stdin
12652         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12653         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12654   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12655         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12656   * )   ac_file_in=$ac_file.in ;;
12657   esac
12658
12659   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12660 echo "$as_me: creating $ac_file" >&6;}
12661
12662   # First look for the input files in the build tree, otherwise in the
12663   # src tree.
12664   ac_file_inputs=`IFS=:
12665     for f in $ac_file_in; do
12666       case $f in
12667       -) echo $tmp/stdin ;;
12668       [\\/$]*)
12669          # Absolute (can't be DOS-style, as IFS=:)
12670          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12671 echo "$as_me: error: cannot find input file: $f" >&2;}
12672    { (exit 1); exit 1; }; }
12673          # Do quote $f, to prevent DOS paths from being IFS'd.
12674          echo "$f";;
12675       *) # Relative
12676          if test -f "$f"; then
12677            # Build tree
12678            echo "$f"
12679          elif test -f "$srcdir/$f"; then
12680            # Source tree
12681            echo "$srcdir/$f"
12682          else
12683            # /dev/null tree
12684            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12685 echo "$as_me: error: cannot find input file: $f" >&2;}
12686    { (exit 1); exit 1; }; }
12687          fi;;
12688       esac
12689     done` || { (exit 1); exit 1; }
12690   # Remove the trailing spaces.
12691   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12692
12693 _ACEOF
12694
12695 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12696 # `conftest.undefs', that substitutes the proper values into
12697 # config.h.in to produce config.h.  The first handles `#define'
12698 # templates, and the second `#undef' templates.
12699 # And first: Protect against being on the right side of a sed subst in
12700 # config.status.  Protect against being in an unquoted here document
12701 # in config.status.
12702 rm -f conftest.defines conftest.undefs
12703 # Using a here document instead of a string reduces the quoting nightmare.
12704 # Putting comments in sed scripts is not portable.
12705 #
12706 # `end' is used to avoid that the second main sed command (meant for
12707 # 0-ary CPP macros) applies to n-ary macro definitions.
12708 # See the Autoconf documentation for `clear'.
12709 cat >confdef2sed.sed <<\_ACEOF
12710 s/[\\&,]/\\&/g
12711 s,[\\$`],\\&,g
12712 t clear
12713 : clear
12714 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12715 t end
12716 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12717 : end
12718 _ACEOF
12719 # If some macros were called several times there might be several times
12720 # the same #defines, which is useless.  Nevertheless, we may not want to
12721 # sort them, since we want the *last* AC-DEFINE to be honored.
12722 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12723 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12724 rm -f confdef2sed.sed
12725
12726 # This sed command replaces #undef with comments.  This is necessary, for
12727 # example, in the case of _POSIX_SOURCE, which is predefined and required
12728 # on some systems where configure will not decide to define it.
12729 cat >>conftest.undefs <<\_ACEOF
12730 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12731 _ACEOF
12732
12733 # Break up conftest.defines because some shells have a limit on the size
12734 # of here documents, and old seds have small limits too (100 cmds).
12735 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12736 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12737 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12738 echo '  :' >>$CONFIG_STATUS
12739 rm -f conftest.tail
12740 while grep . conftest.defines >/dev/null
12741 do
12742   # Write a limited-size here document to $tmp/defines.sed.
12743   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12744   # Speed up: don't consider the non `#define' lines.
12745   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12746   # Work around the forget-to-reset-the-flag bug.
12747   echo 't clr' >>$CONFIG_STATUS
12748   echo ': clr' >>$CONFIG_STATUS
12749   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12750   echo 'CEOF
12751   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12752   rm -f $tmp/in
12753   mv $tmp/out $tmp/in
12754 ' >>$CONFIG_STATUS
12755   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12756   rm -f conftest.defines
12757   mv conftest.tail conftest.defines
12758 done
12759 rm -f conftest.defines
12760 echo '  fi # grep' >>$CONFIG_STATUS
12761 echo >>$CONFIG_STATUS
12762
12763 # Break up conftest.undefs because some shells have a limit on the size
12764 # of here documents, and old seds have small limits too (100 cmds).
12765 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12766 rm -f conftest.tail
12767 while grep . conftest.undefs >/dev/null
12768 do
12769   # Write a limited-size here document to $tmp/undefs.sed.
12770   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12771   # Speed up: don't consider the non `#undef'
12772   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12773   # Work around the forget-to-reset-the-flag bug.
12774   echo 't clr' >>$CONFIG_STATUS
12775   echo ': clr' >>$CONFIG_STATUS
12776   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12777   echo 'CEOF
12778   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12779   rm -f $tmp/in
12780   mv $tmp/out $tmp/in
12781 ' >>$CONFIG_STATUS
12782   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12783   rm -f conftest.undefs
12784   mv conftest.tail conftest.undefs
12785 done
12786 rm -f conftest.undefs
12787
12788 cat >>$CONFIG_STATUS <<\_ACEOF
12789   # Let's still pretend it is `configure' which instantiates (i.e., don't
12790   # use $as_me), people would be surprised to read:
12791   #    /* config.h.  Generated by config.status.  */
12792   if test x"$ac_file" = x-; then
12793     echo "/* Generated by configure.  */" >$tmp/config.h
12794   else
12795     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12796   fi
12797   cat $tmp/in >>$tmp/config.h
12798   rm -f $tmp/in
12799   if test x"$ac_file" != x-; then
12800     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12801       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12802 echo "$as_me: $ac_file is unchanged" >&6;}
12803     else
12804       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12805 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12806          X"$ac_file" : 'X\(//\)[^/]' \| \
12807          X"$ac_file" : 'X\(//\)$' \| \
12808          X"$ac_file" : 'X\(/\)' \| \
12809          .     : '\(.\)' 2>/dev/null ||
12810 echo X"$ac_file" |
12811     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12812           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12813           /^X\(\/\/\)$/{ s//\1/; q; }
12814           /^X\(\/\).*/{ s//\1/; q; }
12815           s/.*/./; q'`
12816       { if $as_mkdir_p; then
12817     mkdir -p "$ac_dir"
12818   else
12819     as_dir="$ac_dir"
12820     as_dirs=
12821     while test ! -d "$as_dir"; do
12822       as_dirs="$as_dir $as_dirs"
12823       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12824 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12825          X"$as_dir" : 'X\(//\)[^/]' \| \
12826          X"$as_dir" : 'X\(//\)$' \| \
12827          X"$as_dir" : 'X\(/\)' \| \
12828          .     : '\(.\)' 2>/dev/null ||
12829 echo X"$as_dir" |
12830     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12831           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12832           /^X\(\/\/\)$/{ s//\1/; q; }
12833           /^X\(\/\).*/{ s//\1/; q; }
12834           s/.*/./; q'`
12835     done
12836     test ! -n "$as_dirs" || mkdir $as_dirs
12837   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12838 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12839    { (exit 1); exit 1; }; }; }
12840
12841       rm -f $ac_file
12842       mv $tmp/config.h $ac_file
12843     fi
12844   else
12845     cat $tmp/config.h
12846     rm -f $tmp/config.h
12847   fi
12848 done
12849 _ACEOF
12850
12851 cat >>$CONFIG_STATUS <<\_ACEOF
12852
12853 { (exit 0); exit 0; }
12854 _ACEOF
12855 chmod +x $CONFIG_STATUS
12856 ac_clean_files=$ac_clean_files_save
12857
12858
12859 # configure is writing to config.log, and then calls config.status.
12860 # config.status does its own redirection, appending to config.log.
12861 # Unfortunately, on DOS this fails, as config.log is still kept open
12862 # by configure, so config.status won't be able to write to it; its
12863 # output is simply discarded.  So we exec the FD to /dev/null,
12864 # effectively closing config.log, so it can be properly (re)opened and
12865 # appended to by config.status.  When coming back to configure, we
12866 # need to make the FD available again.
12867 if test "$no_create" != yes; then
12868   ac_cs_success=:
12869   ac_config_status_args=
12870   test "$silent" = yes &&
12871     ac_config_status_args="$ac_config_status_args --quiet"
12872   exec 5>/dev/null
12873   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12874   exec 5>>config.log
12875   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12876   # would make configure fail if this is the last instruction.
12877   $ac_cs_success || { (exit 1); exit 1; }
12878 fi
12879
12880