generated from configure.in.
[swftools.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289        echo_test_string="`eval $cmd`" &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="src/"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S EGREP ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL UNCOMPRESS 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'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510   # If the previous option needs an argument, assign it.
511   if test -n "$ac_prev"; then
512     eval "$ac_prev=\$ac_option"
513     ac_prev=
514     continue
515   fi
516
517   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519   # Accept the important Cygnus configure options, so we can diagnose typos.
520
521   case $ac_option in
522
523   -bindir | --bindir | --bindi | --bind | --bin | --bi)
524     ac_prev=bindir ;;
525   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526     bindir=$ac_optarg ;;
527
528   -build | --build | --buil | --bui | --bu)
529     ac_prev=build_alias ;;
530   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531     build_alias=$ac_optarg ;;
532
533   -cache-file | --cache-file | --cache-fil | --cache-fi \
534   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535     ac_prev=cache_file ;;
536   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538     cache_file=$ac_optarg ;;
539
540   --config-cache | -C)
541     cache_file=config.cache ;;
542
543   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544     ac_prev=datadir ;;
545   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546   | --da=*)
547     datadir=$ac_optarg ;;
548
549   -disable-* | --disable-*)
550     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554    { (exit 1); exit 1; }; }
555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556     eval "enable_$ac_feature=no" ;;
557
558   -enable-* | --enable-*)
559     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560     # Reject names that are not valid shell variable names.
561     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563    { (exit 1); exit 1; }; }
564     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565     case $ac_option in
566       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567       *) ac_optarg=yes ;;
568     esac
569     eval "enable_$ac_feature='$ac_optarg'" ;;
570
571   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573   | --exec | --exe | --ex)
574     ac_prev=exec_prefix ;;
575   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577   | --exec=* | --exe=* | --ex=*)
578     exec_prefix=$ac_optarg ;;
579
580   -gas | --gas | --ga | --g)
581     # Obsolete; use --with-gas.
582     with_gas=yes ;;
583
584   -help | --help | --hel | --he | -h)
585     ac_init_help=long ;;
586   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587     ac_init_help=recursive ;;
588   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589     ac_init_help=short ;;
590
591   -host | --host | --hos | --ho)
592     ac_prev=host_alias ;;
593   -host=* | --host=* | --hos=* | --ho=*)
594     host_alias=$ac_optarg ;;
595
596   -includedir | --includedir | --includedi | --included | --include \
597   | --includ | --inclu | --incl | --inc)
598     ac_prev=includedir ;;
599   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600   | --includ=* | --inclu=* | --incl=* | --inc=*)
601     includedir=$ac_optarg ;;
602
603   -infodir | --infodir | --infodi | --infod | --info | --inf)
604     ac_prev=infodir ;;
605   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606     infodir=$ac_optarg ;;
607
608   -libdir | --libdir | --libdi | --libd)
609     ac_prev=libdir ;;
610   -libdir=* | --libdir=* | --libdi=* | --libd=*)
611     libdir=$ac_optarg ;;
612
613   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614   | --libexe | --libex | --libe)
615     ac_prev=libexecdir ;;
616   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617   | --libexe=* | --libex=* | --libe=*)
618     libexecdir=$ac_optarg ;;
619
620   -localstatedir | --localstatedir | --localstatedi | --localstated \
621   | --localstate | --localstat | --localsta | --localst \
622   | --locals | --local | --loca | --loc | --lo)
623     ac_prev=localstatedir ;;
624   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627     localstatedir=$ac_optarg ;;
628
629   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630     ac_prev=mandir ;;
631   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632     mandir=$ac_optarg ;;
633
634   -nfp | --nfp | --nf)
635     # Obsolete; use --without-fp.
636     with_fp=no ;;
637
638   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639   | --no-cr | --no-c | -n)
640     no_create=yes ;;
641
642   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644     no_recursion=yes ;;
645
646   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648   | --oldin | --oldi | --old | --ol | --o)
649     ac_prev=oldincludedir ;;
650   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653     oldincludedir=$ac_optarg ;;
654
655   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656     ac_prev=prefix ;;
657   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658     prefix=$ac_optarg ;;
659
660   -program-prefix | --program-prefix | --program-prefi | --program-pref \
661   | --program-pre | --program-pr | --program-p)
662     ac_prev=program_prefix ;;
663   -program-prefix=* | --program-prefix=* | --program-prefi=* \
664   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665     program_prefix=$ac_optarg ;;
666
667   -program-suffix | --program-suffix | --program-suffi | --program-suff \
668   | --program-suf | --program-su | --program-s)
669     ac_prev=program_suffix ;;
670   -program-suffix=* | --program-suffix=* | --program-suffi=* \
671   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672     program_suffix=$ac_optarg ;;
673
674   -program-transform-name | --program-transform-name \
675   | --program-transform-nam | --program-transform-na \
676   | --program-transform-n | --program-transform- \
677   | --program-transform | --program-transfor \
678   | --program-transfo | --program-transf \
679   | --program-trans | --program-tran \
680   | --progr-tra | --program-tr | --program-t)
681     ac_prev=program_transform_name ;;
682   -program-transform-name=* | --program-transform-name=* \
683   | --program-transform-nam=* | --program-transform-na=* \
684   | --program-transform-n=* | --program-transform-=* \
685   | --program-transform=* | --program-transfor=* \
686   | --program-transfo=* | --program-transf=* \
687   | --program-trans=* | --program-tran=* \
688   | --progr-tra=* | --program-tr=* | --program-t=*)
689     program_transform_name=$ac_optarg ;;
690
691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692   | -silent | --silent | --silen | --sile | --sil)
693     silent=yes ;;
694
695   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696     ac_prev=sbindir ;;
697   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698   | --sbi=* | --sb=*)
699     sbindir=$ac_optarg ;;
700
701   -sharedstatedir | --sharedstatedir | --sharedstatedi \
702   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703   | --sharedst | --shareds | --shared | --share | --shar \
704   | --sha | --sh)
705     ac_prev=sharedstatedir ;;
706   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709   | --sha=* | --sh=*)
710     sharedstatedir=$ac_optarg ;;
711
712   -site | --site | --sit)
713     ac_prev=site ;;
714   -site=* | --site=* | --sit=*)
715     site=$ac_optarg ;;
716
717   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718     ac_prev=srcdir ;;
719   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720     srcdir=$ac_optarg ;;
721
722   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723   | --syscon | --sysco | --sysc | --sys | --sy)
724     ac_prev=sysconfdir ;;
725   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727     sysconfdir=$ac_optarg ;;
728
729   -target | --target | --targe | --targ | --tar | --ta | --t)
730     ac_prev=target_alias ;;
731   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732     target_alias=$ac_optarg ;;
733
734   -v | -verbose | --verbose | --verbos | --verbo | --verb)
735     verbose=yes ;;
736
737   -version | --version | --versio | --versi | --vers | -V)
738     ac_init_version=: ;;
739
740   -with-* | --with-*)
741     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742     # Reject names that are not valid shell variable names.
743     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744       { echo "$as_me: error: invalid package name: $ac_package" >&2
745    { (exit 1); exit 1; }; }
746     ac_package=`echo $ac_package| sed 's/-/_/g'`
747     case $ac_option in
748       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749       *) ac_optarg=yes ;;
750     esac
751     eval "with_$ac_package='$ac_optarg'" ;;
752
753   -without-* | --without-*)
754     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package | sed 's/-/_/g'`
760     eval "with_$ac_package=no" ;;
761
762   --x)
763     # Obsolete; use --with-x.
764     with_x=yes ;;
765
766   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767   | --x-incl | --x-inc | --x-in | --x-i)
768     ac_prev=x_includes ;;
769   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771     x_includes=$ac_optarg ;;
772
773   -x-libraries | --x-libraries | --x-librarie | --x-librari \
774   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775     ac_prev=x_libraries ;;
776   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778     x_libraries=$ac_optarg ;;
779
780   -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782    { (exit 1); exit 1; }; }
783     ;;
784
785   *=*)
786     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787     # Reject names that are not valid shell variable names.
788     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790    { (exit 1); exit 1; }; }
791     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792     eval "$ac_envvar='$ac_optarg'"
793     export $ac_envvar ;;
794
795   *)
796     # FIXME: should be removed in autoconf 3.0.
797     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801     ;;
802
803   esac
804 done
805
806 if test -n "$ac_prev"; then
807   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808   { echo "$as_me: error: missing argument to $ac_option" >&2
809    { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815   eval ac_val=$`echo $ac_var`
816   case $ac_val in
817     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819    { (exit 1); exit 1; }; };;
820   esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825               localstatedir libdir includedir oldincludedir infodir mandir
826 do
827   eval ac_val=$`echo $ac_var`
828   case $ac_val in
829     [\\/$]* | ?:[\\/]* ) ;;
830     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831    { (exit 1); exit 1; }; };;
832   esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844   if test "x$build_alias" = x; then
845     cross_compiling=maybe
846     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847     If a cross compiler is detected then cross compile mode will be used." >&2
848   elif test "x$build_alias" != "x$host_alias"; then
849     cross_compiling=yes
850   fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861   ac_srcdir_defaulted=yes
862   # Try the directory containing this script, then its parent.
863   ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865          X"$0" : 'X\(//\)[^/]' \| \
866          X"$0" : 'X\(//\)$' \| \
867          X"$0" : 'X\(/\)' \| \
868          .     : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872           /^X\(\/\/\)$/{ s//\1/; q; }
873           /^X\(\/\).*/{ s//\1/; q; }
874           s/.*/./; q'`
875   srcdir=$ac_confdir
876   if test ! -r $srcdir/$ac_unique_file; then
877     srcdir=..
878   fi
879 else
880   ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883   if test "$ac_srcdir_defaulted" = yes; then
884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885    { (exit 1); exit 1; }; }
886   else
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888    { (exit 1); exit 1; }; }
889   fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893    { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CXX_set=${CXX+set}
924 ac_env_CXX_value=$CXX
925 ac_cv_env_CXX_set=${CXX+set}
926 ac_cv_env_CXX_value=$CXX
927 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
928 ac_env_CXXFLAGS_value=$CXXFLAGS
929 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952   # Omit some internal or obsolete options to make the list less imposing.
953   # This message is too long to be a string in the A/UX 3.1 sh.
954   cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965   -h, --help              display this help and exit
966       --help=short        display options specific to this package
967       --help=recursive    display the short help of all the included packages
968   -V, --version           display version information and exit
969   -q, --quiet, --silent   do not print \`checking...' messages
970       --cache-file=FILE   cache test results in FILE [disabled]
971   -C, --config-cache      alias for \`--cache-file=config.cache'
972   -n, --no-create         do not create output files
973       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977   cat <<_ACEOF
978 Installation directories:
979   --prefix=PREFIX         install architecture-independent files in PREFIX
980                           [$ac_default_prefix]
981   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982                           [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992   --bindir=DIR           user executables [EPREFIX/bin]
993   --sbindir=DIR          system admin executables [EPREFIX/sbin]
994   --libexecdir=DIR       program executables [EPREFIX/libexec]
995   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999   --libdir=DIR           object code libraries [EPREFIX/lib]
1000   --includedir=DIR       C header files [PREFIX/include]
1001   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002   --infodir=DIR          info documentation [PREFIX/info]
1003   --mandir=DIR           man documentation [PREFIX/man]
1004 _ACEOF
1005
1006   cat <<\_ACEOF
1007
1008 Program names:
1009   --program-prefix=PREFIX            prepend PREFIX to installed program names
1010   --program-suffix=SUFFIX            append SUFFIX to installed program names
1011   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013 System types:
1014   --build=BUILD     configure for building on BUILD [guessed]
1015   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016   --target=TARGET   configure for building compilers for TARGET [HOST]
1017 _ACEOF
1018 fi
1019
1020 if test -n "$ac_init_help"; then
1021
1022   cat <<\_ACEOF
1023
1024 Optional Features:
1025   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027   --enable-checkmem       turn on ccmalloc debugging
1028   --enable-debug          turn on debugging
1029   --enable-warnings        turn on compiler warnings
1030   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1031   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1032   --enable-shared[=PKGS]
1033                           build shared libraries [default=yes]
1034   --enable-static[=PKGS]
1035                           build static libraries [default=yes]
1036   --enable-fast-install[=PKGS]
1037                           optimize for fast installation [default=yes]
1038   --disable-libtool-lock  avoid locking (might break parallel builds)
1039
1040 Optional Packages:
1041   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044   --with-pic              try to use only PIC/non-PIC objects [default=use
1045                           both]
1046   --with-tags[=TAGS]
1047                           include additional configurations [automatic]
1048
1049 Some influential environment variables:
1050   CC          C compiler command
1051   CFLAGS      C compiler flags
1052   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1053               nonstandard directory <lib dir>
1054   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055               headers in a nonstandard directory <include dir>
1056   CXX         C++ compiler command
1057   CXXFLAGS    C++ compiler flags
1058   CPP         C preprocessor
1059   CXXCPP      C++ preprocessor
1060   F77         Fortran 77 compiler command
1061   FFLAGS      Fortran 77 compiler flags
1062
1063 Use these variables to override the choices made by `configure' or to help
1064 it to find libraries and programs with nonstandard names/locations.
1065
1066 _ACEOF
1067 fi
1068
1069 if test "$ac_init_help" = "recursive"; then
1070   # If there are subdirs, report their specific --help.
1071   ac_popdir=`pwd`
1072   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073     test -d $ac_dir || continue
1074     ac_builddir=.
1075
1076 if test "$ac_dir" != .; then
1077   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078   # A "../" for each directory in $ac_dir_suffix.
1079   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1080 else
1081   ac_dir_suffix= ac_top_builddir=
1082 fi
1083
1084 case $srcdir in
1085   .)  # No --srcdir option.  We are building in place.
1086     ac_srcdir=.
1087     if test -z "$ac_top_builddir"; then
1088        ac_top_srcdir=.
1089     else
1090        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1091     fi ;;
1092   [\\/]* | ?:[\\/]* )  # Absolute path.
1093     ac_srcdir=$srcdir$ac_dir_suffix;
1094     ac_top_srcdir=$srcdir ;;
1095   *) # Relative path.
1096     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1098 esac
1099
1100 # Do not use `cd foo && pwd` to compute absolute paths, because
1101 # the directories may not exist.
1102 case `pwd` in
1103 .) ac_abs_builddir="$ac_dir";;
1104 *)
1105   case "$ac_dir" in
1106   .) ac_abs_builddir=`pwd`;;
1107   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1108   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1109   esac;;
1110 esac
1111 case $ac_abs_builddir in
1112 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 *)
1114   case ${ac_top_builddir}. in
1115   .) ac_abs_top_builddir=$ac_abs_builddir;;
1116   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1117   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1118   esac;;
1119 esac
1120 case $ac_abs_builddir in
1121 .) ac_abs_srcdir=$ac_srcdir;;
1122 *)
1123   case $ac_srcdir in
1124   .) ac_abs_srcdir=$ac_abs_builddir;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1126   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 *)
1132   case $ac_top_srcdir in
1133   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1134   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1135   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1136   esac;;
1137 esac
1138
1139     cd $ac_dir
1140     # Check for guested configure; otherwise get Cygnus style configure.
1141     if test -f $ac_srcdir/configure.gnu; then
1142       echo
1143       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1144     elif test -f $ac_srcdir/configure; then
1145       echo
1146       $SHELL $ac_srcdir/configure  --help=recursive
1147     elif test -f $ac_srcdir/configure.ac ||
1148            test -f $ac_srcdir/configure.in; then
1149       echo
1150       $ac_configure --help
1151     else
1152       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1153     fi
1154     cd $ac_popdir
1155   done
1156 fi
1157
1158 test -n "$ac_init_help" && exit 0
1159 if $ac_init_version; then
1160   cat <<\_ACEOF
1161
1162 Copyright (C) 2003 Free Software Foundation, Inc.
1163 This configure script is free software; the Free Software Foundation
1164 gives unlimited permission to copy, distribute and modify it.
1165 _ACEOF
1166   exit 0
1167 fi
1168 exec 5>config.log
1169 cat >&5 <<_ACEOF
1170 This file contains any messages produced by compilers while
1171 running configure, to aid debugging if configure makes a mistake.
1172
1173 It was created by $as_me, which was
1174 generated by GNU Autoconf 2.59.  Invocation command line was
1175
1176   $ $0 $@
1177
1178 _ACEOF
1179 {
1180 cat <<_ASUNAME
1181 ## --------- ##
1182 ## Platform. ##
1183 ## --------- ##
1184
1185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1190
1191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1192 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1193
1194 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1195 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1197 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1198 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1199 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1200 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1201
1202 _ASUNAME
1203
1204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205 for as_dir in $PATH
1206 do
1207   IFS=$as_save_IFS
1208   test -z "$as_dir" && as_dir=.
1209   echo "PATH: $as_dir"
1210 done
1211
1212 } >&5
1213
1214 cat >&5 <<_ACEOF
1215
1216
1217 ## ----------- ##
1218 ## Core tests. ##
1219 ## ----------- ##
1220
1221 _ACEOF
1222
1223
1224 # Keep a trace of the command line.
1225 # Strip out --no-create and --no-recursion so they do not pile up.
1226 # Strip out --silent because we don't want to record it for future runs.
1227 # Also quote any args containing shell meta-characters.
1228 # Make two passes to allow for proper duplicate-argument suppression.
1229 ac_configure_args=
1230 ac_configure_args0=
1231 ac_configure_args1=
1232 ac_sep=
1233 ac_must_keep_next=false
1234 for ac_pass in 1 2
1235 do
1236   for ac_arg
1237   do
1238     case $ac_arg in
1239     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1240     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241     | -silent | --silent | --silen | --sile | --sil)
1242       continue ;;
1243     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1245     esac
1246     case $ac_pass in
1247     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1248     2)
1249       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1250       if test $ac_must_keep_next = true; then
1251         ac_must_keep_next=false # Got value, back to normal.
1252       else
1253         case $ac_arg in
1254           *=* | --config-cache | -C | -disable-* | --disable-* \
1255           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1256           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1257           | -with-* | --with-* | -without-* | --without-* | --x)
1258             case "$ac_configure_args0 " in
1259               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1260             esac
1261             ;;
1262           -* ) ac_must_keep_next=true ;;
1263         esac
1264       fi
1265       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1266       # Get rid of the leading space.
1267       ac_sep=" "
1268       ;;
1269     esac
1270   done
1271 done
1272 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1273 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1274
1275 # When interrupted or exit'd, cleanup temporary files, and complete
1276 # config.log.  We remove comments because anyway the quotes in there
1277 # would cause problems or look ugly.
1278 # WARNING: Be sure not to use single quotes in there, as some shells,
1279 # such as our DU 5.0 friend, will then `close' the trap.
1280 trap 'exit_status=$?
1281   # Save into config.log some information that might help in debugging.
1282   {
1283     echo
1284
1285     cat <<\_ASBOX
1286 ## ---------------- ##
1287 ## Cache variables. ##
1288 ## ---------------- ##
1289 _ASBOX
1290     echo
1291     # The following way of writing the cache mishandles newlines in values,
1292 {
1293   (set) 2>&1 |
1294     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1295     *ac_space=\ *)
1296       sed -n \
1297         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1299       ;;
1300     *)
1301       sed -n \
1302         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1303       ;;
1304     esac;
1305 }
1306     echo
1307
1308     cat <<\_ASBOX
1309 ## ----------------- ##
1310 ## Output variables. ##
1311 ## ----------------- ##
1312 _ASBOX
1313     echo
1314     for ac_var in $ac_subst_vars
1315     do
1316       eval ac_val=$`echo $ac_var`
1317       echo "$ac_var='"'"'$ac_val'"'"'"
1318     done | sort
1319     echo
1320
1321     if test -n "$ac_subst_files"; then
1322       cat <<\_ASBOX
1323 ## ------------- ##
1324 ## Output files. ##
1325 ## ------------- ##
1326 _ASBOX
1327       echo
1328       for ac_var in $ac_subst_files
1329       do
1330         eval ac_val=$`echo $ac_var`
1331         echo "$ac_var='"'"'$ac_val'"'"'"
1332       done | sort
1333       echo
1334     fi
1335
1336     if test -s confdefs.h; then
1337       cat <<\_ASBOX
1338 ## ----------- ##
1339 ## confdefs.h. ##
1340 ## ----------- ##
1341 _ASBOX
1342       echo
1343       sed "/^$/d" confdefs.h | sort
1344       echo
1345     fi
1346     test "$ac_signal" != 0 &&
1347       echo "$as_me: caught signal $ac_signal"
1348     echo "$as_me: exit $exit_status"
1349   } >&5
1350   rm -f core *.core &&
1351   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1352     exit $exit_status
1353      ' 0
1354 for ac_signal in 1 2 13 15; do
1355   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1356 done
1357 ac_signal=0
1358
1359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1360 rm -rf conftest* confdefs.h
1361 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1362 echo >confdefs.h
1363
1364 # Predefined preprocessor variables.
1365
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_NAME "$PACKAGE_NAME"
1368 _ACEOF
1369
1370
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1373 _ACEOF
1374
1375
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1378 _ACEOF
1379
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_STRING "$PACKAGE_STRING"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1388 _ACEOF
1389
1390
1391 # Let the site file select an alternate cache file if it wants to.
1392 # Prefer explicitly selected file to automatically selected ones.
1393 if test -z "$CONFIG_SITE"; then
1394   if test "x$prefix" != xNONE; then
1395     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1396   else
1397     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1398   fi
1399 fi
1400 for ac_site_file in $CONFIG_SITE; do
1401   if test -r "$ac_site_file"; then
1402     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403 echo "$as_me: loading site script $ac_site_file" >&6;}
1404     sed 's/^/| /' "$ac_site_file" >&5
1405     . "$ac_site_file"
1406   fi
1407 done
1408
1409 if test -r "$cache_file"; then
1410   # Some versions of bash will fail to source /dev/null (special
1411   # files actually), so we avoid doing that.
1412   if test -f "$cache_file"; then
1413     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414 echo "$as_me: loading cache $cache_file" >&6;}
1415     case $cache_file in
1416       [\\/]* | ?:[\\/]* ) . $cache_file;;
1417       *)                      . ./$cache_file;;
1418     esac
1419   fi
1420 else
1421   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422 echo "$as_me: creating cache $cache_file" >&6;}
1423   >$cache_file
1424 fi
1425
1426 # Check that the precious variables saved in the cache have kept the same
1427 # value.
1428 ac_cache_corrupted=false
1429 for ac_var in `(set) 2>&1 |
1430                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1431   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1432   eval ac_new_set=\$ac_env_${ac_var}_set
1433   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1434   eval ac_new_val="\$ac_env_${ac_var}_value"
1435   case $ac_old_set,$ac_new_set in
1436     set,)
1437       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1439       ac_cache_corrupted=: ;;
1440     ,set)
1441       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443       ac_cache_corrupted=: ;;
1444     ,);;
1445     *)
1446       if test "x$ac_old_val" != "x$ac_new_val"; then
1447         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1448 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1449         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1450 echo "$as_me:   former value:  $ac_old_val" >&2;}
1451         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1452 echo "$as_me:   current value: $ac_new_val" >&2;}
1453         ac_cache_corrupted=:
1454       fi;;
1455   esac
1456   # Pass precious variables to config.status.
1457   if test "$ac_new_set" = set; then
1458     case $ac_new_val in
1459     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1461     *) ac_arg=$ac_var=$ac_new_val ;;
1462     esac
1463     case " $ac_configure_args " in
1464       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1465       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1466     esac
1467   fi
1468 done
1469 if $ac_cache_corrupted; then
1470   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1473 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474    { (exit 1); exit 1; }; }
1475 fi
1476
1477 ac_ext=c
1478 ac_cpp='$CPP $CPPFLAGS'
1479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503 # Check whether --enable-checkmem or --disable-checkmem was given.
1504 if test "${enable_checkmem+set}" = set; then
1505   enableval="$enable_checkmem"
1506   CHECKMEM=true
1507 fi;
1508 # Check whether --enable-debug or --disable-debug was given.
1509 if test "${enable_debug+set}" = set; then
1510   enableval="$enable_debug"
1511   DEBUG=true
1512 fi;
1513 # Check whether --enable-warnings or --disable-warnings was given.
1514 if test "${enable_warnings+set}" = set; then
1515   enableval="$enable_warnings"
1516   ENABLE_WARNINGS=true
1517 fi;
1518 # Check whether --enable-optimizations or --disable-optimizations was given.
1519 if test "${enable_optimizations+set}" = set; then
1520   enableval="$enable_optimizations"
1521   OPTIMIZE=true
1522 fi;
1523 # Check whether --enable-lame or --disable-lame was given.
1524 if test "${enable_lame+set}" = set; then
1525   enableval="$enable_lame"
1526   DISABLE_LAME=true
1527 fi;
1528
1529 PACKAGE=swftools
1530 VERSION=2004-09-18-1422
1531
1532
1533 # ------------------------------------------------------------------
1534
1535 if test "x${srcdir}" != "x."; then
1536     echo "--srcdir is not supported"
1537     exit 1
1538 fi
1539
1540 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1541 if test "x$ENABLE_WARNINGS" '!=' "x";then
1542     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1543 fi
1544
1545 if test "x$CHECKMEM" '!=' "x";then
1546     DEBUG=yes
1547 fi
1548 if test "x$DEBUG" '!=' "x";then
1549     CFLAGS="$WARNINGS -g $CFLAGS"
1550     CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1551 else if test "x$OPTIMIZE" '!=' "x"; then
1552     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1553     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1554 else
1555     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1556     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1557 fi
1558 fi
1559 #OLDGCC=1
1560 #if test "x$OLDGCC" '!=' "x";then
1561 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1562 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1563 #     CFLAGS="$CFLAGS -ansi -pendantic"
1564 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1565 #fi
1566
1567 export PACKAGE VERSION CFLAGS CXXFLAGS
1568
1569  ac_aux_dir=
1570 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1571   if test -f $ac_dir/install-sh; then
1572     ac_aux_dir=$ac_dir
1573     ac_install_sh="$ac_aux_dir/install-sh -c"
1574     break
1575   elif test -f $ac_dir/install.sh; then
1576     ac_aux_dir=$ac_dir
1577     ac_install_sh="$ac_aux_dir/install.sh -c"
1578     break
1579   elif test -f $ac_dir/shtool; then
1580     ac_aux_dir=$ac_dir
1581     ac_install_sh="$ac_aux_dir/shtool install -c"
1582     break
1583   fi
1584 done
1585 if test -z "$ac_aux_dir"; then
1586   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1587 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1588    { (exit 1); exit 1; }; }
1589 fi
1590 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1591 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1592 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1593
1594 # Make sure we can run config.sub.
1595 $ac_config_sub sun4 >/dev/null 2>&1 ||
1596   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1597 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1598    { (exit 1); exit 1; }; }
1599
1600 echo "$as_me:$LINENO: checking build system type" >&5
1601 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1602 if test "${ac_cv_build+set}" = set; then
1603   echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605   ac_cv_build_alias=$build_alias
1606 test -z "$ac_cv_build_alias" &&
1607   ac_cv_build_alias=`$ac_config_guess`
1608 test -z "$ac_cv_build_alias" &&
1609   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1610 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1611    { (exit 1); exit 1; }; }
1612 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1613   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1614 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1615    { (exit 1); exit 1; }; }
1616
1617 fi
1618 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1619 echo "${ECHO_T}$ac_cv_build" >&6
1620 build=$ac_cv_build
1621 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1624
1625
1626 echo "$as_me:$LINENO: checking host system type" >&5
1627 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1628 if test "${ac_cv_host+set}" = set; then
1629   echo $ECHO_N "(cached) $ECHO_C" >&6
1630 else
1631   ac_cv_host_alias=$host_alias
1632 test -z "$ac_cv_host_alias" &&
1633   ac_cv_host_alias=$ac_cv_build_alias
1634 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1635   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1637    { (exit 1); exit 1; }; }
1638
1639 fi
1640 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1641 echo "${ECHO_T}$ac_cv_host" >&6
1642 host=$ac_cv_host
1643 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648 MACOSX=
1649 case $host_os in
1650     *darwin* )
1651         MACOSX=yes
1652         CFLAGS="$CFLAGS -fno-rtti"
1653         CXXFLAGS="$CXXFLAGS -fno-rtti"
1654         ;;
1655 esac
1656  ac_ext=c
1657 ac_cpp='$CPP $CPPFLAGS'
1658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1661 if test -n "$ac_tool_prefix"; then
1662   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1663 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1664 echo "$as_me:$LINENO: checking for $ac_word" >&5
1665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666 if test "${ac_cv_prog_CC+set}" = set; then
1667   echo $ECHO_N "(cached) $ECHO_C" >&6
1668 else
1669   if test -n "$CC"; then
1670   ac_cv_prog_CC="$CC" # Let the user override the test.
1671 else
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 for as_dir in $PATH
1674 do
1675   IFS=$as_save_IFS
1676   test -z "$as_dir" && as_dir=.
1677   for ac_exec_ext in '' $ac_executable_extensions; do
1678   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681     break 2
1682   fi
1683 done
1684 done
1685
1686 fi
1687 fi
1688 CC=$ac_cv_prog_CC
1689 if test -n "$CC"; then
1690   echo "$as_me:$LINENO: result: $CC" >&5
1691 echo "${ECHO_T}$CC" >&6
1692 else
1693   echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1695 fi
1696
1697 fi
1698 if test -z "$ac_cv_prog_CC"; then
1699   ac_ct_CC=$CC
1700   # Extract the first word of "gcc", so it can be a program name with args.
1701 set dummy gcc; ac_word=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1705   echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707   if test -n "$ac_ct_CC"; then
1708   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1709 else
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 for as_dir in $PATH
1712 do
1713   IFS=$as_save_IFS
1714   test -z "$as_dir" && as_dir=.
1715   for ac_exec_ext in '' $ac_executable_extensions; do
1716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717     ac_cv_prog_ac_ct_CC="gcc"
1718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719     break 2
1720   fi
1721 done
1722 done
1723
1724 fi
1725 fi
1726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1727 if test -n "$ac_ct_CC"; then
1728   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1729 echo "${ECHO_T}$ac_ct_CC" >&6
1730 else
1731   echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1733 fi
1734
1735   CC=$ac_ct_CC
1736 else
1737   CC="$ac_cv_prog_CC"
1738 fi
1739
1740 if test -z "$CC"; then
1741   if test -n "$ac_tool_prefix"; then
1742   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1743 set dummy ${ac_tool_prefix}cc; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747   echo $ECHO_N "(cached) $ECHO_C" >&6
1748 else
1749   if test -n "$CC"; then
1750   ac_cv_prog_CC="$CC" # Let the user override the test.
1751 else
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1754 do
1755   IFS=$as_save_IFS
1756   test -z "$as_dir" && as_dir=.
1757   for ac_exec_ext in '' $ac_executable_extensions; do
1758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759     ac_cv_prog_CC="${ac_tool_prefix}cc"
1760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761     break 2
1762   fi
1763 done
1764 done
1765
1766 fi
1767 fi
1768 CC=$ac_cv_prog_CC
1769 if test -n "$CC"; then
1770   echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1772 else
1773   echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775 fi
1776
1777 fi
1778 if test -z "$ac_cv_prog_CC"; then
1779   ac_ct_CC=$CC
1780   # Extract the first word of "cc", so it can be a program name with args.
1781 set dummy cc; ac_word=$2
1782 echo "$as_me:$LINENO: checking for $ac_word" >&5
1783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1785   echo $ECHO_N "(cached) $ECHO_C" >&6
1786 else
1787   if test -n "$ac_ct_CC"; then
1788   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1789 else
1790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791 for as_dir in $PATH
1792 do
1793   IFS=$as_save_IFS
1794   test -z "$as_dir" && as_dir=.
1795   for ac_exec_ext in '' $ac_executable_extensions; do
1796   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797     ac_cv_prog_ac_ct_CC="cc"
1798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799     break 2
1800   fi
1801 done
1802 done
1803
1804 fi
1805 fi
1806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1807 if test -n "$ac_ct_CC"; then
1808   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1809 echo "${ECHO_T}$ac_ct_CC" >&6
1810 else
1811   echo "$as_me:$LINENO: result: no" >&5
1812 echo "${ECHO_T}no" >&6
1813 fi
1814
1815   CC=$ac_ct_CC
1816 else
1817   CC="$ac_cv_prog_CC"
1818 fi
1819
1820 fi
1821 if test -z "$CC"; then
1822   # Extract the first word of "cc", so it can be a program name with args.
1823 set dummy cc; ac_word=$2
1824 echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826 if test "${ac_cv_prog_CC+set}" = set; then
1827   echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829   if test -n "$CC"; then
1830   ac_cv_prog_CC="$CC" # Let the user override the test.
1831 else
1832   ac_prog_rejected=no
1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 for as_dir in $PATH
1835 do
1836   IFS=$as_save_IFS
1837   test -z "$as_dir" && as_dir=.
1838   for ac_exec_ext in '' $ac_executable_extensions; do
1839   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1841        ac_prog_rejected=yes
1842        continue
1843      fi
1844     ac_cv_prog_CC="cc"
1845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1846     break 2
1847   fi
1848 done
1849 done
1850
1851 if test $ac_prog_rejected = yes; then
1852   # We found a bogon in the path, so make sure we never use it.
1853   set dummy $ac_cv_prog_CC
1854   shift
1855   if test $# != 0; then
1856     # We chose a different compiler from the bogus one.
1857     # However, it has the same basename, so the bogon will be chosen
1858     # first if we set CC to just the basename; use the full file name.
1859     shift
1860     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1861   fi
1862 fi
1863 fi
1864 fi
1865 CC=$ac_cv_prog_CC
1866 if test -n "$CC"; then
1867   echo "$as_me:$LINENO: result: $CC" >&5
1868 echo "${ECHO_T}$CC" >&6
1869 else
1870   echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1872 fi
1873
1874 fi
1875 if test -z "$CC"; then
1876   if test -n "$ac_tool_prefix"; then
1877   for ac_prog in cl
1878   do
1879     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_CC+set}" = set; then
1884   echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886   if test -n "$CC"; then
1887   ac_cv_prog_CC="$CC" # Let the user override the test.
1888 else
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1891 do
1892   IFS=$as_save_IFS
1893   test -z "$as_dir" && as_dir=.
1894   for ac_exec_ext in '' $ac_executable_extensions; do
1895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898     break 2
1899   fi
1900 done
1901 done
1902
1903 fi
1904 fi
1905 CC=$ac_cv_prog_CC
1906 if test -n "$CC"; then
1907   echo "$as_me:$LINENO: result: $CC" >&5
1908 echo "${ECHO_T}$CC" >&6
1909 else
1910   echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1912 fi
1913
1914     test -n "$CC" && break
1915   done
1916 fi
1917 if test -z "$CC"; then
1918   ac_ct_CC=$CC
1919   for ac_prog in cl
1920 do
1921   # Extract the first word of "$ac_prog", so it can be a program name with args.
1922 set dummy $ac_prog; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1926   echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928   if test -n "$ac_ct_CC"; then
1929   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1930 else
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1933 do
1934   IFS=$as_save_IFS
1935   test -z "$as_dir" && as_dir=.
1936   for ac_exec_ext in '' $ac_executable_extensions; do
1937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938     ac_cv_prog_ac_ct_CC="$ac_prog"
1939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940     break 2
1941   fi
1942 done
1943 done
1944
1945 fi
1946 fi
1947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948 if test -n "$ac_ct_CC"; then
1949   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950 echo "${ECHO_T}$ac_ct_CC" >&6
1951 else
1952   echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1954 fi
1955
1956   test -n "$ac_ct_CC" && break
1957 done
1958
1959   CC=$ac_ct_CC
1960 fi
1961
1962 fi
1963
1964
1965 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1966 See \`config.log' for more details." >&5
1967 echo "$as_me: error: no acceptable C compiler found in \$PATH
1968 See \`config.log' for more details." >&2;}
1969    { (exit 1); exit 1; }; }
1970
1971 # Provide some information about the compiler.
1972 echo "$as_me:$LINENO:" \
1973      "checking for C compiler version" >&5
1974 ac_compiler=`set X $ac_compile; echo $2`
1975 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1976   (eval $ac_compiler --version </dev/null >&5) 2>&5
1977   ac_status=$?
1978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979   (exit $ac_status); }
1980 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1981   (eval $ac_compiler -v </dev/null >&5) 2>&5
1982   ac_status=$?
1983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984   (exit $ac_status); }
1985 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1986   (eval $ac_compiler -V </dev/null >&5) 2>&5
1987   ac_status=$?
1988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989   (exit $ac_status); }
1990
1991 cat >conftest.$ac_ext <<_ACEOF
1992 /* confdefs.h.  */
1993 _ACEOF
1994 cat confdefs.h >>conftest.$ac_ext
1995 cat >>conftest.$ac_ext <<_ACEOF
1996 /* end confdefs.h.  */
1997
1998 int
1999 main ()
2000 {
2001
2002   ;
2003   return 0;
2004 }
2005 _ACEOF
2006 ac_clean_files_save=$ac_clean_files
2007 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2008 # Try to create an executable without -o first, disregard a.out.
2009 # It will help us diagnose broken compilers, and finding out an intuition
2010 # of exeext.
2011 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2012 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2013 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2014 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2015   (eval $ac_link_default) 2>&5
2016   ac_status=$?
2017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018   (exit $ac_status); }; then
2019   # Find the output, starting from the most likely.  This scheme is
2020 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2021 # resort.
2022
2023 # Be careful to initialize this variable, since it used to be cached.
2024 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2025 ac_cv_exeext=
2026 # b.out is created by i960 compilers.
2027 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2028 do
2029   test -f "$ac_file" || continue
2030   case $ac_file in
2031     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2032         ;;
2033     conftest.$ac_ext )
2034         # This is the source file.
2035         ;;
2036     [ab].out )
2037         # We found the default executable, but exeext='' is most
2038         # certainly right.
2039         break;;
2040     *.* )
2041         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2042         # FIXME: I believe we export ac_cv_exeext for Libtool,
2043         # but it would be cool to find out if it's true.  Does anybody
2044         # maintain Libtool? --akim.
2045         export ac_cv_exeext
2046         break;;
2047     * )
2048         break;;
2049   esac
2050 done
2051 else
2052   echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2054
2055 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2056 See \`config.log' for more details." >&5
2057 echo "$as_me: error: C compiler cannot create executables
2058 See \`config.log' for more details." >&2;}
2059    { (exit 77); exit 77; }; }
2060 fi
2061
2062 ac_exeext=$ac_cv_exeext
2063 echo "$as_me:$LINENO: result: $ac_file" >&5
2064 echo "${ECHO_T}$ac_file" >&6
2065
2066 # Check the compiler produces executables we can run.  If not, either
2067 # the compiler is broken, or we cross compile.
2068 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2069 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2070 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2071 # If not cross compiling, check that we can run a simple program.
2072 if test "$cross_compiling" != yes; then
2073   if { ac_try='./$ac_file'
2074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2075   (eval $ac_try) 2>&5
2076   ac_status=$?
2077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078   (exit $ac_status); }; }; then
2079     cross_compiling=no
2080   else
2081     if test "$cross_compiling" = maybe; then
2082         cross_compiling=yes
2083     else
2084         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2085 If you meant to cross compile, use \`--host'.
2086 See \`config.log' for more details." >&5
2087 echo "$as_me: error: cannot run C compiled programs.
2088 If you meant to cross compile, use \`--host'.
2089 See \`config.log' for more details." >&2;}
2090    { (exit 1); exit 1; }; }
2091     fi
2092   fi
2093 fi
2094 echo "$as_me:$LINENO: result: yes" >&5
2095 echo "${ECHO_T}yes" >&6
2096
2097 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2098 ac_clean_files=$ac_clean_files_save
2099 # Check the compiler produces executables we can run.  If not, either
2100 # the compiler is broken, or we cross compile.
2101 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2102 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2103 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2104 echo "${ECHO_T}$cross_compiling" >&6
2105
2106 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2107 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2109   (eval $ac_link) 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }; then
2113   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2114 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2115 # work properly (i.e., refer to `conftest.exe'), while it won't with
2116 # `rm'.
2117 for ac_file in conftest.exe conftest conftest.*; do
2118   test -f "$ac_file" || continue
2119   case $ac_file in
2120     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2121     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2122           export ac_cv_exeext
2123           break;;
2124     * ) break;;
2125   esac
2126 done
2127 else
2128   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2129 See \`config.log' for more details." >&5
2130 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2131 See \`config.log' for more details." >&2;}
2132    { (exit 1); exit 1; }; }
2133 fi
2134
2135 rm -f conftest$ac_cv_exeext
2136 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2137 echo "${ECHO_T}$ac_cv_exeext" >&6
2138
2139 rm -f conftest.$ac_ext
2140 EXEEXT=$ac_cv_exeext
2141 ac_exeext=$EXEEXT
2142 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2143 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2144 if test "${ac_cv_objext+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   cat >conftest.$ac_ext <<_ACEOF
2148 /* confdefs.h.  */
2149 _ACEOF
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h.  */
2153
2154 int
2155 main ()
2156 {
2157
2158   ;
2159   return 0;
2160 }
2161 _ACEOF
2162 rm -f conftest.o conftest.obj
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164   (eval $ac_compile) 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); }; then
2168   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2169   case $ac_file in
2170     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2171     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2172        break;;
2173   esac
2174 done
2175 else
2176   echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2178
2179 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2180 See \`config.log' for more details." >&5
2181 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2182 See \`config.log' for more details." >&2;}
2183    { (exit 1); exit 1; }; }
2184 fi
2185
2186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2187 fi
2188 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2189 echo "${ECHO_T}$ac_cv_objext" >&6
2190 OBJEXT=$ac_cv_objext
2191 ac_objext=$OBJEXT
2192 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2193 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2194 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2195   echo $ECHO_N "(cached) $ECHO_C" >&6
2196 else
2197   cat >conftest.$ac_ext <<_ACEOF
2198 /* confdefs.h.  */
2199 _ACEOF
2200 cat confdefs.h >>conftest.$ac_ext
2201 cat >>conftest.$ac_ext <<_ACEOF
2202 /* end confdefs.h.  */
2203
2204 int
2205 main ()
2206 {
2207 #ifndef __GNUC__
2208        choke me
2209 #endif
2210
2211   ;
2212   return 0;
2213 }
2214 _ACEOF
2215 rm -f conftest.$ac_objext
2216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2217   (eval $ac_compile) 2>conftest.er1
2218   ac_status=$?
2219   grep -v '^ *+' conftest.er1 >conftest.err
2220   rm -f conftest.er1
2221   cat conftest.err >&5
2222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223   (exit $ac_status); } &&
2224          { ac_try='test -z "$ac_c_werror_flag"
2225                          || test ! -s conftest.err'
2226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227   (eval $ac_try) 2>&5
2228   ac_status=$?
2229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230   (exit $ac_status); }; } &&
2231          { ac_try='test -s conftest.$ac_objext'
2232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233   (eval $ac_try) 2>&5
2234   ac_status=$?
2235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236   (exit $ac_status); }; }; then
2237   ac_compiler_gnu=yes
2238 else
2239   echo "$as_me: failed program was:" >&5
2240 sed 's/^/| /' conftest.$ac_ext >&5
2241
2242 ac_compiler_gnu=no
2243 fi
2244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2245 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2246
2247 fi
2248 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2249 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2250 GCC=`test $ac_compiler_gnu = yes && echo yes`
2251 ac_test_CFLAGS=${CFLAGS+set}
2252 ac_save_CFLAGS=$CFLAGS
2253 CFLAGS="-g"
2254 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2255 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2256 if test "${ac_cv_prog_cc_g+set}" = set; then
2257   echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259   cat >conftest.$ac_ext <<_ACEOF
2260 /* confdefs.h.  */
2261 _ACEOF
2262 cat confdefs.h >>conftest.$ac_ext
2263 cat >>conftest.$ac_ext <<_ACEOF
2264 /* end confdefs.h.  */
2265
2266 int
2267 main ()
2268 {
2269
2270   ;
2271   return 0;
2272 }
2273 _ACEOF
2274 rm -f conftest.$ac_objext
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276   (eval $ac_compile) 2>conftest.er1
2277   ac_status=$?
2278   grep -v '^ *+' conftest.er1 >conftest.err
2279   rm -f conftest.er1
2280   cat conftest.err >&5
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); } &&
2283          { ac_try='test -z "$ac_c_werror_flag"
2284                          || test ! -s conftest.err'
2285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286   (eval $ac_try) 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }; } &&
2290          { ac_try='test -s conftest.$ac_objext'
2291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292   (eval $ac_try) 2>&5
2293   ac_status=$?
2294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295   (exit $ac_status); }; }; then
2296   ac_cv_prog_cc_g=yes
2297 else
2298   echo "$as_me: failed program was:" >&5
2299 sed 's/^/| /' conftest.$ac_ext >&5
2300
2301 ac_cv_prog_cc_g=no
2302 fi
2303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2304 fi
2305 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2306 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2307 if test "$ac_test_CFLAGS" = set; then
2308   CFLAGS=$ac_save_CFLAGS
2309 elif test $ac_cv_prog_cc_g = yes; then
2310   if test "$GCC" = yes; then
2311     CFLAGS="-g -O2"
2312   else
2313     CFLAGS="-g"
2314   fi
2315 else
2316   if test "$GCC" = yes; then
2317     CFLAGS="-O2"
2318   else
2319     CFLAGS=
2320   fi
2321 fi
2322 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2323 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2324 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2325   echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327   ac_cv_prog_cc_stdc=no
2328 ac_save_CC=$CC
2329 cat >conftest.$ac_ext <<_ACEOF
2330 /* confdefs.h.  */
2331 _ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h.  */
2335 #include <stdarg.h>
2336 #include <stdio.h>
2337 #include <sys/types.h>
2338 #include <sys/stat.h>
2339 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2340 struct buf { int x; };
2341 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2342 static char *e (p, i)
2343      char **p;
2344      int i;
2345 {
2346   return p[i];
2347 }
2348 static char *f (char * (*g) (char **, int), char **p, ...)
2349 {
2350   char *s;
2351   va_list v;
2352   va_start (v,p);
2353   s = g (p, va_arg (v,int));
2354   va_end (v);
2355   return s;
2356 }
2357
2358 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2359    function prototypes and stuff, but not '\xHH' hex character constants.
2360    These don't provoke an error unfortunately, instead are silently treated
2361    as 'x'.  The following induces an error, until -std1 is added to get
2362    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2363    array size at least.  It's necessary to write '\x00'==0 to get something
2364    that's true only with -std1.  */
2365 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2366
2367 int test (int i, double x);
2368 struct s1 {int (*f) (int a);};
2369 struct s2 {int (*f) (double a);};
2370 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2371 int argc;
2372 char **argv;
2373 int
2374 main ()
2375 {
2376 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2377   ;
2378   return 0;
2379 }
2380 _ACEOF
2381 # Don't try gcc -ansi; that turns off useful extensions and
2382 # breaks some systems' header files.
2383 # AIX                   -qlanglvl=ansi
2384 # Ultrix and OSF/1      -std1
2385 # HP-UX 10.20 and later -Ae
2386 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2387 # SVR4                  -Xc -D__EXTENSIONS__
2388 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2389 do
2390   CC="$ac_save_CC $ac_arg"
2391   rm -f conftest.$ac_objext
2392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2393   (eval $ac_compile) 2>conftest.er1
2394   ac_status=$?
2395   grep -v '^ *+' conftest.er1 >conftest.err
2396   rm -f conftest.er1
2397   cat conftest.err >&5
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); } &&
2400          { ac_try='test -z "$ac_c_werror_flag"
2401                          || test ! -s conftest.err'
2402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403   (eval $ac_try) 2>&5
2404   ac_status=$?
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); }; } &&
2407          { ac_try='test -s conftest.$ac_objext'
2408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409   (eval $ac_try) 2>&5
2410   ac_status=$?
2411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412   (exit $ac_status); }; }; then
2413   ac_cv_prog_cc_stdc=$ac_arg
2414 break
2415 else
2416   echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2418
2419 fi
2420 rm -f conftest.err conftest.$ac_objext
2421 done
2422 rm -f conftest.$ac_ext conftest.$ac_objext
2423 CC=$ac_save_CC
2424
2425 fi
2426
2427 case "x$ac_cv_prog_cc_stdc" in
2428   x|xno)
2429     echo "$as_me:$LINENO: result: none needed" >&5
2430 echo "${ECHO_T}none needed" >&6 ;;
2431   *)
2432     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2433 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2434     CC="$CC $ac_cv_prog_cc_stdc" ;;
2435 esac
2436
2437 # Some people use a C++ compiler to compile C.  Since we use `exit',
2438 # in C++ we need to declare it.  In case someone uses the same compiler
2439 # for both compiling C and C++ we need to have the C++ compiler decide
2440 # the declaration of exit, since it's the most demanding environment.
2441 cat >conftest.$ac_ext <<_ACEOF
2442 #ifndef __cplusplus
2443   choke me
2444 #endif
2445 _ACEOF
2446 rm -f conftest.$ac_objext
2447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448   (eval $ac_compile) 2>conftest.er1
2449   ac_status=$?
2450   grep -v '^ *+' conftest.er1 >conftest.err
2451   rm -f conftest.er1
2452   cat conftest.err >&5
2453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454   (exit $ac_status); } &&
2455          { ac_try='test -z "$ac_c_werror_flag"
2456                          || test ! -s conftest.err'
2457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458   (eval $ac_try) 2>&5
2459   ac_status=$?
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); }; } &&
2462          { ac_try='test -s conftest.$ac_objext'
2463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464   (eval $ac_try) 2>&5
2465   ac_status=$?
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); }; }; then
2468   for ac_declaration in \
2469    '' \
2470    'extern "C" void std::exit (int) throw (); using std::exit;' \
2471    'extern "C" void std::exit (int); using std::exit;' \
2472    'extern "C" void exit (int) throw ();' \
2473    'extern "C" void exit (int);' \
2474    'void exit (int);'
2475 do
2476   cat >conftest.$ac_ext <<_ACEOF
2477 /* confdefs.h.  */
2478 _ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h.  */
2482 $ac_declaration
2483 #include <stdlib.h>
2484 int
2485 main ()
2486 {
2487 exit (42);
2488   ;
2489   return 0;
2490 }
2491 _ACEOF
2492 rm -f conftest.$ac_objext
2493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2494   (eval $ac_compile) 2>conftest.er1
2495   ac_status=$?
2496   grep -v '^ *+' conftest.er1 >conftest.err
2497   rm -f conftest.er1
2498   cat conftest.err >&5
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); } &&
2501          { ac_try='test -z "$ac_c_werror_flag"
2502                          || test ! -s conftest.err'
2503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504   (eval $ac_try) 2>&5
2505   ac_status=$?
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); }; } &&
2508          { ac_try='test -s conftest.$ac_objext'
2509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510   (eval $ac_try) 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; }; then
2514   :
2515 else
2516   echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2518
2519 continue
2520 fi
2521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2522   cat >conftest.$ac_ext <<_ACEOF
2523 /* confdefs.h.  */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h.  */
2528 $ac_declaration
2529 int
2530 main ()
2531 {
2532 exit (42);
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 rm -f conftest.$ac_objext
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539   (eval $ac_compile) 2>conftest.er1
2540   ac_status=$?
2541   grep -v '^ *+' conftest.er1 >conftest.err
2542   rm -f conftest.er1
2543   cat conftest.err >&5
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); } &&
2546          { ac_try='test -z "$ac_c_werror_flag"
2547                          || test ! -s conftest.err'
2548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549   (eval $ac_try) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); }; } &&
2553          { ac_try='test -s conftest.$ac_objext'
2554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555   (eval $ac_try) 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; }; then
2559   break
2560 else
2561   echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2563
2564 fi
2565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2566 done
2567 rm -f conftest*
2568 if test -n "$ac_declaration"; then
2569   echo '#ifdef __cplusplus' >>confdefs.h
2570   echo $ac_declaration      >>confdefs.h
2571   echo '#endif'             >>confdefs.h
2572 fi
2573
2574 else
2575   echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2577
2578 fi
2579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2580 ac_ext=c
2581 ac_cpp='$CPP $CPPFLAGS'
2582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2585
2586  ac_ext=cc
2587 ac_cpp='$CXXCPP $CPPFLAGS'
2588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2591 if test -n "$ac_tool_prefix"; then
2592   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2593   do
2594     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2596 echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598 if test "${ac_cv_prog_CXX+set}" = set; then
2599   echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601   if test -n "$CXX"; then
2602   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607   IFS=$as_save_IFS
2608   test -z "$as_dir" && as_dir=.
2609   for ac_exec_ext in '' $ac_executable_extensions; do
2610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613     break 2
2614   fi
2615 done
2616 done
2617
2618 fi
2619 fi
2620 CXX=$ac_cv_prog_CXX
2621 if test -n "$CXX"; then
2622   echo "$as_me:$LINENO: result: $CXX" >&5
2623 echo "${ECHO_T}$CXX" >&6
2624 else
2625   echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6
2627 fi
2628
2629     test -n "$CXX" && break
2630   done
2631 fi
2632 if test -z "$CXX"; then
2633   ac_ct_CXX=$CXX
2634   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2635 do
2636   # Extract the first word of "$ac_prog", so it can be a program name with args.
2637 set dummy $ac_prog; ac_word=$2
2638 echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2640 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2641   echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643   if test -n "$ac_ct_CXX"; then
2644   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649   IFS=$as_save_IFS
2650   test -z "$as_dir" && as_dir=.
2651   for ac_exec_ext in '' $ac_executable_extensions; do
2652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653     ac_cv_prog_ac_ct_CXX="$ac_prog"
2654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655     break 2
2656   fi
2657 done
2658 done
2659
2660 fi
2661 fi
2662 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2663 if test -n "$ac_ct_CXX"; then
2664   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2665 echo "${ECHO_T}$ac_ct_CXX" >&6
2666 else
2667   echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6
2669 fi
2670
2671   test -n "$ac_ct_CXX" && break
2672 done
2673 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2674
2675   CXX=$ac_ct_CXX
2676 fi
2677
2678
2679 # Provide some information about the compiler.
2680 echo "$as_me:$LINENO:" \
2681      "checking for C++ compiler version" >&5
2682 ac_compiler=`set X $ac_compile; echo $2`
2683 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2684   (eval $ac_compiler --version </dev/null >&5) 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }
2688 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2689   (eval $ac_compiler -v </dev/null >&5) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); }
2693 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2694   (eval $ac_compiler -V </dev/null >&5) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); }
2698
2699 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2700 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2701 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2702   echo $ECHO_N "(cached) $ECHO_C" >&6
2703 else
2704   cat >conftest.$ac_ext <<_ACEOF
2705 /* confdefs.h.  */
2706 _ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h.  */
2710
2711 int
2712 main ()
2713 {
2714 #ifndef __GNUC__
2715        choke me
2716 #endif
2717
2718   ;
2719   return 0;
2720 }
2721 _ACEOF
2722 rm -f conftest.$ac_objext
2723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724   (eval $ac_compile) 2>conftest.er1
2725   ac_status=$?
2726   grep -v '^ *+' conftest.er1 >conftest.err
2727   rm -f conftest.er1
2728   cat conftest.err >&5
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); } &&
2731          { ac_try='test -z "$ac_cxx_werror_flag"
2732                          || test ! -s conftest.err'
2733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734   (eval $ac_try) 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }; } &&
2738          { ac_try='test -s conftest.$ac_objext'
2739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740   (eval $ac_try) 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); }; }; then
2744   ac_compiler_gnu=yes
2745 else
2746   echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2748
2749 ac_compiler_gnu=no
2750 fi
2751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2752 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2753
2754 fi
2755 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2756 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2757 GXX=`test $ac_compiler_gnu = yes && echo yes`
2758 ac_test_CXXFLAGS=${CXXFLAGS+set}
2759 ac_save_CXXFLAGS=$CXXFLAGS
2760 CXXFLAGS="-g"
2761 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2762 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2763 if test "${ac_cv_prog_cxx_g+set}" = set; then
2764   echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766   cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h.  */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h.  */
2772
2773 int
2774 main ()
2775 {
2776
2777   ;
2778   return 0;
2779 }
2780 _ACEOF
2781 rm -f conftest.$ac_objext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783   (eval $ac_compile) 2>conftest.er1
2784   ac_status=$?
2785   grep -v '^ *+' conftest.er1 >conftest.err
2786   rm -f conftest.er1
2787   cat conftest.err >&5
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); } &&
2790          { ac_try='test -z "$ac_cxx_werror_flag"
2791                          || test ! -s conftest.err'
2792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793   (eval $ac_try) 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; } &&
2797          { ac_try='test -s conftest.$ac_objext'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; }; then
2803   ac_cv_prog_cxx_g=yes
2804 else
2805   echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2807
2808 ac_cv_prog_cxx_g=no
2809 fi
2810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811 fi
2812 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2813 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2814 if test "$ac_test_CXXFLAGS" = set; then
2815   CXXFLAGS=$ac_save_CXXFLAGS
2816 elif test $ac_cv_prog_cxx_g = yes; then
2817   if test "$GXX" = yes; then
2818     CXXFLAGS="-g -O2"
2819   else
2820     CXXFLAGS="-g"
2821   fi
2822 else
2823   if test "$GXX" = yes; then
2824     CXXFLAGS="-O2"
2825   else
2826     CXXFLAGS=
2827   fi
2828 fi
2829 for ac_declaration in \
2830    '' \
2831    'extern "C" void std::exit (int) throw (); using std::exit;' \
2832    'extern "C" void std::exit (int); using std::exit;' \
2833    'extern "C" void exit (int) throw ();' \
2834    'extern "C" void exit (int);' \
2835    'void exit (int);'
2836 do
2837   cat >conftest.$ac_ext <<_ACEOF
2838 /* confdefs.h.  */
2839 _ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h.  */
2843 $ac_declaration
2844 #include <stdlib.h>
2845 int
2846 main ()
2847 {
2848 exit (42);
2849   ;
2850   return 0;
2851 }
2852 _ACEOF
2853 rm -f conftest.$ac_objext
2854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2855   (eval $ac_compile) 2>conftest.er1
2856   ac_status=$?
2857   grep -v '^ *+' conftest.er1 >conftest.err
2858   rm -f conftest.er1
2859   cat conftest.err >&5
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); } &&
2862          { ac_try='test -z "$ac_cxx_werror_flag"
2863                          || test ! -s conftest.err'
2864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865   (eval $ac_try) 2>&5
2866   ac_status=$?
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); }; } &&
2869          { ac_try='test -s conftest.$ac_objext'
2870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871   (eval $ac_try) 2>&5
2872   ac_status=$?
2873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874   (exit $ac_status); }; }; then
2875   :
2876 else
2877   echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2879
2880 continue
2881 fi
2882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2883   cat >conftest.$ac_ext <<_ACEOF
2884 /* confdefs.h.  */
2885 _ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h.  */
2889 $ac_declaration
2890 int
2891 main ()
2892 {
2893 exit (42);
2894   ;
2895   return 0;
2896 }
2897 _ACEOF
2898 rm -f conftest.$ac_objext
2899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2900   (eval $ac_compile) 2>conftest.er1
2901   ac_status=$?
2902   grep -v '^ *+' conftest.er1 >conftest.err
2903   rm -f conftest.er1
2904   cat conftest.err >&5
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } &&
2907          { ac_try='test -z "$ac_cxx_werror_flag"
2908                          || test ! -s conftest.err'
2909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910   (eval $ac_try) 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; } &&
2914          { ac_try='test -s conftest.$ac_objext'
2915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916   (eval $ac_try) 2>&5
2917   ac_status=$?
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); }; }; then
2920   break
2921 else
2922   echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2924
2925 fi
2926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2927 done
2928 rm -f conftest*
2929 if test -n "$ac_declaration"; then
2930   echo '#ifdef __cplusplus' >>confdefs.h
2931   echo $ac_declaration      >>confdefs.h
2932   echo '#endif'             >>confdefs.h
2933 fi
2934
2935 ac_ext=c
2936 ac_cpp='$CPP $CPPFLAGS'
2937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940
2941
2942 if test "x$CHECKMEM" '!=' "x";then
2943     CC="ccmalloc $CC"
2944     CXX="ccmalloc $CXX"
2945     #echo running again
2946     #unset ac_cv_prog_CC
2947     #unset ac_cv_prog_CXX
2948     #AC_PROG_CC
2949     #AC_PROG_CXX
2950 fi
2951  ac_ext=c
2952 ac_cpp='$CPP $CPPFLAGS'
2953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2957 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2958 # On Suns, sometimes $CPP names a directory.
2959 if test -n "$CPP" && test -d "$CPP"; then
2960   CPP=
2961 fi
2962 if test -z "$CPP"; then
2963   if test "${ac_cv_prog_CPP+set}" = set; then
2964   echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966       # Double quotes because CPP needs to be expanded
2967     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2968     do
2969       ac_preproc_ok=false
2970 for ac_c_preproc_warn_flag in '' yes
2971 do
2972   # Use a header file that comes with gcc, so configuring glibc
2973   # with a fresh cross-compiler works.
2974   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2975   # <limits.h> exists even on freestanding compilers.
2976   # On the NeXT, cc -E runs the code through the compiler's parser,
2977   # not just through cpp. "Syntax error" is here to catch this case.
2978   cat >conftest.$ac_ext <<_ACEOF
2979 /* confdefs.h.  */
2980 _ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h.  */
2984 #ifdef __STDC__
2985 # include <limits.h>
2986 #else
2987 # include <assert.h>
2988 #endif
2989                      Syntax error
2990 _ACEOF
2991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2992   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2993   ac_status=$?
2994   grep -v '^ *+' conftest.er1 >conftest.err
2995   rm -f conftest.er1
2996   cat conftest.err >&5
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); } >/dev/null; then
2999   if test -s conftest.err; then
3000     ac_cpp_err=$ac_c_preproc_warn_flag
3001     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3002   else
3003     ac_cpp_err=
3004   fi
3005 else
3006   ac_cpp_err=yes
3007 fi
3008 if test -z "$ac_cpp_err"; then
3009   :
3010 else
3011   echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3013
3014   # Broken: fails on valid input.
3015 continue
3016 fi
3017 rm -f conftest.err conftest.$ac_ext
3018
3019   # OK, works on sane cases.  Now check whether non-existent headers
3020   # can be detected and how.
3021   cat >conftest.$ac_ext <<_ACEOF
3022 /* confdefs.h.  */
3023 _ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h.  */
3027 #include <ac_nonexistent.h>
3028 _ACEOF
3029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3030   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3031   ac_status=$?
3032   grep -v '^ *+' conftest.er1 >conftest.err
3033   rm -f conftest.er1
3034   cat conftest.err >&5
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); } >/dev/null; then
3037   if test -s conftest.err; then
3038     ac_cpp_err=$ac_c_preproc_warn_flag
3039     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3040   else
3041     ac_cpp_err=
3042   fi
3043 else
3044   ac_cpp_err=yes
3045 fi
3046 if test -z "$ac_cpp_err"; then
3047   # Broken: success on invalid input.
3048 continue
3049 else
3050   echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3052
3053   # Passes both tests.
3054 ac_preproc_ok=:
3055 break
3056 fi
3057 rm -f conftest.err conftest.$ac_ext
3058
3059 done
3060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3061 rm -f conftest.err conftest.$ac_ext
3062 if $ac_preproc_ok; then
3063   break
3064 fi
3065
3066     done
3067     ac_cv_prog_CPP=$CPP
3068
3069 fi
3070   CPP=$ac_cv_prog_CPP
3071 else
3072   ac_cv_prog_CPP=$CPP
3073 fi
3074 echo "$as_me:$LINENO: result: $CPP" >&5
3075 echo "${ECHO_T}$CPP" >&6
3076 ac_preproc_ok=false
3077 for ac_c_preproc_warn_flag in '' yes
3078 do
3079   # Use a header file that comes with gcc, so configuring glibc
3080   # with a fresh cross-compiler works.
3081   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3082   # <limits.h> exists even on freestanding compilers.
3083   # On the NeXT, cc -E runs the code through the compiler's parser,
3084   # not just through cpp. "Syntax error" is here to catch this case.
3085   cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h.  */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h.  */
3091 #ifdef __STDC__
3092 # include <limits.h>
3093 #else
3094 # include <assert.h>
3095 #endif
3096                      Syntax error
3097 _ACEOF
3098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3099   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3100   ac_status=$?
3101   grep -v '^ *+' conftest.er1 >conftest.err
3102   rm -f conftest.er1
3103   cat conftest.err >&5
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); } >/dev/null; then
3106   if test -s conftest.err; then
3107     ac_cpp_err=$ac_c_preproc_warn_flag
3108     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3109   else
3110     ac_cpp_err=
3111   fi
3112 else
3113   ac_cpp_err=yes
3114 fi
3115 if test -z "$ac_cpp_err"; then
3116   :
3117 else
3118   echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3120
3121   # Broken: fails on valid input.
3122 continue
3123 fi
3124 rm -f conftest.err conftest.$ac_ext
3125
3126   # OK, works on sane cases.  Now check whether non-existent headers
3127   # can be detected and how.
3128   cat >conftest.$ac_ext <<_ACEOF
3129 /* confdefs.h.  */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h.  */
3134 #include <ac_nonexistent.h>
3135 _ACEOF
3136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3138   ac_status=$?
3139   grep -v '^ *+' conftest.er1 >conftest.err
3140   rm -f conftest.er1
3141   cat conftest.err >&5
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); } >/dev/null; then
3144   if test -s conftest.err; then
3145     ac_cpp_err=$ac_c_preproc_warn_flag
3146     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3147   else
3148     ac_cpp_err=
3149   fi
3150 else
3151   ac_cpp_err=yes
3152 fi
3153 if test -z "$ac_cpp_err"; then
3154   # Broken: success on invalid input.
3155 continue
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160   # Passes both tests.
3161 ac_preproc_ok=:
3162 break
3163 fi
3164 rm -f conftest.err conftest.$ac_ext
3165
3166 done
3167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3168 rm -f conftest.err conftest.$ac_ext
3169 if $ac_preproc_ok; then
3170   :
3171 else
3172   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3173 See \`config.log' for more details." >&5
3174 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3175 See \`config.log' for more details." >&2;}
3176    { (exit 1); exit 1; }; }
3177 fi
3178
3179 ac_ext=c
3180 ac_cpp='$CPP $CPPFLAGS'
3181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184
3185
3186  if test -n "$ac_tool_prefix"; then
3187   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3188 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3189 echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191 if test "${ac_cv_prog_RANLIB+set}" = set; then
3192   echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194   if test -n "$RANLIB"; then
3195   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200   IFS=$as_save_IFS
3201   test -z "$as_dir" && as_dir=.
3202   for ac_exec_ext in '' $ac_executable_extensions; do
3203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206     break 2
3207   fi
3208 done
3209 done
3210
3211 fi
3212 fi
3213 RANLIB=$ac_cv_prog_RANLIB
3214 if test -n "$RANLIB"; then
3215   echo "$as_me:$LINENO: result: $RANLIB" >&5
3216 echo "${ECHO_T}$RANLIB" >&6
3217 else
3218   echo "$as_me:$LINENO: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3220 fi
3221
3222 fi
3223 if test -z "$ac_cv_prog_RANLIB"; then
3224   ac_ct_RANLIB=$RANLIB
3225   # Extract the first word of "ranlib", so it can be a program name with args.
3226 set dummy ranlib; ac_word=$2
3227 echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3229 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232   if test -n "$ac_ct_RANLIB"; then
3233   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3234 else
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH
3237 do
3238   IFS=$as_save_IFS
3239   test -z "$as_dir" && as_dir=.
3240   for ac_exec_ext in '' $ac_executable_extensions; do
3241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242     ac_cv_prog_ac_ct_RANLIB="ranlib"
3243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3244     break 2
3245   fi
3246 done
3247 done
3248
3249   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3250 fi
3251 fi
3252 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3253 if test -n "$ac_ct_RANLIB"; then
3254   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3255 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3256 else
3257   echo "$as_me:$LINENO: result: no" >&5
3258 echo "${ECHO_T}no" >&6
3259 fi
3260
3261   RANLIB=$ac_ct_RANLIB
3262 else
3263   RANLIB="$ac_cv_prog_RANLIB"
3264 fi
3265
3266  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3267 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3268 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3269 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3270   echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272   cat >conftest.make <<\_ACEOF
3273 all:
3274         @echo 'ac_maketemp="$(MAKE)"'
3275 _ACEOF
3276 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3277 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3278 if test -n "$ac_maketemp"; then
3279   eval ac_cv_prog_make_${ac_make}_set=yes
3280 else
3281   eval ac_cv_prog_make_${ac_make}_set=no
3282 fi
3283 rm -f conftest.make
3284 fi
3285 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3286   echo "$as_me:$LINENO: result: yes" >&5
3287 echo "${ECHO_T}yes" >&6
3288   SET_MAKE=
3289 else
3290   echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3292   SET_MAKE="MAKE=${MAKE-make}"
3293 fi
3294
3295  # Find a good install program.  We prefer a C program (faster),
3296 # so one script is as good as another.  But avoid the broken or
3297 # incompatible versions:
3298 # SysV /etc/install, /usr/sbin/install
3299 # SunOS /usr/etc/install
3300 # IRIX /sbin/install
3301 # AIX /bin/install
3302 # AmigaOS /C/install, which installs bootblocks on floppy discs
3303 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3304 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3305 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3306 # OS/2's system install, which has a completely different semantic
3307 # ./install, which can be erroneously created by make from ./install.sh.
3308 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3309 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3310 if test -z "$INSTALL"; then
3311 if test "${ac_cv_path_install+set}" = set; then
3312   echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
3314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317   IFS=$as_save_IFS
3318   test -z "$as_dir" && as_dir=.
3319   # Account for people who put trailing slashes in PATH elements.
3320 case $as_dir/ in
3321   ./ | .// | /cC/* | \
3322   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3323   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3324   /usr/ucb/* ) ;;
3325   *)
3326     # OSF1 and SCO ODT 3.0 have their own names for install.
3327     # Don't use installbsd from OSF since it installs stuff as root
3328     # by default.
3329     for ac_prog in ginstall scoinst install; do
3330       for ac_exec_ext in '' $ac_executable_extensions; do
3331         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3332           if test $ac_prog = install &&
3333             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3334             # AIX install.  It has an incompatible calling convention.
3335             :
3336           elif test $ac_prog = install &&
3337             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3338             # program-specific install script used by HP pwplus--don't use.
3339             :
3340           else
3341             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3342             break 3
3343           fi
3344         fi
3345       done
3346     done
3347     ;;
3348 esac
3349 done
3350
3351
3352 fi
3353   if test "${ac_cv_path_install+set}" = set; then
3354     INSTALL=$ac_cv_path_install
3355   else
3356     # As a last resort, use the slow shell script.  We don't cache a
3357     # path for INSTALL within a source directory, because that will
3358     # break other packages using the cache if that directory is
3359     # removed, or if the path is relative.
3360     INSTALL=$ac_install_sh
3361   fi
3362 fi
3363 echo "$as_me:$LINENO: result: $INSTALL" >&5
3364 echo "${ECHO_T}$INSTALL" >&6
3365
3366 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3367 # It thinks the first close brace ends the variable substitution.
3368 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3369
3370 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3371
3372 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3373
3374  echo "$as_me:$LINENO: checking whether ln -s works" >&5
3375 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3376 LN_S=$as_ln_s
3377 if test "$LN_S" = "ln -s"; then
3378   echo "$as_me:$LINENO: result: yes" >&5
3379 echo "${ECHO_T}yes" >&6
3380 else
3381   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3382 echo "${ECHO_T}no, using $LN_S" >&6
3383 fi
3384
3385  # Check whether --enable-shared or --disable-shared was given.
3386 if test "${enable_shared+set}" = set; then
3387   enableval="$enable_shared"
3388   p=${PACKAGE-default}
3389     case $enableval in
3390     yes) enable_shared=yes ;;
3391     no) enable_shared=no ;;
3392     *)
3393       enable_shared=no
3394       # Look at the argument we got.  We use all the common list separators.
3395       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3396       for pkg in $enableval; do
3397         IFS="$lt_save_ifs"
3398         if test "X$pkg" = "X$p"; then
3399           enable_shared=yes
3400         fi
3401       done
3402       IFS="$lt_save_ifs"
3403       ;;
3404     esac
3405 else
3406   enable_shared=yes
3407 fi;
3408
3409 # Check whether --enable-static or --disable-static was given.
3410 if test "${enable_static+set}" = set; then
3411   enableval="$enable_static"
3412   p=${PACKAGE-default}
3413     case $enableval in
3414     yes) enable_static=yes ;;
3415     no) enable_static=no ;;
3416     *)
3417      enable_static=no
3418       # Look at the argument we got.  We use all the common list separators.
3419       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3420       for pkg in $enableval; do
3421         IFS="$lt_save_ifs"
3422         if test "X$pkg" = "X$p"; then
3423           enable_static=yes
3424         fi
3425       done
3426       IFS="$lt_save_ifs"
3427       ;;
3428     esac
3429 else
3430   enable_static=yes
3431 fi;
3432
3433 # Check whether --enable-fast-install or --disable-fast-install was given.
3434 if test "${enable_fast_install+set}" = set; then
3435   enableval="$enable_fast_install"
3436   p=${PACKAGE-default}
3437     case $enableval in
3438     yes) enable_fast_install=yes ;;
3439     no) enable_fast_install=no ;;
3440     *)
3441       enable_fast_install=no
3442       # Look at the argument we got.  We use all the common list separators.
3443       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3444       for pkg in $enableval; do
3445         IFS="$lt_save_ifs"
3446         if test "X$pkg" = "X$p"; then
3447           enable_fast_install=yes
3448         fi
3449       done
3450       IFS="$lt_save_ifs"
3451       ;;
3452     esac
3453 else
3454   enable_fast_install=yes
3455 fi;
3456
3457 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3458 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3459 if test "${lt_cv_path_SED+set}" = set; then
3460   echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462   # Loop through the user's path and test for sed and gsed.
3463 # Then use that list of sed's as ones to test for truncation.
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467   IFS=$as_save_IFS
3468   test -z "$as_dir" && as_dir=.
3469   for lt_ac_prog in sed gsed; do
3470     for ac_exec_ext in '' $ac_executable_extensions; do
3471       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3472         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3473       fi
3474     done
3475   done
3476 done
3477 lt_ac_max=0
3478 lt_ac_count=0
3479 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3480 # along with /bin/sed that truncates output.
3481 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3482   test ! -f $lt_ac_sed && break
3483   cat /dev/null > conftest.in
3484   lt_ac_count=0
3485   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3486   # Check for GNU sed and select it if it is found.
3487   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3488     lt_cv_path_SED=$lt_ac_sed
3489     break
3490   fi
3491   while true; do
3492     cat conftest.in conftest.in >conftest.tmp
3493     mv conftest.tmp conftest.in
3494     cp conftest.in conftest.nl
3495     echo >>conftest.nl
3496     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3497     cmp -s conftest.out conftest.nl || break
3498     # 10000 chars as input seems more than enough
3499     test $lt_ac_count -gt 10 && break
3500     lt_ac_count=`expr $lt_ac_count + 1`
3501     if test $lt_ac_count -gt $lt_ac_max; then
3502       lt_ac_max=$lt_ac_count
3503       lt_cv_path_SED=$lt_ac_sed
3504     fi
3505   done
3506 done
3507 SED=$lt_cv_path_SED
3508
3509 fi
3510
3511 echo "$as_me:$LINENO: result: $SED" >&5
3512 echo "${ECHO_T}$SED" >&6
3513
3514 echo "$as_me:$LINENO: checking for egrep" >&5
3515 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3516 if test "${ac_cv_prog_egrep+set}" = set; then
3517   echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3520     then ac_cv_prog_egrep='grep -E'
3521     else ac_cv_prog_egrep='egrep'
3522     fi
3523 fi
3524 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3525 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3526  EGREP=$ac_cv_prog_egrep
3527
3528
3529
3530 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3531 if test "${with_gnu_ld+set}" = set; then
3532   withval="$with_gnu_ld"
3533   test "$withval" = no || with_gnu_ld=yes
3534 else
3535   with_gnu_ld=no
3536 fi;
3537 ac_prog=ld
3538 if test "$GCC" = yes; then
3539   # Check if gcc -print-prog-name=ld gives a path.
3540   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3541 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3542   case $host in
3543   *-*-mingw*)
3544     # gcc leaves a trailing carriage return which upsets mingw
3545     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3546   *)
3547     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3548   esac
3549   case $ac_prog in
3550     # Accept absolute paths.
3551     [\\/]* | ?:[\\/]*)
3552       re_direlt='/[^/][^/]*/\.\./'
3553       # Canonicalize the pathname of ld
3554       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3555       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3556         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3557       done
3558       test -z "$LD" && LD="$ac_prog"
3559       ;;
3560   "")
3561     # If it fails, then pretend we aren't using GCC.
3562     ac_prog=ld
3563     ;;
3564   *)
3565     # If it is relative, then search for the first ld in PATH.
3566     with_gnu_ld=unknown
3567     ;;
3568   esac
3569 elif test "$with_gnu_ld" = yes; then
3570   echo "$as_me:$LINENO: checking for GNU ld" >&5
3571 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3572 else
3573   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3574 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3575 fi
3576 if test "${lt_cv_path_LD+set}" = set; then
3577   echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579   if test -z "$LD"; then
3580   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3581   for ac_dir in $PATH; do
3582     IFS="$lt_save_ifs"
3583     test -z "$ac_dir" && ac_dir=.
3584     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3585       lt_cv_path_LD="$ac_dir/$ac_prog"
3586       # Check to see if the program is GNU ld.  I'd rather use --version,
3587       # but apparently some GNU ld's only accept -v.
3588       # Break only if it was the GNU/non-GNU ld that we prefer.
3589       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3590       *GNU* | *'with BFD'*)
3591         test "$with_gnu_ld" != no && break
3592         ;;
3593       *)
3594         test "$with_gnu_ld" != yes && break
3595         ;;
3596       esac
3597     fi
3598   done
3599   IFS="$lt_save_ifs"
3600 else
3601   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3602 fi
3603 fi
3604
3605 LD="$lt_cv_path_LD"
3606 if test -n "$LD"; then
3607   echo "$as_me:$LINENO: result: $LD" >&5
3608 echo "${ECHO_T}$LD" >&6
3609 else
3610   echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3612 fi
3613 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3614 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3615    { (exit 1); exit 1; }; }
3616 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3617 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3618 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3622 case `$LD -v 2>&1 </dev/null` in
3623 *GNU* | *'with BFD'*)
3624   lt_cv_prog_gnu_ld=yes
3625   ;;
3626 *)
3627   lt_cv_prog_gnu_ld=no
3628   ;;
3629 esac
3630 fi
3631 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3632 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3633 with_gnu_ld=$lt_cv_prog_gnu_ld
3634
3635
3636 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3637 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3638 if test "${lt_cv_ld_reload_flag+set}" = set; then
3639   echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641   lt_cv_ld_reload_flag='-r'
3642 fi
3643 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3644 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3645 reload_flag=$lt_cv_ld_reload_flag
3646 case $reload_flag in
3647 "" | " "*) ;;
3648 *) reload_flag=" $reload_flag" ;;
3649 esac
3650 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3651
3652 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3653 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3654 if test "${lt_cv_path_NM+set}" = set; then
3655   echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657   if test -n "$NM"; then
3658   # Let the user override the test.
3659   lt_cv_path_NM="$NM"
3660 else
3661   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3662   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3663     IFS="$lt_save_ifs"
3664     test -z "$ac_dir" && ac_dir=.
3665     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3666     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3667       # Check to see if the nm accepts a BSD-compat flag.
3668       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3669       #   nm: unknown option "B" ignored
3670       # Tru64's nm complains that /dev/null is an invalid object file
3671       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3672       */dev/null* | *'Invalid file or object type'*)
3673         lt_cv_path_NM="$tmp_nm -B"
3674         break
3675         ;;
3676       *)
3677         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3678         */dev/null*)
3679           lt_cv_path_NM="$tmp_nm -p"
3680           break
3681           ;;
3682         *)
3683           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3684           continue # so that we can try to find one that supports BSD flags
3685           ;;
3686         esac
3687       esac
3688     fi
3689   done
3690   IFS="$lt_save_ifs"
3691   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3692 fi
3693 fi
3694 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3695 echo "${ECHO_T}$lt_cv_path_NM" >&6
3696 NM="$lt_cv_path_NM"
3697
3698 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3699 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3700 if test "${lt_cv_deplibs_check_method+set}" = set; then
3701   echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703   lt_cv_file_magic_cmd='$MAGIC_CMD'
3704 lt_cv_file_magic_test_file=
3705 lt_cv_deplibs_check_method='unknown'
3706 # Need to set the preceding variable on all platforms that support
3707 # interlibrary dependencies.
3708 # 'none' -- dependencies not supported.
3709 # `unknown' -- same as none, but documents that we really don't know.
3710 # 'pass_all' -- all dependencies passed with no checks.
3711 # 'test_compile' -- check by making test program.
3712 # 'file_magic [[regex]]' -- check by looking for files in library path
3713 # which responds to the $file_magic_cmd with a given extended regex.
3714 # If you have `file' or equivalent on your system and you're not sure
3715 # whether `pass_all' will *always* work, you probably want this one.
3716
3717 case $host_os in
3718 aix4* | aix5*)
3719   lt_cv_deplibs_check_method=pass_all
3720   ;;
3721
3722 beos*)
3723   lt_cv_deplibs_check_method=pass_all
3724   ;;
3725
3726 bsdi4*)
3727   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3728   lt_cv_file_magic_cmd='/usr/bin/file -L'
3729   lt_cv_file_magic_test_file=/shlib/libc.so
3730   ;;
3731
3732 cygwin*)
3733   # win32_libid is a shell function defined in ltmain.sh
3734   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3735   lt_cv_file_magic_cmd='win32_libid'
3736   ;;
3737
3738 mingw* | pw32*)
3739   # Base MSYS/MinGW do not provide the 'file' command needed by
3740   # win32_libid shell function, so use a weaker test based on 'objdump'.
3741   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3742   lt_cv_file_magic_cmd='$OBJDUMP -f'
3743   ;;
3744
3745 darwin* | rhapsody*)
3746   lt_cv_deplibs_check_method=pass_all
3747   ;;
3748
3749 freebsd* | kfreebsd*-gnu)
3750   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3751     case $host_cpu in
3752     i*86 )
3753       # Not sure whether the presence of OpenBSD here was a mistake.
3754       # Let's accept both of them until this is cleared up.
3755       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3756       lt_cv_file_magic_cmd=/usr/bin/file
3757       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3758       ;;
3759     esac
3760   else
3761     lt_cv_deplibs_check_method=pass_all
3762   fi
3763   ;;
3764
3765 gnu*)
3766   lt_cv_deplibs_check_method=pass_all
3767   ;;
3768
3769 hpux10.20* | hpux11*)
3770   lt_cv_file_magic_cmd=/usr/bin/file
3771   case "$host_cpu" in
3772   ia64*)
3773     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3774     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3775     ;;
3776   hppa*64*)
3777     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3778     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3779     ;;
3780   *)
3781     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3782     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3783     ;;
3784   esac
3785   ;;
3786
3787 irix5* | irix6* | nonstopux*)
3788   case $LD in
3789   *-32|*"-32 ") libmagic=32-bit;;
3790   *-n32|*"-n32 ") libmagic=N32;;
3791   *-64|*"-64 ") libmagic=64-bit;;
3792   *) libmagic=never-match;;
3793   esac
3794   lt_cv_deplibs_check_method=pass_all
3795   ;;
3796
3797 # This must be Linux ELF.
3798 linux*)
3799   case $host_cpu in
3800   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3801     lt_cv_deplibs_check_method=pass_all ;;
3802   *)
3803     # glibc up to 2.1.1 does not perform some relocations on ARM
3804     # this will be overridden with pass_all, but let us keep it just in case
3805     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3806   esac
3807   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3808   lt_cv_deplibs_check_method=pass_all
3809   ;;
3810
3811 netbsd*)
3812   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3813     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3814   else
3815     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3816   fi
3817   ;;
3818
3819 newos6*)
3820   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3821   lt_cv_file_magic_cmd=/usr/bin/file
3822   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3823   ;;
3824
3825 nto-qnx*)
3826   lt_cv_deplibs_check_method=unknown
3827   ;;
3828
3829 openbsd*)
3830   lt_cv_file_magic_cmd=/usr/bin/file
3831   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3832   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3833     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3834   else
3835     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3836   fi
3837   ;;
3838
3839 osf3* | osf4* | osf5*)
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   ;;
3850
3851 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3852   case $host_vendor in
3853   motorola)
3854     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]'
3855     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3856     ;;
3857   ncr)
3858     lt_cv_deplibs_check_method=pass_all
3859     ;;
3860   sequent)
3861     lt_cv_file_magic_cmd='/bin/file'
3862     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3863     ;;
3864   sni)
3865     lt_cv_file_magic_cmd='/bin/file'
3866     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3867     lt_cv_file_magic_test_file=/lib/libc.so
3868     ;;
3869   siemens)
3870     lt_cv_deplibs_check_method=pass_all
3871     ;;
3872   esac
3873   ;;
3874
3875 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3876   lt_cv_deplibs_check_method=pass_all
3877   ;;
3878 esac
3879
3880 fi
3881 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3882 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3883 file_magic_cmd=$lt_cv_file_magic_cmd
3884 deplibs_check_method=$lt_cv_deplibs_check_method
3885 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3886
3887
3888
3889
3890 # If no C compiler was specified, use CC.
3891 LTCC=${LTCC-"$CC"}
3892
3893 # Allow CC to be a program name with arguments.
3894 compiler=$CC
3895
3896
3897 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3898 if test "${enable_libtool_lock+set}" = set; then
3899   enableval="$enable_libtool_lock"
3900
3901 fi;
3902 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3903
3904 # Some flags need to be propagated to the compiler or linker for good
3905 # libtool support.
3906 case $host in
3907 ia64-*-hpux*)
3908   # Find out which ABI we are using.
3909   echo 'int i;' > conftest.$ac_ext
3910   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3911   (eval $ac_compile) 2>&5
3912   ac_status=$?
3913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914   (exit $ac_status); }; then
3915     case `/usr/bin/file conftest.$ac_objext` in
3916     *ELF-32*)
3917       HPUX_IA64_MODE="32"
3918       ;;
3919     *ELF-64*)
3920       HPUX_IA64_MODE="64"
3921       ;;
3922     esac
3923   fi
3924   rm -rf conftest*
3925   ;;
3926 *-*-irix6*)
3927   # Find out which ABI we are using.
3928   echo '#line 3928 "configure"' > conftest.$ac_ext
3929   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930   (eval $ac_compile) 2>&5
3931   ac_status=$?
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); }; then
3934    if test "$lt_cv_prog_gnu_ld" = yes; then
3935     case `/usr/bin/file conftest.$ac_objext` in
3936     *32-bit*)
3937       LD="${LD-ld} -melf32bsmip"
3938       ;;
3939     *N32*)
3940       LD="${LD-ld} -melf32bmipn32"
3941       ;;
3942     *64-bit*)
3943       LD="${LD-ld} -melf64bmip"
3944       ;;
3945     esac
3946    else
3947     case `/usr/bin/file conftest.$ac_objext` in
3948     *32-bit*)
3949       LD="${LD-ld} -32"
3950       ;;
3951     *N32*)
3952       LD="${LD-ld} -n32"
3953       ;;
3954     *64-bit*)
3955       LD="${LD-ld} -64"
3956       ;;
3957     esac
3958    fi
3959   fi
3960   rm -rf conftest*
3961   ;;
3962
3963 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3964   # Find out which ABI we are using.
3965   echo 'int i;' > conftest.$ac_ext
3966   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3967   (eval $ac_compile) 2>&5
3968   ac_status=$?
3969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970   (exit $ac_status); }; then
3971     case "`/usr/bin/file conftest.o`" in
3972     *32-bit*)
3973       case $host in
3974         x86_64-*linux*)
3975           LD="${LD-ld} -m elf_i386"
3976           ;;
3977         ppc64-*linux*|powerpc64-*linux*)
3978           LD="${LD-ld} -m elf32ppclinux"
3979           ;;
3980         s390x-*linux*)
3981           LD="${LD-ld} -m elf_s390"
3982           ;;
3983         sparc64-*linux*)
3984           LD="${LD-ld} -m elf32_sparc"
3985           ;;
3986       esac
3987       ;;
3988     *64-bit*)
3989       case $host in
3990         x86_64-*linux*)
3991           LD="${LD-ld} -m elf_x86_64"
3992           ;;
3993         ppc*-*linux*|powerpc*-*linux*)
3994           LD="${LD-ld} -m elf64ppc"
3995           ;;
3996         s390*-*linux*)
3997           LD="${LD-ld} -m elf64_s390"
3998           ;;
3999         sparc*-*linux*)
4000           LD="${LD-ld} -m elf64_sparc"
4001           ;;
4002       esac
4003       ;;
4004     esac
4005   fi
4006   rm -rf conftest*
4007   ;;
4008
4009 *-*-linux*)
4010   # Test if the compiler is 64bit
4011   echo 'int i;' > conftest.$ac_ext
4012   lt_cv_cc_64bit_output=no
4013   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4014   (eval $ac_compile) 2>&5
4015   ac_status=$?
4016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017   (exit $ac_status); }; then
4018     case `/usr/bin/file conftest.$ac_objext` in
4019     *"ELF 64"*)
4020       lt_cv_cc_64bit_output=yes
4021       ;;
4022     esac
4023   fi
4024   rm -rf conftest*
4025   ;;
4026
4027 *-*-sco3.2v5*)
4028   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4029   SAVE_CFLAGS="$CFLAGS"
4030   CFLAGS="$CFLAGS -belf"
4031   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4032 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4033 if test "${lt_cv_cc_needs_belf+set}" = set; then
4034   echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036   ac_ext=c
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041
4042      cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h.  */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h.  */
4048
4049 int
4050 main ()
4051 {
4052
4053   ;
4054   return 0;
4055 }
4056 _ACEOF
4057 rm -f conftest.$ac_objext conftest$ac_exeext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4059   (eval $ac_link) 2>conftest.er1
4060   ac_status=$?
4061   grep -v '^ *+' conftest.er1 >conftest.err
4062   rm -f conftest.er1
4063   cat conftest.err >&5
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); } &&
4066          { ac_try='test -z "$ac_c_werror_flag"
4067                          || test ! -s conftest.err'
4068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069   (eval $ac_try) 2>&5
4070   ac_status=$?
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); }; } &&
4073          { ac_try='test -s conftest$ac_exeext'
4074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075   (eval $ac_try) 2>&5
4076   ac_status=$?
4077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); }; }; then
4079   lt_cv_cc_needs_belf=yes
4080 else
4081   echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4083
4084 lt_cv_cc_needs_belf=no
4085 fi
4086 rm -f conftest.err conftest.$ac_objext \
4087       conftest$ac_exeext conftest.$ac_ext
4088      ac_ext=c
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093
4094 fi
4095 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4096 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4097   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4098     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4099     CFLAGS="$SAVE_CFLAGS"
4100   fi
4101   ;;
4102
4103 esac
4104
4105 need_locks="$enable_libtool_lock"
4106
4107
4108
4109 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4110 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4111 if test "${ac_cv_header_stdc+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h.  */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h.  */
4120 #include <stdlib.h>
4121 #include <stdarg.h>
4122 #include <string.h>
4123 #include <float.h>
4124
4125 int
4126 main ()
4127 {
4128
4129   ;
4130   return 0;
4131 }
4132 _ACEOF
4133 rm -f conftest.$ac_objext
4134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4135   (eval $ac_compile) 2>conftest.er1
4136   ac_status=$?
4137   grep -v '^ *+' conftest.er1 >conftest.err
4138   rm -f conftest.er1
4139   cat conftest.err >&5
4140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141   (exit $ac_status); } &&
4142          { ac_try='test -z "$ac_c_werror_flag"
4143                          || test ! -s conftest.err'
4144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145   (eval $ac_try) 2>&5
4146   ac_status=$?
4147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); }; } &&
4149          { ac_try='test -s conftest.$ac_objext'
4150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151   (eval $ac_try) 2>&5
4152   ac_status=$?
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); }; }; then
4155   ac_cv_header_stdc=yes
4156 else
4157   echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4159
4160 ac_cv_header_stdc=no
4161 fi
4162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4163
4164 if test $ac_cv_header_stdc = yes; then
4165   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4166   cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h.  */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h.  */
4172 #include <string.h>
4173
4174 _ACEOF
4175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176   $EGREP "memchr" >/dev/null 2>&1; then
4177   :
4178 else
4179   ac_cv_header_stdc=no
4180 fi
4181 rm -f conftest*
4182
4183 fi
4184
4185 if test $ac_cv_header_stdc = yes; then
4186   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4187   cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h.  */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h.  */
4193 #include <stdlib.h>
4194
4195 _ACEOF
4196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4197   $EGREP "free" >/dev/null 2>&1; then
4198   :
4199 else
4200   ac_cv_header_stdc=no
4201 fi
4202 rm -f conftest*
4203
4204 fi
4205
4206 if test $ac_cv_header_stdc = yes; then
4207   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4208   if test "$cross_compiling" = yes; then
4209   :
4210 else
4211   cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h.  */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h.  */
4217 #include <ctype.h>
4218 #if ((' ' & 0x0FF) == 0x020)
4219 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4220 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4221 #else
4222 # define ISLOWER(c) \
4223                    (('a' <= (c) && (c) <= 'i') \
4224                      || ('j' <= (c) && (c) <= 'r') \
4225                      || ('s' <= (c) && (c) <= 'z'))
4226 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4227 #endif
4228
4229 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4230 int
4231 main ()
4232 {
4233   int i;
4234   for (i = 0; i < 256; i++)
4235     if (XOR (islower (i), ISLOWER (i))
4236         || toupper (i) != TOUPPER (i))
4237       exit(2);
4238   exit (0);
4239 }
4240 _ACEOF
4241 rm -f conftest$ac_exeext
4242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4243   (eval $ac_link) 2>&5
4244   ac_status=$?
4245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248   (eval $ac_try) 2>&5
4249   ac_status=$?
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); }; }; then
4252   :
4253 else
4254   echo "$as_me: program exited with status $ac_status" >&5
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4257
4258 ( exit $ac_status )
4259 ac_cv_header_stdc=no
4260 fi
4261 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4262 fi
4263 fi
4264 fi
4265 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4266 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4267 if test $ac_cv_header_stdc = yes; then
4268
4269 cat >>confdefs.h <<\_ACEOF
4270 #define STDC_HEADERS 1
4271 _ACEOF
4272
4273 fi
4274
4275 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4286                   inttypes.h stdint.h unistd.h
4287 do
4288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4289 echo "$as_me:$LINENO: checking for $ac_header" >&5
4290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4292   echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294   cat >conftest.$ac_ext <<_ACEOF
4295 /* confdefs.h.  */
4296 _ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h.  */
4300 $ac_includes_default
4301
4302 #include <$ac_header>
4303 _ACEOF
4304 rm -f conftest.$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306   (eval $ac_compile) 2>conftest.er1
4307   ac_status=$?
4308   grep -v '^ *+' conftest.er1 >conftest.err
4309   rm -f conftest.er1
4310   cat conftest.err >&5
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); } &&
4313          { ac_try='test -z "$ac_c_werror_flag"
4314                          || test ! -s conftest.err'
4315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316   (eval $ac_try) 2>&5
4317   ac_status=$?
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); }; } &&
4320          { ac_try='test -s conftest.$ac_objext'
4321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322   (eval $ac_try) 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); }; }; then
4326   eval "$as_ac_Header=yes"
4327 else
4328   echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4330
4331 eval "$as_ac_Header=no"
4332 fi
4333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334 fi
4335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4338   cat >>confdefs.h <<_ACEOF
4339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4340 _ACEOF
4341
4342 fi
4343
4344 done
4345
4346
4347
4348 for ac_header in dlfcn.h
4349 do
4350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4352   echo "$as_me:$LINENO: checking for $ac_header" >&5
4353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4355   echo $ECHO_N "(cached) $ECHO_C" >&6
4356 fi
4357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4359 else
4360   # Is the header compilable?
4361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4363 cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h.  */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h.  */
4369 $ac_includes_default
4370 #include <$ac_header>
4371 _ACEOF
4372 rm -f conftest.$ac_objext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4374   (eval $ac_compile) 2>conftest.er1
4375   ac_status=$?
4376   grep -v '^ *+' conftest.er1 >conftest.err
4377   rm -f conftest.er1
4378   cat conftest.err >&5
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); } &&
4381          { ac_try='test -z "$ac_c_werror_flag"
4382                          || test ! -s conftest.err'
4383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384   (eval $ac_try) 2>&5
4385   ac_status=$?
4386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); }; } &&
4388          { ac_try='test -s conftest.$ac_objext'
4389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390   (eval $ac_try) 2>&5
4391   ac_status=$?
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); }; }; then
4394   ac_header_compiler=yes
4395 else
4396   echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4398
4399 ac_header_compiler=no
4400 fi
4401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4403 echo "${ECHO_T}$ac_header_compiler" >&6
4404
4405 # Is the header present?
4406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4408 cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h.  */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h.  */
4414 #include <$ac_header>
4415 _ACEOF
4416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4417   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4418   ac_status=$?
4419   grep -v '^ *+' conftest.er1 >conftest.err
4420   rm -f conftest.er1
4421   cat conftest.err >&5
4422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423   (exit $ac_status); } >/dev/null; then
4424   if test -s conftest.err; then
4425     ac_cpp_err=$ac_c_preproc_warn_flag
4426     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4427   else
4428     ac_cpp_err=
4429   fi
4430 else
4431   ac_cpp_err=yes
4432 fi
4433 if test -z "$ac_cpp_err"; then
4434   ac_header_preproc=yes
4435 else
4436   echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4438
4439   ac_header_preproc=no
4440 fi
4441 rm -f conftest.err conftest.$ac_ext
4442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4443 echo "${ECHO_T}$ac_header_preproc" >&6
4444
4445 # So?  What about this header?
4446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4447   yes:no: )
4448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4452     ac_header_preproc=yes
4453     ;;
4454   no:yes:* )
4455     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4457     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4458 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4459     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4461     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4462 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4465     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4467     (
4468       cat <<\_ASBOX
4469 ## ------------------------------------------ ##
4470 ## Report this to the AC_PACKAGE_NAME lists.  ##
4471 ## ------------------------------------------ ##
4472 _ASBOX
4473     ) |
4474       sed "s/^/$as_me: WARNING:     /" >&2
4475     ;;
4476 esac
4477 echo "$as_me:$LINENO: checking for $ac_header" >&5
4478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4480   echo $ECHO_N "(cached) $ECHO_C" >&6
4481 else
4482   eval "$as_ac_Header=\$ac_header_preproc"
4483 fi
4484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4486
4487 fi
4488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4489   cat >>confdefs.h <<_ACEOF
4490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4491 _ACEOF
4492
4493 fi
4494
4495 done
4496
4497 ac_ext=cc
4498 ac_cpp='$CXXCPP $CPPFLAGS'
4499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4502 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4503 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4504 if test -z "$CXXCPP"; then
4505   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508       # Double quotes because CXXCPP needs to be expanded
4509     for CXXCPP in "$CXX -E" "/lib/cpp"
4510     do
4511       ac_preproc_ok=false
4512 for ac_cxx_preproc_warn_flag in '' yes
4513 do
4514   # Use a header file that comes with gcc, so configuring glibc
4515   # with a fresh cross-compiler works.
4516   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4517   # <limits.h> exists even on freestanding compilers.
4518   # On the NeXT, cc -E runs the code through the compiler's parser,
4519   # not just through cpp. "Syntax error" is here to catch this case.
4520   cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h.  */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h.  */
4526 #ifdef __STDC__
4527 # include <limits.h>
4528 #else
4529 # include <assert.h>
4530 #endif
4531                      Syntax error
4532 _ACEOF
4533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4534   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4535   ac_status=$?
4536   grep -v '^ *+' conftest.er1 >conftest.err
4537   rm -f conftest.er1
4538   cat conftest.err >&5
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); } >/dev/null; then
4541   if test -s conftest.err; then
4542     ac_cpp_err=$ac_cxx_preproc_warn_flag
4543     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4544   else
4545     ac_cpp_err=
4546   fi
4547 else
4548   ac_cpp_err=yes
4549 fi
4550 if test -z "$ac_cpp_err"; then
4551   :
4552 else
4553   echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4555
4556   # Broken: fails on valid input.
4557 continue
4558 fi
4559 rm -f conftest.err conftest.$ac_ext
4560
4561   # OK, works on sane cases.  Now check whether non-existent headers
4562   # can be detected and how.
4563   cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h.  */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h.  */
4569 #include <ac_nonexistent.h>
4570 _ACEOF
4571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4572   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4573   ac_status=$?
4574   grep -v '^ *+' conftest.er1 >conftest.err
4575   rm -f conftest.er1
4576   cat conftest.err >&5
4577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578   (exit $ac_status); } >/dev/null; then
4579   if test -s conftest.err; then
4580     ac_cpp_err=$ac_cxx_preproc_warn_flag
4581     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4582   else
4583     ac_cpp_err=
4584   fi
4585 else
4586   ac_cpp_err=yes
4587 fi
4588 if test -z "$ac_cpp_err"; then
4589   # Broken: success on invalid input.
4590 continue
4591 else
4592   echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4594
4595   # Passes both tests.
4596 ac_preproc_ok=:
4597 break
4598 fi
4599 rm -f conftest.err conftest.$ac_ext
4600
4601 done
4602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4603 rm -f conftest.err conftest.$ac_ext
4604 if $ac_preproc_ok; then
4605   break
4606 fi
4607
4608     done
4609     ac_cv_prog_CXXCPP=$CXXCPP
4610
4611 fi
4612   CXXCPP=$ac_cv_prog_CXXCPP
4613 else
4614   ac_cv_prog_CXXCPP=$CXXCPP
4615 fi
4616 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4617 echo "${ECHO_T}$CXXCPP" >&6
4618 ac_preproc_ok=false
4619 for ac_cxx_preproc_warn_flag in '' yes
4620 do
4621   # Use a header file that comes with gcc, so configuring glibc
4622   # with a fresh cross-compiler works.
4623   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4624   # <limits.h> exists even on freestanding compilers.
4625   # On the NeXT, cc -E runs the code through the compiler's parser,
4626   # not just through cpp. "Syntax error" is here to catch this case.
4627   cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h.  */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h.  */
4633 #ifdef __STDC__
4634 # include <limits.h>
4635 #else
4636 # include <assert.h>
4637 #endif
4638                      Syntax error
4639 _ACEOF
4640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4641   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4642   ac_status=$?
4643   grep -v '^ *+' conftest.er1 >conftest.err
4644   rm -f conftest.er1
4645   cat conftest.err >&5
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); } >/dev/null; then
4648   if test -s conftest.err; then
4649     ac_cpp_err=$ac_cxx_preproc_warn_flag
4650     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4651   else
4652     ac_cpp_err=
4653   fi
4654 else
4655   ac_cpp_err=yes
4656 fi
4657 if test -z "$ac_cpp_err"; then
4658   :
4659 else
4660   echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4662
4663   # Broken: fails on valid input.
4664 continue
4665 fi
4666 rm -f conftest.err conftest.$ac_ext
4667
4668   # OK, works on sane cases.  Now check whether non-existent headers
4669   # can be detected and how.
4670   cat >conftest.$ac_ext <<_ACEOF
4671 /* confdefs.h.  */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h.  */
4676 #include <ac_nonexistent.h>
4677 _ACEOF
4678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4679   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4680   ac_status=$?
4681   grep -v '^ *+' conftest.er1 >conftest.err
4682   rm -f conftest.er1
4683   cat conftest.err >&5
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); } >/dev/null; then
4686   if test -s conftest.err; then
4687     ac_cpp_err=$ac_cxx_preproc_warn_flag
4688     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4689   else
4690     ac_cpp_err=
4691   fi
4692 else
4693   ac_cpp_err=yes
4694 fi
4695 if test -z "$ac_cpp_err"; then
4696   # Broken: success on invalid input.
4697 continue
4698 else
4699   echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4701
4702   # Passes both tests.
4703 ac_preproc_ok=:
4704 break
4705 fi
4706 rm -f conftest.err conftest.$ac_ext
4707
4708 done
4709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4710 rm -f conftest.err conftest.$ac_ext
4711 if $ac_preproc_ok; then
4712   :
4713 else
4714   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4715 See \`config.log' for more details." >&5
4716 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4717 See \`config.log' for more details." >&2;}
4718    { (exit 1); exit 1; }; }
4719 fi
4720
4721 ac_ext=cc
4722 ac_cpp='$CXXCPP $CPPFLAGS'
4723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4726
4727
4728 ac_ext=f
4729 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4730 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4732 if test -n "$ac_tool_prefix"; then
4733   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4734   do
4735     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4737 echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4739 if test "${ac_cv_prog_F77+set}" = set; then
4740   echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742   if test -n "$F77"; then
4743   ac_cv_prog_F77="$F77" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748   IFS=$as_save_IFS
4749   test -z "$as_dir" && as_dir=.
4750   for ac_exec_ext in '' $ac_executable_extensions; do
4751   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4752     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4754     break 2
4755   fi
4756 done
4757 done
4758
4759 fi
4760 fi
4761 F77=$ac_cv_prog_F77
4762 if test -n "$F77"; then
4763   echo "$as_me:$LINENO: result: $F77" >&5
4764 echo "${ECHO_T}$F77" >&6
4765 else
4766   echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6
4768 fi
4769
4770     test -n "$F77" && break
4771   done
4772 fi
4773 if test -z "$F77"; then
4774   ac_ct_F77=$F77
4775   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4776 do
4777   # Extract the first word of "$ac_prog", so it can be a program name with args.
4778 set dummy $ac_prog; ac_word=$2
4779 echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784   if test -n "$ac_ct_F77"; then
4785   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792   for ac_exec_ext in '' $ac_executable_extensions; do
4793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794     ac_cv_prog_ac_ct_F77="$ac_prog"
4795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799 done
4800
4801 fi
4802 fi
4803 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4804 if test -n "$ac_ct_F77"; then
4805   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4806 echo "${ECHO_T}$ac_ct_F77" >&6
4807 else
4808   echo "$as_me:$LINENO: result: no" >&5
4809 echo "${ECHO_T}no" >&6
4810 fi
4811
4812   test -n "$ac_ct_F77" && break
4813 done
4814
4815   F77=$ac_ct_F77
4816 fi
4817
4818
4819 # Provide some information about the compiler.
4820 echo "$as_me:4820:" \
4821      "checking for Fortran 77 compiler version" >&5
4822 ac_compiler=`set X $ac_compile; echo $2`
4823 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4824   (eval $ac_compiler --version </dev/null >&5) 2>&5
4825   ac_status=$?
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); }
4828 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4829   (eval $ac_compiler -v </dev/null >&5) 2>&5
4830   ac_status=$?
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); }
4833 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4834   (eval $ac_compiler -V </dev/null >&5) 2>&5
4835   ac_status=$?
4836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837   (exit $ac_status); }
4838 rm -f a.out
4839
4840 # If we don't use `.F' as extension, the preprocessor is not run on the
4841 # input file.  (Note that this only needs to work for GNU compilers.)
4842 ac_save_ext=$ac_ext
4843 ac_ext=F
4844 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4845 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4846 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   cat >conftest.$ac_ext <<_ACEOF
4850       program main
4851 #ifndef __GNUC__
4852        choke me
4853 #endif
4854
4855       end
4856 _ACEOF
4857 rm -f conftest.$ac_objext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859   (eval $ac_compile) 2>conftest.er1
4860   ac_status=$?
4861   grep -v '^ *+' conftest.er1 >conftest.err
4862   rm -f conftest.er1
4863   cat conftest.err >&5
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); } &&
4866          { ac_try='test -z "$ac_f77_werror_flag"
4867                          || test ! -s conftest.err'
4868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869   (eval $ac_try) 2>&5
4870   ac_status=$?
4871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872   (exit $ac_status); }; } &&
4873          { ac_try='test -s conftest.$ac_objext'
4874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875   (eval $ac_try) 2>&5
4876   ac_status=$?
4877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); }; }; then
4879   ac_compiler_gnu=yes
4880 else
4881   echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4883
4884 ac_compiler_gnu=no
4885 fi
4886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4887 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4888
4889 fi
4890 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4891 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4892 ac_ext=$ac_save_ext
4893 ac_test_FFLAGS=${FFLAGS+set}
4894 ac_save_FFLAGS=$FFLAGS
4895 FFLAGS=
4896 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4897 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4898 if test "${ac_cv_prog_f77_g+set}" = set; then
4899   echo $ECHO_N "(cached) $ECHO_C" >&6
4900 else
4901   FFLAGS=-g
4902 cat >conftest.$ac_ext <<_ACEOF
4903       program main
4904
4905       end
4906 _ACEOF
4907 rm -f conftest.$ac_objext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909   (eval $ac_compile) 2>conftest.er1
4910   ac_status=$?
4911   grep -v '^ *+' conftest.er1 >conftest.err
4912   rm -f conftest.er1
4913   cat conftest.err >&5
4914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); } &&
4916          { ac_try='test -z "$ac_f77_werror_flag"
4917                          || test ! -s conftest.err'
4918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919   (eval $ac_try) 2>&5
4920   ac_status=$?
4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); }; } &&
4923          { ac_try='test -s conftest.$ac_objext'
4924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925   (eval $ac_try) 2>&5
4926   ac_status=$?
4927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928   (exit $ac_status); }; }; then
4929   ac_cv_prog_f77_g=yes
4930 else
4931   echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4933
4934 ac_cv_prog_f77_g=no
4935 fi
4936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4937
4938 fi
4939 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4940 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4941 if test "$ac_test_FFLAGS" = set; then
4942   FFLAGS=$ac_save_FFLAGS
4943 elif test $ac_cv_prog_f77_g = yes; then
4944   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4945     FFLAGS="-g -O2"
4946   else
4947     FFLAGS="-g"
4948   fi
4949 else
4950   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4951     FFLAGS="-O2"
4952   else
4953     FFLAGS=
4954   fi
4955 fi
4956
4957 G77=`test $ac_compiler_gnu = yes && echo yes`
4958 ac_ext=c
4959 ac_cpp='$CPP $CPPFLAGS'
4960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4963
4964
4965
4966 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4967
4968 # find the maximum length of command line arguments
4969 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4970 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4971 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4972   echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974     i=0
4975   testring="ABCD"
4976
4977   case $build_os in
4978   msdosdjgpp*)
4979     # On DJGPP, this test can blow up pretty badly due to problems in libc
4980     # (any single argument exceeding 2000 bytes causes a buffer overrun
4981     # during glob expansion).  Even if it were fixed, the result of this
4982     # check would be larger than it should be.
4983     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4984     ;;
4985
4986   gnu*)
4987     # Under GNU Hurd, this test is not required because there is
4988     # no limit to the length of command line arguments.
4989     # Libtool will interpret -1 as no limit whatsoever
4990     lt_cv_sys_max_cmd_len=-1;
4991     ;;
4992
4993   cygwin* | mingw*)
4994     # On Win9x/ME, this test blows up -- it succeeds, but takes
4995     # about 5 minutes as the teststring grows exponentially.
4996     # Worse, since 9x/ME are not pre-emptively multitasking,
4997     # you end up with a "frozen" computer, even though with patience
4998     # the test eventually succeeds (with a max line length of 256k).
4999     # Instead, let's just punt: use the minimum linelength reported by
5000     # all of the supported platforms: 8192 (on NT/2K/XP).
5001     lt_cv_sys_max_cmd_len=8192;
5002     ;;
5003
5004   amigaos*)
5005     # On AmigaOS with pdksh, this test takes hours, literally.
5006     # So we just punt and use a minimum line length of 8192.
5007     lt_cv_sys_max_cmd_len=8192;
5008     ;;
5009
5010  *)
5011     # If test is not a shell built-in, we'll probably end up computing a
5012     # maximum length that is only half of the actual maximum length, but
5013     # we can't tell.
5014     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5015                = "XX$testring") >/dev/null 2>&1 &&
5016             new_result=`expr "X$testring" : ".*" 2>&1` &&
5017             lt_cv_sys_max_cmd_len=$new_result &&
5018             test $i != 17 # 1/2 MB should be enough
5019     do
5020       i=`expr $i + 1`
5021       testring=$testring$testring
5022     done
5023     testring=
5024     # Add a significant safety factor because C++ compilers can tack on massive
5025     # amounts of additional arguments before passing them to the linker.
5026     # It appears as though 1/2 is a usable value.
5027     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5028     ;;
5029   esac
5030
5031 fi
5032
5033 if test -n $lt_cv_sys_max_cmd_len ; then
5034   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5035 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5036 else
5037   echo "$as_me:$LINENO: result: none" >&5
5038 echo "${ECHO_T}none" >&6
5039 fi
5040
5041
5042
5043
5044 # Check for command to grab the raw symbol name followed by C symbol from nm.
5045 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5046 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5047 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5048   echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050
5051 # These are sane defaults that work on at least a few old systems.
5052 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5053
5054 # Character class describing NM global symbol codes.
5055 symcode='[BCDEGRST]'
5056
5057 # Regexp to match symbols that can be accessed directly from C.
5058 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5059
5060 # Transform the above into a raw symbol and a C symbol.
5061 symxfrm='\1 \2\3 \3'
5062
5063 # Transform an extracted symbol line into a proper C declaration
5064 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5065
5066 # Transform an extracted symbol line into symbol name and symbol address
5067 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5068
5069 # Define system-specific variables.
5070 case $host_os in
5071 aix*)
5072   symcode='[BCDT]'
5073   ;;
5074 cygwin* | mingw* | pw32*)
5075   symcode='[ABCDGISTW]'
5076   ;;
5077 hpux*) # Its linker distinguishes data from code symbols
5078   if test "$host_cpu" = ia64; then
5079     symcode='[ABCDEGRST]'
5080   fi
5081   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5082   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5083   ;;
5084 irix* | nonstopux*)
5085   symcode='[BCDEGRST]'
5086   ;;
5087 osf*)
5088   symcode='[BCDEGQRST]'
5089   ;;
5090 solaris* | sysv5*)
5091   symcode='[BDRT]'
5092   ;;
5093 sysv4)
5094   symcode='[DFNSTU]'
5095   ;;
5096 esac
5097
5098 # Handle CRLF in mingw tool chain
5099 opt_cr=
5100 case $build_os in
5101 mingw*)
5102   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5103   ;;
5104 esac
5105
5106 # If we're using GNU nm, then use its standard symbol codes.
5107 case `$NM -V 2>&1` in
5108 *GNU* | *'with BFD'*)
5109   symcode='[ABCDGIRSTW]' ;;
5110 esac
5111
5112 # Try without a prefix undercore, then with it.
5113 for ac_symprfx in "" "_"; do
5114
5115   # Write the raw and C identifiers.
5116   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5117
5118   # Check to see that the pipe works correctly.
5119   pipe_works=no
5120
5121   rm -f conftest*
5122   cat > conftest.$ac_ext <<EOF
5123 #ifdef __cplusplus
5124 extern "C" {
5125 #endif
5126 char nm_test_var;
5127 void nm_test_func(){}
5128 #ifdef __cplusplus
5129 }
5130 #endif
5131 int main(){nm_test_var='a';nm_test_func();return(0);}
5132 EOF
5133
5134   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5135   (eval $ac_compile) 2>&5
5136   ac_status=$?
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); }; then
5139     # Now try to grab the symbols.
5140     nlist=conftest.nm
5141     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5142   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5143   ac_status=$?
5144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145   (exit $ac_status); } && test -s "$nlist"; then
5146       # Try sorting and uniquifying the output.
5147       if sort "$nlist" | uniq > "$nlist"T; then
5148         mv -f "$nlist"T "$nlist"
5149       else
5150         rm -f "$nlist"T
5151       fi
5152
5153       # Make sure that we snagged all the symbols we need.
5154       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5155         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5156           cat <<EOF > conftest.$ac_ext
5157 #ifdef __cplusplus
5158 extern "C" {
5159 #endif
5160
5161 EOF
5162           # Now generate the symbol file.
5163           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5164
5165           cat <<EOF >> conftest.$ac_ext
5166 #if defined (__STDC__) && __STDC__
5167 # define lt_ptr_t void *
5168 #else
5169 # define lt_ptr_t char *
5170 # define const
5171 #endif
5172
5173 /* The mapping between symbol names and symbols. */
5174 const struct {
5175   const char *name;
5176   lt_ptr_t address;
5177 }
5178 lt_preloaded_symbols[] =
5179 {
5180 EOF
5181           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5182           cat <<\EOF >> conftest.$ac_ext
5183   {0, (lt_ptr_t) 0}
5184 };
5185
5186 #ifdef __cplusplus
5187 }
5188 #endif
5189 EOF
5190           # Now try linking the two files.
5191           mv conftest.$ac_objext conftstm.$ac_objext
5192           lt_save_LIBS="$LIBS"
5193           lt_save_CFLAGS="$CFLAGS"
5194           LIBS="conftstm.$ac_objext"
5195           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5196           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5197   (eval $ac_link) 2>&5
5198   ac_status=$?
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5201             pipe_works=yes
5202           fi
5203           LIBS="$lt_save_LIBS"
5204           CFLAGS="$lt_save_CFLAGS"
5205         else
5206           echo "cannot find nm_test_func in $nlist" >&5
5207         fi
5208       else
5209         echo "cannot find nm_test_var in $nlist" >&5
5210       fi
5211     else
5212       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5213     fi
5214   else
5215     echo "$progname: failed program was:" >&5
5216     cat conftest.$ac_ext >&5
5217   fi
5218   rm -f conftest* conftst*
5219
5220   # Do not use the global_symbol_pipe unless it works.
5221   if test "$pipe_works" = yes; then
5222     break
5223   else
5224     lt_cv_sys_global_symbol_pipe=
5225   fi
5226 done
5227
5228 fi
5229
5230 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5231   lt_cv_sys_global_symbol_to_cdecl=
5232 fi
5233 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5234   echo "$as_me:$LINENO: result: failed" >&5
5235 echo "${ECHO_T}failed" >&6
5236 else
5237   echo "$as_me:$LINENO: result: ok" >&5
5238 echo "${ECHO_T}ok" >&6
5239 fi
5240
5241 echo "$as_me:$LINENO: checking for objdir" >&5
5242 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5243 if test "${lt_cv_objdir+set}" = set; then
5244   echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246   rm -f .libs 2>/dev/null
5247 mkdir .libs 2>/dev/null
5248 if test -d .libs; then
5249   lt_cv_objdir=.libs
5250 else
5251   # MS-DOS does not allow filenames that begin with a dot.
5252   lt_cv_objdir=_libs
5253 fi
5254 rmdir .libs 2>/dev/null
5255 fi
5256 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5257 echo "${ECHO_T}$lt_cv_objdir" >&6
5258 objdir=$lt_cv_objdir
5259
5260
5261
5262
5263
5264 case $host_os in
5265 aix3*)
5266   # AIX sometimes has problems with the GCC collect2 program.  For some
5267   # reason, if we set the COLLECT_NAMES environment variable, the problems
5268   # vanish in a puff of smoke.
5269   if test "X${COLLECT_NAMES+set}" != Xset; then
5270     COLLECT_NAMES=
5271     export COLLECT_NAMES
5272   fi
5273   ;;
5274 esac
5275
5276 # Sed substitution that helps us do robust quoting.  It backslashifies
5277 # metacharacters that are still active within double-quoted strings.
5278 Xsed='sed -e s/^X//'
5279 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5280
5281 # Same as above, but do not quote variable references.
5282 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5283
5284 # Sed substitution to delay expansion of an escaped shell variable in a
5285 # double_quote_subst'ed string.
5286 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5287
5288 # Sed substitution to avoid accidental globbing in evaled expressions
5289 no_glob_subst='s/\*/\\\*/g'
5290
5291 # Constants:
5292 rm="rm -f"
5293
5294 # Global variables:
5295 default_ofile=libtool
5296 can_build_shared=yes
5297
5298 # All known linkers require a `.a' archive for static linking (except M$VC,
5299 # which needs '.lib').
5300 libext=a
5301 ltmain="$ac_aux_dir/ltmain.sh"
5302 ofile="$default_ofile"
5303 with_gnu_ld="$lt_cv_prog_gnu_ld"
5304
5305 if test -n "$ac_tool_prefix"; then
5306   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5307 set dummy ${ac_tool_prefix}ar; ac_word=$2
5308 echo "$as_me:$LINENO: checking for $ac_word" >&5
5309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5310 if test "${ac_cv_prog_AR+set}" = set; then
5311   echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313   if test -n "$AR"; then
5314   ac_cv_prog_AR="$AR" # Let the user override the test.
5315 else
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH
5318 do
5319   IFS=$as_save_IFS
5320   test -z "$as_dir" && as_dir=.
5321   for ac_exec_ext in '' $ac_executable_extensions; do
5322   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323     ac_cv_prog_AR="${ac_tool_prefix}ar"
5324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5325     break 2
5326   fi
5327 done
5328 done
5329
5330 fi
5331 fi
5332 AR=$ac_cv_prog_AR
5333 if test -n "$AR"; then
5334   echo "$as_me:$LINENO: result: $AR" >&5
5335 echo "${ECHO_T}$AR" >&6
5336 else
5337   echo "$as_me:$LINENO: result: no" >&5
5338 echo "${ECHO_T}no" >&6
5339 fi
5340
5341 fi
5342 if test -z "$ac_cv_prog_AR"; then
5343   ac_ct_AR=$AR
5344   # Extract the first word of "ar", so it can be a program name with args.
5345 set dummy ar; ac_word=$2
5346 echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5348 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351   if test -n "$ac_ct_AR"; then
5352   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5353 else
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5356 do
5357   IFS=$as_save_IFS
5358   test -z "$as_dir" && as_dir=.
5359   for ac_exec_ext in '' $ac_executable_extensions; do
5360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361     ac_cv_prog_ac_ct_AR="ar"
5362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363     break 2
5364   fi
5365 done
5366 done
5367
5368   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5369 fi
5370 fi
5371 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5372 if test -n "$ac_ct_AR"; then
5373   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5374 echo "${ECHO_T}$ac_ct_AR" >&6
5375 else
5376   echo "$as_me:$LINENO: result: no" >&5
5377 echo "${ECHO_T}no" >&6
5378 fi
5379
5380   AR=$ac_ct_AR
5381 else
5382   AR="$ac_cv_prog_AR"
5383 fi
5384
5385 if test -n "$ac_tool_prefix"; then
5386   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5387 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5388 echo "$as_me:$LINENO: checking for $ac_word" >&5
5389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5390 if test "${ac_cv_prog_RANLIB+set}" = set; then
5391   echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393   if test -n "$RANLIB"; then
5394   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399   IFS=$as_save_IFS
5400   test -z "$as_dir" && as_dir=.
5401   for ac_exec_ext in '' $ac_executable_extensions; do
5402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5405     break 2
5406   fi
5407 done
5408 done
5409
5410 fi
5411 fi
5412 RANLIB=$ac_cv_prog_RANLIB
5413 if test -n "$RANLIB"; then
5414   echo "$as_me:$LINENO: result: $RANLIB" >&5
5415 echo "${ECHO_T}$RANLIB" >&6
5416 else
5417   echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6
5419 fi
5420
5421 fi
5422 if test -z "$ac_cv_prog_RANLIB"; then
5423   ac_ct_RANLIB=$RANLIB
5424   # Extract the first word of "ranlib", so it can be a program name with args.
5425 set dummy ranlib; ac_word=$2
5426 echo "$as_me:$LINENO: checking for $ac_word" >&5
5427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5428 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5429   echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431   if test -n "$ac_ct_RANLIB"; then
5432   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5433 else
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5436 do
5437   IFS=$as_save_IFS
5438   test -z "$as_dir" && as_dir=.
5439   for ac_exec_ext in '' $ac_executable_extensions; do
5440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441     ac_cv_prog_ac_ct_RANLIB="ranlib"
5442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443     break 2
5444   fi
5445 done
5446 done
5447
5448   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5449 fi
5450 fi
5451 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5452 if test -n "$ac_ct_RANLIB"; then
5453   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5454 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5455 else
5456   echo "$as_me:$LINENO: result: no" >&5
5457 echo "${ECHO_T}no" >&6
5458 fi
5459
5460   RANLIB=$ac_ct_RANLIB
5461 else
5462   RANLIB="$ac_cv_prog_RANLIB"
5463 fi
5464
5465 if test -n "$ac_tool_prefix"; then
5466   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5467 set dummy ${ac_tool_prefix}strip; ac_word=$2
5468 echo "$as_me:$LINENO: checking for $ac_word" >&5
5469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5470 if test "${ac_cv_prog_STRIP+set}" = set; then
5471   echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473   if test -n "$STRIP"; then
5474   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5475 else
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH
5478 do
5479   IFS=$as_save_IFS
5480   test -z "$as_dir" && as_dir=.
5481   for ac_exec_ext in '' $ac_executable_extensions; do
5482   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5483     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5485     break 2
5486   fi
5487 done
5488 done
5489
5490 fi
5491 fi
5492 STRIP=$ac_cv_prog_STRIP
5493 if test -n "$STRIP"; then
5494   echo "$as_me:$LINENO: result: $STRIP" >&5
5495 echo "${ECHO_T}$STRIP" >&6
5496 else
5497   echo "$as_me:$LINENO: result: no" >&5
5498 echo "${ECHO_T}no" >&6
5499 fi
5500
5501 fi
5502 if test -z "$ac_cv_prog_STRIP"; then
5503   ac_ct_STRIP=$STRIP
5504   # Extract the first word of "strip", so it can be a program name with args.
5505 set dummy strip; ac_word=$2
5506 echo "$as_me:$LINENO: checking for $ac_word" >&5
5507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5508 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5509   echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511   if test -n "$ac_ct_STRIP"; then
5512   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517   IFS=$as_save_IFS
5518   test -z "$as_dir" && as_dir=.
5519   for ac_exec_ext in '' $ac_executable_extensions; do
5520   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521     ac_cv_prog_ac_ct_STRIP="strip"
5522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5523     break 2
5524   fi
5525 done
5526 done
5527
5528   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5529 fi
5530 fi
5531 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5532 if test -n "$ac_ct_STRIP"; then
5533   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5534 echo "${ECHO_T}$ac_ct_STRIP" >&6
5535 else
5536   echo "$as_me:$LINENO: result: no" >&5
5537 echo "${ECHO_T}no" >&6
5538 fi
5539
5540   STRIP=$ac_ct_STRIP
5541 else
5542   STRIP="$ac_cv_prog_STRIP"
5543 fi
5544
5545
5546 old_CC="$CC"
5547 old_CFLAGS="$CFLAGS"
5548
5549 # Set sane defaults for various variables
5550 test -z "$AR" && AR=ar
5551 test -z "$AR_FLAGS" && AR_FLAGS=cru
5552 test -z "$AS" && AS=as
5553 test -z "$CC" && CC=cc
5554 test -z "$LTCC" && LTCC=$CC
5555 test -z "$DLLTOOL" && DLLTOOL=dlltool
5556 test -z "$LD" && LD=ld
5557 test -z "$LN_S" && LN_S="ln -s"
5558 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5559 test -z "$NM" && NM=nm
5560 test -z "$SED" && SED=sed
5561 test -z "$OBJDUMP" && OBJDUMP=objdump
5562 test -z "$RANLIB" && RANLIB=:
5563 test -z "$STRIP" && STRIP=:
5564 test -z "$ac_objext" && ac_objext=o
5565
5566 # Determine commands to create old-style static archives.
5567 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5568 old_postinstall_cmds='chmod 644 $oldlib'
5569 old_postuninstall_cmds=
5570
5571 if test -n "$RANLIB"; then
5572   case $host_os in
5573   openbsd*)
5574     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5575     ;;
5576   *)
5577     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5578     ;;
5579   esac
5580   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5581 fi
5582
5583 # Only perform the check for file, if the check method requires it
5584 case $deplibs_check_method in
5585 file_magic*)
5586   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5587     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5588 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5589 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5590   echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
5592   case $MAGIC_CMD in
5593 [\\/*] |  ?:[\\/]*)
5594   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5595   ;;
5596 *)
5597   lt_save_MAGIC_CMD="$MAGIC_CMD"
5598   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5599   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5600   for ac_dir in $ac_dummy; do
5601     IFS="$lt_save_ifs"
5602     test -z "$ac_dir" && ac_dir=.
5603     if test -f $ac_dir/${ac_tool_prefix}file; then
5604       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5605       if test -n "$file_magic_test_file"; then
5606         case $deplibs_check_method in
5607         "file_magic "*)
5608           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5609           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5610           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5611             $EGREP "$file_magic_regex" > /dev/null; then
5612             :
5613           else
5614             cat <<EOF 1>&2
5615
5616 *** Warning: the command libtool uses to detect shared libraries,
5617 *** $file_magic_cmd, produces output that libtool cannot recognize.
5618 *** The result is that libtool may fail to recognize shared libraries
5619 *** as such.  This will affect the creation of libtool libraries that
5620 *** depend on shared libraries, but programs linked with such libtool
5621 *** libraries will work regardless of this problem.  Nevertheless, you
5622 *** may want to report the problem to your system manager and/or to
5623 *** bug-libtool@gnu.org
5624
5625 EOF
5626           fi ;;
5627         esac
5628       fi
5629       break
5630     fi
5631   done
5632   IFS="$lt_save_ifs"
5633   MAGIC_CMD="$lt_save_MAGIC_CMD"
5634   ;;
5635 esac
5636 fi
5637
5638 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5639 if test -n "$MAGIC_CMD"; then
5640   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5641 echo "${ECHO_T}$MAGIC_CMD" >&6
5642 else
5643   echo "$as_me:$LINENO: result: no" >&5
5644 echo "${ECHO_T}no" >&6
5645 fi
5646
5647 if test -z "$lt_cv_path_MAGIC_CMD"; then
5648   if test -n "$ac_tool_prefix"; then
5649     echo "$as_me:$LINENO: checking for file" >&5
5650 echo $ECHO_N "checking for file... $ECHO_C" >&6
5651 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5652   echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654   case $MAGIC_CMD in
5655 [\\/*] |  ?:[\\/]*)
5656   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5657   ;;
5658 *)
5659   lt_save_MAGIC_CMD="$MAGIC_CMD"
5660   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5661   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5662   for ac_dir in $ac_dummy; do
5663     IFS="$lt_save_ifs"
5664     test -z "$ac_dir" && ac_dir=.
5665     if test -f $ac_dir/file; then
5666       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5667       if test -n "$file_magic_test_file"; then
5668         case $deplibs_check_method in
5669         "file_magic "*)
5670           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5671           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5672           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5673             $EGREP "$file_magic_regex" > /dev/null; then
5674             :
5675           else
5676             cat <<EOF 1>&2
5677
5678 *** Warning: the command libtool uses to detect shared libraries,
5679 *** $file_magic_cmd, produces output that libtool cannot recognize.
5680 *** The result is that libtool may fail to recognize shared libraries
5681 *** as such.  This will affect the creation of libtool libraries that
5682 *** depend on shared libraries, but programs linked with such libtool
5683 *** libraries will work regardless of this problem.  Nevertheless, you
5684 *** may want to report the problem to your system manager and/or to
5685 *** bug-libtool@gnu.org
5686
5687 EOF
5688           fi ;;
5689         esac
5690       fi
5691       break
5692     fi
5693   done
5694   IFS="$lt_save_ifs"
5695   MAGIC_CMD="$lt_save_MAGIC_CMD"
5696   ;;
5697 esac
5698 fi
5699
5700 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5701 if test -n "$MAGIC_CMD"; then
5702   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5703 echo "${ECHO_T}$MAGIC_CMD" >&6
5704 else
5705   echo "$as_me:$LINENO: result: no" >&5
5706 echo "${ECHO_T}no" >&6
5707 fi
5708
5709   else
5710     MAGIC_CMD=:
5711   fi
5712 fi
5713
5714   fi
5715   ;;
5716 esac
5717
5718 enable_dlopen=no
5719 enable_win32_dll=no
5720
5721 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5722 if test "${enable_libtool_lock+set}" = set; then
5723   enableval="$enable_libtool_lock"
5724
5725 fi;
5726 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5727
5728
5729 # Check whether --with-pic or --without-pic was given.
5730 if test "${with_pic+set}" = set; then
5731   withval="$with_pic"
5732   pic_mode="$withval"
5733 else
5734   pic_mode=default
5735 fi;
5736 test -z "$pic_mode" && pic_mode=default
5737
5738 # Use C for the default configuration in the libtool script
5739 tagname=
5740 lt_save_CC="$CC"
5741 ac_ext=c
5742 ac_cpp='$CPP $CPPFLAGS'
5743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5746
5747
5748 # Source file extension for C test sources.
5749 ac_ext=c
5750
5751 # Object file extension for compiled C test sources.
5752 objext=o
5753 objext=$objext
5754
5755 # Code to be used in simple compile tests
5756 lt_simple_compile_test_code="int some_variable = 0;\n"
5757
5758 # Code to be used in simple link tests
5759 lt_simple_link_test_code='int main(){return(0);}\n'
5760
5761
5762 # If no C compiler was specified, use CC.
5763 LTCC=${LTCC-"$CC"}
5764
5765 # Allow CC to be a program name with arguments.
5766 compiler=$CC
5767
5768
5769 #
5770 # Check for any special shared library compilation flags.
5771 #
5772 lt_prog_cc_shlib=
5773 if test "$GCC" = no; then
5774   case $host_os in
5775   sco3.2v5*)
5776     lt_prog_cc_shlib='-belf'
5777     ;;
5778   esac
5779 fi
5780 if test -n "$lt_prog_cc_shlib"; then
5781   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5782 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5783   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5784   else
5785     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5786 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5787     lt_cv_prog_cc_can_build_shared=no
5788   fi
5789 fi
5790
5791
5792 #
5793 # Check to make sure the static flag actually works.
5794 #
5795 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5796 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5797 if test "${lt_prog_compiler_static_works+set}" = set; then
5798   echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800   lt_prog_compiler_static_works=no
5801    save_LDFLAGS="$LDFLAGS"
5802    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5803    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5804    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5805      # The compiler can only warn and ignore the option if not recognized
5806      # So say no if there are warnings
5807      if test -s conftest.err; then
5808        # Append any errors to the config.log.
5809        cat conftest.err 1>&5
5810      else
5811        lt_prog_compiler_static_works=yes
5812      fi
5813    fi
5814    $rm conftest*
5815    LDFLAGS="$save_LDFLAGS"
5816
5817 fi
5818 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5819 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5820
5821 if test x"$lt_prog_compiler_static_works" = xyes; then
5822     :
5823 else
5824     lt_prog_compiler_static=
5825 fi
5826
5827
5828
5829
5830 lt_prog_compiler_no_builtin_flag=
5831
5832 if test "$GCC" = yes; then
5833   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5834
5835
5836 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5837 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5838 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5839   echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841   lt_cv_prog_compiler_rtti_exceptions=no
5842   ac_outfile=conftest.$ac_objext
5843    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5844    lt_compiler_flag="-fno-rtti -fno-exceptions"
5845    # Insert the option either (1) after the last *FLAGS variable, or
5846    # (2) before a word containing "conftest.", or (3) at the end.
5847    # Note that $ac_compile itself does not contain backslashes and begins
5848    # with a dollar sign (not a hyphen), so the echo should work correctly.
5849    # The option is referenced via a variable to avoid confusing sed.
5850    lt_compile=`echo "$ac_compile" | $SED \
5851    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5852    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5853    -e 's:$: $lt_compiler_flag:'`
5854    (eval echo "\"\$as_me:5854: $lt_compile\"" >&5)
5855    (eval "$lt_compile" 2>conftest.err)
5856    ac_status=$?
5857    cat conftest.err >&5
5858    echo "$as_me:5858: \$? = $ac_status" >&5
5859    if (exit $ac_status) && test -s "$ac_outfile"; then
5860      # The compiler can only warn and ignore the option if not recognized
5861      # So say no if there are warnings
5862      if test ! -s conftest.err; then
5863        lt_cv_prog_compiler_rtti_exceptions=yes
5864      fi
5865    fi
5866    $rm conftest*
5867
5868 fi
5869 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5870 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5871
5872 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5873     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5874 else
5875     :
5876 fi
5877
5878 fi
5879
5880 lt_prog_compiler_wl=
5881 lt_prog_compiler_pic=
5882 lt_prog_compiler_static=
5883
5884 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5885 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5886
5887   if test "$GCC" = yes; then
5888     lt_prog_compiler_wl='-Wl,'
5889     lt_prog_compiler_static='-static'
5890
5891     case $host_os in
5892       aix*)
5893       # All AIX code is PIC.
5894       if test "$host_cpu" = ia64; then
5895         # AIX 5 now supports IA64 processor
5896         lt_prog_compiler_static='-Bstatic'
5897       fi
5898       ;;
5899
5900     amigaos*)
5901       # FIXME: we need at least 68020 code to build shared libraries, but
5902       # adding the `-m68020' flag to GCC prevents building anything better,
5903       # like `-m68040'.
5904       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5905       ;;
5906
5907     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5908       # PIC is the default for these OSes.
5909       ;;
5910
5911     mingw* | pw32* | os2*)
5912       # This hack is so that the source file can tell whether it is being
5913       # built for inclusion in a dll (and should export symbols for example).
5914       lt_prog_compiler_pic='-DDLL_EXPORT'
5915       ;;
5916
5917     darwin* | rhapsody*)
5918       # PIC is the default on this platform
5919       # Common symbols not allowed in MH_DYLIB files
5920       lt_prog_compiler_pic='-fno-common'
5921       ;;
5922
5923     msdosdjgpp*)
5924       # Just because we use GCC doesn't mean we suddenly get shared libraries
5925       # on systems that don't support them.
5926       lt_prog_compiler_can_build_shared=no
5927       enable_shared=no
5928       ;;
5929
5930     sysv4*MP*)
5931       if test -d /usr/nec; then
5932         lt_prog_compiler_pic=-Kconform_pic
5933       fi
5934       ;;
5935
5936     hpux*)
5937       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5938       # not for PA HP-UX.
5939       case "$host_cpu" in
5940       hppa*64*|ia64*)
5941         # +Z the default
5942         ;;
5943       *)
5944         lt_prog_compiler_pic='-fPIC'
5945         ;;
5946       esac
5947       ;;
5948
5949     *)
5950       lt_prog_compiler_pic='-fPIC'
5951       ;;
5952     esac
5953   else
5954     # PORTME Check for flag to pass linker flags through the system compiler.
5955     case $host_os in
5956     aix*)
5957       lt_prog_compiler_wl='-Wl,'
5958       if test "$host_cpu" = ia64; then
5959         # AIX 5 now supports IA64 processor
5960         lt_prog_compiler_static='-Bstatic'
5961       else
5962         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5963       fi
5964       ;;
5965
5966     mingw* | pw32* | os2*)
5967       # This hack is so that the source file can tell whether it is being
5968       # built for inclusion in a dll (and should export symbols for example).
5969       lt_prog_compiler_pic='-DDLL_EXPORT'
5970       ;;
5971
5972     hpux9* | hpux10* | hpux11*)
5973       lt_prog_compiler_wl='-Wl,'
5974       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5975       # not for PA HP-UX.
5976       case "$host_cpu" in
5977       hppa*64*|ia64*)
5978         # +Z the default
5979         ;;
5980       *)
5981         lt_prog_compiler_pic='+Z'
5982         ;;
5983       esac
5984       # Is there a better lt_prog_compiler_static that works with the bundled CC?
5985       lt_prog_compiler_static='${wl}-a ${wl}archive'
5986       ;;
5987
5988     irix5* | irix6* | nonstopux*)
5989       lt_prog_compiler_wl='-Wl,'
5990       # PIC (with -KPIC) is the default.
5991       lt_prog_compiler_static='-non_shared'
5992       ;;
5993
5994     newsos6)
5995       lt_prog_compiler_pic='-KPIC'
5996       lt_prog_compiler_static='-Bstatic'
5997       ;;
5998
5999     linux*)
6000       case $CC in
6001       icc* | ecc*)
6002         lt_prog_compiler_wl='-Wl,'
6003         lt_prog_compiler_pic='-KPIC'
6004         lt_prog_compiler_static='-static'
6005         ;;
6006       ccc*)
6007         lt_prog_compiler_wl='-Wl,'
6008         # All Alpha code is PIC.
6009         lt_prog_compiler_static='-non_shared'
6010         ;;
6011       esac
6012       ;;
6013
6014     osf3* | osf4* | osf5*)
6015       lt_prog_compiler_wl='-Wl,'
6016       # All OSF/1 code is PIC.
6017       lt_prog_compiler_static='-non_shared'
6018       ;;
6019
6020     sco3.2v5*)
6021       lt_prog_compiler_pic='-Kpic'
6022       lt_prog_compiler_static='-dn'
6023       ;;
6024
6025     solaris*)
6026       lt_prog_compiler_wl='-Wl,'
6027       lt_prog_compiler_pic='-KPIC'
6028       lt_prog_compiler_static='-Bstatic'
6029       ;;
6030
6031     sunos4*)
6032       lt_prog_compiler_wl='-Qoption ld '
6033       lt_prog_compiler_pic='-PIC'
6034       lt_prog_compiler_static='-Bstatic'
6035       ;;
6036
6037     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6038       lt_prog_compiler_wl='-Wl,'
6039       lt_prog_compiler_pic='-KPIC'
6040       lt_prog_compiler_static='-Bstatic'
6041       ;;
6042
6043     sysv4*MP*)
6044       if test -d /usr/nec ;then
6045         lt_prog_compiler_pic='-Kconform_pic'
6046         lt_prog_compiler_static='-Bstatic'
6047       fi
6048       ;;
6049
6050     uts4*)
6051       lt_prog_compiler_pic='-pic'
6052       lt_prog_compiler_static='-Bstatic'
6053       ;;
6054
6055     *)
6056       lt_prog_compiler_can_build_shared=no
6057       ;;
6058     esac
6059   fi
6060
6061 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6062 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6063
6064 #
6065 # Check to make sure the PIC flag actually works.
6066 #
6067 if test -n "$lt_prog_compiler_pic"; then
6068
6069 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6070 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6071 if test "${lt_prog_compiler_pic_works+set}" = set; then
6072   echo $ECHO_N "(cached) $ECHO_C" >&6
6073 else
6074   lt_prog_compiler_pic_works=no
6075   ac_outfile=conftest.$ac_objext
6076    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6077    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6078    # Insert the option either (1) after the last *FLAGS variable, or
6079    # (2) before a word containing "conftest.", or (3) at the end.
6080    # Note that $ac_compile itself does not contain backslashes and begins
6081    # with a dollar sign (not a hyphen), so the echo should work correctly.
6082    # The option is referenced via a variable to avoid confusing sed.
6083    lt_compile=`echo "$ac_compile" | $SED \
6084    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6085    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6086    -e 's:$: $lt_compiler_flag:'`
6087    (eval echo "\"\$as_me:6087: $lt_compile\"" >&5)
6088    (eval "$lt_compile" 2>conftest.err)
6089    ac_status=$?
6090    cat conftest.err >&5
6091    echo "$as_me:6091: \$? = $ac_status" >&5
6092    if (exit $ac_status) && test -s "$ac_outfile"; then
6093      # The compiler can only warn and ignore the option if not recognized
6094      # So say no if there are warnings
6095      if test ! -s conftest.err; then
6096        lt_prog_compiler_pic_works=yes
6097      fi
6098    fi
6099    $rm conftest*
6100
6101 fi
6102 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6103 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6104
6105 if test x"$lt_prog_compiler_pic_works" = xyes; then
6106     case $lt_prog_compiler_pic in
6107      "" | " "*) ;;
6108      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6109      esac
6110 else
6111     lt_prog_compiler_pic=
6112      lt_prog_compiler_can_build_shared=no
6113 fi
6114
6115 fi
6116 case "$host_os" in
6117   # For platforms which do not support PIC, -DPIC is meaningless:
6118   *djgpp*)
6119     lt_prog_compiler_pic=
6120     ;;
6121   *)
6122     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6123     ;;
6124 esac
6125
6126 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6127 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6128 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6129   echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131   lt_cv_prog_compiler_c_o=no
6132    $rm -r conftest 2>/dev/null
6133    mkdir conftest
6134    cd conftest
6135    mkdir out
6136    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6137
6138    lt_compiler_flag="-o out/conftest2.$ac_objext"
6139    # Insert the option either (1) after the last *FLAGS variable, or
6140    # (2) before a word containing "conftest.", or (3) at the end.
6141    # Note that $ac_compile itself does not contain backslashes and begins
6142    # with a dollar sign (not a hyphen), so the echo should work correctly.
6143    lt_compile=`echo "$ac_compile" | $SED \
6144    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6145    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6146    -e 's:$: $lt_compiler_flag:'`
6147    (eval echo "\"\$as_me:6147: $lt_compile\"" >&5)
6148    (eval "$lt_compile" 2>out/conftest.err)
6149    ac_status=$?
6150    cat out/conftest.err >&5
6151    echo "$as_me:6151: \$? = $ac_status" >&5
6152    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6153    then
6154      # The compiler can only warn and ignore the option if not recognized
6155      # So say no if there are warnings
6156      if test ! -s out/conftest.err; then
6157        lt_cv_prog_compiler_c_o=yes
6158      fi
6159    fi
6160    chmod u+w .
6161    $rm conftest*
6162    # SGI C++ compiler will create directory out/ii_files/ for
6163    # template instantiation
6164    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6165    $rm out/* && rmdir out
6166    cd ..
6167    rmdir conftest
6168    $rm conftest*
6169
6170 fi
6171 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6172 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6173
6174
6175 hard_links="nottested"
6176 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6177   # do not overwrite the value of need_locks provided by the user
6178   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6179 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6180   hard_links=yes
6181   $rm conftest*
6182   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6183   touch conftest.a
6184   ln conftest.a conftest.b 2>&5 || hard_links=no
6185   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6186   echo "$as_me:$LINENO: result: $hard_links" >&5
6187 echo "${ECHO_T}$hard_links" >&6
6188   if test "$hard_links" = no; then
6189     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6190 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6191     need_locks=warn
6192   fi
6193 else
6194   need_locks=no
6195 fi
6196
6197 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6198 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6199
6200   runpath_var=
6201   allow_undefined_flag=
6202   enable_shared_with_static_runtimes=no
6203   archive_cmds=
6204   archive_expsym_cmds=
6205   old_archive_From_new_cmds=
6206   old_archive_from_expsyms_cmds=
6207   export_dynamic_flag_spec=
6208   whole_archive_flag_spec=
6209   thread_safe_flag_spec=
6210   hardcode_libdir_flag_spec=
6211   hardcode_libdir_flag_spec_ld=
6212   hardcode_libdir_separator=
6213   hardcode_direct=no
6214   hardcode_minus_L=no
6215   hardcode_shlibpath_var=unsupported
6216   link_all_deplibs=unknown
6217   hardcode_automatic=no
6218   module_cmds=
6219   module_expsym_cmds=
6220   always_export_symbols=no
6221   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6222   # include_expsyms should be a list of space-separated symbols to be *always*
6223   # included in the symbol list
6224   include_expsyms=
6225   # exclude_expsyms can be an extended regexp of symbols to exclude
6226   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6227   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6228   # as well as any symbol that contains `d'.
6229   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6230   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6231   # platforms (ab)use it in PIC code, but their linkers get confused if
6232   # the symbol is explicitly referenced.  Since portable code cannot
6233   # rely on this symbol name, it's probably fine to never include it in
6234   # preloaded symbol tables.
6235   extract_expsyms_cmds=
6236
6237   case $host_os in
6238   cygwin* | mingw* | pw32*)
6239     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6240     # When not using gcc, we currently assume that we are using
6241     # Microsoft Visual C++.
6242     if test "$GCC" != yes; then
6243       with_gnu_ld=no
6244     fi
6245     ;;
6246   openbsd*)
6247     with_gnu_ld=no
6248     ;;
6249   esac
6250
6251   ld_shlibs=yes
6252   if test "$with_gnu_ld" = yes; then
6253     # If archive_cmds runs LD, not CC, wlarc should be empty
6254     wlarc='${wl}'
6255
6256     # See if GNU ld supports shared libraries.
6257     case $host_os in
6258     aix3* | aix4* | aix5*)
6259       # On AIX/PPC, the GNU linker is very broken
6260       if test "$host_cpu" != ia64; then
6261         ld_shlibs=no
6262         cat <<EOF 1>&2
6263
6264 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6265 *** to be unable to reliably create shared libraries on AIX.
6266 *** Therefore, libtool is disabling shared libraries support.  If you
6267 *** really care for shared libraries, you may want to modify your PATH
6268 *** so that a non-GNU linker is found, and then restart.
6269
6270 EOF
6271       fi
6272       ;;
6273
6274     amigaos*)
6275       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)'
6276       hardcode_libdir_flag_spec='-L$libdir'
6277       hardcode_minus_L=yes
6278
6279       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6280       # that the semantics of dynamic libraries on AmigaOS, at least up
6281       # to version 4, is to share data among multiple programs linked
6282       # with the same dynamic library.  Since this doesn't match the
6283       # behavior of shared libraries on other platforms, we can't use
6284       # them.
6285       ld_shlibs=no
6286       ;;
6287
6288     beos*)
6289       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6290         allow_undefined_flag=unsupported
6291         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6292         # support --undefined.  This deserves some investigation.  FIXME
6293         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6294       else
6295         ld_shlibs=no
6296       fi
6297       ;;
6298
6299     cygwin* | mingw* | pw32*)
6300       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6301       # as there is no search path for DLLs.
6302       hardcode_libdir_flag_spec='-L$libdir'
6303       allow_undefined_flag=unsupported
6304       always_export_symbols=no
6305       enable_shared_with_static_runtimes=yes
6306       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6307
6308       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6309         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6310         # If the export-symbols file already is a .def file (1st line
6311         # is EXPORTS), use it as is; otherwise, prepend...
6312         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6313           cp $export_symbols $output_objdir/$soname.def;
6314         else
6315           echo EXPORTS > $output_objdir/$soname.def;
6316           cat $export_symbols >> $output_objdir/$soname.def;
6317         fi~
6318         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6319       else
6320         ld_shlibs=no
6321       fi
6322       ;;
6323
6324     netbsd*)
6325       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6326         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6327         wlarc=
6328       else
6329         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6330         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6331       fi
6332       ;;
6333
6334     solaris* | sysv5*)
6335       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6336         ld_shlibs=no
6337         cat <<EOF 1>&2
6338
6339 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6340 *** create shared libraries on Solaris systems.  Therefore, libtool
6341 *** is disabling shared libraries support.  We urge you to upgrade GNU
6342 *** binutils to release 2.9.1 or newer.  Another option is to modify
6343 *** your PATH or compiler configuration so that the native linker is
6344 *** used, and then restart.
6345
6346 EOF
6347       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6348         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6349         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6350       else
6351         ld_shlibs=no
6352       fi
6353       ;;
6354
6355     sunos4*)
6356       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6357       wlarc=
6358       hardcode_direct=yes
6359       hardcode_shlibpath_var=no
6360       ;;
6361
6362   linux*)
6363     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6364         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6365         archive_cmds="$tmp_archive_cmds"
6366       supports_anon_versioning=no
6367       case `$LD -v 2>/dev/null` in
6368         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6369         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6370         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6371         *\ 2.11.*) ;; # other 2.11 versions
6372         *) supports_anon_versioning=yes ;;
6373       esac
6374       if test $supports_anon_versioning = yes; then
6375         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6376 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6377 $echo "local: *; };" >> $output_objdir/$libname.ver~
6378         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6379       else
6380         archive_expsym_cmds="$tmp_archive_cmds"
6381       fi
6382     else
6383       ld_shlibs=no
6384     fi
6385     ;;
6386
6387     *)
6388       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6389         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6390         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6391       else
6392         ld_shlibs=no
6393       fi
6394       ;;
6395     esac
6396
6397     if test "$ld_shlibs" = yes; then
6398       runpath_var=LD_RUN_PATH
6399       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6400       export_dynamic_flag_spec='${wl}--export-dynamic'
6401       # ancient GNU ld didn't support --whole-archive et. al.
6402       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6403         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6404       else
6405         whole_archive_flag_spec=
6406       fi
6407     fi
6408   else
6409     # PORTME fill in a description of your system's linker (not GNU ld)
6410     case $host_os in
6411     aix3*)
6412       allow_undefined_flag=unsupported
6413       always_export_symbols=yes
6414       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'
6415       # Note: this linker hardcodes the directories in LIBPATH if there
6416       # are no directories specified by -L.
6417       hardcode_minus_L=yes
6418       if test "$GCC" = yes && test -z "$link_static_flag"; then
6419         # Neither direct hardcoding nor static linking is supported with a
6420         # broken collect2.
6421         hardcode_direct=unsupported
6422       fi
6423       ;;
6424
6425     aix4* | aix5*)
6426       if test "$host_cpu" = ia64; then
6427         # On IA64, the linker does run time linking by default, so we don't
6428         # have to do anything special.
6429         aix_use_runtimelinking=no
6430         exp_sym_flag='-Bexport'
6431         no_entry_flag=""
6432       else
6433         # If we're using GNU nm, then we don't want the "-C" option.
6434         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6435         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6436           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6437         else
6438           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6439         fi
6440         aix_use_runtimelinking=no
6441
6442         # Test if we are trying to use run time linking or normal
6443         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6444         # need to do runtime linking.
6445         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6446           for ld_flag in $LDFLAGS; do
6447           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6448             aix_use_runtimelinking=yes
6449             break
6450           fi
6451           done
6452         esac
6453
6454         exp_sym_flag='-bexport'
6455         no_entry_flag='-bnoentry'
6456       fi
6457
6458       # When large executables or shared objects are built, AIX ld can
6459       # have problems creating the table of contents.  If linking a library
6460       # or program results in "error TOC overflow" add -mminimal-toc to
6461       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6462       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6463
6464       archive_cmds=''
6465       hardcode_direct=yes
6466       hardcode_libdir_separator=':'
6467       link_all_deplibs=yes
6468
6469       if test "$GCC" = yes; then
6470         case $host_os in aix4.012|aix4.012.*)
6471         # We only want to do this on AIX 4.2 and lower, the check
6472         # below for broken collect2 doesn't work under 4.3+
6473           collect2name=`${CC} -print-prog-name=collect2`
6474           if test -f "$collect2name" && \
6475            strings "$collect2name" | grep resolve_lib_name >/dev/null
6476           then
6477           # We have reworked collect2
6478           hardcode_direct=yes
6479           else
6480           # We have old collect2
6481           hardcode_direct=unsupported
6482           # It fails to find uninstalled libraries when the uninstalled
6483           # path is not listed in the libpath.  Setting hardcode_minus_L
6484           # to unsupported forces relinking
6485           hardcode_minus_L=yes
6486           hardcode_libdir_flag_spec='-L$libdir'
6487           hardcode_libdir_separator=
6488           fi
6489         esac
6490         shared_flag='-shared'
6491       else
6492         # not using gcc
6493         if test "$host_cpu" = ia64; then
6494         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6495         # chokes on -Wl,-G. The following line is correct:
6496           shared_flag='-G'
6497         else
6498         if test "$aix_use_runtimelinking" = yes; then
6499             shared_flag='${wl}-G'
6500           else
6501             shared_flag='${wl}-bM:SRE'
6502         fi
6503         fi
6504       fi
6505
6506       # It seems that -bexpall does not export symbols beginning with
6507       # underscore (_), so it is better to generate a list of symbols to export.
6508       always_export_symbols=yes
6509       if test "$aix_use_runtimelinking" = yes; then
6510         # Warning - without using the other runtime loading flags (-brtl),
6511         # -berok will link without error, but may produce a broken library.
6512         allow_undefined_flag='-berok'
6513        # Determine the default libpath from the value encoded in an empty executable.
6514        cat >conftest.$ac_ext <<_ACEOF
6515 /* confdefs.h.  */
6516 _ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h.  */
6520
6521 int
6522 main ()
6523 {
6524
6525   ;
6526   return 0;
6527 }
6528 _ACEOF
6529 rm -f conftest.$ac_objext conftest$ac_exeext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531   (eval $ac_link) 2>conftest.er1
6532   ac_status=$?
6533   grep -v '^ *+' conftest.er1 >conftest.err
6534   rm -f conftest.er1
6535   cat conftest.err >&5
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); } &&
6538          { ac_try='test -z "$ac_c_werror_flag"
6539                          || test ! -s conftest.err'
6540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541   (eval $ac_try) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); }; } &&
6545          { ac_try='test -s conftest$ac_exeext'
6546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551
6552 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6553 }'`
6554 # Check for a 64-bit object if we didn't find anything.
6555 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6556 }'`; fi
6557 else
6558   echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6560
6561 fi
6562 rm -f conftest.err conftest.$ac_objext \
6563       conftest$ac_exeext conftest.$ac_ext
6564 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6565
6566        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6567         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"
6568        else
6569         if test "$host_cpu" = ia64; then
6570           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6571           allow_undefined_flag="-z nodefs"
6572           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6573         else
6574          # Determine the default libpath from the value encoded in an empty executable.
6575          cat >conftest.$ac_ext <<_ACEOF
6576 /* confdefs.h.  */
6577 _ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h.  */
6581
6582 int
6583 main ()
6584 {
6585
6586   ;
6587   return 0;
6588 }
6589 _ACEOF
6590 rm -f conftest.$ac_objext conftest$ac_exeext
6591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6592   (eval $ac_link) 2>conftest.er1
6593   ac_status=$?
6594   grep -v '^ *+' conftest.er1 >conftest.err
6595   rm -f conftest.er1
6596   cat conftest.err >&5
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); } &&
6599          { ac_try='test -z "$ac_c_werror_flag"
6600                          || test ! -s conftest.err'
6601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602   (eval $ac_try) 2>&5
6603   ac_status=$?
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); }; } &&
6606          { ac_try='test -s conftest$ac_exeext'
6607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608   (eval $ac_try) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); }; }; then
6612
6613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6614 }'`
6615 # Check for a 64-bit object if we didn't find anything.
6616 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6617 }'`; fi
6618 else
6619   echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622 fi
6623 rm -f conftest.err conftest.$ac_objext \
6624       conftest$ac_exeext conftest.$ac_ext
6625 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6626
6627          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6628           # Warning - without using the other run time loading flags,
6629           # -berok will link without error, but may produce a broken library.
6630           no_undefined_flag=' ${wl}-bernotok'
6631           allow_undefined_flag=' ${wl}-berok'
6632           # -bexpall does not export symbols beginning with underscore (_)
6633           always_export_symbols=yes
6634           # Exported symbols can be pulled into shared objects from archives
6635           whole_archive_flag_spec=' '
6636           archive_cmds_need_lc=yes
6637           # This is similar to how AIX traditionally builds it's shared libraries.
6638           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6639         fi
6640       fi
6641       ;;
6642
6643     amigaos*)
6644       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)'
6645       hardcode_libdir_flag_spec='-L$libdir'
6646       hardcode_minus_L=yes
6647       # see comment about different semantics on the GNU ld section
6648       ld_shlibs=no
6649       ;;
6650
6651     bsdi4*)
6652       export_dynamic_flag_spec=-rdynamic
6653       ;;
6654
6655     cygwin* | mingw* | pw32*)
6656       # When not using gcc, we currently assume that we are using
6657       # Microsoft Visual C++.
6658       # hardcode_libdir_flag_spec is actually meaningless, as there is
6659       # no search path for DLLs.
6660       hardcode_libdir_flag_spec=' '
6661       allow_undefined_flag=unsupported
6662       # Tell ltmain to make .lib files, not .a files.
6663       libext=lib
6664       # Tell ltmain to make .dll files, not .so files.
6665       shrext=".dll"
6666       # FIXME: Setting linknames here is a bad hack.
6667       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6668       # The linker will automatically build a .lib file if we build a DLL.
6669       old_archive_From_new_cmds='true'
6670       # FIXME: Should let the user specify the lib program.
6671       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6672       fix_srcfile_path='`cygpath -w "$srcfile"`'
6673       enable_shared_with_static_runtimes=yes
6674       ;;
6675
6676     darwin* | rhapsody*)
6677     if test "$GXX" = yes ; then
6678       archive_cmds_need_lc=no
6679       case "$host_os" in
6680       rhapsody* | darwin1.[012])
6681         allow_undefined_flag='-undefined suppress'
6682         ;;
6683       *) # Darwin 1.3 on
6684       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6685         allow_undefined_flag='-flat_namespace -undefined suppress'
6686       else
6687         case ${MACOSX_DEPLOYMENT_TARGET} in
6688           10.[012])
6689             allow_undefined_flag='-flat_namespace -undefined suppress'
6690             ;;
6691           10.*)
6692             allow_undefined_flag='-undefined dynamic_lookup'
6693             ;;
6694         esac
6695       fi
6696         ;;
6697       esac
6698         lt_int_apple_cc_single_mod=no
6699         output_verbose_link_cmd='echo'
6700         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6701           lt_int_apple_cc_single_mod=yes
6702         fi
6703         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6704           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6705         else
6706         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6707       fi
6708       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6709       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6710         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6711           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6712         else
6713           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6714         fi
6715           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6716       hardcode_direct=no
6717       hardcode_automatic=yes
6718       hardcode_shlibpath_var=unsupported
6719       whole_archive_flag_spec='-all_load $convenience'
6720       link_all_deplibs=yes
6721     else
6722       ld_shlibs=no
6723     fi
6724       ;;
6725
6726     dgux*)
6727       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6728       hardcode_libdir_flag_spec='-L$libdir'
6729       hardcode_shlibpath_var=no
6730       ;;
6731
6732     freebsd1*)
6733       ld_shlibs=no
6734       ;;
6735
6736     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6737     # support.  Future versions do this automatically, but an explicit c++rt0.o
6738     # does not break anything, and helps significantly (at the cost of a little
6739     # extra space).
6740     freebsd2.2*)
6741       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6742       hardcode_libdir_flag_spec='-R$libdir'
6743       hardcode_direct=yes
6744       hardcode_shlibpath_var=no
6745       ;;
6746
6747     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6748     freebsd2*)
6749       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6750       hardcode_direct=yes
6751       hardcode_minus_L=yes
6752       hardcode_shlibpath_var=no
6753       ;;
6754
6755     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6756     freebsd* | kfreebsd*-gnu)
6757       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6758       hardcode_libdir_flag_spec='-R$libdir'
6759       hardcode_direct=yes
6760       hardcode_shlibpath_var=no
6761       ;;
6762
6763     hpux9*)
6764       if test "$GCC" = yes; then
6765         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6766       else
6767         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'
6768       fi
6769       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6770       hardcode_libdir_separator=:
6771       hardcode_direct=yes
6772
6773       # hardcode_minus_L: Not really in the search PATH,
6774       # but as the default location of the library.
6775       hardcode_minus_L=yes
6776       export_dynamic_flag_spec='${wl}-E'
6777       ;;
6778
6779     hpux10* | hpux11*)
6780       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6781         case "$host_cpu" in
6782         hppa*64*|ia64*)
6783           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6784           ;;
6785         *)
6786           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6787           ;;
6788         esac
6789       else
6790         case "$host_cpu" in
6791         hppa*64*|ia64*)
6792           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6793           ;;
6794         *)
6795           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6796           ;;
6797         esac
6798       fi
6799       if test "$with_gnu_ld" = no; then
6800         case "$host_cpu" in
6801         hppa*64*)
6802           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6803           hardcode_libdir_flag_spec_ld='+b $libdir'
6804           hardcode_libdir_separator=:
6805           hardcode_direct=no
6806           hardcode_shlibpath_var=no
6807           ;;
6808         ia64*)
6809           hardcode_libdir_flag_spec='-L$libdir'
6810           hardcode_direct=no
6811           hardcode_shlibpath_var=no
6812
6813           # hardcode_minus_L: Not really in the search PATH,
6814           # but as the default location of the library.
6815           hardcode_minus_L=yes
6816           ;;
6817         *)
6818           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6819           hardcode_libdir_separator=:
6820           hardcode_direct=yes
6821           export_dynamic_flag_spec='${wl}-E'
6822
6823           # hardcode_minus_L: Not really in the search PATH,
6824           # but as the default location of the library.
6825           hardcode_minus_L=yes
6826           ;;
6827         esac
6828       fi
6829       ;;
6830
6831     irix5* | irix6* | nonstopux*)
6832       if test "$GCC" = yes; then
6833         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'
6834       else
6835         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'
6836         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6837       fi
6838       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6839       hardcode_libdir_separator=:
6840       link_all_deplibs=yes
6841       ;;
6842
6843     netbsd*)
6844       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6845         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6846       else
6847         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6848       fi
6849       hardcode_libdir_flag_spec='-R$libdir'
6850       hardcode_direct=yes
6851       hardcode_shlibpath_var=no
6852       ;;
6853
6854     newsos6)
6855       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6856       hardcode_direct=yes
6857       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6858       hardcode_libdir_separator=:
6859       hardcode_shlibpath_var=no
6860       ;;
6861
6862     openbsd*)
6863       hardcode_direct=yes
6864       hardcode_shlibpath_var=no
6865       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6866         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6867         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6868         export_dynamic_flag_spec='${wl}-E'
6869       else
6870        case $host_os in
6871          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6872            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6873            hardcode_libdir_flag_spec='-R$libdir'
6874            ;;
6875          *)
6876            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6877            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6878            ;;
6879        esac
6880       fi
6881       ;;
6882
6883     os2*)
6884       hardcode_libdir_flag_spec='-L$libdir'
6885       hardcode_minus_L=yes
6886       allow_undefined_flag=unsupported
6887       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'
6888       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6889       ;;
6890
6891     osf3*)
6892       if test "$GCC" = yes; then
6893         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6894         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'
6895       else
6896         allow_undefined_flag=' -expect_unresolved \*'
6897         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'
6898       fi
6899       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6900       hardcode_libdir_separator=:
6901       ;;
6902
6903     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6904       if test "$GCC" = yes; then
6905         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6906         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'
6907         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6908       else
6909         allow_undefined_flag=' -expect_unresolved \*'
6910         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'
6911         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6912         $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'
6913
6914         # Both c and cxx compiler support -rpath directly
6915         hardcode_libdir_flag_spec='-rpath $libdir'
6916       fi
6917       hardcode_libdir_separator=:
6918       ;;
6919
6920     sco3.2v5*)
6921       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6922       hardcode_shlibpath_var=no
6923       export_dynamic_flag_spec='${wl}-Bexport'
6924       runpath_var=LD_RUN_PATH
6925       hardcode_runpath_var=yes
6926       ;;
6927
6928     solaris*)
6929       no_undefined_flag=' -z text'
6930       if test "$GCC" = yes; then
6931         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6932         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6933           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6934       else
6935         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6936         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6937         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6938       fi
6939       hardcode_libdir_flag_spec='-R$libdir'
6940       hardcode_shlibpath_var=no
6941       case $host_os in
6942       solaris2.[0-5] | solaris2.[0-5].*) ;;
6943       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6944         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6945       esac
6946       link_all_deplibs=yes
6947       ;;
6948
6949     sunos4*)
6950       if test "x$host_vendor" = xsequent; then
6951         # Use $CC to link under sequent, because it throws in some extra .o
6952         # files that make .init and .fini sections work.
6953         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6954       else
6955         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6956       fi
6957       hardcode_libdir_flag_spec='-L$libdir'
6958       hardcode_direct=yes
6959       hardcode_minus_L=yes
6960       hardcode_shlibpath_var=no
6961       ;;
6962
6963     sysv4)
6964       case $host_vendor in
6965         sni)
6966           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6967           hardcode_direct=yes # is this really true???
6968         ;;
6969         siemens)
6970           ## LD is ld it makes a PLAMLIB
6971           ## CC just makes a GrossModule.
6972           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6973           reload_cmds='$CC -r -o $output$reload_objs'
6974           hardcode_direct=no
6975         ;;
6976         motorola)
6977           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6978           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6979         ;;
6980       esac
6981       runpath_var='LD_RUN_PATH'
6982       hardcode_shlibpath_var=no
6983       ;;
6984
6985     sysv4.3*)
6986       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6987       hardcode_shlibpath_var=no
6988       export_dynamic_flag_spec='-Bexport'
6989       ;;
6990
6991     sysv4*MP*)
6992       if test -d /usr/nec; then
6993         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6994         hardcode_shlibpath_var=no
6995         runpath_var=LD_RUN_PATH
6996         hardcode_runpath_var=yes
6997         ld_shlibs=yes
6998       fi
6999       ;;
7000
7001     sysv4.2uw2*)
7002       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7003       hardcode_direct=yes
7004       hardcode_minus_L=no
7005       hardcode_shlibpath_var=no
7006       hardcode_runpath_var=yes
7007       runpath_var=LD_RUN_PATH
7008       ;;
7009
7010    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7011       no_undefined_flag='${wl}-z ${wl}text'
7012       if test "$GCC" = yes; then
7013         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7014       else
7015         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7016       fi
7017       runpath_var='LD_RUN_PATH'
7018       hardcode_shlibpath_var=no
7019       ;;
7020
7021     sysv5*)
7022       no_undefined_flag=' -z text'
7023       # $CC -shared without GNU ld will not create a library from C++
7024       # object files and a static libstdc++, better avoid it by now
7025       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7026       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7027                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7028       hardcode_libdir_flag_spec=
7029       hardcode_shlibpath_var=no
7030       runpath_var='LD_RUN_PATH'
7031       ;;
7032
7033     uts4*)
7034       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7035       hardcode_libdir_flag_spec='-L$libdir'
7036       hardcode_shlibpath_var=no
7037       ;;
7038
7039     *)
7040       ld_shlibs=no
7041       ;;
7042     esac
7043   fi
7044
7045 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7046 echo "${ECHO_T}$ld_shlibs" >&6
7047 test "$ld_shlibs" = no && can_build_shared=no
7048
7049 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7050 if test "$GCC" = yes; then
7051   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7052 fi
7053
7054 #
7055 # Do we need to explicitly link libc?
7056 #
7057 case "x$archive_cmds_need_lc" in
7058 x|xyes)
7059   # Assume -lc should be added
7060   archive_cmds_need_lc=yes
7061
7062   if test "$enable_shared" = yes && test "$GCC" = yes; then
7063     case $archive_cmds in
7064     *'~'*)
7065       # FIXME: we may have to deal with multi-command sequences.
7066       ;;
7067     '$CC '*)
7068       # Test whether the compiler implicitly links with -lc since on some
7069       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7070       # to ld, don't add -lc before -lgcc.
7071       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7072 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7073       $rm conftest*
7074       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7075
7076       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077   (eval $ac_compile) 2>&5
7078   ac_status=$?
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); } 2>conftest.err; then
7081         soname=conftest
7082         lib=conftest
7083         libobjs=conftest.$ac_objext
7084         deplibs=
7085         wl=$lt_prog_compiler_wl
7086         compiler_flags=-v
7087         linker_flags=-v
7088         verstring=
7089         output_objdir=.
7090         libname=conftest
7091         lt_save_allow_undefined_flag=$allow_undefined_flag
7092         allow_undefined_flag=
7093         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7094   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7095   ac_status=$?
7096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097   (exit $ac_status); }
7098         then
7099           archive_cmds_need_lc=no
7100         else
7101           archive_cmds_need_lc=yes
7102         fi
7103         allow_undefined_flag=$lt_save_allow_undefined_flag
7104       else
7105         cat conftest.err 1>&5
7106       fi
7107       $rm conftest*
7108       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7109 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7110       ;;
7111     esac
7112   fi
7113   ;;
7114 esac
7115
7116 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7117 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7118 library_names_spec=
7119 libname_spec='lib$name'
7120 soname_spec=
7121 shrext=".so"
7122 postinstall_cmds=
7123 postuninstall_cmds=
7124 finish_cmds=
7125 finish_eval=
7126 shlibpath_var=
7127 shlibpath_overrides_runpath=unknown
7128 version_type=none
7129 dynamic_linker="$host_os ld.so"
7130 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7131 if test "$GCC" = yes; then
7132   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7133   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7134     # if the path contains ";" then we assume it to be the separator
7135     # otherwise default to the standard path separator (i.e. ":") - it is
7136     # assumed that no part of a normal pathname contains ";" but that should
7137     # okay in the real world where ";" in dirpaths is itself problematic.
7138     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7139   else
7140     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7141   fi
7142 else
7143   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7144 fi
7145 need_lib_prefix=unknown
7146 hardcode_into_libs=no
7147
7148 # when you set need_version to no, make sure it does not cause -set_version
7149 # flags to be left without arguments
7150 need_version=unknown
7151
7152 case $host_os in
7153 aix3*)
7154   version_type=linux
7155   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7156   shlibpath_var=LIBPATH
7157
7158   # AIX 3 has no versioning support, so we append a major version to the name.
7159   soname_spec='${libname}${release}${shared_ext}$major'
7160   ;;
7161
7162 aix4* | aix5*)
7163   version_type=linux
7164   need_lib_prefix=no
7165   need_version=no
7166   hardcode_into_libs=yes
7167   if test "$host_cpu" = ia64; then
7168     # AIX 5 supports IA64
7169     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7170     shlibpath_var=LD_LIBRARY_PATH
7171   else
7172     # With GCC up to 2.95.x, collect2 would create an import file
7173     # for dependence libraries.  The import file would start with
7174     # the line `#! .'.  This would cause the generated library to
7175     # depend on `.', always an invalid library.  This was fixed in
7176     # development snapshots of GCC prior to 3.0.
7177     case $host_os in
7178       aix4 | aix4.[01] | aix4.[01].*)
7179       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7180            echo ' yes '
7181            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7182         :
7183       else
7184         can_build_shared=no
7185       fi
7186       ;;
7187     esac
7188     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7189     # soname into executable. Probably we can add versioning support to
7190     # collect2, so additional links can be useful in future.
7191     if test "$aix_use_runtimelinking" = yes; then
7192       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7193       # instead of lib<name>.a to let people know that these are not
7194       # typical AIX shared libraries.
7195       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7196     else
7197       # We preserve .a as extension for shared libraries through AIX4.2
7198       # and later when we are not doing run time linking.
7199       library_names_spec='${libname}${release}.a $libname.a'
7200       soname_spec='${libname}${release}${shared_ext}$major'
7201     fi
7202     shlibpath_var=LIBPATH
7203   fi
7204   ;;
7205
7206 amigaos*)
7207   library_names_spec='$libname.ixlibrary $libname.a'
7208   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7209   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'
7210   ;;
7211
7212 beos*)
7213   library_names_spec='${libname}${shared_ext}'
7214   dynamic_linker="$host_os ld.so"
7215   shlibpath_var=LIBRARY_PATH
7216   ;;
7217
7218 bsdi4*)
7219   version_type=linux
7220   need_version=no
7221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7222   soname_spec='${libname}${release}${shared_ext}$major'
7223   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7224   shlibpath_var=LD_LIBRARY_PATH
7225   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7226   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7227   # the default ld.so.conf also contains /usr/contrib/lib and
7228   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7229   # libtool to hard-code these into programs
7230   ;;
7231
7232 cygwin* | mingw* | pw32*)
7233   version_type=windows
7234   shrext=".dll"
7235   need_version=no
7236   need_lib_prefix=no
7237
7238   case $GCC,$host_os in
7239   yes,cygwin* | yes,mingw* | yes,pw32*)
7240     library_names_spec='$libname.dll.a'
7241     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7242     postinstall_cmds='base_file=`basename \${file}`~
7243       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7244       dldir=$destdir/`dirname \$dlpath`~
7245       test -d \$dldir || mkdir -p \$dldir~
7246       $install_prog $dir/$dlname \$dldir/$dlname'
7247     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7248       dlpath=$dir/\$dldll~
7249        $rm \$dlpath'
7250     shlibpath_overrides_runpath=yes
7251
7252     case $host_os in
7253     cygwin*)
7254       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7255       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7256       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7257       ;;
7258     mingw*)
7259       # MinGW DLLs use traditional 'lib' prefix
7260       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7261       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7262       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7263         # It is most probably a Windows format PATH printed by
7264         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7265         # path with ; separators, and with drive letters. We can handle the
7266         # drive letters (cygwin fileutils understands them), so leave them,
7267         # especially as we might pass files found there to a mingw objdump,
7268         # which wouldn't understand a cygwinified path. Ahh.
7269         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7270       else
7271         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7272       fi
7273       ;;
7274     pw32*)
7275       # pw32 DLLs use 'pw' prefix rather than 'lib'
7276       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7277       ;;
7278     esac
7279     ;;
7280
7281   linux*)
7282     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7283       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7284       supports_anon_versioning=no
7285       case `$LD -v 2>/dev/null` in
7286         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7287         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7288         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7289         *\ 2.11.*) ;; # other 2.11 versions
7290         *) supports_anon_versioning=yes ;;
7291       esac
7292       if test $supports_anon_versioning = yes; then
7293         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7294 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7295 $echo "local: *; };" >> $output_objdir/$libname.ver~
7296         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7297       else
7298         $archive_expsym_cmds="$archive_cmds"
7299       fi
7300     else
7301       ld_shlibs=no
7302     fi
7303     ;;
7304
7305   *)
7306     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7307     ;;
7308   esac
7309   dynamic_linker='Win32 ld.exe'
7310   # FIXME: first we should search . and the directory the executable is in
7311   shlibpath_var=PATH
7312   ;;
7313
7314 darwin* | rhapsody*)
7315   dynamic_linker="$host_os dyld"
7316   version_type=darwin
7317   need_lib_prefix=no
7318   need_version=no
7319   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7320   soname_spec='${libname}${release}${major}$shared_ext'
7321   shlibpath_overrides_runpath=yes
7322   shlibpath_var=DYLD_LIBRARY_PATH
7323   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7324   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7325   if test "$GCC" = yes; then
7326     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7327   else
7328     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7329   fi
7330   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7331   ;;
7332
7333 dgux*)
7334   version_type=linux
7335   need_lib_prefix=no
7336   need_version=no
7337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7338   soname_spec='${libname}${release}${shared_ext}$major'
7339   shlibpath_var=LD_LIBRARY_PATH
7340   ;;
7341
7342 freebsd1*)
7343   dynamic_linker=no
7344   ;;
7345
7346 kfreebsd*-gnu)
7347   version_type=linux
7348   need_lib_prefix=no
7349   need_version=no
7350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7351   soname_spec='${libname}${release}${shared_ext}$major'
7352   shlibpath_var=LD_LIBRARY_PATH
7353   shlibpath_overrides_runpath=no
7354   hardcode_into_libs=yes
7355   dynamic_linker='GNU ld.so'
7356   ;;
7357
7358 freebsd*)
7359   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7360   version_type=freebsd-$objformat
7361   case $version_type in
7362     freebsd-elf*)
7363       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7364       need_version=no
7365       need_lib_prefix=no
7366       ;;
7367     freebsd-*)
7368       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7369       need_version=yes
7370       ;;
7371   esac
7372   shlibpath_var=LD_LIBRARY_PATH
7373   case $host_os in
7374   freebsd2*)
7375     shlibpath_overrides_runpath=yes
7376     ;;
7377   freebsd3.01* | freebsdelf3.01*)
7378     shlibpath_overrides_runpath=yes
7379     hardcode_into_libs=yes
7380     ;;
7381   *) # from 3.2 on
7382     shlibpath_overrides_runpath=no
7383     hardcode_into_libs=yes
7384     ;;
7385   esac
7386   ;;
7387
7388 gnu*)
7389   version_type=linux
7390   need_lib_prefix=no
7391   need_version=no
7392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7393   soname_spec='${libname}${release}${shared_ext}$major'
7394   shlibpath_var=LD_LIBRARY_PATH
7395   hardcode_into_libs=yes
7396   ;;
7397
7398 hpux9* | hpux10* | hpux11*)
7399   # Give a soname corresponding to the major version so that dld.sl refuses to
7400   # link against other versions.
7401   version_type=sunos
7402   need_lib_prefix=no
7403   need_version=no
7404   case "$host_cpu" in
7405   ia64*)
7406     shrext='.so'
7407     hardcode_into_libs=yes
7408     dynamic_linker="$host_os dld.so"
7409     shlibpath_var=LD_LIBRARY_PATH
7410     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7411     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7412     soname_spec='${libname}${release}${shared_ext}$major'
7413     if test "X$HPUX_IA64_MODE" = X32; then
7414       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7415     else
7416       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7417     fi
7418     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7419     ;;
7420    hppa*64*)
7421      shrext='.sl'
7422      hardcode_into_libs=yes
7423      dynamic_linker="$host_os dld.sl"
7424      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7425      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7426      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7427      soname_spec='${libname}${release}${shared_ext}$major'
7428      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7429      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7430      ;;
7431    *)
7432     shrext='.sl'
7433     dynamic_linker="$host_os dld.sl"
7434     shlibpath_var=SHLIB_PATH
7435     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7436     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7437     soname_spec='${libname}${release}${shared_ext}$major'
7438     ;;
7439   esac
7440   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7441   postinstall_cmds='chmod 555 $lib'
7442   ;;
7443
7444 irix5* | irix6* | nonstopux*)
7445   case $host_os in
7446     nonstopux*) version_type=nonstopux ;;
7447     *)
7448         if test "$lt_cv_prog_gnu_ld" = yes; then
7449                 version_type=linux
7450         else
7451                 version_type=irix
7452         fi ;;
7453   esac
7454   need_lib_prefix=no
7455   need_version=no
7456   soname_spec='${libname}${release}${shared_ext}$major'
7457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7458   case $host_os in
7459   irix5* | nonstopux*)
7460     libsuff= shlibsuff=
7461     ;;
7462   *)
7463     case $LD in # libtool.m4 will add one of these switches to LD
7464     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7465       libsuff= shlibsuff= libmagic=32-bit;;
7466     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7467       libsuff=32 shlibsuff=N32 libmagic=N32;;
7468     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7469       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7470     *) libsuff= shlibsuff= libmagic=never-match;;
7471     esac
7472     ;;
7473   esac
7474   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7475   shlibpath_overrides_runpath=no
7476   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7477   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7478   hardcode_into_libs=yes
7479   ;;
7480
7481 # No shared lib support for Linux oldld, aout, or coff.
7482 linux*oldld* | linux*aout* | linux*coff*)
7483   dynamic_linker=no
7484   ;;
7485
7486 # This must be Linux ELF.
7487 linux*)
7488   version_type=linux
7489   need_lib_prefix=no
7490   need_version=no
7491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7492   soname_spec='${libname}${release}${shared_ext}$major'
7493   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7494   shlibpath_var=LD_LIBRARY_PATH
7495   shlibpath_overrides_runpath=no
7496   # This implies no fast_install, which is unacceptable.
7497   # Some rework will be needed to allow for fast_install
7498   # before this can be enabled.
7499   hardcode_into_libs=yes
7500
7501   # Append ld.so.conf contents to the search path
7502   if test -f /etc/ld.so.conf; then
7503     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7504     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7505   fi
7506
7507   case $host_cpu:$lt_cv_cc_64bit_output in
7508   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
7509     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
7510     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
7511     ;;
7512   esac
7513
7514   # We used to test for /lib/ld.so.1 and disable shared libraries on
7515   # powerpc, because MkLinux only supported shared libraries with the
7516   # GNU dynamic linker.  Since this was broken with cross compilers,
7517   # most powerpc-linux boxes support dynamic linking these days and
7518   # people can always --disable-shared, the test was removed, and we
7519   # assume the GNU/Linux dynamic linker is in use.
7520   dynamic_linker='GNU/Linux ld.so'
7521
7522   # Find out which ABI we are using (multilib Linux x86_64 hack).
7523   libsuff=
7524   case "$host_cpu" in
7525   x86_64*)
7526     echo '#line 7526 "configure"' > conftest.$ac_ext
7527     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7528   (eval $ac_compile) 2>&5
7529   ac_status=$?
7530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531   (exit $ac_status); }; then
7532       case `/usr/bin/file conftest.$ac_objext` in
7533       *64-bit*)
7534         libsuff=64
7535         ;;
7536       esac
7537     fi
7538     rm -rf conftest*
7539     ;;
7540   *)
7541     ;;
7542   esac
7543   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7544   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7545   ;;
7546
7547 knetbsd*-gnu)
7548   version_type=linux
7549   need_lib_prefix=no
7550   need_version=no
7551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7552   soname_spec='${libname}${release}${shared_ext}$major'
7553   shlibpath_var=LD_LIBRARY_PATH
7554   shlibpath_overrides_runpath=no
7555   hardcode_into_libs=yes
7556   dynamic_linker='GNU ld.so'
7557   ;;
7558
7559 netbsd*)
7560   version_type=sunos
7561   need_lib_prefix=no
7562   need_version=no
7563   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7564     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7565     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7566     dynamic_linker='NetBSD (a.out) ld.so'
7567   else
7568     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7569     soname_spec='${libname}${release}${shared_ext}$major'
7570     dynamic_linker='NetBSD ld.elf_so'
7571   fi
7572   shlibpath_var=LD_LIBRARY_PATH
7573   shlibpath_overrides_runpath=yes
7574   hardcode_into_libs=yes
7575   ;;
7576
7577 newsos6)
7578   version_type=linux
7579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7580   shlibpath_var=LD_LIBRARY_PATH
7581   shlibpath_overrides_runpath=yes
7582   ;;
7583
7584 nto-qnx*)
7585   version_type=linux
7586   need_lib_prefix=no
7587   need_version=no
7588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7589   soname_spec='${libname}${release}${shared_ext}$major'
7590   shlibpath_var=LD_LIBRARY_PATH
7591   shlibpath_overrides_runpath=yes
7592   ;;
7593
7594 openbsd*)
7595   version_type=sunos
7596   need_lib_prefix=no
7597   need_version=yes
7598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7599   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7600   shlibpath_var=LD_LIBRARY_PATH
7601   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7602     case $host_os in
7603       openbsd2.[89] | openbsd2.[89].*)
7604         shlibpath_overrides_runpath=no
7605         ;;
7606       *)
7607         shlibpath_overrides_runpath=yes
7608         ;;
7609       esac
7610   else
7611     shlibpath_overrides_runpath=yes
7612   fi
7613   ;;
7614
7615 os2*)
7616   libname_spec='$name'
7617   shrext=".dll"
7618   need_lib_prefix=no
7619   library_names_spec='$libname${shared_ext} $libname.a'
7620   dynamic_linker='OS/2 ld.exe'
7621   shlibpath_var=LIBPATH
7622   ;;
7623
7624 osf3* | osf4* | osf5*)
7625   version_type=osf
7626   need_lib_prefix=no
7627   need_version=no
7628   soname_spec='${libname}${release}${shared_ext}$major'
7629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7630   shlibpath_var=LD_LIBRARY_PATH
7631   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7632   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7633   ;;
7634
7635 sco3.2v5*)
7636   version_type=osf
7637   soname_spec='${libname}${release}${shared_ext}$major'
7638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7639   shlibpath_var=LD_LIBRARY_PATH
7640   ;;
7641
7642 solaris*)
7643   version_type=linux
7644   need_lib_prefix=no
7645   need_version=no
7646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7647   soname_spec='${libname}${release}${shared_ext}$major'
7648   shlibpath_var=LD_LIBRARY_PATH
7649   shlibpath_overrides_runpath=yes
7650   hardcode_into_libs=yes
7651   # ldd complains unless libraries are executable
7652   postinstall_cmds='chmod +x $lib'
7653   ;;
7654
7655 sunos4*)
7656   version_type=sunos
7657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7658   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7659   shlibpath_var=LD_LIBRARY_PATH
7660   shlibpath_overrides_runpath=yes
7661   if test "$with_gnu_ld" = yes; then
7662     need_lib_prefix=no
7663   fi
7664   need_version=yes
7665   ;;
7666
7667 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7668   version_type=linux
7669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7670   soname_spec='${libname}${release}${shared_ext}$major'
7671   shlibpath_var=LD_LIBRARY_PATH
7672   case $host_vendor in
7673     sni)
7674       shlibpath_overrides_runpath=no
7675       need_lib_prefix=no
7676       export_dynamic_flag_spec='${wl}-Blargedynsym'
7677       runpath_var=LD_RUN_PATH
7678       ;;
7679     siemens)
7680       need_lib_prefix=no
7681       ;;
7682     motorola)
7683       need_lib_prefix=no
7684       need_version=no
7685       shlibpath_overrides_runpath=no
7686       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7687       ;;
7688   esac
7689   ;;
7690
7691 sysv4*MP*)
7692   if test -d /usr/nec ;then
7693     version_type=linux
7694     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7695     soname_spec='$libname${shared_ext}.$major'
7696     shlibpath_var=LD_LIBRARY_PATH
7697   fi
7698   ;;
7699
7700 uts4*)
7701   version_type=linux
7702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7703   soname_spec='${libname}${release}${shared_ext}$major'
7704   shlibpath_var=LD_LIBRARY_PATH
7705   ;;
7706
7707 *)
7708   dynamic_linker=no
7709   ;;
7710 esac
7711 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7712 echo "${ECHO_T}$dynamic_linker" >&6
7713 test "$dynamic_linker" = no && can_build_shared=no
7714
7715 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7716 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7717 hardcode_action=
7718 if test -n "$hardcode_libdir_flag_spec" || \
7719    test -n "$runpath_var " || \
7720    test "X$hardcode_automatic"="Xyes" ; then
7721
7722   # We can hardcode non-existant directories.
7723   if test "$hardcode_direct" != no &&
7724      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7725      # have to relink, otherwise we might link with an installed library
7726      # when we should be linking with a yet-to-be-installed one
7727      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7728      test "$hardcode_minus_L" != no; then
7729     # Linking always hardcodes the temporary library directory.
7730     hardcode_action=relink
7731   else
7732     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7733     hardcode_action=immediate
7734   fi
7735 else
7736   # We cannot hardcode anything, or else we can only hardcode existing
7737   # directories.
7738   hardcode_action=unsupported
7739 fi
7740 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7741 echo "${ECHO_T}$hardcode_action" >&6
7742
7743 if test "$hardcode_action" = relink; then
7744   # Fast installation is not supported
7745   enable_fast_install=no
7746 elif test "$shlibpath_overrides_runpath" = yes ||
7747      test "$enable_shared" = no; then
7748   # Fast installation is not necessary
7749   enable_fast_install=needless
7750 fi
7751
7752 striplib=
7753 old_striplib=
7754 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7755 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7756 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7757   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7758   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7759   echo "$as_me:$LINENO: result: yes" >&5
7760 echo "${ECHO_T}yes" >&6
7761 else
7762 # FIXME - insert some real tests, host_os isn't really good enough
7763   case $host_os in
7764    darwin*)
7765        if test -n "$STRIP" ; then
7766          striplib="$STRIP -x"
7767          echo "$as_me:$LINENO: result: yes" >&5
7768 echo "${ECHO_T}yes" >&6
7769        else
7770   echo "$as_me:$LINENO: result: no" >&5
7771 echo "${ECHO_T}no" >&6
7772 fi
7773        ;;
7774    *)
7775   echo "$as_me:$LINENO: result: no" >&5
7776 echo "${ECHO_T}no" >&6
7777     ;;
7778   esac
7779 fi
7780
7781 if test "x$enable_dlopen" != xyes; then
7782   enable_dlopen=unknown
7783   enable_dlopen_self=unknown
7784   enable_dlopen_self_static=unknown
7785 else
7786   lt_cv_dlopen=no
7787   lt_cv_dlopen_libs=
7788
7789   case $host_os in
7790   beos*)
7791     lt_cv_dlopen="load_add_on"
7792     lt_cv_dlopen_libs=
7793     lt_cv_dlopen_self=yes
7794     ;;
7795
7796   mingw* | pw32*)
7797     lt_cv_dlopen="LoadLibrary"
7798     lt_cv_dlopen_libs=
7799    ;;
7800
7801   cygwin*)
7802     lt_cv_dlopen="dlopen"
7803     lt_cv_dlopen_libs=
7804    ;;
7805
7806   darwin*)
7807   # if libdl is installed we need to link against it
7808     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7809 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7810 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7811   echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813   ac_check_lib_save_LIBS=$LIBS
7814 LIBS="-ldl  $LIBS"
7815 cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h.  */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h.  */
7821
7822 /* Override any gcc2 internal prototype to avoid an error.  */
7823 #ifdef __cplusplus
7824 extern "C"
7825 #endif
7826 /* We use char because int might match the return type of a gcc2
7827    builtin and then its argument prototype would still apply.  */
7828 char dlopen ();
7829 int
7830 main ()
7831 {
7832 dlopen ();
7833   ;
7834   return 0;
7835 }
7836 _ACEOF
7837 rm -f conftest.$ac_objext conftest$ac_exeext
7838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7839   (eval $ac_link) 2>conftest.er1
7840   ac_status=$?
7841   grep -v '^ *+' conftest.er1 >conftest.err
7842   rm -f conftest.er1
7843   cat conftest.err >&5
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); } &&
7846          { ac_try='test -z "$ac_c_werror_flag"
7847                          || test ! -s conftest.err'
7848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849   (eval $ac_try) 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); }; } &&
7853          { ac_try='test -s conftest$ac_exeext'
7854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855   (eval $ac_try) 2>&5
7856   ac_status=$?
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); }; }; then
7859   ac_cv_lib_dl_dlopen=yes
7860 else
7861   echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7863
7864 ac_cv_lib_dl_dlopen=no
7865 fi
7866 rm -f conftest.err conftest.$ac_objext \
7867       conftest$ac_exeext conftest.$ac_ext
7868 LIBS=$ac_check_lib_save_LIBS
7869 fi
7870 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7871 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7872 if test $ac_cv_lib_dl_dlopen = yes; then
7873   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7874 else
7875
7876     lt_cv_dlopen="dyld"
7877     lt_cv_dlopen_libs=
7878     lt_cv_dlopen_self=yes
7879
7880 fi
7881
7882    ;;
7883
7884   *)
7885     echo "$as_me:$LINENO: checking for shl_load" >&5
7886 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7887 if test "${ac_cv_func_shl_load+set}" = set; then
7888   echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890   cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h.  */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h.  */
7896 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7898 #define shl_load innocuous_shl_load
7899
7900 /* System header to define __stub macros and hopefully few prototypes,
7901     which can conflict with char shl_load (); below.
7902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7903     <limits.h> exists even on freestanding compilers.  */
7904
7905 #ifdef __STDC__
7906 # include <limits.h>
7907 #else
7908 # include <assert.h>
7909 #endif
7910
7911 #undef shl_load
7912
7913 /* Override any gcc2 internal prototype to avoid an error.  */
7914 #ifdef __cplusplus
7915 extern "C"
7916 {
7917 #endif
7918 /* We use char because int might match the return type of a gcc2
7919    builtin and then its argument prototype would still apply.  */
7920 char shl_load ();
7921 /* The GNU C library defines this for functions which it implements
7922     to always fail with ENOSYS.  Some functions are actually named
7923     something starting with __ and the normal name is an alias.  */
7924 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7925 choke me
7926 #else
7927 char (*f) () = shl_load;
7928 #endif
7929 #ifdef __cplusplus
7930 }
7931 #endif
7932
7933 int
7934 main ()
7935 {
7936 return f != shl_load;
7937   ;
7938   return 0;
7939 }
7940 _ACEOF
7941 rm -f conftest.$ac_objext conftest$ac_exeext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7943   (eval $ac_link) 2>conftest.er1
7944   ac_status=$?
7945   grep -v '^ *+' conftest.er1 >conftest.err
7946   rm -f conftest.er1
7947   cat conftest.err >&5
7948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); } &&
7950          { ac_try='test -z "$ac_c_werror_flag"
7951                          || test ! -s conftest.err'
7952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953   (eval $ac_try) 2>&5
7954   ac_status=$?
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); }; } &&
7957          { ac_try='test -s conftest$ac_exeext'
7958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959   (eval $ac_try) 2>&5
7960   ac_status=$?
7961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962   (exit $ac_status); }; }; then
7963   ac_cv_func_shl_load=yes
7964 else
7965   echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7967
7968 ac_cv_func_shl_load=no
7969 fi
7970 rm -f conftest.err conftest.$ac_objext \
7971       conftest$ac_exeext conftest.$ac_ext
7972 fi
7973 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7974 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7975 if test $ac_cv_func_shl_load = yes; then
7976   lt_cv_dlopen="shl_load"
7977 else
7978   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7979 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7980 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7981   echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983   ac_check_lib_save_LIBS=$LIBS
7984 LIBS="-ldld  $LIBS"
7985 cat >conftest.$ac_ext <<_ACEOF
7986 /* confdefs.h.  */
7987 _ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h.  */
7991
7992 /* Override any gcc2 internal prototype to avoid an error.  */
7993 #ifdef __cplusplus
7994 extern "C"
7995 #endif
7996 /* We use char because int might match the return type of a gcc2
7997    builtin and then its argument prototype would still apply.  */
7998 char shl_load ();
7999 int
8000 main ()
8001 {
8002 shl_load ();
8003   ;
8004   return 0;
8005 }
8006 _ACEOF
8007 rm -f conftest.$ac_objext conftest$ac_exeext
8008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8009   (eval $ac_link) 2>conftest.er1
8010   ac_status=$?
8011   grep -v '^ *+' conftest.er1 >conftest.err
8012   rm -f conftest.er1
8013   cat conftest.err >&5
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); } &&
8016          { ac_try='test -z "$ac_c_werror_flag"
8017                          || test ! -s conftest.err'
8018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019   (eval $ac_try) 2>&5
8020   ac_status=$?
8021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022   (exit $ac_status); }; } &&
8023          { ac_try='test -s conftest$ac_exeext'
8024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025   (eval $ac_try) 2>&5
8026   ac_status=$?
8027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028   (exit $ac_status); }; }; then
8029   ac_cv_lib_dld_shl_load=yes
8030 else
8031   echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8033
8034 ac_cv_lib_dld_shl_load=no
8035 fi
8036 rm -f conftest.err conftest.$ac_objext \
8037       conftest$ac_exeext conftest.$ac_ext
8038 LIBS=$ac_check_lib_save_LIBS
8039 fi
8040 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8041 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8042 if test $ac_cv_lib_dld_shl_load = yes; then
8043   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8044 else
8045   echo "$as_me:$LINENO: checking for dlopen" >&5
8046 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8047 if test "${ac_cv_func_dlopen+set}" = set; then
8048   echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050   cat >conftest.$ac_ext <<_ACEOF
8051 /* confdefs.h.  */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h.  */
8056 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8058 #define dlopen innocuous_dlopen
8059
8060 /* System header to define __stub macros and hopefully few prototypes,
8061     which can conflict with char dlopen (); below.
8062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8063     <limits.h> exists even on freestanding compilers.  */
8064
8065 #ifdef __STDC__
8066 # include <limits.h>
8067 #else
8068 # include <assert.h>
8069 #endif
8070
8071 #undef dlopen
8072
8073 /* Override any gcc2 internal prototype to avoid an error.  */
8074 #ifdef __cplusplus
8075 extern "C"
8076 {
8077 #endif
8078 /* We use char because int might match the return type of a gcc2
8079    builtin and then its argument prototype would still apply.  */
8080 char dlopen ();
8081 /* The GNU C library defines this for functions which it implements
8082     to always fail with ENOSYS.  Some functions are actually named
8083     something starting with __ and the normal name is an alias.  */
8084 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8085 choke me
8086 #else
8087 char (*f) () = dlopen;
8088 #endif
8089 #ifdef __cplusplus
8090 }
8091 #endif
8092
8093 int
8094 main ()
8095 {
8096 return f != dlopen;
8097   ;
8098   return 0;
8099 }
8100 _ACEOF
8101 rm -f conftest.$ac_objext conftest$ac_exeext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103   (eval $ac_link) 2>conftest.er1
8104   ac_status=$?
8105   grep -v '^ *+' conftest.er1 >conftest.err
8106   rm -f conftest.er1
8107   cat conftest.err >&5
8108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109   (exit $ac_status); } &&
8110          { ac_try='test -z "$ac_c_werror_flag"
8111                          || test ! -s conftest.err'
8112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113   (eval $ac_try) 2>&5
8114   ac_status=$?
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); }; } &&
8117          { ac_try='test -s conftest$ac_exeext'
8118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119   (eval $ac_try) 2>&5
8120   ac_status=$?
8121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); }; }; then
8123   ac_cv_func_dlopen=yes
8124 else
8125   echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128 ac_cv_func_dlopen=no
8129 fi
8130 rm -f conftest.err conftest.$ac_objext \
8131       conftest$ac_exeext conftest.$ac_ext
8132 fi
8133 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8134 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8135 if test $ac_cv_func_dlopen = yes; then
8136   lt_cv_dlopen="dlopen"
8137 else
8138   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8139 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8140 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8141   echo $ECHO_N "(cached) $ECHO_C" >&6
8142 else
8143   ac_check_lib_save_LIBS=$LIBS
8144 LIBS="-ldl  $LIBS"
8145 cat >conftest.$ac_ext <<_ACEOF
8146 /* confdefs.h.  */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h.  */
8151
8152 /* Override any gcc2 internal prototype to avoid an error.  */
8153 #ifdef __cplusplus
8154 extern "C"
8155 #endif
8156 /* We use char because int might match the return type of a gcc2
8157    builtin and then its argument prototype would still apply.  */
8158 char dlopen ();
8159 int
8160 main ()
8161 {
8162 dlopen ();
8163   ;
8164   return 0;
8165 }
8166 _ACEOF
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8169   (eval $ac_link) 2>conftest.er1
8170   ac_status=$?
8171   grep -v '^ *+' conftest.er1 >conftest.err
8172   rm -f conftest.er1
8173   cat conftest.err >&5
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); } &&
8176          { ac_try='test -z "$ac_c_werror_flag"
8177                          || test ! -s conftest.err'
8178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179   (eval $ac_try) 2>&5
8180   ac_status=$?
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); }; } &&
8183          { ac_try='test -s conftest$ac_exeext'
8184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185   (eval $ac_try) 2>&5
8186   ac_status=$?
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   (exit $ac_status); }; }; then
8189   ac_cv_lib_dl_dlopen=yes
8190 else
8191   echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 ac_cv_lib_dl_dlopen=no
8195 fi
8196 rm -f conftest.err conftest.$ac_objext \
8197       conftest$ac_exeext conftest.$ac_ext
8198 LIBS=$ac_check_lib_save_LIBS
8199 fi
8200 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8201 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8202 if test $ac_cv_lib_dl_dlopen = yes; then
8203   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8204 else
8205   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8206 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8207 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8208   echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210   ac_check_lib_save_LIBS=$LIBS
8211 LIBS="-lsvld  $LIBS"
8212 cat >conftest.$ac_ext <<_ACEOF
8213 /* confdefs.h.  */
8214 _ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h.  */
8218
8219 /* Override any gcc2 internal prototype to avoid an error.  */
8220 #ifdef __cplusplus
8221 extern "C"
8222 #endif
8223 /* We use char because int might match the return type of a gcc2
8224    builtin and then its argument prototype would still apply.  */
8225 char dlopen ();
8226 int
8227 main ()
8228 {
8229 dlopen ();
8230   ;
8231   return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext conftest$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236   (eval $ac_link) 2>conftest.er1
8237   ac_status=$?
8238   grep -v '^ *+' conftest.er1 >conftest.err
8239   rm -f conftest.er1
8240   cat conftest.err >&5
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); } &&
8243          { ac_try='test -z "$ac_c_werror_flag"
8244                          || test ! -s conftest.err'
8245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246   (eval $ac_try) 2>&5
8247   ac_status=$?
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); }; } &&
8250          { ac_try='test -s conftest$ac_exeext'
8251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252   (eval $ac_try) 2>&5
8253   ac_status=$?
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); }; }; then
8256   ac_cv_lib_svld_dlopen=yes
8257 else
8258   echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8260
8261 ac_cv_lib_svld_dlopen=no
8262 fi
8263 rm -f conftest.err conftest.$ac_objext \
8264       conftest$ac_exeext conftest.$ac_ext
8265 LIBS=$ac_check_lib_save_LIBS
8266 fi
8267 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8268 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8269 if test $ac_cv_lib_svld_dlopen = yes; then
8270   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8271 else
8272   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8273 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8274 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277   ac_check_lib_save_LIBS=$LIBS
8278 LIBS="-ldld  $LIBS"
8279 cat >conftest.$ac_ext <<_ACEOF
8280 /* confdefs.h.  */
8281 _ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h.  */
8285
8286 /* Override any gcc2 internal prototype to avoid an error.  */
8287 #ifdef __cplusplus
8288 extern "C"
8289 #endif
8290 /* We use char because int might match the return type of a gcc2
8291    builtin and then its argument prototype would still apply.  */
8292 char dld_link ();
8293 int
8294 main ()
8295 {
8296 dld_link ();
8297   ;
8298   return 0;
8299 }
8300 _ACEOF
8301 rm -f conftest.$ac_objext conftest$ac_exeext
8302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8303   (eval $ac_link) 2>conftest.er1
8304   ac_status=$?
8305   grep -v '^ *+' conftest.er1 >conftest.err
8306   rm -f conftest.er1
8307   cat conftest.err >&5
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); } &&
8310          { ac_try='test -z "$ac_c_werror_flag"
8311                          || test ! -s conftest.err'
8312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313   (eval $ac_try) 2>&5
8314   ac_status=$?
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); }; } &&
8317          { ac_try='test -s conftest$ac_exeext'
8318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319   (eval $ac_try) 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); }; }; then
8323   ac_cv_lib_dld_dld_link=yes
8324 else
8325   echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8327
8328 ac_cv_lib_dld_dld_link=no
8329 fi
8330 rm -f conftest.err conftest.$ac_objext \
8331       conftest$ac_exeext conftest.$ac_ext
8332 LIBS=$ac_check_lib_save_LIBS
8333 fi
8334 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8335 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8336 if test $ac_cv_lib_dld_dld_link = yes; then
8337   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8338 fi
8339
8340
8341 fi
8342
8343
8344 fi
8345
8346
8347 fi
8348
8349
8350 fi
8351
8352
8353 fi
8354
8355     ;;
8356   esac
8357
8358   if test "x$lt_cv_dlopen" != xno; then
8359     enable_dlopen=yes
8360   else
8361     enable_dlopen=no
8362   fi
8363
8364   case $lt_cv_dlopen in
8365   dlopen)
8366     save_CPPFLAGS="$CPPFLAGS"
8367     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8368
8369     save_LDFLAGS="$LDFLAGS"
8370     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8371
8372     save_LIBS="$LIBS"
8373     LIBS="$lt_cv_dlopen_libs $LIBS"
8374
8375     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8376 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8377 if test "${lt_cv_dlopen_self+set}" = set; then
8378   echo $ECHO_N "(cached) $ECHO_C" >&6
8379 else
8380           if test "$cross_compiling" = yes; then :
8381   lt_cv_dlopen_self=cross
8382 else
8383   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8384   lt_status=$lt_dlunknown
8385   cat > conftest.$ac_ext <<EOF
8386 #line 8386 "configure"
8387 #include "confdefs.h"
8388
8389 #if HAVE_DLFCN_H
8390 #include <dlfcn.h>
8391 #endif
8392
8393 #include <stdio.h>
8394
8395 #ifdef RTLD_GLOBAL
8396 #  define LT_DLGLOBAL           RTLD_GLOBAL
8397 #else
8398 #  ifdef DL_GLOBAL
8399 #    define LT_DLGLOBAL         DL_GLOBAL
8400 #  else
8401 #    define LT_DLGLOBAL         0
8402 #  endif
8403 #endif
8404
8405 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8406    find out it does not work in some platform. */
8407 #ifndef LT_DLLAZY_OR_NOW
8408 #  ifdef RTLD_LAZY
8409 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8410 #  else
8411 #    ifdef DL_LAZY
8412 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8413 #    else
8414 #      ifdef RTLD_NOW
8415 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8416 #      else
8417 #        ifdef DL_NOW
8418 #          define LT_DLLAZY_OR_NOW      DL_NOW
8419 #        else
8420 #          define LT_DLLAZY_OR_NOW      0
8421 #        endif
8422 #      endif
8423 #    endif
8424 #  endif
8425 #endif
8426
8427 #ifdef __cplusplus
8428 extern "C" void exit (int);
8429 #endif
8430
8431 void fnord() { int i=42;}
8432 int main ()
8433 {
8434   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8435   int status = $lt_dlunknown;
8436
8437   if (self)
8438     {
8439       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8440       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8441       /* dlclose (self); */
8442     }
8443
8444     exit (status);
8445 }
8446 EOF
8447   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448   (eval $ac_link) 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8452     (./conftest; exit; ) 2>/dev/null
8453     lt_status=$?
8454     case x$lt_status in
8455       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8456       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8457       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8458     esac
8459   else :
8460     # compilation failed
8461     lt_cv_dlopen_self=no
8462   fi
8463 fi
8464 rm -fr conftest*
8465
8466
8467 fi
8468 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8469 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8470
8471     if test "x$lt_cv_dlopen_self" = xyes; then
8472       LDFLAGS="$LDFLAGS $link_static_flag"
8473       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8474 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8475 if test "${lt_cv_dlopen_self_static+set}" = set; then
8476   echo $ECHO_N "(cached) $ECHO_C" >&6
8477 else
8478           if test "$cross_compiling" = yes; then :
8479   lt_cv_dlopen_self_static=cross
8480 else
8481   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8482   lt_status=$lt_dlunknown
8483   cat > conftest.$ac_ext <<EOF
8484 #line 8484 "configure"
8485 #include "confdefs.h"
8486
8487 #if HAVE_DLFCN_H
8488 #include <dlfcn.h>
8489 #endif
8490
8491 #include <stdio.h>
8492
8493 #ifdef RTLD_GLOBAL
8494 #  define LT_DLGLOBAL           RTLD_GLOBAL
8495 #else
8496 #  ifdef DL_GLOBAL
8497 #    define LT_DLGLOBAL         DL_GLOBAL
8498 #  else
8499 #    define LT_DLGLOBAL         0
8500 #  endif
8501 #endif
8502
8503 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8504    find out it does not work in some platform. */
8505 #ifndef LT_DLLAZY_OR_NOW
8506 #  ifdef RTLD_LAZY
8507 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8508 #  else
8509 #    ifdef DL_LAZY
8510 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8511 #    else
8512 #      ifdef RTLD_NOW
8513 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8514 #      else
8515 #        ifdef DL_NOW
8516 #          define LT_DLLAZY_OR_NOW      DL_NOW
8517 #        else
8518 #          define LT_DLLAZY_OR_NOW      0
8519 #        endif
8520 #      endif
8521 #    endif
8522 #  endif
8523 #endif
8524
8525 #ifdef __cplusplus
8526 extern "C" void exit (int);
8527 #endif
8528
8529 void fnord() { int i=42;}
8530 int main ()
8531 {
8532   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8533   int status = $lt_dlunknown;
8534
8535   if (self)
8536     {
8537       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8538       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8539       /* dlclose (self); */
8540     }
8541
8542     exit (status);
8543 }
8544 EOF
8545   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546   (eval $ac_link) 2>&5
8547   ac_status=$?
8548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8550     (./conftest; exit; ) 2>/dev/null
8551     lt_status=$?
8552     case x$lt_status in
8553       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8554       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8555       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8556     esac
8557   else :
8558     # compilation failed
8559     lt_cv_dlopen_self_static=no
8560   fi
8561 fi
8562 rm -fr conftest*
8563
8564
8565 fi
8566 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8567 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8568     fi
8569
8570     CPPFLAGS="$save_CPPFLAGS"
8571     LDFLAGS="$save_LDFLAGS"
8572     LIBS="$save_LIBS"
8573     ;;
8574   esac
8575
8576   case $lt_cv_dlopen_self in
8577   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8578   *) enable_dlopen_self=unknown ;;
8579   esac
8580
8581   case $lt_cv_dlopen_self_static in
8582   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8583   *) enable_dlopen_self_static=unknown ;;
8584   esac
8585 fi
8586
8587
8588 # Report which librarie types wil actually be built
8589 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8590 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8591 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8592 echo "${ECHO_T}$can_build_shared" >&6
8593
8594 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8595 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8596 test "$can_build_shared" = "no" && enable_shared=no
8597
8598 # On AIX, shared libraries and static libraries use the same namespace, and
8599 # are all built from PIC.
8600 case "$host_os" in
8601 aix3*)
8602   test "$enable_shared" = yes && enable_static=no
8603   if test -n "$RANLIB"; then
8604     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8605     postinstall_cmds='$RANLIB $lib'
8606   fi
8607   ;;
8608
8609 aix4*)
8610   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8611     test "$enable_shared" = yes && enable_static=no
8612   fi
8613   ;;
8614   darwin* | rhapsody*)
8615   if test "$GCC" = yes; then
8616     archive_cmds_need_lc=no
8617     case "$host_os" in
8618     rhapsody* | darwin1.[012])
8619       allow_undefined_flag='-undefined suppress'
8620       ;;
8621     *) # Darwin 1.3 on
8622       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8623         allow_undefined_flag='-flat_namespace -undefined suppress'
8624       else
8625         case ${MACOSX_DEPLOYMENT_TARGET} in
8626           10.[012])
8627             allow_undefined_flag='-flat_namespace -undefined suppress'
8628             ;;
8629           10.*)
8630             allow_undefined_flag='-undefined dynamic_lookup'
8631             ;;
8632         esac
8633       fi
8634       ;;
8635     esac
8636     output_verbose_link_cmd='echo'
8637     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8638     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8639     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8640     archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8641     module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8642     hardcode_direct=no
8643     hardcode_automatic=yes
8644     hardcode_shlibpath_var=unsupported
8645     whole_archive_flag_spec='-all_load $convenience'
8646     link_all_deplibs=yes
8647   else
8648     ld_shlibs=no
8649   fi
8650     ;;
8651 esac
8652 echo "$as_me:$LINENO: result: $enable_shared" >&5
8653 echo "${ECHO_T}$enable_shared" >&6
8654
8655 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8656 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8657 # Make sure either enable_shared or enable_static is yes.
8658 test "$enable_shared" = yes || enable_static=yes
8659 echo "$as_me:$LINENO: result: $enable_static" >&5
8660 echo "${ECHO_T}$enable_static" >&6
8661
8662 # The else clause should only fire when bootstrapping the
8663 # libtool distribution, otherwise you forgot to ship ltmain.sh
8664 # with your package, and you will get complaints that there are
8665 # no rules to generate ltmain.sh.
8666 if test -f "$ltmain"; then
8667   # See if we are running on zsh, and set the options which allow our commands through
8668   # without removal of \ escapes.
8669   if test -n "${ZSH_VERSION+set}" ; then
8670     setopt NO_GLOB_SUBST
8671   fi
8672   # Now quote all the things that may contain metacharacters while being
8673   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8674   # variables and quote the copies for generation of the libtool script.
8675   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8676     SED SHELL STRIP \
8677     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8678     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8679     deplibs_check_method reload_flag reload_cmds need_locks \
8680     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8681     lt_cv_sys_global_symbol_to_c_name_address \
8682     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8683     old_postinstall_cmds old_postuninstall_cmds \
8684     compiler \
8685     CC \
8686     LD \
8687     lt_prog_compiler_wl \
8688     lt_prog_compiler_pic \
8689     lt_prog_compiler_static \
8690     lt_prog_compiler_no_builtin_flag \
8691     export_dynamic_flag_spec \
8692     thread_safe_flag_spec \
8693     whole_archive_flag_spec \
8694     enable_shared_with_static_runtimes \
8695     old_archive_cmds \
8696     old_archive_from_new_cmds \
8697     predep_objects \
8698     postdep_objects \
8699     predeps \
8700     postdeps \
8701     compiler_lib_search_path \
8702     archive_cmds \
8703     archive_expsym_cmds \
8704     postinstall_cmds \
8705     postuninstall_cmds \
8706     old_archive_from_expsyms_cmds \
8707     allow_undefined_flag \
8708     no_undefined_flag \
8709     export_symbols_cmds \
8710     hardcode_libdir_flag_spec \
8711     hardcode_libdir_flag_spec_ld \
8712     hardcode_libdir_separator \
8713     hardcode_automatic \
8714     module_cmds \
8715     module_expsym_cmds \
8716     lt_cv_prog_compiler_c_o \
8717     exclude_expsyms \
8718     include_expsyms; do
8719
8720     case $var in
8721     old_archive_cmds | \
8722     old_archive_from_new_cmds | \
8723     archive_cmds | \
8724     archive_expsym_cmds | \
8725     module_cmds | \
8726     module_expsym_cmds | \
8727     old_archive_from_expsyms_cmds | \
8728     export_symbols_cmds | \
8729     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8730     postinstall_cmds | postuninstall_cmds | \
8731     old_postinstall_cmds | old_postuninstall_cmds | \
8732     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8733       # Double-quote double-evaled strings.
8734       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8735       ;;
8736     *)
8737       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8738       ;;
8739     esac
8740   done
8741
8742   case $lt_echo in
8743   *'\$0 --fallback-echo"')
8744     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8745     ;;
8746   esac
8747
8748 cfgfile="${ofile}T"
8749   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8750   $rm -f "$cfgfile"
8751   { echo "$as_me:$LINENO: creating $ofile" >&5
8752 echo "$as_me: creating $ofile" >&6;}
8753
8754   cat <<__EOF__ >> "$cfgfile"
8755 #! $SHELL
8756
8757 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8758 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8759 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8760 #
8761 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8762 # Free Software Foundation, Inc.
8763 #
8764 # This file is part of GNU Libtool:
8765 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8766 #
8767 # This program is free software; you can redistribute it and/or modify
8768 # it under the terms of the GNU General Public License as published by
8769 # the Free Software Foundation; either version 2 of the License, or
8770 # (at your option) any later version.
8771 #
8772 # This program is distributed in the hope that it will be useful, but
8773 # WITHOUT ANY WARRANTY; without even the implied warranty of
8774 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8775 # General Public License for more details.
8776 #
8777 # You should have received a copy of the GNU General Public License
8778 # along with this program; if not, write to the Free Software
8779 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8780 #
8781 # As a special exception to the GNU General Public License, if you
8782 # distribute this file as part of a program that contains a
8783 # configuration script generated by Autoconf, you may include it under
8784 # the same distribution terms that you use for the rest of that program.
8785
8786 # A sed program that does not truncate output.
8787 SED=$lt_SED
8788
8789 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8790 Xsed="$SED -e s/^X//"
8791
8792 # The HP-UX ksh and POSIX shell print the target directory to stdout
8793 # if CDPATH is set.
8794 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8795
8796 # The names of the tagged configurations supported by this script.
8797 available_tags=
8798
8799 # ### BEGIN LIBTOOL CONFIG
8800
8801 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8802
8803 # Shell to use when invoking shell scripts.
8804 SHELL=$lt_SHELL
8805
8806 # Whether or not to build shared libraries.
8807 build_libtool_libs=$enable_shared
8808
8809 # Whether or not to build static libraries.
8810 build_old_libs=$enable_static
8811
8812 # Whether or not to add -lc for building shared libraries.
8813 build_libtool_need_lc=$archive_cmds_need_lc
8814
8815 # Whether or not to disallow shared libs when runtime libs are static
8816 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8817
8818 # Whether or not to optimize for fast installation.
8819 fast_install=$enable_fast_install
8820
8821 # The host system.
8822 host_alias=$host_alias
8823 host=$host
8824
8825 # An echo program that does not interpret backslashes.
8826 echo=$lt_echo
8827
8828 # The archiver.
8829 AR=$lt_AR
8830 AR_FLAGS=$lt_AR_FLAGS
8831
8832 # A C compiler.
8833 LTCC=$lt_LTCC
8834
8835 # A language-specific compiler.
8836 CC=$lt_compiler
8837
8838 # Is the compiler the GNU C compiler?
8839 with_gcc=$GCC
8840
8841 # An ERE matcher.
8842 EGREP=$lt_EGREP
8843
8844 # The linker used to build libraries.
8845 LD=$lt_LD
8846
8847 # Whether we need hard or soft links.
8848 LN_S=$lt_LN_S
8849
8850 # A BSD-compatible nm program.
8851 NM=$lt_NM
8852
8853 # A symbol stripping program
8854 STRIP=$lt_STRIP
8855
8856 # Used to examine libraries when file_magic_cmd begins "file"
8857 MAGIC_CMD=$MAGIC_CMD
8858
8859 # Used on cygwin: DLL creation program.
8860 DLLTOOL="$DLLTOOL"
8861
8862 # Used on cygwin: object dumper.
8863 OBJDUMP="$OBJDUMP"
8864
8865 # Used on cygwin: assembler.
8866 AS="$AS"
8867
8868 # The name of the directory that contains temporary libtool files.
8869 objdir=$objdir
8870
8871 # How to create reloadable object files.
8872 reload_flag=$lt_reload_flag
8873 reload_cmds=$lt_reload_cmds
8874
8875 # How to pass a linker flag through the compiler.
8876 wl=$lt_lt_prog_compiler_wl
8877
8878 # Object file suffix (normally "o").
8879 objext="$ac_objext"
8880
8881 # Old archive suffix (normally "a").
8882 libext="$libext"
8883
8884 # Shared library suffix (normally ".so").
8885 shrext='$shrext'
8886
8887 # Executable file suffix (normally "").
8888 exeext="$exeext"
8889
8890 # Additional compiler flags for building library objects.
8891 pic_flag=$lt_lt_prog_compiler_pic
8892 pic_mode=$pic_mode
8893
8894 # What is the maximum length of a command?
8895 max_cmd_len=$lt_cv_sys_max_cmd_len
8896
8897 # Does compiler simultaneously support -c and -o options?
8898 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8899
8900 # Must we lock files when doing compilation ?
8901 need_locks=$lt_need_locks
8902
8903 # Do we need the lib prefix for modules?
8904 need_lib_prefix=$need_lib_prefix
8905
8906 # Do we need a version for libraries?
8907 need_version=$need_version
8908
8909 # Whether dlopen is supported.
8910 dlopen_support=$enable_dlopen
8911
8912 # Whether dlopen of programs is supported.
8913 dlopen_self=$enable_dlopen_self
8914
8915 # Whether dlopen of statically linked programs is supported.
8916 dlopen_self_static=$enable_dlopen_self_static
8917
8918 # Compiler flag to prevent dynamic linking.
8919 link_static_flag=$lt_lt_prog_compiler_static
8920
8921 # Compiler flag to turn off builtin functions.
8922 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8923
8924 # Compiler flag to allow reflexive dlopens.
8925 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8926
8927 # Compiler flag to generate shared objects directly from archives.
8928 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8929
8930 # Compiler flag to generate thread-safe objects.
8931 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8932
8933 # Library versioning type.
8934 version_type=$version_type
8935
8936 # Format of library name prefix.
8937 libname_spec=$lt_libname_spec
8938
8939 # List of archive names.  First name is the real one, the rest are links.
8940 # The last name is the one that the linker finds with -lNAME.
8941 library_names_spec=$lt_library_names_spec
8942
8943 # The coded name of the library, if different from the real name.
8944 soname_spec=$lt_soname_spec
8945
8946 # Commands used to build and install an old-style archive.
8947 RANLIB=$lt_RANLIB
8948 old_archive_cmds=$lt_old_archive_cmds
8949 old_postinstall_cmds=$lt_old_postinstall_cmds
8950 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8951
8952 # Create an old-style archive from a shared archive.
8953 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8954
8955 # Create a temporary old-style archive to link instead of a shared archive.
8956 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8957
8958 # Commands used to build and install a shared archive.
8959 archive_cmds=$lt_archive_cmds
8960 archive_expsym_cmds=$lt_archive_expsym_cmds
8961 postinstall_cmds=$lt_postinstall_cmds
8962 postuninstall_cmds=$lt_postuninstall_cmds
8963
8964 # Commands used to build a loadable module (assumed same as above if empty)
8965 module_cmds=$lt_module_cmds
8966 module_expsym_cmds=$lt_module_expsym_cmds
8967
8968 # Commands to strip libraries.
8969 old_striplib=$lt_old_striplib
8970 striplib=$lt_striplib
8971
8972 # Dependencies to place before the objects being linked to create a
8973 # shared library.
8974 predep_objects=$lt_predep_objects
8975
8976 # Dependencies to place after the objects being linked to create a
8977 # shared library.
8978 postdep_objects=$lt_postdep_objects
8979
8980 # Dependencies to place before the objects being linked to create a
8981 # shared library.
8982 predeps=$lt_predeps
8983
8984 # Dependencies to place after the objects being linked to create a
8985 # shared library.
8986 postdeps=$lt_postdeps
8987
8988 # The library search path used internally by the compiler when linking
8989 # a shared library.
8990 compiler_lib_search_path=$lt_compiler_lib_search_path
8991
8992 # Method to check whether dependent libraries are shared objects.
8993 deplibs_check_method=$lt_deplibs_check_method
8994
8995 # Command to use when deplibs_check_method == file_magic.
8996 file_magic_cmd=$lt_file_magic_cmd
8997
8998 # Flag that allows shared libraries with undefined symbols to be built.
8999 allow_undefined_flag=$lt_allow_undefined_flag
9000
9001 # Flag that forces no undefined symbols.
9002 no_undefined_flag=$lt_no_undefined_flag
9003
9004 # Commands used to finish a libtool library installation in a directory.
9005 finish_cmds=$lt_finish_cmds
9006
9007 # Same as above, but a single script fragment to be evaled but not shown.
9008 finish_eval=$lt_finish_eval
9009
9010 # Take the output of nm and produce a listing of raw symbols and C names.
9011 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9012
9013 # Transform the output of nm in a proper C declaration
9014 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9015
9016 # Transform the output of nm in a C name address pair
9017 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9018
9019 # This is the shared library runtime path variable.
9020 runpath_var=$runpath_var
9021
9022 # This is the shared library path variable.
9023 shlibpath_var=$shlibpath_var
9024
9025 # Is shlibpath searched before the hard-coded library search path?
9026 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9027
9028 # How to hardcode a shared library path into an executable.
9029 hardcode_action=$hardcode_action
9030
9031 # Whether we should hardcode library paths into libraries.
9032 hardcode_into_libs=$hardcode_into_libs
9033
9034 # Flag to hardcode \$libdir into a binary during linking.
9035 # This must work even if \$libdir does not exist.
9036 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9037
9038 # If ld is used when linking, flag to hardcode \$libdir into
9039 # a binary during linking. This must work even if \$libdir does
9040 # not exist.
9041 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9042
9043 # Whether we need a single -rpath flag with a separated argument.
9044 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9045
9046 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9047 # resulting binary.
9048 hardcode_direct=$hardcode_direct
9049
9050 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9051 # resulting binary.
9052 hardcode_minus_L=$hardcode_minus_L
9053
9054 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9055 # the resulting binary.
9056 hardcode_shlibpath_var=$hardcode_shlibpath_var
9057
9058 # Set to yes if building a shared library automatically hardcodes DIR into the library
9059 # and all subsequent libraries and executables linked against it.
9060 hardcode_automatic=$hardcode_automatic
9061
9062 # Variables whose values should be saved in libtool wrapper scripts and
9063 # restored at relink time.
9064 variables_saved_for_relink="$variables_saved_for_relink"
9065
9066 # Whether libtool must link a program against all its dependency libraries.
9067 link_all_deplibs=$link_all_deplibs
9068
9069 # Compile-time system search path for libraries
9070 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9071
9072 # Run-time system search path for libraries
9073 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9074
9075 # Fix the shell variable \$srcfile for the compiler.
9076 fix_srcfile_path="$fix_srcfile_path"
9077
9078 # Set to yes if exported symbols are required.
9079 always_export_symbols=$always_export_symbols
9080
9081 # The commands to list exported symbols.
9082 export_symbols_cmds=$lt_export_symbols_cmds
9083
9084 # The commands to extract the exported symbol list from a shared archive.
9085 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9086
9087 # Symbols that should not be listed in the preloaded symbols.
9088 exclude_expsyms=$lt_exclude_expsyms
9089
9090 # Symbols that must always be exported.
9091 include_expsyms=$lt_include_expsyms
9092
9093 # ### END LIBTOOL CONFIG
9094
9095 __EOF__
9096
9097
9098   case $host_os in
9099   aix3*)
9100     cat <<\EOF >> "$cfgfile"
9101
9102 # AIX sometimes has problems with the GCC collect2 program.  For some
9103 # reason, if we set the COLLECT_NAMES environment variable, the problems
9104 # vanish in a puff of smoke.
9105 if test "X${COLLECT_NAMES+set}" != Xset; then
9106   COLLECT_NAMES=
9107   export COLLECT_NAMES
9108 fi
9109 EOF
9110     ;;
9111   esac
9112
9113   # We use sed instead of cat because bash on DJGPP gets confused if
9114   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9115   # text mode, it properly converts lines to CR/LF.  This bash problem
9116   # is reportedly fixed, but why not run on old versions too?
9117   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9118
9119   mv -f "$cfgfile" "$ofile" || \
9120     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9121   chmod +x "$ofile"
9122
9123 else
9124   # If there is no Makefile yet, we rely on a make rule to execute
9125   # `config.status --recheck' to rerun these tests and create the
9126   # libtool script then.
9127   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9128   if test -f "$ltmain_in"; then
9129     test -f Makefile && make "$ltmain"
9130   fi
9131 fi
9132
9133
9134 ac_ext=c
9135 ac_cpp='$CPP $CPPFLAGS'
9136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9139
9140 CC="$lt_save_CC"
9141
9142
9143 # Check whether --with-tags or --without-tags was given.
9144 if test "${with_tags+set}" = set; then
9145   withval="$with_tags"
9146   tagnames="$withval"
9147 fi;
9148
9149 if test -f "$ltmain" && test -n "$tagnames"; then
9150   if test ! -f "${ofile}"; then
9151     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9152 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9153   fi
9154
9155   if test -z "$LTCC"; then
9156     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9157     if test -z "$LTCC"; then
9158       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9159 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9160     else
9161       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9162 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9163     fi
9164   fi
9165
9166   # Extract list of available tagged configurations in $ofile.
9167   # Note that this assumes the entire list is on one line.
9168   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9169
9170   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9171   for tagname in $tagnames; do
9172     IFS="$lt_save_ifs"
9173     # Check whether tagname contains only valid characters
9174     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9175     "") ;;
9176     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9177 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9178    { (exit 1); exit 1; }; }
9179         ;;
9180     esac
9181
9182     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9183     then
9184       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9185 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9186    { (exit 1); exit 1; }; }
9187     fi
9188
9189     # Update the list of available tags.
9190     if test -n "$tagname"; then
9191       echo appending configuration tag \"$tagname\" to $ofile
9192
9193       case $tagname in
9194       CXX)
9195         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9196           ac_ext=cc
9197 ac_cpp='$CXXCPP $CPPFLAGS'
9198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9201
9202
9203
9204
9205 archive_cmds_need_lc_CXX=no
9206 allow_undefined_flag_CXX=
9207 always_export_symbols_CXX=no
9208 archive_expsym_cmds_CXX=
9209 export_dynamic_flag_spec_CXX=
9210 hardcode_direct_CXX=no
9211 hardcode_libdir_flag_spec_CXX=
9212 hardcode_libdir_flag_spec_ld_CXX=
9213 hardcode_libdir_separator_CXX=
9214 hardcode_minus_L_CXX=no
9215 hardcode_automatic_CXX=no
9216 module_cmds_CXX=
9217 module_expsym_cmds_CXX=
9218 link_all_deplibs_CXX=unknown
9219 old_archive_cmds_CXX=$old_archive_cmds
9220 no_undefined_flag_CXX=
9221 whole_archive_flag_spec_CXX=
9222 enable_shared_with_static_runtimes_CXX=no
9223
9224 # Dependencies to place before and after the object being linked:
9225 predep_objects_CXX=
9226 postdep_objects_CXX=
9227 predeps_CXX=
9228 postdeps_CXX=
9229 compiler_lib_search_path_CXX=
9230
9231 # Source file extension for C++ test sources.
9232 ac_ext=cc
9233
9234 # Object file extension for compiled C++ test sources.
9235 objext=o
9236 objext_CXX=$objext
9237
9238 # Code to be used in simple compile tests
9239 lt_simple_compile_test_code="int some_variable = 0;\n"
9240
9241 # Code to be used in simple link tests
9242 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9243
9244 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9245
9246 # If no C compiler was specified, use CC.
9247 LTCC=${LTCC-"$CC"}
9248
9249 # Allow CC to be a program name with arguments.
9250 compiler=$CC
9251
9252
9253 # Allow CC to be a program name with arguments.
9254 lt_save_CC=$CC
9255 lt_save_LD=$LD
9256 lt_save_GCC=$GCC
9257 GCC=$GXX
9258 lt_save_with_gnu_ld=$with_gnu_ld
9259 lt_save_path_LD=$lt_cv_path_LD
9260 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9261   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9262 else
9263   unset lt_cv_prog_gnu_ld
9264 fi
9265 if test -n "${lt_cv_path_LDCXX+set}"; then
9266   lt_cv_path_LD=$lt_cv_path_LDCXX
9267 else
9268   unset lt_cv_path_LD
9269 fi
9270 test -z "${LDCXX+set}" || LD=$LDCXX
9271 CC=${CXX-"c++"}
9272 compiler=$CC
9273 compiler_CXX=$CC
9274 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9275
9276 # We don't want -fno-exception wen compiling C++ code, so set the
9277 # no_builtin_flag separately
9278 if test "$GXX" = yes; then
9279   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9280 else
9281   lt_prog_compiler_no_builtin_flag_CXX=
9282 fi
9283
9284 if test "$GXX" = yes; then
9285   # Set up default GNU C++ configuration
9286
9287
9288 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9289 if test "${with_gnu_ld+set}" = set; then
9290   withval="$with_gnu_ld"
9291   test "$withval" = no || with_gnu_ld=yes
9292 else
9293   with_gnu_ld=no
9294 fi;
9295 ac_prog=ld
9296 if test "$GCC" = yes; then
9297   # Check if gcc -print-prog-name=ld gives a path.
9298   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9299 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9300   case $host in
9301   *-*-mingw*)
9302     # gcc leaves a trailing carriage return which upsets mingw
9303     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9304   *)
9305     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9306   esac
9307   case $ac_prog in
9308     # Accept absolute paths.
9309     [\\/]* | ?:[\\/]*)
9310       re_direlt='/[^/][^/]*/\.\./'
9311       # Canonicalize the pathname of ld
9312       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9313       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9314         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9315       done
9316       test -z "$LD" && LD="$ac_prog"
9317       ;;
9318   "")
9319     # If it fails, then pretend we aren't using GCC.
9320     ac_prog=ld
9321     ;;
9322   *)
9323     # If it is relative, then search for the first ld in PATH.
9324     with_gnu_ld=unknown
9325     ;;
9326   esac
9327 elif test "$with_gnu_ld" = yes; then
9328   echo "$as_me:$LINENO: checking for GNU ld" >&5
9329 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9330 else
9331   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9332 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9333 fi
9334 if test "${lt_cv_path_LD+set}" = set; then
9335   echo $ECHO_N "(cached) $ECHO_C" >&6
9336 else
9337   if test -z "$LD"; then
9338   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9339   for ac_dir in $PATH; do
9340     IFS="$lt_save_ifs"
9341     test -z "$ac_dir" && ac_dir=.
9342     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9343       lt_cv_path_LD="$ac_dir/$ac_prog"
9344       # Check to see if the program is GNU ld.  I'd rather use --version,
9345       # but apparently some GNU ld's only accept -v.
9346       # Break only if it was the GNU/non-GNU ld that we prefer.
9347       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9348       *GNU* | *'with BFD'*)
9349         test "$with_gnu_ld" != no && break
9350         ;;
9351       *)
9352         test "$with_gnu_ld" != yes && break
9353         ;;
9354       esac
9355     fi
9356   done
9357   IFS="$lt_save_ifs"
9358 else
9359   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9360 fi
9361 fi
9362
9363 LD="$lt_cv_path_LD"
9364 if test -n "$LD"; then
9365   echo "$as_me:$LINENO: result: $LD" >&5
9366 echo "${ECHO_T}$LD" >&6
9367 else
9368   echo "$as_me:$LINENO: result: no" >&5
9369 echo "${ECHO_T}no" >&6
9370 fi
9371 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9372 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9373    { (exit 1); exit 1; }; }
9374 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9375 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9376 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9377   echo $ECHO_N "(cached) $ECHO_C" >&6
9378 else
9379   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9380 case `$LD -v 2>&1 </dev/null` in
9381 *GNU* | *'with BFD'*)
9382   lt_cv_prog_gnu_ld=yes
9383   ;;
9384 *)
9385   lt_cv_prog_gnu_ld=no
9386   ;;
9387 esac
9388 fi
9389 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9390 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9391 with_gnu_ld=$lt_cv_prog_gnu_ld
9392
9393
9394
9395   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9396   # archiving commands below assume that GNU ld is being used.
9397   if test "$with_gnu_ld" = yes; then
9398     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9400
9401     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9402     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9403
9404     # If archive_cmds runs LD, not CC, wlarc should be empty
9405     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9406     #     investigate it a little bit more. (MM)
9407     wlarc='${wl}'
9408
9409     # ancient GNU ld didn't support --whole-archive et. al.
9410     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9411         grep 'no-whole-archive' > /dev/null; then
9412       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9413     else
9414       whole_archive_flag_spec_CXX=
9415     fi
9416   else
9417     with_gnu_ld=no
9418     wlarc=
9419
9420     # A generic and very simple default shared library creation
9421     # command for GNU C++ for the case where it uses the native
9422     # linker, instead of GNU ld.  If possible, this setting should
9423     # overridden to take advantage of the native linker features on
9424     # the platform it is being used on.
9425     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9426   fi
9427
9428   # Commands to make compiler produce verbose output that lists
9429   # what "hidden" libraries, object files and flags are used when
9430   # linking a shared library.
9431   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9432
9433 else
9434   GXX=no
9435   with_gnu_ld=no
9436   wlarc=
9437 fi
9438
9439 # PORTME: fill in a description of your system's C++ link characteristics
9440 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9441 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9442 ld_shlibs_CXX=yes
9443 case $host_os in
9444   aix3*)
9445     # FIXME: insert proper C++ library support
9446     ld_shlibs_CXX=no
9447     ;;
9448   aix4* | aix5*)
9449     if test "$host_cpu" = ia64; then
9450       # On IA64, the linker does run time linking by default, so we don't
9451       # have to do anything special.
9452       aix_use_runtimelinking=no
9453       exp_sym_flag='-Bexport'
9454       no_entry_flag=""
9455     else
9456       aix_use_runtimelinking=no
9457
9458       # Test if we are trying to use run time linking or normal
9459       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9460       # need to do runtime linking.
9461       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9462         for ld_flag in $LDFLAGS; do
9463           case $ld_flag in
9464           *-brtl*)
9465             aix_use_runtimelinking=yes
9466             break
9467             ;;
9468           esac
9469         done
9470       esac
9471
9472       exp_sym_flag='-bexport'
9473       no_entry_flag='-bnoentry'
9474     fi
9475
9476     # When large executables or shared objects are built, AIX ld can
9477     # have problems creating the table of contents.  If linking a library
9478     # or program results in "error TOC overflow" add -mminimal-toc to
9479     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9480     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9481
9482     archive_cmds_CXX=''
9483     hardcode_direct_CXX=yes
9484     hardcode_libdir_separator_CXX=':'
9485     link_all_deplibs_CXX=yes
9486
9487     if test "$GXX" = yes; then
9488       case $host_os in aix4.012|aix4.012.*)
9489       # We only want to do this on AIX 4.2 and lower, the check
9490       # below for broken collect2 doesn't work under 4.3+
9491         collect2name=`${CC} -print-prog-name=collect2`
9492         if test -f "$collect2name" && \
9493            strings "$collect2name" | grep resolve_lib_name >/dev/null
9494         then
9495           # We have reworked collect2
9496           hardcode_direct_CXX=yes
9497         else
9498           # We have old collect2
9499           hardcode_direct_CXX=unsupported
9500           # It fails to find uninstalled libraries when the uninstalled
9501           # path is not listed in the libpath.  Setting hardcode_minus_L
9502           # to unsupported forces relinking
9503           hardcode_minus_L_CXX=yes
9504           hardcode_libdir_flag_spec_CXX='-L$libdir'
9505           hardcode_libdir_separator_CXX=
9506         fi
9507       esac
9508       shared_flag='-shared'
9509     else
9510       # not using gcc
9511       if test "$host_cpu" = ia64; then
9512         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9513         # chokes on -Wl,-G. The following line is correct:
9514         shared_flag='-G'
9515       else
9516         if test "$aix_use_runtimelinking" = yes; then
9517           shared_flag='${wl}-G'
9518         else
9519           shared_flag='${wl}-bM:SRE'
9520         fi
9521       fi
9522     fi
9523
9524     # It seems that -bexpall does not export symbols beginning with
9525     # underscore (_), so it is better to generate a list of symbols to export.
9526     always_export_symbols_CXX=yes
9527     if test "$aix_use_runtimelinking" = yes; then
9528       # Warning - without using the other runtime loading flags (-brtl),
9529       # -berok will link without error, but may produce a broken library.
9530       allow_undefined_flag_CXX='-berok'
9531       # Determine the default libpath from the value encoded in an empty executable.
9532       cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h.  */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h.  */
9538
9539 int
9540 main ()
9541 {
9542
9543   ;
9544   return 0;
9545 }
9546 _ACEOF
9547 rm -f conftest.$ac_objext conftest$ac_exeext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9549   (eval $ac_link) 2>conftest.er1
9550   ac_status=$?
9551   grep -v '^ *+' conftest.er1 >conftest.err
9552   rm -f conftest.er1
9553   cat conftest.err >&5
9554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555   (exit $ac_status); } &&
9556          { ac_try='test -z "$ac_cxx_werror_flag"
9557                          || test ! -s conftest.err'
9558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559   (eval $ac_try) 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); }; } &&
9563          { ac_try='test -s conftest$ac_exeext'
9564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565   (eval $ac_try) 2>&5
9566   ac_status=$?
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); }; }; then
9569
9570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9571 }'`
9572 # Check for a 64-bit object if we didn't find anything.
9573 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9574 }'`; fi
9575 else
9576   echo "$as_me: failed program was:" >&5
9577 sed 's/^/| /' conftest.$ac_ext >&5
9578
9579 fi
9580 rm -f conftest.err conftest.$ac_objext \
9581       conftest$ac_exeext conftest.$ac_ext
9582 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9583
9584       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9585
9586       archive_expsym_cmds_CXX="\$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"
9587      else
9588       if test "$host_cpu" = ia64; then
9589         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9590         allow_undefined_flag_CXX="-z nodefs"
9591         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9592       else
9593         # Determine the default libpath from the value encoded in an empty executable.
9594         cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h.  */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h.  */
9600
9601 int
9602 main ()
9603 {
9604
9605   ;
9606   return 0;
9607 }
9608 _ACEOF
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9611   (eval $ac_link) 2>conftest.er1
9612   ac_status=$?
9613   grep -v '^ *+' conftest.er1 >conftest.err
9614   rm -f conftest.er1
9615   cat conftest.err >&5
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); } &&
9618          { ac_try='test -z "$ac_cxx_werror_flag"
9619                          || test ! -s conftest.err'
9620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621   (eval $ac_try) 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); }; } &&
9625          { ac_try='test -s conftest$ac_exeext'
9626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627   (eval $ac_try) 2>&5
9628   ac_status=$?
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); }; }; then
9631
9632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9633 }'`
9634 # Check for a 64-bit object if we didn't find anything.
9635 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9636 }'`; fi
9637 else
9638   echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9640
9641 fi
9642 rm -f conftest.err conftest.$ac_objext \
9643       conftest$ac_exeext conftest.$ac_ext
9644 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9645
9646         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9647         # Warning - without using the other run time loading flags,
9648         # -berok will link without error, but may produce a broken library.
9649         no_undefined_flag_CXX=' ${wl}-bernotok'
9650         allow_undefined_flag_CXX=' ${wl}-berok'
9651         # -bexpall does not export symbols beginning with underscore (_)
9652         always_export_symbols_CXX=yes
9653         # Exported symbols can be pulled into shared objects from archives
9654         whole_archive_flag_spec_CXX=' '
9655         archive_cmds_need_lc_CXX=yes
9656         # This is similar to how AIX traditionally builds it's shared libraries.
9657         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9658       fi
9659     fi
9660     ;;
9661   chorus*)
9662     case $cc_basename in
9663       *)
9664         # FIXME: insert proper C++ library support
9665         ld_shlibs_CXX=no
9666         ;;
9667     esac
9668     ;;
9669
9670   cygwin* | mingw* | pw32*)
9671     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9672     # as there is no search path for DLLs.
9673     hardcode_libdir_flag_spec_CXX='-L$libdir'
9674     allow_undefined_flag_CXX=unsupported
9675     always_export_symbols_CXX=no
9676     enable_shared_with_static_runtimes_CXX=yes
9677
9678     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9679       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9680       # If the export-symbols file already is a .def file (1st line
9681       # is EXPORTS), use it as is; otherwise, prepend...
9682       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9683         cp $export_symbols $output_objdir/$soname.def;
9684       else
9685         echo EXPORTS > $output_objdir/$soname.def;
9686         cat $export_symbols >> $output_objdir/$soname.def;
9687       fi~
9688       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9689     else
9690       ld_shlibs_CXX=no
9691     fi
9692   ;;
9693
9694   darwin* | rhapsody*)
9695   if test "$GXX" = yes; then
9696     archive_cmds_need_lc_CXX=no
9697     case "$host_os" in
9698     rhapsody* | darwin1.[012])
9699       allow_undefined_flag_CXX='-undefined suppress'
9700       ;;
9701     *) # Darwin 1.3 on
9702       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9703         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9704       else
9705         case ${MACOSX_DEPLOYMENT_TARGET} in
9706           10.[012])
9707             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9708             ;;
9709           10.*)
9710             allow_undefined_flag_CXX='-undefined dynamic_lookup'
9711             ;;
9712         esac
9713       fi
9714       ;;
9715     esac
9716     lt_int_apple_cc_single_mod=no
9717     output_verbose_link_cmd='echo'
9718     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9719       lt_int_apple_cc_single_mod=yes
9720     fi
9721     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9722       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9723     else
9724       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9725     fi
9726     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9727
9728     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9729     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9730       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9731     else
9732       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9733     fi
9734     module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9735     hardcode_direct_CXX=no
9736     hardcode_automatic_CXX=yes
9737     hardcode_shlibpath_var_CXX=unsupported
9738     whole_archive_flag_spec_CXX='-all_load $convenience'
9739     link_all_deplibs_CXX=yes
9740   else
9741     ld_shlibs_CXX=no
9742   fi
9743     ;;
9744
9745   dgux*)
9746     case $cc_basename in
9747       ec++)
9748         # FIXME: insert proper C++ library support
9749         ld_shlibs_CXX=no
9750         ;;
9751       ghcx)
9752         # Green Hills C++ Compiler
9753         # FIXME: insert proper C++ library support
9754         ld_shlibs_CXX=no
9755         ;;
9756       *)
9757         # FIXME: insert proper C++ library support
9758         ld_shlibs_CXX=no
9759         ;;
9760     esac
9761     ;;
9762   freebsd12*)
9763     # C++ shared libraries reported to be fairly broken before switch to ELF
9764     ld_shlibs_CXX=no
9765     ;;
9766   freebsd-elf*)
9767     archive_cmds_need_lc_CXX=no
9768     ;;
9769   freebsd* | kfreebsd*-gnu)
9770     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9771     # conventions
9772     ld_shlibs_CXX=yes
9773     ;;
9774   gnu*)
9775     ;;
9776   hpux9*)
9777     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9778     hardcode_libdir_separator_CXX=:
9779     export_dynamic_flag_spec_CXX='${wl}-E'
9780     hardcode_direct_CXX=yes
9781     hardcode_minus_L_CXX=yes # Not in the search PATH,
9782                                 # but as the default
9783                                 # location of the library.
9784
9785     case $cc_basename in
9786     CC)
9787       # FIXME: insert proper C++ library support
9788       ld_shlibs_CXX=no
9789       ;;
9790     aCC)
9791       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9792       # Commands to make compiler produce verbose output that lists
9793       # what "hidden" libraries, object files and flags are used when
9794       # linking a shared library.
9795       #
9796       # There doesn't appear to be a way to prevent this compiler from
9797       # explicitly linking system object files so we need to strip them
9798       # from the output so that they don't get included in the library
9799       # dependencies.
9800       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9801       ;;
9802     *)
9803       if test "$GXX" = yes; then
9804         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9805       else
9806         # FIXME: insert proper C++ library support
9807         ld_shlibs_CXX=no
9808       fi
9809       ;;
9810     esac
9811     ;;
9812   hpux10*|hpux11*)
9813     if test $with_gnu_ld = no; then
9814       case "$host_cpu" in
9815       hppa*64*)
9816         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9817         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9818         hardcode_libdir_separator_CXX=:
9819         ;;
9820       ia64*)
9821         hardcode_libdir_flag_spec_CXX='-L$libdir'
9822         ;;
9823       *)
9824         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9825         hardcode_libdir_separator_CXX=:
9826         export_dynamic_flag_spec_CXX='${wl}-E'
9827         ;;
9828       esac
9829     fi
9830     case "$host_cpu" in
9831     hppa*64*)
9832       hardcode_direct_CXX=no
9833       hardcode_shlibpath_var_CXX=no
9834       ;;
9835     ia64*)
9836       hardcode_direct_CXX=no
9837       hardcode_shlibpath_var_CXX=no
9838       hardcode_minus_L_CXX=yes # Not in the search PATH,
9839                                               # but as the default
9840                                               # location of the library.
9841       ;;
9842     *)
9843       hardcode_direct_CXX=yes
9844       hardcode_minus_L_CXX=yes # Not in the search PATH,
9845                                               # but as the default
9846                                               # location of the library.
9847       ;;
9848     esac
9849
9850     case $cc_basename in
9851       CC)
9852         # FIXME: insert proper C++ library support
9853         ld_shlibs_CXX=no
9854         ;;
9855       aCC)
9856         case "$host_cpu" in
9857         hppa*64*|ia64*)
9858           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9859           ;;
9860         *)
9861           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9862           ;;
9863         esac
9864         # Commands to make compiler produce verbose output that lists
9865         # what "hidden" libraries, object files and flags are used when
9866         # linking a shared library.
9867         #
9868         # There doesn't appear to be a way to prevent this compiler from
9869         # explicitly linking system object files so we need to strip them
9870         # from the output so that they don't get included in the library
9871         # dependencies.
9872         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9873         ;;
9874       *)
9875         if test "$GXX" = yes; then
9876           if test $with_gnu_ld = no; then
9877             case "$host_cpu" in
9878             ia64*|hppa*64*)
9879               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9880               ;;
9881             *)
9882               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9883               ;;
9884             esac
9885           fi
9886         else
9887           # FIXME: insert proper C++ library support
9888           ld_shlibs_CXX=no
9889         fi
9890         ;;
9891     esac
9892     ;;
9893   irix5* | irix6*)
9894     case $cc_basename in
9895       CC)
9896         # SGI C++
9897         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9898
9899         # Archives containing C++ object files must be created using
9900         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9901         # necessary to make sure instantiated templates are included
9902         # in the archive.
9903         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9904         ;;
9905       *)
9906         if test "$GXX" = yes; then
9907           if test "$with_gnu_ld" = no; then
9908             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9909           else
9910             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
9911           fi
9912         fi
9913         link_all_deplibs_CXX=yes
9914         ;;
9915     esac
9916     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9917     hardcode_libdir_separator_CXX=:
9918     ;;
9919   linux*)
9920     case $cc_basename in
9921       KCC)
9922         # Kuck and Associates, Inc. (KAI) C++ Compiler
9923
9924         # KCC will only create a shared library if the output file
9925         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9926         # to its proper name (with version) after linking.
9927         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9928         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9929         # Commands to make compiler produce verbose output that lists
9930         # what "hidden" libraries, object files and flags are used when
9931         # linking a shared library.
9932         #
9933         # There doesn't appear to be a way to prevent this compiler from
9934         # explicitly linking system object files so we need to strip them
9935         # from the output so that they don't get included in the library
9936         # dependencies.
9937         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9938
9939         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9940         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9941
9942         # Archives containing C++ object files must be created using
9943         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9944         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9945         ;;
9946       icpc)
9947         # Intel C++
9948         with_gnu_ld=yes
9949         archive_cmds_need_lc_CXX=no
9950         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9951         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9952         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9953         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9954         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9955         ;;
9956       cxx)
9957         # Compaq C++
9958         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9959         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9960
9961         runpath_var=LD_RUN_PATH
9962         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9963         hardcode_libdir_separator_CXX=:
9964
9965         # Commands to make compiler produce verbose output that lists
9966         # what "hidden" libraries, object files and flags are used when
9967         # linking a shared library.
9968         #
9969         # There doesn't appear to be a way to prevent this compiler from
9970         # explicitly linking system object files so we need to strip them
9971         # from the output so that they don't get included in the library
9972         # dependencies.
9973         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9974         ;;
9975     esac
9976     ;;
9977   lynxos*)
9978     # FIXME: insert proper C++ library support
9979     ld_shlibs_CXX=no
9980     ;;
9981   m88k*)
9982     # FIXME: insert proper C++ library support
9983     ld_shlibs_CXX=no
9984     ;;
9985   mvs*)
9986     case $cc_basename in
9987       cxx)
9988         # FIXME: insert proper C++ library support
9989         ld_shlibs_CXX=no
9990         ;;
9991       *)
9992         # FIXME: insert proper C++ library support
9993         ld_shlibs_CXX=no
9994         ;;
9995     esac
9996     ;;
9997   netbsd*)
9998     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9999       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10000       wlarc=
10001       hardcode_libdir_flag_spec_CXX='-R$libdir'
10002       hardcode_direct_CXX=yes
10003       hardcode_shlibpath_var_CXX=no
10004     fi
10005     # Workaround some broken pre-1.5 toolchains
10006     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10007     ;;
10008   osf3*)
10009     case $cc_basename in
10010       KCC)
10011         # Kuck and Associates, Inc. (KAI) C++ Compiler
10012
10013         # KCC will only create a shared library if the output file
10014         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10015         # to its proper name (with version) after linking.
10016         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10017
10018         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10019         hardcode_libdir_separator_CXX=:
10020
10021         # Archives containing C++ object files must be created using
10022         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10023         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10024
10025         ;;
10026       RCC)
10027         # Rational C++ 2.4.1
10028         # FIXME: insert proper C++ library support
10029         ld_shlibs_CXX=no
10030         ;;
10031       cxx)
10032         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10033         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10034
10035         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10036         hardcode_libdir_separator_CXX=:
10037
10038         # Commands to make compiler produce verbose output that lists
10039         # what "hidden" libraries, object files and flags are used when
10040         # linking a shared library.
10041         #
10042         # There doesn't appear to be a way to prevent this compiler from
10043         # explicitly linking system object files so we need to strip them
10044         # from the output so that they don't get included in the library
10045         # dependencies.
10046         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10047         ;;
10048       *)
10049         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10050           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10051           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10052
10053           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10054           hardcode_libdir_separator_CXX=:
10055
10056           # Commands to make compiler produce verbose output that lists
10057           # what "hidden" libraries, object files and flags are used when
10058           # linking a shared library.
10059           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10060
10061         else
10062           # FIXME: insert proper C++ library support
10063           ld_shlibs_CXX=no
10064         fi
10065         ;;
10066     esac
10067     ;;
10068   osf4* | osf5*)
10069     case $cc_basename in
10070       KCC)
10071         # Kuck and Associates, Inc. (KAI) C++ Compiler
10072
10073         # KCC will only create a shared library if the output file
10074         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10075         # to its proper name (with version) after linking.
10076         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10077
10078         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10079         hardcode_libdir_separator_CXX=:
10080
10081         # Archives containing C++ object files must be created using
10082         # the KAI C++ compiler.
10083         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10084         ;;
10085       RCC)
10086         # Rational C++ 2.4.1
10087         # FIXME: insert proper C++ library support
10088         ld_shlibs_CXX=no
10089         ;;
10090       cxx)
10091         allow_undefined_flag_CXX=' -expect_unresolved \*'
10092         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10093         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10094           echo "-hidden">> $lib.exp~
10095           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10096           $rm $lib.exp'
10097
10098         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10099         hardcode_libdir_separator_CXX=:
10100
10101         # Commands to make compiler produce verbose output that lists
10102         # what "hidden" libraries, object files and flags are used when
10103         # linking a shared library.
10104         #
10105         # There doesn't appear to be a way to prevent this compiler from
10106         # explicitly linking system object files so we need to strip them
10107         # from the output so that they don't get included in the library
10108         # dependencies.
10109         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10110         ;;
10111       *)
10112         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10113           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10114          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10115
10116           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10117           hardcode_libdir_separator_CXX=:
10118
10119           # Commands to make compiler produce verbose output that lists
10120           # what "hidden" libraries, object files and flags are used when
10121           # linking a shared library.
10122           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10123
10124         else
10125           # FIXME: insert proper C++ library support
10126           ld_shlibs_CXX=no
10127         fi
10128         ;;
10129     esac
10130     ;;
10131   psos*)
10132     # FIXME: insert proper C++ library support
10133     ld_shlibs_CXX=no
10134     ;;
10135   sco*)
10136     archive_cmds_need_lc_CXX=no
10137     case $cc_basename in
10138       CC)
10139         # FIXME: insert proper C++ library support
10140         ld_shlibs_CXX=no
10141         ;;
10142       *)
10143         # FIXME: insert proper C++ library support
10144         ld_shlibs_CXX=no
10145         ;;
10146     esac
10147     ;;
10148   sunos4*)
10149     case $cc_basename in
10150       CC)
10151         # Sun C++ 4.x
10152         # FIXME: insert proper C++ library support
10153         ld_shlibs_CXX=no
10154         ;;
10155       lcc)
10156         # Lucid
10157         # FIXME: insert proper C++ library support
10158         ld_shlibs_CXX=no
10159         ;;
10160       *)
10161         # FIXME: insert proper C++ library support
10162         ld_shlibs_CXX=no
10163         ;;
10164     esac
10165     ;;
10166   solaris*)
10167     case $cc_basename in
10168       CC)
10169         # Sun C++ 4.2, 5.x and Centerline C++
10170         no_undefined_flag_CXX=' -zdefs'
10171         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10172         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10173         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10174
10175         hardcode_libdir_flag_spec_CXX='-R$libdir'
10176         hardcode_shlibpath_var_CXX=no
10177         case $host_os in
10178           solaris2.0-5 | solaris2.0-5.*) ;;
10179           *)
10180             # The C++ compiler is used as linker so we must use $wl
10181             # flag to pass the commands to the underlying system
10182             # linker.
10183             # Supported since Solaris 2.6 (maybe 2.5.1?)
10184             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10185             ;;
10186         esac
10187         link_all_deplibs_CXX=yes
10188
10189         # Commands to make compiler produce verbose output that lists
10190         # what "hidden" libraries, object files and flags are used when
10191         # linking a shared library.
10192         #
10193         # There doesn't appear to be a way to prevent this compiler from
10194         # explicitly linking system object files so we need to strip them
10195         # from the output so that they don't get included in the library
10196         # dependencies.
10197         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10198
10199         # Archives containing C++ object files must be created using
10200         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10201         # necessary to make sure instantiated templates are included
10202         # in the archive.
10203         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10204         ;;
10205       gcx)
10206         # Green Hills C++ Compiler
10207         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10208
10209         # The C++ compiler must be used to create the archive.
10210         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10211         ;;
10212       *)
10213         # GNU C++ compiler with Solaris linker
10214         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10215           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10216           if $CC --version | grep -v '^2\.7' > /dev/null; then
10217             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10218             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10219                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10220
10221             # Commands to make compiler produce verbose output that lists
10222             # what "hidden" libraries, object files and flags are used when
10223             # linking a shared library.
10224             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10225           else
10226             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10227             # platform.
10228             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10229             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10230                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10231
10232             # Commands to make compiler produce verbose output that lists
10233             # what "hidden" libraries, object files and flags are used when
10234             # linking a shared library.
10235             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10236           fi
10237
10238           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10239         fi
10240         ;;
10241     esac
10242     ;;
10243   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10244     archive_cmds_need_lc_CXX=no
10245     ;;
10246   tandem*)
10247     case $cc_basename in
10248       NCC)
10249         # NonStop-UX NCC 3.20
10250         # FIXME: insert proper C++ library support
10251         ld_shlibs_CXX=no
10252         ;;
10253       *)
10254         # FIXME: insert proper C++ library support
10255         ld_shlibs_CXX=no
10256         ;;
10257     esac
10258     ;;
10259   vxworks*)
10260     # FIXME: insert proper C++ library support
10261     ld_shlibs_CXX=no
10262     ;;
10263   *)
10264     # FIXME: insert proper C++ library support
10265     ld_shlibs_CXX=no
10266     ;;
10267 esac
10268 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10269 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10270 test "$ld_shlibs_CXX" = no && can_build_shared=no
10271
10272 GCC_CXX="$GXX"
10273 LD_CXX="$LD"
10274
10275
10276 cat > conftest.$ac_ext <<EOF
10277 class Foo
10278 {
10279 public:
10280   Foo (void) { a = 0; }
10281 private:
10282   int a;
10283 };
10284 EOF
10285
10286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10287   (eval $ac_compile) 2>&5
10288   ac_status=$?
10289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290   (exit $ac_status); }; then
10291   # Parse the compiler output and extract the necessary
10292   # objects, libraries and library flags.
10293
10294   # Sentinel used to keep track of whether or not we are before
10295   # the conftest object file.
10296   pre_test_object_deps_done=no
10297
10298   # The `*' in the case matches for architectures that use `case' in
10299   # $output_verbose_cmd can trigger glob expansion during the loop
10300   # eval without this substitution.
10301   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10302
10303   for p in `eval $output_verbose_link_cmd`; do
10304     case $p in
10305
10306     -L* | -R* | -l*)
10307        # Some compilers place space between "-{L,R}" and the path.
10308        # Remove the space.
10309        if test $p = "-L" \
10310           || test $p = "-R"; then
10311          prev=$p
10312          continue
10313        else
10314          prev=
10315        fi
10316
10317        if test "$pre_test_object_deps_done" = no; then
10318          case $p in
10319          -L* | -R*)
10320            # Internal compiler library paths should come after those
10321            # provided the user.  The postdeps already come after the
10322            # user supplied libs so there is no need to process them.
10323            if test -z "$compiler_lib_search_path_CXX"; then
10324              compiler_lib_search_path_CXX="${prev}${p}"
10325            else
10326              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10327            fi
10328            ;;
10329          # The "-l" case would never come before the object being
10330          # linked, so don't bother handling this case.
10331          esac
10332        else
10333          if test -z "$postdeps_CXX"; then
10334            postdeps_CXX="${prev}${p}"
10335          else
10336            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10337          fi
10338        fi
10339        ;;
10340
10341     *.$objext)
10342        # This assumes that the test object file only shows up
10343        # once in the compiler output.
10344        if test "$p" = "conftest.$objext"; then
10345          pre_test_object_deps_done=yes
10346          continue
10347        fi
10348
10349        if test "$pre_test_object_deps_done" = no; then
10350          if test -z "$predep_objects_CXX"; then
10351            predep_objects_CXX="$p"
10352          else
10353            predep_objects_CXX="$predep_objects_CXX $p"
10354          fi
10355        else
10356          if test -z "$postdep_objects_CXX"; then
10357            postdep_objects_CXX="$p"
10358          else
10359            postdep_objects_CXX="$postdep_objects_CXX $p"
10360          fi
10361        fi
10362        ;;
10363
10364     *) ;; # Ignore the rest.
10365
10366     esac
10367   done
10368
10369   # Clean up.
10370   rm -f a.out a.exe
10371 else
10372   echo "libtool.m4: error: problem compiling CXX test program"
10373 fi
10374
10375 $rm -f confest.$objext
10376
10377 case " $postdeps_CXX " in
10378 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10379 esac
10380
10381 lt_prog_compiler_wl_CXX=
10382 lt_prog_compiler_pic_CXX=
10383 lt_prog_compiler_static_CXX=
10384
10385 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10386 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10387
10388   # C++ specific cases for pic, static, wl, etc.
10389   if test "$GXX" = yes; then
10390     lt_prog_compiler_wl_CXX='-Wl,'
10391     lt_prog_compiler_static_CXX='-static'
10392
10393     case $host_os in
10394     aix*)
10395       # All AIX code is PIC.
10396       if test "$host_cpu" = ia64; then
10397         # AIX 5 now supports IA64 processor
10398         lt_prog_compiler_static_CXX='-Bstatic'
10399       fi
10400       ;;
10401     amigaos*)
10402       # FIXME: we need at least 68020 code to build shared libraries, but
10403       # adding the `-m68020' flag to GCC prevents building anything better,
10404       # like `-m68040'.
10405       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10406       ;;
10407     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10408       # PIC is the default for these OSes.
10409       ;;
10410     mingw* | os2* | pw32*)
10411       # This hack is so that the source file can tell whether it is being
10412       # built for inclusion in a dll (and should export symbols for example).
10413       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10414       ;;
10415     darwin* | rhapsody*)
10416       # PIC is the default on this platform
10417       # Common symbols not allowed in MH_DYLIB files
10418       lt_prog_compiler_pic_CXX='-fno-common'
10419       ;;
10420     *djgpp*)
10421       # DJGPP does not support shared libraries at all
10422       lt_prog_compiler_pic_CXX=
10423       ;;
10424     sysv4*MP*)
10425       if test -d /usr/nec; then
10426         lt_prog_compiler_pic_CXX=-Kconform_pic
10427       fi
10428       ;;
10429     hpux*)
10430       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10431       # not for PA HP-UX.
10432       case "$host_cpu" in
10433       hppa*64*|ia64*)
10434         ;;
10435       *)
10436         lt_prog_compiler_pic_CXX='-fPIC'
10437         ;;
10438       esac
10439       ;;
10440     *)
10441       lt_prog_compiler_pic_CXX='-fPIC'
10442       ;;
10443     esac
10444   else
10445     case $host_os in
10446       aix4* | aix5*)
10447         # All AIX code is PIC.
10448         if test "$host_cpu" = ia64; then
10449           # AIX 5 now supports IA64 processor
10450           lt_prog_compiler_static_CXX='-Bstatic'
10451         else
10452           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10453         fi
10454         ;;
10455       chorus*)
10456         case $cc_basename in
10457         cxch68)
10458           # Green Hills C++ Compiler
10459           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10460           ;;
10461         esac
10462         ;;
10463       dgux*)
10464         case $cc_basename in
10465           ec++)
10466             lt_prog_compiler_pic_CXX='-KPIC'
10467             ;;
10468           ghcx)
10469             # Green Hills C++ Compiler
10470             lt_prog_compiler_pic_CXX='-pic'
10471             ;;
10472           *)
10473             ;;
10474         esac
10475         ;;
10476       freebsd* | kfreebsd*-gnu)
10477         # FreeBSD uses GNU C++
10478         ;;
10479       hpux9* | hpux10* | hpux11*)
10480         case $cc_basename in
10481           CC)
10482             lt_prog_compiler_wl_CXX='-Wl,'
10483             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10484             if test "$host_cpu" != ia64; then
10485               lt_prog_compiler_pic_CXX='+Z'
10486             fi
10487             ;;
10488           aCC)
10489             lt_prog_compiler_wl_CXX='-Wl,'
10490             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10491             case "$host_cpu" in
10492             hppa*64*|ia64*)
10493               # +Z the default
10494               ;;
10495             *)
10496               lt_prog_compiler_pic_CXX='+Z'
10497               ;;
10498             esac
10499             ;;
10500           *)
10501             ;;
10502         esac
10503         ;;
10504       irix5* | irix6* | nonstopux*)
10505         case $cc_basename in
10506           CC)
10507             lt_prog_compiler_wl_CXX='-Wl,'
10508             lt_prog_compiler_static_CXX='-non_shared'
10509             # CC pic flag -KPIC is the default.
10510             ;;
10511           *)
10512             ;;
10513         esac
10514         ;;
10515       linux*)
10516         case $cc_basename in
10517           KCC)
10518             # KAI C++ Compiler
10519             lt_prog_compiler_wl_CXX='--backend -Wl,'
10520             lt_prog_compiler_pic_CXX='-fPIC'
10521             ;;
10522           icpc)
10523             # Intel C++
10524             lt_prog_compiler_wl_CXX='-Wl,'
10525             lt_prog_compiler_pic_CXX='-KPIC'
10526             lt_prog_compiler_static_CXX='-static'
10527             ;;
10528           cxx)
10529             # Compaq C++
10530             # Make sure the PIC flag is empty.  It appears that all Alpha
10531             # Linux and Compaq Tru64 Unix objects are PIC.
10532             lt_prog_compiler_pic_CXX=
10533             lt_prog_compiler_static_CXX='-non_shared'
10534             ;;
10535           *)
10536             ;;
10537         esac
10538         ;;
10539       lynxos*)
10540         ;;
10541       m88k*)
10542         ;;
10543       mvs*)
10544         case $cc_basename in
10545           cxx)
10546             lt_prog_compiler_pic_CXX='-W c,exportall'
10547             ;;
10548           *)
10549             ;;
10550         esac
10551         ;;
10552       netbsd*)
10553         ;;
10554       osf3* | osf4* | osf5*)
10555         case $cc_basename in
10556           KCC)
10557             lt_prog_compiler_wl_CXX='--backend -Wl,'
10558             ;;
10559           RCC)
10560             # Rational C++ 2.4.1
10561             lt_prog_compiler_pic_CXX='-pic'
10562             ;;
10563           cxx)
10564             # Digital/Compaq C++
10565             lt_prog_compiler_wl_CXX='-Wl,'
10566             # Make sure the PIC flag is empty.  It appears that all Alpha
10567             # Linux and Compaq Tru64 Unix objects are PIC.
10568             lt_prog_compiler_pic_CXX=
10569             lt_prog_compiler_static_CXX='-non_shared'
10570             ;;
10571           *)
10572             ;;
10573         esac
10574         ;;
10575       psos*)
10576         ;;
10577       sco*)
10578         case $cc_basename in
10579           CC)
10580             lt_prog_compiler_pic_CXX='-fPIC'
10581             ;;
10582           *)
10583             ;;
10584         esac
10585         ;;
10586       solaris*)
10587         case $cc_basename in
10588           CC)
10589             # Sun C++ 4.2, 5.x and Centerline C++
10590             lt_prog_compiler_pic_CXX='-KPIC'
10591             lt_prog_compiler_static_CXX='-Bstatic'
10592             lt_prog_compiler_wl_CXX='-Qoption ld '
10593             ;;
10594           gcx)
10595             # Green Hills C++ Compiler
10596             lt_prog_compiler_pic_CXX='-PIC'
10597             ;;
10598           *)
10599             ;;
10600         esac
10601         ;;
10602       sunos4*)
10603         case $cc_basename in
10604           CC)
10605             # Sun C++ 4.x
10606             lt_prog_compiler_pic_CXX='-pic'
10607             lt_prog_compiler_static_CXX='-Bstatic'
10608             ;;
10609           lcc)
10610             # Lucid
10611             lt_prog_compiler_pic_CXX='-pic'
10612             ;;
10613           *)
10614             ;;
10615         esac
10616         ;;
10617       tandem*)
10618         case $cc_basename in
10619           NCC)
10620             # NonStop-UX NCC 3.20
10621             lt_prog_compiler_pic_CXX='-KPIC'
10622             ;;
10623           *)
10624             ;;
10625         esac
10626         ;;
10627       unixware*)
10628         ;;
10629       vxworks*)
10630         ;;
10631       *)
10632         lt_prog_compiler_can_build_shared_CXX=no
10633         ;;
10634     esac
10635   fi
10636
10637 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10638 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10639
10640 #
10641 # Check to make sure the PIC flag actually works.
10642 #
10643 if test -n "$lt_prog_compiler_pic_CXX"; then
10644
10645 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10646 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10647 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10648   echo $ECHO_N "(cached) $ECHO_C" >&6
10649 else
10650   lt_prog_compiler_pic_works_CXX=no
10651   ac_outfile=conftest.$ac_objext
10652    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10653    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10654    # Insert the option either (1) after the last *FLAGS variable, or
10655    # (2) before a word containing "conftest.", or (3) at the end.
10656    # Note that $ac_compile itself does not contain backslashes and begins
10657    # with a dollar sign (not a hyphen), so the echo should work correctly.
10658    # The option is referenced via a variable to avoid confusing sed.
10659    lt_compile=`echo "$ac_compile" | $SED \
10660    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10661    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10662    -e 's:$: $lt_compiler_flag:'`
10663    (eval echo "\"\$as_me:10663: $lt_compile\"" >&5)
10664    (eval "$lt_compile" 2>conftest.err)
10665    ac_status=$?
10666    cat conftest.err >&5
10667    echo "$as_me:10667: \$? = $ac_status" >&5
10668    if (exit $ac_status) && test -s "$ac_outfile"; then
10669      # The compiler can only warn and ignore the option if not recognized
10670      # So say no if there are warnings
10671      if test ! -s conftest.err; then
10672        lt_prog_compiler_pic_works_CXX=yes
10673      fi
10674    fi
10675    $rm conftest*
10676
10677 fi
10678 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10679 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10680
10681 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10682     case $lt_prog_compiler_pic_CXX in
10683      "" | " "*) ;;
10684      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10685      esac
10686 else
10687     lt_prog_compiler_pic_CXX=
10688      lt_prog_compiler_can_build_shared_CXX=no
10689 fi
10690
10691 fi
10692 case "$host_os" in
10693   # For platforms which do not support PIC, -DPIC is meaningless:
10694   *djgpp*)
10695     lt_prog_compiler_pic_CXX=
10696     ;;
10697   *)
10698     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10699     ;;
10700 esac
10701
10702 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10703 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10704 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10705   echo $ECHO_N "(cached) $ECHO_C" >&6
10706 else
10707   lt_cv_prog_compiler_c_o_CXX=no
10708    $rm -r conftest 2>/dev/null
10709    mkdir conftest
10710    cd conftest
10711    mkdir out
10712    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10713
10714    lt_compiler_flag="-o out/conftest2.$ac_objext"
10715    # Insert the option either (1) after the last *FLAGS variable, or
10716    # (2) before a word containing "conftest.", or (3) at the end.
10717    # Note that $ac_compile itself does not contain backslashes and begins
10718    # with a dollar sign (not a hyphen), so the echo should work correctly.
10719    lt_compile=`echo "$ac_compile" | $SED \
10720    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10721    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10722    -e 's:$: $lt_compiler_flag:'`
10723    (eval echo "\"\$as_me:10723: $lt_compile\"" >&5)
10724    (eval "$lt_compile" 2>out/conftest.err)
10725    ac_status=$?
10726    cat out/conftest.err >&5
10727    echo "$as_me:10727: \$? = $ac_status" >&5
10728    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10729    then
10730      # The compiler can only warn and ignore the option if not recognized
10731      # So say no if there are warnings
10732      if test ! -s out/conftest.err; then
10733        lt_cv_prog_compiler_c_o_CXX=yes
10734      fi
10735    fi
10736    chmod u+w .
10737    $rm conftest*
10738    # SGI C++ compiler will create directory out/ii_files/ for
10739    # template instantiation
10740    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10741    $rm out/* && rmdir out
10742    cd ..
10743    rmdir conftest
10744    $rm conftest*
10745
10746 fi
10747 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10748 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10749
10750
10751 hard_links="nottested"
10752 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10753   # do not overwrite the value of need_locks provided by the user
10754   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10755 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10756   hard_links=yes
10757   $rm conftest*
10758   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10759   touch conftest.a
10760   ln conftest.a conftest.b 2>&5 || hard_links=no
10761   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10762   echo "$as_me:$LINENO: result: $hard_links" >&5
10763 echo "${ECHO_T}$hard_links" >&6
10764   if test "$hard_links" = no; then
10765     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10766 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10767     need_locks=warn
10768   fi
10769 else
10770   need_locks=no
10771 fi
10772
10773 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10774 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10775
10776   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10777   case $host_os in
10778   aix4* | aix5*)
10779     # If we're using GNU nm, then we don't want the "-C" option.
10780     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10781     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10782       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10783     else
10784       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10785     fi
10786     ;;
10787   pw32*)
10788     export_symbols_cmds_CXX="$ltdll_cmds"
10789   ;;
10790   cygwin* | mingw*)
10791     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10792   ;;
10793   *)
10794     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10795   ;;
10796   esac
10797
10798 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10799 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10800 test "$ld_shlibs_CXX" = no && can_build_shared=no
10801
10802 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10803 if test "$GCC" = yes; then
10804   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10805 fi
10806
10807 #
10808 # Do we need to explicitly link libc?
10809 #
10810 case "x$archive_cmds_need_lc_CXX" in
10811 x|xyes)
10812   # Assume -lc should be added
10813   archive_cmds_need_lc_CXX=yes
10814
10815   if test "$enable_shared" = yes && test "$GCC" = yes; then
10816     case $archive_cmds_CXX in
10817     *'~'*)
10818       # FIXME: we may have to deal with multi-command sequences.
10819       ;;
10820     '$CC '*)
10821       # Test whether the compiler implicitly links with -lc since on some
10822       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10823       # to ld, don't add -lc before -lgcc.
10824       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10825 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10826       $rm conftest*
10827       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10828
10829       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10830   (eval $ac_compile) 2>&5
10831   ac_status=$?
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); } 2>conftest.err; then
10834         soname=conftest
10835         lib=conftest
10836         libobjs=conftest.$ac_objext
10837         deplibs=
10838         wl=$lt_prog_compiler_wl_CXX
10839         compiler_flags=-v
10840         linker_flags=-v
10841         verstring=
10842         output_objdir=.
10843         libname=conftest
10844         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10845         allow_undefined_flag_CXX=
10846         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10847   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10848   ac_status=$?
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); }
10851         then
10852           archive_cmds_need_lc_CXX=no
10853         else
10854           archive_cmds_need_lc_CXX=yes
10855         fi
10856         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10857       else
10858         cat conftest.err 1>&5
10859       fi
10860       $rm conftest*
10861       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10862 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10863       ;;
10864     esac
10865   fi
10866   ;;
10867 esac
10868
10869 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10870 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10871 library_names_spec=
10872 libname_spec='lib$name'
10873 soname_spec=
10874 shrext=".so"
10875 postinstall_cmds=
10876 postuninstall_cmds=
10877 finish_cmds=
10878 finish_eval=
10879 shlibpath_var=
10880 shlibpath_overrides_runpath=unknown
10881 version_type=none
10882 dynamic_linker="$host_os ld.so"
10883 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10884 if test "$GCC" = yes; then
10885   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10886   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10887     # if the path contains ";" then we assume it to be the separator
10888     # otherwise default to the standard path separator (i.e. ":") - it is
10889     # assumed that no part of a normal pathname contains ";" but that should
10890     # okay in the real world where ";" in dirpaths is itself problematic.
10891     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10892   else
10893     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10894   fi
10895 else
10896   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10897 fi
10898 need_lib_prefix=unknown
10899 hardcode_into_libs=no
10900
10901 # when you set need_version to no, make sure it does not cause -set_version
10902 # flags to be left without arguments
10903 need_version=unknown
10904
10905 case $host_os in
10906 aix3*)
10907   version_type=linux
10908   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10909   shlibpath_var=LIBPATH
10910
10911   # AIX 3 has no versioning support, so we append a major version to the name.
10912   soname_spec='${libname}${release}${shared_ext}$major'
10913   ;;
10914
10915 aix4* | aix5*)
10916   version_type=linux
10917   need_lib_prefix=no
10918   need_version=no
10919   hardcode_into_libs=yes
10920   if test "$host_cpu" = ia64; then
10921     # AIX 5 supports IA64
10922     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10923     shlibpath_var=LD_LIBRARY_PATH
10924   else
10925     # With GCC up to 2.95.x, collect2 would create an import file
10926     # for dependence libraries.  The import file would start with
10927     # the line `#! .'.  This would cause the generated library to
10928     # depend on `.', always an invalid library.  This was fixed in
10929     # development snapshots of GCC prior to 3.0.
10930     case $host_os in
10931       aix4 | aix4.[01] | aix4.[01].*)
10932       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10933            echo ' yes '
10934            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10935         :
10936       else
10937         can_build_shared=no
10938       fi
10939       ;;
10940     esac
10941     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10942     # soname into executable. Probably we can add versioning support to
10943     # collect2, so additional links can be useful in future.
10944     if test "$aix_use_runtimelinking" = yes; then
10945       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10946       # instead of lib<name>.a to let people know that these are not
10947       # typical AIX shared libraries.
10948       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949     else
10950       # We preserve .a as extension for shared libraries through AIX4.2
10951       # and later when we are not doing run time linking.
10952       library_names_spec='${libname}${release}.a $libname.a'
10953       soname_spec='${libname}${release}${shared_ext}$major'
10954     fi
10955     shlibpath_var=LIBPATH
10956   fi
10957   ;;
10958
10959 amigaos*)
10960   library_names_spec='$libname.ixlibrary $libname.a'
10961   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10962   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'
10963   ;;
10964
10965 beos*)
10966   library_names_spec='${libname}${shared_ext}'
10967   dynamic_linker="$host_os ld.so"
10968   shlibpath_var=LIBRARY_PATH
10969   ;;
10970
10971 bsdi4*)
10972   version_type=linux
10973   need_version=no
10974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975   soname_spec='${libname}${release}${shared_ext}$major'
10976   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10977   shlibpath_var=LD_LIBRARY_PATH
10978   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10979   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10980   # the default ld.so.conf also contains /usr/contrib/lib and
10981   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10982   # libtool to hard-code these into programs
10983   ;;
10984
10985 cygwin* | mingw* | pw32*)
10986   version_type=windows
10987   shrext=".dll"
10988   need_version=no
10989   need_lib_prefix=no
10990
10991   case $GCC,$host_os in
10992   yes,cygwin* | yes,mingw* | yes,pw32*)
10993     library_names_spec='$libname.dll.a'
10994     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10995     postinstall_cmds='base_file=`basename \${file}`~
10996       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10997       dldir=$destdir/`dirname \$dlpath`~
10998       test -d \$dldir || mkdir -p \$dldir~
10999       $install_prog $dir/$dlname \$dldir/$dlname'
11000     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11001       dlpath=$dir/\$dldll~
11002        $rm \$dlpath'
11003     shlibpath_overrides_runpath=yes
11004
11005     case $host_os in
11006     cygwin*)
11007       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11008       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11009       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11010       ;;
11011     mingw*)
11012       # MinGW DLLs use traditional 'lib' prefix
11013       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11014       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11015       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11016         # It is most probably a Windows format PATH printed by
11017         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11018         # path with ; separators, and with drive letters. We can handle the
11019         # drive letters (cygwin fileutils understands them), so leave them,
11020         # especially as we might pass files found there to a mingw objdump,
11021         # which wouldn't understand a cygwinified path. Ahh.
11022         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11023       else
11024         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11025       fi
11026       ;;
11027     pw32*)
11028       # pw32 DLLs use 'pw' prefix rather than 'lib'
11029       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11030       ;;
11031     esac
11032     ;;
11033
11034   linux*)
11035     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11036       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11037       supports_anon_versioning=no
11038       case `$LD -v 2>/dev/null` in
11039         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11040         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11041         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11042         *\ 2.11.*) ;; # other 2.11 versions
11043         *) supports_anon_versioning=yes ;;
11044       esac
11045       if test $supports_anon_versioning = yes; then
11046         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11047 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11048 $echo "local: *; };" >> $output_objdir/$libname.ver~
11049         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11050       else
11051         $archive_expsym_cmds="$archive_cmds"
11052       fi
11053     else
11054       ld_shlibs=no
11055     fi
11056     ;;
11057
11058   *)
11059     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11060     ;;
11061   esac
11062   dynamic_linker='Win32 ld.exe'
11063   # FIXME: first we should search . and the directory the executable is in
11064   shlibpath_var=PATH
11065   ;;
11066
11067 darwin* | rhapsody*)
11068   dynamic_linker="$host_os dyld"
11069   version_type=darwin
11070   need_lib_prefix=no
11071   need_version=no
11072   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11073   soname_spec='${libname}${release}${major}$shared_ext'
11074   shlibpath_overrides_runpath=yes
11075   shlibpath_var=DYLD_LIBRARY_PATH
11076   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11077   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11078   if test "$GCC" = yes; then
11079     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11080   else
11081     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11082   fi
11083   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11084   ;;
11085
11086 dgux*)
11087   version_type=linux
11088   need_lib_prefix=no
11089   need_version=no
11090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11091   soname_spec='${libname}${release}${shared_ext}$major'
11092   shlibpath_var=LD_LIBRARY_PATH
11093   ;;
11094
11095 freebsd1*)
11096   dynamic_linker=no
11097   ;;
11098
11099 kfreebsd*-gnu)
11100   version_type=linux
11101   need_lib_prefix=no
11102   need_version=no
11103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11104   soname_spec='${libname}${release}${shared_ext}$major'
11105   shlibpath_var=LD_LIBRARY_PATH
11106   shlibpath_overrides_runpath=no
11107   hardcode_into_libs=yes
11108   dynamic_linker='GNU ld.so'
11109   ;;
11110
11111 freebsd*)
11112   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11113   version_type=freebsd-$objformat
11114   case $version_type in
11115     freebsd-elf*)
11116       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11117       need_version=no
11118       need_lib_prefix=no
11119       ;;
11120     freebsd-*)
11121       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11122       need_version=yes
11123       ;;
11124   esac
11125   shlibpath_var=LD_LIBRARY_PATH
11126   case $host_os in
11127   freebsd2*)
11128     shlibpath_overrides_runpath=yes
11129     ;;
11130   freebsd3.01* | freebsdelf3.01*)
11131     shlibpath_overrides_runpath=yes
11132     hardcode_into_libs=yes
11133     ;;
11134   *) # from 3.2 on
11135     shlibpath_overrides_runpath=no
11136     hardcode_into_libs=yes
11137     ;;
11138   esac
11139   ;;
11140
11141 gnu*)
11142   version_type=linux
11143   need_lib_prefix=no
11144   need_version=no
11145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11146   soname_spec='${libname}${release}${shared_ext}$major'
11147   shlibpath_var=LD_LIBRARY_PATH
11148   hardcode_into_libs=yes
11149   ;;
11150
11151 hpux9* | hpux10* | hpux11*)
11152   # Give a soname corresponding to the major version so that dld.sl refuses to
11153   # link against other versions.
11154   version_type=sunos
11155   need_lib_prefix=no
11156   need_version=no
11157   case "$host_cpu" in
11158   ia64*)
11159     shrext='.so'
11160     hardcode_into_libs=yes
11161     dynamic_linker="$host_os dld.so"
11162     shlibpath_var=LD_LIBRARY_PATH
11163     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11164     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165     soname_spec='${libname}${release}${shared_ext}$major'
11166     if test "X$HPUX_IA64_MODE" = X32; then
11167       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11168     else
11169       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11170     fi
11171     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11172     ;;
11173    hppa*64*)
11174      shrext='.sl'
11175      hardcode_into_libs=yes
11176      dynamic_linker="$host_os dld.sl"
11177      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11178      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11179      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180      soname_spec='${libname}${release}${shared_ext}$major'
11181      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11182      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11183      ;;
11184    *)
11185     shrext='.sl'
11186     dynamic_linker="$host_os dld.sl"
11187     shlibpath_var=SHLIB_PATH
11188     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190     soname_spec='${libname}${release}${shared_ext}$major'
11191     ;;
11192   esac
11193   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11194   postinstall_cmds='chmod 555 $lib'
11195   ;;
11196
11197 irix5* | irix6* | nonstopux*)
11198   case $host_os in
11199     nonstopux*) version_type=nonstopux ;;
11200     *)
11201         if test "$lt_cv_prog_gnu_ld" = yes; then
11202                 version_type=linux
11203         else
11204                 version_type=irix
11205         fi ;;
11206   esac
11207   need_lib_prefix=no
11208   need_version=no
11209   soname_spec='${libname}${release}${shared_ext}$major'
11210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11211   case $host_os in
11212   irix5* | nonstopux*)
11213     libsuff= shlibsuff=
11214     ;;
11215   *)
11216     case $LD in # libtool.m4 will add one of these switches to LD
11217     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11218       libsuff= shlibsuff= libmagic=32-bit;;
11219     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11220       libsuff=32 shlibsuff=N32 libmagic=N32;;
11221     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11222       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11223     *) libsuff= shlibsuff= libmagic=never-match;;
11224     esac
11225     ;;
11226   esac
11227   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11228   shlibpath_overrides_runpath=no
11229   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11230   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11231   hardcode_into_libs=yes
11232   ;;
11233
11234 # No shared lib support for Linux oldld, aout, or coff.
11235 linux*oldld* | linux*aout* | linux*coff*)
11236   dynamic_linker=no
11237   ;;
11238
11239 # This must be Linux ELF.
11240 linux*)
11241   version_type=linux
11242   need_lib_prefix=no
11243   need_version=no
11244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245   soname_spec='${libname}${release}${shared_ext}$major'
11246   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11247   shlibpath_var=LD_LIBRARY_PATH
11248   shlibpath_overrides_runpath=no
11249   # This implies no fast_install, which is unacceptable.
11250   # Some rework will be needed to allow for fast_install
11251   # before this can be enabled.
11252   hardcode_into_libs=yes
11253
11254   # Append ld.so.conf contents to the search path
11255   if test -f /etc/ld.so.conf; then
11256     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11257     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11258   fi
11259
11260   case $host_cpu:$lt_cv_cc_64bit_output in
11261   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
11262     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
11263     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
11264     ;;
11265   esac
11266
11267   # We used to test for /lib/ld.so.1 and disable shared libraries on
11268   # powerpc, because MkLinux only supported shared libraries with the
11269   # GNU dynamic linker.  Since this was broken with cross compilers,
11270   # most powerpc-linux boxes support dynamic linking these days and
11271   # people can always --disable-shared, the test was removed, and we
11272   # assume the GNU/Linux dynamic linker is in use.
11273   dynamic_linker='GNU/Linux ld.so'
11274
11275   # Find out which ABI we are using (multilib Linux x86_64 hack).
11276   libsuff=
11277   case "$host_cpu" in
11278   x86_64*)
11279     echo '#line 11279 "configure"' > conftest.$ac_ext
11280     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11281   (eval $ac_compile) 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); }; then
11285       case `/usr/bin/file conftest.$ac_objext` in
11286       *64-bit*)
11287         libsuff=64
11288         ;;
11289       esac
11290     fi
11291     rm -rf conftest*
11292     ;;
11293   *)
11294     ;;
11295   esac
11296   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11297   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11298   ;;
11299
11300 knetbsd*-gnu)
11301   version_type=linux
11302   need_lib_prefix=no
11303   need_version=no
11304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11305   soname_spec='${libname}${release}${shared_ext}$major'
11306   shlibpath_var=LD_LIBRARY_PATH
11307   shlibpath_overrides_runpath=no
11308   hardcode_into_libs=yes
11309   dynamic_linker='GNU ld.so'
11310   ;;
11311
11312 netbsd*)
11313   version_type=sunos
11314   need_lib_prefix=no
11315   need_version=no
11316   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11317     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11318     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11319     dynamic_linker='NetBSD (a.out) ld.so'
11320   else
11321     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11322     soname_spec='${libname}${release}${shared_ext}$major'
11323     dynamic_linker='NetBSD ld.elf_so'
11324   fi
11325   shlibpath_var=LD_LIBRARY_PATH
11326   shlibpath_overrides_runpath=yes
11327   hardcode_into_libs=yes
11328   ;;
11329
11330 newsos6)
11331   version_type=linux
11332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333   shlibpath_var=LD_LIBRARY_PATH
11334   shlibpath_overrides_runpath=yes
11335   ;;
11336
11337 nto-qnx*)
11338   version_type=linux
11339   need_lib_prefix=no
11340   need_version=no
11341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342   soname_spec='${libname}${release}${shared_ext}$major'
11343   shlibpath_var=LD_LIBRARY_PATH
11344   shlibpath_overrides_runpath=yes
11345   ;;
11346
11347 openbsd*)
11348   version_type=sunos
11349   need_lib_prefix=no
11350   need_version=yes
11351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11352   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11353   shlibpath_var=LD_LIBRARY_PATH
11354   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11355     case $host_os in
11356       openbsd2.[89] | openbsd2.[89].*)
11357         shlibpath_overrides_runpath=no
11358         ;;
11359       *)
11360         shlibpath_overrides_runpath=yes
11361         ;;
11362       esac
11363   else
11364     shlibpath_overrides_runpath=yes
11365   fi
11366   ;;
11367
11368 os2*)
11369   libname_spec='$name'
11370   shrext=".dll"
11371   need_lib_prefix=no
11372   library_names_spec='$libname${shared_ext} $libname.a'
11373   dynamic_linker='OS/2 ld.exe'
11374   shlibpath_var=LIBPATH
11375   ;;
11376
11377 osf3* | osf4* | osf5*)
11378   version_type=osf
11379   need_lib_prefix=no
11380   need_version=no
11381   soname_spec='${libname}${release}${shared_ext}$major'
11382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383   shlibpath_var=LD_LIBRARY_PATH
11384   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11385   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11386   ;;
11387
11388 sco3.2v5*)
11389   version_type=osf
11390   soname_spec='${libname}${release}${shared_ext}$major'
11391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392   shlibpath_var=LD_LIBRARY_PATH
11393   ;;
11394
11395 solaris*)
11396   version_type=linux
11397   need_lib_prefix=no
11398   need_version=no
11399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11400   soname_spec='${libname}${release}${shared_ext}$major'
11401   shlibpath_var=LD_LIBRARY_PATH
11402   shlibpath_overrides_runpath=yes
11403   hardcode_into_libs=yes
11404   # ldd complains unless libraries are executable
11405   postinstall_cmds='chmod +x $lib'
11406   ;;
11407
11408 sunos4*)
11409   version_type=sunos
11410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11411   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11412   shlibpath_var=LD_LIBRARY_PATH
11413   shlibpath_overrides_runpath=yes
11414   if test "$with_gnu_ld" = yes; then
11415     need_lib_prefix=no
11416   fi
11417   need_version=yes
11418   ;;
11419
11420 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11421   version_type=linux
11422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11423   soname_spec='${libname}${release}${shared_ext}$major'
11424   shlibpath_var=LD_LIBRARY_PATH
11425   case $host_vendor in
11426     sni)
11427       shlibpath_overrides_runpath=no
11428       need_lib_prefix=no
11429       export_dynamic_flag_spec='${wl}-Blargedynsym'
11430       runpath_var=LD_RUN_PATH
11431       ;;
11432     siemens)
11433       need_lib_prefix=no
11434       ;;
11435     motorola)
11436       need_lib_prefix=no
11437       need_version=no
11438       shlibpath_overrides_runpath=no
11439       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11440       ;;
11441   esac
11442   ;;
11443
11444 sysv4*MP*)
11445   if test -d /usr/nec ;then
11446     version_type=linux
11447     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11448     soname_spec='$libname${shared_ext}.$major'
11449     shlibpath_var=LD_LIBRARY_PATH
11450   fi
11451   ;;
11452
11453 uts4*)
11454   version_type=linux
11455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11456   soname_spec='${libname}${release}${shared_ext}$major'
11457   shlibpath_var=LD_LIBRARY_PATH
11458   ;;
11459
11460 *)
11461   dynamic_linker=no
11462   ;;
11463 esac
11464 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11465 echo "${ECHO_T}$dynamic_linker" >&6
11466 test "$dynamic_linker" = no && can_build_shared=no
11467
11468 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11469 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11470 hardcode_action_CXX=
11471 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11472    test -n "$runpath_var CXX" || \
11473    test "X$hardcode_automatic_CXX"="Xyes" ; then
11474
11475   # We can hardcode non-existant directories.
11476   if test "$hardcode_direct_CXX" != no &&
11477      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11478      # have to relink, otherwise we might link with an installed library
11479      # when we should be linking with a yet-to-be-installed one
11480      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11481      test "$hardcode_minus_L_CXX" != no; then
11482     # Linking always hardcodes the temporary library directory.
11483     hardcode_action_CXX=relink
11484   else
11485     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11486     hardcode_action_CXX=immediate
11487   fi
11488 else
11489   # We cannot hardcode anything, or else we can only hardcode existing
11490   # directories.
11491   hardcode_action_CXX=unsupported
11492 fi
11493 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11494 echo "${ECHO_T}$hardcode_action_CXX" >&6
11495
11496 if test "$hardcode_action_CXX" = relink; then
11497   # Fast installation is not supported
11498   enable_fast_install=no
11499 elif test "$shlibpath_overrides_runpath" = yes ||
11500      test "$enable_shared" = no; then
11501   # Fast installation is not necessary
11502   enable_fast_install=needless
11503 fi
11504
11505 striplib=
11506 old_striplib=
11507 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11508 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11509 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11510   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11511   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11512   echo "$as_me:$LINENO: result: yes" >&5
11513 echo "${ECHO_T}yes" >&6
11514 else
11515 # FIXME - insert some real tests, host_os isn't really good enough
11516   case $host_os in
11517    darwin*)
11518        if test -n "$STRIP" ; then
11519          striplib="$STRIP -x"
11520          echo "$as_me:$LINENO: result: yes" >&5
11521 echo "${ECHO_T}yes" >&6
11522        else
11523   echo "$as_me:$LINENO: result: no" >&5
11524 echo "${ECHO_T}no" >&6
11525 fi
11526        ;;
11527    *)
11528   echo "$as_me:$LINENO: result: no" >&5
11529 echo "${ECHO_T}no" >&6
11530     ;;
11531   esac
11532 fi
11533
11534 if test "x$enable_dlopen" != xyes; then
11535   enable_dlopen=unknown
11536   enable_dlopen_self=unknown
11537   enable_dlopen_self_static=unknown
11538 else
11539   lt_cv_dlopen=no
11540   lt_cv_dlopen_libs=
11541
11542   case $host_os in
11543   beos*)
11544     lt_cv_dlopen="load_add_on"
11545     lt_cv_dlopen_libs=
11546     lt_cv_dlopen_self=yes
11547     ;;
11548
11549   mingw* | pw32*)
11550     lt_cv_dlopen="LoadLibrary"
11551     lt_cv_dlopen_libs=
11552    ;;
11553
11554   cygwin*)
11555     lt_cv_dlopen="dlopen"
11556     lt_cv_dlopen_libs=
11557    ;;
11558
11559   darwin*)
11560   # if libdl is installed we need to link against it
11561     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11562 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11563 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11564   echo $ECHO_N "(cached) $ECHO_C" >&6
11565 else
11566   ac_check_lib_save_LIBS=$LIBS
11567 LIBS="-ldl  $LIBS"
11568 cat >conftest.$ac_ext <<_ACEOF
11569 /* confdefs.h.  */
11570 _ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h.  */
11574
11575 /* Override any gcc2 internal prototype to avoid an error.  */
11576 #ifdef __cplusplus
11577 extern "C"
11578 #endif
11579 /* We use char because int might match the return type of a gcc2
11580    builtin and then its argument prototype would still apply.  */
11581 char dlopen ();
11582 int
11583 main ()
11584 {
11585 dlopen ();
11586   ;
11587   return 0;
11588 }
11589 _ACEOF
11590 rm -f conftest.$ac_objext conftest$ac_exeext
11591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11592   (eval $ac_link) 2>conftest.er1
11593   ac_status=$?
11594   grep -v '^ *+' conftest.er1 >conftest.err
11595   rm -f conftest.er1
11596   cat conftest.err >&5
11597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598   (exit $ac_status); } &&
11599          { ac_try='test -z "$ac_cxx_werror_flag"
11600                          || test ! -s conftest.err'
11601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602   (eval $ac_try) 2>&5
11603   ac_status=$?
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); }; } &&
11606          { ac_try='test -s conftest$ac_exeext'
11607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608   (eval $ac_try) 2>&5
11609   ac_status=$?
11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); }; }; then
11612   ac_cv_lib_dl_dlopen=yes
11613 else
11614   echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11616
11617 ac_cv_lib_dl_dlopen=no
11618 fi
11619 rm -f conftest.err conftest.$ac_objext \
11620       conftest$ac_exeext conftest.$ac_ext
11621 LIBS=$ac_check_lib_save_LIBS
11622 fi
11623 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11624 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11625 if test $ac_cv_lib_dl_dlopen = yes; then
11626   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11627 else
11628
11629     lt_cv_dlopen="dyld"
11630     lt_cv_dlopen_libs=
11631     lt_cv_dlopen_self=yes
11632
11633 fi
11634
11635    ;;
11636
11637   *)
11638     echo "$as_me:$LINENO: checking for shl_load" >&5
11639 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11640 if test "${ac_cv_func_shl_load+set}" = set; then
11641   echo $ECHO_N "(cached) $ECHO_C" >&6
11642 else
11643   cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h.  */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h.  */
11649 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11651 #define shl_load innocuous_shl_load
11652
11653 /* System header to define __stub macros and hopefully few prototypes,
11654     which can conflict with char shl_load (); below.
11655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11656     <limits.h> exists even on freestanding compilers.  */
11657
11658 #ifdef __STDC__
11659 # include <limits.h>
11660 #else
11661 # include <assert.h>
11662 #endif
11663
11664 #undef shl_load
11665
11666 /* Override any gcc2 internal prototype to avoid an error.  */
11667 #ifdef __cplusplus
11668 extern "C"
11669 {
11670 #endif
11671 /* We use char because int might match the return type of a gcc2
11672    builtin and then its argument prototype would still apply.  */
11673 char shl_load ();
11674 /* The GNU C library defines this for functions which it implements
11675     to always fail with ENOSYS.  Some functions are actually named
11676     something starting with __ and the normal name is an alias.  */
11677 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11678 choke me
11679 #else
11680 char (*f) () = shl_load;
11681 #endif
11682 #ifdef __cplusplus
11683 }
11684 #endif
11685
11686 int
11687 main ()
11688 {
11689 return f != shl_load;
11690   ;
11691   return 0;
11692 }
11693 _ACEOF
11694 rm -f conftest.$ac_objext conftest$ac_exeext
11695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11696   (eval $ac_link) 2>conftest.er1
11697   ac_status=$?
11698   grep -v '^ *+' conftest.er1 >conftest.err
11699   rm -f conftest.er1
11700   cat conftest.err >&5
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); } &&
11703          { ac_try='test -z "$ac_cxx_werror_flag"
11704                          || test ! -s conftest.err'
11705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706   (eval $ac_try) 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); }; } &&
11710          { ac_try='test -s conftest$ac_exeext'
11711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712   (eval $ac_try) 2>&5
11713   ac_status=$?
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); }; }; then
11716   ac_cv_func_shl_load=yes
11717 else
11718   echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11720
11721 ac_cv_func_shl_load=no
11722 fi
11723 rm -f conftest.err conftest.$ac_objext \
11724       conftest$ac_exeext conftest.$ac_ext
11725 fi
11726 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11727 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11728 if test $ac_cv_func_shl_load = yes; then
11729   lt_cv_dlopen="shl_load"
11730 else
11731   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11732 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11733 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11734   echo $ECHO_N "(cached) $ECHO_C" >&6
11735 else
11736   ac_check_lib_save_LIBS=$LIBS
11737 LIBS="-ldld  $LIBS"
11738 cat >conftest.$ac_ext <<_ACEOF
11739 /* confdefs.h.  */
11740 _ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h.  */
11744
11745 /* Override any gcc2 internal prototype to avoid an error.  */
11746 #ifdef __cplusplus
11747 extern "C"
11748 #endif
11749 /* We use char because int might match the return type of a gcc2
11750    builtin and then its argument prototype would still apply.  */
11751 char shl_load ();
11752 int
11753 main ()
11754 {
11755 shl_load ();
11756   ;
11757   return 0;
11758 }
11759 _ACEOF
11760 rm -f conftest.$ac_objext conftest$ac_exeext
11761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11762   (eval $ac_link) 2>conftest.er1
11763   ac_status=$?
11764   grep -v '^ *+' conftest.er1 >conftest.err
11765   rm -f conftest.er1
11766   cat conftest.err >&5
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); } &&
11769          { ac_try='test -z "$ac_cxx_werror_flag"
11770                          || test ! -s conftest.err'
11771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772   (eval $ac_try) 2>&5
11773   ac_status=$?
11774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775   (exit $ac_status); }; } &&
11776          { ac_try='test -s conftest$ac_exeext'
11777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778   (eval $ac_try) 2>&5
11779   ac_status=$?
11780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); }; }; then
11782   ac_cv_lib_dld_shl_load=yes
11783 else
11784   echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11786
11787 ac_cv_lib_dld_shl_load=no
11788 fi
11789 rm -f conftest.err conftest.$ac_objext \
11790       conftest$ac_exeext conftest.$ac_ext
11791 LIBS=$ac_check_lib_save_LIBS
11792 fi
11793 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11794 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11795 if test $ac_cv_lib_dld_shl_load = yes; then
11796   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11797 else
11798   echo "$as_me:$LINENO: checking for dlopen" >&5
11799 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11800 if test "${ac_cv_func_dlopen+set}" = set; then
11801   echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11803   cat >conftest.$ac_ext <<_ACEOF
11804 /* confdefs.h.  */
11805 _ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h.  */
11809 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11811 #define dlopen innocuous_dlopen
11812
11813 /* System header to define __stub macros and hopefully few prototypes,
11814     which can conflict with char dlopen (); below.
11815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11816     <limits.h> exists even on freestanding compilers.  */
11817
11818 #ifdef __STDC__
11819 # include <limits.h>
11820 #else
11821 # include <assert.h>
11822 #endif
11823
11824 #undef dlopen
11825
11826 /* Override any gcc2 internal prototype to avoid an error.  */
11827 #ifdef __cplusplus
11828 extern "C"
11829 {
11830 #endif
11831 /* We use char because int might match the return type of a gcc2
11832    builtin and then its argument prototype would still apply.  */
11833 char dlopen ();
11834 /* The GNU C library defines this for functions which it implements
11835     to always fail with ENOSYS.  Some functions are actually named
11836     something starting with __ and the normal name is an alias.  */
11837 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11838 choke me
11839 #else
11840 char (*f) () = dlopen;
11841 #endif
11842 #ifdef __cplusplus
11843 }
11844 #endif
11845
11846 int
11847 main ()
11848 {
11849 return f != dlopen;
11850   ;
11851   return 0;
11852 }
11853 _ACEOF
11854 rm -f conftest.$ac_objext conftest$ac_exeext
11855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11856   (eval $ac_link) 2>conftest.er1
11857   ac_status=$?
11858   grep -v '^ *+' conftest.er1 >conftest.err
11859   rm -f conftest.er1
11860   cat conftest.err >&5
11861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862   (exit $ac_status); } &&
11863          { ac_try='test -z "$ac_cxx_werror_flag"
11864                          || test ! -s conftest.err'
11865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866   (eval $ac_try) 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); }; } &&
11870          { ac_try='test -s conftest$ac_exeext'
11871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872   (eval $ac_try) 2>&5
11873   ac_status=$?
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); }; }; then
11876   ac_cv_func_dlopen=yes
11877 else
11878   echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11880
11881 ac_cv_func_dlopen=no
11882 fi
11883 rm -f conftest.err conftest.$ac_objext \
11884       conftest$ac_exeext conftest.$ac_ext
11885 fi
11886 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11887 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11888 if test $ac_cv_func_dlopen = yes; then
11889   lt_cv_dlopen="dlopen"
11890 else
11891   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11892 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11893 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11894   echo $ECHO_N "(cached) $ECHO_C" >&6
11895 else
11896   ac_check_lib_save_LIBS=$LIBS
11897 LIBS="-ldl  $LIBS"
11898 cat >conftest.$ac_ext <<_ACEOF
11899 /* confdefs.h.  */
11900 _ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h.  */
11904
11905 /* Override any gcc2 internal prototype to avoid an error.  */
11906 #ifdef __cplusplus
11907 extern "C"
11908 #endif
11909 /* We use char because int might match the return type of a gcc2
11910    builtin and then its argument prototype would still apply.  */
11911 char dlopen ();
11912 int
11913 main ()
11914 {
11915 dlopen ();
11916   ;
11917   return 0;
11918 }
11919 _ACEOF
11920 rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11922   (eval $ac_link) 2>conftest.er1
11923   ac_status=$?
11924   grep -v '^ *+' conftest.er1 >conftest.err
11925   rm -f conftest.er1
11926   cat conftest.err >&5
11927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928   (exit $ac_status); } &&
11929          { ac_try='test -z "$ac_cxx_werror_flag"
11930                          || test ! -s conftest.err'
11931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932   (eval $ac_try) 2>&5
11933   ac_status=$?
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); }; } &&
11936          { ac_try='test -s conftest$ac_exeext'
11937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938   (eval $ac_try) 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; }; then
11942   ac_cv_lib_dl_dlopen=yes
11943 else
11944   echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947 ac_cv_lib_dl_dlopen=no
11948 fi
11949 rm -f conftest.err conftest.$ac_objext \
11950       conftest$ac_exeext conftest.$ac_ext
11951 LIBS=$ac_check_lib_save_LIBS
11952 fi
11953 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11954 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11955 if test $ac_cv_lib_dl_dlopen = yes; then
11956   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11957 else
11958   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11959 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11960 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11961   echo $ECHO_N "(cached) $ECHO_C" >&6
11962 else
11963   ac_check_lib_save_LIBS=$LIBS
11964 LIBS="-lsvld  $LIBS"
11965 cat >conftest.$ac_ext <<_ACEOF
11966 /* confdefs.h.  */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h.  */
11971
11972 /* Override any gcc2 internal prototype to avoid an error.  */
11973 #ifdef __cplusplus
11974 extern "C"
11975 #endif
11976 /* We use char because int might match the return type of a gcc2
11977    builtin and then its argument prototype would still apply.  */
11978 char dlopen ();
11979 int
11980 main ()
11981 {
11982 dlopen ();
11983   ;
11984   return 0;
11985 }
11986 _ACEOF
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11989   (eval $ac_link) 2>conftest.er1
11990   ac_status=$?
11991   grep -v '^ *+' conftest.er1 >conftest.err
11992   rm -f conftest.er1
11993   cat conftest.err >&5
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); } &&
11996          { ac_try='test -z "$ac_cxx_werror_flag"
11997                          || test ! -s conftest.err'
11998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999   (eval $ac_try) 2>&5
12000   ac_status=$?
12001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002   (exit $ac_status); }; } &&
12003          { ac_try='test -s conftest$ac_exeext'
12004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005   (eval $ac_try) 2>&5
12006   ac_status=$?
12007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008   (exit $ac_status); }; }; then
12009   ac_cv_lib_svld_dlopen=yes
12010 else
12011   echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.$ac_ext >&5
12013
12014 ac_cv_lib_svld_dlopen=no
12015 fi
12016 rm -f conftest.err conftest.$ac_objext \
12017       conftest$ac_exeext conftest.$ac_ext
12018 LIBS=$ac_check_lib_save_LIBS
12019 fi
12020 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12021 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12022 if test $ac_cv_lib_svld_dlopen = yes; then
12023   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12024 else
12025   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12026 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12027 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12028   echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030   ac_check_lib_save_LIBS=$LIBS
12031 LIBS="-ldld  $LIBS"
12032 cat >conftest.$ac_ext <<_ACEOF
12033 /* confdefs.h.  */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h.  */
12038
12039 /* Override any gcc2 internal prototype to avoid an error.  */
12040 #ifdef __cplusplus
12041 extern "C"
12042 #endif
12043 /* We use char because int might match the return type of a gcc2
12044    builtin and then its argument prototype would still apply.  */
12045 char dld_link ();
12046 int
12047 main ()
12048 {
12049 dld_link ();
12050   ;
12051   return 0;
12052 }
12053 _ACEOF
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12056   (eval $ac_link) 2>conftest.er1
12057   ac_status=$?
12058   grep -v '^ *+' conftest.er1 >conftest.err
12059   rm -f conftest.er1
12060   cat conftest.err >&5
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); } &&
12063          { ac_try='test -z "$ac_cxx_werror_flag"
12064                          || test ! -s conftest.err'
12065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066   (eval $ac_try) 2>&5
12067   ac_status=$?
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); }; } &&
12070          { ac_try='test -s conftest$ac_exeext'
12071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072   (eval $ac_try) 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; }; then
12076   ac_cv_lib_dld_dld_link=yes
12077 else
12078   echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12080
12081 ac_cv_lib_dld_dld_link=no
12082 fi
12083 rm -f conftest.err conftest.$ac_objext \
12084       conftest$ac_exeext conftest.$ac_ext
12085 LIBS=$ac_check_lib_save_LIBS
12086 fi
12087 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12088 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12089 if test $ac_cv_lib_dld_dld_link = yes; then
12090   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12091 fi
12092
12093
12094 fi
12095
12096
12097 fi
12098
12099
12100 fi
12101
12102
12103 fi
12104
12105
12106 fi
12107
12108     ;;
12109   esac
12110
12111   if test "x$lt_cv_dlopen" != xno; then
12112     enable_dlopen=yes
12113   else
12114     enable_dlopen=no
12115   fi
12116
12117   case $lt_cv_dlopen in
12118   dlopen)
12119     save_CPPFLAGS="$CPPFLAGS"
12120     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12121
12122     save_LDFLAGS="$LDFLAGS"
12123     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12124
12125     save_LIBS="$LIBS"
12126     LIBS="$lt_cv_dlopen_libs $LIBS"
12127
12128     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12129 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12130 if test "${lt_cv_dlopen_self+set}" = set; then
12131   echo $ECHO_N "(cached) $ECHO_C" >&6
12132 else
12133           if test "$cross_compiling" = yes; then :
12134   lt_cv_dlopen_self=cross
12135 else
12136   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12137   lt_status=$lt_dlunknown
12138   cat > conftest.$ac_ext <<EOF
12139 #line 12139 "configure"
12140 #include "confdefs.h"
12141
12142 #if HAVE_DLFCN_H
12143 #include <dlfcn.h>
12144 #endif
12145
12146 #include <stdio.h>
12147
12148 #ifdef RTLD_GLOBAL
12149 #  define LT_DLGLOBAL           RTLD_GLOBAL
12150 #else
12151 #  ifdef DL_GLOBAL
12152 #    define LT_DLGLOBAL         DL_GLOBAL
12153 #  else
12154 #    define LT_DLGLOBAL         0
12155 #  endif
12156 #endif
12157
12158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12159    find out it does not work in some platform. */
12160 #ifndef LT_DLLAZY_OR_NOW
12161 #  ifdef RTLD_LAZY
12162 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12163 #  else
12164 #    ifdef DL_LAZY
12165 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12166 #    else
12167 #      ifdef RTLD_NOW
12168 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12169 #      else
12170 #        ifdef DL_NOW
12171 #          define LT_DLLAZY_OR_NOW      DL_NOW
12172 #        else
12173 #          define LT_DLLAZY_OR_NOW      0
12174 #        endif
12175 #      endif
12176 #    endif
12177 #  endif
12178 #endif
12179
12180 #ifdef __cplusplus
12181 extern "C" void exit (int);
12182 #endif
12183
12184 void fnord() { int i=42;}
12185 int main ()
12186 {
12187   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12188   int status = $lt_dlunknown;
12189
12190   if (self)
12191     {
12192       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12193       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12194       /* dlclose (self); */
12195     }
12196
12197     exit (status);
12198 }
12199 EOF
12200   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12201   (eval $ac_link) 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12205     (./conftest; exit; ) 2>/dev/null
12206     lt_status=$?
12207     case x$lt_status in
12208       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12209       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12210       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12211     esac
12212   else :
12213     # compilation failed
12214     lt_cv_dlopen_self=no
12215   fi
12216 fi
12217 rm -fr conftest*
12218
12219
12220 fi
12221 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12222 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12223
12224     if test "x$lt_cv_dlopen_self" = xyes; then
12225       LDFLAGS="$LDFLAGS $link_static_flag"
12226       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12227 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12228 if test "${lt_cv_dlopen_self_static+set}" = set; then
12229   echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12231           if test "$cross_compiling" = yes; then :
12232   lt_cv_dlopen_self_static=cross
12233 else
12234   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12235   lt_status=$lt_dlunknown
12236   cat > conftest.$ac_ext <<EOF
12237 #line 12237 "configure"
12238 #include "confdefs.h"
12239
12240 #if HAVE_DLFCN_H
12241 #include <dlfcn.h>
12242 #endif
12243
12244 #include <stdio.h>
12245
12246 #ifdef RTLD_GLOBAL
12247 #  define LT_DLGLOBAL           RTLD_GLOBAL
12248 #else
12249 #  ifdef DL_GLOBAL
12250 #    define LT_DLGLOBAL         DL_GLOBAL
12251 #  else
12252 #    define LT_DLGLOBAL         0
12253 #  endif
12254 #endif
12255
12256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12257    find out it does not work in some platform. */
12258 #ifndef LT_DLLAZY_OR_NOW
12259 #  ifdef RTLD_LAZY
12260 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12261 #  else
12262 #    ifdef DL_LAZY
12263 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12264 #    else
12265 #      ifdef RTLD_NOW
12266 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12267 #      else
12268 #        ifdef DL_NOW
12269 #          define LT_DLLAZY_OR_NOW      DL_NOW
12270 #        else
12271 #          define LT_DLLAZY_OR_NOW      0
12272 #        endif
12273 #      endif
12274 #    endif
12275 #  endif
12276 #endif
12277
12278 #ifdef __cplusplus
12279 extern "C" void exit (int);
12280 #endif
12281
12282 void fnord() { int i=42;}
12283 int main ()
12284 {
12285   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12286   int status = $lt_dlunknown;
12287
12288   if (self)
12289     {
12290       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12291       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12292       /* dlclose (self); */
12293     }
12294
12295     exit (status);
12296 }
12297 EOF
12298   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12299   (eval $ac_link) 2>&5
12300   ac_status=$?
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12303     (./conftest; exit; ) 2>/dev/null
12304     lt_status=$?
12305     case x$lt_status in
12306       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12307       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12308       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12309     esac
12310   else :
12311     # compilation failed
12312     lt_cv_dlopen_self_static=no
12313   fi
12314 fi
12315 rm -fr conftest*
12316
12317
12318 fi
12319 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12320 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12321     fi
12322
12323     CPPFLAGS="$save_CPPFLAGS"
12324     LDFLAGS="$save_LDFLAGS"
12325     LIBS="$save_LIBS"
12326     ;;
12327   esac
12328
12329   case $lt_cv_dlopen_self in
12330   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12331   *) enable_dlopen_self=unknown ;;
12332   esac
12333
12334   case $lt_cv_dlopen_self_static in
12335   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12336   *) enable_dlopen_self_static=unknown ;;
12337   esac
12338 fi
12339
12340
12341 # The else clause should only fire when bootstrapping the
12342 # libtool distribution, otherwise you forgot to ship ltmain.sh
12343 # with your package, and you will get complaints that there are
12344 # no rules to generate ltmain.sh.
12345 if test -f "$ltmain"; then
12346   # See if we are running on zsh, and set the options which allow our commands through
12347   # without removal of \ escapes.
12348   if test -n "${ZSH_VERSION+set}" ; then
12349     setopt NO_GLOB_SUBST
12350   fi
12351   # Now quote all the things that may contain metacharacters while being
12352   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12353   # variables and quote the copies for generation of the libtool script.
12354   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12355     SED SHELL STRIP \
12356     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12357     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12358     deplibs_check_method reload_flag reload_cmds need_locks \
12359     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12360     lt_cv_sys_global_symbol_to_c_name_address \
12361     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12362     old_postinstall_cmds old_postuninstall_cmds \
12363     compiler_CXX \
12364     CC_CXX \
12365     LD_CXX \
12366     lt_prog_compiler_wl_CXX \
12367     lt_prog_compiler_pic_CXX \
12368     lt_prog_compiler_static_CXX \
12369     lt_prog_compiler_no_builtin_flag_CXX \
12370     export_dynamic_flag_spec_CXX \
12371     thread_safe_flag_spec_CXX \
12372     whole_archive_flag_spec_CXX \
12373     enable_shared_with_static_runtimes_CXX \
12374     old_archive_cmds_CXX \
12375     old_archive_from_new_cmds_CXX \
12376     predep_objects_CXX \
12377     postdep_objects_CXX \
12378     predeps_CXX \
12379     postdeps_CXX \
12380     compiler_lib_search_path_CXX \
12381     archive_cmds_CXX \
12382     archive_expsym_cmds_CXX \
12383     postinstall_cmds_CXX \
12384     postuninstall_cmds_CXX \
12385     old_archive_from_expsyms_cmds_CXX \
12386     allow_undefined_flag_CXX \
12387     no_undefined_flag_CXX \
12388     export_symbols_cmds_CXX \
12389     hardcode_libdir_flag_spec_CXX \
12390     hardcode_libdir_flag_spec_ld_CXX \
12391     hardcode_libdir_separator_CXX \
12392     hardcode_automatic_CXX \
12393     module_cmds_CXX \
12394     module_expsym_cmds_CXX \
12395     lt_cv_prog_compiler_c_o_CXX \
12396     exclude_expsyms_CXX \
12397     include_expsyms_CXX; do
12398
12399     case $var in
12400     old_archive_cmds_CXX | \
12401     old_archive_from_new_cmds_CXX | \
12402     archive_cmds_CXX | \
12403     archive_expsym_cmds_CXX | \
12404     module_cmds_CXX | \
12405     module_expsym_cmds_CXX | \
12406     old_archive_from_expsyms_cmds_CXX | \
12407     export_symbols_cmds_CXX | \
12408     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12409     postinstall_cmds | postuninstall_cmds | \
12410     old_postinstall_cmds | old_postuninstall_cmds | \
12411     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12412       # Double-quote double-evaled strings.
12413       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12414       ;;
12415     *)
12416       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12417       ;;
12418     esac
12419   done
12420
12421   case $lt_echo in
12422   *'\$0 --fallback-echo"')
12423     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12424     ;;
12425   esac
12426
12427 cfgfile="$ofile"
12428
12429   cat <<__EOF__ >> "$cfgfile"
12430 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12431
12432 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12433
12434 # Shell to use when invoking shell scripts.
12435 SHELL=$lt_SHELL
12436
12437 # Whether or not to build shared libraries.
12438 build_libtool_libs=$enable_shared
12439
12440 # Whether or not to build static libraries.
12441 build_old_libs=$enable_static
12442
12443 # Whether or not to add -lc for building shared libraries.
12444 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12445
12446 # Whether or not to disallow shared libs when runtime libs are static
12447 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12448
12449 # Whether or not to optimize for fast installation.
12450 fast_install=$enable_fast_install
12451
12452 # The host system.
12453 host_alias=$host_alias
12454 host=$host
12455
12456 # An echo program that does not interpret backslashes.
12457 echo=$lt_echo
12458
12459 # The archiver.
12460 AR=$lt_AR
12461 AR_FLAGS=$lt_AR_FLAGS
12462
12463 # A C compiler.
12464 LTCC=$lt_LTCC
12465
12466 # A language-specific compiler.
12467 CC=$lt_compiler_CXX
12468
12469 # Is the compiler the GNU C compiler?
12470 with_gcc=$GCC_CXX
12471
12472 # An ERE matcher.
12473 EGREP=$lt_EGREP
12474
12475 # The linker used to build libraries.
12476 LD=$lt_LD_CXX
12477
12478 # Whether we need hard or soft links.
12479 LN_S=$lt_LN_S
12480
12481 # A BSD-compatible nm program.
12482 NM=$lt_NM
12483
12484 # A symbol stripping program
12485 STRIP=$lt_STRIP
12486
12487 # Used to examine libraries when file_magic_cmd begins "file"
12488 MAGIC_CMD=$MAGIC_CMD
12489
12490 # Used on cygwin: DLL creation program.
12491 DLLTOOL="$DLLTOOL"
12492
12493 # Used on cygwin: object dumper.
12494 OBJDUMP="$OBJDUMP"
12495
12496 # Used on cygwin: assembler.
12497 AS="$AS"
12498
12499 # The name of the directory that contains temporary libtool files.
12500 objdir=$objdir
12501
12502 # How to create reloadable object files.
12503 reload_flag=$lt_reload_flag
12504 reload_cmds=$lt_reload_cmds
12505
12506 # How to pass a linker flag through the compiler.
12507 wl=$lt_lt_prog_compiler_wl_CXX
12508
12509 # Object file suffix (normally "o").
12510 objext="$ac_objext"
12511
12512 # Old archive suffix (normally "a").
12513 libext="$libext"
12514
12515 # Shared library suffix (normally ".so").
12516 shrext='$shrext'
12517
12518 # Executable file suffix (normally "").
12519 exeext="$exeext"
12520
12521 # Additional compiler flags for building library objects.
12522 pic_flag=$lt_lt_prog_compiler_pic_CXX
12523 pic_mode=$pic_mode
12524
12525 # What is the maximum length of a command?
12526 max_cmd_len=$lt_cv_sys_max_cmd_len
12527
12528 # Does compiler simultaneously support -c and -o options?
12529 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12530
12531 # Must we lock files when doing compilation ?
12532 need_locks=$lt_need_locks
12533
12534 # Do we need the lib prefix for modules?
12535 need_lib_prefix=$need_lib_prefix
12536
12537 # Do we need a version for libraries?
12538 need_version=$need_version
12539
12540 # Whether dlopen is supported.
12541 dlopen_support=$enable_dlopen
12542
12543 # Whether dlopen of programs is supported.
12544 dlopen_self=$enable_dlopen_self
12545
12546 # Whether dlopen of statically linked programs is supported.
12547 dlopen_self_static=$enable_dlopen_self_static
12548
12549 # Compiler flag to prevent dynamic linking.
12550 link_static_flag=$lt_lt_prog_compiler_static_CXX
12551
12552 # Compiler flag to turn off builtin functions.
12553 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12554
12555 # Compiler flag to allow reflexive dlopens.
12556 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12557
12558 # Compiler flag to generate shared objects directly from archives.
12559 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12560
12561 # Compiler flag to generate thread-safe objects.
12562 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12563
12564 # Library versioning type.
12565 version_type=$version_type
12566
12567 # Format of library name prefix.
12568 libname_spec=$lt_libname_spec
12569
12570 # List of archive names.  First name is the real one, the rest are links.
12571 # The last name is the one that the linker finds with -lNAME.
12572 library_names_spec=$lt_library_names_spec
12573
12574 # The coded name of the library, if different from the real name.
12575 soname_spec=$lt_soname_spec
12576
12577 # Commands used to build and install an old-style archive.
12578 RANLIB=$lt_RANLIB
12579 old_archive_cmds=$lt_old_archive_cmds_CXX
12580 old_postinstall_cmds=$lt_old_postinstall_cmds
12581 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12582
12583 # Create an old-style archive from a shared archive.
12584 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12585
12586 # Create a temporary old-style archive to link instead of a shared archive.
12587 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12588
12589 # Commands used to build and install a shared archive.
12590 archive_cmds=$lt_archive_cmds_CXX
12591 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12592 postinstall_cmds=$lt_postinstall_cmds
12593 postuninstall_cmds=$lt_postuninstall_cmds
12594
12595 # Commands used to build a loadable module (assumed same as above if empty)
12596 module_cmds=$lt_module_cmds_CXX
12597 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12598
12599 # Commands to strip libraries.
12600 old_striplib=$lt_old_striplib
12601 striplib=$lt_striplib
12602
12603 # Dependencies to place before the objects being linked to create a
12604 # shared library.
12605 predep_objects=$lt_predep_objects_CXX
12606
12607 # Dependencies to place after the objects being linked to create a
12608 # shared library.
12609 postdep_objects=$lt_postdep_objects_CXX
12610
12611 # Dependencies to place before the objects being linked to create a
12612 # shared library.
12613 predeps=$lt_predeps_CXX
12614
12615 # Dependencies to place after the objects being linked to create a
12616 # shared library.
12617 postdeps=$lt_postdeps_CXX
12618
12619 # The library search path used internally by the compiler when linking
12620 # a shared library.
12621 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12622
12623 # Method to check whether dependent libraries are shared objects.
12624 deplibs_check_method=$lt_deplibs_check_method
12625
12626 # Command to use when deplibs_check_method == file_magic.
12627 file_magic_cmd=$lt_file_magic_cmd
12628
12629 # Flag that allows shared libraries with undefined symbols to be built.
12630 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12631
12632 # Flag that forces no undefined symbols.
12633 no_undefined_flag=$lt_no_undefined_flag_CXX
12634
12635 # Commands used to finish a libtool library installation in a directory.
12636 finish_cmds=$lt_finish_cmds
12637
12638 # Same as above, but a single script fragment to be evaled but not shown.
12639 finish_eval=$lt_finish_eval
12640
12641 # Take the output of nm and produce a listing of raw symbols and C names.
12642 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12643
12644 # Transform the output of nm in a proper C declaration
12645 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12646
12647 # Transform the output of nm in a C name address pair
12648 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12649
12650 # This is the shared library runtime path variable.
12651 runpath_var=$runpath_var
12652
12653 # This is the shared library path variable.
12654 shlibpath_var=$shlibpath_var
12655
12656 # Is shlibpath searched before the hard-coded library search path?
12657 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12658
12659 # How to hardcode a shared library path into an executable.
12660 hardcode_action=$hardcode_action_CXX
12661
12662 # Whether we should hardcode library paths into libraries.
12663 hardcode_into_libs=$hardcode_into_libs
12664
12665 # Flag to hardcode \$libdir into a binary during linking.
12666 # This must work even if \$libdir does not exist.
12667 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12668
12669 # If ld is used when linking, flag to hardcode \$libdir into
12670 # a binary during linking. This must work even if \$libdir does
12671 # not exist.
12672 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12673
12674 # Whether we need a single -rpath flag with a separated argument.
12675 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12676
12677 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12678 # resulting binary.
12679 hardcode_direct=$hardcode_direct_CXX
12680
12681 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12682 # resulting binary.
12683 hardcode_minus_L=$hardcode_minus_L_CXX
12684
12685 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12686 # the resulting binary.
12687 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12688
12689 # Set to yes if building a shared library automatically hardcodes DIR into the library
12690 # and all subsequent libraries and executables linked against it.
12691 hardcode_automatic=$hardcode_automatic_CXX
12692
12693 # Variables whose values should be saved in libtool wrapper scripts and
12694 # restored at relink time.
12695 variables_saved_for_relink="$variables_saved_for_relink"
12696
12697 # Whether libtool must link a program against all its dependency libraries.
12698 link_all_deplibs=$link_all_deplibs_CXX
12699
12700 # Compile-time system search path for libraries
12701 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12702
12703 # Run-time system search path for libraries
12704 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12705
12706 # Fix the shell variable \$srcfile for the compiler.
12707 fix_srcfile_path="$fix_srcfile_path_CXX"
12708
12709 # Set to yes if exported symbols are required.
12710 always_export_symbols=$always_export_symbols_CXX
12711
12712 # The commands to list exported symbols.
12713 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12714
12715 # The commands to extract the exported symbol list from a shared archive.
12716 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12717
12718 # Symbols that should not be listed in the preloaded symbols.
12719 exclude_expsyms=$lt_exclude_expsyms_CXX
12720
12721 # Symbols that must always be exported.
12722 include_expsyms=$lt_include_expsyms_CXX
12723
12724 # ### END LIBTOOL TAG CONFIG: $tagname
12725
12726 __EOF__
12727
12728
12729 else
12730   # If there is no Makefile yet, we rely on a make rule to execute
12731   # `config.status --recheck' to rerun these tests and create the
12732   # libtool script then.
12733   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12734   if test -f "$ltmain_in"; then
12735     test -f Makefile && make "$ltmain"
12736   fi
12737 fi
12738
12739
12740 ac_ext=c
12741 ac_cpp='$CPP $CPPFLAGS'
12742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12745
12746 CC=$lt_save_CC
12747 LDCXX=$LD
12748 LD=$lt_save_LD
12749 GCC=$lt_save_GCC
12750 with_gnu_ldcxx=$with_gnu_ld
12751 with_gnu_ld=$lt_save_with_gnu_ld
12752 lt_cv_path_LDCXX=$lt_cv_path_LD
12753 lt_cv_path_LD=$lt_save_path_LD
12754 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12755 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12756
12757         else
12758           tagname=""
12759         fi
12760         ;;
12761
12762       F77)
12763         if test -n "$F77" && test "X$F77" != "Xno"; then
12764
12765 ac_ext=f
12766 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12767 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12768 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12769
12770
12771 archive_cmds_need_lc_F77=no
12772 allow_undefined_flag_F77=
12773 always_export_symbols_F77=no
12774 archive_expsym_cmds_F77=
12775 export_dynamic_flag_spec_F77=
12776 hardcode_direct_F77=no
12777 hardcode_libdir_flag_spec_F77=
12778 hardcode_libdir_flag_spec_ld_F77=
12779 hardcode_libdir_separator_F77=
12780 hardcode_minus_L_F77=no
12781 hardcode_automatic_F77=no
12782 module_cmds_F77=
12783 module_expsym_cmds_F77=
12784 link_all_deplibs_F77=unknown
12785 old_archive_cmds_F77=$old_archive_cmds
12786 no_undefined_flag_F77=
12787 whole_archive_flag_spec_F77=
12788 enable_shared_with_static_runtimes_F77=no
12789
12790 # Source file extension for f77 test sources.
12791 ac_ext=f
12792
12793 # Object file extension for compiled f77 test sources.
12794 objext=o
12795 objext_F77=$objext
12796
12797 # Code to be used in simple compile tests
12798 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12799
12800 # Code to be used in simple link tests
12801 lt_simple_link_test_code="      program t\n      end\n"
12802
12803 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12804
12805 # If no C compiler was specified, use CC.
12806 LTCC=${LTCC-"$CC"}
12807
12808 # Allow CC to be a program name with arguments.
12809 compiler=$CC
12810
12811
12812 # Allow CC to be a program name with arguments.
12813 lt_save_CC="$CC"
12814 CC=${F77-"f77"}
12815 compiler=$CC
12816 compiler_F77=$CC
12817 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12818
12819 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12820 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12821 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12822 echo "${ECHO_T}$can_build_shared" >&6
12823
12824 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12825 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12826 test "$can_build_shared" = "no" && enable_shared=no
12827
12828 # On AIX, shared libraries and static libraries use the same namespace, and
12829 # are all built from PIC.
12830 case "$host_os" in
12831 aix3*)
12832   test "$enable_shared" = yes && enable_static=no
12833   if test -n "$RANLIB"; then
12834     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12835     postinstall_cmds='$RANLIB $lib'
12836   fi
12837   ;;
12838 aix4*)
12839   test "$enable_shared" = yes && enable_static=no
12840   ;;
12841 esac
12842 echo "$as_me:$LINENO: result: $enable_shared" >&5
12843 echo "${ECHO_T}$enable_shared" >&6
12844
12845 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12846 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12847 # Make sure either enable_shared or enable_static is yes.
12848 test "$enable_shared" = yes || enable_static=yes
12849 echo "$as_me:$LINENO: result: $enable_static" >&5
12850 echo "${ECHO_T}$enable_static" >&6
12851
12852 test "$ld_shlibs_F77" = no && can_build_shared=no
12853
12854 GCC_F77="$G77"
12855 LD_F77="$LD"
12856
12857 lt_prog_compiler_wl_F77=
12858 lt_prog_compiler_pic_F77=
12859 lt_prog_compiler_static_F77=
12860
12861 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12862 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12863
12864   if test "$GCC" = yes; then
12865     lt_prog_compiler_wl_F77='-Wl,'
12866     lt_prog_compiler_static_F77='-static'
12867
12868     case $host_os in
12869       aix*)
12870       # All AIX code is PIC.
12871       if test "$host_cpu" = ia64; then
12872         # AIX 5 now supports IA64 processor
12873         lt_prog_compiler_static_F77='-Bstatic'
12874       fi
12875       ;;
12876
12877     amigaos*)
12878       # FIXME: we need at least 68020 code to build shared libraries, but
12879       # adding the `-m68020' flag to GCC prevents building anything better,
12880       # like `-m68040'.
12881       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12882       ;;
12883
12884     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12885       # PIC is the default for these OSes.
12886       ;;
12887
12888     mingw* | pw32* | os2*)
12889       # This hack is so that the source file can tell whether it is being
12890       # built for inclusion in a dll (and should export symbols for example).
12891       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12892       ;;
12893
12894     darwin* | rhapsody*)
12895       # PIC is the default on this platform
12896       # Common symbols not allowed in MH_DYLIB files
12897       lt_prog_compiler_pic_F77='-fno-common'
12898       ;;
12899
12900     msdosdjgpp*)
12901       # Just because we use GCC doesn't mean we suddenly get shared libraries
12902       # on systems that don't support them.
12903       lt_prog_compiler_can_build_shared_F77=no
12904       enable_shared=no
12905       ;;
12906
12907     sysv4*MP*)
12908       if test -d /usr/nec; then
12909         lt_prog_compiler_pic_F77=-Kconform_pic
12910       fi
12911       ;;
12912
12913     hpux*)
12914       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12915       # not for PA HP-UX.
12916       case "$host_cpu" in
12917       hppa*64*|ia64*)
12918         # +Z the default
12919         ;;
12920       *)
12921         lt_prog_compiler_pic_F77='-fPIC'
12922         ;;
12923       esac
12924       ;;
12925
12926     *)
12927       lt_prog_compiler_pic_F77='-fPIC'
12928       ;;
12929     esac
12930   else
12931     # PORTME Check for flag to pass linker flags through the system compiler.
12932     case $host_os in
12933     aix*)
12934       lt_prog_compiler_wl_F77='-Wl,'
12935       if test "$host_cpu" = ia64; then
12936         # AIX 5 now supports IA64 processor
12937         lt_prog_compiler_static_F77='-Bstatic'
12938       else
12939         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12940       fi
12941       ;;
12942
12943     mingw* | pw32* | os2*)
12944       # This hack is so that the source file can tell whether it is being
12945       # built for inclusion in a dll (and should export symbols for example).
12946       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12947       ;;
12948
12949     hpux9* | hpux10* | hpux11*)
12950       lt_prog_compiler_wl_F77='-Wl,'
12951       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12952       # not for PA HP-UX.
12953       case "$host_cpu" in
12954       hppa*64*|ia64*)
12955         # +Z the default
12956         ;;
12957       *)
12958         lt_prog_compiler_pic_F77='+Z'
12959         ;;
12960       esac
12961       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12962       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12963       ;;
12964
12965     irix5* | irix6* | nonstopux*)
12966       lt_prog_compiler_wl_F77='-Wl,'
12967       # PIC (with -KPIC) is the default.
12968       lt_prog_compiler_static_F77='-non_shared'
12969       ;;
12970
12971     newsos6)
12972       lt_prog_compiler_pic_F77='-KPIC'
12973       lt_prog_compiler_static_F77='-Bstatic'
12974       ;;
12975
12976     linux*)
12977       case $CC in
12978       icc* | ecc*)
12979         lt_prog_compiler_wl_F77='-Wl,'
12980         lt_prog_compiler_pic_F77='-KPIC'
12981         lt_prog_compiler_static_F77='-static'
12982         ;;
12983       ccc*)
12984         lt_prog_compiler_wl_F77='-Wl,'
12985         # All Alpha code is PIC.
12986         lt_prog_compiler_static_F77='-non_shared'
12987         ;;
12988       esac
12989       ;;
12990
12991     osf3* | osf4* | osf5*)
12992       lt_prog_compiler_wl_F77='-Wl,'
12993       # All OSF/1 code is PIC.
12994       lt_prog_compiler_static_F77='-non_shared'
12995       ;;
12996
12997     sco3.2v5*)
12998       lt_prog_compiler_pic_F77='-Kpic'
12999       lt_prog_compiler_static_F77='-dn'
13000       ;;
13001
13002     solaris*)
13003       lt_prog_compiler_wl_F77='-Wl,'
13004       lt_prog_compiler_pic_F77='-KPIC'
13005       lt_prog_compiler_static_F77='-Bstatic'
13006       ;;
13007
13008     sunos4*)
13009       lt_prog_compiler_wl_F77='-Qoption ld '
13010       lt_prog_compiler_pic_F77='-PIC'
13011       lt_prog_compiler_static_F77='-Bstatic'
13012       ;;
13013
13014     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13015       lt_prog_compiler_wl_F77='-Wl,'
13016       lt_prog_compiler_pic_F77='-KPIC'
13017       lt_prog_compiler_static_F77='-Bstatic'
13018       ;;
13019
13020     sysv4*MP*)
13021       if test -d /usr/nec ;then
13022         lt_prog_compiler_pic_F77='-Kconform_pic'
13023         lt_prog_compiler_static_F77='-Bstatic'
13024       fi
13025       ;;
13026
13027     uts4*)
13028       lt_prog_compiler_pic_F77='-pic'
13029       lt_prog_compiler_static_F77='-Bstatic'
13030       ;;
13031
13032     *)
13033       lt_prog_compiler_can_build_shared_F77=no
13034       ;;
13035     esac
13036   fi
13037
13038 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13039 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13040
13041 #
13042 # Check to make sure the PIC flag actually works.
13043 #
13044 if test -n "$lt_prog_compiler_pic_F77"; then
13045
13046 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13047 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13048 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13049   echo $ECHO_N "(cached) $ECHO_C" >&6
13050 else
13051   lt_prog_compiler_pic_works_F77=no
13052   ac_outfile=conftest.$ac_objext
13053    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13054    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13055    # Insert the option either (1) after the last *FLAGS variable, or
13056    # (2) before a word containing "conftest.", or (3) at the end.
13057    # Note that $ac_compile itself does not contain backslashes and begins
13058    # with a dollar sign (not a hyphen), so the echo should work correctly.
13059    # The option is referenced via a variable to avoid confusing sed.
13060    lt_compile=`echo "$ac_compile" | $SED \
13061    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13062    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13063    -e 's:$: $lt_compiler_flag:'`
13064    (eval echo "\"\$as_me:13064: $lt_compile\"" >&5)
13065    (eval "$lt_compile" 2>conftest.err)
13066    ac_status=$?
13067    cat conftest.err >&5
13068    echo "$as_me:13068: \$? = $ac_status" >&5
13069    if (exit $ac_status) && test -s "$ac_outfile"; then
13070      # The compiler can only warn and ignore the option if not recognized
13071      # So say no if there are warnings
13072      if test ! -s conftest.err; then
13073        lt_prog_compiler_pic_works_F77=yes
13074      fi
13075    fi
13076    $rm conftest*
13077
13078 fi
13079 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13080 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13081
13082 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13083     case $lt_prog_compiler_pic_F77 in
13084      "" | " "*) ;;
13085      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13086      esac
13087 else
13088     lt_prog_compiler_pic_F77=
13089      lt_prog_compiler_can_build_shared_F77=no
13090 fi
13091
13092 fi
13093 case "$host_os" in
13094   # For platforms which do not support PIC, -DPIC is meaningless:
13095   *djgpp*)
13096     lt_prog_compiler_pic_F77=
13097     ;;
13098   *)
13099     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13100     ;;
13101 esac
13102
13103 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13104 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13105 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13106   echo $ECHO_N "(cached) $ECHO_C" >&6
13107 else
13108   lt_cv_prog_compiler_c_o_F77=no
13109    $rm -r conftest 2>/dev/null
13110    mkdir conftest
13111    cd conftest
13112    mkdir out
13113    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13114
13115    lt_compiler_flag="-o out/conftest2.$ac_objext"
13116    # Insert the option either (1) after the last *FLAGS variable, or
13117    # (2) before a word containing "conftest.", or (3) at the end.
13118    # Note that $ac_compile itself does not contain backslashes and begins
13119    # with a dollar sign (not a hyphen), so the echo should work correctly.
13120    lt_compile=`echo "$ac_compile" | $SED \
13121    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13122    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13123    -e 's:$: $lt_compiler_flag:'`
13124    (eval echo "\"\$as_me:13124: $lt_compile\"" >&5)
13125    (eval "$lt_compile" 2>out/conftest.err)
13126    ac_status=$?
13127    cat out/conftest.err >&5
13128    echo "$as_me:13128: \$? = $ac_status" >&5
13129    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13130    then
13131      # The compiler can only warn and ignore the option if not recognized
13132      # So say no if there are warnings
13133      if test ! -s out/conftest.err; then
13134        lt_cv_prog_compiler_c_o_F77=yes
13135      fi
13136    fi
13137    chmod u+w .
13138    $rm conftest*
13139    # SGI C++ compiler will create directory out/ii_files/ for
13140    # template instantiation
13141    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13142    $rm out/* && rmdir out
13143    cd ..
13144    rmdir conftest
13145    $rm conftest*
13146
13147 fi
13148 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13149 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13150
13151
13152 hard_links="nottested"
13153 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13154   # do not overwrite the value of need_locks provided by the user
13155   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13156 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13157   hard_links=yes
13158   $rm conftest*
13159   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13160   touch conftest.a
13161   ln conftest.a conftest.b 2>&5 || hard_links=no
13162   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13163   echo "$as_me:$LINENO: result: $hard_links" >&5
13164 echo "${ECHO_T}$hard_links" >&6
13165   if test "$hard_links" = no; then
13166     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13167 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13168     need_locks=warn
13169   fi
13170 else
13171   need_locks=no
13172 fi
13173
13174 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13175 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13176
13177   runpath_var=
13178   allow_undefined_flag_F77=
13179   enable_shared_with_static_runtimes_F77=no
13180   archive_cmds_F77=
13181   archive_expsym_cmds_F77=
13182   old_archive_From_new_cmds_F77=
13183   old_archive_from_expsyms_cmds_F77=
13184   export_dynamic_flag_spec_F77=
13185   whole_archive_flag_spec_F77=
13186   thread_safe_flag_spec_F77=
13187   hardcode_libdir_flag_spec_F77=
13188   hardcode_libdir_flag_spec_ld_F77=
13189   hardcode_libdir_separator_F77=
13190   hardcode_direct_F77=no
13191   hardcode_minus_L_F77=no
13192   hardcode_shlibpath_var_F77=unsupported
13193   link_all_deplibs_F77=unknown
13194   hardcode_automatic_F77=no
13195   module_cmds_F77=
13196   module_expsym_cmds_F77=
13197   always_export_symbols_F77=no
13198   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13199   # include_expsyms should be a list of space-separated symbols to be *always*
13200   # included in the symbol list
13201   include_expsyms_F77=
13202   # exclude_expsyms can be an extended regexp of symbols to exclude
13203   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13204   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13205   # as well as any symbol that contains `d'.
13206   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13207   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13208   # platforms (ab)use it in PIC code, but their linkers get confused if
13209   # the symbol is explicitly referenced.  Since portable code cannot
13210   # rely on this symbol name, it's probably fine to never include it in
13211   # preloaded symbol tables.
13212   extract_expsyms_cmds=
13213
13214   case $host_os in
13215   cygwin* | mingw* | pw32*)
13216     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13217     # When not using gcc, we currently assume that we are using
13218     # Microsoft Visual C++.
13219     if test "$GCC" != yes; then
13220       with_gnu_ld=no
13221     fi
13222     ;;
13223   openbsd*)
13224     with_gnu_ld=no
13225     ;;
13226   esac
13227
13228   ld_shlibs_F77=yes
13229   if test "$with_gnu_ld" = yes; then
13230     # If archive_cmds runs LD, not CC, wlarc should be empty
13231     wlarc='${wl}'
13232
13233     # See if GNU ld supports shared libraries.
13234     case $host_os in
13235     aix3* | aix4* | aix5*)
13236       # On AIX/PPC, the GNU linker is very broken
13237       if test "$host_cpu" != ia64; then
13238         ld_shlibs_F77=no
13239         cat <<EOF 1>&2
13240
13241 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13242 *** to be unable to reliably create shared libraries on AIX.
13243 *** Therefore, libtool is disabling shared libraries support.  If you
13244 *** really care for shared libraries, you may want to modify your PATH
13245 *** so that a non-GNU linker is found, and then restart.
13246
13247 EOF
13248       fi
13249       ;;
13250
13251     amigaos*)
13252       archive_cmds_F77='$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)'
13253       hardcode_libdir_flag_spec_F77='-L$libdir'
13254       hardcode_minus_L_F77=yes
13255
13256       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13257       # that the semantics of dynamic libraries on AmigaOS, at least up
13258       # to version 4, is to share data among multiple programs linked
13259       # with the same dynamic library.  Since this doesn't match the
13260       # behavior of shared libraries on other platforms, we can't use
13261       # them.
13262       ld_shlibs_F77=no
13263       ;;
13264
13265     beos*)
13266       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13267         allow_undefined_flag_F77=unsupported
13268         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13269         # support --undefined.  This deserves some investigation.  FIXME
13270         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13271       else
13272         ld_shlibs_F77=no
13273       fi
13274       ;;
13275
13276     cygwin* | mingw* | pw32*)
13277       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13278       # as there is no search path for DLLs.
13279       hardcode_libdir_flag_spec_F77='-L$libdir'
13280       allow_undefined_flag_F77=unsupported
13281       always_export_symbols_F77=no
13282       enable_shared_with_static_runtimes_F77=yes
13283       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13284
13285       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13286         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13287         # If the export-symbols file already is a .def file (1st line
13288         # is EXPORTS), use it as is; otherwise, prepend...
13289         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13290           cp $export_symbols $output_objdir/$soname.def;
13291         else
13292           echo EXPORTS > $output_objdir/$soname.def;
13293           cat $export_symbols >> $output_objdir/$soname.def;
13294         fi~
13295         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13296       else
13297         ld_shlibs=no
13298       fi
13299       ;;
13300
13301     netbsd*)
13302       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13303         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13304         wlarc=
13305       else
13306         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13307         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13308       fi
13309       ;;
13310
13311     solaris* | sysv5*)
13312       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13313         ld_shlibs_F77=no
13314         cat <<EOF 1>&2
13315
13316 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13317 *** create shared libraries on Solaris systems.  Therefore, libtool
13318 *** is disabling shared libraries support.  We urge you to upgrade GNU
13319 *** binutils to release 2.9.1 or newer.  Another option is to modify
13320 *** your PATH or compiler configuration so that the native linker is
13321 *** used, and then restart.
13322
13323 EOF
13324       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13325         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13326         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13327       else
13328         ld_shlibs_F77=no
13329       fi
13330       ;;
13331
13332     sunos4*)
13333       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13334       wlarc=
13335       hardcode_direct_F77=yes
13336       hardcode_shlibpath_var_F77=no
13337       ;;
13338
13339   linux*)
13340     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13341         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13342         archive_cmds_F77="$tmp_archive_cmds"
13343       supports_anon_versioning=no
13344       case `$LD -v 2>/dev/null` in
13345         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13346         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13347         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13348         *\ 2.11.*) ;; # other 2.11 versions
13349         *) supports_anon_versioning=yes ;;
13350       esac
13351       if test $supports_anon_versioning = yes; then
13352         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13353 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13354 $echo "local: *; };" >> $output_objdir/$libname.ver~
13355         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13356       else
13357         archive_expsym_cmds_F77="$tmp_archive_cmds"
13358       fi
13359     else
13360       ld_shlibs_F77=no
13361     fi
13362     ;;
13363
13364     *)
13365       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13366         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13367         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13368       else
13369         ld_shlibs_F77=no
13370       fi
13371       ;;
13372     esac
13373
13374     if test "$ld_shlibs_F77" = yes; then
13375       runpath_var=LD_RUN_PATH
13376       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13377       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13378       # ancient GNU ld didn't support --whole-archive et. al.
13379       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13380         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13381       else
13382         whole_archive_flag_spec_F77=
13383       fi
13384     fi
13385   else
13386     # PORTME fill in a description of your system's linker (not GNU ld)
13387     case $host_os in
13388     aix3*)
13389       allow_undefined_flag_F77=unsupported
13390       always_export_symbols_F77=yes
13391       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13392       # Note: this linker hardcodes the directories in LIBPATH if there
13393       # are no directories specified by -L.
13394       hardcode_minus_L_F77=yes
13395       if test "$GCC" = yes && test -z "$link_static_flag"; then
13396         # Neither direct hardcoding nor static linking is supported with a
13397         # broken collect2.
13398         hardcode_direct_F77=unsupported
13399       fi
13400       ;;
13401
13402     aix4* | aix5*)
13403       if test "$host_cpu" = ia64; then
13404         # On IA64, the linker does run time linking by default, so we don't
13405         # have to do anything special.
13406         aix_use_runtimelinking=no
13407         exp_sym_flag='-Bexport'
13408         no_entry_flag=""
13409       else
13410         # If we're using GNU nm, then we don't want the "-C" option.
13411         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13412         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13413           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13414         else
13415           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13416         fi
13417         aix_use_runtimelinking=no
13418
13419         # Test if we are trying to use run time linking or normal
13420         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13421         # need to do runtime linking.
13422         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13423           for ld_flag in $LDFLAGS; do
13424           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13425             aix_use_runtimelinking=yes
13426             break
13427           fi
13428           done
13429         esac
13430
13431         exp_sym_flag='-bexport'
13432         no_entry_flag='-bnoentry'
13433       fi
13434
13435       # When large executables or shared objects are built, AIX ld can
13436       # have problems creating the table of contents.  If linking a library
13437       # or program results in "error TOC overflow" add -mminimal-toc to
13438       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13439       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13440
13441       archive_cmds_F77=''
13442       hardcode_direct_F77=yes
13443       hardcode_libdir_separator_F77=':'
13444       link_all_deplibs_F77=yes
13445
13446       if test "$GCC" = yes; then
13447         case $host_os in aix4.012|aix4.012.*)
13448         # We only want to do this on AIX 4.2 and lower, the check
13449         # below for broken collect2 doesn't work under 4.3+
13450           collect2name=`${CC} -print-prog-name=collect2`
13451           if test -f "$collect2name" && \
13452            strings "$collect2name" | grep resolve_lib_name >/dev/null
13453           then
13454           # We have reworked collect2
13455           hardcode_direct_F77=yes
13456           else
13457           # We have old collect2
13458           hardcode_direct_F77=unsupported
13459           # It fails to find uninstalled libraries when the uninstalled
13460           # path is not listed in the libpath.  Setting hardcode_minus_L
13461           # to unsupported forces relinking
13462           hardcode_minus_L_F77=yes
13463           hardcode_libdir_flag_spec_F77='-L$libdir'
13464           hardcode_libdir_separator_F77=
13465           fi
13466         esac
13467         shared_flag='-shared'
13468       else
13469         # not using gcc
13470         if test "$host_cpu" = ia64; then
13471         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13472         # chokes on -Wl,-G. The following line is correct:
13473           shared_flag='-G'
13474         else
13475         if test "$aix_use_runtimelinking" = yes; then
13476             shared_flag='${wl}-G'
13477           else
13478             shared_flag='${wl}-bM:SRE'
13479         fi
13480         fi
13481       fi
13482
13483       # It seems that -bexpall does not export symbols beginning with
13484       # underscore (_), so it is better to generate a list of symbols to export.
13485       always_export_symbols_F77=yes
13486       if test "$aix_use_runtimelinking" = yes; then
13487         # Warning - without using the other runtime loading flags (-brtl),
13488         # -berok will link without error, but may produce a broken library.
13489         allow_undefined_flag_F77='-berok'
13490        # Determine the default libpath from the value encoded in an empty executable.
13491        cat >conftest.$ac_ext <<_ACEOF
13492       program main
13493
13494       end
13495 _ACEOF
13496 rm -f conftest.$ac_objext conftest$ac_exeext
13497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13498   (eval $ac_link) 2>conftest.er1
13499   ac_status=$?
13500   grep -v '^ *+' conftest.er1 >conftest.err
13501   rm -f conftest.er1
13502   cat conftest.err >&5
13503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504   (exit $ac_status); } &&
13505          { ac_try='test -z "$ac_f77_werror_flag"
13506                          || test ! -s conftest.err'
13507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508   (eval $ac_try) 2>&5
13509   ac_status=$?
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); }; } &&
13512          { ac_try='test -s conftest$ac_exeext'
13513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514   (eval $ac_try) 2>&5
13515   ac_status=$?
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); }; }; then
13518
13519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13520 }'`
13521 # Check for a 64-bit object if we didn't find anything.
13522 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13523 }'`; fi
13524 else
13525   echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13527
13528 fi
13529 rm -f conftest.err conftest.$ac_objext \
13530       conftest$ac_exeext conftest.$ac_ext
13531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13532
13533        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13534         archive_expsym_cmds_F77="\$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"
13535        else
13536         if test "$host_cpu" = ia64; then
13537           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13538           allow_undefined_flag_F77="-z nodefs"
13539           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13540         else
13541          # Determine the default libpath from the value encoded in an empty executable.
13542          cat >conftest.$ac_ext <<_ACEOF
13543       program main
13544
13545       end
13546 _ACEOF
13547 rm -f conftest.$ac_objext conftest$ac_exeext
13548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13549   (eval $ac_link) 2>conftest.er1
13550   ac_status=$?
13551   grep -v '^ *+' conftest.er1 >conftest.err
13552   rm -f conftest.er1
13553   cat conftest.err >&5
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); } &&
13556          { ac_try='test -z "$ac_f77_werror_flag"
13557                          || test ! -s conftest.err'
13558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559   (eval $ac_try) 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); }; } &&
13563          { ac_try='test -s conftest$ac_exeext'
13564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565   (eval $ac_try) 2>&5
13566   ac_status=$?
13567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568   (exit $ac_status); }; }; then
13569
13570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13571 }'`
13572 # Check for a 64-bit object if we didn't find anything.
13573 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13574 }'`; fi
13575 else
13576   echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13578
13579 fi
13580 rm -f conftest.err conftest.$ac_objext \
13581       conftest$ac_exeext conftest.$ac_ext
13582 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13583
13584          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13585           # Warning - without using the other run time loading flags,
13586           # -berok will link without error, but may produce a broken library.
13587           no_undefined_flag_F77=' ${wl}-bernotok'
13588           allow_undefined_flag_F77=' ${wl}-berok'
13589           # -bexpall does not export symbols beginning with underscore (_)
13590           always_export_symbols_F77=yes
13591           # Exported symbols can be pulled into shared objects from archives
13592           whole_archive_flag_spec_F77=' '
13593           archive_cmds_need_lc_F77=yes
13594           # This is similar to how AIX traditionally builds it's shared libraries.
13595           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13596         fi
13597       fi
13598       ;;
13599
13600     amigaos*)
13601       archive_cmds_F77='$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)'
13602       hardcode_libdir_flag_spec_F77='-L$libdir'
13603       hardcode_minus_L_F77=yes
13604       # see comment about different semantics on the GNU ld section
13605       ld_shlibs_F77=no
13606       ;;
13607
13608     bsdi4*)
13609       export_dynamic_flag_spec_F77=-rdynamic
13610       ;;
13611
13612     cygwin* | mingw* | pw32*)
13613       # When not using gcc, we currently assume that we are using
13614       # Microsoft Visual C++.
13615       # hardcode_libdir_flag_spec is actually meaningless, as there is
13616       # no search path for DLLs.
13617       hardcode_libdir_flag_spec_F77=' '
13618       allow_undefined_flag_F77=unsupported
13619       # Tell ltmain to make .lib files, not .a files.
13620       libext=lib
13621       # Tell ltmain to make .dll files, not .so files.
13622       shrext=".dll"
13623       # FIXME: Setting linknames here is a bad hack.
13624       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13625       # The linker will automatically build a .lib file if we build a DLL.
13626       old_archive_From_new_cmds_F77='true'
13627       # FIXME: Should let the user specify the lib program.
13628       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13629       fix_srcfile_path='`cygpath -w "$srcfile"`'
13630       enable_shared_with_static_runtimes_F77=yes
13631       ;;
13632
13633     darwin* | rhapsody*)
13634     if test "$GXX" = yes ; then
13635       archive_cmds_need_lc_F77=no
13636       case "$host_os" in
13637       rhapsody* | darwin1.[012])
13638         allow_undefined_flag_F77='-undefined suppress'
13639         ;;
13640       *) # Darwin 1.3 on
13641       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13642         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13643       else
13644         case ${MACOSX_DEPLOYMENT_TARGET} in
13645           10.[012])
13646             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13647             ;;
13648           10.*)
13649             allow_undefined_flag_F77='-undefined dynamic_lookup'
13650             ;;
13651         esac
13652       fi
13653         ;;
13654       esac
13655         lt_int_apple_cc_single_mod=no
13656         output_verbose_link_cmd='echo'
13657         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13658           lt_int_apple_cc_single_mod=yes
13659         fi
13660         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13661           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13662         else
13663         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13664       fi
13665       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13666       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13667         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13668           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13669         else
13670           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13671         fi
13672           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13673       hardcode_direct_F77=no
13674       hardcode_automatic_F77=yes
13675       hardcode_shlibpath_var_F77=unsupported
13676       whole_archive_flag_spec_F77='-all_load $convenience'
13677       link_all_deplibs_F77=yes
13678     else
13679       ld_shlibs_F77=no
13680     fi
13681       ;;
13682
13683     dgux*)
13684       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13685       hardcode_libdir_flag_spec_F77='-L$libdir'
13686       hardcode_shlibpath_var_F77=no
13687       ;;
13688
13689     freebsd1*)
13690       ld_shlibs_F77=no
13691       ;;
13692
13693     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13694     # support.  Future versions do this automatically, but an explicit c++rt0.o
13695     # does not break anything, and helps significantly (at the cost of a little
13696     # extra space).
13697     freebsd2.2*)
13698       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13699       hardcode_libdir_flag_spec_F77='-R$libdir'
13700       hardcode_direct_F77=yes
13701       hardcode_shlibpath_var_F77=no
13702       ;;
13703
13704     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13705     freebsd2*)
13706       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13707       hardcode_direct_F77=yes
13708       hardcode_minus_L_F77=yes
13709       hardcode_shlibpath_var_F77=no
13710       ;;
13711
13712     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13713     freebsd* | kfreebsd*-gnu)
13714       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13715       hardcode_libdir_flag_spec_F77='-R$libdir'
13716       hardcode_direct_F77=yes
13717       hardcode_shlibpath_var_F77=no
13718       ;;
13719
13720     hpux9*)
13721       if test "$GCC" = yes; then
13722         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13723       else
13724         archive_cmds_F77='$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'
13725       fi
13726       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13727       hardcode_libdir_separator_F77=:
13728       hardcode_direct_F77=yes
13729
13730       # hardcode_minus_L: Not really in the search PATH,
13731       # but as the default location of the library.
13732       hardcode_minus_L_F77=yes
13733       export_dynamic_flag_spec_F77='${wl}-E'
13734       ;;
13735
13736     hpux10* | hpux11*)
13737       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13738         case "$host_cpu" in
13739         hppa*64*|ia64*)
13740           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13741           ;;
13742         *)
13743           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13744           ;;
13745         esac
13746       else
13747         case "$host_cpu" in
13748         hppa*64*|ia64*)
13749           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13750           ;;
13751         *)
13752           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13753           ;;
13754         esac
13755       fi
13756       if test "$with_gnu_ld" = no; then
13757         case "$host_cpu" in
13758         hppa*64*)
13759           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13760           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13761           hardcode_libdir_separator_F77=:
13762           hardcode_direct_F77=no
13763           hardcode_shlibpath_var_F77=no
13764           ;;
13765         ia64*)
13766           hardcode_libdir_flag_spec_F77='-L$libdir'
13767           hardcode_direct_F77=no
13768           hardcode_shlibpath_var_F77=no
13769
13770           # hardcode_minus_L: Not really in the search PATH,
13771           # but as the default location of the library.
13772           hardcode_minus_L_F77=yes
13773           ;;
13774         *)
13775           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13776           hardcode_libdir_separator_F77=:
13777           hardcode_direct_F77=yes
13778           export_dynamic_flag_spec_F77='${wl}-E'
13779
13780           # hardcode_minus_L: Not really in the search PATH,
13781           # but as the default location of the library.
13782           hardcode_minus_L_F77=yes
13783           ;;
13784         esac
13785       fi
13786       ;;
13787
13788     irix5* | irix6* | nonstopux*)
13789       if test "$GCC" = yes; then
13790         archive_cmds_F77='$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'
13791       else
13792         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13793         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13794       fi
13795       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13796       hardcode_libdir_separator_F77=:
13797       link_all_deplibs_F77=yes
13798       ;;
13799
13800     netbsd*)
13801       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13802         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13803       else
13804         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13805       fi
13806       hardcode_libdir_flag_spec_F77='-R$libdir'
13807       hardcode_direct_F77=yes
13808       hardcode_shlibpath_var_F77=no
13809       ;;
13810
13811     newsos6)
13812       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13813       hardcode_direct_F77=yes
13814       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13815       hardcode_libdir_separator_F77=:
13816       hardcode_shlibpath_var_F77=no
13817       ;;
13818
13819     openbsd*)
13820       hardcode_direct_F77=yes
13821       hardcode_shlibpath_var_F77=no
13822       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13823         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13824         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13825         export_dynamic_flag_spec_F77='${wl}-E'
13826       else
13827        case $host_os in
13828          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13829            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13830            hardcode_libdir_flag_spec_F77='-R$libdir'
13831            ;;
13832          *)
13833            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13834            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13835            ;;
13836        esac
13837       fi
13838       ;;
13839
13840     os2*)
13841       hardcode_libdir_flag_spec_F77='-L$libdir'
13842       hardcode_minus_L_F77=yes
13843       allow_undefined_flag_F77=unsupported
13844       archive_cmds_F77='$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'
13845       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13846       ;;
13847
13848     osf3*)
13849       if test "$GCC" = yes; then
13850         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13851         archive_cmds_F77='$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'
13852       else
13853         allow_undefined_flag_F77=' -expect_unresolved \*'
13854         archive_cmds_F77='$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'
13855       fi
13856       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13857       hardcode_libdir_separator_F77=:
13858       ;;
13859
13860     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13861       if test "$GCC" = yes; then
13862         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13863         archive_cmds_F77='$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'
13864         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13865       else
13866         allow_undefined_flag_F77=' -expect_unresolved \*'
13867         archive_cmds_F77='$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'
13868         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13869         $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'
13870
13871         # Both c and cxx compiler support -rpath directly
13872         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13873       fi
13874       hardcode_libdir_separator_F77=:
13875       ;;
13876
13877     sco3.2v5*)
13878       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13879       hardcode_shlibpath_var_F77=no
13880       export_dynamic_flag_spec_F77='${wl}-Bexport'
13881       runpath_var=LD_RUN_PATH
13882       hardcode_runpath_var=yes
13883       ;;
13884
13885     solaris*)
13886       no_undefined_flag_F77=' -z text'
13887       if test "$GCC" = yes; then
13888         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13889         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13890           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13891       else
13892         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13893         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13894         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13895       fi
13896       hardcode_libdir_flag_spec_F77='-R$libdir'
13897       hardcode_shlibpath_var_F77=no
13898       case $host_os in
13899       solaris2.[0-5] | solaris2.[0-5].*) ;;
13900       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13901         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13902       esac
13903       link_all_deplibs_F77=yes
13904       ;;
13905
13906     sunos4*)
13907       if test "x$host_vendor" = xsequent; then
13908         # Use $CC to link under sequent, because it throws in some extra .o
13909         # files that make .init and .fini sections work.
13910         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13911       else
13912         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13913       fi
13914       hardcode_libdir_flag_spec_F77='-L$libdir'
13915       hardcode_direct_F77=yes
13916       hardcode_minus_L_F77=yes
13917       hardcode_shlibpath_var_F77=no
13918       ;;
13919
13920     sysv4)
13921       case $host_vendor in
13922         sni)
13923           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13924           hardcode_direct_F77=yes # is this really true???
13925         ;;
13926         siemens)
13927           ## LD is ld it makes a PLAMLIB
13928           ## CC just makes a GrossModule.
13929           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13930           reload_cmds_F77='$CC -r -o $output$reload_objs'
13931           hardcode_direct_F77=no
13932         ;;
13933         motorola)
13934           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13935           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13936         ;;
13937       esac
13938       runpath_var='LD_RUN_PATH'
13939       hardcode_shlibpath_var_F77=no
13940       ;;
13941
13942     sysv4.3*)
13943       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13944       hardcode_shlibpath_var_F77=no
13945       export_dynamic_flag_spec_F77='-Bexport'
13946       ;;
13947
13948     sysv4*MP*)
13949       if test -d /usr/nec; then
13950         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13951         hardcode_shlibpath_var_F77=no
13952         runpath_var=LD_RUN_PATH
13953         hardcode_runpath_var=yes
13954         ld_shlibs_F77=yes
13955       fi
13956       ;;
13957
13958     sysv4.2uw2*)
13959       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13960       hardcode_direct_F77=yes
13961       hardcode_minus_L_F77=no
13962       hardcode_shlibpath_var_F77=no
13963       hardcode_runpath_var=yes
13964       runpath_var=LD_RUN_PATH
13965       ;;
13966
13967    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13968       no_undefined_flag_F77='${wl}-z ${wl}text'
13969       if test "$GCC" = yes; then
13970         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13971       else
13972         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13973       fi
13974       runpath_var='LD_RUN_PATH'
13975       hardcode_shlibpath_var_F77=no
13976       ;;
13977
13978     sysv5*)
13979       no_undefined_flag_F77=' -z text'
13980       # $CC -shared without GNU ld will not create a library from C++
13981       # object files and a static libstdc++, better avoid it by now
13982       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13983       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13984                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13985       hardcode_libdir_flag_spec_F77=
13986       hardcode_shlibpath_var_F77=no
13987       runpath_var='LD_RUN_PATH'
13988       ;;
13989
13990     uts4*)
13991       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13992       hardcode_libdir_flag_spec_F77='-L$libdir'
13993       hardcode_shlibpath_var_F77=no
13994       ;;
13995
13996     *)
13997       ld_shlibs_F77=no
13998       ;;
13999     esac
14000   fi
14001
14002 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14003 echo "${ECHO_T}$ld_shlibs_F77" >&6
14004 test "$ld_shlibs_F77" = no && can_build_shared=no
14005
14006 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14007 if test "$GCC" = yes; then
14008   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14009 fi
14010
14011 #
14012 # Do we need to explicitly link libc?
14013 #
14014 case "x$archive_cmds_need_lc_F77" in
14015 x|xyes)
14016   # Assume -lc should be added
14017   archive_cmds_need_lc_F77=yes
14018
14019   if test "$enable_shared" = yes && test "$GCC" = yes; then
14020     case $archive_cmds_F77 in
14021     *'~'*)
14022       # FIXME: we may have to deal with multi-command sequences.
14023       ;;
14024     '$CC '*)
14025       # Test whether the compiler implicitly links with -lc since on some
14026       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14027       # to ld, don't add -lc before -lgcc.
14028       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14029 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14030       $rm conftest*
14031       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14032
14033       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14034   (eval $ac_compile) 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); } 2>conftest.err; then
14038         soname=conftest
14039         lib=conftest
14040         libobjs=conftest.$ac_objext
14041         deplibs=
14042         wl=$lt_prog_compiler_wl_F77
14043         compiler_flags=-v
14044         linker_flags=-v
14045         verstring=
14046         output_objdir=.
14047         libname=conftest
14048         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14049         allow_undefined_flag_F77=
14050         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14051   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14052   ac_status=$?
14053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054   (exit $ac_status); }
14055         then
14056           archive_cmds_need_lc_F77=no
14057         else
14058           archive_cmds_need_lc_F77=yes
14059         fi
14060         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14061       else
14062         cat conftest.err 1>&5
14063       fi
14064       $rm conftest*
14065       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14066 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14067       ;;
14068     esac
14069   fi
14070   ;;
14071 esac
14072
14073 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14074 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14075 library_names_spec=
14076 libname_spec='lib$name'
14077 soname_spec=
14078 shrext=".so"
14079 postinstall_cmds=
14080 postuninstall_cmds=
14081 finish_cmds=
14082 finish_eval=
14083 shlibpath_var=
14084 shlibpath_overrides_runpath=unknown
14085 version_type=none
14086 dynamic_linker="$host_os ld.so"
14087 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14088 if test "$GCC" = yes; then
14089   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14090   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14091     # if the path contains ";" then we assume it to be the separator
14092     # otherwise default to the standard path separator (i.e. ":") - it is
14093     # assumed that no part of a normal pathname contains ";" but that should
14094     # okay in the real world where ";" in dirpaths is itself problematic.
14095     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14096   else
14097     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14098   fi
14099 else
14100   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14101 fi
14102 need_lib_prefix=unknown
14103 hardcode_into_libs=no
14104
14105 # when you set need_version to no, make sure it does not cause -set_version
14106 # flags to be left without arguments
14107 need_version=unknown
14108
14109 case $host_os in
14110 aix3*)
14111   version_type=linux
14112   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14113   shlibpath_var=LIBPATH
14114
14115   # AIX 3 has no versioning support, so we append a major version to the name.
14116   soname_spec='${libname}${release}${shared_ext}$major'
14117   ;;
14118
14119 aix4* | aix5*)
14120   version_type=linux
14121   need_lib_prefix=no
14122   need_version=no
14123   hardcode_into_libs=yes
14124   if test "$host_cpu" = ia64; then
14125     # AIX 5 supports IA64
14126     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14127     shlibpath_var=LD_LIBRARY_PATH
14128   else
14129     # With GCC up to 2.95.x, collect2 would create an import file
14130     # for dependence libraries.  The import file would start with
14131     # the line `#! .'.  This would cause the generated library to
14132     # depend on `.', always an invalid library.  This was fixed in
14133     # development snapshots of GCC prior to 3.0.
14134     case $host_os in
14135       aix4 | aix4.[01] | aix4.[01].*)
14136       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14137            echo ' yes '
14138            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14139         :
14140       else
14141         can_build_shared=no
14142       fi
14143       ;;
14144     esac
14145     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14146     # soname into executable. Probably we can add versioning support to
14147     # collect2, so additional links can be useful in future.
14148     if test "$aix_use_runtimelinking" = yes; then
14149       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14150       # instead of lib<name>.a to let people know that these are not
14151       # typical AIX shared libraries.
14152       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14153     else
14154       # We preserve .a as extension for shared libraries through AIX4.2
14155       # and later when we are not doing run time linking.
14156       library_names_spec='${libname}${release}.a $libname.a'
14157       soname_spec='${libname}${release}${shared_ext}$major'
14158     fi
14159     shlibpath_var=LIBPATH
14160   fi
14161   ;;
14162
14163 amigaos*)
14164   library_names_spec='$libname.ixlibrary $libname.a'
14165   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14166   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'
14167   ;;
14168
14169 beos*)
14170   library_names_spec='${libname}${shared_ext}'
14171   dynamic_linker="$host_os ld.so"
14172   shlibpath_var=LIBRARY_PATH
14173   ;;
14174
14175 bsdi4*)
14176   version_type=linux
14177   need_version=no
14178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14179   soname_spec='${libname}${release}${shared_ext}$major'
14180   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14181   shlibpath_var=LD_LIBRARY_PATH
14182   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14183   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14184   # the default ld.so.conf also contains /usr/contrib/lib and
14185   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14186   # libtool to hard-code these into programs
14187   ;;
14188
14189 cygwin* | mingw* | pw32*)
14190   version_type=windows
14191   shrext=".dll"
14192   need_version=no
14193   need_lib_prefix=no
14194
14195   case $GCC,$host_os in
14196   yes,cygwin* | yes,mingw* | yes,pw32*)
14197     library_names_spec='$libname.dll.a'
14198     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14199     postinstall_cmds='base_file=`basename \${file}`~
14200       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14201       dldir=$destdir/`dirname \$dlpath`~
14202       test -d \$dldir || mkdir -p \$dldir~
14203       $install_prog $dir/$dlname \$dldir/$dlname'
14204     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14205       dlpath=$dir/\$dldll~
14206        $rm \$dlpath'
14207     shlibpath_overrides_runpath=yes
14208
14209     case $host_os in
14210     cygwin*)
14211       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14212       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14213       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14214       ;;
14215     mingw*)
14216       # MinGW DLLs use traditional 'lib' prefix
14217       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14218       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14219       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14220         # It is most probably a Windows format PATH printed by
14221         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14222         # path with ; separators, and with drive letters. We can handle the
14223         # drive letters (cygwin fileutils understands them), so leave them,
14224         # especially as we might pass files found there to a mingw objdump,
14225         # which wouldn't understand a cygwinified path. Ahh.
14226         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14227       else
14228         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14229       fi
14230       ;;
14231     pw32*)
14232       # pw32 DLLs use 'pw' prefix rather than 'lib'
14233       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14234       ;;
14235     esac
14236     ;;
14237
14238   linux*)
14239     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14240       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14241       supports_anon_versioning=no
14242       case `$LD -v 2>/dev/null` in
14243         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14244         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14245         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14246         *\ 2.11.*) ;; # other 2.11 versions
14247         *) supports_anon_versioning=yes ;;
14248       esac
14249       if test $supports_anon_versioning = yes; then
14250         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14251 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14252 $echo "local: *; };" >> $output_objdir/$libname.ver~
14253         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14254       else
14255         $archive_expsym_cmds="$archive_cmds"
14256       fi
14257     else
14258       ld_shlibs=no
14259     fi
14260     ;;
14261
14262   *)
14263     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14264     ;;
14265   esac
14266   dynamic_linker='Win32 ld.exe'
14267   # FIXME: first we should search . and the directory the executable is in
14268   shlibpath_var=PATH
14269   ;;
14270
14271 darwin* | rhapsody*)
14272   dynamic_linker="$host_os dyld"
14273   version_type=darwin
14274   need_lib_prefix=no
14275   need_version=no
14276   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14277   soname_spec='${libname}${release}${major}$shared_ext'
14278   shlibpath_overrides_runpath=yes
14279   shlibpath_var=DYLD_LIBRARY_PATH
14280   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14281   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14282   if test "$GCC" = yes; then
14283     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14284   else
14285     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14286   fi
14287   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14288   ;;
14289
14290 dgux*)
14291   version_type=linux
14292   need_lib_prefix=no
14293   need_version=no
14294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14295   soname_spec='${libname}${release}${shared_ext}$major'
14296   shlibpath_var=LD_LIBRARY_PATH
14297   ;;
14298
14299 freebsd1*)
14300   dynamic_linker=no
14301   ;;
14302
14303 kfreebsd*-gnu)
14304   version_type=linux
14305   need_lib_prefix=no
14306   need_version=no
14307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14308   soname_spec='${libname}${release}${shared_ext}$major'
14309   shlibpath_var=LD_LIBRARY_PATH
14310   shlibpath_overrides_runpath=no
14311   hardcode_into_libs=yes
14312   dynamic_linker='GNU ld.so'
14313   ;;
14314
14315 freebsd*)
14316   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14317   version_type=freebsd-$objformat
14318   case $version_type in
14319     freebsd-elf*)
14320       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14321       need_version=no
14322       need_lib_prefix=no
14323       ;;
14324     freebsd-*)
14325       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14326       need_version=yes
14327       ;;
14328   esac
14329   shlibpath_var=LD_LIBRARY_PATH
14330   case $host_os in
14331   freebsd2*)
14332     shlibpath_overrides_runpath=yes
14333     ;;
14334   freebsd3.01* | freebsdelf3.01*)
14335     shlibpath_overrides_runpath=yes
14336     hardcode_into_libs=yes
14337     ;;
14338   *) # from 3.2 on
14339     shlibpath_overrides_runpath=no
14340     hardcode_into_libs=yes
14341     ;;
14342   esac
14343   ;;
14344
14345 gnu*)
14346   version_type=linux
14347   need_lib_prefix=no
14348   need_version=no
14349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14350   soname_spec='${libname}${release}${shared_ext}$major'
14351   shlibpath_var=LD_LIBRARY_PATH
14352   hardcode_into_libs=yes
14353   ;;
14354
14355 hpux9* | hpux10* | hpux11*)
14356   # Give a soname corresponding to the major version so that dld.sl refuses to
14357   # link against other versions.
14358   version_type=sunos
14359   need_lib_prefix=no
14360   need_version=no
14361   case "$host_cpu" in
14362   ia64*)
14363     shrext='.so'
14364     hardcode_into_libs=yes
14365     dynamic_linker="$host_os dld.so"
14366     shlibpath_var=LD_LIBRARY_PATH
14367     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14368     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14369     soname_spec='${libname}${release}${shared_ext}$major'
14370     if test "X$HPUX_IA64_MODE" = X32; then
14371       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14372     else
14373       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14374     fi
14375     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14376     ;;
14377    hppa*64*)
14378      shrext='.sl'
14379      hardcode_into_libs=yes
14380      dynamic_linker="$host_os dld.sl"
14381      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14382      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14383      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14384      soname_spec='${libname}${release}${shared_ext}$major'
14385      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14386      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14387      ;;
14388    *)
14389     shrext='.sl'
14390     dynamic_linker="$host_os dld.sl"
14391     shlibpath_var=SHLIB_PATH
14392     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14394     soname_spec='${libname}${release}${shared_ext}$major'
14395     ;;
14396   esac
14397   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14398   postinstall_cmds='chmod 555 $lib'
14399   ;;
14400
14401 irix5* | irix6* | nonstopux*)
14402   case $host_os in
14403     nonstopux*) version_type=nonstopux ;;
14404     *)
14405         if test "$lt_cv_prog_gnu_ld" = yes; then
14406                 version_type=linux
14407         else
14408                 version_type=irix
14409         fi ;;
14410   esac
14411   need_lib_prefix=no
14412   need_version=no
14413   soname_spec='${libname}${release}${shared_ext}$major'
14414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14415   case $host_os in
14416   irix5* | nonstopux*)
14417     libsuff= shlibsuff=
14418     ;;
14419   *)
14420     case $LD in # libtool.m4 will add one of these switches to LD
14421     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14422       libsuff= shlibsuff= libmagic=32-bit;;
14423     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14424       libsuff=32 shlibsuff=N32 libmagic=N32;;
14425     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14426       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14427     *) libsuff= shlibsuff= libmagic=never-match;;
14428     esac
14429     ;;
14430   esac
14431   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14432   shlibpath_overrides_runpath=no
14433   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14434   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14435   hardcode_into_libs=yes
14436   ;;
14437
14438 # No shared lib support for Linux oldld, aout, or coff.
14439 linux*oldld* | linux*aout* | linux*coff*)
14440   dynamic_linker=no
14441   ;;
14442
14443 # This must be Linux ELF.
14444 linux*)
14445   version_type=linux
14446   need_lib_prefix=no
14447   need_version=no
14448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14449   soname_spec='${libname}${release}${shared_ext}$major'
14450   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14451   shlibpath_var=LD_LIBRARY_PATH
14452   shlibpath_overrides_runpath=no
14453   # This implies no fast_install, which is unacceptable.
14454   # Some rework will be needed to allow for fast_install
14455   # before this can be enabled.
14456   hardcode_into_libs=yes
14457
14458   # Append ld.so.conf contents to the search path
14459   if test -f /etc/ld.so.conf; then
14460     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14461     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14462   fi
14463
14464   case $host_cpu:$lt_cv_cc_64bit_output in
14465   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
14466     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
14467     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
14468     ;;
14469   esac
14470
14471   # We used to test for /lib/ld.so.1 and disable shared libraries on
14472   # powerpc, because MkLinux only supported shared libraries with the
14473   # GNU dynamic linker.  Since this was broken with cross compilers,
14474   # most powerpc-linux boxes support dynamic linking these days and
14475   # people can always --disable-shared, the test was removed, and we
14476   # assume the GNU/Linux dynamic linker is in use.
14477   dynamic_linker='GNU/Linux ld.so'
14478
14479   # Find out which ABI we are using (multilib Linux x86_64 hack).
14480   libsuff=
14481   case "$host_cpu" in
14482   x86_64*)
14483     echo '#line 14483 "configure"' > conftest.$ac_ext
14484     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14485   (eval $ac_compile) 2>&5
14486   ac_status=$?
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); }; then
14489       case `/usr/bin/file conftest.$ac_objext` in
14490       *64-bit*)
14491         libsuff=64
14492         ;;
14493       esac
14494     fi
14495     rm -rf conftest*
14496     ;;
14497   *)
14498     ;;
14499   esac
14500   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
14501   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14502   ;;
14503
14504 knetbsd*-gnu)
14505   version_type=linux
14506   need_lib_prefix=no
14507   need_version=no
14508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14509   soname_spec='${libname}${release}${shared_ext}$major'
14510   shlibpath_var=LD_LIBRARY_PATH
14511   shlibpath_overrides_runpath=no
14512   hardcode_into_libs=yes
14513   dynamic_linker='GNU ld.so'
14514   ;;
14515
14516 netbsd*)
14517   version_type=sunos
14518   need_lib_prefix=no
14519   need_version=no
14520   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14521     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14522     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14523     dynamic_linker='NetBSD (a.out) ld.so'
14524   else
14525     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14526     soname_spec='${libname}${release}${shared_ext}$major'
14527     dynamic_linker='NetBSD ld.elf_so'
14528   fi
14529   shlibpath_var=LD_LIBRARY_PATH
14530   shlibpath_overrides_runpath=yes
14531   hardcode_into_libs=yes
14532   ;;
14533
14534 newsos6)
14535   version_type=linux
14536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14537   shlibpath_var=LD_LIBRARY_PATH
14538   shlibpath_overrides_runpath=yes
14539   ;;
14540
14541 nto-qnx*)
14542   version_type=linux
14543   need_lib_prefix=no
14544   need_version=no
14545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14546   soname_spec='${libname}${release}${shared_ext}$major'
14547   shlibpath_var=LD_LIBRARY_PATH
14548   shlibpath_overrides_runpath=yes
14549   ;;
14550
14551 openbsd*)
14552   version_type=sunos
14553   need_lib_prefix=no
14554   need_version=yes
14555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14556   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14557   shlibpath_var=LD_LIBRARY_PATH
14558   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14559     case $host_os in
14560       openbsd2.[89] | openbsd2.[89].*)
14561         shlibpath_overrides_runpath=no
14562         ;;
14563       *)
14564         shlibpath_overrides_runpath=yes
14565         ;;
14566       esac
14567   else
14568     shlibpath_overrides_runpath=yes
14569   fi
14570   ;;
14571
14572 os2*)
14573   libname_spec='$name'
14574   shrext=".dll"
14575   need_lib_prefix=no
14576   library_names_spec='$libname${shared_ext} $libname.a'
14577   dynamic_linker='OS/2 ld.exe'
14578   shlibpath_var=LIBPATH
14579   ;;
14580
14581 osf3* | osf4* | osf5*)
14582   version_type=osf
14583   need_lib_prefix=no
14584   need_version=no
14585   soname_spec='${libname}${release}${shared_ext}$major'
14586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14587   shlibpath_var=LD_LIBRARY_PATH
14588   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14589   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14590   ;;
14591
14592 sco3.2v5*)
14593   version_type=osf
14594   soname_spec='${libname}${release}${shared_ext}$major'
14595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14596   shlibpath_var=LD_LIBRARY_PATH
14597   ;;
14598
14599 solaris*)
14600   version_type=linux
14601   need_lib_prefix=no
14602   need_version=no
14603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14604   soname_spec='${libname}${release}${shared_ext}$major'
14605   shlibpath_var=LD_LIBRARY_PATH
14606   shlibpath_overrides_runpath=yes
14607   hardcode_into_libs=yes
14608   # ldd complains unless libraries are executable
14609   postinstall_cmds='chmod +x $lib'
14610   ;;
14611
14612 sunos4*)
14613   version_type=sunos
14614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14615   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14616   shlibpath_var=LD_LIBRARY_PATH
14617   shlibpath_overrides_runpath=yes
14618   if test "$with_gnu_ld" = yes; then
14619     need_lib_prefix=no
14620   fi
14621   need_version=yes
14622   ;;
14623
14624 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14625   version_type=linux
14626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14627   soname_spec='${libname}${release}${shared_ext}$major'
14628   shlibpath_var=LD_LIBRARY_PATH
14629   case $host_vendor in
14630     sni)
14631       shlibpath_overrides_runpath=no
14632       need_lib_prefix=no
14633       export_dynamic_flag_spec='${wl}-Blargedynsym'
14634       runpath_var=LD_RUN_PATH
14635       ;;
14636     siemens)
14637       need_lib_prefix=no
14638       ;;
14639     motorola)
14640       need_lib_prefix=no
14641       need_version=no
14642       shlibpath_overrides_runpath=no
14643       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14644       ;;
14645   esac
14646   ;;
14647
14648 sysv4*MP*)
14649   if test -d /usr/nec ;then
14650     version_type=linux
14651     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14652     soname_spec='$libname${shared_ext}.$major'
14653     shlibpath_var=LD_LIBRARY_PATH
14654   fi
14655   ;;
14656
14657 uts4*)
14658   version_type=linux
14659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14660   soname_spec='${libname}${release}${shared_ext}$major'
14661   shlibpath_var=LD_LIBRARY_PATH
14662   ;;
14663
14664 *)
14665   dynamic_linker=no
14666   ;;
14667 esac
14668 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14669 echo "${ECHO_T}$dynamic_linker" >&6
14670 test "$dynamic_linker" = no && can_build_shared=no
14671
14672 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14673 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14674 hardcode_action_F77=
14675 if test -n "$hardcode_libdir_flag_spec_F77" || \
14676    test -n "$runpath_var F77" || \
14677    test "X$hardcode_automatic_F77"="Xyes" ; then
14678
14679   # We can hardcode non-existant directories.
14680   if test "$hardcode_direct_F77" != no &&
14681      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14682      # have to relink, otherwise we might link with an installed library
14683      # when we should be linking with a yet-to-be-installed one
14684      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14685      test "$hardcode_minus_L_F77" != no; then
14686     # Linking always hardcodes the temporary library directory.
14687     hardcode_action_F77=relink
14688   else
14689     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14690     hardcode_action_F77=immediate
14691   fi
14692 else
14693   # We cannot hardcode anything, or else we can only hardcode existing
14694   # directories.
14695   hardcode_action_F77=unsupported
14696 fi
14697 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14698 echo "${ECHO_T}$hardcode_action_F77" >&6
14699
14700 if test "$hardcode_action_F77" = relink; then
14701   # Fast installation is not supported
14702   enable_fast_install=no
14703 elif test "$shlibpath_overrides_runpath" = yes ||
14704      test "$enable_shared" = no; then
14705   # Fast installation is not necessary
14706   enable_fast_install=needless
14707 fi
14708
14709 striplib=
14710 old_striplib=
14711 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14712 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14713 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14714   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14715   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14716   echo "$as_me:$LINENO: result: yes" >&5
14717 echo "${ECHO_T}yes" >&6
14718 else
14719 # FIXME - insert some real tests, host_os isn't really good enough
14720   case $host_os in
14721    darwin*)
14722        if test -n "$STRIP" ; then
14723          striplib="$STRIP -x"
14724          echo "$as_me:$LINENO: result: yes" >&5
14725 echo "${ECHO_T}yes" >&6
14726        else
14727   echo "$as_me:$LINENO: result: no" >&5
14728 echo "${ECHO_T}no" >&6
14729 fi
14730        ;;
14731    *)
14732   echo "$as_me:$LINENO: result: no" >&5
14733 echo "${ECHO_T}no" >&6
14734     ;;
14735   esac
14736 fi
14737
14738
14739
14740 # The else clause should only fire when bootstrapping the
14741 # libtool distribution, otherwise you forgot to ship ltmain.sh
14742 # with your package, and you will get complaints that there are
14743 # no rules to generate ltmain.sh.
14744 if test -f "$ltmain"; then
14745   # See if we are running on zsh, and set the options which allow our commands through
14746   # without removal of \ escapes.
14747   if test -n "${ZSH_VERSION+set}" ; then
14748     setopt NO_GLOB_SUBST
14749   fi
14750   # Now quote all the things that may contain metacharacters while being
14751   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14752   # variables and quote the copies for generation of the libtool script.
14753   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14754     SED SHELL STRIP \
14755     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14756     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14757     deplibs_check_method reload_flag reload_cmds need_locks \
14758     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14759     lt_cv_sys_global_symbol_to_c_name_address \
14760     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14761     old_postinstall_cmds old_postuninstall_cmds \
14762     compiler_F77 \
14763     CC_F77 \
14764     LD_F77 \
14765     lt_prog_compiler_wl_F77 \
14766     lt_prog_compiler_pic_F77 \
14767     lt_prog_compiler_static_F77 \
14768     lt_prog_compiler_no_builtin_flag_F77 \
14769     export_dynamic_flag_spec_F77 \
14770     thread_safe_flag_spec_F77 \
14771     whole_archive_flag_spec_F77 \
14772     enable_shared_with_static_runtimes_F77 \
14773     old_archive_cmds_F77 \
14774     old_archive_from_new_cmds_F77 \
14775     predep_objects_F77 \
14776     postdep_objects_F77 \
14777     predeps_F77 \
14778     postdeps_F77 \
14779     compiler_lib_search_path_F77 \
14780     archive_cmds_F77 \
14781     archive_expsym_cmds_F77 \
14782     postinstall_cmds_F77 \
14783     postuninstall_cmds_F77 \
14784     old_archive_from_expsyms_cmds_F77 \
14785     allow_undefined_flag_F77 \
14786     no_undefined_flag_F77 \
14787     export_symbols_cmds_F77 \
14788     hardcode_libdir_flag_spec_F77 \
14789     hardcode_libdir_flag_spec_ld_F77 \
14790     hardcode_libdir_separator_F77 \
14791     hardcode_automatic_F77 \
14792     module_cmds_F77 \
14793     module_expsym_cmds_F77 \
14794     lt_cv_prog_compiler_c_o_F77 \
14795     exclude_expsyms_F77 \
14796     include_expsyms_F77; do
14797
14798     case $var in
14799     old_archive_cmds_F77 | \
14800     old_archive_from_new_cmds_F77 | \
14801     archive_cmds_F77 | \
14802     archive_expsym_cmds_F77 | \
14803     module_cmds_F77 | \
14804     module_expsym_cmds_F77 | \
14805     old_archive_from_expsyms_cmds_F77 | \
14806     export_symbols_cmds_F77 | \
14807     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14808     postinstall_cmds | postuninstall_cmds | \
14809     old_postinstall_cmds | old_postuninstall_cmds | \
14810     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14811       # Double-quote double-evaled strings.
14812       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14813       ;;
14814     *)
14815       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14816       ;;
14817     esac
14818   done
14819
14820   case $lt_echo in
14821   *'\$0 --fallback-echo"')
14822     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14823     ;;
14824   esac
14825
14826 cfgfile="$ofile"
14827
14828   cat <<__EOF__ >> "$cfgfile"
14829 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14830
14831 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14832
14833 # Shell to use when invoking shell scripts.
14834 SHELL=$lt_SHELL
14835
14836 # Whether or not to build shared libraries.
14837 build_libtool_libs=$enable_shared
14838
14839 # Whether or not to build static libraries.
14840 build_old_libs=$enable_static
14841
14842 # Whether or not to add -lc for building shared libraries.
14843 build_libtool_need_lc=$archive_cmds_need_lc_F77
14844
14845 # Whether or not to disallow shared libs when runtime libs are static
14846 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14847
14848 # Whether or not to optimize for fast installation.
14849 fast_install=$enable_fast_install
14850
14851 # The host system.
14852 host_alias=$host_alias
14853 host=$host
14854
14855 # An echo program that does not interpret backslashes.
14856 echo=$lt_echo
14857
14858 # The archiver.
14859 AR=$lt_AR
14860 AR_FLAGS=$lt_AR_FLAGS
14861
14862 # A C compiler.
14863 LTCC=$lt_LTCC
14864
14865 # A language-specific compiler.
14866 CC=$lt_compiler_F77
14867
14868 # Is the compiler the GNU C compiler?
14869 with_gcc=$GCC_F77
14870
14871 # An ERE matcher.
14872 EGREP=$lt_EGREP
14873
14874 # The linker used to build libraries.
14875 LD=$lt_LD_F77
14876
14877 # Whether we need hard or soft links.
14878 LN_S=$lt_LN_S
14879
14880 # A BSD-compatible nm program.
14881 NM=$lt_NM
14882
14883 # A symbol stripping program
14884 STRIP=$lt_STRIP
14885
14886 # Used to examine libraries when file_magic_cmd begins "file"
14887 MAGIC_CMD=$MAGIC_CMD
14888
14889 # Used on cygwin: DLL creation program.
14890 DLLTOOL="$DLLTOOL"
14891
14892 # Used on cygwin: object dumper.
14893 OBJDUMP="$OBJDUMP"
14894
14895 # Used on cygwin: assembler.
14896 AS="$AS"
14897
14898 # The name of the directory that contains temporary libtool files.
14899 objdir=$objdir
14900
14901 # How to create reloadable object files.
14902 reload_flag=$lt_reload_flag
14903 reload_cmds=$lt_reload_cmds
14904
14905 # How to pass a linker flag through the compiler.
14906 wl=$lt_lt_prog_compiler_wl_F77
14907
14908 # Object file suffix (normally "o").
14909 objext="$ac_objext"
14910
14911 # Old archive suffix (normally "a").
14912 libext="$libext"
14913
14914 # Shared library suffix (normally ".so").
14915 shrext='$shrext'
14916
14917 # Executable file suffix (normally "").
14918 exeext="$exeext"
14919
14920 # Additional compiler flags for building library objects.
14921 pic_flag=$lt_lt_prog_compiler_pic_F77
14922 pic_mode=$pic_mode
14923
14924 # What is the maximum length of a command?
14925 max_cmd_len=$lt_cv_sys_max_cmd_len
14926
14927 # Does compiler simultaneously support -c and -o options?
14928 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14929
14930 # Must we lock files when doing compilation ?
14931 need_locks=$lt_need_locks
14932
14933 # Do we need the lib prefix for modules?
14934 need_lib_prefix=$need_lib_prefix
14935
14936 # Do we need a version for libraries?
14937 need_version=$need_version
14938
14939 # Whether dlopen is supported.
14940 dlopen_support=$enable_dlopen
14941
14942 # Whether dlopen of programs is supported.
14943 dlopen_self=$enable_dlopen_self
14944
14945 # Whether dlopen of statically linked programs is supported.
14946 dlopen_self_static=$enable_dlopen_self_static
14947
14948 # Compiler flag to prevent dynamic linking.
14949 link_static_flag=$lt_lt_prog_compiler_static_F77
14950
14951 # Compiler flag to turn off builtin functions.
14952 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14953
14954 # Compiler flag to allow reflexive dlopens.
14955 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14956
14957 # Compiler flag to generate shared objects directly from archives.
14958 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14959
14960 # Compiler flag to generate thread-safe objects.
14961 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14962
14963 # Library versioning type.
14964 version_type=$version_type
14965
14966 # Format of library name prefix.
14967 libname_spec=$lt_libname_spec
14968
14969 # List of archive names.  First name is the real one, the rest are links.
14970 # The last name is the one that the linker finds with -lNAME.
14971 library_names_spec=$lt_library_names_spec
14972
14973 # The coded name of the library, if different from the real name.
14974 soname_spec=$lt_soname_spec
14975
14976 # Commands used to build and install an old-style archive.
14977 RANLIB=$lt_RANLIB
14978 old_archive_cmds=$lt_old_archive_cmds_F77
14979 old_postinstall_cmds=$lt_old_postinstall_cmds
14980 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14981
14982 # Create an old-style archive from a shared archive.
14983 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14984
14985 # Create a temporary old-style archive to link instead of a shared archive.
14986 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14987
14988 # Commands used to build and install a shared archive.
14989 archive_cmds=$lt_archive_cmds_F77
14990 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14991 postinstall_cmds=$lt_postinstall_cmds
14992 postuninstall_cmds=$lt_postuninstall_cmds
14993
14994 # Commands used to build a loadable module (assumed same as above if empty)
14995 module_cmds=$lt_module_cmds_F77
14996 module_expsym_cmds=$lt_module_expsym_cmds_F77
14997
14998 # Commands to strip libraries.
14999 old_striplib=$lt_old_striplib
15000 striplib=$lt_striplib
15001
15002 # Dependencies to place before the objects being linked to create a
15003 # shared library.
15004 predep_objects=$lt_predep_objects_F77
15005
15006 # Dependencies to place after the objects being linked to create a
15007 # shared library.
15008 postdep_objects=$lt_postdep_objects_F77
15009
15010 # Dependencies to place before the objects being linked to create a
15011 # shared library.
15012 predeps=$lt_predeps_F77
15013
15014 # Dependencies to place after the objects being linked to create a
15015 # shared library.
15016 postdeps=$lt_postdeps_F77
15017
15018 # The library search path used internally by the compiler when linking
15019 # a shared library.
15020 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15021
15022 # Method to check whether dependent libraries are shared objects.
15023 deplibs_check_method=$lt_deplibs_check_method
15024
15025 # Command to use when deplibs_check_method == file_magic.
15026 file_magic_cmd=$lt_file_magic_cmd
15027
15028 # Flag that allows shared libraries with undefined symbols to be built.
15029 allow_undefined_flag=$lt_allow_undefined_flag_F77
15030
15031 # Flag that forces no undefined symbols.
15032 no_undefined_flag=$lt_no_undefined_flag_F77
15033
15034 # Commands used to finish a libtool library installation in a directory.
15035 finish_cmds=$lt_finish_cmds
15036
15037 # Same as above, but a single script fragment to be evaled but not shown.
15038 finish_eval=$lt_finish_eval
15039
15040 # Take the output of nm and produce a listing of raw symbols and C names.
15041 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15042
15043 # Transform the output of nm in a proper C declaration
15044 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15045
15046 # Transform the output of nm in a C name address pair
15047 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15048
15049 # This is the shared library runtime path variable.
15050 runpath_var=$runpath_var
15051
15052 # This is the shared library path variable.
15053 shlibpath_var=$shlibpath_var
15054
15055 # Is shlibpath searched before the hard-coded library search path?
15056 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15057
15058 # How to hardcode a shared library path into an executable.
15059 hardcode_action=$hardcode_action_F77
15060
15061 # Whether we should hardcode library paths into libraries.
15062 hardcode_into_libs=$hardcode_into_libs
15063
15064 # Flag to hardcode \$libdir into a binary during linking.
15065 # This must work even if \$libdir does not exist.
15066 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15067
15068 # If ld is used when linking, flag to hardcode \$libdir into
15069 # a binary during linking. This must work even if \$libdir does
15070 # not exist.
15071 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15072
15073 # Whether we need a single -rpath flag with a separated argument.
15074 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15075
15076 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15077 # resulting binary.
15078 hardcode_direct=$hardcode_direct_F77
15079
15080 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15081 # resulting binary.
15082 hardcode_minus_L=$hardcode_minus_L_F77
15083
15084 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15085 # the resulting binary.
15086 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15087
15088 # Set to yes if building a shared library automatically hardcodes DIR into the library
15089 # and all subsequent libraries and executables linked against it.
15090 hardcode_automatic=$hardcode_automatic_F77
15091
15092 # Variables whose values should be saved in libtool wrapper scripts and
15093 # restored at relink time.
15094 variables_saved_for_relink="$variables_saved_for_relink"
15095
15096 # Whether libtool must link a program against all its dependency libraries.
15097 link_all_deplibs=$link_all_deplibs_F77
15098
15099 # Compile-time system search path for libraries
15100 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15101
15102 # Run-time system search path for libraries
15103 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15104
15105 # Fix the shell variable \$srcfile for the compiler.
15106 fix_srcfile_path="$fix_srcfile_path_F77"
15107
15108 # Set to yes if exported symbols are required.
15109 always_export_symbols=$always_export_symbols_F77
15110
15111 # The commands to list exported symbols.
15112 export_symbols_cmds=$lt_export_symbols_cmds_F77
15113
15114 # The commands to extract the exported symbol list from a shared archive.
15115 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15116
15117 # Symbols that should not be listed in the preloaded symbols.
15118 exclude_expsyms=$lt_exclude_expsyms_F77
15119
15120 # Symbols that must always be exported.
15121 include_expsyms=$lt_include_expsyms_F77
15122
15123 # ### END LIBTOOL TAG CONFIG: $tagname
15124
15125 __EOF__
15126
15127
15128 else
15129   # If there is no Makefile yet, we rely on a make rule to execute
15130   # `config.status --recheck' to rerun these tests and create the
15131   # libtool script then.
15132   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15133   if test -f "$ltmain_in"; then
15134     test -f Makefile && make "$ltmain"
15135   fi
15136 fi
15137
15138
15139 ac_ext=c
15140 ac_cpp='$CPP $CPPFLAGS'
15141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15144
15145 CC="$lt_save_CC"
15146
15147         else
15148           tagname=""
15149         fi
15150         ;;
15151
15152       GCJ)
15153         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15154
15155
15156
15157 # Source file extension for Java test sources.
15158 ac_ext=java
15159
15160 # Object file extension for compiled Java test sources.
15161 objext=o
15162 objext_GCJ=$objext
15163
15164 # Code to be used in simple compile tests
15165 lt_simple_compile_test_code="class foo {}\n"
15166
15167 # Code to be used in simple link tests
15168 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15169
15170 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15171
15172 # If no C compiler was specified, use CC.
15173 LTCC=${LTCC-"$CC"}
15174
15175 # Allow CC to be a program name with arguments.
15176 compiler=$CC
15177
15178
15179 # Allow CC to be a program name with arguments.
15180 lt_save_CC="$CC"
15181 CC=${GCJ-"gcj"}
15182 compiler=$CC
15183 compiler_GCJ=$CC
15184
15185 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15186 archive_cmds_need_lc_GCJ=no
15187
15188
15189 lt_prog_compiler_no_builtin_flag_GCJ=
15190
15191 if test "$GCC" = yes; then
15192   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15193
15194
15195 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15196 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15197 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15198   echo $ECHO_N "(cached) $ECHO_C" >&6
15199 else
15200   lt_cv_prog_compiler_rtti_exceptions=no
15201   ac_outfile=conftest.$ac_objext
15202    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15203    lt_compiler_flag="-fno-rtti -fno-exceptions"
15204    # Insert the option either (1) after the last *FLAGS variable, or
15205    # (2) before a word containing "conftest.", or (3) at the end.
15206    # Note that $ac_compile itself does not contain backslashes and begins
15207    # with a dollar sign (not a hyphen), so the echo should work correctly.
15208    # The option is referenced via a variable to avoid confusing sed.
15209    lt_compile=`echo "$ac_compile" | $SED \
15210    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15211    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15212    -e 's:$: $lt_compiler_flag:'`
15213    (eval echo "\"\$as_me:15213: $lt_compile\"" >&5)
15214    (eval "$lt_compile" 2>conftest.err)
15215    ac_status=$?
15216    cat conftest.err >&5
15217    echo "$as_me:15217: \$? = $ac_status" >&5
15218    if (exit $ac_status) && test -s "$ac_outfile"; then
15219      # The compiler can only warn and ignore the option if not recognized
15220      # So say no if there are warnings
15221      if test ! -s conftest.err; then
15222        lt_cv_prog_compiler_rtti_exceptions=yes
15223      fi
15224    fi
15225    $rm conftest*
15226
15227 fi
15228 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15229 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15230
15231 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15232     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15233 else
15234     :
15235 fi
15236
15237 fi
15238
15239 lt_prog_compiler_wl_GCJ=
15240 lt_prog_compiler_pic_GCJ=
15241 lt_prog_compiler_static_GCJ=
15242
15243 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15244 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15245
15246   if test "$GCC" = yes; then
15247     lt_prog_compiler_wl_GCJ='-Wl,'
15248     lt_prog_compiler_static_GCJ='-static'
15249
15250     case $host_os in
15251       aix*)
15252       # All AIX code is PIC.
15253       if test "$host_cpu" = ia64; then
15254         # AIX 5 now supports IA64 processor
15255         lt_prog_compiler_static_GCJ='-Bstatic'
15256       fi
15257       ;;
15258
15259     amigaos*)
15260       # FIXME: we need at least 68020 code to build shared libraries, but
15261       # adding the `-m68020' flag to GCC prevents building anything better,
15262       # like `-m68040'.
15263       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15264       ;;
15265
15266     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15267       # PIC is the default for these OSes.
15268       ;;
15269
15270     mingw* | pw32* | os2*)
15271       # This hack is so that the source file can tell whether it is being
15272       # built for inclusion in a dll (and should export symbols for example).
15273       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15274       ;;
15275
15276     darwin* | rhapsody*)
15277       # PIC is the default on this platform
15278       # Common symbols not allowed in MH_DYLIB files
15279       lt_prog_compiler_pic_GCJ='-fno-common'
15280       ;;
15281
15282     msdosdjgpp*)
15283       # Just because we use GCC doesn't mean we suddenly get shared libraries
15284       # on systems that don't support them.
15285       lt_prog_compiler_can_build_shared_GCJ=no
15286       enable_shared=no
15287       ;;
15288
15289     sysv4*MP*)
15290       if test -d /usr/nec; then
15291         lt_prog_compiler_pic_GCJ=-Kconform_pic
15292       fi
15293       ;;
15294
15295     hpux*)
15296       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15297       # not for PA HP-UX.
15298       case "$host_cpu" in
15299       hppa*64*|ia64*)
15300         # +Z the default
15301         ;;
15302       *)
15303         lt_prog_compiler_pic_GCJ='-fPIC'
15304         ;;
15305       esac
15306       ;;
15307
15308     *)
15309       lt_prog_compiler_pic_GCJ='-fPIC'
15310       ;;
15311     esac
15312   else
15313     # PORTME Check for flag to pass linker flags through the system compiler.
15314     case $host_os in
15315     aix*)
15316       lt_prog_compiler_wl_GCJ='-Wl,'
15317       if test "$host_cpu" = ia64; then
15318         # AIX 5 now supports IA64 processor
15319         lt_prog_compiler_static_GCJ='-Bstatic'
15320       else
15321         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15322       fi
15323       ;;
15324
15325     mingw* | pw32* | os2*)
15326       # This hack is so that the source file can tell whether it is being
15327       # built for inclusion in a dll (and should export symbols for example).
15328       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15329       ;;
15330
15331     hpux9* | hpux10* | hpux11*)
15332       lt_prog_compiler_wl_GCJ='-Wl,'
15333       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15334       # not for PA HP-UX.
15335       case "$host_cpu" in
15336       hppa*64*|ia64*)
15337         # +Z the default
15338         ;;
15339       *)
15340         lt_prog_compiler_pic_GCJ='+Z'
15341         ;;
15342       esac
15343       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15344       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15345       ;;
15346
15347     irix5* | irix6* | nonstopux*)
15348       lt_prog_compiler_wl_GCJ='-Wl,'
15349       # PIC (with -KPIC) is the default.
15350       lt_prog_compiler_static_GCJ='-non_shared'
15351       ;;
15352
15353     newsos6)
15354       lt_prog_compiler_pic_GCJ='-KPIC'
15355       lt_prog_compiler_static_GCJ='-Bstatic'
15356       ;;
15357
15358     linux*)
15359       case $CC in
15360       icc* | ecc*)
15361         lt_prog_compiler_wl_GCJ='-Wl,'
15362         lt_prog_compiler_pic_GCJ='-KPIC'
15363         lt_prog_compiler_static_GCJ='-static'
15364         ;;
15365       ccc*)
15366         lt_prog_compiler_wl_GCJ='-Wl,'
15367         # All Alpha code is PIC.
15368         lt_prog_compiler_static_GCJ='-non_shared'
15369         ;;
15370       esac
15371       ;;
15372
15373     osf3* | osf4* | osf5*)
15374       lt_prog_compiler_wl_GCJ='-Wl,'
15375       # All OSF/1 code is PIC.
15376       lt_prog_compiler_static_GCJ='-non_shared'
15377       ;;
15378
15379     sco3.2v5*)
15380       lt_prog_compiler_pic_GCJ='-Kpic'
15381       lt_prog_compiler_static_GCJ='-dn'
15382       ;;
15383
15384     solaris*)
15385       lt_prog_compiler_wl_GCJ='-Wl,'
15386       lt_prog_compiler_pic_GCJ='-KPIC'
15387       lt_prog_compiler_static_GCJ='-Bstatic'
15388       ;;
15389
15390     sunos4*)
15391       lt_prog_compiler_wl_GCJ='-Qoption ld '
15392       lt_prog_compiler_pic_GCJ='-PIC'
15393       lt_prog_compiler_static_GCJ='-Bstatic'
15394       ;;
15395
15396     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15397       lt_prog_compiler_wl_GCJ='-Wl,'
15398       lt_prog_compiler_pic_GCJ='-KPIC'
15399       lt_prog_compiler_static_GCJ='-Bstatic'
15400       ;;
15401
15402     sysv4*MP*)
15403       if test -d /usr/nec ;then
15404         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15405         lt_prog_compiler_static_GCJ='-Bstatic'
15406       fi
15407       ;;
15408
15409     uts4*)
15410       lt_prog_compiler_pic_GCJ='-pic'
15411       lt_prog_compiler_static_GCJ='-Bstatic'
15412       ;;
15413
15414     *)
15415       lt_prog_compiler_can_build_shared_GCJ=no
15416       ;;
15417     esac
15418   fi
15419
15420 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15421 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15422
15423 #
15424 # Check to make sure the PIC flag actually works.
15425 #
15426 if test -n "$lt_prog_compiler_pic_GCJ"; then
15427
15428 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15429 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15430 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15431   echo $ECHO_N "(cached) $ECHO_C" >&6
15432 else
15433   lt_prog_compiler_pic_works_GCJ=no
15434   ac_outfile=conftest.$ac_objext
15435    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15436    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15437    # Insert the option either (1) after the last *FLAGS variable, or
15438    # (2) before a word containing "conftest.", or (3) at the end.
15439    # Note that $ac_compile itself does not contain backslashes and begins
15440    # with a dollar sign (not a hyphen), so the echo should work correctly.
15441    # The option is referenced via a variable to avoid confusing sed.
15442    lt_compile=`echo "$ac_compile" | $SED \
15443    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15444    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15445    -e 's:$: $lt_compiler_flag:'`
15446    (eval echo "\"\$as_me:15446: $lt_compile\"" >&5)
15447    (eval "$lt_compile" 2>conftest.err)
15448    ac_status=$?
15449    cat conftest.err >&5
15450    echo "$as_me:15450: \$? = $ac_status" >&5
15451    if (exit $ac_status) && test -s "$ac_outfile"; then
15452      # The compiler can only warn and ignore the option if not recognized
15453      # So say no if there are warnings
15454      if test ! -s conftest.err; then
15455        lt_prog_compiler_pic_works_GCJ=yes
15456      fi
15457    fi
15458    $rm conftest*
15459
15460 fi
15461 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15462 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15463
15464 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15465     case $lt_prog_compiler_pic_GCJ in
15466      "" | " "*) ;;
15467      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15468      esac
15469 else
15470     lt_prog_compiler_pic_GCJ=
15471      lt_prog_compiler_can_build_shared_GCJ=no
15472 fi
15473
15474 fi
15475 case "$host_os" in
15476   # For platforms which do not support PIC, -DPIC is meaningless:
15477   *djgpp*)
15478     lt_prog_compiler_pic_GCJ=
15479     ;;
15480   *)
15481     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15482     ;;
15483 esac
15484
15485 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15486 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15487 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15488   echo $ECHO_N "(cached) $ECHO_C" >&6
15489 else
15490   lt_cv_prog_compiler_c_o_GCJ=no
15491    $rm -r conftest 2>/dev/null
15492    mkdir conftest
15493    cd conftest
15494    mkdir out
15495    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15496
15497    lt_compiler_flag="-o out/conftest2.$ac_objext"
15498    # Insert the option either (1) after the last *FLAGS variable, or
15499    # (2) before a word containing "conftest.", or (3) at the end.
15500    # Note that $ac_compile itself does not contain backslashes and begins
15501    # with a dollar sign (not a hyphen), so the echo should work correctly.
15502    lt_compile=`echo "$ac_compile" | $SED \
15503    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15504    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15505    -e 's:$: $lt_compiler_flag:'`
15506    (eval echo "\"\$as_me:15506: $lt_compile\"" >&5)
15507    (eval "$lt_compile" 2>out/conftest.err)
15508    ac_status=$?
15509    cat out/conftest.err >&5
15510    echo "$as_me:15510: \$? = $ac_status" >&5
15511    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15512    then
15513      # The compiler can only warn and ignore the option if not recognized
15514      # So say no if there are warnings
15515      if test ! -s out/conftest.err; then
15516        lt_cv_prog_compiler_c_o_GCJ=yes
15517      fi
15518    fi
15519    chmod u+w .
15520    $rm conftest*
15521    # SGI C++ compiler will create directory out/ii_files/ for
15522    # template instantiation
15523    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15524    $rm out/* && rmdir out
15525    cd ..
15526    rmdir conftest
15527    $rm conftest*
15528
15529 fi
15530 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15531 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15532
15533
15534 hard_links="nottested"
15535 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15536   # do not overwrite the value of need_locks provided by the user
15537   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15538 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15539   hard_links=yes
15540   $rm conftest*
15541   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15542   touch conftest.a
15543   ln conftest.a conftest.b 2>&5 || hard_links=no
15544   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15545   echo "$as_me:$LINENO: result: $hard_links" >&5
15546 echo "${ECHO_T}$hard_links" >&6
15547   if test "$hard_links" = no; then
15548     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15549 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15550     need_locks=warn
15551   fi
15552 else
15553   need_locks=no
15554 fi
15555
15556 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15557 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15558
15559   runpath_var=
15560   allow_undefined_flag_GCJ=
15561   enable_shared_with_static_runtimes_GCJ=no
15562   archive_cmds_GCJ=
15563   archive_expsym_cmds_GCJ=
15564   old_archive_From_new_cmds_GCJ=
15565   old_archive_from_expsyms_cmds_GCJ=
15566   export_dynamic_flag_spec_GCJ=
15567   whole_archive_flag_spec_GCJ=
15568   thread_safe_flag_spec_GCJ=
15569   hardcode_libdir_flag_spec_GCJ=
15570   hardcode_libdir_flag_spec_ld_GCJ=
15571   hardcode_libdir_separator_GCJ=
15572   hardcode_direct_GCJ=no
15573   hardcode_minus_L_GCJ=no
15574   hardcode_shlibpath_var_GCJ=unsupported
15575   link_all_deplibs_GCJ=unknown
15576   hardcode_automatic_GCJ=no
15577   module_cmds_GCJ=
15578   module_expsym_cmds_GCJ=
15579   always_export_symbols_GCJ=no
15580   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15581   # include_expsyms should be a list of space-separated symbols to be *always*
15582   # included in the symbol list
15583   include_expsyms_GCJ=
15584   # exclude_expsyms can be an extended regexp of symbols to exclude
15585   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15586   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15587   # as well as any symbol that contains `d'.
15588   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15589   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15590   # platforms (ab)use it in PIC code, but their linkers get confused if
15591   # the symbol is explicitly referenced.  Since portable code cannot
15592   # rely on this symbol name, it's probably fine to never include it in
15593   # preloaded symbol tables.
15594   extract_expsyms_cmds=
15595
15596   case $host_os in
15597   cygwin* | mingw* | pw32*)
15598     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15599     # When not using gcc, we currently assume that we are using
15600     # Microsoft Visual C++.
15601     if test "$GCC" != yes; then
15602       with_gnu_ld=no
15603     fi
15604     ;;
15605   openbsd*)
15606     with_gnu_ld=no
15607     ;;
15608   esac
15609
15610   ld_shlibs_GCJ=yes
15611   if test "$with_gnu_ld" = yes; then
15612     # If archive_cmds runs LD, not CC, wlarc should be empty
15613     wlarc='${wl}'
15614
15615     # See if GNU ld supports shared libraries.
15616     case $host_os in
15617     aix3* | aix4* | aix5*)
15618       # On AIX/PPC, the GNU linker is very broken
15619       if test "$host_cpu" != ia64; then
15620         ld_shlibs_GCJ=no
15621         cat <<EOF 1>&2
15622
15623 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15624 *** to be unable to reliably create shared libraries on AIX.
15625 *** Therefore, libtool is disabling shared libraries support.  If you
15626 *** really care for shared libraries, you may want to modify your PATH
15627 *** so that a non-GNU linker is found, and then restart.
15628
15629 EOF
15630       fi
15631       ;;
15632
15633     amigaos*)
15634       archive_cmds_GCJ='$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)'
15635       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15636       hardcode_minus_L_GCJ=yes
15637
15638       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15639       # that the semantics of dynamic libraries on AmigaOS, at least up
15640       # to version 4, is to share data among multiple programs linked
15641       # with the same dynamic library.  Since this doesn't match the
15642       # behavior of shared libraries on other platforms, we can't use
15643       # them.
15644       ld_shlibs_GCJ=no
15645       ;;
15646
15647     beos*)
15648       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15649         allow_undefined_flag_GCJ=unsupported
15650         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15651         # support --undefined.  This deserves some investigation.  FIXME
15652         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15653       else
15654         ld_shlibs_GCJ=no
15655       fi
15656       ;;
15657
15658     cygwin* | mingw* | pw32*)
15659       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15660       # as there is no search path for DLLs.
15661       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15662       allow_undefined_flag_GCJ=unsupported
15663       always_export_symbols_GCJ=no
15664       enable_shared_with_static_runtimes_GCJ=yes
15665       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15666
15667       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15668         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15669         # If the export-symbols file already is a .def file (1st line
15670         # is EXPORTS), use it as is; otherwise, prepend...
15671         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15672           cp $export_symbols $output_objdir/$soname.def;
15673         else
15674           echo EXPORTS > $output_objdir/$soname.def;
15675           cat $export_symbols >> $output_objdir/$soname.def;
15676         fi~
15677         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15678       else
15679         ld_shlibs=no
15680       fi
15681       ;;
15682
15683     netbsd*)
15684       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15685         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15686         wlarc=
15687       else
15688         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15689         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15690       fi
15691       ;;
15692
15693     solaris* | sysv5*)
15694       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15695         ld_shlibs_GCJ=no
15696         cat <<EOF 1>&2
15697
15698 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15699 *** create shared libraries on Solaris systems.  Therefore, libtool
15700 *** is disabling shared libraries support.  We urge you to upgrade GNU
15701 *** binutils to release 2.9.1 or newer.  Another option is to modify
15702 *** your PATH or compiler configuration so that the native linker is
15703 *** used, and then restart.
15704
15705 EOF
15706       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15707         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15708         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15709       else
15710         ld_shlibs_GCJ=no
15711       fi
15712       ;;
15713
15714     sunos4*)
15715       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15716       wlarc=
15717       hardcode_direct_GCJ=yes
15718       hardcode_shlibpath_var_GCJ=no
15719       ;;
15720
15721   linux*)
15722     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15723         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15724         archive_cmds_GCJ="$tmp_archive_cmds"
15725       supports_anon_versioning=no
15726       case `$LD -v 2>/dev/null` in
15727         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15728         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15729         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15730         *\ 2.11.*) ;; # other 2.11 versions
15731         *) supports_anon_versioning=yes ;;
15732       esac
15733       if test $supports_anon_versioning = yes; then
15734         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15735 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15736 $echo "local: *; };" >> $output_objdir/$libname.ver~
15737         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15738       else
15739         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15740       fi
15741     else
15742       ld_shlibs_GCJ=no
15743     fi
15744     ;;
15745
15746     *)
15747       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15748         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15749         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15750       else
15751         ld_shlibs_GCJ=no
15752       fi
15753       ;;
15754     esac
15755
15756     if test "$ld_shlibs_GCJ" = yes; then
15757       runpath_var=LD_RUN_PATH
15758       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15759       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15760       # ancient GNU ld didn't support --whole-archive et. al.
15761       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15762         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15763       else
15764         whole_archive_flag_spec_GCJ=
15765       fi
15766     fi
15767   else
15768     # PORTME fill in a description of your system's linker (not GNU ld)
15769     case $host_os in
15770     aix3*)
15771       allow_undefined_flag_GCJ=unsupported
15772       always_export_symbols_GCJ=yes
15773       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15774       # Note: this linker hardcodes the directories in LIBPATH if there
15775       # are no directories specified by -L.
15776       hardcode_minus_L_GCJ=yes
15777       if test "$GCC" = yes && test -z "$link_static_flag"; then
15778         # Neither direct hardcoding nor static linking is supported with a
15779         # broken collect2.
15780         hardcode_direct_GCJ=unsupported
15781       fi
15782       ;;
15783
15784     aix4* | aix5*)
15785       if test "$host_cpu" = ia64; then
15786         # On IA64, the linker does run time linking by default, so we don't
15787         # have to do anything special.
15788         aix_use_runtimelinking=no
15789         exp_sym_flag='-Bexport'
15790         no_entry_flag=""
15791       else
15792         # If we're using GNU nm, then we don't want the "-C" option.
15793         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15794         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15795           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15796         else
15797           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15798         fi
15799         aix_use_runtimelinking=no
15800
15801         # Test if we are trying to use run time linking or normal
15802         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15803         # need to do runtime linking.
15804         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15805           for ld_flag in $LDFLAGS; do
15806           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15807             aix_use_runtimelinking=yes
15808             break
15809           fi
15810           done
15811         esac
15812
15813         exp_sym_flag='-bexport'
15814         no_entry_flag='-bnoentry'
15815       fi
15816
15817       # When large executables or shared objects are built, AIX ld can
15818       # have problems creating the table of contents.  If linking a library
15819       # or program results in "error TOC overflow" add -mminimal-toc to
15820       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15821       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15822
15823       archive_cmds_GCJ=''
15824       hardcode_direct_GCJ=yes
15825       hardcode_libdir_separator_GCJ=':'
15826       link_all_deplibs_GCJ=yes
15827
15828       if test "$GCC" = yes; then
15829         case $host_os in aix4.012|aix4.012.*)
15830         # We only want to do this on AIX 4.2 and lower, the check
15831         # below for broken collect2 doesn't work under 4.3+
15832           collect2name=`${CC} -print-prog-name=collect2`
15833           if test -f "$collect2name" && \
15834            strings "$collect2name" | grep resolve_lib_name >/dev/null
15835           then
15836           # We have reworked collect2
15837           hardcode_direct_GCJ=yes
15838           else
15839           # We have old collect2
15840           hardcode_direct_GCJ=unsupported
15841           # It fails to find uninstalled libraries when the uninstalled
15842           # path is not listed in the libpath.  Setting hardcode_minus_L
15843           # to unsupported forces relinking
15844           hardcode_minus_L_GCJ=yes
15845           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15846           hardcode_libdir_separator_GCJ=
15847           fi
15848         esac
15849         shared_flag='-shared'
15850       else
15851         # not using gcc
15852         if test "$host_cpu" = ia64; then
15853         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15854         # chokes on -Wl,-G. The following line is correct:
15855           shared_flag='-G'
15856         else
15857         if test "$aix_use_runtimelinking" = yes; then
15858             shared_flag='${wl}-G'
15859           else
15860             shared_flag='${wl}-bM:SRE'
15861         fi
15862         fi
15863       fi
15864
15865       # It seems that -bexpall does not export symbols beginning with
15866       # underscore (_), so it is better to generate a list of symbols to export.
15867       always_export_symbols_GCJ=yes
15868       if test "$aix_use_runtimelinking" = yes; then
15869         # Warning - without using the other runtime loading flags (-brtl),
15870         # -berok will link without error, but may produce a broken library.
15871         allow_undefined_flag_GCJ='-berok'
15872        # Determine the default libpath from the value encoded in an empty executable.
15873        cat >conftest.$ac_ext <<_ACEOF
15874 /* confdefs.h.  */
15875 _ACEOF
15876 cat confdefs.h >>conftest.$ac_ext
15877 cat >>conftest.$ac_ext <<_ACEOF
15878 /* end confdefs.h.  */
15879
15880 int
15881 main ()
15882 {
15883
15884   ;
15885   return 0;
15886 }
15887 _ACEOF
15888 rm -f conftest.$ac_objext conftest$ac_exeext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15890   (eval $ac_link) 2>conftest.er1
15891   ac_status=$?
15892   grep -v '^ *+' conftest.er1 >conftest.err
15893   rm -f conftest.er1
15894   cat conftest.err >&5
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); } &&
15897          { ac_try='test -z "$ac_c_werror_flag"
15898                          || test ! -s conftest.err'
15899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900   (eval $ac_try) 2>&5
15901   ac_status=$?
15902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); }; } &&
15904          { ac_try='test -s conftest$ac_exeext'
15905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906   (eval $ac_try) 2>&5
15907   ac_status=$?
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); }; }; then
15910
15911 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15912 }'`
15913 # Check for a 64-bit object if we didn't find anything.
15914 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15915 }'`; fi
15916 else
15917   echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15919
15920 fi
15921 rm -f conftest.err conftest.$ac_objext \
15922       conftest$ac_exeext conftest.$ac_ext
15923 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15924
15925        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15926         archive_expsym_cmds_GCJ="\$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"
15927        else
15928         if test "$host_cpu" = ia64; then
15929           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15930           allow_undefined_flag_GCJ="-z nodefs"
15931           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15932         else
15933          # Determine the default libpath from the value encoded in an empty executable.
15934          cat >conftest.$ac_ext <<_ACEOF
15935 /* confdefs.h.  */
15936 _ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h.  */
15940
15941 int
15942 main ()
15943 {
15944
15945   ;
15946   return 0;
15947 }
15948 _ACEOF
15949 rm -f conftest.$ac_objext conftest$ac_exeext
15950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15951   (eval $ac_link) 2>conftest.er1
15952   ac_status=$?
15953   grep -v '^ *+' conftest.er1 >conftest.err
15954   rm -f conftest.er1
15955   cat conftest.err >&5
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); } &&
15958          { ac_try='test -z "$ac_c_werror_flag"
15959                          || test ! -s conftest.err'
15960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961   (eval $ac_try) 2>&5
15962   ac_status=$?
15963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964   (exit $ac_status); }; } &&
15965          { ac_try='test -s conftest$ac_exeext'
15966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967   (eval $ac_try) 2>&5
15968   ac_status=$?
15969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970   (exit $ac_status); }; }; then
15971
15972 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15973 }'`
15974 # Check for a 64-bit object if we didn't find anything.
15975 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15976 }'`; fi
15977 else
15978   echo "$as_me: failed program was:" >&5
15979 sed 's/^/| /' conftest.$ac_ext >&5
15980
15981 fi
15982 rm -f conftest.err conftest.$ac_objext \
15983       conftest$ac_exeext conftest.$ac_ext
15984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15985
15986          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15987           # Warning - without using the other run time loading flags,
15988           # -berok will link without error, but may produce a broken library.
15989           no_undefined_flag_GCJ=' ${wl}-bernotok'
15990           allow_undefined_flag_GCJ=' ${wl}-berok'
15991           # -bexpall does not export symbols beginning with underscore (_)
15992           always_export_symbols_GCJ=yes
15993           # Exported symbols can be pulled into shared objects from archives
15994           whole_archive_flag_spec_GCJ=' '
15995           archive_cmds_need_lc_GCJ=yes
15996           # This is similar to how AIX traditionally builds it's shared libraries.
15997           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15998         fi
15999       fi
16000       ;;
16001
16002     amigaos*)
16003       archive_cmds_GCJ='$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)'
16004       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16005       hardcode_minus_L_GCJ=yes
16006       # see comment about different semantics on the GNU ld section
16007       ld_shlibs_GCJ=no
16008       ;;
16009
16010     bsdi4*)
16011       export_dynamic_flag_spec_GCJ=-rdynamic
16012       ;;
16013
16014     cygwin* | mingw* | pw32*)
16015       # When not using gcc, we currently assume that we are using
16016       # Microsoft Visual C++.
16017       # hardcode_libdir_flag_spec is actually meaningless, as there is
16018       # no search path for DLLs.
16019       hardcode_libdir_flag_spec_GCJ=' '
16020       allow_undefined_flag_GCJ=unsupported
16021       # Tell ltmain to make .lib files, not .a files.
16022       libext=lib
16023       # Tell ltmain to make .dll files, not .so files.
16024       shrext=".dll"
16025       # FIXME: Setting linknames here is a bad hack.
16026       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16027       # The linker will automatically build a .lib file if we build a DLL.
16028       old_archive_From_new_cmds_GCJ='true'
16029       # FIXME: Should let the user specify the lib program.
16030       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16031       fix_srcfile_path='`cygpath -w "$srcfile"`'
16032       enable_shared_with_static_runtimes_GCJ=yes
16033       ;;
16034
16035     darwin* | rhapsody*)
16036     if test "$GXX" = yes ; then
16037       archive_cmds_need_lc_GCJ=no
16038       case "$host_os" in
16039       rhapsody* | darwin1.[012])
16040         allow_undefined_flag_GCJ='-undefined suppress'
16041         ;;
16042       *) # Darwin 1.3 on
16043       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16044         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16045       else
16046         case ${MACOSX_DEPLOYMENT_TARGET} in
16047           10.[012])
16048             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16049             ;;
16050           10.*)
16051             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16052             ;;
16053         esac
16054       fi
16055         ;;
16056       esac
16057         lt_int_apple_cc_single_mod=no
16058         output_verbose_link_cmd='echo'
16059         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16060           lt_int_apple_cc_single_mod=yes
16061         fi
16062         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16063           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16064         else
16065         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16066       fi
16067       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16068       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16069         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16070           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16071         else
16072           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16073         fi
16074           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16075       hardcode_direct_GCJ=no
16076       hardcode_automatic_GCJ=yes
16077       hardcode_shlibpath_var_GCJ=unsupported
16078       whole_archive_flag_spec_GCJ='-all_load $convenience'
16079       link_all_deplibs_GCJ=yes
16080     else
16081       ld_shlibs_GCJ=no
16082     fi
16083       ;;
16084
16085     dgux*)
16086       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16087       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16088       hardcode_shlibpath_var_GCJ=no
16089       ;;
16090
16091     freebsd1*)
16092       ld_shlibs_GCJ=no
16093       ;;
16094
16095     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16096     # support.  Future versions do this automatically, but an explicit c++rt0.o
16097     # does not break anything, and helps significantly (at the cost of a little
16098     # extra space).
16099     freebsd2.2*)
16100       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16101       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16102       hardcode_direct_GCJ=yes
16103       hardcode_shlibpath_var_GCJ=no
16104       ;;
16105
16106     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16107     freebsd2*)
16108       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16109       hardcode_direct_GCJ=yes
16110       hardcode_minus_L_GCJ=yes
16111       hardcode_shlibpath_var_GCJ=no
16112       ;;
16113
16114     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16115     freebsd* | kfreebsd*-gnu)
16116       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16117       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16118       hardcode_direct_GCJ=yes
16119       hardcode_shlibpath_var_GCJ=no
16120       ;;
16121
16122     hpux9*)
16123       if test "$GCC" = yes; then
16124         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16125       else
16126         archive_cmds_GCJ='$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'
16127       fi
16128       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16129       hardcode_libdir_separator_GCJ=:
16130       hardcode_direct_GCJ=yes
16131
16132       # hardcode_minus_L: Not really in the search PATH,
16133       # but as the default location of the library.
16134       hardcode_minus_L_GCJ=yes
16135       export_dynamic_flag_spec_GCJ='${wl}-E'
16136       ;;
16137
16138     hpux10* | hpux11*)
16139       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16140         case "$host_cpu" in
16141         hppa*64*|ia64*)
16142           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16143           ;;
16144         *)
16145           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16146           ;;
16147         esac
16148       else
16149         case "$host_cpu" in
16150         hppa*64*|ia64*)
16151           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16152           ;;
16153         *)
16154           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16155           ;;
16156         esac
16157       fi
16158       if test "$with_gnu_ld" = no; then
16159         case "$host_cpu" in
16160         hppa*64*)
16161           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16162           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16163           hardcode_libdir_separator_GCJ=:
16164           hardcode_direct_GCJ=no
16165           hardcode_shlibpath_var_GCJ=no
16166           ;;
16167         ia64*)
16168           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16169           hardcode_direct_GCJ=no
16170           hardcode_shlibpath_var_GCJ=no
16171
16172           # hardcode_minus_L: Not really in the search PATH,
16173           # but as the default location of the library.
16174           hardcode_minus_L_GCJ=yes
16175           ;;
16176         *)
16177           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16178           hardcode_libdir_separator_GCJ=:
16179           hardcode_direct_GCJ=yes
16180           export_dynamic_flag_spec_GCJ='${wl}-E'
16181
16182           # hardcode_minus_L: Not really in the search PATH,
16183           # but as the default location of the library.
16184           hardcode_minus_L_GCJ=yes
16185           ;;
16186         esac
16187       fi
16188       ;;
16189
16190     irix5* | irix6* | nonstopux*)
16191       if test "$GCC" = yes; then
16192         archive_cmds_GCJ='$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'
16193       else
16194         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16195         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16196       fi
16197       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16198       hardcode_libdir_separator_GCJ=:
16199       link_all_deplibs_GCJ=yes
16200       ;;
16201
16202     netbsd*)
16203       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16204         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16205       else
16206         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16207       fi
16208       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16209       hardcode_direct_GCJ=yes
16210       hardcode_shlibpath_var_GCJ=no
16211       ;;
16212
16213     newsos6)
16214       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16215       hardcode_direct_GCJ=yes
16216       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16217       hardcode_libdir_separator_GCJ=:
16218       hardcode_shlibpath_var_GCJ=no
16219       ;;
16220
16221     openbsd*)
16222       hardcode_direct_GCJ=yes
16223       hardcode_shlibpath_var_GCJ=no
16224       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16225         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16226         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16227         export_dynamic_flag_spec_GCJ='${wl}-E'
16228       else
16229        case $host_os in
16230          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16231            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16232            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16233            ;;
16234          *)
16235            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16236            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16237            ;;
16238        esac
16239       fi
16240       ;;
16241
16242     os2*)
16243       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16244       hardcode_minus_L_GCJ=yes
16245       allow_undefined_flag_GCJ=unsupported
16246       archive_cmds_GCJ='$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'
16247       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16248       ;;
16249
16250     osf3*)
16251       if test "$GCC" = yes; then
16252         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16253         archive_cmds_GCJ='$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'
16254       else
16255         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16256         archive_cmds_GCJ='$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'
16257       fi
16258       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16259       hardcode_libdir_separator_GCJ=:
16260       ;;
16261
16262     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16263       if test "$GCC" = yes; then
16264         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16265         archive_cmds_GCJ='$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'
16266         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16267       else
16268         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16269         archive_cmds_GCJ='$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'
16270         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16271         $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'
16272
16273         # Both c and cxx compiler support -rpath directly
16274         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16275       fi
16276       hardcode_libdir_separator_GCJ=:
16277       ;;
16278
16279     sco3.2v5*)
16280       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16281       hardcode_shlibpath_var_GCJ=no
16282       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16283       runpath_var=LD_RUN_PATH
16284       hardcode_runpath_var=yes
16285       ;;
16286
16287     solaris*)
16288       no_undefined_flag_GCJ=' -z text'
16289       if test "$GCC" = yes; then
16290         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16291         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16292           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16293       else
16294         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16295         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16296         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16297       fi
16298       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16299       hardcode_shlibpath_var_GCJ=no
16300       case $host_os in
16301       solaris2.[0-5] | solaris2.[0-5].*) ;;
16302       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16303         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16304       esac
16305       link_all_deplibs_GCJ=yes
16306       ;;
16307
16308     sunos4*)
16309       if test "x$host_vendor" = xsequent; then
16310         # Use $CC to link under sequent, because it throws in some extra .o
16311         # files that make .init and .fini sections work.
16312         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16313       else
16314         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16315       fi
16316       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16317       hardcode_direct_GCJ=yes
16318       hardcode_minus_L_GCJ=yes
16319       hardcode_shlibpath_var_GCJ=no
16320       ;;
16321
16322     sysv4)
16323       case $host_vendor in
16324         sni)
16325           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16326           hardcode_direct_GCJ=yes # is this really true???
16327         ;;
16328         siemens)
16329           ## LD is ld it makes a PLAMLIB
16330           ## CC just makes a GrossModule.
16331           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16332           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16333           hardcode_direct_GCJ=no
16334         ;;
16335         motorola)
16336           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16337           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16338         ;;
16339       esac
16340       runpath_var='LD_RUN_PATH'
16341       hardcode_shlibpath_var_GCJ=no
16342       ;;
16343
16344     sysv4.3*)
16345       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16346       hardcode_shlibpath_var_GCJ=no
16347       export_dynamic_flag_spec_GCJ='-Bexport'
16348       ;;
16349
16350     sysv4*MP*)
16351       if test -d /usr/nec; then
16352         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16353         hardcode_shlibpath_var_GCJ=no
16354         runpath_var=LD_RUN_PATH
16355         hardcode_runpath_var=yes
16356         ld_shlibs_GCJ=yes
16357       fi
16358       ;;
16359
16360     sysv4.2uw2*)
16361       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16362       hardcode_direct_GCJ=yes
16363       hardcode_minus_L_GCJ=no
16364       hardcode_shlibpath_var_GCJ=no
16365       hardcode_runpath_var=yes
16366       runpath_var=LD_RUN_PATH
16367       ;;
16368
16369    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16370       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16371       if test "$GCC" = yes; then
16372         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16373       else
16374         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16375       fi
16376       runpath_var='LD_RUN_PATH'
16377       hardcode_shlibpath_var_GCJ=no
16378       ;;
16379
16380     sysv5*)
16381       no_undefined_flag_GCJ=' -z text'
16382       # $CC -shared without GNU ld will not create a library from C++
16383       # object files and a static libstdc++, better avoid it by now
16384       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16385       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16386                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16387       hardcode_libdir_flag_spec_GCJ=
16388       hardcode_shlibpath_var_GCJ=no
16389       runpath_var='LD_RUN_PATH'
16390       ;;
16391
16392     uts4*)
16393       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16394       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16395       hardcode_shlibpath_var_GCJ=no
16396       ;;
16397
16398     *)
16399       ld_shlibs_GCJ=no
16400       ;;
16401     esac
16402   fi
16403
16404 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16405 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16406 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16407
16408 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16409 if test "$GCC" = yes; then
16410   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16411 fi
16412
16413 #
16414 # Do we need to explicitly link libc?
16415 #
16416 case "x$archive_cmds_need_lc_GCJ" in
16417 x|xyes)
16418   # Assume -lc should be added
16419   archive_cmds_need_lc_GCJ=yes
16420
16421   if test "$enable_shared" = yes && test "$GCC" = yes; then
16422     case $archive_cmds_GCJ in
16423     *'~'*)
16424       # FIXME: we may have to deal with multi-command sequences.
16425       ;;
16426     '$CC '*)
16427       # Test whether the compiler implicitly links with -lc since on some
16428       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16429       # to ld, don't add -lc before -lgcc.
16430       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16431 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16432       $rm conftest*
16433       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16434
16435       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16436   (eval $ac_compile) 2>&5
16437   ac_status=$?
16438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439   (exit $ac_status); } 2>conftest.err; then
16440         soname=conftest
16441         lib=conftest
16442         libobjs=conftest.$ac_objext
16443         deplibs=
16444         wl=$lt_prog_compiler_wl_GCJ
16445         compiler_flags=-v
16446         linker_flags=-v
16447         verstring=
16448         output_objdir=.
16449         libname=conftest
16450         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16451         allow_undefined_flag_GCJ=
16452         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16453   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16454   ac_status=$?
16455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456   (exit $ac_status); }
16457         then
16458           archive_cmds_need_lc_GCJ=no
16459         else
16460           archive_cmds_need_lc_GCJ=yes
16461         fi
16462         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16463       else
16464         cat conftest.err 1>&5
16465       fi
16466       $rm conftest*
16467       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16468 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16469       ;;
16470     esac
16471   fi
16472   ;;
16473 esac
16474
16475 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16476 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16477 library_names_spec=
16478 libname_spec='lib$name'
16479 soname_spec=
16480 shrext=".so"
16481 postinstall_cmds=
16482 postuninstall_cmds=
16483 finish_cmds=
16484 finish_eval=
16485 shlibpath_var=
16486 shlibpath_overrides_runpath=unknown
16487 version_type=none
16488 dynamic_linker="$host_os ld.so"
16489 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16490 if test "$GCC" = yes; then
16491   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16492   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16493     # if the path contains ";" then we assume it to be the separator
16494     # otherwise default to the standard path separator (i.e. ":") - it is
16495     # assumed that no part of a normal pathname contains ";" but that should
16496     # okay in the real world where ";" in dirpaths is itself problematic.
16497     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16498   else
16499     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16500   fi
16501 else
16502   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16503 fi
16504 need_lib_prefix=unknown
16505 hardcode_into_libs=no
16506
16507 # when you set need_version to no, make sure it does not cause -set_version
16508 # flags to be left without arguments
16509 need_version=unknown
16510
16511 case $host_os in
16512 aix3*)
16513   version_type=linux
16514   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16515   shlibpath_var=LIBPATH
16516
16517   # AIX 3 has no versioning support, so we append a major version to the name.
16518   soname_spec='${libname}${release}${shared_ext}$major'
16519   ;;
16520
16521 aix4* | aix5*)
16522   version_type=linux
16523   need_lib_prefix=no
16524   need_version=no
16525   hardcode_into_libs=yes
16526   if test "$host_cpu" = ia64; then
16527     # AIX 5 supports IA64
16528     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16529     shlibpath_var=LD_LIBRARY_PATH
16530   else
16531     # With GCC up to 2.95.x, collect2 would create an import file
16532     # for dependence libraries.  The import file would start with
16533     # the line `#! .'.  This would cause the generated library to
16534     # depend on `.', always an invalid library.  This was fixed in
16535     # development snapshots of GCC prior to 3.0.
16536     case $host_os in
16537       aix4 | aix4.[01] | aix4.[01].*)
16538       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16539            echo ' yes '
16540            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16541         :
16542       else
16543         can_build_shared=no
16544       fi
16545       ;;
16546     esac
16547     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16548     # soname into executable. Probably we can add versioning support to
16549     # collect2, so additional links can be useful in future.
16550     if test "$aix_use_runtimelinking" = yes; then
16551       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16552       # instead of lib<name>.a to let people know that these are not
16553       # typical AIX shared libraries.
16554       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555     else
16556       # We preserve .a as extension for shared libraries through AIX4.2
16557       # and later when we are not doing run time linking.
16558       library_names_spec='${libname}${release}.a $libname.a'
16559       soname_spec='${libname}${release}${shared_ext}$major'
16560     fi
16561     shlibpath_var=LIBPATH
16562   fi
16563   ;;
16564
16565 amigaos*)
16566   library_names_spec='$libname.ixlibrary $libname.a'
16567   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16568   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'
16569   ;;
16570
16571 beos*)
16572   library_names_spec='${libname}${shared_ext}'
16573   dynamic_linker="$host_os ld.so"
16574   shlibpath_var=LIBRARY_PATH
16575   ;;
16576
16577 bsdi4*)
16578   version_type=linux
16579   need_version=no
16580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581   soname_spec='${libname}${release}${shared_ext}$major'
16582   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16583   shlibpath_var=LD_LIBRARY_PATH
16584   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16585   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16586   # the default ld.so.conf also contains /usr/contrib/lib and
16587   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16588   # libtool to hard-code these into programs
16589   ;;
16590
16591 cygwin* | mingw* | pw32*)
16592   version_type=windows
16593   shrext=".dll"
16594   need_version=no
16595   need_lib_prefix=no
16596
16597   case $GCC,$host_os in
16598   yes,cygwin* | yes,mingw* | yes,pw32*)
16599     library_names_spec='$libname.dll.a'
16600     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16601     postinstall_cmds='base_file=`basename \${file}`~
16602       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16603       dldir=$destdir/`dirname \$dlpath`~
16604       test -d \$dldir || mkdir -p \$dldir~
16605       $install_prog $dir/$dlname \$dldir/$dlname'
16606     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16607       dlpath=$dir/\$dldll~
16608        $rm \$dlpath'
16609     shlibpath_overrides_runpath=yes
16610
16611     case $host_os in
16612     cygwin*)
16613       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16614       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16615       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16616       ;;
16617     mingw*)
16618       # MinGW DLLs use traditional 'lib' prefix
16619       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16620       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16621       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16622         # It is most probably a Windows format PATH printed by
16623         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16624         # path with ; separators, and with drive letters. We can handle the
16625         # drive letters (cygwin fileutils understands them), so leave them,
16626         # especially as we might pass files found there to a mingw objdump,
16627         # which wouldn't understand a cygwinified path. Ahh.
16628         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16629       else
16630         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16631       fi
16632       ;;
16633     pw32*)
16634       # pw32 DLLs use 'pw' prefix rather than 'lib'
16635       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16636       ;;
16637     esac
16638     ;;
16639
16640   linux*)
16641     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16642       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16643       supports_anon_versioning=no
16644       case `$LD -v 2>/dev/null` in
16645         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16646         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16647         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16648         *\ 2.11.*) ;; # other 2.11 versions
16649         *) supports_anon_versioning=yes ;;
16650       esac
16651       if test $supports_anon_versioning = yes; then
16652         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
16653 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16654 $echo "local: *; };" >> $output_objdir/$libname.ver~
16655         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16656       else
16657         $archive_expsym_cmds="$archive_cmds"
16658       fi
16659     else
16660       ld_shlibs=no
16661     fi
16662     ;;
16663
16664   *)
16665     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16666     ;;
16667   esac
16668   dynamic_linker='Win32 ld.exe'
16669   # FIXME: first we should search . and the directory the executable is in
16670   shlibpath_var=PATH
16671   ;;
16672
16673 darwin* | rhapsody*)
16674   dynamic_linker="$host_os dyld"
16675   version_type=darwin
16676   need_lib_prefix=no
16677   need_version=no
16678   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16679   soname_spec='${libname}${release}${major}$shared_ext'
16680   shlibpath_overrides_runpath=yes
16681   shlibpath_var=DYLD_LIBRARY_PATH
16682   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16683   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16684   if test "$GCC" = yes; then
16685     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16686   else
16687     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16688   fi
16689   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16690   ;;
16691
16692 dgux*)
16693   version_type=linux
16694   need_lib_prefix=no
16695   need_version=no
16696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16697   soname_spec='${libname}${release}${shared_ext}$major'
16698   shlibpath_var=LD_LIBRARY_PATH
16699   ;;
16700
16701 freebsd1*)
16702   dynamic_linker=no
16703   ;;
16704
16705 kfreebsd*-gnu)
16706   version_type=linux
16707   need_lib_prefix=no
16708   need_version=no
16709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16710   soname_spec='${libname}${release}${shared_ext}$major'
16711   shlibpath_var=LD_LIBRARY_PATH
16712   shlibpath_overrides_runpath=no
16713   hardcode_into_libs=yes
16714   dynamic_linker='GNU ld.so'
16715   ;;
16716
16717 freebsd*)
16718   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16719   version_type=freebsd-$objformat
16720   case $version_type in
16721     freebsd-elf*)
16722       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16723       need_version=no
16724       need_lib_prefix=no
16725       ;;
16726     freebsd-*)
16727       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16728       need_version=yes
16729       ;;
16730   esac
16731   shlibpath_var=LD_LIBRARY_PATH
16732   case $host_os in
16733   freebsd2*)
16734     shlibpath_overrides_runpath=yes
16735     ;;
16736   freebsd3.01* | freebsdelf3.01*)
16737     shlibpath_overrides_runpath=yes
16738     hardcode_into_libs=yes
16739     ;;
16740   *) # from 3.2 on
16741     shlibpath_overrides_runpath=no
16742     hardcode_into_libs=yes
16743     ;;
16744   esac
16745   ;;
16746
16747 gnu*)
16748   version_type=linux
16749   need_lib_prefix=no
16750   need_version=no
16751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16752   soname_spec='${libname}${release}${shared_ext}$major'
16753   shlibpath_var=LD_LIBRARY_PATH
16754   hardcode_into_libs=yes
16755   ;;
16756
16757 hpux9* | hpux10* | hpux11*)
16758   # Give a soname corresponding to the major version so that dld.sl refuses to
16759   # link against other versions.
16760   version_type=sunos
16761   need_lib_prefix=no
16762   need_version=no
16763   case "$host_cpu" in
16764   ia64*)
16765     shrext='.so'
16766     hardcode_into_libs=yes
16767     dynamic_linker="$host_os dld.so"
16768     shlibpath_var=LD_LIBRARY_PATH
16769     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16770     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16771     soname_spec='${libname}${release}${shared_ext}$major'
16772     if test "X$HPUX_IA64_MODE" = X32; then
16773       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16774     else
16775       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16776     fi
16777     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16778     ;;
16779    hppa*64*)
16780      shrext='.sl'
16781      hardcode_into_libs=yes
16782      dynamic_linker="$host_os dld.sl"
16783      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16784      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16785      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16786      soname_spec='${libname}${release}${shared_ext}$major'
16787      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16788      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16789      ;;
16790    *)
16791     shrext='.sl'
16792     dynamic_linker="$host_os dld.sl"
16793     shlibpath_var=SHLIB_PATH
16794     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16795     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16796     soname_spec='${libname}${release}${shared_ext}$major'
16797     ;;
16798   esac
16799   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16800   postinstall_cmds='chmod 555 $lib'
16801   ;;
16802
16803 irix5* | irix6* | nonstopux*)
16804   case $host_os in
16805     nonstopux*) version_type=nonstopux ;;
16806     *)
16807         if test "$lt_cv_prog_gnu_ld" = yes; then
16808                 version_type=linux
16809         else
16810                 version_type=irix
16811         fi ;;
16812   esac
16813   need_lib_prefix=no
16814   need_version=no
16815   soname_spec='${libname}${release}${shared_ext}$major'
16816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16817   case $host_os in
16818   irix5* | nonstopux*)
16819     libsuff= shlibsuff=
16820     ;;
16821   *)
16822     case $LD in # libtool.m4 will add one of these switches to LD
16823     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16824       libsuff= shlibsuff= libmagic=32-bit;;
16825     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16826       libsuff=32 shlibsuff=N32 libmagic=N32;;
16827     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16828       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16829     *) libsuff= shlibsuff= libmagic=never-match;;
16830     esac
16831     ;;
16832   esac
16833   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16834   shlibpath_overrides_runpath=no
16835   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16836   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16837   hardcode_into_libs=yes
16838   ;;
16839
16840 # No shared lib support for Linux oldld, aout, or coff.
16841 linux*oldld* | linux*aout* | linux*coff*)
16842   dynamic_linker=no
16843   ;;
16844
16845 # This must be Linux ELF.
16846 linux*)
16847   version_type=linux
16848   need_lib_prefix=no
16849   need_version=no
16850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851   soname_spec='${libname}${release}${shared_ext}$major'
16852   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16853   shlibpath_var=LD_LIBRARY_PATH
16854   shlibpath_overrides_runpath=no
16855   # This implies no fast_install, which is unacceptable.
16856   # Some rework will be needed to allow for fast_install
16857   # before this can be enabled.
16858   hardcode_into_libs=yes
16859
16860   # Append ld.so.conf contents to the search path
16861   if test -f /etc/ld.so.conf; then
16862     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16863     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16864   fi
16865
16866   case $host_cpu:$lt_cv_cc_64bit_output in
16867   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
16868     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
16869     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
16870     ;;
16871   esac
16872
16873   # We used to test for /lib/ld.so.1 and disable shared libraries on
16874   # powerpc, because MkLinux only supported shared libraries with the
16875   # GNU dynamic linker.  Since this was broken with cross compilers,
16876   # most powerpc-linux boxes support dynamic linking these days and
16877   # people can always --disable-shared, the test was removed, and we
16878   # assume the GNU/Linux dynamic linker is in use.
16879   dynamic_linker='GNU/Linux ld.so'
16880
16881   # Find out which ABI we are using (multilib Linux x86_64 hack).
16882   libsuff=
16883   case "$host_cpu" in
16884   x86_64*)
16885     echo '#line 16885 "configure"' > conftest.$ac_ext
16886     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16887   (eval $ac_compile) 2>&5
16888   ac_status=$?
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   (exit $ac_status); }; then
16891       case `/usr/bin/file conftest.$ac_objext` in
16892       *64-bit*)
16893         libsuff=64
16894         ;;
16895       esac
16896     fi
16897     rm -rf conftest*
16898     ;;
16899   *)
16900     ;;
16901   esac
16902   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16903   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16904   ;;
16905
16906 knetbsd*-gnu)
16907   version_type=linux
16908   need_lib_prefix=no
16909   need_version=no
16910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16911   soname_spec='${libname}${release}${shared_ext}$major'
16912   shlibpath_var=LD_LIBRARY_PATH
16913   shlibpath_overrides_runpath=no
16914   hardcode_into_libs=yes
16915   dynamic_linker='GNU ld.so'
16916   ;;
16917
16918 netbsd*)
16919   version_type=sunos
16920   need_lib_prefix=no
16921   need_version=no
16922   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16923     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16924     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16925     dynamic_linker='NetBSD (a.out) ld.so'
16926   else
16927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16928     soname_spec='${libname}${release}${shared_ext}$major'
16929     dynamic_linker='NetBSD ld.elf_so'
16930   fi
16931   shlibpath_var=LD_LIBRARY_PATH
16932   shlibpath_overrides_runpath=yes
16933   hardcode_into_libs=yes
16934   ;;
16935
16936 newsos6)
16937   version_type=linux
16938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939   shlibpath_var=LD_LIBRARY_PATH
16940   shlibpath_overrides_runpath=yes
16941   ;;
16942
16943 nto-qnx*)
16944   version_type=linux
16945   need_lib_prefix=no
16946   need_version=no
16947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16948   soname_spec='${libname}${release}${shared_ext}$major'
16949   shlibpath_var=LD_LIBRARY_PATH
16950   shlibpath_overrides_runpath=yes
16951   ;;
16952
16953 openbsd*)
16954   version_type=sunos
16955   need_lib_prefix=no
16956   need_version=yes
16957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16958   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16959   shlibpath_var=LD_LIBRARY_PATH
16960   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16961     case $host_os in
16962       openbsd2.[89] | openbsd2.[89].*)
16963         shlibpath_overrides_runpath=no
16964         ;;
16965       *)
16966         shlibpath_overrides_runpath=yes
16967         ;;
16968       esac
16969   else
16970     shlibpath_overrides_runpath=yes
16971   fi
16972   ;;
16973
16974 os2*)
16975   libname_spec='$name'
16976   shrext=".dll"
16977   need_lib_prefix=no
16978   library_names_spec='$libname${shared_ext} $libname.a'
16979   dynamic_linker='OS/2 ld.exe'
16980   shlibpath_var=LIBPATH
16981   ;;
16982
16983 osf3* | osf4* | osf5*)
16984   version_type=osf
16985   need_lib_prefix=no
16986   need_version=no
16987   soname_spec='${libname}${release}${shared_ext}$major'
16988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16989   shlibpath_var=LD_LIBRARY_PATH
16990   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16991   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16992   ;;
16993
16994 sco3.2v5*)
16995   version_type=osf
16996   soname_spec='${libname}${release}${shared_ext}$major'
16997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998   shlibpath_var=LD_LIBRARY_PATH
16999   ;;
17000
17001 solaris*)
17002   version_type=linux
17003   need_lib_prefix=no
17004   need_version=no
17005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17006   soname_spec='${libname}${release}${shared_ext}$major'
17007   shlibpath_var=LD_LIBRARY_PATH
17008   shlibpath_overrides_runpath=yes
17009   hardcode_into_libs=yes
17010   # ldd complains unless libraries are executable
17011   postinstall_cmds='chmod +x $lib'
17012   ;;
17013
17014 sunos4*)
17015   version_type=sunos
17016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17017   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17018   shlibpath_var=LD_LIBRARY_PATH
17019   shlibpath_overrides_runpath=yes
17020   if test "$with_gnu_ld" = yes; then
17021     need_lib_prefix=no
17022   fi
17023   need_version=yes
17024   ;;
17025
17026 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17027   version_type=linux
17028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17029   soname_spec='${libname}${release}${shared_ext}$major'
17030   shlibpath_var=LD_LIBRARY_PATH
17031   case $host_vendor in
17032     sni)
17033       shlibpath_overrides_runpath=no
17034       need_lib_prefix=no
17035       export_dynamic_flag_spec='${wl}-Blargedynsym'
17036       runpath_var=LD_RUN_PATH
17037       ;;
17038     siemens)
17039       need_lib_prefix=no
17040       ;;
17041     motorola)
17042       need_lib_prefix=no
17043       need_version=no
17044       shlibpath_overrides_runpath=no
17045       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17046       ;;
17047   esac
17048   ;;
17049
17050 sysv4*MP*)
17051   if test -d /usr/nec ;then
17052     version_type=linux
17053     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17054     soname_spec='$libname${shared_ext}.$major'
17055     shlibpath_var=LD_LIBRARY_PATH
17056   fi
17057   ;;
17058
17059 uts4*)
17060   version_type=linux
17061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17062   soname_spec='${libname}${release}${shared_ext}$major'
17063   shlibpath_var=LD_LIBRARY_PATH
17064   ;;
17065
17066 *)
17067   dynamic_linker=no
17068   ;;
17069 esac
17070 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17071 echo "${ECHO_T}$dynamic_linker" >&6
17072 test "$dynamic_linker" = no && can_build_shared=no
17073
17074 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17075 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17076 hardcode_action_GCJ=
17077 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17078    test -n "$runpath_var GCJ" || \
17079    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17080
17081   # We can hardcode non-existant directories.
17082   if test "$hardcode_direct_GCJ" != no &&
17083      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17084      # have to relink, otherwise we might link with an installed library
17085      # when we should be linking with a yet-to-be-installed one
17086      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17087      test "$hardcode_minus_L_GCJ" != no; then
17088     # Linking always hardcodes the temporary library directory.
17089     hardcode_action_GCJ=relink
17090   else
17091     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17092     hardcode_action_GCJ=immediate
17093   fi
17094 else
17095   # We cannot hardcode anything, or else we can only hardcode existing
17096   # directories.
17097   hardcode_action_GCJ=unsupported
17098 fi
17099 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17100 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17101
17102 if test "$hardcode_action_GCJ" = relink; then
17103   # Fast installation is not supported
17104   enable_fast_install=no
17105 elif test "$shlibpath_overrides_runpath" = yes ||
17106      test "$enable_shared" = no; then
17107   # Fast installation is not necessary
17108   enable_fast_install=needless
17109 fi
17110
17111 striplib=
17112 old_striplib=
17113 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17114 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17115 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17116   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17117   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17118   echo "$as_me:$LINENO: result: yes" >&5
17119 echo "${ECHO_T}yes" >&6
17120 else
17121 # FIXME - insert some real tests, host_os isn't really good enough
17122   case $host_os in
17123    darwin*)
17124        if test -n "$STRIP" ; then
17125          striplib="$STRIP -x"
17126          echo "$as_me:$LINENO: result: yes" >&5
17127 echo "${ECHO_T}yes" >&6
17128        else
17129   echo "$as_me:$LINENO: result: no" >&5
17130 echo "${ECHO_T}no" >&6
17131 fi
17132        ;;
17133    *)
17134   echo "$as_me:$LINENO: result: no" >&5
17135 echo "${ECHO_T}no" >&6
17136     ;;
17137   esac
17138 fi
17139
17140 if test "x$enable_dlopen" != xyes; then
17141   enable_dlopen=unknown
17142   enable_dlopen_self=unknown
17143   enable_dlopen_self_static=unknown
17144 else
17145   lt_cv_dlopen=no
17146   lt_cv_dlopen_libs=
17147
17148   case $host_os in
17149   beos*)
17150     lt_cv_dlopen="load_add_on"
17151     lt_cv_dlopen_libs=
17152     lt_cv_dlopen_self=yes
17153     ;;
17154
17155   mingw* | pw32*)
17156     lt_cv_dlopen="LoadLibrary"
17157     lt_cv_dlopen_libs=
17158    ;;
17159
17160   cygwin*)
17161     lt_cv_dlopen="dlopen"
17162     lt_cv_dlopen_libs=
17163    ;;
17164
17165   darwin*)
17166   # if libdl is installed we need to link against it
17167     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17168 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17169 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17170   echo $ECHO_N "(cached) $ECHO_C" >&6
17171 else
17172   ac_check_lib_save_LIBS=$LIBS
17173 LIBS="-ldl  $LIBS"
17174 cat >conftest.$ac_ext <<_ACEOF
17175 /* confdefs.h.  */
17176 _ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h.  */
17180
17181 /* Override any gcc2 internal prototype to avoid an error.  */
17182 #ifdef __cplusplus
17183 extern "C"
17184 #endif
17185 /* We use char because int might match the return type of a gcc2
17186    builtin and then its argument prototype would still apply.  */
17187 char dlopen ();
17188 int
17189 main ()
17190 {
17191 dlopen ();
17192   ;
17193   return 0;
17194 }
17195 _ACEOF
17196 rm -f conftest.$ac_objext conftest$ac_exeext
17197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17198   (eval $ac_link) 2>conftest.er1
17199   ac_status=$?
17200   grep -v '^ *+' conftest.er1 >conftest.err
17201   rm -f conftest.er1
17202   cat conftest.err >&5
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); } &&
17205          { ac_try='test -z "$ac_c_werror_flag"
17206                          || test ! -s conftest.err'
17207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208   (eval $ac_try) 2>&5
17209   ac_status=$?
17210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211   (exit $ac_status); }; } &&
17212          { ac_try='test -s conftest$ac_exeext'
17213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214   (eval $ac_try) 2>&5
17215   ac_status=$?
17216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); }; }; then
17218   ac_cv_lib_dl_dlopen=yes
17219 else
17220   echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17222
17223 ac_cv_lib_dl_dlopen=no
17224 fi
17225 rm -f conftest.err conftest.$ac_objext \
17226       conftest$ac_exeext conftest.$ac_ext
17227 LIBS=$ac_check_lib_save_LIBS
17228 fi
17229 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17230 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17231 if test $ac_cv_lib_dl_dlopen = yes; then
17232   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17233 else
17234
17235     lt_cv_dlopen="dyld"
17236     lt_cv_dlopen_libs=
17237     lt_cv_dlopen_self=yes
17238
17239 fi
17240
17241    ;;
17242
17243   *)
17244     echo "$as_me:$LINENO: checking for shl_load" >&5
17245 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17246 if test "${ac_cv_func_shl_load+set}" = set; then
17247   echo $ECHO_N "(cached) $ECHO_C" >&6
17248 else
17249   cat >conftest.$ac_ext <<_ACEOF
17250 /* confdefs.h.  */
17251 _ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h.  */
17255 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17257 #define shl_load innocuous_shl_load
17258
17259 /* System header to define __stub macros and hopefully few prototypes,
17260     which can conflict with char shl_load (); below.
17261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17262     <limits.h> exists even on freestanding compilers.  */
17263
17264 #ifdef __STDC__
17265 # include <limits.h>
17266 #else
17267 # include <assert.h>
17268 #endif
17269
17270 #undef shl_load
17271
17272 /* Override any gcc2 internal prototype to avoid an error.  */
17273 #ifdef __cplusplus
17274 extern "C"
17275 {
17276 #endif
17277 /* We use char because int might match the return type of a gcc2
17278    builtin and then its argument prototype would still apply.  */
17279 char shl_load ();
17280 /* The GNU C library defines this for functions which it implements
17281     to always fail with ENOSYS.  Some functions are actually named
17282     something starting with __ and the normal name is an alias.  */
17283 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17284 choke me
17285 #else
17286 char (*f) () = shl_load;
17287 #endif
17288 #ifdef __cplusplus
17289 }
17290 #endif
17291
17292 int
17293 main ()
17294 {
17295 return f != shl_load;
17296   ;
17297   return 0;
17298 }
17299 _ACEOF
17300 rm -f conftest.$ac_objext conftest$ac_exeext
17301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17302   (eval $ac_link) 2>conftest.er1
17303   ac_status=$?
17304   grep -v '^ *+' conftest.er1 >conftest.err
17305   rm -f conftest.er1
17306   cat conftest.err >&5
17307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308   (exit $ac_status); } &&
17309          { ac_try='test -z "$ac_c_werror_flag"
17310                          || test ! -s conftest.err'
17311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312   (eval $ac_try) 2>&5
17313   ac_status=$?
17314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315   (exit $ac_status); }; } &&
17316          { ac_try='test -s conftest$ac_exeext'
17317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318   (eval $ac_try) 2>&5
17319   ac_status=$?
17320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321   (exit $ac_status); }; }; then
17322   ac_cv_func_shl_load=yes
17323 else
17324   echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17326
17327 ac_cv_func_shl_load=no
17328 fi
17329 rm -f conftest.err conftest.$ac_objext \
17330       conftest$ac_exeext conftest.$ac_ext
17331 fi
17332 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17333 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17334 if test $ac_cv_func_shl_load = yes; then
17335   lt_cv_dlopen="shl_load"
17336 else
17337   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17338 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17339 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17340   echo $ECHO_N "(cached) $ECHO_C" >&6
17341 else
17342   ac_check_lib_save_LIBS=$LIBS
17343 LIBS="-ldld  $LIBS"
17344 cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h.  */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h.  */
17350
17351 /* Override any gcc2 internal prototype to avoid an error.  */
17352 #ifdef __cplusplus
17353 extern "C"
17354 #endif
17355 /* We use char because int might match the return type of a gcc2
17356    builtin and then its argument prototype would still apply.  */
17357 char shl_load ();
17358 int
17359 main ()
17360 {
17361 shl_load ();
17362   ;
17363   return 0;
17364 }
17365 _ACEOF
17366 rm -f conftest.$ac_objext conftest$ac_exeext
17367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17368   (eval $ac_link) 2>conftest.er1
17369   ac_status=$?
17370   grep -v '^ *+' conftest.er1 >conftest.err
17371   rm -f conftest.er1
17372   cat conftest.err >&5
17373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374   (exit $ac_status); } &&
17375          { ac_try='test -z "$ac_c_werror_flag"
17376                          || test ! -s conftest.err'
17377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17378   (eval $ac_try) 2>&5
17379   ac_status=$?
17380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381   (exit $ac_status); }; } &&
17382          { ac_try='test -s conftest$ac_exeext'
17383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17384   (eval $ac_try) 2>&5
17385   ac_status=$?
17386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387   (exit $ac_status); }; }; then
17388   ac_cv_lib_dld_shl_load=yes
17389 else
17390   echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17392
17393 ac_cv_lib_dld_shl_load=no
17394 fi
17395 rm -f conftest.err conftest.$ac_objext \
17396       conftest$ac_exeext conftest.$ac_ext
17397 LIBS=$ac_check_lib_save_LIBS
17398 fi
17399 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17400 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17401 if test $ac_cv_lib_dld_shl_load = yes; then
17402   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17403 else
17404   echo "$as_me:$LINENO: checking for dlopen" >&5
17405 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17406 if test "${ac_cv_func_dlopen+set}" = set; then
17407   echo $ECHO_N "(cached) $ECHO_C" >&6
17408 else
17409   cat >conftest.$ac_ext <<_ACEOF
17410 /* confdefs.h.  */
17411 _ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h.  */
17415 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17417 #define dlopen innocuous_dlopen
17418
17419 /* System header to define __stub macros and hopefully few prototypes,
17420     which can conflict with char dlopen (); below.
17421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17422     <limits.h> exists even on freestanding compilers.  */
17423
17424 #ifdef __STDC__
17425 # include <limits.h>
17426 #else
17427 # include <assert.h>
17428 #endif
17429
17430 #undef dlopen
17431
17432 /* Override any gcc2 internal prototype to avoid an error.  */
17433 #ifdef __cplusplus
17434 extern "C"
17435 {
17436 #endif
17437 /* We use char because int might match the return type of a gcc2
17438    builtin and then its argument prototype would still apply.  */
17439 char dlopen ();
17440 /* The GNU C library defines this for functions which it implements
17441     to always fail with ENOSYS.  Some functions are actually named
17442     something starting with __ and the normal name is an alias.  */
17443 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17444 choke me
17445 #else
17446 char (*f) () = dlopen;
17447 #endif
17448 #ifdef __cplusplus
17449 }
17450 #endif
17451
17452 int
17453 main ()
17454 {
17455 return f != dlopen;
17456   ;
17457   return 0;
17458 }
17459 _ACEOF
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17462   (eval $ac_link) 2>conftest.er1
17463   ac_status=$?
17464   grep -v '^ *+' conftest.er1 >conftest.err
17465   rm -f conftest.er1
17466   cat conftest.err >&5
17467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468   (exit $ac_status); } &&
17469          { ac_try='test -z "$ac_c_werror_flag"
17470                          || test ! -s conftest.err'
17471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472   (eval $ac_try) 2>&5
17473   ac_status=$?
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); }; } &&
17476          { ac_try='test -s conftest$ac_exeext'
17477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478   (eval $ac_try) 2>&5
17479   ac_status=$?
17480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481   (exit $ac_status); }; }; then
17482   ac_cv_func_dlopen=yes
17483 else
17484   echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17486
17487 ac_cv_func_dlopen=no
17488 fi
17489 rm -f conftest.err conftest.$ac_objext \
17490       conftest$ac_exeext conftest.$ac_ext
17491 fi
17492 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17493 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17494 if test $ac_cv_func_dlopen = yes; then
17495   lt_cv_dlopen="dlopen"
17496 else
17497   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17498 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17499 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17500   echo $ECHO_N "(cached) $ECHO_C" >&6
17501 else
17502   ac_check_lib_save_LIBS=$LIBS
17503 LIBS="-ldl  $LIBS"
17504 cat >conftest.$ac_ext <<_ACEOF
17505 /* confdefs.h.  */
17506 _ACEOF
17507 cat confdefs.h >>conftest.$ac_ext
17508 cat >>conftest.$ac_ext <<_ACEOF
17509 /* end confdefs.h.  */
17510
17511 /* Override any gcc2 internal prototype to avoid an error.  */
17512 #ifdef __cplusplus
17513 extern "C"
17514 #endif
17515 /* We use char because int might match the return type of a gcc2
17516    builtin and then its argument prototype would still apply.  */
17517 char dlopen ();
17518 int
17519 main ()
17520 {
17521 dlopen ();
17522   ;
17523   return 0;
17524 }
17525 _ACEOF
17526 rm -f conftest.$ac_objext conftest$ac_exeext
17527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17528   (eval $ac_link) 2>conftest.er1
17529   ac_status=$?
17530   grep -v '^ *+' conftest.er1 >conftest.err
17531   rm -f conftest.er1
17532   cat conftest.err >&5
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); } &&
17535          { ac_try='test -z "$ac_c_werror_flag"
17536                          || test ! -s conftest.err'
17537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538   (eval $ac_try) 2>&5
17539   ac_status=$?
17540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541   (exit $ac_status); }; } &&
17542          { ac_try='test -s conftest$ac_exeext'
17543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544   (eval $ac_try) 2>&5
17545   ac_status=$?
17546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547   (exit $ac_status); }; }; then
17548   ac_cv_lib_dl_dlopen=yes
17549 else
17550   echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17552
17553 ac_cv_lib_dl_dlopen=no
17554 fi
17555 rm -f conftest.err conftest.$ac_objext \
17556       conftest$ac_exeext conftest.$ac_ext
17557 LIBS=$ac_check_lib_save_LIBS
17558 fi
17559 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17560 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17561 if test $ac_cv_lib_dl_dlopen = yes; then
17562   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17563 else
17564   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17565 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17566 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17567   echo $ECHO_N "(cached) $ECHO_C" >&6
17568 else
17569   ac_check_lib_save_LIBS=$LIBS
17570 LIBS="-lsvld  $LIBS"
17571 cat >conftest.$ac_ext <<_ACEOF
17572 /* confdefs.h.  */
17573 _ACEOF
17574 cat confdefs.h >>conftest.$ac_ext
17575 cat >>conftest.$ac_ext <<_ACEOF
17576 /* end confdefs.h.  */
17577
17578 /* Override any gcc2 internal prototype to avoid an error.  */
17579 #ifdef __cplusplus
17580 extern "C"
17581 #endif
17582 /* We use char because int might match the return type of a gcc2
17583    builtin and then its argument prototype would still apply.  */
17584 char dlopen ();
17585 int
17586 main ()
17587 {
17588 dlopen ();
17589   ;
17590   return 0;
17591 }
17592 _ACEOF
17593 rm -f conftest.$ac_objext conftest$ac_exeext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17595   (eval $ac_link) 2>conftest.er1
17596   ac_status=$?
17597   grep -v '^ *+' conftest.er1 >conftest.err
17598   rm -f conftest.er1
17599   cat conftest.err >&5
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); } &&
17602          { ac_try='test -z "$ac_c_werror_flag"
17603                          || test ! -s conftest.err'
17604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605   (eval $ac_try) 2>&5
17606   ac_status=$?
17607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608   (exit $ac_status); }; } &&
17609          { ac_try='test -s conftest$ac_exeext'
17610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611   (eval $ac_try) 2>&5
17612   ac_status=$?
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); }; }; then
17615   ac_cv_lib_svld_dlopen=yes
17616 else
17617   echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17619
17620 ac_cv_lib_svld_dlopen=no
17621 fi
17622 rm -f conftest.err conftest.$ac_objext \
17623       conftest$ac_exeext conftest.$ac_ext
17624 LIBS=$ac_check_lib_save_LIBS
17625 fi
17626 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17627 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17628 if test $ac_cv_lib_svld_dlopen = yes; then
17629   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17630 else
17631   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17632 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17633 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17634   echo $ECHO_N "(cached) $ECHO_C" >&6
17635 else
17636   ac_check_lib_save_LIBS=$LIBS
17637 LIBS="-ldld  $LIBS"
17638 cat >conftest.$ac_ext <<_ACEOF
17639 /* confdefs.h.  */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h.  */
17644
17645 /* Override any gcc2 internal prototype to avoid an error.  */
17646 #ifdef __cplusplus
17647 extern "C"
17648 #endif
17649 /* We use char because int might match the return type of a gcc2
17650    builtin and then its argument prototype would still apply.  */
17651 char dld_link ();
17652 int
17653 main ()
17654 {
17655 dld_link ();
17656   ;
17657   return 0;
17658 }
17659 _ACEOF
17660 rm -f conftest.$ac_objext conftest$ac_exeext
17661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17662   (eval $ac_link) 2>conftest.er1
17663   ac_status=$?
17664   grep -v '^ *+' conftest.er1 >conftest.err
17665   rm -f conftest.er1
17666   cat conftest.err >&5
17667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668   (exit $ac_status); } &&
17669          { ac_try='test -z "$ac_c_werror_flag"
17670                          || test ! -s conftest.err'
17671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672   (eval $ac_try) 2>&5
17673   ac_status=$?
17674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675   (exit $ac_status); }; } &&
17676          { ac_try='test -s conftest$ac_exeext'
17677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678   (eval $ac_try) 2>&5
17679   ac_status=$?
17680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681   (exit $ac_status); }; }; then
17682   ac_cv_lib_dld_dld_link=yes
17683 else
17684   echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17686
17687 ac_cv_lib_dld_dld_link=no
17688 fi
17689 rm -f conftest.err conftest.$ac_objext \
17690       conftest$ac_exeext conftest.$ac_ext
17691 LIBS=$ac_check_lib_save_LIBS
17692 fi
17693 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17694 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17695 if test $ac_cv_lib_dld_dld_link = yes; then
17696   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17697 fi
17698
17699
17700 fi
17701
17702
17703 fi
17704
17705
17706 fi
17707
17708
17709 fi
17710
17711
17712 fi
17713
17714     ;;
17715   esac
17716
17717   if test "x$lt_cv_dlopen" != xno; then
17718     enable_dlopen=yes
17719   else
17720     enable_dlopen=no
17721   fi
17722
17723   case $lt_cv_dlopen in
17724   dlopen)
17725     save_CPPFLAGS="$CPPFLAGS"
17726     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17727
17728     save_LDFLAGS="$LDFLAGS"
17729     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17730
17731     save_LIBS="$LIBS"
17732     LIBS="$lt_cv_dlopen_libs $LIBS"
17733
17734     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17735 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17736 if test "${lt_cv_dlopen_self+set}" = set; then
17737   echo $ECHO_N "(cached) $ECHO_C" >&6
17738 else
17739           if test "$cross_compiling" = yes; then :
17740   lt_cv_dlopen_self=cross
17741 else
17742   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17743   lt_status=$lt_dlunknown
17744   cat > conftest.$ac_ext <<EOF
17745 #line 17745 "configure"
17746 #include "confdefs.h"
17747
17748 #if HAVE_DLFCN_H
17749 #include <dlfcn.h>
17750 #endif
17751
17752 #include <stdio.h>
17753
17754 #ifdef RTLD_GLOBAL
17755 #  define LT_DLGLOBAL           RTLD_GLOBAL
17756 #else
17757 #  ifdef DL_GLOBAL
17758 #    define LT_DLGLOBAL         DL_GLOBAL
17759 #  else
17760 #    define LT_DLGLOBAL         0
17761 #  endif
17762 #endif
17763
17764 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17765    find out it does not work in some platform. */
17766 #ifndef LT_DLLAZY_OR_NOW
17767 #  ifdef RTLD_LAZY
17768 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17769 #  else
17770 #    ifdef DL_LAZY
17771 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17772 #    else
17773 #      ifdef RTLD_NOW
17774 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17775 #      else
17776 #        ifdef DL_NOW
17777 #          define LT_DLLAZY_OR_NOW      DL_NOW
17778 #        else
17779 #          define LT_DLLAZY_OR_NOW      0
17780 #        endif
17781 #      endif
17782 #    endif
17783 #  endif
17784 #endif
17785
17786 #ifdef __cplusplus
17787 extern "C" void exit (int);
17788 #endif
17789
17790 void fnord() { int i=42;}
17791 int main ()
17792 {
17793   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17794   int status = $lt_dlunknown;
17795
17796   if (self)
17797     {
17798       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17799       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17800       /* dlclose (self); */
17801     }
17802
17803     exit (status);
17804 }
17805 EOF
17806   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17807   (eval $ac_link) 2>&5
17808   ac_status=$?
17809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17811     (./conftest; exit; ) 2>/dev/null
17812     lt_status=$?
17813     case x$lt_status in
17814       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17815       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17816       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17817     esac
17818   else :
17819     # compilation failed
17820     lt_cv_dlopen_self=no
17821   fi
17822 fi
17823 rm -fr conftest*
17824
17825
17826 fi
17827 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17828 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17829
17830     if test "x$lt_cv_dlopen_self" = xyes; then
17831       LDFLAGS="$LDFLAGS $link_static_flag"
17832       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17833 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17834 if test "${lt_cv_dlopen_self_static+set}" = set; then
17835   echo $ECHO_N "(cached) $ECHO_C" >&6
17836 else
17837           if test "$cross_compiling" = yes; then :
17838   lt_cv_dlopen_self_static=cross
17839 else
17840   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17841   lt_status=$lt_dlunknown
17842   cat > conftest.$ac_ext <<EOF
17843 #line 17843 "configure"
17844 #include "confdefs.h"
17845
17846 #if HAVE_DLFCN_H
17847 #include <dlfcn.h>
17848 #endif
17849
17850 #include <stdio.h>
17851
17852 #ifdef RTLD_GLOBAL
17853 #  define LT_DLGLOBAL           RTLD_GLOBAL
17854 #else
17855 #  ifdef DL_GLOBAL
17856 #    define LT_DLGLOBAL         DL_GLOBAL
17857 #  else
17858 #    define LT_DLGLOBAL         0
17859 #  endif
17860 #endif
17861
17862 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17863    find out it does not work in some platform. */
17864 #ifndef LT_DLLAZY_OR_NOW
17865 #  ifdef RTLD_LAZY
17866 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17867 #  else
17868 #    ifdef DL_LAZY
17869 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17870 #    else
17871 #      ifdef RTLD_NOW
17872 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17873 #      else
17874 #        ifdef DL_NOW
17875 #          define LT_DLLAZY_OR_NOW      DL_NOW
17876 #        else
17877 #          define LT_DLLAZY_OR_NOW      0
17878 #        endif
17879 #      endif
17880 #    endif
17881 #  endif
17882 #endif
17883
17884 #ifdef __cplusplus
17885 extern "C" void exit (int);
17886 #endif
17887
17888 void fnord() { int i=42;}
17889 int main ()
17890 {
17891   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17892   int status = $lt_dlunknown;
17893
17894   if (self)
17895     {
17896       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17897       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17898       /* dlclose (self); */
17899     }
17900
17901     exit (status);
17902 }
17903 EOF
17904   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17905   (eval $ac_link) 2>&5
17906   ac_status=$?
17907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17909     (./conftest; exit; ) 2>/dev/null
17910     lt_status=$?
17911     case x$lt_status in
17912       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17913       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17914       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17915     esac
17916   else :
17917     # compilation failed
17918     lt_cv_dlopen_self_static=no
17919   fi
17920 fi
17921 rm -fr conftest*
17922
17923
17924 fi
17925 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17926 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17927     fi
17928
17929     CPPFLAGS="$save_CPPFLAGS"
17930     LDFLAGS="$save_LDFLAGS"
17931     LIBS="$save_LIBS"
17932     ;;
17933   esac
17934
17935   case $lt_cv_dlopen_self in
17936   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17937   *) enable_dlopen_self=unknown ;;
17938   esac
17939
17940   case $lt_cv_dlopen_self_static in
17941   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17942   *) enable_dlopen_self_static=unknown ;;
17943   esac
17944 fi
17945
17946
17947 # The else clause should only fire when bootstrapping the
17948 # libtool distribution, otherwise you forgot to ship ltmain.sh
17949 # with your package, and you will get complaints that there are
17950 # no rules to generate ltmain.sh.
17951 if test -f "$ltmain"; then
17952   # See if we are running on zsh, and set the options which allow our commands through
17953   # without removal of \ escapes.
17954   if test -n "${ZSH_VERSION+set}" ; then
17955     setopt NO_GLOB_SUBST
17956   fi
17957   # Now quote all the things that may contain metacharacters while being
17958   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17959   # variables and quote the copies for generation of the libtool script.
17960   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17961     SED SHELL STRIP \
17962     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17963     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17964     deplibs_check_method reload_flag reload_cmds need_locks \
17965     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17966     lt_cv_sys_global_symbol_to_c_name_address \
17967     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17968     old_postinstall_cmds old_postuninstall_cmds \
17969     compiler_GCJ \
17970     CC_GCJ \
17971     LD_GCJ \
17972     lt_prog_compiler_wl_GCJ \
17973     lt_prog_compiler_pic_GCJ \
17974     lt_prog_compiler_static_GCJ \
17975     lt_prog_compiler_no_builtin_flag_GCJ \
17976     export_dynamic_flag_spec_GCJ \
17977     thread_safe_flag_spec_GCJ \
17978     whole_archive_flag_spec_GCJ \
17979     enable_shared_with_static_runtimes_GCJ \
17980     old_archive_cmds_GCJ \
17981     old_archive_from_new_cmds_GCJ \
17982     predep_objects_GCJ \
17983     postdep_objects_GCJ \
17984     predeps_GCJ \
17985     postdeps_GCJ \
17986     compiler_lib_search_path_GCJ \
17987     archive_cmds_GCJ \
17988     archive_expsym_cmds_GCJ \
17989     postinstall_cmds_GCJ \
17990     postuninstall_cmds_GCJ \
17991     old_archive_from_expsyms_cmds_GCJ \
17992     allow_undefined_flag_GCJ \
17993     no_undefined_flag_GCJ \
17994     export_symbols_cmds_GCJ \
17995     hardcode_libdir_flag_spec_GCJ \
17996     hardcode_libdir_flag_spec_ld_GCJ \
17997     hardcode_libdir_separator_GCJ \
17998     hardcode_automatic_GCJ \
17999     module_cmds_GCJ \
18000     module_expsym_cmds_GCJ \
18001     lt_cv_prog_compiler_c_o_GCJ \
18002     exclude_expsyms_GCJ \
18003     include_expsyms_GCJ; do
18004
18005     case $var in
18006     old_archive_cmds_GCJ | \
18007     old_archive_from_new_cmds_GCJ | \
18008     archive_cmds_GCJ | \
18009     archive_expsym_cmds_GCJ | \
18010     module_cmds_GCJ | \
18011     module_expsym_cmds_GCJ | \
18012     old_archive_from_expsyms_cmds_GCJ | \
18013     export_symbols_cmds_GCJ | \
18014     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18015     postinstall_cmds | postuninstall_cmds | \
18016     old_postinstall_cmds | old_postuninstall_cmds | \
18017     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18018       # Double-quote double-evaled strings.
18019       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18020       ;;
18021     *)
18022       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18023       ;;
18024     esac
18025   done
18026
18027   case $lt_echo in
18028   *'\$0 --fallback-echo"')
18029     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18030     ;;
18031   esac
18032
18033 cfgfile="$ofile"
18034
18035   cat <<__EOF__ >> "$cfgfile"
18036 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18037
18038 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18039
18040 # Shell to use when invoking shell scripts.
18041 SHELL=$lt_SHELL
18042
18043 # Whether or not to build shared libraries.
18044 build_libtool_libs=$enable_shared
18045
18046 # Whether or not to build static libraries.
18047 build_old_libs=$enable_static
18048
18049 # Whether or not to add -lc for building shared libraries.
18050 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18051
18052 # Whether or not to disallow shared libs when runtime libs are static
18053 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18054
18055 # Whether or not to optimize for fast installation.
18056 fast_install=$enable_fast_install
18057
18058 # The host system.
18059 host_alias=$host_alias
18060 host=$host
18061
18062 # An echo program that does not interpret backslashes.
18063 echo=$lt_echo
18064
18065 # The archiver.
18066 AR=$lt_AR
18067 AR_FLAGS=$lt_AR_FLAGS
18068
18069 # A C compiler.
18070 LTCC=$lt_LTCC
18071
18072 # A language-specific compiler.
18073 CC=$lt_compiler_GCJ
18074
18075 # Is the compiler the GNU C compiler?
18076 with_gcc=$GCC_GCJ
18077
18078 # An ERE matcher.
18079 EGREP=$lt_EGREP
18080
18081 # The linker used to build libraries.
18082 LD=$lt_LD_GCJ
18083
18084 # Whether we need hard or soft links.
18085 LN_S=$lt_LN_S
18086
18087 # A BSD-compatible nm program.
18088 NM=$lt_NM
18089
18090 # A symbol stripping program
18091 STRIP=$lt_STRIP
18092
18093 # Used to examine libraries when file_magic_cmd begins "file"
18094 MAGIC_CMD=$MAGIC_CMD
18095
18096 # Used on cygwin: DLL creation program.
18097 DLLTOOL="$DLLTOOL"
18098
18099 # Used on cygwin: object dumper.
18100 OBJDUMP="$OBJDUMP"
18101
18102 # Used on cygwin: assembler.
18103 AS="$AS"
18104
18105 # The name of the directory that contains temporary libtool files.
18106 objdir=$objdir
18107
18108 # How to create reloadable object files.
18109 reload_flag=$lt_reload_flag
18110 reload_cmds=$lt_reload_cmds
18111
18112 # How to pass a linker flag through the compiler.
18113 wl=$lt_lt_prog_compiler_wl_GCJ
18114
18115 # Object file suffix (normally "o").
18116 objext="$ac_objext"
18117
18118 # Old archive suffix (normally "a").
18119 libext="$libext"
18120
18121 # Shared library suffix (normally ".so").
18122 shrext='$shrext'
18123
18124 # Executable file suffix (normally "").
18125 exeext="$exeext"
18126
18127 # Additional compiler flags for building library objects.
18128 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18129 pic_mode=$pic_mode
18130
18131 # What is the maximum length of a command?
18132 max_cmd_len=$lt_cv_sys_max_cmd_len
18133
18134 # Does compiler simultaneously support -c and -o options?
18135 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18136
18137 # Must we lock files when doing compilation ?
18138 need_locks=$lt_need_locks
18139
18140 # Do we need the lib prefix for modules?
18141 need_lib_prefix=$need_lib_prefix
18142
18143 # Do we need a version for libraries?
18144 need_version=$need_version
18145
18146 # Whether dlopen is supported.
18147 dlopen_support=$enable_dlopen
18148
18149 # Whether dlopen of programs is supported.
18150 dlopen_self=$enable_dlopen_self
18151
18152 # Whether dlopen of statically linked programs is supported.
18153 dlopen_self_static=$enable_dlopen_self_static
18154
18155 # Compiler flag to prevent dynamic linking.
18156 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18157
18158 # Compiler flag to turn off builtin functions.
18159 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18160
18161 # Compiler flag to allow reflexive dlopens.
18162 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18163
18164 # Compiler flag to generate shared objects directly from archives.
18165 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18166
18167 # Compiler flag to generate thread-safe objects.
18168 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18169
18170 # Library versioning type.
18171 version_type=$version_type
18172
18173 # Format of library name prefix.
18174 libname_spec=$lt_libname_spec
18175
18176 # List of archive names.  First name is the real one, the rest are links.
18177 # The last name is the one that the linker finds with -lNAME.
18178 library_names_spec=$lt_library_names_spec
18179
18180 # The coded name of the library, if different from the real name.
18181 soname_spec=$lt_soname_spec
18182
18183 # Commands used to build and install an old-style archive.
18184 RANLIB=$lt_RANLIB
18185 old_archive_cmds=$lt_old_archive_cmds_GCJ
18186 old_postinstall_cmds=$lt_old_postinstall_cmds
18187 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18188
18189 # Create an old-style archive from a shared archive.
18190 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18191
18192 # Create a temporary old-style archive to link instead of a shared archive.
18193 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18194
18195 # Commands used to build and install a shared archive.
18196 archive_cmds=$lt_archive_cmds_GCJ
18197 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18198 postinstall_cmds=$lt_postinstall_cmds
18199 postuninstall_cmds=$lt_postuninstall_cmds
18200
18201 # Commands used to build a loadable module (assumed same as above if empty)
18202 module_cmds=$lt_module_cmds_GCJ
18203 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18204
18205 # Commands to strip libraries.
18206 old_striplib=$lt_old_striplib
18207 striplib=$lt_striplib
18208
18209 # Dependencies to place before the objects being linked to create a
18210 # shared library.
18211 predep_objects=$lt_predep_objects_GCJ
18212
18213 # Dependencies to place after the objects being linked to create a
18214 # shared library.
18215 postdep_objects=$lt_postdep_objects_GCJ
18216
18217 # Dependencies to place before the objects being linked to create a
18218 # shared library.
18219 predeps=$lt_predeps_GCJ
18220
18221 # Dependencies to place after the objects being linked to create a
18222 # shared library.
18223 postdeps=$lt_postdeps_GCJ
18224
18225 # The library search path used internally by the compiler when linking
18226 # a shared library.
18227 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18228
18229 # Method to check whether dependent libraries are shared objects.
18230 deplibs_check_method=$lt_deplibs_check_method
18231
18232 # Command to use when deplibs_check_method == file_magic.
18233 file_magic_cmd=$lt_file_magic_cmd
18234
18235 # Flag that allows shared libraries with undefined symbols to be built.
18236 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18237
18238 # Flag that forces no undefined symbols.
18239 no_undefined_flag=$lt_no_undefined_flag_GCJ
18240
18241 # Commands used to finish a libtool library installation in a directory.
18242 finish_cmds=$lt_finish_cmds
18243
18244 # Same as above, but a single script fragment to be evaled but not shown.
18245 finish_eval=$lt_finish_eval
18246
18247 # Take the output of nm and produce a listing of raw symbols and C names.
18248 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18249
18250 # Transform the output of nm in a proper C declaration
18251 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18252
18253 # Transform the output of nm in a C name address pair
18254 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18255
18256 # This is the shared library runtime path variable.
18257 runpath_var=$runpath_var
18258
18259 # This is the shared library path variable.
18260 shlibpath_var=$shlibpath_var
18261
18262 # Is shlibpath searched before the hard-coded library search path?
18263 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18264
18265 # How to hardcode a shared library path into an executable.
18266 hardcode_action=$hardcode_action_GCJ
18267
18268 # Whether we should hardcode library paths into libraries.
18269 hardcode_into_libs=$hardcode_into_libs
18270
18271 # Flag to hardcode \$libdir into a binary during linking.
18272 # This must work even if \$libdir does not exist.
18273 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18274
18275 # If ld is used when linking, flag to hardcode \$libdir into
18276 # a binary during linking. This must work even if \$libdir does
18277 # not exist.
18278 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18279
18280 # Whether we need a single -rpath flag with a separated argument.
18281 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18282
18283 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18284 # resulting binary.
18285 hardcode_direct=$hardcode_direct_GCJ
18286
18287 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18288 # resulting binary.
18289 hardcode_minus_L=$hardcode_minus_L_GCJ
18290
18291 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18292 # the resulting binary.
18293 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18294
18295 # Set to yes if building a shared library automatically hardcodes DIR into the library
18296 # and all subsequent libraries and executables linked against it.
18297 hardcode_automatic=$hardcode_automatic_GCJ
18298
18299 # Variables whose values should be saved in libtool wrapper scripts and
18300 # restored at relink time.
18301 variables_saved_for_relink="$variables_saved_for_relink"
18302
18303 # Whether libtool must link a program against all its dependency libraries.
18304 link_all_deplibs=$link_all_deplibs_GCJ
18305
18306 # Compile-time system search path for libraries
18307 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18308
18309 # Run-time system search path for libraries
18310 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18311
18312 # Fix the shell variable \$srcfile for the compiler.
18313 fix_srcfile_path="$fix_srcfile_path_GCJ"
18314
18315 # Set to yes if exported symbols are required.
18316 always_export_symbols=$always_export_symbols_GCJ
18317
18318 # The commands to list exported symbols.
18319 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18320
18321 # The commands to extract the exported symbol list from a shared archive.
18322 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18323
18324 # Symbols that should not be listed in the preloaded symbols.
18325 exclude_expsyms=$lt_exclude_expsyms_GCJ
18326
18327 # Symbols that must always be exported.
18328 include_expsyms=$lt_include_expsyms_GCJ
18329
18330 # ### END LIBTOOL TAG CONFIG: $tagname
18331
18332 __EOF__
18333
18334
18335 else
18336   # If there is no Makefile yet, we rely on a make rule to execute
18337   # `config.status --recheck' to rerun these tests and create the
18338   # libtool script then.
18339   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18340   if test -f "$ltmain_in"; then
18341     test -f Makefile && make "$ltmain"
18342   fi
18343 fi
18344
18345
18346 ac_ext=c
18347 ac_cpp='$CPP $CPPFLAGS'
18348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18351
18352 CC="$lt_save_CC"
18353
18354         else
18355           tagname=""
18356         fi
18357         ;;
18358
18359       RC)
18360
18361
18362
18363 # Source file extension for RC test sources.
18364 ac_ext=rc
18365
18366 # Object file extension for compiled RC test sources.
18367 objext=o
18368 objext_RC=$objext
18369
18370 # Code to be used in simple compile tests
18371 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18372
18373 # Code to be used in simple link tests
18374 lt_simple_link_test_code="$lt_simple_compile_test_code"
18375
18376 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18377
18378 # If no C compiler was specified, use CC.
18379 LTCC=${LTCC-"$CC"}
18380
18381 # Allow CC to be a program name with arguments.
18382 compiler=$CC
18383
18384
18385 # Allow CC to be a program name with arguments.
18386 lt_save_CC="$CC"
18387 CC=${RC-"windres"}
18388 compiler=$CC
18389 compiler_RC=$CC
18390 lt_cv_prog_compiler_c_o_RC=yes
18391
18392 # The else clause should only fire when bootstrapping the
18393 # libtool distribution, otherwise you forgot to ship ltmain.sh
18394 # with your package, and you will get complaints that there are
18395 # no rules to generate ltmain.sh.
18396 if test -f "$ltmain"; then
18397   # See if we are running on zsh, and set the options which allow our commands through
18398   # without removal of \ escapes.
18399   if test -n "${ZSH_VERSION+set}" ; then
18400     setopt NO_GLOB_SUBST
18401   fi
18402   # Now quote all the things that may contain metacharacters while being
18403   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18404   # variables and quote the copies for generation of the libtool script.
18405   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18406     SED SHELL STRIP \
18407     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18408     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18409     deplibs_check_method reload_flag reload_cmds need_locks \
18410     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18411     lt_cv_sys_global_symbol_to_c_name_address \
18412     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18413     old_postinstall_cmds old_postuninstall_cmds \
18414     compiler_RC \
18415     CC_RC \
18416     LD_RC \
18417     lt_prog_compiler_wl_RC \
18418     lt_prog_compiler_pic_RC \
18419     lt_prog_compiler_static_RC \
18420     lt_prog_compiler_no_builtin_flag_RC \
18421     export_dynamic_flag_spec_RC \
18422     thread_safe_flag_spec_RC \
18423     whole_archive_flag_spec_RC \
18424     enable_shared_with_static_runtimes_RC \
18425     old_archive_cmds_RC \
18426     old_archive_from_new_cmds_RC \
18427     predep_objects_RC \
18428     postdep_objects_RC \
18429     predeps_RC \
18430     postdeps_RC \
18431     compiler_lib_search_path_RC \
18432     archive_cmds_RC \
18433     archive_expsym_cmds_RC \
18434     postinstall_cmds_RC \
18435     postuninstall_cmds_RC \
18436     old_archive_from_expsyms_cmds_RC \
18437     allow_undefined_flag_RC \
18438     no_undefined_flag_RC \
18439     export_symbols_cmds_RC \
18440     hardcode_libdir_flag_spec_RC \
18441     hardcode_libdir_flag_spec_ld_RC \
18442     hardcode_libdir_separator_RC \
18443     hardcode_automatic_RC \
18444     module_cmds_RC \
18445     module_expsym_cmds_RC \
18446     lt_cv_prog_compiler_c_o_RC \
18447     exclude_expsyms_RC \
18448     include_expsyms_RC; do
18449
18450     case $var in
18451     old_archive_cmds_RC | \
18452     old_archive_from_new_cmds_RC | \
18453     archive_cmds_RC | \
18454     archive_expsym_cmds_RC | \
18455     module_cmds_RC | \
18456     module_expsym_cmds_RC | \
18457     old_archive_from_expsyms_cmds_RC | \
18458     export_symbols_cmds_RC | \
18459     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18460     postinstall_cmds | postuninstall_cmds | \
18461     old_postinstall_cmds | old_postuninstall_cmds | \
18462     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18463       # Double-quote double-evaled strings.
18464       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18465       ;;
18466     *)
18467       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18468       ;;
18469     esac
18470   done
18471
18472   case $lt_echo in
18473   *'\$0 --fallback-echo"')
18474     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18475     ;;
18476   esac
18477
18478 cfgfile="$ofile"
18479
18480   cat <<__EOF__ >> "$cfgfile"
18481 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18482
18483 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18484
18485 # Shell to use when invoking shell scripts.
18486 SHELL=$lt_SHELL
18487
18488 # Whether or not to build shared libraries.
18489 build_libtool_libs=$enable_shared
18490
18491 # Whether or not to build static libraries.
18492 build_old_libs=$enable_static
18493
18494 # Whether or not to add -lc for building shared libraries.
18495 build_libtool_need_lc=$archive_cmds_need_lc_RC
18496
18497 # Whether or not to disallow shared libs when runtime libs are static
18498 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18499
18500 # Whether or not to optimize for fast installation.
18501 fast_install=$enable_fast_install
18502
18503 # The host system.
18504 host_alias=$host_alias
18505 host=$host
18506
18507 # An echo program that does not interpret backslashes.
18508 echo=$lt_echo
18509
18510 # The archiver.
18511 AR=$lt_AR
18512 AR_FLAGS=$lt_AR_FLAGS
18513
18514 # A C compiler.
18515 LTCC=$lt_LTCC
18516
18517 # A language-specific compiler.
18518 CC=$lt_compiler_RC
18519
18520 # Is the compiler the GNU C compiler?
18521 with_gcc=$GCC_RC
18522
18523 # An ERE matcher.
18524 EGREP=$lt_EGREP
18525
18526 # The linker used to build libraries.
18527 LD=$lt_LD_RC
18528
18529 # Whether we need hard or soft links.
18530 LN_S=$lt_LN_S
18531
18532 # A BSD-compatible nm program.
18533 NM=$lt_NM
18534
18535 # A symbol stripping program
18536 STRIP=$lt_STRIP
18537
18538 # Used to examine libraries when file_magic_cmd begins "file"
18539 MAGIC_CMD=$MAGIC_CMD
18540
18541 # Used on cygwin: DLL creation program.
18542 DLLTOOL="$DLLTOOL"
18543
18544 # Used on cygwin: object dumper.
18545 OBJDUMP="$OBJDUMP"
18546
18547 # Used on cygwin: assembler.
18548 AS="$AS"
18549
18550 # The name of the directory that contains temporary libtool files.
18551 objdir=$objdir
18552
18553 # How to create reloadable object files.
18554 reload_flag=$lt_reload_flag
18555 reload_cmds=$lt_reload_cmds
18556
18557 # How to pass a linker flag through the compiler.
18558 wl=$lt_lt_prog_compiler_wl_RC
18559
18560 # Object file suffix (normally "o").
18561 objext="$ac_objext"
18562
18563 # Old archive suffix (normally "a").
18564 libext="$libext"
18565
18566 # Shared library suffix (normally ".so").
18567 shrext='$shrext'
18568
18569 # Executable file suffix (normally "").
18570 exeext="$exeext"
18571
18572 # Additional compiler flags for building library objects.
18573 pic_flag=$lt_lt_prog_compiler_pic_RC
18574 pic_mode=$pic_mode
18575
18576 # What is the maximum length of a command?
18577 max_cmd_len=$lt_cv_sys_max_cmd_len
18578
18579 # Does compiler simultaneously support -c and -o options?
18580 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18581
18582 # Must we lock files when doing compilation ?
18583 need_locks=$lt_need_locks
18584
18585 # Do we need the lib prefix for modules?
18586 need_lib_prefix=$need_lib_prefix
18587
18588 # Do we need a version for libraries?
18589 need_version=$need_version
18590
18591 # Whether dlopen is supported.
18592 dlopen_support=$enable_dlopen
18593
18594 # Whether dlopen of programs is supported.
18595 dlopen_self=$enable_dlopen_self
18596
18597 # Whether dlopen of statically linked programs is supported.
18598 dlopen_self_static=$enable_dlopen_self_static
18599
18600 # Compiler flag to prevent dynamic linking.
18601 link_static_flag=$lt_lt_prog_compiler_static_RC
18602
18603 # Compiler flag to turn off builtin functions.
18604 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18605
18606 # Compiler flag to allow reflexive dlopens.
18607 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18608
18609 # Compiler flag to generate shared objects directly from archives.
18610 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18611
18612 # Compiler flag to generate thread-safe objects.
18613 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18614
18615 # Library versioning type.
18616 version_type=$version_type
18617
18618 # Format of library name prefix.
18619 libname_spec=$lt_libname_spec
18620
18621 # List of archive names.  First name is the real one, the rest are links.
18622 # The last name is the one that the linker finds with -lNAME.
18623 library_names_spec=$lt_library_names_spec
18624
18625 # The coded name of the library, if different from the real name.
18626 soname_spec=$lt_soname_spec
18627
18628 # Commands used to build and install an old-style archive.
18629 RANLIB=$lt_RANLIB
18630 old_archive_cmds=$lt_old_archive_cmds_RC
18631 old_postinstall_cmds=$lt_old_postinstall_cmds
18632 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18633
18634 # Create an old-style archive from a shared archive.
18635 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18636
18637 # Create a temporary old-style archive to link instead of a shared archive.
18638 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18639
18640 # Commands used to build and install a shared archive.
18641 archive_cmds=$lt_archive_cmds_RC
18642 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18643 postinstall_cmds=$lt_postinstall_cmds
18644 postuninstall_cmds=$lt_postuninstall_cmds
18645
18646 # Commands used to build a loadable module (assumed same as above if empty)
18647 module_cmds=$lt_module_cmds_RC
18648 module_expsym_cmds=$lt_module_expsym_cmds_RC
18649
18650 # Commands to strip libraries.
18651 old_striplib=$lt_old_striplib
18652 striplib=$lt_striplib
18653
18654 # Dependencies to place before the objects being linked to create a
18655 # shared library.
18656 predep_objects=$lt_predep_objects_RC
18657
18658 # Dependencies to place after the objects being linked to create a
18659 # shared library.
18660 postdep_objects=$lt_postdep_objects_RC
18661
18662 # Dependencies to place before the objects being linked to create a
18663 # shared library.
18664 predeps=$lt_predeps_RC
18665
18666 # Dependencies to place after the objects being linked to create a
18667 # shared library.
18668 postdeps=$lt_postdeps_RC
18669
18670 # The library search path used internally by the compiler when linking
18671 # a shared library.
18672 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18673
18674 # Method to check whether dependent libraries are shared objects.
18675 deplibs_check_method=$lt_deplibs_check_method
18676
18677 # Command to use when deplibs_check_method == file_magic.
18678 file_magic_cmd=$lt_file_magic_cmd
18679
18680 # Flag that allows shared libraries with undefined symbols to be built.
18681 allow_undefined_flag=$lt_allow_undefined_flag_RC
18682
18683 # Flag that forces no undefined symbols.
18684 no_undefined_flag=$lt_no_undefined_flag_RC
18685
18686 # Commands used to finish a libtool library installation in a directory.
18687 finish_cmds=$lt_finish_cmds
18688
18689 # Same as above, but a single script fragment to be evaled but not shown.
18690 finish_eval=$lt_finish_eval
18691
18692 # Take the output of nm and produce a listing of raw symbols and C names.
18693 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18694
18695 # Transform the output of nm in a proper C declaration
18696 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18697
18698 # Transform the output of nm in a C name address pair
18699 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18700
18701 # This is the shared library runtime path variable.
18702 runpath_var=$runpath_var
18703
18704 # This is the shared library path variable.
18705 shlibpath_var=$shlibpath_var
18706
18707 # Is shlibpath searched before the hard-coded library search path?
18708 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18709
18710 # How to hardcode a shared library path into an executable.
18711 hardcode_action=$hardcode_action_RC
18712
18713 # Whether we should hardcode library paths into libraries.
18714 hardcode_into_libs=$hardcode_into_libs
18715
18716 # Flag to hardcode \$libdir into a binary during linking.
18717 # This must work even if \$libdir does not exist.
18718 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18719
18720 # If ld is used when linking, flag to hardcode \$libdir into
18721 # a binary during linking. This must work even if \$libdir does
18722 # not exist.
18723 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18724
18725 # Whether we need a single -rpath flag with a separated argument.
18726 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18727
18728 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18729 # resulting binary.
18730 hardcode_direct=$hardcode_direct_RC
18731
18732 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18733 # resulting binary.
18734 hardcode_minus_L=$hardcode_minus_L_RC
18735
18736 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18737 # the resulting binary.
18738 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18739
18740 # Set to yes if building a shared library automatically hardcodes DIR into the library
18741 # and all subsequent libraries and executables linked against it.
18742 hardcode_automatic=$hardcode_automatic_RC
18743
18744 # Variables whose values should be saved in libtool wrapper scripts and
18745 # restored at relink time.
18746 variables_saved_for_relink="$variables_saved_for_relink"
18747
18748 # Whether libtool must link a program against all its dependency libraries.
18749 link_all_deplibs=$link_all_deplibs_RC
18750
18751 # Compile-time system search path for libraries
18752 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18753
18754 # Run-time system search path for libraries
18755 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18756
18757 # Fix the shell variable \$srcfile for the compiler.
18758 fix_srcfile_path="$fix_srcfile_path_RC"
18759
18760 # Set to yes if exported symbols are required.
18761 always_export_symbols=$always_export_symbols_RC
18762
18763 # The commands to list exported symbols.
18764 export_symbols_cmds=$lt_export_symbols_cmds_RC
18765
18766 # The commands to extract the exported symbol list from a shared archive.
18767 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18768
18769 # Symbols that should not be listed in the preloaded symbols.
18770 exclude_expsyms=$lt_exclude_expsyms_RC
18771
18772 # Symbols that must always be exported.
18773 include_expsyms=$lt_include_expsyms_RC
18774
18775 # ### END LIBTOOL TAG CONFIG: $tagname
18776
18777 __EOF__
18778
18779
18780 else
18781   # If there is no Makefile yet, we rely on a make rule to execute
18782   # `config.status --recheck' to rerun these tests and create the
18783   # libtool script then.
18784   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18785   if test -f "$ltmain_in"; then
18786     test -f Makefile && make "$ltmain"
18787   fi
18788 fi
18789
18790
18791 ac_ext=c
18792 ac_cpp='$CPP $CPPFLAGS'
18793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18796
18797 CC="$lt_save_CC"
18798
18799         ;;
18800
18801       *)
18802         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18803 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18804    { (exit 1); exit 1; }; }
18805         ;;
18806       esac
18807
18808       # Append the new tag name to the list of available tags.
18809       if test -n "$tagname" ; then
18810       available_tags="$available_tags $tagname"
18811     fi
18812     fi
18813   done
18814   IFS="$lt_save_ifs"
18815
18816   # Now substitute the updated list of available tags.
18817   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18818     mv "${ofile}T" "$ofile"
18819     chmod +x "$ofile"
18820   else
18821     rm -f "${ofile}T"
18822     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18823 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18824    { (exit 1); exit 1; }; }
18825   fi
18826 fi
18827
18828
18829   if test ! -f "${ofile}"; then
18830     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18831 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18832   fi
18833   if test -z `grep -e 'shared_ext.*shrext' $ofile`; then
18834     # Make sure $shared_ext gets set to $shrext
18835     if sed -e 's/shared_ext/shrext/g' "$ofile" > "${ofile}T"; then
18836       mv "${ofile}T" "$ofile"
18837       chmod +x "$ofile"
18838     else
18839       rm -f "${ofile}T"
18840       { { echo "$as_me:$LINENO: error: unable to update shared_ext." >&5
18841 echo "$as_me: error: unable to update shared_ext." >&2;}
18842    { (exit 1); exit 1; }; }
18843     fi
18844   fi
18845
18846
18847
18848 # This can be used to rebuild libtool when needed
18849 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18850
18851 # Always use our own libtool.
18852 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18853
18854 # Prevent multiple expansion
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875  for ac_prog in gzip uncompress compress
18876 do
18877   # Extract the first word of "$ac_prog", so it can be a program name with args.
18878 set dummy $ac_prog; ac_word=$2
18879 echo "$as_me:$LINENO: checking for $ac_word" >&5
18880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18881 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
18882   echo $ECHO_N "(cached) $ECHO_C" >&6
18883 else
18884   if test -n "$UNCOMPRESS"; then
18885   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
18886 else
18887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18888 for as_dir in $PATH
18889 do
18890   IFS=$as_save_IFS
18891   test -z "$as_dir" && as_dir=.
18892   for ac_exec_ext in '' $ac_executable_extensions; do
18893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18894     ac_cv_prog_UNCOMPRESS="$ac_prog"
18895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18896     break 2
18897   fi
18898 done
18899 done
18900
18901 fi
18902 fi
18903 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
18904 if test -n "$UNCOMPRESS"; then
18905   echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
18906 echo "${ECHO_T}$UNCOMPRESS" >&6
18907 else
18908   echo "$as_me:$LINENO: result: no" >&5
18909 echo "${ECHO_T}no" >&6
18910 fi
18911
18912   test -n "$UNCOMPRESS" && break
18913 done
18914
18915
18916
18917
18918
18919
18920
18921
18922 echo "$as_me:$LINENO: checking for target system" >&5
18923 echo $ECHO_N "checking for target system... $ECHO_C" >&6
18924 CYGWIN=
18925 MINGW=
18926 case $host_os in
18927     *cygwin* ) CYGWIN=yes;;
18928     *mingw* ) MINGW=yes;;
18929 esac
18930
18931 AR=ar
18932 if test "x$MINGW" = "xyes"; then
18933     #fix for the debian distribution of mingw
18934     if test -x "/usr/i586-mingw32msvc/bin/ar";then
18935         AR="/usr/i586-mingw32msvc/bin/ar"
18936     fi
18937     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
18938         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
18939     fi
18940     #fix for the gentoo distribution of mingw
18941     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
18942         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
18943     fi
18944     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
18945         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
18946     fi
18947     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
18948         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
18949     fi
18950 fi
18951
18952
18953
18954 if test "x${CYGWIN}" = "xyes"; then
18955     cat >>confdefs.h <<_ACEOF
18956 #define CYGWIN 1
18957 _ACEOF
18958
18959     echo "$as_me:$LINENO: result: cygwin" >&5
18960 echo "${ECHO_T}cygwin" >&6
18961 else
18962     if test "x${MINGW}" = "xyes"; then
18963         cat >>confdefs.h <<_ACEOF
18964 #define MINGW 1
18965 _ACEOF
18966
18967         WIN32=1
18968         cat >>confdefs.h <<_ACEOF
18969 #define WIN32 1
18970 _ACEOF
18971
18972         LIBS="$LIBS -lws2_32"
18973         echo "$as_me:$LINENO: result: mingw" >&5
18974 echo "${ECHO_T}mingw" >&6
18975     else
18976         LINUX=1
18977         export LINUX
18978         cat >>confdefs.h <<_ACEOF
18979 #define LINUX 1
18980 _ACEOF
18981
18982         echo "$as_me:$LINENO: result: " >&5
18983 echo "${ECHO_T}" >&6
18984     fi
18985 fi
18986
18987
18988 SLEXT="so"
18989 if test "x${MINGW}" != "xyes"; then
18990     # no mingW
18991     cat >>confdefs.h <<_ACEOF
18992 #define O_BINARY 0
18993 _ACEOF
18994
18995 else
18996     # mingW
18997     SLEXT="dll"
18998 fi
18999 export SLEXT
19000
19001
19002 # The following tries to make use of includes and libraries in
19003 # /usr/local, too. Notice: A -I/usr/local/include might break
19004 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
19005 # especially on systems which link /usr/local to /usr, so it has yet
19006 # to be seen how useful this is.
19007 if test -d /usr/local/lib; then
19008     LDFLAGS="$LDFLAGS -L/usr/local/lib"
19009 fi
19010 if test -d /usr/local/include; then
19011 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
19012 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
19013     echo > /dev/null
19014 fi
19015 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
19016     # if the user has a special prefix (like /opt), there might also be $prefix/lib
19017     # and $prefix/include, which should be included in our search paths for libraries
19018     # and includes.
19019     LDFLAGS="$LDFLAGS -L${libdir}"
19020     CPPFLAGS="$CPPFLAGS -I${includedir}"
19021     # TODO- test whether gcc still works after this
19022 fi
19023
19024 # this must be done after (I believe) AC_PROG_MAKE_SET
19025 if test "x$DEBUG" '!=' "x";then
19026     STRIP="@echo debug enabled, not stripping "
19027     export STRIP
19028
19029 fi
19030
19031
19032 echo "$as_me:$LINENO: checking for sin in -lm" >&5
19033 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
19034 if test "${ac_cv_lib_m_sin+set}" = set; then
19035   echo $ECHO_N "(cached) $ECHO_C" >&6
19036 else
19037   ac_check_lib_save_LIBS=$LIBS
19038 LIBS="-lm  $LIBS"
19039 cat >conftest.$ac_ext <<_ACEOF
19040 /* confdefs.h.  */
19041 _ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h.  */
19045
19046 /* Override any gcc2 internal prototype to avoid an error.  */
19047 #ifdef __cplusplus
19048 extern "C"
19049 #endif
19050 /* We use char because int might match the return type of a gcc2
19051    builtin and then its argument prototype would still apply.  */
19052 char sin ();
19053 int
19054 main ()
19055 {
19056 sin ();
19057   ;
19058   return 0;
19059 }
19060 _ACEOF
19061 rm -f conftest.$ac_objext conftest$ac_exeext
19062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19063   (eval $ac_link) 2>conftest.er1
19064   ac_status=$?
19065   grep -v '^ *+' conftest.er1 >conftest.err
19066   rm -f conftest.er1
19067   cat conftest.err >&5
19068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069   (exit $ac_status); } &&
19070          { ac_try='test -z "$ac_c_werror_flag"
19071                          || test ! -s conftest.err'
19072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073   (eval $ac_try) 2>&5
19074   ac_status=$?
19075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076   (exit $ac_status); }; } &&
19077          { ac_try='test -s conftest$ac_exeext'
19078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079   (eval $ac_try) 2>&5
19080   ac_status=$?
19081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082   (exit $ac_status); }; }; then
19083   ac_cv_lib_m_sin=yes
19084 else
19085   echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19087
19088 ac_cv_lib_m_sin=no
19089 fi
19090 rm -f conftest.err conftest.$ac_objext \
19091       conftest$ac_exeext conftest.$ac_ext
19092 LIBS=$ac_check_lib_save_LIBS
19093 fi
19094 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
19095 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
19096 if test $ac_cv_lib_m_sin = yes; then
19097   cat >>confdefs.h <<_ACEOF
19098 #define HAVE_LIBM 1
19099 _ACEOF
19100
19101   LIBS="-lm $LIBS"
19102
19103 else
19104   echo "Error: Math library not found.";
19105  exit;
19106
19107 fi
19108
19109
19110 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19111 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19112 if test "${ac_cv_lib_z_deflate+set}" = set; then
19113   echo $ECHO_N "(cached) $ECHO_C" >&6
19114 else
19115   ac_check_lib_save_LIBS=$LIBS
19116 LIBS="-lz  $LIBS"
19117 cat >conftest.$ac_ext <<_ACEOF
19118 /* confdefs.h.  */
19119 _ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h.  */
19123
19124 /* Override any gcc2 internal prototype to avoid an error.  */
19125 #ifdef __cplusplus
19126 extern "C"
19127 #endif
19128 /* We use char because int might match the return type of a gcc2
19129    builtin and then its argument prototype would still apply.  */
19130 char deflate ();
19131 int
19132 main ()
19133 {
19134 deflate ();
19135   ;
19136   return 0;
19137 }
19138 _ACEOF
19139 rm -f conftest.$ac_objext conftest$ac_exeext
19140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19141   (eval $ac_link) 2>conftest.er1
19142   ac_status=$?
19143   grep -v '^ *+' conftest.er1 >conftest.err
19144   rm -f conftest.er1
19145   cat conftest.err >&5
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); } &&
19148          { ac_try='test -z "$ac_c_werror_flag"
19149                          || test ! -s conftest.err'
19150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151   (eval $ac_try) 2>&5
19152   ac_status=$?
19153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154   (exit $ac_status); }; } &&
19155          { ac_try='test -s conftest$ac_exeext'
19156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157   (eval $ac_try) 2>&5
19158   ac_status=$?
19159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160   (exit $ac_status); }; }; then
19161   ac_cv_lib_z_deflate=yes
19162 else
19163   echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.$ac_ext >&5
19165
19166 ac_cv_lib_z_deflate=no
19167 fi
19168 rm -f conftest.err conftest.$ac_objext \
19169       conftest$ac_exeext conftest.$ac_ext
19170 LIBS=$ac_check_lib_save_LIBS
19171 fi
19172 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19173 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19174 if test $ac_cv_lib_z_deflate = yes; then
19175   cat >>confdefs.h <<_ACEOF
19176 #define HAVE_LIBZ 1
19177 _ACEOF
19178
19179   LIBS="-lz $LIBS"
19180
19181 else
19182   ZLIBMISSING=true
19183 fi
19184
19185
19186 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
19187 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
19188 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
19189   echo $ECHO_N "(cached) $ECHO_C" >&6
19190 else
19191   ac_check_lib_save_LIBS=$LIBS
19192 LIBS="-ljpeg  $LIBS"
19193 cat >conftest.$ac_ext <<_ACEOF
19194 /* confdefs.h.  */
19195 _ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h.  */
19199
19200 /* Override any gcc2 internal prototype to avoid an error.  */
19201 #ifdef __cplusplus
19202 extern "C"
19203 #endif
19204 /* We use char because int might match the return type of a gcc2
19205    builtin and then its argument prototype would still apply.  */
19206 char jpeg_write_raw_data ();
19207 int
19208 main ()
19209 {
19210 jpeg_write_raw_data ();
19211   ;
19212   return 0;
19213 }
19214 _ACEOF
19215 rm -f conftest.$ac_objext conftest$ac_exeext
19216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19217   (eval $ac_link) 2>conftest.er1
19218   ac_status=$?
19219   grep -v '^ *+' conftest.er1 >conftest.err
19220   rm -f conftest.er1
19221   cat conftest.err >&5
19222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); } &&
19224          { ac_try='test -z "$ac_c_werror_flag"
19225                          || test ! -s conftest.err'
19226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227   (eval $ac_try) 2>&5
19228   ac_status=$?
19229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230   (exit $ac_status); }; } &&
19231          { ac_try='test -s conftest$ac_exeext'
19232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233   (eval $ac_try) 2>&5
19234   ac_status=$?
19235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236   (exit $ac_status); }; }; then
19237   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
19238 else
19239   echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19241
19242 ac_cv_lib_jpeg_jpeg_write_raw_data=no
19243 fi
19244 rm -f conftest.err conftest.$ac_objext \
19245       conftest$ac_exeext conftest.$ac_ext
19246 LIBS=$ac_check_lib_save_LIBS
19247 fi
19248 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
19249 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
19250 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
19251   cat >>confdefs.h <<_ACEOF
19252 #define HAVE_LIBJPEG 1
19253 _ACEOF
19254
19255   LIBS="-ljpeg $LIBS"
19256
19257 else
19258   JPEGLIBMISSING=true
19259 fi
19260
19261
19262 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
19263 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
19264 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
19265   echo $ECHO_N "(cached) $ECHO_C" >&6
19266 else
19267   ac_check_lib_save_LIBS=$LIBS
19268 LIBS="-lt1  $LIBS"
19269 cat >conftest.$ac_ext <<_ACEOF
19270 /* confdefs.h.  */
19271 _ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h.  */
19275
19276 /* Override any gcc2 internal prototype to avoid an error.  */
19277 #ifdef __cplusplus
19278 extern "C"
19279 #endif
19280 /* We use char because int might match the return type of a gcc2
19281    builtin and then its argument prototype would still apply.  */
19282 char T1_LoadFont ();
19283 int
19284 main ()
19285 {
19286 T1_LoadFont ();
19287   ;
19288   return 0;
19289 }
19290 _ACEOF
19291 rm -f conftest.$ac_objext conftest$ac_exeext
19292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19293   (eval $ac_link) 2>conftest.er1
19294   ac_status=$?
19295   grep -v '^ *+' conftest.er1 >conftest.err
19296   rm -f conftest.er1
19297   cat conftest.err >&5
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); } &&
19300          { ac_try='test -z "$ac_c_werror_flag"
19301                          || test ! -s conftest.err'
19302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303   (eval $ac_try) 2>&5
19304   ac_status=$?
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); }; } &&
19307          { ac_try='test -s conftest$ac_exeext'
19308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309   (eval $ac_try) 2>&5
19310   ac_status=$?
19311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312   (exit $ac_status); }; }; then
19313   ac_cv_lib_t1_T1_LoadFont=yes
19314 else
19315   echo "$as_me: failed program was:" >&5
19316 sed 's/^/| /' conftest.$ac_ext >&5
19317
19318 ac_cv_lib_t1_T1_LoadFont=no
19319 fi
19320 rm -f conftest.err conftest.$ac_objext \
19321       conftest$ac_exeext conftest.$ac_ext
19322 LIBS=$ac_check_lib_save_LIBS
19323 fi
19324 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
19325 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
19326 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
19327   cat >>confdefs.h <<_ACEOF
19328 #define HAVE_LIBT1 1
19329 _ACEOF
19330
19331   LIBS="-lt1 $LIBS"
19332
19333 else
19334   T1LIBMISSING=true
19335 fi
19336
19337
19338
19339 echo "$as_me:$LINENO: checking for byte order" >&5
19340 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
19341 if test "$cross_compiling" = yes; then
19342   CROSSCOMPILE=1
19343 else
19344   cat >conftest.$ac_ext <<_ACEOF
19345 /* confdefs.h.  */
19346 _ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h.  */
19350
19351 int main (int argc, char *argv[])
19352 {
19353     int i = 1;
19354     return *(char*)&i;
19355 }
19356
19357 _ACEOF
19358 rm -f conftest$ac_exeext
19359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19360   (eval $ac_link) 2>&5
19361   ac_status=$?
19362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365   (eval $ac_try) 2>&5
19366   ac_status=$?
19367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368   (exit $ac_status); }; }; then
19369   BIGENDIAN=1
19370 else
19371   echo "$as_me: program exited with status $ac_status" >&5
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19374
19375 ( exit $ac_status )
19376 LITTLEENDIAN=1
19377 fi
19378 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19379 fi
19380 export CROSSCOMPILE
19381
19382 if test "x${CROSSCOMPILE}" = "x1"; then
19383  echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
19384 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
19385  echo "$as_me:$LINENO: checking target system type" >&5
19386 echo $ECHO_N "checking target system type... $ECHO_C" >&6
19387 if test "${ac_cv_target+set}" = set; then
19388   echo $ECHO_N "(cached) $ECHO_C" >&6
19389 else
19390   ac_cv_target_alias=$target_alias
19391 test "x$ac_cv_target_alias" = "x" &&
19392   ac_cv_target_alias=$ac_cv_host_alias
19393 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
19394   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
19395 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
19396    { (exit 1); exit 1; }; }
19397
19398 fi
19399 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
19400 echo "${ECHO_T}$ac_cv_target" >&6
19401 target=$ac_cv_target
19402 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
19403 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
19404 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
19405
19406
19407 # The aliases save the names the user supplied, while $host etc.
19408 # will get canonicalized.
19409 test -n "$target_alias" &&
19410   test "$program_prefix$program_suffix$program_transform_name" = \
19411     NONENONEs,x,x, &&
19412   program_prefix=${target_alias}-
19413  echo "$as_me:$LINENO: checking for byte order, try 2" >&5
19414 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
19415  case "${target}" in
19416   *86* | *-pc-* )
19417      LITTLEENDIAN=1
19418      ;;
19419   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
19420      BIGENDIAN=1
19421      ;;
19422  esac
19423 fi
19424
19425 export LITTLEENDIAN
19426 if test "x${LITTLEENDIAN}" = "x1"; then
19427 echo "$as_me:$LINENO: result: little endian" >&5
19428 echo "${ECHO_T}little endian" >&6
19429 BYTEORDERCHECKOK=1
19430 fi
19431 export BIGENDIAN
19432 if test "x${BIGENDIAN}" = "x1"; then
19433 echo "$as_me:$LINENO: result: big endian" >&5
19434 echo "${ECHO_T}big endian" >&6
19435 BYTEORDERCHECKOK=1
19436 WORDS_BIGENDIAN=1
19437 export WORDS_BIGENDIAN
19438 cat >>confdefs.h <<_ACEOF
19439 #define WORDS_BIGENDIAN 1
19440 _ACEOF
19441
19442 fi
19443 if test "x${BYTEORDERCHECKOK}" != "x1"; then
19444 echo "$as_me:$LINENO: result: unknown" >&5
19445 echo "${ECHO_T}unknown" >&6
19446 echo Byte order could not determined.
19447 exit 1
19448 fi
19449
19450
19451
19452 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
19453 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
19454 if test "$cross_compiling" = yes; then
19455   CROSSCOMPILE=1
19456 else
19457   cat >conftest.$ac_ext <<_ACEOF
19458 /* confdefs.h.  */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h.  */
19463
19464 #include "stdlib.h"
19465 int main (int argc, char*argv[])
19466 {
19467     return system("test `touch config.tmp2`");
19468 }
19469
19470 _ACEOF
19471 rm -f conftest$ac_exeext
19472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19473   (eval $ac_link) 2>&5
19474   ac_status=$?
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478   (eval $ac_try) 2>&5
19479   ac_status=$?
19480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481   (exit $ac_status); }; }; then
19482   OK=OK
19483 else
19484   echo "$as_me: program exited with status $ac_status" >&5
19485 echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19487
19488 fi
19489 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19490 fi
19491
19492 if test "x${OK}" = "xOK";then
19493     test -f config.tmp2 || OK=
19494 fi
19495
19496 if test "x${CROSSCOMPILE}" = "x1";then
19497     OK=OK;
19498 fi
19499 if test "x${OK}" = "xOK";then
19500 rm -f config.tmp2
19501 echo "$as_me:$LINENO: result: yes" >&5
19502 echo "${ECHO_T}yes" >&6
19503 SYSTEM_BACKTICKS=1
19504 export SYSTEM_BACKTICKS
19505 cat >>confdefs.h <<_ACEOF
19506 #define SYSTEM_BACKTICKS 1
19507 _ACEOF
19508
19509 else
19510 echo "$as_me:$LINENO: result: no" >&5
19511 echo "${ECHO_T}no" >&6
19512 fi
19513
19514
19515
19516 test "$program_prefix" != NONE &&
19517   program_transform_name="s,^,$program_prefix,;$program_transform_name"
19518 # Use a double $ so make ignores it.
19519 test "$program_suffix" != NONE &&
19520   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
19521 # Double any \ or $.  echo might interpret backslashes.
19522 # By default was `s,x,x', remove it if useless.
19523 cat <<\_ACEOF >conftest.sed
19524 s/[\\$]/&&/g;s/;s,x,x,$//
19525 _ACEOF
19526 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
19527 rm conftest.sed
19528
19529
19530            ac_config_headers="$ac_config_headers config.h"
19531
19532
19533
19534
19535
19536
19537 ac_header_dirent=no
19538 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19539   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19540 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19541 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19543   echo $ECHO_N "(cached) $ECHO_C" >&6
19544 else
19545   cat >conftest.$ac_ext <<_ACEOF
19546 /* confdefs.h.  */
19547 _ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h.  */
19551 #include <sys/types.h>
19552 #include <$ac_hdr>
19553
19554 int
19555 main ()
19556 {
19557 if ((DIR *) 0)
19558 return 0;
19559   ;
19560   return 0;
19561 }
19562 _ACEOF
19563 rm -f conftest.$ac_objext
19564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19565   (eval $ac_compile) 2>conftest.er1
19566   ac_status=$?
19567   grep -v '^ *+' conftest.er1 >conftest.err
19568   rm -f conftest.er1
19569   cat conftest.err >&5
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); } &&
19572          { ac_try='test -z "$ac_c_werror_flag"
19573                          || test ! -s conftest.err'
19574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575   (eval $ac_try) 2>&5
19576   ac_status=$?
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); }; } &&
19579          { ac_try='test -s conftest.$ac_objext'
19580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581   (eval $ac_try) 2>&5
19582   ac_status=$?
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); }; }; then
19585   eval "$as_ac_Header=yes"
19586 else
19587   echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19589
19590 eval "$as_ac_Header=no"
19591 fi
19592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19593 fi
19594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19597   cat >>confdefs.h <<_ACEOF
19598 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19599 _ACEOF
19600
19601 ac_header_dirent=$ac_hdr; break
19602 fi
19603
19604 done
19605 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19606 if test $ac_header_dirent = dirent.h; then
19607   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19608 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19609 if test "${ac_cv_search_opendir+set}" = set; then
19610   echo $ECHO_N "(cached) $ECHO_C" >&6
19611 else
19612   ac_func_search_save_LIBS=$LIBS
19613 ac_cv_search_opendir=no
19614 cat >conftest.$ac_ext <<_ACEOF
19615 /* confdefs.h.  */
19616 _ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h.  */
19620
19621 /* Override any gcc2 internal prototype to avoid an error.  */
19622 #ifdef __cplusplus
19623 extern "C"
19624 #endif
19625 /* We use char because int might match the return type of a gcc2
19626    builtin and then its argument prototype would still apply.  */
19627 char opendir ();
19628 int
19629 main ()
19630 {
19631 opendir ();
19632   ;
19633   return 0;
19634 }
19635 _ACEOF
19636 rm -f conftest.$ac_objext conftest$ac_exeext
19637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19638   (eval $ac_link) 2>conftest.er1
19639   ac_status=$?
19640   grep -v '^ *+' conftest.er1 >conftest.err
19641   rm -f conftest.er1
19642   cat conftest.err >&5
19643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644   (exit $ac_status); } &&
19645          { ac_try='test -z "$ac_c_werror_flag"
19646                          || test ! -s conftest.err'
19647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648   (eval $ac_try) 2>&5
19649   ac_status=$?
19650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651   (exit $ac_status); }; } &&
19652          { ac_try='test -s conftest$ac_exeext'
19653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654   (eval $ac_try) 2>&5
19655   ac_status=$?
19656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657   (exit $ac_status); }; }; then
19658   ac_cv_search_opendir="none required"
19659 else
19660   echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19662
19663 fi
19664 rm -f conftest.err conftest.$ac_objext \
19665       conftest$ac_exeext conftest.$ac_ext
19666 if test "$ac_cv_search_opendir" = no; then
19667   for ac_lib in dir; do
19668     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19669     cat >conftest.$ac_ext <<_ACEOF
19670 /* confdefs.h.  */
19671 _ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h.  */
19675
19676 /* Override any gcc2 internal prototype to avoid an error.  */
19677 #ifdef __cplusplus
19678 extern "C"
19679 #endif
19680 /* We use char because int might match the return type of a gcc2
19681    builtin and then its argument prototype would still apply.  */
19682 char opendir ();
19683 int
19684 main ()
19685 {
19686 opendir ();
19687   ;
19688   return 0;
19689 }
19690 _ACEOF
19691 rm -f conftest.$ac_objext conftest$ac_exeext
19692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19693   (eval $ac_link) 2>conftest.er1
19694   ac_status=$?
19695   grep -v '^ *+' conftest.er1 >conftest.err
19696   rm -f conftest.er1
19697   cat conftest.err >&5
19698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699   (exit $ac_status); } &&
19700          { ac_try='test -z "$ac_c_werror_flag"
19701                          || test ! -s conftest.err'
19702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703   (eval $ac_try) 2>&5
19704   ac_status=$?
19705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706   (exit $ac_status); }; } &&
19707          { ac_try='test -s conftest$ac_exeext'
19708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709   (eval $ac_try) 2>&5
19710   ac_status=$?
19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); }; }; then
19713   ac_cv_search_opendir="-l$ac_lib"
19714 break
19715 else
19716   echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19718
19719 fi
19720 rm -f conftest.err conftest.$ac_objext \
19721       conftest$ac_exeext conftest.$ac_ext
19722   done
19723 fi
19724 LIBS=$ac_func_search_save_LIBS
19725 fi
19726 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19727 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19728 if test "$ac_cv_search_opendir" != no; then
19729   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19730
19731 fi
19732
19733 else
19734   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19735 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19736 if test "${ac_cv_search_opendir+set}" = set; then
19737   echo $ECHO_N "(cached) $ECHO_C" >&6
19738 else
19739   ac_func_search_save_LIBS=$LIBS
19740 ac_cv_search_opendir=no
19741 cat >conftest.$ac_ext <<_ACEOF
19742 /* confdefs.h.  */
19743 _ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h.  */
19747
19748 /* Override any gcc2 internal prototype to avoid an error.  */
19749 #ifdef __cplusplus
19750 extern "C"
19751 #endif
19752 /* We use char because int might match the return type of a gcc2
19753    builtin and then its argument prototype would still apply.  */
19754 char opendir ();
19755 int
19756 main ()
19757 {
19758 opendir ();
19759   ;
19760   return 0;
19761 }
19762 _ACEOF
19763 rm -f conftest.$ac_objext conftest$ac_exeext
19764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19765   (eval $ac_link) 2>conftest.er1
19766   ac_status=$?
19767   grep -v '^ *+' conftest.er1 >conftest.err
19768   rm -f conftest.er1
19769   cat conftest.err >&5
19770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771   (exit $ac_status); } &&
19772          { ac_try='test -z "$ac_c_werror_flag"
19773                          || test ! -s conftest.err'
19774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775   (eval $ac_try) 2>&5
19776   ac_status=$?
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); }; } &&
19779          { ac_try='test -s conftest$ac_exeext'
19780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781   (eval $ac_try) 2>&5
19782   ac_status=$?
19783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784   (exit $ac_status); }; }; then
19785   ac_cv_search_opendir="none required"
19786 else
19787   echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19789
19790 fi
19791 rm -f conftest.err conftest.$ac_objext \
19792       conftest$ac_exeext conftest.$ac_ext
19793 if test "$ac_cv_search_opendir" = no; then
19794   for ac_lib in x; do
19795     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19796     cat >conftest.$ac_ext <<_ACEOF
19797 /* confdefs.h.  */
19798 _ACEOF
19799 cat confdefs.h >>conftest.$ac_ext
19800 cat >>conftest.$ac_ext <<_ACEOF
19801 /* end confdefs.h.  */
19802
19803 /* Override any gcc2 internal prototype to avoid an error.  */
19804 #ifdef __cplusplus
19805 extern "C"
19806 #endif
19807 /* We use char because int might match the return type of a gcc2
19808    builtin and then its argument prototype would still apply.  */
19809 char opendir ();
19810 int
19811 main ()
19812 {
19813 opendir ();
19814   ;
19815   return 0;
19816 }
19817 _ACEOF
19818 rm -f conftest.$ac_objext conftest$ac_exeext
19819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19820   (eval $ac_link) 2>conftest.er1
19821   ac_status=$?
19822   grep -v '^ *+' conftest.er1 >conftest.err
19823   rm -f conftest.er1
19824   cat conftest.err >&5
19825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826   (exit $ac_status); } &&
19827          { ac_try='test -z "$ac_c_werror_flag"
19828                          || test ! -s conftest.err'
19829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830   (eval $ac_try) 2>&5
19831   ac_status=$?
19832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833   (exit $ac_status); }; } &&
19834          { ac_try='test -s conftest$ac_exeext'
19835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836   (eval $ac_try) 2>&5
19837   ac_status=$?
19838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839   (exit $ac_status); }; }; then
19840   ac_cv_search_opendir="-l$ac_lib"
19841 break
19842 else
19843   echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19845
19846 fi
19847 rm -f conftest.err conftest.$ac_objext \
19848       conftest$ac_exeext conftest.$ac_ext
19849   done
19850 fi
19851 LIBS=$ac_func_search_save_LIBS
19852 fi
19853 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19854 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19855 if test "$ac_cv_search_opendir" != no; then
19856   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19857
19858 fi
19859
19860 fi
19861
19862  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19863 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19864 if test "${ac_cv_header_stdc+set}" = set; then
19865   echo $ECHO_N "(cached) $ECHO_C" >&6
19866 else
19867   cat >conftest.$ac_ext <<_ACEOF
19868 /* confdefs.h.  */
19869 _ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h.  */
19873 #include <stdlib.h>
19874 #include <stdarg.h>
19875 #include <string.h>
19876 #include <float.h>
19877
19878 int
19879 main ()
19880 {
19881
19882   ;
19883   return 0;
19884 }
19885 _ACEOF
19886 rm -f conftest.$ac_objext
19887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19888   (eval $ac_compile) 2>conftest.er1
19889   ac_status=$?
19890   grep -v '^ *+' conftest.er1 >conftest.err
19891   rm -f conftest.er1
19892   cat conftest.err >&5
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); } &&
19895          { ac_try='test -z "$ac_c_werror_flag"
19896                          || test ! -s conftest.err'
19897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898   (eval $ac_try) 2>&5
19899   ac_status=$?
19900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901   (exit $ac_status); }; } &&
19902          { ac_try='test -s conftest.$ac_objext'
19903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904   (eval $ac_try) 2>&5
19905   ac_status=$?
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); }; }; then
19908   ac_cv_header_stdc=yes
19909 else
19910   echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19912
19913 ac_cv_header_stdc=no
19914 fi
19915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19916
19917 if test $ac_cv_header_stdc = yes; then
19918   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19919   cat >conftest.$ac_ext <<_ACEOF
19920 /* confdefs.h.  */
19921 _ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h.  */
19925 #include <string.h>
19926
19927 _ACEOF
19928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19929   $EGREP "memchr" >/dev/null 2>&1; then
19930   :
19931 else
19932   ac_cv_header_stdc=no
19933 fi
19934 rm -f conftest*
19935
19936 fi
19937
19938 if test $ac_cv_header_stdc = yes; then
19939   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19940   cat >conftest.$ac_ext <<_ACEOF
19941 /* confdefs.h.  */
19942 _ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h.  */
19946 #include <stdlib.h>
19947
19948 _ACEOF
19949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19950   $EGREP "free" >/dev/null 2>&1; then
19951   :
19952 else
19953   ac_cv_header_stdc=no
19954 fi
19955 rm -f conftest*
19956
19957 fi
19958
19959 if test $ac_cv_header_stdc = yes; then
19960   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19961   if test "$cross_compiling" = yes; then
19962   :
19963 else
19964   cat >conftest.$ac_ext <<_ACEOF
19965 /* confdefs.h.  */
19966 _ACEOF
19967 cat confdefs.h >>conftest.$ac_ext
19968 cat >>conftest.$ac_ext <<_ACEOF
19969 /* end confdefs.h.  */
19970 #include <ctype.h>
19971 #if ((' ' & 0x0FF) == 0x020)
19972 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19973 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19974 #else
19975 # define ISLOWER(c) \
19976                    (('a' <= (c) && (c) <= 'i') \
19977                      || ('j' <= (c) && (c) <= 'r') \
19978                      || ('s' <= (c) && (c) <= 'z'))
19979 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19980 #endif
19981
19982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19983 int
19984 main ()
19985 {
19986   int i;
19987   for (i = 0; i < 256; i++)
19988     if (XOR (islower (i), ISLOWER (i))
19989         || toupper (i) != TOUPPER (i))
19990       exit(2);
19991   exit (0);
19992 }
19993 _ACEOF
19994 rm -f conftest$ac_exeext
19995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19996   (eval $ac_link) 2>&5
19997   ac_status=$?
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001   (eval $ac_try) 2>&5
20002   ac_status=$?
20003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004   (exit $ac_status); }; }; then
20005   :
20006 else
20007   echo "$as_me: program exited with status $ac_status" >&5
20008 echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.$ac_ext >&5
20010
20011 ( exit $ac_status )
20012 ac_cv_header_stdc=no
20013 fi
20014 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20015 fi
20016 fi
20017 fi
20018 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20019 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20020 if test $ac_cv_header_stdc = yes; then
20021
20022 cat >>confdefs.h <<\_ACEOF
20023 #define STDC_HEADERS 1
20024 _ACEOF
20025
20026 fi
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042 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
20043 do
20044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20046   echo "$as_me:$LINENO: checking for $ac_header" >&5
20047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20049   echo $ECHO_N "(cached) $ECHO_C" >&6
20050 fi
20051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20053 else
20054   # Is the header compilable?
20055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20057 cat >conftest.$ac_ext <<_ACEOF
20058 /* confdefs.h.  */
20059 _ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h.  */
20063 $ac_includes_default
20064 #include <$ac_header>
20065 _ACEOF
20066 rm -f conftest.$ac_objext
20067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20068   (eval $ac_compile) 2>conftest.er1
20069   ac_status=$?
20070   grep -v '^ *+' conftest.er1 >conftest.err
20071   rm -f conftest.er1
20072   cat conftest.err >&5
20073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074   (exit $ac_status); } &&
20075          { ac_try='test -z "$ac_c_werror_flag"
20076                          || test ! -s conftest.err'
20077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078   (eval $ac_try) 2>&5
20079   ac_status=$?
20080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081   (exit $ac_status); }; } &&
20082          { ac_try='test -s conftest.$ac_objext'
20083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084   (eval $ac_try) 2>&5
20085   ac_status=$?
20086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087   (exit $ac_status); }; }; then
20088   ac_header_compiler=yes
20089 else
20090   echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20092
20093 ac_header_compiler=no
20094 fi
20095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20097 echo "${ECHO_T}$ac_header_compiler" >&6
20098
20099 # Is the header present?
20100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20102 cat >conftest.$ac_ext <<_ACEOF
20103 /* confdefs.h.  */
20104 _ACEOF
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h.  */
20108 #include <$ac_header>
20109 _ACEOF
20110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20112   ac_status=$?
20113   grep -v '^ *+' conftest.er1 >conftest.err
20114   rm -f conftest.er1
20115   cat conftest.err >&5
20116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117   (exit $ac_status); } >/dev/null; then
20118   if test -s conftest.err; then
20119     ac_cpp_err=$ac_c_preproc_warn_flag
20120     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20121   else
20122     ac_cpp_err=
20123   fi
20124 else
20125   ac_cpp_err=yes
20126 fi
20127 if test -z "$ac_cpp_err"; then
20128   ac_header_preproc=yes
20129 else
20130   echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20132
20133   ac_header_preproc=no
20134 fi
20135 rm -f conftest.err conftest.$ac_ext
20136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20137 echo "${ECHO_T}$ac_header_preproc" >&6
20138
20139 # So?  What about this header?
20140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20141   yes:no: )
20142     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20146     ac_header_preproc=yes
20147     ;;
20148   no:yes:* )
20149     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20151     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20152 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20153     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20155     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20156 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20159     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20161     (
20162       cat <<\_ASBOX
20163 ## ------------------------------------------ ##
20164 ## Report this to the AC_PACKAGE_NAME lists.  ##
20165 ## ------------------------------------------ ##
20166 _ASBOX
20167     ) |
20168       sed "s/^/$as_me: WARNING:     /" >&2
20169     ;;
20170 esac
20171 echo "$as_me:$LINENO: checking for $ac_header" >&5
20172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20174   echo $ECHO_N "(cached) $ECHO_C" >&6
20175 else
20176   eval "$as_ac_Header=\$ac_header_preproc"
20177 fi
20178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20180
20181 fi
20182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20183   cat >>confdefs.h <<_ACEOF
20184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20185 _ACEOF
20186
20187 fi
20188
20189 done
20190
20191
20192 cat >>confdefs.h <<_ACEOF
20193 #define PACKAGE "$PACKAGE"
20194 _ACEOF
20195
20196 cat >>confdefs.h <<_ACEOF
20197 #define VERSION "$VERSION"
20198 _ACEOF
20199
20200
20201
20202
20203
20204
20205
20206  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20207 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20208 if test "${ac_cv_c_const+set}" = set; then
20209   echo $ECHO_N "(cached) $ECHO_C" >&6
20210 else
20211   cat >conftest.$ac_ext <<_ACEOF
20212 /* confdefs.h.  */
20213 _ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h.  */
20217
20218 int
20219 main ()
20220 {
20221 /* FIXME: Include the comments suggested by Paul. */
20222 #ifndef __cplusplus
20223   /* Ultrix mips cc rejects this.  */
20224   typedef int charset[2];
20225   const charset x;
20226   /* SunOS 4.1.1 cc rejects this.  */
20227   char const *const *ccp;
20228   char **p;
20229   /* NEC SVR4.0.2 mips cc rejects this.  */
20230   struct point {int x, y;};
20231   static struct point const zero = {0,0};
20232   /* AIX XL C 1.02.0.0 rejects this.
20233      It does not let you subtract one const X* pointer from another in
20234      an arm of an if-expression whose if-part is not a constant
20235      expression */
20236   const char *g = "string";
20237   ccp = &g + (g ? g-g : 0);
20238   /* HPUX 7.0 cc rejects these. */
20239   ++ccp;
20240   p = (char**) ccp;
20241   ccp = (char const *const *) p;
20242   { /* SCO 3.2v4 cc rejects this.  */
20243     char *t;
20244     char const *s = 0 ? (char *) 0 : (char const *) 0;
20245
20246     *t++ = 0;
20247   }
20248   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20249     int x[] = {25, 17};
20250     const int *foo = &x[0];
20251     ++foo;
20252   }
20253   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20254     typedef const int *iptr;
20255     iptr p = 0;
20256     ++p;
20257   }
20258   { /* AIX XL C 1.02.0.0 rejects this saying
20259        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20260     struct s { int j; const int *ap[3]; };
20261     struct s *b; b->j = 5;
20262   }
20263   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20264     const int foo = 10;
20265   }
20266 #endif
20267
20268   ;
20269   return 0;
20270 }
20271 _ACEOF
20272 rm -f conftest.$ac_objext
20273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20274   (eval $ac_compile) 2>conftest.er1
20275   ac_status=$?
20276   grep -v '^ *+' conftest.er1 >conftest.err
20277   rm -f conftest.er1
20278   cat conftest.err >&5
20279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280   (exit $ac_status); } &&
20281          { ac_try='test -z "$ac_c_werror_flag"
20282                          || test ! -s conftest.err'
20283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284   (eval $ac_try) 2>&5
20285   ac_status=$?
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); }; } &&
20288          { ac_try='test -s conftest.$ac_objext'
20289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290   (eval $ac_try) 2>&5
20291   ac_status=$?
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); }; }; then
20294   ac_cv_c_const=yes
20295 else
20296   echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20298
20299 ac_cv_c_const=no
20300 fi
20301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20302 fi
20303 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20304 echo "${ECHO_T}$ac_cv_c_const" >&6
20305 if test $ac_cv_c_const = no; then
20306
20307 cat >>confdefs.h <<\_ACEOF
20308 #define const
20309 _ACEOF
20310
20311 fi
20312
20313  echo "$as_me:$LINENO: checking for inline" >&5
20314 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20315 if test "${ac_cv_c_inline+set}" = set; then
20316   echo $ECHO_N "(cached) $ECHO_C" >&6
20317 else
20318   ac_cv_c_inline=no
20319 for ac_kw in inline __inline__ __inline; do
20320   cat >conftest.$ac_ext <<_ACEOF
20321 /* confdefs.h.  */
20322 _ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h.  */
20326 #ifndef __cplusplus
20327 typedef int foo_t;
20328 static $ac_kw foo_t static_foo () {return 0; }
20329 $ac_kw foo_t foo () {return 0; }
20330 #endif
20331
20332 _ACEOF
20333 rm -f conftest.$ac_objext
20334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20335   (eval $ac_compile) 2>conftest.er1
20336   ac_status=$?
20337   grep -v '^ *+' conftest.er1 >conftest.err
20338   rm -f conftest.er1
20339   cat conftest.err >&5
20340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341   (exit $ac_status); } &&
20342          { ac_try='test -z "$ac_c_werror_flag"
20343                          || test ! -s conftest.err'
20344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345   (eval $ac_try) 2>&5
20346   ac_status=$?
20347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348   (exit $ac_status); }; } &&
20349          { ac_try='test -s conftest.$ac_objext'
20350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20351   (eval $ac_try) 2>&5
20352   ac_status=$?
20353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354   (exit $ac_status); }; }; then
20355   ac_cv_c_inline=$ac_kw; break
20356 else
20357   echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20359
20360 fi
20361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20362 done
20363
20364 fi
20365 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20366 echo "${ECHO_T}$ac_cv_c_inline" >&6
20367
20368
20369 case $ac_cv_c_inline in
20370   inline | yes) ;;
20371   *)
20372     case $ac_cv_c_inline in
20373       no) ac_val=;;
20374       *) ac_val=$ac_cv_c_inline;;
20375     esac
20376     cat >>confdefs.h <<_ACEOF
20377 #ifndef __cplusplus
20378 #define inline $ac_val
20379 #endif
20380 _ACEOF
20381     ;;
20382 esac
20383
20384  echo "$as_me:$LINENO: checking for off_t" >&5
20385 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20386 if test "${ac_cv_type_off_t+set}" = set; then
20387   echo $ECHO_N "(cached) $ECHO_C" >&6
20388 else
20389   cat >conftest.$ac_ext <<_ACEOF
20390 /* confdefs.h.  */
20391 _ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h.  */
20395 $ac_includes_default
20396 int
20397 main ()
20398 {
20399 if ((off_t *) 0)
20400   return 0;
20401 if (sizeof (off_t))
20402   return 0;
20403   ;
20404   return 0;
20405 }
20406 _ACEOF
20407 rm -f conftest.$ac_objext
20408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20409   (eval $ac_compile) 2>conftest.er1
20410   ac_status=$?
20411   grep -v '^ *+' conftest.er1 >conftest.err
20412   rm -f conftest.er1
20413   cat conftest.err >&5
20414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); } &&
20416          { ac_try='test -z "$ac_c_werror_flag"
20417                          || test ! -s conftest.err'
20418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419   (eval $ac_try) 2>&5
20420   ac_status=$?
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); }; } &&
20423          { ac_try='test -s conftest.$ac_objext'
20424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425   (eval $ac_try) 2>&5
20426   ac_status=$?
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); }; }; then
20429   ac_cv_type_off_t=yes
20430 else
20431   echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20433
20434 ac_cv_type_off_t=no
20435 fi
20436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20437 fi
20438 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20439 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20440 if test $ac_cv_type_off_t = yes; then
20441   :
20442 else
20443
20444 cat >>confdefs.h <<_ACEOF
20445 #define off_t long
20446 _ACEOF
20447
20448 fi
20449
20450  echo "$as_me:$LINENO: checking for size_t" >&5
20451 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20452 if test "${ac_cv_type_size_t+set}" = set; then
20453   echo $ECHO_N "(cached) $ECHO_C" >&6
20454 else
20455   cat >conftest.$ac_ext <<_ACEOF
20456 /* confdefs.h.  */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h.  */
20461 $ac_includes_default
20462 int
20463 main ()
20464 {
20465 if ((size_t *) 0)
20466   return 0;
20467 if (sizeof (size_t))
20468   return 0;
20469   ;
20470   return 0;
20471 }
20472 _ACEOF
20473 rm -f conftest.$ac_objext
20474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20475   (eval $ac_compile) 2>conftest.er1
20476   ac_status=$?
20477   grep -v '^ *+' conftest.er1 >conftest.err
20478   rm -f conftest.er1
20479   cat conftest.err >&5
20480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481   (exit $ac_status); } &&
20482          { ac_try='test -z "$ac_c_werror_flag"
20483                          || test ! -s conftest.err'
20484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485   (eval $ac_try) 2>&5
20486   ac_status=$?
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); }; } &&
20489          { ac_try='test -s conftest.$ac_objext'
20490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491   (eval $ac_try) 2>&5
20492   ac_status=$?
20493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494   (exit $ac_status); }; }; then
20495   ac_cv_type_size_t=yes
20496 else
20497   echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20499
20500 ac_cv_type_size_t=no
20501 fi
20502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20503 fi
20504 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20505 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20506 if test $ac_cv_type_size_t = yes; then
20507   :
20508 else
20509
20510 cat >>confdefs.h <<_ACEOF
20511 #define size_t unsigned
20512 _ACEOF
20513
20514 fi
20515
20516  echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20517 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20518 if test "${ac_cv_struct_tm+set}" = set; then
20519   echo $ECHO_N "(cached) $ECHO_C" >&6
20520 else
20521   cat >conftest.$ac_ext <<_ACEOF
20522 /* confdefs.h.  */
20523 _ACEOF
20524 cat confdefs.h >>conftest.$ac_ext
20525 cat >>conftest.$ac_ext <<_ACEOF
20526 /* end confdefs.h.  */
20527 #include <sys/types.h>
20528 #include <time.h>
20529
20530 int
20531 main ()
20532 {
20533 struct tm *tp; tp->tm_sec;
20534   ;
20535   return 0;
20536 }
20537 _ACEOF
20538 rm -f conftest.$ac_objext
20539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20540   (eval $ac_compile) 2>conftest.er1
20541   ac_status=$?
20542   grep -v '^ *+' conftest.er1 >conftest.err
20543   rm -f conftest.er1
20544   cat conftest.err >&5
20545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546   (exit $ac_status); } &&
20547          { ac_try='test -z "$ac_c_werror_flag"
20548                          || test ! -s conftest.err'
20549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550   (eval $ac_try) 2>&5
20551   ac_status=$?
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); }; } &&
20554          { ac_try='test -s conftest.$ac_objext'
20555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556   (eval $ac_try) 2>&5
20557   ac_status=$?
20558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559   (exit $ac_status); }; }; then
20560   ac_cv_struct_tm=time.h
20561 else
20562   echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20564
20565 ac_cv_struct_tm=sys/time.h
20566 fi
20567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20568 fi
20569 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20570 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20571 if test $ac_cv_struct_tm = sys/time.h; then
20572
20573 cat >>confdefs.h <<\_ACEOF
20574 #define TM_IN_SYS_TIME 1
20575 _ACEOF
20576
20577 fi
20578
20579  echo "$as_me:$LINENO: checking for boolean" >&5
20580 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
20581 if test "${ac_cv_type_boolean+set}" = set; then
20582   echo $ECHO_N "(cached) $ECHO_C" >&6
20583 else
20584   cat >conftest.$ac_ext <<_ACEOF
20585 /* confdefs.h.  */
20586 _ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h.  */
20590 $ac_includes_default
20591 int
20592 main ()
20593 {
20594 if ((boolean *) 0)
20595   return 0;
20596 if (sizeof (boolean))
20597   return 0;
20598   ;
20599   return 0;
20600 }
20601 _ACEOF
20602 rm -f conftest.$ac_objext
20603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20604   (eval $ac_compile) 2>conftest.er1
20605   ac_status=$?
20606   grep -v '^ *+' conftest.er1 >conftest.err
20607   rm -f conftest.er1
20608   cat conftest.err >&5
20609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610   (exit $ac_status); } &&
20611          { ac_try='test -z "$ac_c_werror_flag"
20612                          || test ! -s conftest.err'
20613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614   (eval $ac_try) 2>&5
20615   ac_status=$?
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); }; } &&
20618          { ac_try='test -s conftest.$ac_objext'
20619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620   (eval $ac_try) 2>&5
20621   ac_status=$?
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); }; }; then
20624   ac_cv_type_boolean=yes
20625 else
20626   echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20628
20629 ac_cv_type_boolean=no
20630 fi
20631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20632 fi
20633 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
20634 echo "${ECHO_T}$ac_cv_type_boolean" >&6
20635 if test $ac_cv_type_boolean = yes; then
20636   :
20637 else
20638
20639 cat >>confdefs.h <<_ACEOF
20640 #define boolean int
20641 _ACEOF
20642
20643 fi
20644  #needed for jpeglib
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
20657 do
20658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20659 echo "$as_me:$LINENO: checking for $ac_func" >&5
20660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20661 if eval "test \"\${$as_ac_var+set}\" = set"; then
20662   echo $ECHO_N "(cached) $ECHO_C" >&6
20663 else
20664   cat >conftest.$ac_ext <<_ACEOF
20665 /* confdefs.h.  */
20666 _ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h.  */
20670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20672 #define $ac_func innocuous_$ac_func
20673
20674 /* System header to define __stub macros and hopefully few prototypes,
20675     which can conflict with char $ac_func (); below.
20676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20677     <limits.h> exists even on freestanding compilers.  */
20678
20679 #ifdef __STDC__
20680 # include <limits.h>
20681 #else
20682 # include <assert.h>
20683 #endif
20684
20685 #undef $ac_func
20686
20687 /* Override any gcc2 internal prototype to avoid an error.  */
20688 #ifdef __cplusplus
20689 extern "C"
20690 {
20691 #endif
20692 /* We use char because int might match the return type of a gcc2
20693    builtin and then its argument prototype would still apply.  */
20694 char $ac_func ();
20695 /* The GNU C library defines this for functions which it implements
20696     to always fail with ENOSYS.  Some functions are actually named
20697     something starting with __ and the normal name is an alias.  */
20698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20699 choke me
20700 #else
20701 char (*f) () = $ac_func;
20702 #endif
20703 #ifdef __cplusplus
20704 }
20705 #endif
20706
20707 int
20708 main ()
20709 {
20710 return f != $ac_func;
20711   ;
20712   return 0;
20713 }
20714 _ACEOF
20715 rm -f conftest.$ac_objext conftest$ac_exeext
20716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20717   (eval $ac_link) 2>conftest.er1
20718   ac_status=$?
20719   grep -v '^ *+' conftest.er1 >conftest.err
20720   rm -f conftest.er1
20721   cat conftest.err >&5
20722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723   (exit $ac_status); } &&
20724          { ac_try='test -z "$ac_c_werror_flag"
20725                          || test ! -s conftest.err'
20726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20727   (eval $ac_try) 2>&5
20728   ac_status=$?
20729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730   (exit $ac_status); }; } &&
20731          { ac_try='test -s conftest$ac_exeext'
20732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20733   (eval $ac_try) 2>&5
20734   ac_status=$?
20735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736   (exit $ac_status); }; }; then
20737   eval "$as_ac_var=yes"
20738 else
20739   echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.$ac_ext >&5
20741
20742 eval "$as_ac_var=no"
20743 fi
20744 rm -f conftest.err conftest.$ac_objext \
20745       conftest$ac_exeext conftest.$ac_ext
20746 fi
20747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20749 if test `eval echo '${'$as_ac_var'}'` = yes; then
20750   cat >>confdefs.h <<_ACEOF
20751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20752 _ACEOF
20753
20754 fi
20755 done
20756
20757
20758 # ------------------------------------------------------------------
20759
20760
20761 for ac_prog in freetype-config
20762 do
20763   # Extract the first word of "$ac_prog", so it can be a program name with args.
20764 set dummy $ac_prog; ac_word=$2
20765 echo "$as_me:$LINENO: checking for $ac_word" >&5
20766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20767 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
20768   echo $ECHO_N "(cached) $ECHO_C" >&6
20769 else
20770   if test -n "$FREETYPE_CONFIG"; then
20771   ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
20772 else
20773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20774 for as_dir in $PATH
20775 do
20776   IFS=$as_save_IFS
20777   test -z "$as_dir" && as_dir=.
20778   for ac_exec_ext in '' $ac_executable_extensions; do
20779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20780     ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
20781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20782     break 2
20783   fi
20784 done
20785 done
20786
20787 fi
20788 fi
20789 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
20790 if test -n "$FREETYPE_CONFIG"; then
20791   echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
20792 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
20793 else
20794   echo "$as_me:$LINENO: result: no" >&5
20795 echo "${ECHO_T}no" >&6
20796 fi
20797
20798   test -n "$FREETYPE_CONFIG" && break
20799 done
20800
20801 OLDCPPFLAGS="${CPPFLAGS}"
20802 OLDLIBS="${LIBS}"
20803 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
20804     CPPFLAGS="$CPPFLAGS "`freetype-config --cflags`
20805 else if test -d /usr/include/freetype2; then
20806     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
20807 else if test -d /usr/local/include/freetype2; then
20808     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
20809 fi
20810 fi
20811 fi
20812
20813 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
20814 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
20815 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
20816   echo $ECHO_N "(cached) $ECHO_C" >&6
20817 else
20818   ac_check_lib_save_LIBS=$LIBS
20819 LIBS="-lfreetype  $LIBS"
20820 cat >conftest.$ac_ext <<_ACEOF
20821 /* confdefs.h.  */
20822 _ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h.  */
20826
20827 /* Override any gcc2 internal prototype to avoid an error.  */
20828 #ifdef __cplusplus
20829 extern "C"
20830 #endif
20831 /* We use char because int might match the return type of a gcc2
20832    builtin and then its argument prototype would still apply.  */
20833 char FT_Init_FreeType ();
20834 int
20835 main ()
20836 {
20837 FT_Init_FreeType ();
20838   ;
20839   return 0;
20840 }
20841 _ACEOF
20842 rm -f conftest.$ac_objext conftest$ac_exeext
20843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20844   (eval $ac_link) 2>conftest.er1
20845   ac_status=$?
20846   grep -v '^ *+' conftest.er1 >conftest.err
20847   rm -f conftest.er1
20848   cat conftest.err >&5
20849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850   (exit $ac_status); } &&
20851          { ac_try='test -z "$ac_c_werror_flag"
20852                          || test ! -s conftest.err'
20853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854   (eval $ac_try) 2>&5
20855   ac_status=$?
20856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857   (exit $ac_status); }; } &&
20858          { ac_try='test -s conftest$ac_exeext'
20859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860   (eval $ac_try) 2>&5
20861   ac_status=$?
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); }; }; then
20864   ac_cv_lib_freetype_FT_Init_FreeType=yes
20865 else
20866   echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20868
20869 ac_cv_lib_freetype_FT_Init_FreeType=no
20870 fi
20871 rm -f conftest.err conftest.$ac_objext \
20872       conftest$ac_exeext conftest.$ac_ext
20873 LIBS=$ac_check_lib_save_LIBS
20874 fi
20875 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
20876 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
20877 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
20878   HAVE_LIB_FREETYPE=1
20879 fi
20880
20881
20882 for ac_header in freetype/freetype.h
20883 do
20884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20886   echo "$as_me:$LINENO: checking for $ac_header" >&5
20887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20889   echo $ECHO_N "(cached) $ECHO_C" >&6
20890 fi
20891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20893 else
20894   # Is the header compilable?
20895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20897 cat >conftest.$ac_ext <<_ACEOF
20898 /* confdefs.h.  */
20899 _ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h.  */
20903 $ac_includes_default
20904 #include <$ac_header>
20905 _ACEOF
20906 rm -f conftest.$ac_objext
20907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20908   (eval $ac_compile) 2>conftest.er1
20909   ac_status=$?
20910   grep -v '^ *+' conftest.er1 >conftest.err
20911   rm -f conftest.er1
20912   cat conftest.err >&5
20913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914   (exit $ac_status); } &&
20915          { ac_try='test -z "$ac_c_werror_flag"
20916                          || test ! -s conftest.err'
20917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918   (eval $ac_try) 2>&5
20919   ac_status=$?
20920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921   (exit $ac_status); }; } &&
20922          { ac_try='test -s conftest.$ac_objext'
20923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924   (eval $ac_try) 2>&5
20925   ac_status=$?
20926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927   (exit $ac_status); }; }; then
20928   ac_header_compiler=yes
20929 else
20930   echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.$ac_ext >&5
20932
20933 ac_header_compiler=no
20934 fi
20935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20937 echo "${ECHO_T}$ac_header_compiler" >&6
20938
20939 # Is the header present?
20940 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20942 cat >conftest.$ac_ext <<_ACEOF
20943 /* confdefs.h.  */
20944 _ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h.  */
20948 #include <$ac_header>
20949 _ACEOF
20950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20952   ac_status=$?
20953   grep -v '^ *+' conftest.er1 >conftest.err
20954   rm -f conftest.er1
20955   cat conftest.err >&5
20956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957   (exit $ac_status); } >/dev/null; then
20958   if test -s conftest.err; then
20959     ac_cpp_err=$ac_c_preproc_warn_flag
20960     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20961   else
20962     ac_cpp_err=
20963   fi
20964 else
20965   ac_cpp_err=yes
20966 fi
20967 if test -z "$ac_cpp_err"; then
20968   ac_header_preproc=yes
20969 else
20970   echo "$as_me: failed program was:" >&5
20971 sed 's/^/| /' conftest.$ac_ext >&5
20972
20973   ac_header_preproc=no
20974 fi
20975 rm -f conftest.err conftest.$ac_ext
20976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20977 echo "${ECHO_T}$ac_header_preproc" >&6
20978
20979 # So?  What about this header?
20980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20981   yes:no: )
20982     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20986     ac_header_preproc=yes
20987     ;;
20988   no:yes:* )
20989     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20991     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20992 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20993     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20995     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20996 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20999     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21001     (
21002       cat <<\_ASBOX
21003 ## ------------------------------------------ ##
21004 ## Report this to the AC_PACKAGE_NAME lists.  ##
21005 ## ------------------------------------------ ##
21006 _ASBOX
21007     ) |
21008       sed "s/^/$as_me: WARNING:     /" >&2
21009     ;;
21010 esac
21011 echo "$as_me:$LINENO: checking for $ac_header" >&5
21012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21014   echo $ECHO_N "(cached) $ECHO_C" >&6
21015 else
21016   eval "$as_ac_Header=\$ac_header_preproc"
21017 fi
21018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21020
21021 fi
21022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21023   cat >>confdefs.h <<_ACEOF
21024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21025 _ACEOF
21026  HAVE_FREETYPE_FREETYPE_H=1
21027 fi
21028
21029 done
21030
21031
21032 for ac_header in ft2build.h
21033 do
21034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21036   echo "$as_me:$LINENO: checking for $ac_header" >&5
21037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21039   echo $ECHO_N "(cached) $ECHO_C" >&6
21040 fi
21041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21043 else
21044   # Is the header compilable?
21045 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21047 cat >conftest.$ac_ext <<_ACEOF
21048 /* confdefs.h.  */
21049 _ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h.  */
21053 $ac_includes_default
21054 #include <$ac_header>
21055 _ACEOF
21056 rm -f conftest.$ac_objext
21057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21058   (eval $ac_compile) 2>conftest.er1
21059   ac_status=$?
21060   grep -v '^ *+' conftest.er1 >conftest.err
21061   rm -f conftest.er1
21062   cat conftest.err >&5
21063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064   (exit $ac_status); } &&
21065          { ac_try='test -z "$ac_c_werror_flag"
21066                          || test ! -s conftest.err'
21067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21068   (eval $ac_try) 2>&5
21069   ac_status=$?
21070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071   (exit $ac_status); }; } &&
21072          { ac_try='test -s conftest.$ac_objext'
21073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074   (eval $ac_try) 2>&5
21075   ac_status=$?
21076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077   (exit $ac_status); }; }; then
21078   ac_header_compiler=yes
21079 else
21080   echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21082
21083 ac_header_compiler=no
21084 fi
21085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21087 echo "${ECHO_T}$ac_header_compiler" >&6
21088
21089 # Is the header present?
21090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21092 cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h.  */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h.  */
21098 #include <$ac_header>
21099 _ACEOF
21100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21102   ac_status=$?
21103   grep -v '^ *+' conftest.er1 >conftest.err
21104   rm -f conftest.er1
21105   cat conftest.err >&5
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); } >/dev/null; then
21108   if test -s conftest.err; then
21109     ac_cpp_err=$ac_c_preproc_warn_flag
21110     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21111   else
21112     ac_cpp_err=
21113   fi
21114 else
21115   ac_cpp_err=yes
21116 fi
21117 if test -z "$ac_cpp_err"; then
21118   ac_header_preproc=yes
21119 else
21120   echo "$as_me: failed program was:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21122
21123   ac_header_preproc=no
21124 fi
21125 rm -f conftest.err conftest.$ac_ext
21126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21127 echo "${ECHO_T}$ac_header_preproc" >&6
21128
21129 # So?  What about this header?
21130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21131   yes:no: )
21132     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21136     ac_header_preproc=yes
21137     ;;
21138   no:yes:* )
21139     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21141     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21142 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21143     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21145     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21146 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21149     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21151     (
21152       cat <<\_ASBOX
21153 ## ------------------------------------------ ##
21154 ## Report this to the AC_PACKAGE_NAME lists.  ##
21155 ## ------------------------------------------ ##
21156 _ASBOX
21157     ) |
21158       sed "s/^/$as_me: WARNING:     /" >&2
21159     ;;
21160 esac
21161 echo "$as_me:$LINENO: checking for $ac_header" >&5
21162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21164   echo $ECHO_N "(cached) $ECHO_C" >&6
21165 else
21166   eval "$as_ac_Header=\$ac_header_preproc"
21167 fi
21168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21170
21171 fi
21172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21173   cat >>confdefs.h <<_ACEOF
21174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21175 _ACEOF
21176  HAVE_FT2BUILD_H=1
21177 fi
21178
21179 done
21180
21181
21182 if test "x${HAVE_LIB_FREETYPE}" '!=' "x";then
21183     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
21184         HAVE_FREETYPE=1
21185     fi
21186     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
21187         HAVE_FREETYPE=1
21188     fi
21189 fi
21190
21191 if test "x${HAVE_FREETYPE}" = "x1"; then
21192     if test "x{$FREETYPE_CONFIG}" '!=' "x"; then
21193         LIBS="$LIBS "`freetype-config --libs`
21194     else
21195         LIBS="$LIBS -lfreetype"
21196     fi
21197
21198 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
21199     HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
21200 fi
21201
21202     echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
21203 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
21204
21205     cat > conftest.c << EOF
21206 $HAVE_FT2BUILD_H_DEFINE
21207
21208 #ifdef HAVE_FT2BUILD_H
21209 #include <ft2build.h>
21210 #include FT_FREETYPE_H
21211 #include FT_GLYPH_H
21212 #include FT_SIZES_H
21213 #include FT_SFNT_NAMES_H
21214 #include FT_TRUETYPE_IDS_H
21215 #include FT_OUTLINE_H
21216 #else
21217 #include <freetype/freetype.h>
21218 #include <freetype/ftglyph.h>
21219 #include <freetype/ftsizes.h>
21220 #include <freetype/ftsnames.h>
21221 #include <freetype/ttnameid.h>
21222 #include <freetype/ftoutln.h>
21223 #endif
21224
21225 int main()
21226 {
21227     FT_Library ftlibrary;
21228     FT_Face face;
21229     FT_Error error;
21230     FT_ULong charcode;
21231     FT_UInt gindex;
21232     FT_Glyph glyph;
21233     FT_BBox bbox;
21234     FT_Matrix matrix;
21235     FT_UInt i;
21236     char* name = 0;
21237     char italic, bold;
21238
21239     FT_Init_FreeType(&ftlibrary);
21240     FT_New_Face(ftlibrary, "filename", 0, &face);
21241     i = face->num_glyphs - 1;
21242     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
21243     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
21244     FT_Get_Postscript_Name(face);
21245     FT_Get_Char_Index(face, 33);
21246     FT_Get_First_Char(face, &i);
21247     FT_Get_Next_Char(face, 33, &i);
21248     if(FT_HAS_GLYPH_NAMES(face)) {
21249         FT_Get_Glyph_Name(face, 33, name, 127);
21250     }
21251     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
21252     FT_Get_Glyph(face->glyph, &glyph);
21253     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
21254     FT_Done_Glyph(glyph);
21255     FT_Done_Face(face);
21256     FT_Done_FreeType(ftlibrary);
21257     return 0;
21258 }
21259 EOF
21260
21261     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
21262     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21263         echo "$as_me:$LINENO: result: yes" >&5
21264 echo "${ECHO_T}yes" >&6
21265         cat >>confdefs.h <<_ACEOF
21266 #define HAVE_FREETYPE 1
21267 _ACEOF
21268
21269         cat >>confdefs.h <<_ACEOF
21270 #define USE_FREETYPE 1
21271 _ACEOF
21272   # for ttf2tp1
21273     else
21274         echo "configure: failed program was:" >&5
21275         cat conftest.c >&5
21276         HAVE_FREETYPE=0
21277         echo "$as_me:$LINENO: result: no" >&5
21278 echo "${ECHO_T}no" >&6
21279     fi
21280     rm -f conftest*
21281 fi
21282
21283 # if the above didn't work out, reset all changes to the compiler variables.
21284 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
21285     CPPFLAGS=$OLDCPPFLAGS
21286     LIBS=$OLDLIBS
21287 fi
21288
21289
21290
21291 OLDCPPFLAGS="${CPPFLAGS}"
21292 OLDLIBS="${LIBS}"
21293
21294 if test -d /usr/include/fontconfig; then
21295     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
21296 fi
21297
21298 echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
21299 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
21300 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
21301   echo $ECHO_N "(cached) $ECHO_C" >&6
21302 else
21303   ac_check_lib_save_LIBS=$LIBS
21304 LIBS="-lfontconfig  $LIBS"
21305 cat >conftest.$ac_ext <<_ACEOF
21306 /* confdefs.h.  */
21307 _ACEOF
21308 cat confdefs.h >>conftest.$ac_ext
21309 cat >>conftest.$ac_ext <<_ACEOF
21310 /* end confdefs.h.  */
21311
21312 /* Override any gcc2 internal prototype to avoid an error.  */
21313 #ifdef __cplusplus
21314 extern "C"
21315 #endif
21316 /* We use char because int might match the return type of a gcc2
21317    builtin and then its argument prototype would still apply.  */
21318 char FcInit ();
21319 int
21320 main ()
21321 {
21322 FcInit ();
21323   ;
21324   return 0;
21325 }
21326 _ACEOF
21327 rm -f conftest.$ac_objext conftest$ac_exeext
21328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21329   (eval $ac_link) 2>conftest.er1
21330   ac_status=$?
21331   grep -v '^ *+' conftest.er1 >conftest.err
21332   rm -f conftest.er1
21333   cat conftest.err >&5
21334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335   (exit $ac_status); } &&
21336          { ac_try='test -z "$ac_c_werror_flag"
21337                          || test ! -s conftest.err'
21338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339   (eval $ac_try) 2>&5
21340   ac_status=$?
21341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342   (exit $ac_status); }; } &&
21343          { ac_try='test -s conftest$ac_exeext'
21344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21345   (eval $ac_try) 2>&5
21346   ac_status=$?
21347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348   (exit $ac_status); }; }; then
21349   ac_cv_lib_fontconfig_FcInit=yes
21350 else
21351   echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21353
21354 ac_cv_lib_fontconfig_FcInit=no
21355 fi
21356 rm -f conftest.err conftest.$ac_objext \
21357       conftest$ac_exeext conftest.$ac_ext
21358 LIBS=$ac_check_lib_save_LIBS
21359 fi
21360 echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
21361 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
21362 if test $ac_cv_lib_fontconfig_FcInit = yes; then
21363   HAVE_LIB_FONTCONFIG=1
21364 fi
21365
21366
21367 for ac_header in fontconfig.h
21368 do
21369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21371   echo "$as_me:$LINENO: checking for $ac_header" >&5
21372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21374   echo $ECHO_N "(cached) $ECHO_C" >&6
21375 fi
21376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21378 else
21379   # Is the header compilable?
21380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21382 cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h.  */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h.  */
21388 $ac_includes_default
21389 #include <$ac_header>
21390 _ACEOF
21391 rm -f conftest.$ac_objext
21392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21393   (eval $ac_compile) 2>conftest.er1
21394   ac_status=$?
21395   grep -v '^ *+' conftest.er1 >conftest.err
21396   rm -f conftest.er1
21397   cat conftest.err >&5
21398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399   (exit $ac_status); } &&
21400          { ac_try='test -z "$ac_c_werror_flag"
21401                          || test ! -s conftest.err'
21402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21403   (eval $ac_try) 2>&5
21404   ac_status=$?
21405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406   (exit $ac_status); }; } &&
21407          { ac_try='test -s conftest.$ac_objext'
21408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21409   (eval $ac_try) 2>&5
21410   ac_status=$?
21411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412   (exit $ac_status); }; }; then
21413   ac_header_compiler=yes
21414 else
21415   echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21417
21418 ac_header_compiler=no
21419 fi
21420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21422 echo "${ECHO_T}$ac_header_compiler" >&6
21423
21424 # Is the header present?
21425 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21427 cat >conftest.$ac_ext <<_ACEOF
21428 /* confdefs.h.  */
21429 _ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h.  */
21433 #include <$ac_header>
21434 _ACEOF
21435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21436   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21437   ac_status=$?
21438   grep -v '^ *+' conftest.er1 >conftest.err
21439   rm -f conftest.er1
21440   cat conftest.err >&5
21441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); } >/dev/null; then
21443   if test -s conftest.err; then
21444     ac_cpp_err=$ac_c_preproc_warn_flag
21445     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21446   else
21447     ac_cpp_err=
21448   fi
21449 else
21450   ac_cpp_err=yes
21451 fi
21452 if test -z "$ac_cpp_err"; then
21453   ac_header_preproc=yes
21454 else
21455   echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21457
21458   ac_header_preproc=no
21459 fi
21460 rm -f conftest.err conftest.$ac_ext
21461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21462 echo "${ECHO_T}$ac_header_preproc" >&6
21463
21464 # So?  What about this header?
21465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21466   yes:no: )
21467     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21471     ac_header_preproc=yes
21472     ;;
21473   no:yes:* )
21474     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21476     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21477 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21478     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21480     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21481 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21484     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21486     (
21487       cat <<\_ASBOX
21488 ## ------------------------------------------ ##
21489 ## Report this to the AC_PACKAGE_NAME lists.  ##
21490 ## ------------------------------------------ ##
21491 _ASBOX
21492     ) |
21493       sed "s/^/$as_me: WARNING:     /" >&2
21494     ;;
21495 esac
21496 echo "$as_me:$LINENO: checking for $ac_header" >&5
21497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21499   echo $ECHO_N "(cached) $ECHO_C" >&6
21500 else
21501   eval "$as_ac_Header=\$ac_header_preproc"
21502 fi
21503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21505
21506 fi
21507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21508   cat >>confdefs.h <<_ACEOF
21509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21510 _ACEOF
21511  HAVE_FONTCONFIG_H=1
21512 fi
21513
21514 done
21515
21516
21517 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
21518 if test "x${HAVE_FONTCONFIG_H}" != "x";then
21519     HAVE_FONTCONFIG=1
21520 fi
21521 fi
21522
21523 if test "x${HAVE_FONTCONFIG}" = "x1"; then
21524     LIBS="$LIBS -lfontconfig"
21525 echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
21526 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6
21527
21528 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
21529     #move freetype library to the end of libraries, otherwise fontconfig
21530     #won't compile.
21531     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
21532 fi
21533
21534 cat > conftest.c << EOF
21535 #include <fontconfig.h>
21536
21537 int main()
21538 {
21539     FcPattern *pattern, *match;
21540     FcResult result;
21541     FcChar8 *v;
21542     FcInit();
21543     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
21544     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
21545     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
21546     FcConfigSubstitute(0, pattern, FcMatchPattern);
21547     FcDefaultSubstitute(pattern);
21548     match = FcFontMatch(0, pattern, &result);
21549     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
21550     FcPatternPrint(pattern);
21551     FcPatternDestroy(pattern);
21552     FcPatternDestroy(match);
21553     return 0;
21554 }
21555 EOF
21556
21557     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
21558     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21559         echo "$as_me:$LINENO: result: yes" >&5
21560 echo "${ECHO_T}yes" >&6
21561         cat >>confdefs.h <<_ACEOF
21562 #define HAVE_FONTCONFIG 1
21563 _ACEOF
21564
21565     else
21566         echo "configure: failed program was:" >&5
21567         cat conftest.c >&5
21568         HAVE_FONTCONFIG=0
21569         echo "$as_me:$LINENO: result: no" >&5
21570 echo "${ECHO_T}no" >&6
21571     fi
21572     rm -f conftest*
21573 fi
21574
21575 # if the above didn't work out, reset all changes to the compiler variables.
21576 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
21577     CPPFLAGS=$OLDCPPFLAGS
21578     LIBS=$OLDLIBS
21579 fi
21580
21581
21582 # ------------------------------------------------------------------
21583
21584 lame_objects=
21585 lame_makefile=
21586 if test "x${DISABLE_LAME}" = "xtrue"; then
21587     echo "*" Disabling lame support...
21588 else
21589     # old lame code at lib/lame
21590     if test -f lib/lame/Makefile.in; then
21591         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"
21592         lame_makefile="lib/lame/Makefile"
21593         CPPFLAGS="$CPPFLAGS -Ilame"
21594         cat >>confdefs.h <<_ACEOF
21595 #define HAVE_LAME 1
21596 _ACEOF
21597
21598     else
21599         if test -d /usr/include/lame; then
21600             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
21601         else
21602             if test -d /usr/local/include/lame; then
21603                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
21604             fi
21605         fi
21606
21607 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
21608 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
21609 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
21610   echo $ECHO_N "(cached) $ECHO_C" >&6
21611 else
21612   ac_check_lib_save_LIBS=$LIBS
21613 LIBS="-lmp3lame  $LIBS"
21614 cat >conftest.$ac_ext <<_ACEOF
21615 /* confdefs.h.  */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h.  */
21620
21621 /* Override any gcc2 internal prototype to avoid an error.  */
21622 #ifdef __cplusplus
21623 extern "C"
21624 #endif
21625 /* We use char because int might match the return type of a gcc2
21626    builtin and then its argument prototype would still apply.  */
21627 char lame_init ();
21628 int
21629 main ()
21630 {
21631 lame_init ();
21632   ;
21633   return 0;
21634 }
21635 _ACEOF
21636 rm -f conftest.$ac_objext conftest$ac_exeext
21637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21638   (eval $ac_link) 2>conftest.er1
21639   ac_status=$?
21640   grep -v '^ *+' conftest.er1 >conftest.err
21641   rm -f conftest.er1
21642   cat conftest.err >&5
21643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644   (exit $ac_status); } &&
21645          { ac_try='test -z "$ac_c_werror_flag"
21646                          || test ! -s conftest.err'
21647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648   (eval $ac_try) 2>&5
21649   ac_status=$?
21650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); }; } &&
21652          { ac_try='test -s conftest$ac_exeext'
21653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654   (eval $ac_try) 2>&5
21655   ac_status=$?
21656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657   (exit $ac_status); }; }; then
21658   ac_cv_lib_mp3lame_lame_init=yes
21659 else
21660   echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21662
21663 ac_cv_lib_mp3lame_lame_init=no
21664 fi
21665 rm -f conftest.err conftest.$ac_objext \
21666       conftest$ac_exeext conftest.$ac_ext
21667 LIBS=$ac_check_lib_save_LIBS
21668 fi
21669 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
21670 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
21671 if test $ac_cv_lib_mp3lame_lame_init = yes; then
21672   cat >>confdefs.h <<_ACEOF
21673 #define HAVE_LIBMP3LAME 1
21674 _ACEOF
21675
21676   LIBS="-lmp3lame $LIBS"
21677
21678 else
21679   NO_LIBMP3LAME=1
21680 fi
21681
21682
21683 for ac_header in lame.h
21684 do
21685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21687   echo "$as_me:$LINENO: checking for $ac_header" >&5
21688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21690   echo $ECHO_N "(cached) $ECHO_C" >&6
21691 fi
21692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21694 else
21695   # Is the header compilable?
21696 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21698 cat >conftest.$ac_ext <<_ACEOF
21699 /* confdefs.h.  */
21700 _ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h.  */
21704 $ac_includes_default
21705 #include <$ac_header>
21706 _ACEOF
21707 rm -f conftest.$ac_objext
21708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21709   (eval $ac_compile) 2>conftest.er1
21710   ac_status=$?
21711   grep -v '^ *+' conftest.er1 >conftest.err
21712   rm -f conftest.er1
21713   cat conftest.err >&5
21714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715   (exit $ac_status); } &&
21716          { ac_try='test -z "$ac_c_werror_flag"
21717                          || test ! -s conftest.err'
21718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719   (eval $ac_try) 2>&5
21720   ac_status=$?
21721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722   (exit $ac_status); }; } &&
21723          { ac_try='test -s conftest.$ac_objext'
21724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725   (eval $ac_try) 2>&5
21726   ac_status=$?
21727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728   (exit $ac_status); }; }; then
21729   ac_header_compiler=yes
21730 else
21731   echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21733
21734 ac_header_compiler=no
21735 fi
21736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21738 echo "${ECHO_T}$ac_header_compiler" >&6
21739
21740 # Is the header present?
21741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21743 cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h.  */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h.  */
21749 #include <$ac_header>
21750 _ACEOF
21751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21752   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21753   ac_status=$?
21754   grep -v '^ *+' conftest.er1 >conftest.err
21755   rm -f conftest.er1
21756   cat conftest.err >&5
21757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758   (exit $ac_status); } >/dev/null; then
21759   if test -s conftest.err; then
21760     ac_cpp_err=$ac_c_preproc_warn_flag
21761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21762   else
21763     ac_cpp_err=
21764   fi
21765 else
21766   ac_cpp_err=yes
21767 fi
21768 if test -z "$ac_cpp_err"; then
21769   ac_header_preproc=yes
21770 else
21771   echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21773
21774   ac_header_preproc=no
21775 fi
21776 rm -f conftest.err conftest.$ac_ext
21777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21778 echo "${ECHO_T}$ac_header_preproc" >&6
21779
21780 # So?  What about this header?
21781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21782   yes:no: )
21783     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21787     ac_header_preproc=yes
21788     ;;
21789   no:yes:* )
21790     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21792     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21793 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21794     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21796     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21797 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21800     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21802     (
21803       cat <<\_ASBOX
21804 ## ------------------------------------------ ##
21805 ## Report this to the AC_PACKAGE_NAME lists.  ##
21806 ## ------------------------------------------ ##
21807 _ASBOX
21808     ) |
21809       sed "s/^/$as_me: WARNING:     /" >&2
21810     ;;
21811 esac
21812 echo "$as_me:$LINENO: checking for $ac_header" >&5
21813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21815   echo $ECHO_N "(cached) $ECHO_C" >&6
21816 else
21817   eval "$as_ac_Header=\$ac_header_preproc"
21818 fi
21819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21821
21822 fi
21823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21824   cat >>confdefs.h <<_ACEOF
21825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21826 _ACEOF
21827
21828 fi
21829
21830 done
21831
21832         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
21833             cat >>confdefs.h <<_ACEOF
21834 #define HAVE_LAME 1
21835 _ACEOF
21836
21837         fi
21838     fi
21839 fi
21840
21841
21842 # ------------------------------------------------------------------
21843
21844
21845
21846 for ac_prog in avifile-config
21847 do
21848   # Extract the first word of "$ac_prog", so it can be a program name with args.
21849 set dummy $ac_prog; ac_word=$2
21850 echo "$as_me:$LINENO: checking for $ac_word" >&5
21851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21852 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
21853   echo $ECHO_N "(cached) $ECHO_C" >&6
21854 else
21855   if test -n "$AVIFILE_CONFIG"; then
21856   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
21857 else
21858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21859 for as_dir in $PATH
21860 do
21861   IFS=$as_save_IFS
21862   test -z "$as_dir" && as_dir=.
21863   for ac_exec_ext in '' $ac_executable_extensions; do
21864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21865     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
21866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21867     break 2
21868   fi
21869 done
21870 done
21871
21872 fi
21873 fi
21874 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
21875 if test -n "$AVIFILE_CONFIG"; then
21876   echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
21877 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
21878 else
21879   echo "$as_me:$LINENO: result: no" >&5
21880 echo "${ECHO_T}no" >&6
21881 fi
21882
21883   test -n "$AVIFILE_CONFIG" && break
21884 done
21885
21886
21887 if test "x$AVIFILE_CONFIG" '!=' "x";then
21888     OLDCPPFLAGS="$CPPFLAGS"
21889     # temporarily add avifile paths to CPPFLAGS...
21890     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
21891
21892
21893 for ac_header in avifile/version.h version.h
21894 do
21895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21897   echo "$as_me:$LINENO: checking for $ac_header" >&5
21898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21900   echo $ECHO_N "(cached) $ECHO_C" >&6
21901 fi
21902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21904 else
21905   # Is the header compilable?
21906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21908 cat >conftest.$ac_ext <<_ACEOF
21909 /* confdefs.h.  */
21910 _ACEOF
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h.  */
21914 $ac_includes_default
21915 #include <$ac_header>
21916 _ACEOF
21917 rm -f conftest.$ac_objext
21918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21919   (eval $ac_compile) 2>conftest.er1
21920   ac_status=$?
21921   grep -v '^ *+' conftest.er1 >conftest.err
21922   rm -f conftest.er1
21923   cat conftest.err >&5
21924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925   (exit $ac_status); } &&
21926          { ac_try='test -z "$ac_c_werror_flag"
21927                          || test ! -s conftest.err'
21928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21929   (eval $ac_try) 2>&5
21930   ac_status=$?
21931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932   (exit $ac_status); }; } &&
21933          { ac_try='test -s conftest.$ac_objext'
21934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21935   (eval $ac_try) 2>&5
21936   ac_status=$?
21937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938   (exit $ac_status); }; }; then
21939   ac_header_compiler=yes
21940 else
21941   echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21943
21944 ac_header_compiler=no
21945 fi
21946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21948 echo "${ECHO_T}$ac_header_compiler" >&6
21949
21950 # Is the header present?
21951 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21953 cat >conftest.$ac_ext <<_ACEOF
21954 /* confdefs.h.  */
21955 _ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h.  */
21959 #include <$ac_header>
21960 _ACEOF
21961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21962   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21963   ac_status=$?
21964   grep -v '^ *+' conftest.er1 >conftest.err
21965   rm -f conftest.er1
21966   cat conftest.err >&5
21967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968   (exit $ac_status); } >/dev/null; then
21969   if test -s conftest.err; then
21970     ac_cpp_err=$ac_c_preproc_warn_flag
21971     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21972   else
21973     ac_cpp_err=
21974   fi
21975 else
21976   ac_cpp_err=yes
21977 fi
21978 if test -z "$ac_cpp_err"; then
21979   ac_header_preproc=yes
21980 else
21981   echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21983
21984   ac_header_preproc=no
21985 fi
21986 rm -f conftest.err conftest.$ac_ext
21987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21988 echo "${ECHO_T}$ac_header_preproc" >&6
21989
21990 # So?  What about this header?
21991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21992   yes:no: )
21993     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21997     ac_header_preproc=yes
21998     ;;
21999   no:yes:* )
22000     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22002     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22003 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22004     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22006     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22007 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22008     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22010     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22012     (
22013       cat <<\_ASBOX
22014 ## ------------------------------------------ ##
22015 ## Report this to the AC_PACKAGE_NAME lists.  ##
22016 ## ------------------------------------------ ##
22017 _ASBOX
22018     ) |
22019       sed "s/^/$as_me: WARNING:     /" >&2
22020     ;;
22021 esac
22022 echo "$as_me:$LINENO: checking for $ac_header" >&5
22023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22025   echo $ECHO_N "(cached) $ECHO_C" >&6
22026 else
22027   eval "$as_ac_Header=\$ac_header_preproc"
22028 fi
22029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22031
22032 fi
22033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22034   cat >>confdefs.h <<_ACEOF
22035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22036 _ACEOF
22037
22038 fi
22039
22040 done
22041
22042     # ... and reset
22043     CPPFLAGS="$OLDCPPFLAGS"
22044 fi
22045
22046 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
22047 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
22048
22049 if test "x${ac_cv_header_version_h}" '=' "xyes";then
22050     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
22051 fi
22052 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
22053     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
22054 fi
22055
22056 cat > conftest.cpp << EOF
22057
22058 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
22059 // so we have to introduce them this way
22060 $HAVE_VERSION_H_DEFINE
22061 $HAVE_AVIFILE_VERSION_H_DEFINE
22062
22063 #ifdef HAVE_VERSION_H
22064   #include <version.h>
22065 #endif
22066 #ifdef HAVE_AVIFILE_VERSION_H
22067   #include <avifile/version.h>
22068 #endif
22069
22070 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
22071    #include <avifile.h>
22072    #include <aviplay.h>
22073    #include <fourcc.h>
22074    #include <creators.h>
22075    #include <StreamInfo.h>
22076    #define VERSION6
22077 #else
22078    #include <avifile.h>
22079    #include <aviplay.h>
22080    #include <aviutil.h>
22081    #define Width width
22082    #define Height height
22083    #define Data data
22084    #define Bpp bpp
22085 #endif
22086
22087 void test()
22088 {
22089   IAviReadFile* player;
22090   IAviReadStream* astream;
22091   IAviReadStream* vstream;
22092   player = CreateIAviReadFile(0);
22093   astream = player->GetStream(0, AviStream::Audio);
22094   vstream = player->GetStream(0, AviStream::Video);
22095   vstream -> StartStreaming();
22096   astream -> StartStreaming();
22097 #ifndef VERSION6
22098   MainAVIHeader head;
22099   player->GetFileHeader(&head);
22100   head.dwMicroSecPerFrame;
22101   head.dwTotalFrames;
22102   head.dwStreams;
22103   head.dwWidth;
22104   head.dwHeight;
22105   head.dwMicroSecPerFrame;
22106   astream->GetEndPos(),
22107   astream->GetEndTime());
22108   player->StreamCount();
22109 #else
22110   StreamInfo*audioinfo;
22111   StreamInfo*videoinfo;
22112   audioinfo = astream->GetStreamInfo();
22113   videoinfo = vstream->GetStreamInfo();
22114   videoinfo->GetVideoWidth();
22115   videoinfo->GetVideoHeight();
22116   audioinfo->GetAudioSamplesPerSec();
22117   videoinfo->GetFps();
22118 #endif
22119   CImage*img = vstream->GetFrame();
22120   img->ToRGB();
22121   img->Data();
22122   img->Bpp();
22123   img->Width();
22124   img->Height();
22125   WAVEFORMATEX wave;
22126   astream->GetAudioFormatInfo(&wave,0);
22127   uint_t a,b;
22128   astream->ReadFrames(0,0,0,a,b);
22129 }
22130 int main (int argc, char*argv)
22131 {
22132     return 0;
22133 }
22134 EOF
22135
22136 if test "x$AVIFILE_CONFIG" '!=' "x";then
22137     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
22138     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
22139     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
22140     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
22141       echo "$as_me:$LINENO: result: yes" >&5
22142 echo "${ECHO_T}yes" >&6
22143       AVIFILE=true
22144       export AVIFILE
22145       cat >>confdefs.h <<_ACEOF
22146 #define AVIFILE true
22147 _ACEOF
22148
22149     else
22150       echo "configure: failed program was:" >&5
22151       cat conftest.cpp >&5
22152       echo "$as_me:$LINENO: result: no" >&5
22153 echo "${ECHO_T}no" >&6
22154     fi
22155 else
22156     echo "$as_me:$LINENO: result: no" >&5
22157 echo "${ECHO_T}no" >&6
22158 fi
22159 rm -f conftest*
22160
22161 if test "x${AVIFILE}" = "xtrue"; then
22162     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
22163     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
22164     cat >>confdefs.h <<_ACEOF
22165 #define HAVE_AVIFILE 1
22166 _ACEOF
22167
22168 fi
22169
22170 if test "x${WIN32}" != "x"; then
22171     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
22172     #if test "x${AVIFIL32}" != "x"; then
22173     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
22174     #fi
22175     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
22176     AVIFIL32=true
22177 fi
22178
22179
22180
22181 # ------------------------------------------------------------------
22182
22183 if test "x${UNCOMPRESS}" = "xgzip"; then
22184     cat >>confdefs.h <<_ACEOF
22185 #define USE_GZIP 1
22186 _ACEOF
22187
22188 fi
22189
22190
22191 # ------------------------------------------------------------------
22192
22193
22194 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
22195 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
22196
22197 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
22198     PY_VERSION=unknown
22199 else
22200     # should we support python versions below 2.2?
22201     if test -f "/usr/lib/python2.2/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.2/Python.h";then
22202         PY_VERSION=2.2
22203     fi
22204     if test -f "/usr/lib/python2.3/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.3/Python.h";then
22205         PY_VERSION=2.3
22206     fi
22207     if test -f "/usr/lib/python2.4/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.4/Python.h";then
22208         PY_VERSION=2.4
22209     fi
22210     # OS X:
22211     # /System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/Python.h
22212     # /Library/Python/2.3/_imaging.so
22213 fi
22214
22215 if test "x$PY_VERSION" "!=" "x"; then
22216     echo "$as_me:$LINENO: result: $PY_VERSION" >&5
22217 echo "${ECHO_T}$PY_VERSION" >&6
22218     if test "x$PYTHON_LIB" = "x";then
22219         PYTHON_LIB="-l$PY_VERSION /usr/lib/$PY_VERSION/site-packages/PIL/_imaging.so"
22220     fi
22221     if test "x$PYTHON_INCLUDES" = "x";then
22222         PYTHON_INCLUDES="-I/usr/include/$PY_VERSION"
22223     fi
22224     export PYTHON_INCLUDES PYTHON_LIB
22225
22226
22227     echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
22228 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
22229
22230     cat > conftest.c << EOF
22231 #include <Python.h>
22232 #include <Imaging.h>
22233
22234 int main(int argn, char*argv)
22235 {
22236     int ret;
22237     ret = Py_Main(argn, argv);
22238     int x; // check also for gcc 2.95.x incompatibilities
22239     return ret;
22240 }
22241 EOF
22242     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
22243     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22244         echo "$as_me:$LINENO: result: yes" >&5
22245 echo "${ECHO_T}yes" >&6
22246         PYTHON_OK=yes
22247     else
22248         echo "configure: failed program was:" >&5
22249         cat conftest.c >&5
22250         echo "$as_me:$LINENO: result: no" >&5
22251 echo "${ECHO_T}no" >&6
22252     fi
22253     rm -f conftest*
22254 else
22255     echo "$as_me:$LINENO: result: nope" >&5
22256 echo "${ECHO_T}nope" >&6
22257 fi
22258
22259
22260 if test "x$PYTHON_OK" '!=' "xyes";then
22261     echo all install uninstall clean: > lib/python/Makefile
22262     # fail silently- the most users won't have any need for the
22263     # python interface anyway
22264 else
22265     pythonrfxswf="lib/python/Makefile"
22266 fi
22267
22268 # ------------------------------------------------------------------
22269
22270 echo "$as_me:$LINENO: checking for missing libraries" >&5
22271 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
22272
22273 if test "x$ZLIBMISSING" = "xtrue";then
22274     MISSINGLIBS="${MISSINGLIBS} zlib"
22275     DISABLEPNG2SWF=true;
22276 fi
22277 if test "x$JPEGLIBMISSING" = "xtrue";then
22278     MISSINGLIBS="${MISSINGLIBS} jpeglib"
22279     DISABLEPDF2SWF=true;
22280     DISABLEJPEG2SWF=true;
22281 fi
22282 if test "x$T1LIBMISSING" = "xtrue";then
22283     MISSINGLIBS="${MISSINGLIBS} t1lib"
22284 fi
22285
22286 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
22287  DISABLEPDF2SWF=true;
22288  DISABLEJPEG2SWF=true;
22289  MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
22290 fi
22291 if test "x$HAVE_FREETYPE" '!=' "x1"; then
22292  DISABLEPDF2SWF=true;
22293  MISSINGLIBS="${MISSINGLIBS} freetype"
22294 fi
22295 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
22296  DISABLEPDF2SWF=true;
22297  MISSINGLIBS="${MISSINGLIBS} t1lib.h"
22298 fi
22299 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
22300  DISABLEPNG2SWF=true;
22301  MISSINGLIBS="${MISSINGLIBS} zlib.h"
22302 fi
22303 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
22304  MISSINGLIBS="${MISSINGLIBS} avifile"
22305 fi
22306
22307 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
22308 echo "${ECHO_T}${MISSINGLIBS}" >&6
22309
22310 # ------------------------------------------------------------------
22311
22312 if test "x${MISSINGLIBS}" '!=' "x"; then
22313   echo "***************************************************"
22314   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
22315 fi
22316
22317 avi2swf="avi2swf/Makefile"
22318 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
22319  echo "* Disabling avi2swf tool..."
22320  echo all install uninstall clean: > avi2swf/Makefile
22321  avi2swf=
22322 fi
22323
22324 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
22325 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
22326   echo "* Disabling pdf2swf tool..."
22327   rm -f pdf2swf/Makefile
22328   echo all install uninstall clean: > pdf2swf/Makefile
22329   pdf2swf_makefile=""
22330 fi
22331
22332 if test "x${ZLIBMISSING}" = "xtrue"; then
22333   echo
22334   echo "* Warning! Without zlib, you will not be able to read"
22335   echo "* or write compressed Flash MX files!"
22336 fi
22337
22338 JPEG2SWF='jpeg2swf$(E)'
22339 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
22340   echo "* Disabling jpeg2swf tool..."
22341   JPEG2SWF=
22342 fi
22343 export JPEG2SWF
22344
22345
22346 PNG2SWF='png2swf$(E)'
22347 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
22348   echo "* Disabling png2swf tool..."
22349   PNG2SWF=
22350 fi
22351 export PNG2SWF
22352
22353
22354 if test "x${MISSINGLIBS}" '!=' "x"; then
22355   echo "***************************************************"
22356 fi
22357
22358 # ------------------------------------------------------------------
22359
22360 if test -f "release.in"; then release_in="./release"; fi
22361 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
22362
22363           ac_config_files="$ac_config_files ${FILES}"
22364
22365 cat >confcache <<\_ACEOF
22366 # This file is a shell script that caches the results of configure
22367 # tests run on this system so they can be shared between configure
22368 # scripts and configure runs, see configure's option --config-cache.
22369 # It is not useful on other systems.  If it contains results you don't
22370 # want to keep, you may remove or edit it.
22371 #
22372 # config.status only pays attention to the cache file if you give it
22373 # the --recheck option to rerun configure.
22374 #
22375 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22376 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22377 # following values.
22378
22379 _ACEOF
22380
22381 # The following way of writing the cache mishandles newlines in values,
22382 # but we know of no workaround that is simple, portable, and efficient.
22383 # So, don't put newlines in cache variables' values.
22384 # Ultrix sh set writes to stderr and can't be redirected directly,
22385 # and sets the high bit in the cache file unless we assign to the vars.
22386 {
22387   (set) 2>&1 |
22388     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22389     *ac_space=\ *)
22390       # `set' does not quote correctly, so add quotes (double-quote
22391       # substitution turns \\\\ into \\, and sed turns \\ into \).
22392       sed -n \
22393         "s/'/'\\\\''/g;
22394           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22395       ;;
22396     *)
22397       # `set' quotes correctly as required by POSIX, so do not add quotes.
22398       sed -n \
22399         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22400       ;;
22401     esac;
22402 } |
22403   sed '
22404      t clear
22405      : clear
22406      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22407      t end
22408      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22409      : end' >>confcache
22410 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22411   if test -w $cache_file; then
22412     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22413     cat confcache >$cache_file
22414   else
22415     echo "not updating unwritable cache $cache_file"
22416   fi
22417 fi
22418 rm -f confcache
22419
22420 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22421 # Let make expand exec_prefix.
22422 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22423
22424 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22425 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22426 # trailing colons and then remove the whole line if VPATH becomes empty
22427 # (actually we leave an empty line to preserve line numbers).
22428 if test "x$srcdir" = x.; then
22429   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22430 s/:*\$(srcdir):*/:/;
22431 s/:*\${srcdir}:*/:/;
22432 s/:*@srcdir@:*/:/;
22433 s/^\([^=]*=[     ]*\):*/\1/;
22434 s/:*$//;
22435 s/^[^=]*=[       ]*$//;
22436 }'
22437 fi
22438
22439 DEFS=-DHAVE_CONFIG_H
22440
22441 ac_libobjs=
22442 ac_ltlibobjs=
22443 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22444   # 1. Remove the extension, and $U if already installed.
22445   ac_i=`echo "$ac_i" |
22446          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22447   # 2. Add them.
22448   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22449   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22450 done
22451 LIBOBJS=$ac_libobjs
22452
22453 LTLIBOBJS=$ac_ltlibobjs
22454
22455
22456
22457 : ${CONFIG_STATUS=./config.status}
22458 ac_clean_files_save=$ac_clean_files
22459 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22460 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22461 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22462 cat >$CONFIG_STATUS <<_ACEOF
22463 #! $SHELL
22464 # Generated by $as_me.
22465 # Run this file to recreate the current configuration.
22466 # Compiler output produced by configure, useful for debugging
22467 # configure, is in config.log if it exists.
22468
22469 debug=false
22470 ac_cs_recheck=false
22471 ac_cs_silent=false
22472 SHELL=\${CONFIG_SHELL-$SHELL}
22473 _ACEOF
22474
22475 cat >>$CONFIG_STATUS <<\_ACEOF
22476 ## --------------------- ##
22477 ## M4sh Initialization.  ##
22478 ## --------------------- ##
22479
22480 # Be Bourne compatible
22481 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22482   emulate sh
22483   NULLCMD=:
22484   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22485   # is contrary to our usage.  Disable this feature.
22486   alias -g '${1+"$@"}'='"$@"'
22487 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22488   set -o posix
22489 fi
22490 DUALCASE=1; export DUALCASE # for MKS sh
22491
22492 # Support unset when possible.
22493 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22494   as_unset=unset
22495 else
22496   as_unset=false
22497 fi
22498
22499
22500 # Work around bugs in pre-3.0 UWIN ksh.
22501 $as_unset ENV MAIL MAILPATH
22502 PS1='$ '
22503 PS2='> '
22504 PS4='+ '
22505
22506 # NLS nuisances.
22507 for as_var in \
22508   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22509   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22510   LC_TELEPHONE LC_TIME
22511 do
22512   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22513     eval $as_var=C; export $as_var
22514   else
22515     $as_unset $as_var
22516   fi
22517 done
22518
22519 # Required to use basename.
22520 if expr a : '\(a\)' >/dev/null 2>&1; then
22521   as_expr=expr
22522 else
22523   as_expr=false
22524 fi
22525
22526 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22527   as_basename=basename
22528 else
22529   as_basename=false
22530 fi
22531
22532
22533 # Name of the executable.
22534 as_me=`$as_basename "$0" ||
22535 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22536          X"$0" : 'X\(//\)$' \| \
22537          X"$0" : 'X\(/\)$' \| \
22538          .     : '\(.\)' 2>/dev/null ||
22539 echo X/"$0" |
22540     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22541           /^X\/\(\/\/\)$/{ s//\1/; q; }
22542           /^X\/\(\/\).*/{ s//\1/; q; }
22543           s/.*/./; q'`
22544
22545
22546 # PATH needs CR, and LINENO needs CR and PATH.
22547 # Avoid depending upon Character Ranges.
22548 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22549 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22550 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22551 as_cr_digits='0123456789'
22552 as_cr_alnum=$as_cr_Letters$as_cr_digits
22553
22554 # The user is always right.
22555 if test "${PATH_SEPARATOR+set}" != set; then
22556   echo "#! /bin/sh" >conf$$.sh
22557   echo  "exit 0"   >>conf$$.sh
22558   chmod +x conf$$.sh
22559   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22560     PATH_SEPARATOR=';'
22561   else
22562     PATH_SEPARATOR=:
22563   fi
22564   rm -f conf$$.sh
22565 fi
22566
22567
22568   as_lineno_1=$LINENO
22569   as_lineno_2=$LINENO
22570   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22571   test "x$as_lineno_1" != "x$as_lineno_2" &&
22572   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22573   # Find who we are.  Look in the path if we contain no path at all
22574   # relative or not.
22575   case $0 in
22576     *[\\/]* ) as_myself=$0 ;;
22577     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22578 for as_dir in $PATH
22579 do
22580   IFS=$as_save_IFS
22581   test -z "$as_dir" && as_dir=.
22582   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22583 done
22584
22585        ;;
22586   esac
22587   # We did not find ourselves, most probably we were run as `sh COMMAND'
22588   # in which case we are not to be found in the path.
22589   if test "x$as_myself" = x; then
22590     as_myself=$0
22591   fi
22592   if test ! -f "$as_myself"; then
22593     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22594 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22595    { (exit 1); exit 1; }; }
22596   fi
22597   case $CONFIG_SHELL in
22598   '')
22599     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22600 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22601 do
22602   IFS=$as_save_IFS
22603   test -z "$as_dir" && as_dir=.
22604   for as_base in sh bash ksh sh5; do
22605          case $as_dir in
22606          /*)
22607            if ("$as_dir/$as_base" -c '
22608   as_lineno_1=$LINENO
22609   as_lineno_2=$LINENO
22610   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22611   test "x$as_lineno_1" != "x$as_lineno_2" &&
22612   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22613              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22614              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22615              CONFIG_SHELL=$as_dir/$as_base
22616              export CONFIG_SHELL
22617              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22618            fi;;
22619          esac
22620        done
22621 done
22622 ;;
22623   esac
22624
22625   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22626   # uniformly replaced by the line number.  The first 'sed' inserts a
22627   # line-number line before each line; the second 'sed' does the real
22628   # work.  The second script uses 'N' to pair each line-number line
22629   # with the numbered line, and appends trailing '-' during
22630   # substitution so that $LINENO is not a special case at line end.
22631   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22632   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22633   sed '=' <$as_myself |
22634     sed '
22635       N
22636       s,$,-,
22637       : loop
22638       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22639       t loop
22640       s,-$,,
22641       s,^['$as_cr_digits']*\n,,
22642     ' >$as_me.lineno &&
22643   chmod +x $as_me.lineno ||
22644     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22645 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22646    { (exit 1); exit 1; }; }
22647
22648   # Don't try to exec as it changes $[0], causing all sort of problems
22649   # (the dirname of $[0] is not the place where we might find the
22650   # original and so on.  Autoconf is especially sensible to this).
22651   . ./$as_me.lineno
22652   # Exit status is that of the last command.
22653   exit
22654 }
22655
22656
22657 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22658   *c*,-n*) ECHO_N= ECHO_C='
22659 ' ECHO_T='      ' ;;
22660   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22661   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22662 esac
22663
22664 if expr a : '\(a\)' >/dev/null 2>&1; then
22665   as_expr=expr
22666 else
22667   as_expr=false
22668 fi
22669
22670 rm -f conf$$ conf$$.exe conf$$.file
22671 echo >conf$$.file
22672 if ln -s conf$$.file conf$$ 2>/dev/null; then
22673   # We could just check for DJGPP; but this test a) works b) is more generic
22674   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22675   if test -f conf$$.exe; then
22676     # Don't use ln at all; we don't have any links
22677     as_ln_s='cp -p'
22678   else
22679     as_ln_s='ln -s'
22680   fi
22681 elif ln conf$$.file conf$$ 2>/dev/null; then
22682   as_ln_s=ln
22683 else
22684   as_ln_s='cp -p'
22685 fi
22686 rm -f conf$$ conf$$.exe conf$$.file
22687
22688 if mkdir -p . 2>/dev/null; then
22689   as_mkdir_p=:
22690 else
22691   test -d ./-p && rmdir ./-p
22692   as_mkdir_p=false
22693 fi
22694
22695 as_executable_p="test -f"
22696
22697 # Sed expression to map a string onto a valid CPP name.
22698 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22699
22700 # Sed expression to map a string onto a valid variable name.
22701 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22702
22703
22704 # IFS
22705 # We need space, tab and new line, in precisely that order.
22706 as_nl='
22707 '
22708 IFS="   $as_nl"
22709
22710 # CDPATH.
22711 $as_unset CDPATH
22712
22713 exec 6>&1
22714
22715 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22716 # report actual input values of CONFIG_FILES etc. instead of their
22717 # values after options handling.  Logging --version etc. is OK.
22718 exec 5>>config.log
22719 {
22720   echo
22721   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22722 ## Running $as_me. ##
22723 _ASBOX
22724 } >&5
22725 cat >&5 <<_CSEOF
22726
22727 This file was extended by $as_me, which was
22728 generated by GNU Autoconf 2.59.  Invocation command line was
22729
22730   CONFIG_FILES    = $CONFIG_FILES
22731   CONFIG_HEADERS  = $CONFIG_HEADERS
22732   CONFIG_LINKS    = $CONFIG_LINKS
22733   CONFIG_COMMANDS = $CONFIG_COMMANDS
22734   $ $0 $@
22735
22736 _CSEOF
22737 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22738 echo >&5
22739 _ACEOF
22740
22741 # Files that config.status was made for.
22742 if test -n "$ac_config_files"; then
22743   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22744 fi
22745
22746 if test -n "$ac_config_headers"; then
22747   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22748 fi
22749
22750 if test -n "$ac_config_links"; then
22751   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22752 fi
22753
22754 if test -n "$ac_config_commands"; then
22755   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22756 fi
22757
22758 cat >>$CONFIG_STATUS <<\_ACEOF
22759
22760 ac_cs_usage="\
22761 \`$as_me' instantiates files from templates according to the
22762 current configuration.
22763
22764 Usage: $0 [OPTIONS] [FILE]...
22765
22766   -h, --help       print this help, then exit
22767   -V, --version    print version number, then exit
22768   -q, --quiet      do not print progress messages
22769   -d, --debug      don't remove temporary files
22770       --recheck    update $as_me by reconfiguring in the same conditions
22771   --file=FILE[:TEMPLATE]
22772                    instantiate the configuration file FILE
22773   --header=FILE[:TEMPLATE]
22774                    instantiate the configuration header FILE
22775
22776 Configuration files:
22777 $config_files
22778
22779 Configuration headers:
22780 $config_headers
22781
22782 Report bugs to <bug-autoconf@gnu.org>."
22783 _ACEOF
22784
22785 cat >>$CONFIG_STATUS <<_ACEOF
22786 ac_cs_version="\\
22787 config.status
22788 configured by $0, generated by GNU Autoconf 2.59,
22789   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22790
22791 Copyright (C) 2003 Free Software Foundation, Inc.
22792 This config.status script is free software; the Free Software Foundation
22793 gives unlimited permission to copy, distribute and modify it."
22794 srcdir=$srcdir
22795 INSTALL="$INSTALL"
22796 _ACEOF
22797
22798 cat >>$CONFIG_STATUS <<\_ACEOF
22799 # If no file are specified by the user, then we need to provide default
22800 # value.  By we need to know if files were specified by the user.
22801 ac_need_defaults=:
22802 while test $# != 0
22803 do
22804   case $1 in
22805   --*=*)
22806     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22807     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22808     ac_shift=:
22809     ;;
22810   -*)
22811     ac_option=$1
22812     ac_optarg=$2
22813     ac_shift=shift
22814     ;;
22815   *) # This is not an option, so the user has probably given explicit
22816      # arguments.
22817      ac_option=$1
22818      ac_need_defaults=false;;
22819   esac
22820
22821   case $ac_option in
22822   # Handling of the options.
22823 _ACEOF
22824 cat >>$CONFIG_STATUS <<\_ACEOF
22825   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22826     ac_cs_recheck=: ;;
22827   --version | --vers* | -V )
22828     echo "$ac_cs_version"; exit 0 ;;
22829   --he | --h)
22830     # Conflict between --help and --header
22831     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22832 Try \`$0 --help' for more information." >&5
22833 echo "$as_me: error: ambiguous option: $1
22834 Try \`$0 --help' for more information." >&2;}
22835    { (exit 1); exit 1; }; };;
22836   --help | --hel | -h )
22837     echo "$ac_cs_usage"; exit 0 ;;
22838   --debug | --d* | -d )
22839     debug=: ;;
22840   --file | --fil | --fi | --f )
22841     $ac_shift
22842     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22843     ac_need_defaults=false;;
22844   --header | --heade | --head | --hea )
22845     $ac_shift
22846     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22847     ac_need_defaults=false;;
22848   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22849   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22850     ac_cs_silent=: ;;
22851
22852   # This is an error.
22853   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22854 Try \`$0 --help' for more information." >&5
22855 echo "$as_me: error: unrecognized option: $1
22856 Try \`$0 --help' for more information." >&2;}
22857    { (exit 1); exit 1; }; } ;;
22858
22859   *) ac_config_targets="$ac_config_targets $1" ;;
22860
22861   esac
22862   shift
22863 done
22864
22865 ac_configure_extra_args=
22866
22867 if $ac_cs_silent; then
22868   exec 6>/dev/null
22869   ac_configure_extra_args="$ac_configure_extra_args --silent"
22870 fi
22871
22872 _ACEOF
22873 cat >>$CONFIG_STATUS <<_ACEOF
22874 if \$ac_cs_recheck; then
22875   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22876   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22877 fi
22878
22879 _ACEOF
22880
22881
22882
22883
22884
22885 cat >>$CONFIG_STATUS <<\_ACEOF
22886 for ac_config_target in $ac_config_targets
22887 do
22888   case "$ac_config_target" in
22889   # Handling of arguments.
22890   "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
22891   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22892   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22893 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22894    { (exit 1); exit 1; }; };;
22895   esac
22896 done
22897
22898 # If the user did not use the arguments to specify the items to instantiate,
22899 # then the envvar interface is used.  Set only those that are not.
22900 # We use the long form for the default assignment because of an extremely
22901 # bizarre bug on SunOS 4.1.3.
22902 if $ac_need_defaults; then
22903   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22904   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22905 fi
22906
22907 # Have a temporary directory for convenience.  Make it in the build tree
22908 # simply because there is no reason to put it here, and in addition,
22909 # creating and moving files from /tmp can sometimes cause problems.
22910 # Create a temporary directory, and hook for its removal unless debugging.
22911 $debug ||
22912 {
22913   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22914   trap '{ (exit 1); exit 1; }' 1 2 13 15
22915 }
22916
22917 # Create a (secure) tmp directory for tmp files.
22918
22919 {
22920   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22921   test -n "$tmp" && test -d "$tmp"
22922 }  ||
22923 {
22924   tmp=./confstat$$-$RANDOM
22925   (umask 077 && mkdir $tmp)
22926 } ||
22927 {
22928    echo "$me: cannot create a temporary directory in ." >&2
22929    { (exit 1); exit 1; }
22930 }
22931
22932 _ACEOF
22933
22934 cat >>$CONFIG_STATUS <<_ACEOF
22935
22936 #
22937 # CONFIG_FILES section.
22938 #
22939
22940 # No need to generate the scripts if there are no CONFIG_FILES.
22941 # This happens for instance when ./config.status config.h
22942 if test -n "\$CONFIG_FILES"; then
22943   # Protect against being on the right side of a sed subst in config.status.
22944   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22945    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22946 s,@SHELL@,$SHELL,;t t
22947 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22948 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22949 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22950 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22951 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22952 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22953 s,@exec_prefix@,$exec_prefix,;t t
22954 s,@prefix@,$prefix,;t t
22955 s,@program_transform_name@,$program_transform_name,;t t
22956 s,@bindir@,$bindir,;t t
22957 s,@sbindir@,$sbindir,;t t
22958 s,@libexecdir@,$libexecdir,;t t
22959 s,@datadir@,$datadir,;t t
22960 s,@sysconfdir@,$sysconfdir,;t t
22961 s,@sharedstatedir@,$sharedstatedir,;t t
22962 s,@localstatedir@,$localstatedir,;t t
22963 s,@libdir@,$libdir,;t t
22964 s,@includedir@,$includedir,;t t
22965 s,@oldincludedir@,$oldincludedir,;t t
22966 s,@infodir@,$infodir,;t t
22967 s,@mandir@,$mandir,;t t
22968 s,@build_alias@,$build_alias,;t t
22969 s,@host_alias@,$host_alias,;t t
22970 s,@target_alias@,$target_alias,;t t
22971 s,@DEFS@,$DEFS,;t t
22972 s,@ECHO_C@,$ECHO_C,;t t
22973 s,@ECHO_N@,$ECHO_N,;t t
22974 s,@ECHO_T@,$ECHO_T,;t t
22975 s,@LIBS@,$LIBS,;t t
22976 s,@build@,$build,;t t
22977 s,@build_cpu@,$build_cpu,;t t
22978 s,@build_vendor@,$build_vendor,;t t
22979 s,@build_os@,$build_os,;t t
22980 s,@host@,$host,;t t
22981 s,@host_cpu@,$host_cpu,;t t
22982 s,@host_vendor@,$host_vendor,;t t
22983 s,@host_os@,$host_os,;t t
22984 s,@CC@,$CC,;t t
22985 s,@CFLAGS@,$CFLAGS,;t t
22986 s,@LDFLAGS@,$LDFLAGS,;t t
22987 s,@CPPFLAGS@,$CPPFLAGS,;t t
22988 s,@ac_ct_CC@,$ac_ct_CC,;t t
22989 s,@EXEEXT@,$EXEEXT,;t t
22990 s,@OBJEXT@,$OBJEXT,;t t
22991 s,@CXX@,$CXX,;t t
22992 s,@CXXFLAGS@,$CXXFLAGS,;t t
22993 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22994 s,@CPP@,$CPP,;t t
22995 s,@RANLIB@,$RANLIB,;t t
22996 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22997 s,@SET_MAKE@,$SET_MAKE,;t t
22998 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22999 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23000 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23001 s,@LN_S@,$LN_S,;t t
23002 s,@EGREP@,$EGREP,;t t
23003 s,@ECHO@,$ECHO,;t t
23004 s,@AR@,$AR,;t t
23005 s,@ac_ct_AR@,$ac_ct_AR,;t t
23006 s,@STRIP@,$STRIP,;t t
23007 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23008 s,@CXXCPP@,$CXXCPP,;t t
23009 s,@F77@,$F77,;t t
23010 s,@FFLAGS@,$FFLAGS,;t t
23011 s,@ac_ct_F77@,$ac_ct_F77,;t t
23012 s,@LIBTOOL@,$LIBTOOL,;t t
23013 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
23014 s,@SLEXT@,$SLEXT,;t t
23015 s,@target@,$target,;t t
23016 s,@target_cpu@,$target_cpu,;t t
23017 s,@target_vendor@,$target_vendor,;t t
23018 s,@target_os@,$target_os,;t t
23019 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
23020 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
23021 s,@PACKAGE@,$PACKAGE,;t t
23022 s,@VERSION@,$VERSION,;t t
23023 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
23024 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
23025 s,@lame_objects@,$lame_objects,;t t
23026 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
23027 s,@VIDEO_LIBS@,$VIDEO_LIBS,;t t
23028 s,@VIDEO_CFLAGS@,$VIDEO_CFLAGS,;t t
23029 s,@USE_GZIP@,$USE_GZIP,;t t
23030 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
23031 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
23032 s,@JPEG2SWF@,$JPEG2SWF,;t t
23033 s,@PNG2SWF@,$PNG2SWF,;t t
23034 s,@LIBOBJS@,$LIBOBJS,;t t
23035 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23036 CEOF
23037
23038 _ACEOF
23039
23040   cat >>$CONFIG_STATUS <<\_ACEOF
23041   # Split the substitutions into bite-sized pieces for seds with
23042   # small command number limits, like on Digital OSF/1 and HP-UX.
23043   ac_max_sed_lines=48
23044   ac_sed_frag=1 # Number of current file.
23045   ac_beg=1 # First line for current file.
23046   ac_end=$ac_max_sed_lines # Line after last line for current file.
23047   ac_more_lines=:
23048   ac_sed_cmds=
23049   while $ac_more_lines; do
23050     if test $ac_beg -gt 1; then
23051       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23052     else
23053       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23054     fi
23055     if test ! -s $tmp/subs.frag; then
23056       ac_more_lines=false
23057     else
23058       # The purpose of the label and of the branching condition is to
23059       # speed up the sed processing (if there are no `@' at all, there
23060       # is no need to browse any of the substitutions).
23061       # These are the two extra sed commands mentioned above.
23062       (echo ':t
23063   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23064       if test -z "$ac_sed_cmds"; then
23065         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23066       else
23067         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23068       fi
23069       ac_sed_frag=`expr $ac_sed_frag + 1`
23070       ac_beg=$ac_end
23071       ac_end=`expr $ac_end + $ac_max_sed_lines`
23072     fi
23073   done
23074   if test -z "$ac_sed_cmds"; then
23075     ac_sed_cmds=cat
23076   fi
23077 fi # test -n "$CONFIG_FILES"
23078
23079 _ACEOF
23080 cat >>$CONFIG_STATUS <<\_ACEOF
23081 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23082   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23083   case $ac_file in
23084   - | *:- | *:-:* ) # input from stdin
23085         cat >$tmp/stdin
23086         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23087         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23088   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23089         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23090   * )   ac_file_in=$ac_file.in ;;
23091   esac
23092
23093   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23094   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23095 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23096          X"$ac_file" : 'X\(//\)[^/]' \| \
23097          X"$ac_file" : 'X\(//\)$' \| \
23098          X"$ac_file" : 'X\(/\)' \| \
23099          .     : '\(.\)' 2>/dev/null ||
23100 echo X"$ac_file" |
23101     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23102           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23103           /^X\(\/\/\)$/{ s//\1/; q; }
23104           /^X\(\/\).*/{ s//\1/; q; }
23105           s/.*/./; q'`
23106   { if $as_mkdir_p; then
23107     mkdir -p "$ac_dir"
23108   else
23109     as_dir="$ac_dir"
23110     as_dirs=
23111     while test ! -d "$as_dir"; do
23112       as_dirs="$as_dir $as_dirs"
23113       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23115          X"$as_dir" : 'X\(//\)[^/]' \| \
23116          X"$as_dir" : 'X\(//\)$' \| \
23117          X"$as_dir" : 'X\(/\)' \| \
23118          .     : '\(.\)' 2>/dev/null ||
23119 echo X"$as_dir" |
23120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23121           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23122           /^X\(\/\/\)$/{ s//\1/; q; }
23123           /^X\(\/\).*/{ s//\1/; q; }
23124           s/.*/./; q'`
23125     done
23126     test ! -n "$as_dirs" || mkdir $as_dirs
23127   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23128 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23129    { (exit 1); exit 1; }; }; }
23130
23131   ac_builddir=.
23132
23133 if test "$ac_dir" != .; then
23134   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23135   # A "../" for each directory in $ac_dir_suffix.
23136   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23137 else
23138   ac_dir_suffix= ac_top_builddir=
23139 fi
23140
23141 case $srcdir in
23142   .)  # No --srcdir option.  We are building in place.
23143     ac_srcdir=.
23144     if test -z "$ac_top_builddir"; then
23145        ac_top_srcdir=.
23146     else
23147        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23148     fi ;;
23149   [\\/]* | ?:[\\/]* )  # Absolute path.
23150     ac_srcdir=$srcdir$ac_dir_suffix;
23151     ac_top_srcdir=$srcdir ;;
23152   *) # Relative path.
23153     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23154     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23155 esac
23156
23157 # Do not use `cd foo && pwd` to compute absolute paths, because
23158 # the directories may not exist.
23159 case `pwd` in
23160 .) ac_abs_builddir="$ac_dir";;
23161 *)
23162   case "$ac_dir" in
23163   .) ac_abs_builddir=`pwd`;;
23164   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23165   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23166   esac;;
23167 esac
23168 case $ac_abs_builddir in
23169 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23170 *)
23171   case ${ac_top_builddir}. in
23172   .) ac_abs_top_builddir=$ac_abs_builddir;;
23173   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23174   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23175   esac;;
23176 esac
23177 case $ac_abs_builddir in
23178 .) ac_abs_srcdir=$ac_srcdir;;
23179 *)
23180   case $ac_srcdir in
23181   .) ac_abs_srcdir=$ac_abs_builddir;;
23182   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23183   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23184   esac;;
23185 esac
23186 case $ac_abs_builddir in
23187 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23188 *)
23189   case $ac_top_srcdir in
23190   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23191   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23192   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23193   esac;;
23194 esac
23195
23196
23197   case $INSTALL in
23198   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23199   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23200   esac
23201
23202   if test x"$ac_file" != x-; then
23203     { echo "$as_me:$LINENO: creating $ac_file" >&5
23204 echo "$as_me: creating $ac_file" >&6;}
23205     rm -f "$ac_file"
23206   fi
23207   # Let's still pretend it is `configure' which instantiates (i.e., don't
23208   # use $as_me), people would be surprised to read:
23209   #    /* config.h.  Generated by config.status.  */
23210   if test x"$ac_file" = x-; then
23211     configure_input=
23212   else
23213     configure_input="$ac_file.  "
23214   fi
23215   configure_input=$configure_input"Generated from `echo $ac_file_in |
23216                                      sed 's,.*/,,'` by configure."
23217
23218   # First look for the input files in the build tree, otherwise in the
23219   # src tree.
23220   ac_file_inputs=`IFS=:
23221     for f in $ac_file_in; do
23222       case $f in
23223       -) echo $tmp/stdin ;;
23224       [\\/$]*)
23225          # Absolute (can't be DOS-style, as IFS=:)
23226          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23227 echo "$as_me: error: cannot find input file: $f" >&2;}
23228    { (exit 1); exit 1; }; }
23229          echo "$f";;
23230       *) # Relative
23231          if test -f "$f"; then
23232            # Build tree
23233            echo "$f"
23234          elif test -f "$srcdir/$f"; then
23235            # Source tree
23236            echo "$srcdir/$f"
23237          else
23238            # /dev/null tree
23239            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23240 echo "$as_me: error: cannot find input file: $f" >&2;}
23241    { (exit 1); exit 1; }; }
23242          fi;;
23243       esac
23244     done` || { (exit 1); exit 1; }
23245 _ACEOF
23246 cat >>$CONFIG_STATUS <<_ACEOF
23247   sed "$ac_vpsub
23248 $extrasub
23249 _ACEOF
23250 cat >>$CONFIG_STATUS <<\_ACEOF
23251 :t
23252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23253 s,@configure_input@,$configure_input,;t t
23254 s,@srcdir@,$ac_srcdir,;t t
23255 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23256 s,@top_srcdir@,$ac_top_srcdir,;t t
23257 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23258 s,@builddir@,$ac_builddir,;t t
23259 s,@abs_builddir@,$ac_abs_builddir,;t t
23260 s,@top_builddir@,$ac_top_builddir,;t t
23261 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23262 s,@INSTALL@,$ac_INSTALL,;t t
23263 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23264   rm -f $tmp/stdin
23265   if test x"$ac_file" != x-; then
23266     mv $tmp/out $ac_file
23267   else
23268     cat $tmp/out
23269     rm -f $tmp/out
23270   fi
23271
23272 done
23273 _ACEOF
23274 cat >>$CONFIG_STATUS <<\_ACEOF
23275
23276 #
23277 # CONFIG_HEADER section.
23278 #
23279
23280 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23281 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23282 #
23283 # ac_d sets the value in "#define NAME VALUE" lines.
23284 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
23285 ac_dB='[         ].*$,\1#\2'
23286 ac_dC=' '
23287 ac_dD=',;t'
23288 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23289 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23290 ac_uB='$,\1#\2define\3'
23291 ac_uC=' '
23292 ac_uD=',;t'
23293
23294 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23295   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23296   case $ac_file in
23297   - | *:- | *:-:* ) # input from stdin
23298         cat >$tmp/stdin
23299         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23300         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23301   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23302         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23303   * )   ac_file_in=$ac_file.in ;;
23304   esac
23305
23306   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23307 echo "$as_me: creating $ac_file" >&6;}
23308
23309   # First look for the input files in the build tree, otherwise in the
23310   # src tree.
23311   ac_file_inputs=`IFS=:
23312     for f in $ac_file_in; do
23313       case $f in
23314       -) echo $tmp/stdin ;;
23315       [\\/$]*)
23316          # Absolute (can't be DOS-style, as IFS=:)
23317          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23318 echo "$as_me: error: cannot find input file: $f" >&2;}
23319    { (exit 1); exit 1; }; }
23320          # Do quote $f, to prevent DOS paths from being IFS'd.
23321          echo "$f";;
23322       *) # Relative
23323          if test -f "$f"; then
23324            # Build tree
23325            echo "$f"
23326          elif test -f "$srcdir/$f"; then
23327            # Source tree
23328            echo "$srcdir/$f"
23329          else
23330            # /dev/null tree
23331            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23332 echo "$as_me: error: cannot find input file: $f" >&2;}
23333    { (exit 1); exit 1; }; }
23334          fi;;
23335       esac
23336     done` || { (exit 1); exit 1; }
23337   # Remove the trailing spaces.
23338   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23339
23340 _ACEOF
23341
23342 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23343 # `conftest.undefs', that substitutes the proper values into
23344 # config.h.in to produce config.h.  The first handles `#define'
23345 # templates, and the second `#undef' templates.
23346 # And first: Protect against being on the right side of a sed subst in
23347 # config.status.  Protect against being in an unquoted here document
23348 # in config.status.
23349 rm -f conftest.defines conftest.undefs
23350 # Using a here document instead of a string reduces the quoting nightmare.
23351 # Putting comments in sed scripts is not portable.
23352 #
23353 # `end' is used to avoid that the second main sed command (meant for
23354 # 0-ary CPP macros) applies to n-ary macro definitions.
23355 # See the Autoconf documentation for `clear'.
23356 cat >confdef2sed.sed <<\_ACEOF
23357 s/[\\&,]/\\&/g
23358 s,[\\$`],\\&,g
23359 t clear
23360 : clear
23361 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23362 t end
23363 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23364 : end
23365 _ACEOF
23366 # If some macros were called several times there might be several times
23367 # the same #defines, which is useless.  Nevertheless, we may not want to
23368 # sort them, since we want the *last* AC-DEFINE to be honored.
23369 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23370 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23371 rm -f confdef2sed.sed
23372
23373 # This sed command replaces #undef with comments.  This is necessary, for
23374 # example, in the case of _POSIX_SOURCE, which is predefined and required
23375 # on some systems where configure will not decide to define it.
23376 cat >>conftest.undefs <<\_ACEOF
23377 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23378 _ACEOF
23379
23380 # Break up conftest.defines because some shells have a limit on the size
23381 # of here documents, and old seds have small limits too (100 cmds).
23382 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23383 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23384 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23385 echo '  :' >>$CONFIG_STATUS
23386 rm -f conftest.tail
23387 while grep . conftest.defines >/dev/null
23388 do
23389   # Write a limited-size here document to $tmp/defines.sed.
23390   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23391   # Speed up: don't consider the non `#define' lines.
23392   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
23393   # Work around the forget-to-reset-the-flag bug.
23394   echo 't clr' >>$CONFIG_STATUS
23395   echo ': clr' >>$CONFIG_STATUS
23396   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23397   echo 'CEOF
23398   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23399   rm -f $tmp/in
23400   mv $tmp/out $tmp/in
23401 ' >>$CONFIG_STATUS
23402   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23403   rm -f conftest.defines
23404   mv conftest.tail conftest.defines
23405 done
23406 rm -f conftest.defines
23407 echo '  fi # grep' >>$CONFIG_STATUS
23408 echo >>$CONFIG_STATUS
23409
23410 # Break up conftest.undefs because some shells have a limit on the size
23411 # of here documents, and old seds have small limits too (100 cmds).
23412 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23413 rm -f conftest.tail
23414 while grep . conftest.undefs >/dev/null
23415 do
23416   # Write a limited-size here document to $tmp/undefs.sed.
23417   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23418   # Speed up: don't consider the non `#undef'
23419   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23420   # Work around the forget-to-reset-the-flag bug.
23421   echo 't clr' >>$CONFIG_STATUS
23422   echo ': clr' >>$CONFIG_STATUS
23423   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23424   echo 'CEOF
23425   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23426   rm -f $tmp/in
23427   mv $tmp/out $tmp/in
23428 ' >>$CONFIG_STATUS
23429   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23430   rm -f conftest.undefs
23431   mv conftest.tail conftest.undefs
23432 done
23433 rm -f conftest.undefs
23434
23435 cat >>$CONFIG_STATUS <<\_ACEOF
23436   # Let's still pretend it is `configure' which instantiates (i.e., don't
23437   # use $as_me), people would be surprised to read:
23438   #    /* config.h.  Generated by config.status.  */
23439   if test x"$ac_file" = x-; then
23440     echo "/* Generated by configure.  */" >$tmp/config.h
23441   else
23442     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23443   fi
23444   cat $tmp/in >>$tmp/config.h
23445   rm -f $tmp/in
23446   if test x"$ac_file" != x-; then
23447     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23448       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23449 echo "$as_me: $ac_file is unchanged" >&6;}
23450     else
23451       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23452 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23453          X"$ac_file" : 'X\(//\)[^/]' \| \
23454          X"$ac_file" : 'X\(//\)$' \| \
23455          X"$ac_file" : 'X\(/\)' \| \
23456          .     : '\(.\)' 2>/dev/null ||
23457 echo X"$ac_file" |
23458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23459           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23460           /^X\(\/\/\)$/{ s//\1/; q; }
23461           /^X\(\/\).*/{ s//\1/; q; }
23462           s/.*/./; q'`
23463       { if $as_mkdir_p; then
23464     mkdir -p "$ac_dir"
23465   else
23466     as_dir="$ac_dir"
23467     as_dirs=
23468     while test ! -d "$as_dir"; do
23469       as_dirs="$as_dir $as_dirs"
23470       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23471 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23472          X"$as_dir" : 'X\(//\)[^/]' \| \
23473          X"$as_dir" : 'X\(//\)$' \| \
23474          X"$as_dir" : 'X\(/\)' \| \
23475          .     : '\(.\)' 2>/dev/null ||
23476 echo X"$as_dir" |
23477     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23478           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23479           /^X\(\/\/\)$/{ s//\1/; q; }
23480           /^X\(\/\).*/{ s//\1/; q; }
23481           s/.*/./; q'`
23482     done
23483     test ! -n "$as_dirs" || mkdir $as_dirs
23484   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23485 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23486    { (exit 1); exit 1; }; }; }
23487
23488       rm -f $ac_file
23489       mv $tmp/config.h $ac_file
23490     fi
23491   else
23492     cat $tmp/config.h
23493     rm -f $tmp/config.h
23494   fi
23495 done
23496 _ACEOF
23497
23498 cat >>$CONFIG_STATUS <<\_ACEOF
23499
23500 { (exit 0); exit 0; }
23501 _ACEOF
23502 chmod +x $CONFIG_STATUS
23503 ac_clean_files=$ac_clean_files_save
23504
23505
23506 # configure is writing to config.log, and then calls config.status.
23507 # config.status does its own redirection, appending to config.log.
23508 # Unfortunately, on DOS this fails, as config.log is still kept open
23509 # by configure, so config.status won't be able to write to it; its
23510 # output is simply discarded.  So we exec the FD to /dev/null,
23511 # effectively closing config.log, so it can be properly (re)opened and
23512 # appended to by config.status.  When coming back to configure, we
23513 # need to make the FD available again.
23514 if test "$no_create" != yes; then
23515   ac_cs_success=:
23516   ac_config_status_args=
23517   test "$silent" = yes &&
23518     ac_config_status_args="$ac_config_status_args --quiet"
23519   exec 5>/dev/null
23520   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23521   exec 5>>config.log
23522   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23523   # would make configure fail if this is the last instruction.
23524   $ac_cs_success || { (exit 1); exit 1; }
23525 fi
23526
23527