fixed MacOSX issues.
[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 SHARED CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S EGREP ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL UNCOMPRESS AREXT 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-profiling      turn on profiling
1030   --enable-warnings        turn on compiler warnings
1031   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1032   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1033   --enable-shared[=PKGS]
1034                           build shared libraries [default=yes]
1035   --enable-static[=PKGS]
1036                           build static libraries [default=yes]
1037   --enable-fast-install[=PKGS]
1038                           optimize for fast installation [default=yes]
1039   --disable-libtool-lock  avoid locking (might break parallel builds)
1040
1041 Optional Packages:
1042   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1043   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1044   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1045   --with-pic              try to use only PIC/non-PIC objects [default=use
1046                           both]
1047   --with-tags[=TAGS]
1048                           include additional configurations [automatic]
1049
1050 Some influential environment variables:
1051   CC          C compiler command
1052   CFLAGS      C compiler flags
1053   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1054               nonstandard directory <lib dir>
1055   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056               headers in a nonstandard directory <include dir>
1057   CXX         C++ compiler command
1058   CXXFLAGS    C++ compiler flags
1059   CPP         C preprocessor
1060   CXXCPP      C++ preprocessor
1061   F77         Fortran 77 compiler command
1062   FFLAGS      Fortran 77 compiler flags
1063
1064 Use these variables to override the choices made by `configure' or to help
1065 it to find libraries and programs with nonstandard names/locations.
1066
1067 _ACEOF
1068 fi
1069
1070 if test "$ac_init_help" = "recursive"; then
1071   # If there are subdirs, report their specific --help.
1072   ac_popdir=`pwd`
1073   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074     test -d $ac_dir || continue
1075     ac_builddir=.
1076
1077 if test "$ac_dir" != .; then
1078   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079   # A "../" for each directory in $ac_dir_suffix.
1080   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081 else
1082   ac_dir_suffix= ac_top_builddir=
1083 fi
1084
1085 case $srcdir in
1086   .)  # No --srcdir option.  We are building in place.
1087     ac_srcdir=.
1088     if test -z "$ac_top_builddir"; then
1089        ac_top_srcdir=.
1090     else
1091        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092     fi ;;
1093   [\\/]* | ?:[\\/]* )  # Absolute path.
1094     ac_srcdir=$srcdir$ac_dir_suffix;
1095     ac_top_srcdir=$srcdir ;;
1096   *) # Relative path.
1097     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099 esac
1100
1101 # Do not use `cd foo && pwd` to compute absolute paths, because
1102 # the directories may not exist.
1103 case `pwd` in
1104 .) ac_abs_builddir="$ac_dir";;
1105 *)
1106   case "$ac_dir" in
1107   .) ac_abs_builddir=`pwd`;;
1108   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1110   esac;;
1111 esac
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 *)
1115   case ${ac_top_builddir}. in
1116   .) ac_abs_top_builddir=$ac_abs_builddir;;
1117   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1119   esac;;
1120 esac
1121 case $ac_abs_builddir in
1122 .) ac_abs_srcdir=$ac_srcdir;;
1123 *)
1124   case $ac_srcdir in
1125   .) ac_abs_srcdir=$ac_abs_builddir;;
1126   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1128   esac;;
1129 esac
1130 case $ac_abs_builddir in
1131 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 *)
1133   case $ac_top_srcdir in
1134   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137   esac;;
1138 esac
1139
1140     cd $ac_dir
1141     # Check for guested configure; otherwise get Cygnus style configure.
1142     if test -f $ac_srcdir/configure.gnu; then
1143       echo
1144       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1145     elif test -f $ac_srcdir/configure; then
1146       echo
1147       $SHELL $ac_srcdir/configure  --help=recursive
1148     elif test -f $ac_srcdir/configure.ac ||
1149            test -f $ac_srcdir/configure.in; then
1150       echo
1151       $ac_configure --help
1152     else
1153       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154     fi
1155     cd $ac_popdir
1156   done
1157 fi
1158
1159 test -n "$ac_init_help" && exit 0
1160 if $ac_init_version; then
1161   cat <<\_ACEOF
1162
1163 Copyright (C) 2003 Free Software Foundation, Inc.
1164 This configure script is free software; the Free Software Foundation
1165 gives unlimited permission to copy, distribute and modify it.
1166 _ACEOF
1167   exit 0
1168 fi
1169 exec 5>config.log
1170 cat >&5 <<_ACEOF
1171 This file contains any messages produced by compilers while
1172 running configure, to aid debugging if configure makes a mistake.
1173
1174 It was created by $as_me, which was
1175 generated by GNU Autoconf 2.59.  Invocation command line was
1176
1177   $ $0 $@
1178
1179 _ACEOF
1180 {
1181 cat <<_ASUNAME
1182 ## --------- ##
1183 ## Platform. ##
1184 ## --------- ##
1185
1186 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1187 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1188 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1189 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1190 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1191
1192 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1193 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1194
1195 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1196 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1197 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1198 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1199 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1200 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1201 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1202
1203 _ASUNAME
1204
1205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1206 for as_dir in $PATH
1207 do
1208   IFS=$as_save_IFS
1209   test -z "$as_dir" && as_dir=.
1210   echo "PATH: $as_dir"
1211 done
1212
1213 } >&5
1214
1215 cat >&5 <<_ACEOF
1216
1217
1218 ## ----------- ##
1219 ## Core tests. ##
1220 ## ----------- ##
1221
1222 _ACEOF
1223
1224
1225 # Keep a trace of the command line.
1226 # Strip out --no-create and --no-recursion so they do not pile up.
1227 # Strip out --silent because we don't want to record it for future runs.
1228 # Also quote any args containing shell meta-characters.
1229 # Make two passes to allow for proper duplicate-argument suppression.
1230 ac_configure_args=
1231 ac_configure_args0=
1232 ac_configure_args1=
1233 ac_sep=
1234 ac_must_keep_next=false
1235 for ac_pass in 1 2
1236 do
1237   for ac_arg
1238   do
1239     case $ac_arg in
1240     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1241     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242     | -silent | --silent | --silen | --sile | --sil)
1243       continue ;;
1244     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1245       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1246     esac
1247     case $ac_pass in
1248     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1249     2)
1250       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1251       if test $ac_must_keep_next = true; then
1252         ac_must_keep_next=false # Got value, back to normal.
1253       else
1254         case $ac_arg in
1255           *=* | --config-cache | -C | -disable-* | --disable-* \
1256           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1257           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1258           | -with-* | --with-* | -without-* | --without-* | --x)
1259             case "$ac_configure_args0 " in
1260               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1261             esac
1262             ;;
1263           -* ) ac_must_keep_next=true ;;
1264         esac
1265       fi
1266       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1267       # Get rid of the leading space.
1268       ac_sep=" "
1269       ;;
1270     esac
1271   done
1272 done
1273 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1274 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1275
1276 # When interrupted or exit'd, cleanup temporary files, and complete
1277 # config.log.  We remove comments because anyway the quotes in there
1278 # would cause problems or look ugly.
1279 # WARNING: Be sure not to use single quotes in there, as some shells,
1280 # such as our DU 5.0 friend, will then `close' the trap.
1281 trap 'exit_status=$?
1282   # Save into config.log some information that might help in debugging.
1283   {
1284     echo
1285
1286     cat <<\_ASBOX
1287 ## ---------------- ##
1288 ## Cache variables. ##
1289 ## ---------------- ##
1290 _ASBOX
1291     echo
1292     # The following way of writing the cache mishandles newlines in values,
1293 {
1294   (set) 2>&1 |
1295     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1296     *ac_space=\ *)
1297       sed -n \
1298         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1299           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1300       ;;
1301     *)
1302       sed -n \
1303         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1304       ;;
1305     esac;
1306 }
1307     echo
1308
1309     cat <<\_ASBOX
1310 ## ----------------- ##
1311 ## Output variables. ##
1312 ## ----------------- ##
1313 _ASBOX
1314     echo
1315     for ac_var in $ac_subst_vars
1316     do
1317       eval ac_val=$`echo $ac_var`
1318       echo "$ac_var='"'"'$ac_val'"'"'"
1319     done | sort
1320     echo
1321
1322     if test -n "$ac_subst_files"; then
1323       cat <<\_ASBOX
1324 ## ------------- ##
1325 ## Output files. ##
1326 ## ------------- ##
1327 _ASBOX
1328       echo
1329       for ac_var in $ac_subst_files
1330       do
1331         eval ac_val=$`echo $ac_var`
1332         echo "$ac_var='"'"'$ac_val'"'"'"
1333       done | sort
1334       echo
1335     fi
1336
1337     if test -s confdefs.h; then
1338       cat <<\_ASBOX
1339 ## ----------- ##
1340 ## confdefs.h. ##
1341 ## ----------- ##
1342 _ASBOX
1343       echo
1344       sed "/^$/d" confdefs.h | sort
1345       echo
1346     fi
1347     test "$ac_signal" != 0 &&
1348       echo "$as_me: caught signal $ac_signal"
1349     echo "$as_me: exit $exit_status"
1350   } >&5
1351   rm -f core *.core &&
1352   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1353     exit $exit_status
1354      ' 0
1355 for ac_signal in 1 2 13 15; do
1356   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1357 done
1358 ac_signal=0
1359
1360 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1361 rm -rf conftest* confdefs.h
1362 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1363 echo >confdefs.h
1364
1365 # Predefined preprocessor variables.
1366
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_NAME "$PACKAGE_NAME"
1369 _ACEOF
1370
1371
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1374 _ACEOF
1375
1376
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1379 _ACEOF
1380
1381
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_STRING "$PACKAGE_STRING"
1384 _ACEOF
1385
1386
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1389 _ACEOF
1390
1391
1392 # Let the site file select an alternate cache file if it wants to.
1393 # Prefer explicitly selected file to automatically selected ones.
1394 if test -z "$CONFIG_SITE"; then
1395   if test "x$prefix" != xNONE; then
1396     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1397   else
1398     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1399   fi
1400 fi
1401 for ac_site_file in $CONFIG_SITE; do
1402   if test -r "$ac_site_file"; then
1403     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1404 echo "$as_me: loading site script $ac_site_file" >&6;}
1405     sed 's/^/| /' "$ac_site_file" >&5
1406     . "$ac_site_file"
1407   fi
1408 done
1409
1410 if test -r "$cache_file"; then
1411   # Some versions of bash will fail to source /dev/null (special
1412   # files actually), so we avoid doing that.
1413   if test -f "$cache_file"; then
1414     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1415 echo "$as_me: loading cache $cache_file" >&6;}
1416     case $cache_file in
1417       [\\/]* | ?:[\\/]* ) . $cache_file;;
1418       *)                      . ./$cache_file;;
1419     esac
1420   fi
1421 else
1422   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1423 echo "$as_me: creating cache $cache_file" >&6;}
1424   >$cache_file
1425 fi
1426
1427 # Check that the precious variables saved in the cache have kept the same
1428 # value.
1429 ac_cache_corrupted=false
1430 for ac_var in `(set) 2>&1 |
1431                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1432   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1433   eval ac_new_set=\$ac_env_${ac_var}_set
1434   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1435   eval ac_new_val="\$ac_env_${ac_var}_value"
1436   case $ac_old_set,$ac_new_set in
1437     set,)
1438       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1439 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1440       ac_cache_corrupted=: ;;
1441     ,set)
1442       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1443 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1444       ac_cache_corrupted=: ;;
1445     ,);;
1446     *)
1447       if test "x$ac_old_val" != "x$ac_new_val"; then
1448         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1449 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1450         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1451 echo "$as_me:   former value:  $ac_old_val" >&2;}
1452         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1453 echo "$as_me:   current value: $ac_new_val" >&2;}
1454         ac_cache_corrupted=:
1455       fi;;
1456   esac
1457   # Pass precious variables to config.status.
1458   if test "$ac_new_set" = set; then
1459     case $ac_new_val in
1460     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1461       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1462     *) ac_arg=$ac_var=$ac_new_val ;;
1463     esac
1464     case " $ac_configure_args " in
1465       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1466       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1467     esac
1468   fi
1469 done
1470 if $ac_cache_corrupted; then
1471   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1472 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1473   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1474 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1475    { (exit 1); exit 1; }; }
1476 fi
1477
1478 ac_ext=c
1479 ac_cpp='$CPP $CPPFLAGS'
1480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504 # Check whether --enable-checkmem or --disable-checkmem was given.
1505 if test "${enable_checkmem+set}" = set; then
1506   enableval="$enable_checkmem"
1507   CHECKMEM=true
1508 fi;
1509 # Check whether --enable-debug or --disable-debug was given.
1510 if test "${enable_debug+set}" = set; then
1511   enableval="$enable_debug"
1512   DEBUG=true
1513 fi;
1514 # Check whether --enable-profiling or --disable-profiling was given.
1515 if test "${enable_profiling+set}" = set; then
1516   enableval="$enable_profiling"
1517   PROFILING=true
1518 fi;
1519 # Check whether --enable-warnings or --disable-warnings was given.
1520 if test "${enable_warnings+set}" = set; then
1521   enableval="$enable_warnings"
1522   ENABLE_WARNINGS=true
1523 fi;
1524 # Check whether --enable-optimizations or --disable-optimizations was given.
1525 if test "${enable_optimizations+set}" = set; then
1526   enableval="$enable_optimizations"
1527   OPTIMIZE=true
1528 fi;
1529 # Check whether --enable-lame or --disable-lame was given.
1530 if test "${enable_lame+set}" = set; then
1531   enableval="$enable_lame"
1532   DISABLE_LAME=true
1533 fi;
1534
1535 PACKAGE=swftools
1536 VERSION=2004-11-23-2234
1537
1538
1539 # ------------------------------------------------------------------
1540
1541 if test "x${srcdir}" != "x."; then
1542     echo "--srcdir is not supported"
1543     exit 1
1544 fi
1545
1546 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1547 if test "x$ENABLE_WARNINGS" '!=' "x";then
1548     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1549 fi
1550
1551 if test "x$CHECKMEM" '!=' "x";then
1552     DEBUG=yes
1553 fi
1554 if test "x$PROFILING" '!=' "x";then
1555     DEBUG=yes
1556 fi
1557 if test "x$DEBUG" '!=' "x";then
1558     if test "x$PROFILING" = "x";then
1559         CFLAGS="$WARNINGS -g $CFLAGS"
1560         CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1561     else
1562         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1563         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1564         LDFLAGS="-g -pg $LIBS"
1565     fi
1566 else if test "x$OPTIMIZE" '!=' "x"; then
1567     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1568     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1569 else
1570     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1571     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1572 fi
1573 fi
1574 #OLDGCC=1
1575 #if test "x$OLDGCC" '!=' "x";then
1576 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1577 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1578 #     CFLAGS="$CFLAGS -ansi -pendantic"
1579 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1580 #fi
1581
1582 export PACKAGE VERSION CFLAGS CXXFLAGS
1583
1584
1585 ac_aux_dir=
1586 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1587   if test -f $ac_dir/install-sh; then
1588     ac_aux_dir=$ac_dir
1589     ac_install_sh="$ac_aux_dir/install-sh -c"
1590     break
1591   elif test -f $ac_dir/install.sh; then
1592     ac_aux_dir=$ac_dir
1593     ac_install_sh="$ac_aux_dir/install.sh -c"
1594     break
1595   elif test -f $ac_dir/shtool; then
1596     ac_aux_dir=$ac_dir
1597     ac_install_sh="$ac_aux_dir/shtool install -c"
1598     break
1599   fi
1600 done
1601 if test -z "$ac_aux_dir"; then
1602   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1603 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1604    { (exit 1); exit 1; }; }
1605 fi
1606 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1607 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1608 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1609
1610 # Make sure we can run config.sub.
1611 $ac_config_sub sun4 >/dev/null 2>&1 ||
1612   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1613 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1614    { (exit 1); exit 1; }; }
1615
1616 echo "$as_me:$LINENO: checking build system type" >&5
1617 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1618 if test "${ac_cv_build+set}" = set; then
1619   echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621   ac_cv_build_alias=$build_alias
1622 test -z "$ac_cv_build_alias" &&
1623   ac_cv_build_alias=`$ac_config_guess`
1624 test -z "$ac_cv_build_alias" &&
1625   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1626 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1627    { (exit 1); exit 1; }; }
1628 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1629   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1630 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1631    { (exit 1); exit 1; }; }
1632
1633 fi
1634 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1635 echo "${ECHO_T}$ac_cv_build" >&6
1636 build=$ac_cv_build
1637 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1638 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1639 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640
1641
1642 echo "$as_me:$LINENO: checking host system type" >&5
1643 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1644 if test "${ac_cv_host+set}" = set; then
1645   echo $ECHO_N "(cached) $ECHO_C" >&6
1646 else
1647   ac_cv_host_alias=$host_alias
1648 test -z "$ac_cv_host_alias" &&
1649   ac_cv_host_alias=$ac_cv_build_alias
1650 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1651   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1652 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1653    { (exit 1); exit 1; }; }
1654
1655 fi
1656 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1657 echo "${ECHO_T}$ac_cv_host" >&6
1658 host=$ac_cv_host
1659 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1660 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1661 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662
1663
1664
1665 SHARED="-shared"
1666 MACOSX=
1667 case $host_os in
1668     *darwin* )
1669         MACOSX=yes
1670         CFLAGS="$CFLAGS -fno-rtti"
1671         CXXFLAGS="$CXXFLAGS -fno-rtti"
1672         SHARED="-bundle"
1673         ;;
1674 esac
1675
1676
1677
1678  ac_ext=c
1679 ac_cpp='$CPP $CPPFLAGS'
1680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1683 if test -n "$ac_tool_prefix"; then
1684   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1685 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689   echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691   if test -n "$CC"; then
1692   ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695 for as_dir in $PATH
1696 do
1697   IFS=$as_save_IFS
1698   test -z "$as_dir" && as_dir=.
1699   for ac_exec_ext in '' $ac_executable_extensions; do
1700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703     break 2
1704   fi
1705 done
1706 done
1707
1708 fi
1709 fi
1710 CC=$ac_cv_prog_CC
1711 if test -n "$CC"; then
1712   echo "$as_me:$LINENO: result: $CC" >&5
1713 echo "${ECHO_T}$CC" >&6
1714 else
1715   echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1717 fi
1718
1719 fi
1720 if test -z "$ac_cv_prog_CC"; then
1721   ac_ct_CC=$CC
1722   # Extract the first word of "gcc", so it can be a program name with args.
1723 set dummy gcc; ac_word=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1727   echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729   if test -n "$ac_ct_CC"; then
1730   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1731 else
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1734 do
1735   IFS=$as_save_IFS
1736   test -z "$as_dir" && as_dir=.
1737   for ac_exec_ext in '' $ac_executable_extensions; do
1738   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739     ac_cv_prog_ac_ct_CC="gcc"
1740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741     break 2
1742   fi
1743 done
1744 done
1745
1746 fi
1747 fi
1748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1749 if test -n "$ac_ct_CC"; then
1750   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1751 echo "${ECHO_T}$ac_ct_CC" >&6
1752 else
1753   echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1755 fi
1756
1757   CC=$ac_ct_CC
1758 else
1759   CC="$ac_cv_prog_CC"
1760 fi
1761
1762 if test -z "$CC"; then
1763   if test -n "$ac_tool_prefix"; then
1764   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1765 set dummy ${ac_tool_prefix}cc; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_CC+set}" = set; then
1769   echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771   if test -n "$CC"; then
1772   ac_cv_prog_CC="$CC" # Let the user override the test.
1773 else
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1776 do
1777   IFS=$as_save_IFS
1778   test -z "$as_dir" && as_dir=.
1779   for ac_exec_ext in '' $ac_executable_extensions; do
1780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781     ac_cv_prog_CC="${ac_tool_prefix}cc"
1782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783     break 2
1784   fi
1785 done
1786 done
1787
1788 fi
1789 fi
1790 CC=$ac_cv_prog_CC
1791 if test -n "$CC"; then
1792   echo "$as_me:$LINENO: result: $CC" >&5
1793 echo "${ECHO_T}$CC" >&6
1794 else
1795   echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1797 fi
1798
1799 fi
1800 if test -z "$ac_cv_prog_CC"; then
1801   ac_ct_CC=$CC
1802   # Extract the first word of "cc", so it can be a program name with args.
1803 set dummy cc; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1807   echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809   if test -n "$ac_ct_CC"; then
1810   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1811 else
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 for as_dir in $PATH
1814 do
1815   IFS=$as_save_IFS
1816   test -z "$as_dir" && as_dir=.
1817   for ac_exec_ext in '' $ac_executable_extensions; do
1818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819     ac_cv_prog_ac_ct_CC="cc"
1820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821     break 2
1822   fi
1823 done
1824 done
1825
1826 fi
1827 fi
1828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1829 if test -n "$ac_ct_CC"; then
1830   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1831 echo "${ECHO_T}$ac_ct_CC" >&6
1832 else
1833   echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1835 fi
1836
1837   CC=$ac_ct_CC
1838 else
1839   CC="$ac_cv_prog_CC"
1840 fi
1841
1842 fi
1843 if test -z "$CC"; then
1844   # Extract the first word of "cc", so it can be a program name with args.
1845 set dummy cc; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_CC+set}" = set; then
1849   echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851   if test -n "$CC"; then
1852   ac_cv_prog_CC="$CC" # Let the user override the test.
1853 else
1854   ac_prog_rejected=no
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1857 do
1858   IFS=$as_save_IFS
1859   test -z "$as_dir" && as_dir=.
1860   for ac_exec_ext in '' $ac_executable_extensions; do
1861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1863        ac_prog_rejected=yes
1864        continue
1865      fi
1866     ac_cv_prog_CC="cc"
1867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868     break 2
1869   fi
1870 done
1871 done
1872
1873 if test $ac_prog_rejected = yes; then
1874   # We found a bogon in the path, so make sure we never use it.
1875   set dummy $ac_cv_prog_CC
1876   shift
1877   if test $# != 0; then
1878     # We chose a different compiler from the bogus one.
1879     # However, it has the same basename, so the bogon will be chosen
1880     # first if we set CC to just the basename; use the full file name.
1881     shift
1882     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1883   fi
1884 fi
1885 fi
1886 fi
1887 CC=$ac_cv_prog_CC
1888 if test -n "$CC"; then
1889   echo "$as_me:$LINENO: result: $CC" >&5
1890 echo "${ECHO_T}$CC" >&6
1891 else
1892   echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1894 fi
1895
1896 fi
1897 if test -z "$CC"; then
1898   if test -n "$ac_tool_prefix"; then
1899   for ac_prog in cl
1900   do
1901     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1903 echo "$as_me:$LINENO: checking for $ac_word" >&5
1904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905 if test "${ac_cv_prog_CC+set}" = set; then
1906   echo $ECHO_N "(cached) $ECHO_C" >&6
1907 else
1908   if test -n "$CC"; then
1909   ac_cv_prog_CC="$CC" # Let the user override the test.
1910 else
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1913 do
1914   IFS=$as_save_IFS
1915   test -z "$as_dir" && as_dir=.
1916   for ac_exec_ext in '' $ac_executable_extensions; do
1917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920     break 2
1921   fi
1922 done
1923 done
1924
1925 fi
1926 fi
1927 CC=$ac_cv_prog_CC
1928 if test -n "$CC"; then
1929   echo "$as_me:$LINENO: result: $CC" >&5
1930 echo "${ECHO_T}$CC" >&6
1931 else
1932   echo "$as_me:$LINENO: result: no" >&5
1933 echo "${ECHO_T}no" >&6
1934 fi
1935
1936     test -n "$CC" && break
1937   done
1938 fi
1939 if test -z "$CC"; then
1940   ac_ct_CC=$CC
1941   for ac_prog in cl
1942 do
1943   # Extract the first word of "$ac_prog", so it can be a program name with args.
1944 set dummy $ac_prog; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1948   echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950   if test -n "$ac_ct_CC"; then
1951   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956   IFS=$as_save_IFS
1957   test -z "$as_dir" && as_dir=.
1958   for ac_exec_ext in '' $ac_executable_extensions; do
1959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960     ac_cv_prog_ac_ct_CC="$ac_prog"
1961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962     break 2
1963   fi
1964 done
1965 done
1966
1967 fi
1968 fi
1969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1970 if test -n "$ac_ct_CC"; then
1971   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1972 echo "${ECHO_T}$ac_ct_CC" >&6
1973 else
1974   echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1976 fi
1977
1978   test -n "$ac_ct_CC" && break
1979 done
1980
1981   CC=$ac_ct_CC
1982 fi
1983
1984 fi
1985
1986
1987 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1988 See \`config.log' for more details." >&5
1989 echo "$as_me: error: no acceptable C compiler found in \$PATH
1990 See \`config.log' for more details." >&2;}
1991    { (exit 1); exit 1; }; }
1992
1993 # Provide some information about the compiler.
1994 echo "$as_me:$LINENO:" \
1995      "checking for C compiler version" >&5
1996 ac_compiler=`set X $ac_compile; echo $2`
1997 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1998   (eval $ac_compiler --version </dev/null >&5) 2>&5
1999   ac_status=$?
2000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001   (exit $ac_status); }
2002 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2003   (eval $ac_compiler -v </dev/null >&5) 2>&5
2004   ac_status=$?
2005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006   (exit $ac_status); }
2007 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2008   (eval $ac_compiler -V </dev/null >&5) 2>&5
2009   ac_status=$?
2010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011   (exit $ac_status); }
2012
2013 cat >conftest.$ac_ext <<_ACEOF
2014 /* confdefs.h.  */
2015 _ACEOF
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h.  */
2019
2020 int
2021 main ()
2022 {
2023
2024   ;
2025   return 0;
2026 }
2027 _ACEOF
2028 ac_clean_files_save=$ac_clean_files
2029 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2030 # Try to create an executable without -o first, disregard a.out.
2031 # It will help us diagnose broken compilers, and finding out an intuition
2032 # of exeext.
2033 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2034 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2035 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2036 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2037   (eval $ac_link_default) 2>&5
2038   ac_status=$?
2039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040   (exit $ac_status); }; then
2041   # Find the output, starting from the most likely.  This scheme is
2042 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2043 # resort.
2044
2045 # Be careful to initialize this variable, since it used to be cached.
2046 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2047 ac_cv_exeext=
2048 # b.out is created by i960 compilers.
2049 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2050 do
2051   test -f "$ac_file" || continue
2052   case $ac_file in
2053     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2054         ;;
2055     conftest.$ac_ext )
2056         # This is the source file.
2057         ;;
2058     [ab].out )
2059         # We found the default executable, but exeext='' is most
2060         # certainly right.
2061         break;;
2062     *.* )
2063         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2064         # FIXME: I believe we export ac_cv_exeext for Libtool,
2065         # but it would be cool to find out if it's true.  Does anybody
2066         # maintain Libtool? --akim.
2067         export ac_cv_exeext
2068         break;;
2069     * )
2070         break;;
2071   esac
2072 done
2073 else
2074   echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2076
2077 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2078 See \`config.log' for more details." >&5
2079 echo "$as_me: error: C compiler cannot create executables
2080 See \`config.log' for more details." >&2;}
2081    { (exit 77); exit 77; }; }
2082 fi
2083
2084 ac_exeext=$ac_cv_exeext
2085 echo "$as_me:$LINENO: result: $ac_file" >&5
2086 echo "${ECHO_T}$ac_file" >&6
2087
2088 # Check the compiler produces executables we can run.  If not, either
2089 # the compiler is broken, or we cross compile.
2090 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2091 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2092 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2093 # If not cross compiling, check that we can run a simple program.
2094 if test "$cross_compiling" != yes; then
2095   if { ac_try='./$ac_file'
2096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097   (eval $ac_try) 2>&5
2098   ac_status=$?
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); }; }; then
2101     cross_compiling=no
2102   else
2103     if test "$cross_compiling" = maybe; then
2104         cross_compiling=yes
2105     else
2106         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2107 If you meant to cross compile, use \`--host'.
2108 See \`config.log' for more details." >&5
2109 echo "$as_me: error: cannot run C compiled programs.
2110 If you meant to cross compile, use \`--host'.
2111 See \`config.log' for more details." >&2;}
2112    { (exit 1); exit 1; }; }
2113     fi
2114   fi
2115 fi
2116 echo "$as_me:$LINENO: result: yes" >&5
2117 echo "${ECHO_T}yes" >&6
2118
2119 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2120 ac_clean_files=$ac_clean_files_save
2121 # Check the compiler produces executables we can run.  If not, either
2122 # the compiler is broken, or we cross compile.
2123 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2124 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2125 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2126 echo "${ECHO_T}$cross_compiling" >&6
2127
2128 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2129 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2131   (eval $ac_link) 2>&5
2132   ac_status=$?
2133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134   (exit $ac_status); }; then
2135   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2136 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2137 # work properly (i.e., refer to `conftest.exe'), while it won't with
2138 # `rm'.
2139 for ac_file in conftest.exe conftest conftest.*; do
2140   test -f "$ac_file" || continue
2141   case $ac_file in
2142     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2143     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2144           export ac_cv_exeext
2145           break;;
2146     * ) break;;
2147   esac
2148 done
2149 else
2150   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2151 See \`config.log' for more details." >&5
2152 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2153 See \`config.log' for more details." >&2;}
2154    { (exit 1); exit 1; }; }
2155 fi
2156
2157 rm -f conftest$ac_cv_exeext
2158 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2159 echo "${ECHO_T}$ac_cv_exeext" >&6
2160
2161 rm -f conftest.$ac_ext
2162 EXEEXT=$ac_cv_exeext
2163 ac_exeext=$EXEEXT
2164 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2165 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2166 if test "${ac_cv_objext+set}" = set; then
2167   echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169   cat >conftest.$ac_ext <<_ACEOF
2170 /* confdefs.h.  */
2171 _ACEOF
2172 cat confdefs.h >>conftest.$ac_ext
2173 cat >>conftest.$ac_ext <<_ACEOF
2174 /* end confdefs.h.  */
2175
2176 int
2177 main ()
2178 {
2179
2180   ;
2181   return 0;
2182 }
2183 _ACEOF
2184 rm -f conftest.o conftest.obj
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186   (eval $ac_compile) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }; then
2190   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2191   case $ac_file in
2192     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2193     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2194        break;;
2195   esac
2196 done
2197 else
2198   echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2200
2201 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2202 See \`config.log' for more details." >&5
2203 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2204 See \`config.log' for more details." >&2;}
2205    { (exit 1); exit 1; }; }
2206 fi
2207
2208 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2209 fi
2210 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2211 echo "${ECHO_T}$ac_cv_objext" >&6
2212 OBJEXT=$ac_cv_objext
2213 ac_objext=$OBJEXT
2214 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2215 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2216 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2217   echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219   cat >conftest.$ac_ext <<_ACEOF
2220 /* confdefs.h.  */
2221 _ACEOF
2222 cat confdefs.h >>conftest.$ac_ext
2223 cat >>conftest.$ac_ext <<_ACEOF
2224 /* end confdefs.h.  */
2225
2226 int
2227 main ()
2228 {
2229 #ifndef __GNUC__
2230        choke me
2231 #endif
2232
2233   ;
2234   return 0;
2235 }
2236 _ACEOF
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239   (eval $ac_compile) 2>conftest.er1
2240   ac_status=$?
2241   grep -v '^ *+' conftest.er1 >conftest.err
2242   rm -f conftest.er1
2243   cat conftest.err >&5
2244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245   (exit $ac_status); } &&
2246          { ac_try='test -z "$ac_c_werror_flag"
2247                          || test ! -s conftest.err'
2248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249   (eval $ac_try) 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); }; } &&
2253          { ac_try='test -s conftest.$ac_objext'
2254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255   (eval $ac_try) 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; }; then
2259   ac_compiler_gnu=yes
2260 else
2261   echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2263
2264 ac_compiler_gnu=no
2265 fi
2266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2268
2269 fi
2270 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2271 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2272 GCC=`test $ac_compiler_gnu = yes && echo yes`
2273 ac_test_CFLAGS=${CFLAGS+set}
2274 ac_save_CFLAGS=$CFLAGS
2275 CFLAGS="-g"
2276 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2277 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2278 if test "${ac_cv_prog_cc_g+set}" = set; then
2279   echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281   cat >conftest.$ac_ext <<_ACEOF
2282 /* confdefs.h.  */
2283 _ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h.  */
2287
2288 int
2289 main ()
2290 {
2291
2292   ;
2293   return 0;
2294 }
2295 _ACEOF
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298   (eval $ac_compile) 2>conftest.er1
2299   ac_status=$?
2300   grep -v '^ *+' conftest.er1 >conftest.err
2301   rm -f conftest.er1
2302   cat conftest.err >&5
2303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304   (exit $ac_status); } &&
2305          { ac_try='test -z "$ac_c_werror_flag"
2306                          || test ! -s conftest.err'
2307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308   (eval $ac_try) 2>&5
2309   ac_status=$?
2310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311   (exit $ac_status); }; } &&
2312          { ac_try='test -s conftest.$ac_objext'
2313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314   (eval $ac_try) 2>&5
2315   ac_status=$?
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); }; }; then
2318   ac_cv_prog_cc_g=yes
2319 else
2320   echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2322
2323 ac_cv_prog_cc_g=no
2324 fi
2325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2326 fi
2327 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2328 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2329 if test "$ac_test_CFLAGS" = set; then
2330   CFLAGS=$ac_save_CFLAGS
2331 elif test $ac_cv_prog_cc_g = yes; then
2332   if test "$GCC" = yes; then
2333     CFLAGS="-g -O2"
2334   else
2335     CFLAGS="-g"
2336   fi
2337 else
2338   if test "$GCC" = yes; then
2339     CFLAGS="-O2"
2340   else
2341     CFLAGS=
2342   fi
2343 fi
2344 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2345 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2346 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2347   echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349   ac_cv_prog_cc_stdc=no
2350 ac_save_CC=$CC
2351 cat >conftest.$ac_ext <<_ACEOF
2352 /* confdefs.h.  */
2353 _ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h.  */
2357 #include <stdarg.h>
2358 #include <stdio.h>
2359 #include <sys/types.h>
2360 #include <sys/stat.h>
2361 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2362 struct buf { int x; };
2363 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2364 static char *e (p, i)
2365      char **p;
2366      int i;
2367 {
2368   return p[i];
2369 }
2370 static char *f (char * (*g) (char **, int), char **p, ...)
2371 {
2372   char *s;
2373   va_list v;
2374   va_start (v,p);
2375   s = g (p, va_arg (v,int));
2376   va_end (v);
2377   return s;
2378 }
2379
2380 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2381    function prototypes and stuff, but not '\xHH' hex character constants.
2382    These don't provoke an error unfortunately, instead are silently treated
2383    as 'x'.  The following induces an error, until -std1 is added to get
2384    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2385    array size at least.  It's necessary to write '\x00'==0 to get something
2386    that's true only with -std1.  */
2387 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2388
2389 int test (int i, double x);
2390 struct s1 {int (*f) (int a);};
2391 struct s2 {int (*f) (double a);};
2392 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2393 int argc;
2394 char **argv;
2395 int
2396 main ()
2397 {
2398 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2399   ;
2400   return 0;
2401 }
2402 _ACEOF
2403 # Don't try gcc -ansi; that turns off useful extensions and
2404 # breaks some systems' header files.
2405 # AIX                   -qlanglvl=ansi
2406 # Ultrix and OSF/1      -std1
2407 # HP-UX 10.20 and later -Ae
2408 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2409 # SVR4                  -Xc -D__EXTENSIONS__
2410 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2411 do
2412   CC="$ac_save_CC $ac_arg"
2413   rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415   (eval $ac_compile) 2>conftest.er1
2416   ac_status=$?
2417   grep -v '^ *+' conftest.er1 >conftest.err
2418   rm -f conftest.er1
2419   cat conftest.err >&5
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); } &&
2422          { ac_try='test -z "$ac_c_werror_flag"
2423                          || test ! -s conftest.err'
2424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425   (eval $ac_try) 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; } &&
2429          { ac_try='test -s conftest.$ac_objext'
2430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431   (eval $ac_try) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; }; then
2435   ac_cv_prog_cc_stdc=$ac_arg
2436 break
2437 else
2438   echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440
2441 fi
2442 rm -f conftest.err conftest.$ac_objext
2443 done
2444 rm -f conftest.$ac_ext conftest.$ac_objext
2445 CC=$ac_save_CC
2446
2447 fi
2448
2449 case "x$ac_cv_prog_cc_stdc" in
2450   x|xno)
2451     echo "$as_me:$LINENO: result: none needed" >&5
2452 echo "${ECHO_T}none needed" >&6 ;;
2453   *)
2454     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2455 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2456     CC="$CC $ac_cv_prog_cc_stdc" ;;
2457 esac
2458
2459 # Some people use a C++ compiler to compile C.  Since we use `exit',
2460 # in C++ we need to declare it.  In case someone uses the same compiler
2461 # for both compiling C and C++ we need to have the C++ compiler decide
2462 # the declaration of exit, since it's the most demanding environment.
2463 cat >conftest.$ac_ext <<_ACEOF
2464 #ifndef __cplusplus
2465   choke me
2466 #endif
2467 _ACEOF
2468 rm -f conftest.$ac_objext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470   (eval $ac_compile) 2>conftest.er1
2471   ac_status=$?
2472   grep -v '^ *+' conftest.er1 >conftest.err
2473   rm -f conftest.er1
2474   cat conftest.err >&5
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); } &&
2477          { ac_try='test -z "$ac_c_werror_flag"
2478                          || test ! -s conftest.err'
2479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480   (eval $ac_try) 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }; } &&
2484          { ac_try='test -s conftest.$ac_objext'
2485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486   (eval $ac_try) 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; }; then
2490   for ac_declaration in \
2491    '' \
2492    'extern "C" void std::exit (int) throw (); using std::exit;' \
2493    'extern "C" void std::exit (int); using std::exit;' \
2494    'extern "C" void exit (int) throw ();' \
2495    'extern "C" void exit (int);' \
2496    'void exit (int);'
2497 do
2498   cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h.  */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h.  */
2504 $ac_declaration
2505 #include <stdlib.h>
2506 int
2507 main ()
2508 {
2509 exit (42);
2510   ;
2511   return 0;
2512 }
2513 _ACEOF
2514 rm -f conftest.$ac_objext
2515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516   (eval $ac_compile) 2>conftest.er1
2517   ac_status=$?
2518   grep -v '^ *+' conftest.er1 >conftest.err
2519   rm -f conftest.er1
2520   cat conftest.err >&5
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); } &&
2523          { ac_try='test -z "$ac_c_werror_flag"
2524                          || test ! -s conftest.err'
2525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526   (eval $ac_try) 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); }; } &&
2530          { ac_try='test -s conftest.$ac_objext'
2531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532   (eval $ac_try) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; }; then
2536   :
2537 else
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 continue
2542 fi
2543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2544   cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h.  */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h.  */
2550 $ac_declaration
2551 int
2552 main ()
2553 {
2554 exit (42);
2555   ;
2556   return 0;
2557 }
2558 _ACEOF
2559 rm -f conftest.$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561   (eval $ac_compile) 2>conftest.er1
2562   ac_status=$?
2563   grep -v '^ *+' conftest.er1 >conftest.err
2564   rm -f conftest.er1
2565   cat conftest.err >&5
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); } &&
2568          { ac_try='test -z "$ac_c_werror_flag"
2569                          || test ! -s conftest.err'
2570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571   (eval $ac_try) 2>&5
2572   ac_status=$?
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); }; } &&
2575          { ac_try='test -s conftest.$ac_objext'
2576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577   (eval $ac_try) 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; }; then
2581   break
2582 else
2583   echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2585
2586 fi
2587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2588 done
2589 rm -f conftest*
2590 if test -n "$ac_declaration"; then
2591   echo '#ifdef __cplusplus' >>confdefs.h
2592   echo $ac_declaration      >>confdefs.h
2593   echo '#endif'             >>confdefs.h
2594 fi
2595
2596 else
2597   echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600 fi
2601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2602 ac_ext=c
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2607
2608  ac_ext=cc
2609 ac_cpp='$CXXCPP $CPPFLAGS'
2610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2613 if test -n "$ac_tool_prefix"; then
2614   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2615   do
2616     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2618 echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2620 if test "${ac_cv_prog_CXX+set}" = set; then
2621   echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623   if test -n "$CXX"; then
2624   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629   IFS=$as_save_IFS
2630   test -z "$as_dir" && as_dir=.
2631   for ac_exec_ext in '' $ac_executable_extensions; do
2632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635     break 2
2636   fi
2637 done
2638 done
2639
2640 fi
2641 fi
2642 CXX=$ac_cv_prog_CXX
2643 if test -n "$CXX"; then
2644   echo "$as_me:$LINENO: result: $CXX" >&5
2645 echo "${ECHO_T}$CXX" >&6
2646 else
2647   echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6
2649 fi
2650
2651     test -n "$CXX" && break
2652   done
2653 fi
2654 if test -z "$CXX"; then
2655   ac_ct_CXX=$CXX
2656   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2657 do
2658   # Extract the first word of "$ac_prog", so it can be a program name with args.
2659 set dummy $ac_prog; ac_word=$2
2660 echo "$as_me:$LINENO: checking for $ac_word" >&5
2661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2662 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2663   echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665   if test -n "$ac_ct_CXX"; then
2666   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2667 else
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2670 do
2671   IFS=$as_save_IFS
2672   test -z "$as_dir" && as_dir=.
2673   for ac_exec_ext in '' $ac_executable_extensions; do
2674   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675     ac_cv_prog_ac_ct_CXX="$ac_prog"
2676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677     break 2
2678   fi
2679 done
2680 done
2681
2682 fi
2683 fi
2684 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2685 if test -n "$ac_ct_CXX"; then
2686   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2687 echo "${ECHO_T}$ac_ct_CXX" >&6
2688 else
2689   echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6
2691 fi
2692
2693   test -n "$ac_ct_CXX" && break
2694 done
2695 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2696
2697   CXX=$ac_ct_CXX
2698 fi
2699
2700
2701 # Provide some information about the compiler.
2702 echo "$as_me:$LINENO:" \
2703      "checking for C++ compiler version" >&5
2704 ac_compiler=`set X $ac_compile; echo $2`
2705 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2706   (eval $ac_compiler --version </dev/null >&5) 2>&5
2707   ac_status=$?
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); }
2710 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2711   (eval $ac_compiler -v </dev/null >&5) 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); }
2715 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2716   (eval $ac_compiler -V </dev/null >&5) 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); }
2720
2721 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2722 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2723 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2724   echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726   cat >conftest.$ac_ext <<_ACEOF
2727 /* confdefs.h.  */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h.  */
2732
2733 int
2734 main ()
2735 {
2736 #ifndef __GNUC__
2737        choke me
2738 #endif
2739
2740   ;
2741   return 0;
2742 }
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746   (eval $ac_compile) 2>conftest.er1
2747   ac_status=$?
2748   grep -v '^ *+' conftest.er1 >conftest.err
2749   rm -f conftest.er1
2750   cat conftest.err >&5
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); } &&
2753          { ac_try='test -z "$ac_cxx_werror_flag"
2754                          || test ! -s conftest.err'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; } &&
2760          { ac_try='test -s conftest.$ac_objext'
2761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; }; then
2766   ac_compiler_gnu=yes
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 ac_compiler_gnu=no
2772 fi
2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2775
2776 fi
2777 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2778 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2779 GXX=`test $ac_compiler_gnu = yes && echo yes`
2780 ac_test_CXXFLAGS=${CXXFLAGS+set}
2781 ac_save_CXXFLAGS=$CXXFLAGS
2782 CXXFLAGS="-g"
2783 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2784 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2785 if test "${ac_cv_prog_cxx_g+set}" = set; then
2786   echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788   cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h.  */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h.  */
2794
2795 int
2796 main ()
2797 {
2798
2799   ;
2800   return 0;
2801 }
2802 _ACEOF
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805   (eval $ac_compile) 2>conftest.er1
2806   ac_status=$?
2807   grep -v '^ *+' conftest.er1 >conftest.err
2808   rm -f conftest.er1
2809   cat conftest.err >&5
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); } &&
2812          { ac_try='test -z "$ac_cxx_werror_flag"
2813                          || test ! -s conftest.err'
2814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815   (eval $ac_try) 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); }; } &&
2819          { ac_try='test -s conftest.$ac_objext'
2820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821   (eval $ac_try) 2>&5
2822   ac_status=$?
2823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824   (exit $ac_status); }; }; then
2825   ac_cv_prog_cxx_g=yes
2826 else
2827   echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2829
2830 ac_cv_prog_cxx_g=no
2831 fi
2832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2833 fi
2834 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2835 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2836 if test "$ac_test_CXXFLAGS" = set; then
2837   CXXFLAGS=$ac_save_CXXFLAGS
2838 elif test $ac_cv_prog_cxx_g = yes; then
2839   if test "$GXX" = yes; then
2840     CXXFLAGS="-g -O2"
2841   else
2842     CXXFLAGS="-g"
2843   fi
2844 else
2845   if test "$GXX" = yes; then
2846     CXXFLAGS="-O2"
2847   else
2848     CXXFLAGS=
2849   fi
2850 fi
2851 for ac_declaration in \
2852    '' \
2853    'extern "C" void std::exit (int) throw (); using std::exit;' \
2854    'extern "C" void std::exit (int); using std::exit;' \
2855    'extern "C" void exit (int) throw ();' \
2856    'extern "C" void exit (int);' \
2857    'void exit (int);'
2858 do
2859   cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h.  */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h.  */
2865 $ac_declaration
2866 #include <stdlib.h>
2867 int
2868 main ()
2869 {
2870 exit (42);
2871   ;
2872   return 0;
2873 }
2874 _ACEOF
2875 rm -f conftest.$ac_objext
2876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877   (eval $ac_compile) 2>conftest.er1
2878   ac_status=$?
2879   grep -v '^ *+' conftest.er1 >conftest.err
2880   rm -f conftest.er1
2881   cat conftest.err >&5
2882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883   (exit $ac_status); } &&
2884          { ac_try='test -z "$ac_cxx_werror_flag"
2885                          || test ! -s conftest.err'
2886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887   (eval $ac_try) 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }; } &&
2891          { ac_try='test -s conftest.$ac_objext'
2892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893   (eval $ac_try) 2>&5
2894   ac_status=$?
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); }; }; then
2897   :
2898 else
2899   echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2901
2902 continue
2903 fi
2904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905   cat >conftest.$ac_ext <<_ACEOF
2906 /* confdefs.h.  */
2907 _ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h.  */
2911 $ac_declaration
2912 int
2913 main ()
2914 {
2915 exit (42);
2916   ;
2917   return 0;
2918 }
2919 _ACEOF
2920 rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922   (eval $ac_compile) 2>conftest.er1
2923   ac_status=$?
2924   grep -v '^ *+' conftest.er1 >conftest.err
2925   rm -f conftest.er1
2926   cat conftest.err >&5
2927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928   (exit $ac_status); } &&
2929          { ac_try='test -z "$ac_cxx_werror_flag"
2930                          || test ! -s conftest.err'
2931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932   (eval $ac_try) 2>&5
2933   ac_status=$?
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); }; } &&
2936          { ac_try='test -s conftest.$ac_objext'
2937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938   (eval $ac_try) 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }; }; then
2942   break
2943 else
2944   echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2946
2947 fi
2948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2949 done
2950 rm -f conftest*
2951 if test -n "$ac_declaration"; then
2952   echo '#ifdef __cplusplus' >>confdefs.h
2953   echo $ac_declaration      >>confdefs.h
2954   echo '#endif'             >>confdefs.h
2955 fi
2956
2957 ac_ext=c
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962
2963
2964 if test "x$CHECKMEM" '!=' "x";then
2965     CC="ccmalloc $CC"
2966     CXX="ccmalloc $CXX"
2967     #echo running again
2968     #unset ac_cv_prog_CC
2969     #unset ac_cv_prog_CXX
2970     #AC_PROG_CC
2971     #AC_PROG_CXX
2972 fi
2973  ac_ext=c
2974 ac_cpp='$CPP $CPPFLAGS'
2975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2979 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2980 # On Suns, sometimes $CPP names a directory.
2981 if test -n "$CPP" && test -d "$CPP"; then
2982   CPP=
2983 fi
2984 if test -z "$CPP"; then
2985   if test "${ac_cv_prog_CPP+set}" = set; then
2986   echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988       # Double quotes because CPP needs to be expanded
2989     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2990     do
2991       ac_preproc_ok=false
2992 for ac_c_preproc_warn_flag in '' yes
2993 do
2994   # Use a header file that comes with gcc, so configuring glibc
2995   # with a fresh cross-compiler works.
2996   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2997   # <limits.h> exists even on freestanding compilers.
2998   # On the NeXT, cc -E runs the code through the compiler's parser,
2999   # not just through cpp. "Syntax error" is here to catch this case.
3000   cat >conftest.$ac_ext <<_ACEOF
3001 /* confdefs.h.  */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h.  */
3006 #ifdef __STDC__
3007 # include <limits.h>
3008 #else
3009 # include <assert.h>
3010 #endif
3011                      Syntax error
3012 _ACEOF
3013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3014   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3015   ac_status=$?
3016   grep -v '^ *+' conftest.er1 >conftest.err
3017   rm -f conftest.er1
3018   cat conftest.err >&5
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); } >/dev/null; then
3021   if test -s conftest.err; then
3022     ac_cpp_err=$ac_c_preproc_warn_flag
3023     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3024   else
3025     ac_cpp_err=
3026   fi
3027 else
3028   ac_cpp_err=yes
3029 fi
3030 if test -z "$ac_cpp_err"; then
3031   :
3032 else
3033   echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3035
3036   # Broken: fails on valid input.
3037 continue
3038 fi
3039 rm -f conftest.err conftest.$ac_ext
3040
3041   # OK, works on sane cases.  Now check whether non-existent headers
3042   # can be detected and how.
3043   cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h.  */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h.  */
3049 #include <ac_nonexistent.h>
3050 _ACEOF
3051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3053   ac_status=$?
3054   grep -v '^ *+' conftest.er1 >conftest.err
3055   rm -f conftest.er1
3056   cat conftest.err >&5
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); } >/dev/null; then
3059   if test -s conftest.err; then
3060     ac_cpp_err=$ac_c_preproc_warn_flag
3061     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3062   else
3063     ac_cpp_err=
3064   fi
3065 else
3066   ac_cpp_err=yes
3067 fi
3068 if test -z "$ac_cpp_err"; then
3069   # Broken: success on invalid input.
3070 continue
3071 else
3072   echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3074
3075   # Passes both tests.
3076 ac_preproc_ok=:
3077 break
3078 fi
3079 rm -f conftest.err conftest.$ac_ext
3080
3081 done
3082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3083 rm -f conftest.err conftest.$ac_ext
3084 if $ac_preproc_ok; then
3085   break
3086 fi
3087
3088     done
3089     ac_cv_prog_CPP=$CPP
3090
3091 fi
3092   CPP=$ac_cv_prog_CPP
3093 else
3094   ac_cv_prog_CPP=$CPP
3095 fi
3096 echo "$as_me:$LINENO: result: $CPP" >&5
3097 echo "${ECHO_T}$CPP" >&6
3098 ac_preproc_ok=false
3099 for ac_c_preproc_warn_flag in '' yes
3100 do
3101   # Use a header file that comes with gcc, so configuring glibc
3102   # with a fresh cross-compiler works.
3103   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3104   # <limits.h> exists even on freestanding compilers.
3105   # On the NeXT, cc -E runs the code through the compiler's parser,
3106   # not just through cpp. "Syntax error" is here to catch this case.
3107   cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h.  */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h.  */
3113 #ifdef __STDC__
3114 # include <limits.h>
3115 #else
3116 # include <assert.h>
3117 #endif
3118                      Syntax error
3119 _ACEOF
3120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3121   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3122   ac_status=$?
3123   grep -v '^ *+' conftest.er1 >conftest.err
3124   rm -f conftest.er1
3125   cat conftest.err >&5
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); } >/dev/null; then
3128   if test -s conftest.err; then
3129     ac_cpp_err=$ac_c_preproc_warn_flag
3130     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3131   else
3132     ac_cpp_err=
3133   fi
3134 else
3135   ac_cpp_err=yes
3136 fi
3137 if test -z "$ac_cpp_err"; then
3138   :
3139 else
3140   echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3142
3143   # Broken: fails on valid input.
3144 continue
3145 fi
3146 rm -f conftest.err conftest.$ac_ext
3147
3148   # OK, works on sane cases.  Now check whether non-existent headers
3149   # can be detected and how.
3150   cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h.  */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h.  */
3156 #include <ac_nonexistent.h>
3157 _ACEOF
3158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3159   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3160   ac_status=$?
3161   grep -v '^ *+' conftest.er1 >conftest.err
3162   rm -f conftest.er1
3163   cat conftest.err >&5
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); } >/dev/null; then
3166   if test -s conftest.err; then
3167     ac_cpp_err=$ac_c_preproc_warn_flag
3168     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3169   else
3170     ac_cpp_err=
3171   fi
3172 else
3173   ac_cpp_err=yes
3174 fi
3175 if test -z "$ac_cpp_err"; then
3176   # Broken: success on invalid input.
3177 continue
3178 else
3179   echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3181
3182   # Passes both tests.
3183 ac_preproc_ok=:
3184 break
3185 fi
3186 rm -f conftest.err conftest.$ac_ext
3187
3188 done
3189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3190 rm -f conftest.err conftest.$ac_ext
3191 if $ac_preproc_ok; then
3192   :
3193 else
3194   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3195 See \`config.log' for more details." >&5
3196 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3197 See \`config.log' for more details." >&2;}
3198    { (exit 1); exit 1; }; }
3199 fi
3200
3201 ac_ext=c
3202 ac_cpp='$CPP $CPPFLAGS'
3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206
3207
3208  if test -n "$ac_tool_prefix"; then
3209   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3210 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3211 echo "$as_me:$LINENO: checking for $ac_word" >&5
3212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3213 if test "${ac_cv_prog_RANLIB+set}" = set; then
3214   echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216   if test -n "$RANLIB"; then
3217   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222   IFS=$as_save_IFS
3223   test -z "$as_dir" && as_dir=.
3224   for ac_exec_ext in '' $ac_executable_extensions; do
3225   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3228     break 2
3229   fi
3230 done
3231 done
3232
3233 fi
3234 fi
3235 RANLIB=$ac_cv_prog_RANLIB
3236 if test -n "$RANLIB"; then
3237   echo "$as_me:$LINENO: result: $RANLIB" >&5
3238 echo "${ECHO_T}$RANLIB" >&6
3239 else
3240   echo "$as_me:$LINENO: result: no" >&5
3241 echo "${ECHO_T}no" >&6
3242 fi
3243
3244 fi
3245 if test -z "$ac_cv_prog_RANLIB"; then
3246   ac_ct_RANLIB=$RANLIB
3247   # Extract the first word of "ranlib", so it can be a program name with args.
3248 set dummy ranlib; ac_word=$2
3249 echo "$as_me:$LINENO: checking for $ac_word" >&5
3250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3251 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254   if test -n "$ac_ct_RANLIB"; then
3255   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3256 else
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 for as_dir in $PATH
3259 do
3260   IFS=$as_save_IFS
3261   test -z "$as_dir" && as_dir=.
3262   for ac_exec_ext in '' $ac_executable_extensions; do
3263   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3264     ac_cv_prog_ac_ct_RANLIB="ranlib"
3265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3266     break 2
3267   fi
3268 done
3269 done
3270
3271   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3272 fi
3273 fi
3274 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3275 if test -n "$ac_ct_RANLIB"; then
3276   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3277 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3278 else
3279   echo "$as_me:$LINENO: result: no" >&5
3280 echo "${ECHO_T}no" >&6
3281 fi
3282
3283   RANLIB=$ac_ct_RANLIB
3284 else
3285   RANLIB="$ac_cv_prog_RANLIB"
3286 fi
3287
3288  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3289 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3290 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3291 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3292   echo $ECHO_N "(cached) $ECHO_C" >&6
3293 else
3294   cat >conftest.make <<\_ACEOF
3295 all:
3296         @echo 'ac_maketemp="$(MAKE)"'
3297 _ACEOF
3298 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3299 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3300 if test -n "$ac_maketemp"; then
3301   eval ac_cv_prog_make_${ac_make}_set=yes
3302 else
3303   eval ac_cv_prog_make_${ac_make}_set=no
3304 fi
3305 rm -f conftest.make
3306 fi
3307 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3308   echo "$as_me:$LINENO: result: yes" >&5
3309 echo "${ECHO_T}yes" >&6
3310   SET_MAKE=
3311 else
3312   echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6
3314   SET_MAKE="MAKE=${MAKE-make}"
3315 fi
3316
3317  # Find a good install program.  We prefer a C program (faster),
3318 # so one script is as good as another.  But avoid the broken or
3319 # incompatible versions:
3320 # SysV /etc/install, /usr/sbin/install
3321 # SunOS /usr/etc/install
3322 # IRIX /sbin/install
3323 # AIX /bin/install
3324 # AmigaOS /C/install, which installs bootblocks on floppy discs
3325 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3326 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3327 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3328 # OS/2's system install, which has a completely different semantic
3329 # ./install, which can be erroneously created by make from ./install.sh.
3330 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3331 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3332 if test -z "$INSTALL"; then
3333 if test "${ac_cv_path_install+set}" = set; then
3334   echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339   IFS=$as_save_IFS
3340   test -z "$as_dir" && as_dir=.
3341   # Account for people who put trailing slashes in PATH elements.
3342 case $as_dir/ in
3343   ./ | .// | /cC/* | \
3344   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3345   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3346   /usr/ucb/* ) ;;
3347   *)
3348     # OSF1 and SCO ODT 3.0 have their own names for install.
3349     # Don't use installbsd from OSF since it installs stuff as root
3350     # by default.
3351     for ac_prog in ginstall scoinst install; do
3352       for ac_exec_ext in '' $ac_executable_extensions; do
3353         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3354           if test $ac_prog = install &&
3355             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3356             # AIX install.  It has an incompatible calling convention.
3357             :
3358           elif test $ac_prog = install &&
3359             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3360             # program-specific install script used by HP pwplus--don't use.
3361             :
3362           else
3363             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3364             break 3
3365           fi
3366         fi
3367       done
3368     done
3369     ;;
3370 esac
3371 done
3372
3373
3374 fi
3375   if test "${ac_cv_path_install+set}" = set; then
3376     INSTALL=$ac_cv_path_install
3377   else
3378     # As a last resort, use the slow shell script.  We don't cache a
3379     # path for INSTALL within a source directory, because that will
3380     # break other packages using the cache if that directory is
3381     # removed, or if the path is relative.
3382     INSTALL=$ac_install_sh
3383   fi
3384 fi
3385 echo "$as_me:$LINENO: result: $INSTALL" >&5
3386 echo "${ECHO_T}$INSTALL" >&6
3387
3388 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3389 # It thinks the first close brace ends the variable substitution.
3390 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3391
3392 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3393
3394 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3395
3396  echo "$as_me:$LINENO: checking whether ln -s works" >&5
3397 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3398 LN_S=$as_ln_s
3399 if test "$LN_S" = "ln -s"; then
3400   echo "$as_me:$LINENO: result: yes" >&5
3401 echo "${ECHO_T}yes" >&6
3402 else
3403   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3404 echo "${ECHO_T}no, using $LN_S" >&6
3405 fi
3406
3407  # Check whether --enable-shared or --disable-shared was given.
3408 if test "${enable_shared+set}" = set; then
3409   enableval="$enable_shared"
3410   p=${PACKAGE-default}
3411     case $enableval in
3412     yes) enable_shared=yes ;;
3413     no) enable_shared=no ;;
3414     *)
3415       enable_shared=no
3416       # Look at the argument we got.  We use all the common list separators.
3417       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3418       for pkg in $enableval; do
3419         IFS="$lt_save_ifs"
3420         if test "X$pkg" = "X$p"; then
3421           enable_shared=yes
3422         fi
3423       done
3424       IFS="$lt_save_ifs"
3425       ;;
3426     esac
3427 else
3428   enable_shared=yes
3429 fi;
3430
3431 # Check whether --enable-static or --disable-static was given.
3432 if test "${enable_static+set}" = set; then
3433   enableval="$enable_static"
3434   p=${PACKAGE-default}
3435     case $enableval in
3436     yes) enable_static=yes ;;
3437     no) enable_static=no ;;
3438     *)
3439      enable_static=no
3440       # Look at the argument we got.  We use all the common list separators.
3441       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3442       for pkg in $enableval; do
3443         IFS="$lt_save_ifs"
3444         if test "X$pkg" = "X$p"; then
3445           enable_static=yes
3446         fi
3447       done
3448       IFS="$lt_save_ifs"
3449       ;;
3450     esac
3451 else
3452   enable_static=yes
3453 fi;
3454
3455 # Check whether --enable-fast-install or --disable-fast-install was given.
3456 if test "${enable_fast_install+set}" = set; then
3457   enableval="$enable_fast_install"
3458   p=${PACKAGE-default}
3459     case $enableval in
3460     yes) enable_fast_install=yes ;;
3461     no) enable_fast_install=no ;;
3462     *)
3463       enable_fast_install=no
3464       # Look at the argument we got.  We use all the common list separators.
3465       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3466       for pkg in $enableval; do
3467         IFS="$lt_save_ifs"
3468         if test "X$pkg" = "X$p"; then
3469           enable_fast_install=yes
3470         fi
3471       done
3472       IFS="$lt_save_ifs"
3473       ;;
3474     esac
3475 else
3476   enable_fast_install=yes
3477 fi;
3478
3479 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3480 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3481 if test "${lt_cv_path_SED+set}" = set; then
3482   echo $ECHO_N "(cached) $ECHO_C" >&6
3483 else
3484   # Loop through the user's path and test for sed and gsed.
3485 # Then use that list of sed's as ones to test for truncation.
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 for as_dir in $PATH
3488 do
3489   IFS=$as_save_IFS
3490   test -z "$as_dir" && as_dir=.
3491   for lt_ac_prog in sed gsed; do
3492     for ac_exec_ext in '' $ac_executable_extensions; do
3493       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3494         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3495       fi
3496     done
3497   done
3498 done
3499 lt_ac_max=0
3500 lt_ac_count=0
3501 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3502 # along with /bin/sed that truncates output.
3503 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3504   test ! -f $lt_ac_sed && break
3505   cat /dev/null > conftest.in
3506   lt_ac_count=0
3507   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3508   # Check for GNU sed and select it if it is found.
3509   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3510     lt_cv_path_SED=$lt_ac_sed
3511     break
3512   fi
3513   while true; do
3514     cat conftest.in conftest.in >conftest.tmp
3515     mv conftest.tmp conftest.in
3516     cp conftest.in conftest.nl
3517     echo >>conftest.nl
3518     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3519     cmp -s conftest.out conftest.nl || break
3520     # 10000 chars as input seems more than enough
3521     test $lt_ac_count -gt 10 && break
3522     lt_ac_count=`expr $lt_ac_count + 1`
3523     if test $lt_ac_count -gt $lt_ac_max; then
3524       lt_ac_max=$lt_ac_count
3525       lt_cv_path_SED=$lt_ac_sed
3526     fi
3527   done
3528 done
3529 SED=$lt_cv_path_SED
3530
3531 fi
3532
3533 echo "$as_me:$LINENO: result: $SED" >&5
3534 echo "${ECHO_T}$SED" >&6
3535
3536 echo "$as_me:$LINENO: checking for egrep" >&5
3537 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3538 if test "${ac_cv_prog_egrep+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3542     then ac_cv_prog_egrep='grep -E'
3543     else ac_cv_prog_egrep='egrep'
3544     fi
3545 fi
3546 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3547 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3548  EGREP=$ac_cv_prog_egrep
3549
3550
3551
3552 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3553 if test "${with_gnu_ld+set}" = set; then
3554   withval="$with_gnu_ld"
3555   test "$withval" = no || with_gnu_ld=yes
3556 else
3557   with_gnu_ld=no
3558 fi;
3559 ac_prog=ld
3560 if test "$GCC" = yes; then
3561   # Check if gcc -print-prog-name=ld gives a path.
3562   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3563 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3564   case $host in
3565   *-*-mingw*)
3566     # gcc leaves a trailing carriage return which upsets mingw
3567     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3568   *)
3569     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3570   esac
3571   case $ac_prog in
3572     # Accept absolute paths.
3573     [\\/]* | ?:[\\/]*)
3574       re_direlt='/[^/][^/]*/\.\./'
3575       # Canonicalize the pathname of ld
3576       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3577       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3578         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3579       done
3580       test -z "$LD" && LD="$ac_prog"
3581       ;;
3582   "")
3583     # If it fails, then pretend we aren't using GCC.
3584     ac_prog=ld
3585     ;;
3586   *)
3587     # If it is relative, then search for the first ld in PATH.
3588     with_gnu_ld=unknown
3589     ;;
3590   esac
3591 elif test "$with_gnu_ld" = yes; then
3592   echo "$as_me:$LINENO: checking for GNU ld" >&5
3593 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3594 else
3595   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3596 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3597 fi
3598 if test "${lt_cv_path_LD+set}" = set; then
3599   echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601   if test -z "$LD"; then
3602   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3603   for ac_dir in $PATH; do
3604     IFS="$lt_save_ifs"
3605     test -z "$ac_dir" && ac_dir=.
3606     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3607       lt_cv_path_LD="$ac_dir/$ac_prog"
3608       # Check to see if the program is GNU ld.  I'd rather use --version,
3609       # but apparently some GNU ld's only accept -v.
3610       # Break only if it was the GNU/non-GNU ld that we prefer.
3611       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3612       *GNU* | *'with BFD'*)
3613         test "$with_gnu_ld" != no && break
3614         ;;
3615       *)
3616         test "$with_gnu_ld" != yes && break
3617         ;;
3618       esac
3619     fi
3620   done
3621   IFS="$lt_save_ifs"
3622 else
3623   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3624 fi
3625 fi
3626
3627 LD="$lt_cv_path_LD"
3628 if test -n "$LD"; then
3629   echo "$as_me:$LINENO: result: $LD" >&5
3630 echo "${ECHO_T}$LD" >&6
3631 else
3632   echo "$as_me:$LINENO: result: no" >&5
3633 echo "${ECHO_T}no" >&6
3634 fi
3635 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3636 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3637    { (exit 1); exit 1; }; }
3638 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3639 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3640 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3641   echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3644 case `$LD -v 2>&1 </dev/null` in
3645 *GNU* | *'with BFD'*)
3646   lt_cv_prog_gnu_ld=yes
3647   ;;
3648 *)
3649   lt_cv_prog_gnu_ld=no
3650   ;;
3651 esac
3652 fi
3653 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3654 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3655 with_gnu_ld=$lt_cv_prog_gnu_ld
3656
3657
3658 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3659 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3660 if test "${lt_cv_ld_reload_flag+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   lt_cv_ld_reload_flag='-r'
3664 fi
3665 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3666 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3667 reload_flag=$lt_cv_ld_reload_flag
3668 case $reload_flag in
3669 "" | " "*) ;;
3670 *) reload_flag=" $reload_flag" ;;
3671 esac
3672 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3673
3674 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3675 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3676 if test "${lt_cv_path_NM+set}" = set; then
3677   echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679   if test -n "$NM"; then
3680   # Let the user override the test.
3681   lt_cv_path_NM="$NM"
3682 else
3683   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3684   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3685     IFS="$lt_save_ifs"
3686     test -z "$ac_dir" && ac_dir=.
3687     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3688     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3689       # Check to see if the nm accepts a BSD-compat flag.
3690       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3691       #   nm: unknown option "B" ignored
3692       # Tru64's nm complains that /dev/null is an invalid object file
3693       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3694       */dev/null* | *'Invalid file or object type'*)
3695         lt_cv_path_NM="$tmp_nm -B"
3696         break
3697         ;;
3698       *)
3699         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3700         */dev/null*)
3701           lt_cv_path_NM="$tmp_nm -p"
3702           break
3703           ;;
3704         *)
3705           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3706           continue # so that we can try to find one that supports BSD flags
3707           ;;
3708         esac
3709       esac
3710     fi
3711   done
3712   IFS="$lt_save_ifs"
3713   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3714 fi
3715 fi
3716 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3717 echo "${ECHO_T}$lt_cv_path_NM" >&6
3718 NM="$lt_cv_path_NM"
3719
3720 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3721 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3722 if test "${lt_cv_deplibs_check_method+set}" = set; then
3723   echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725   lt_cv_file_magic_cmd='$MAGIC_CMD'
3726 lt_cv_file_magic_test_file=
3727 lt_cv_deplibs_check_method='unknown'
3728 # Need to set the preceding variable on all platforms that support
3729 # interlibrary dependencies.
3730 # 'none' -- dependencies not supported.
3731 # `unknown' -- same as none, but documents that we really don't know.
3732 # 'pass_all' -- all dependencies passed with no checks.
3733 # 'test_compile' -- check by making test program.
3734 # 'file_magic [[regex]]' -- check by looking for files in library path
3735 # which responds to the $file_magic_cmd with a given extended regex.
3736 # If you have `file' or equivalent on your system and you're not sure
3737 # whether `pass_all' will *always* work, you probably want this one.
3738
3739 case $host_os in
3740 aix4* | aix5*)
3741   lt_cv_deplibs_check_method=pass_all
3742   ;;
3743
3744 beos*)
3745   lt_cv_deplibs_check_method=pass_all
3746   ;;
3747
3748 bsdi4*)
3749   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3750   lt_cv_file_magic_cmd='/usr/bin/file -L'
3751   lt_cv_file_magic_test_file=/shlib/libc.so
3752   ;;
3753
3754 cygwin*)
3755   # win32_libid is a shell function defined in ltmain.sh
3756   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3757   lt_cv_file_magic_cmd='win32_libid'
3758   ;;
3759
3760 mingw* | pw32*)
3761   # Base MSYS/MinGW do not provide the 'file' command needed by
3762   # win32_libid shell function, so use a weaker test based on 'objdump'.
3763   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3764   lt_cv_file_magic_cmd='$OBJDUMP -f'
3765   ;;
3766
3767 darwin* | rhapsody*)
3768   lt_cv_deplibs_check_method=pass_all
3769   ;;
3770
3771 freebsd* | kfreebsd*-gnu)
3772   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3773     case $host_cpu in
3774     i*86 )
3775       # Not sure whether the presence of OpenBSD here was a mistake.
3776       # Let's accept both of them until this is cleared up.
3777       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3778       lt_cv_file_magic_cmd=/usr/bin/file
3779       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3780       ;;
3781     esac
3782   else
3783     lt_cv_deplibs_check_method=pass_all
3784   fi
3785   ;;
3786
3787 gnu*)
3788   lt_cv_deplibs_check_method=pass_all
3789   ;;
3790
3791 hpux10.20* | hpux11*)
3792   lt_cv_file_magic_cmd=/usr/bin/file
3793   case "$host_cpu" in
3794   ia64*)
3795     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3796     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3797     ;;
3798   hppa*64*)
3799     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]'
3800     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3801     ;;
3802   *)
3803     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3804     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3805     ;;
3806   esac
3807   ;;
3808
3809 irix5* | irix6* | nonstopux*)
3810   case $LD in
3811   *-32|*"-32 ") libmagic=32-bit;;
3812   *-n32|*"-n32 ") libmagic=N32;;
3813   *-64|*"-64 ") libmagic=64-bit;;
3814   *) libmagic=never-match;;
3815   esac
3816   lt_cv_deplibs_check_method=pass_all
3817   ;;
3818
3819 # This must be Linux ELF.
3820 linux*)
3821   case $host_cpu in
3822   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3823     lt_cv_deplibs_check_method=pass_all ;;
3824   *)
3825     # glibc up to 2.1.1 does not perform some relocations on ARM
3826     # this will be overridden with pass_all, but let us keep it just in case
3827     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3828   esac
3829   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3830   lt_cv_deplibs_check_method=pass_all
3831   ;;
3832
3833 netbsd*)
3834   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3835     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3836   else
3837     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3838   fi
3839   ;;
3840
3841 newos6*)
3842   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3843   lt_cv_file_magic_cmd=/usr/bin/file
3844   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3845   ;;
3846
3847 nto-qnx*)
3848   lt_cv_deplibs_check_method=unknown
3849   ;;
3850
3851 openbsd*)
3852   lt_cv_file_magic_cmd=/usr/bin/file
3853   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3854   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3855     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3856   else
3857     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3858   fi
3859   ;;
3860
3861 osf3* | osf4* | osf5*)
3862   lt_cv_deplibs_check_method=pass_all
3863   ;;
3864
3865 sco3.2v5*)
3866   lt_cv_deplibs_check_method=pass_all
3867   ;;
3868
3869 solaris*)
3870   lt_cv_deplibs_check_method=pass_all
3871   ;;
3872
3873 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3874   case $host_vendor in
3875   motorola)
3876     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]'
3877     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3878     ;;
3879   ncr)
3880     lt_cv_deplibs_check_method=pass_all
3881     ;;
3882   sequent)
3883     lt_cv_file_magic_cmd='/bin/file'
3884     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3885     ;;
3886   sni)
3887     lt_cv_file_magic_cmd='/bin/file'
3888     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3889     lt_cv_file_magic_test_file=/lib/libc.so
3890     ;;
3891   siemens)
3892     lt_cv_deplibs_check_method=pass_all
3893     ;;
3894   esac
3895   ;;
3896
3897 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3898   lt_cv_deplibs_check_method=pass_all
3899   ;;
3900 esac
3901
3902 fi
3903 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3904 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3905 file_magic_cmd=$lt_cv_file_magic_cmd
3906 deplibs_check_method=$lt_cv_deplibs_check_method
3907 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3908
3909
3910
3911
3912 # If no C compiler was specified, use CC.
3913 LTCC=${LTCC-"$CC"}
3914
3915 # Allow CC to be a program name with arguments.
3916 compiler=$CC
3917
3918
3919 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3920 if test "${enable_libtool_lock+set}" = set; then
3921   enableval="$enable_libtool_lock"
3922
3923 fi;
3924 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3925
3926 # Some flags need to be propagated to the compiler or linker for good
3927 # libtool support.
3928 case $host in
3929 ia64-*-hpux*)
3930   # Find out which ABI we are using.
3931   echo 'int i;' > conftest.$ac_ext
3932   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3933   (eval $ac_compile) 2>&5
3934   ac_status=$?
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); }; then
3937     case `/usr/bin/file conftest.$ac_objext` in
3938     *ELF-32*)
3939       HPUX_IA64_MODE="32"
3940       ;;
3941     *ELF-64*)
3942       HPUX_IA64_MODE="64"
3943       ;;
3944     esac
3945   fi
3946   rm -rf conftest*
3947   ;;
3948 *-*-irix6*)
3949   # Find out which ABI we are using.
3950   echo '#line 3950 "configure"' > conftest.$ac_ext
3951   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952   (eval $ac_compile) 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); }; then
3956    if test "$lt_cv_prog_gnu_ld" = yes; then
3957     case `/usr/bin/file conftest.$ac_objext` in
3958     *32-bit*)
3959       LD="${LD-ld} -melf32bsmip"
3960       ;;
3961     *N32*)
3962       LD="${LD-ld} -melf32bmipn32"
3963       ;;
3964     *64-bit*)
3965       LD="${LD-ld} -melf64bmip"
3966       ;;
3967     esac
3968    else
3969     case `/usr/bin/file conftest.$ac_objext` in
3970     *32-bit*)
3971       LD="${LD-ld} -32"
3972       ;;
3973     *N32*)
3974       LD="${LD-ld} -n32"
3975       ;;
3976     *64-bit*)
3977       LD="${LD-ld} -64"
3978       ;;
3979     esac
3980    fi
3981   fi
3982   rm -rf conftest*
3983   ;;
3984
3985 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3986   # Find out which ABI we are using.
3987   echo 'int i;' > conftest.$ac_ext
3988   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3989   (eval $ac_compile) 2>&5
3990   ac_status=$?
3991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992   (exit $ac_status); }; then
3993     case "`/usr/bin/file conftest.o`" in
3994     *32-bit*)
3995       case $host in
3996         x86_64-*linux*)
3997           LD="${LD-ld} -m elf_i386"
3998           ;;
3999         ppc64-*linux*|powerpc64-*linux*)
4000           LD="${LD-ld} -m elf32ppclinux"
4001           ;;
4002         s390x-*linux*)
4003           LD="${LD-ld} -m elf_s390"
4004           ;;
4005         sparc64-*linux*)
4006           LD="${LD-ld} -m elf32_sparc"
4007           ;;
4008       esac
4009       ;;
4010     *64-bit*)
4011       case $host in
4012         x86_64-*linux*)
4013           LD="${LD-ld} -m elf_x86_64"
4014           ;;
4015         ppc*-*linux*|powerpc*-*linux*)
4016           LD="${LD-ld} -m elf64ppc"
4017           ;;
4018         s390*-*linux*)
4019           LD="${LD-ld} -m elf64_s390"
4020           ;;
4021         sparc*-*linux*)
4022           LD="${LD-ld} -m elf64_sparc"
4023           ;;
4024       esac
4025       ;;
4026     esac
4027   fi
4028   rm -rf conftest*
4029   ;;
4030
4031 *-*-linux*)
4032   # Test if the compiler is 64bit
4033   echo 'int i;' > conftest.$ac_ext
4034   lt_cv_cc_64bit_output=no
4035   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036   (eval $ac_compile) 2>&5
4037   ac_status=$?
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); }; then
4040     case `/usr/bin/file conftest.$ac_objext` in
4041     *"ELF 64"*)
4042       lt_cv_cc_64bit_output=yes
4043       ;;
4044     esac
4045   fi
4046   rm -rf conftest*
4047   ;;
4048
4049 *-*-sco3.2v5*)
4050   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4051   SAVE_CFLAGS="$CFLAGS"
4052   CFLAGS="$CFLAGS -belf"
4053   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4054 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4055 if test "${lt_cv_cc_needs_belf+set}" = set; then
4056   echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058   ac_ext=c
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063
4064      cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h.  */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h.  */
4070
4071 int
4072 main ()
4073 {
4074
4075   ;
4076   return 0;
4077 }
4078 _ACEOF
4079 rm -f conftest.$ac_objext conftest$ac_exeext
4080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4081   (eval $ac_link) 2>conftest.er1
4082   ac_status=$?
4083   grep -v '^ *+' conftest.er1 >conftest.err
4084   rm -f conftest.er1
4085   cat conftest.err >&5
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); } &&
4088          { ac_try='test -z "$ac_c_werror_flag"
4089                          || test ! -s conftest.err'
4090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091   (eval $ac_try) 2>&5
4092   ac_status=$?
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); }; } &&
4095          { ac_try='test -s conftest$ac_exeext'
4096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097   (eval $ac_try) 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }; }; then
4101   lt_cv_cc_needs_belf=yes
4102 else
4103   echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4105
4106 lt_cv_cc_needs_belf=no
4107 fi
4108 rm -f conftest.err conftest.$ac_objext \
4109       conftest$ac_exeext conftest.$ac_ext
4110      ac_ext=c
4111 ac_cpp='$CPP $CPPFLAGS'
4112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115
4116 fi
4117 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4118 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4119   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4120     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4121     CFLAGS="$SAVE_CFLAGS"
4122   fi
4123   ;;
4124
4125 esac
4126
4127 need_locks="$enable_libtool_lock"
4128
4129
4130
4131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4133 if test "${ac_cv_header_stdc+set}" = set; then
4134   echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136   cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h.  */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h.  */
4142 #include <stdlib.h>
4143 #include <stdarg.h>
4144 #include <string.h>
4145 #include <float.h>
4146
4147 int
4148 main ()
4149 {
4150
4151   ;
4152   return 0;
4153 }
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157   (eval $ac_compile) 2>conftest.er1
4158   ac_status=$?
4159   grep -v '^ *+' conftest.er1 >conftest.err
4160   rm -f conftest.er1
4161   cat conftest.err >&5
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); } &&
4164          { ac_try='test -z "$ac_c_werror_flag"
4165                          || test ! -s conftest.err'
4166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167   (eval $ac_try) 2>&5
4168   ac_status=$?
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); }; } &&
4171          { ac_try='test -s conftest.$ac_objext'
4172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173   (eval $ac_try) 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); }; }; then
4177   ac_cv_header_stdc=yes
4178 else
4179   echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182 ac_cv_header_stdc=no
4183 fi
4184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4185
4186 if test $ac_cv_header_stdc = yes; then
4187   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4188   cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h.  */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h.  */
4194 #include <string.h>
4195
4196 _ACEOF
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198   $EGREP "memchr" >/dev/null 2>&1; then
4199   :
4200 else
4201   ac_cv_header_stdc=no
4202 fi
4203 rm -f conftest*
4204
4205 fi
4206
4207 if test $ac_cv_header_stdc = yes; then
4208   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4209   cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h.  */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h.  */
4215 #include <stdlib.h>
4216
4217 _ACEOF
4218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4219   $EGREP "free" >/dev/null 2>&1; then
4220   :
4221 else
4222   ac_cv_header_stdc=no
4223 fi
4224 rm -f conftest*
4225
4226 fi
4227
4228 if test $ac_cv_header_stdc = yes; then
4229   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4230   if test "$cross_compiling" = yes; then
4231   :
4232 else
4233   cat >conftest.$ac_ext <<_ACEOF
4234 /* confdefs.h.  */
4235 _ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h.  */
4239 #include <ctype.h>
4240 #if ((' ' & 0x0FF) == 0x020)
4241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4243 #else
4244 # define ISLOWER(c) \
4245                    (('a' <= (c) && (c) <= 'i') \
4246                      || ('j' <= (c) && (c) <= 'r') \
4247                      || ('s' <= (c) && (c) <= 'z'))
4248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4249 #endif
4250
4251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4252 int
4253 main ()
4254 {
4255   int i;
4256   for (i = 0; i < 256; i++)
4257     if (XOR (islower (i), ISLOWER (i))
4258         || toupper (i) != TOUPPER (i))
4259       exit(2);
4260   exit (0);
4261 }
4262 _ACEOF
4263 rm -f conftest$ac_exeext
4264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4265   (eval $ac_link) 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270   (eval $ac_try) 2>&5
4271   ac_status=$?
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); }; }; then
4274   :
4275 else
4276   echo "$as_me: program exited with status $ac_status" >&5
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280 ( exit $ac_status )
4281 ac_cv_header_stdc=no
4282 fi
4283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4284 fi
4285 fi
4286 fi
4287 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4288 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4289 if test $ac_cv_header_stdc = yes; then
4290
4291 cat >>confdefs.h <<\_ACEOF
4292 #define STDC_HEADERS 1
4293 _ACEOF
4294
4295 fi
4296
4297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4308                   inttypes.h stdint.h unistd.h
4309 do
4310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4311 echo "$as_me:$LINENO: checking for $ac_header" >&5
4312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h.  */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h.  */
4322 $ac_includes_default
4323
4324 #include <$ac_header>
4325 _ACEOF
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328   (eval $ac_compile) 2>conftest.er1
4329   ac_status=$?
4330   grep -v '^ *+' conftest.er1 >conftest.err
4331   rm -f conftest.er1
4332   cat conftest.err >&5
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); } &&
4335          { ac_try='test -z "$ac_c_werror_flag"
4336                          || test ! -s conftest.err'
4337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338   (eval $ac_try) 2>&5
4339   ac_status=$?
4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); }; } &&
4342          { ac_try='test -s conftest.$ac_objext'
4343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344   (eval $ac_try) 2>&5
4345   ac_status=$?
4346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); }; }; then
4348   eval "$as_ac_Header=yes"
4349 else
4350   echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353 eval "$as_ac_Header=no"
4354 fi
4355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4360   cat >>confdefs.h <<_ACEOF
4361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4362 _ACEOF
4363
4364 fi
4365
4366 done
4367
4368
4369
4370 for ac_header in dlfcn.h
4371 do
4372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4374   echo "$as_me:$LINENO: checking for $ac_header" >&5
4375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 fi
4379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4381 else
4382   # Is the header compilable?
4383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4385 cat >conftest.$ac_ext <<_ACEOF
4386 /* confdefs.h.  */
4387 _ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h.  */
4391 $ac_includes_default
4392 #include <$ac_header>
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396   (eval $ac_compile) 2>conftest.er1
4397   ac_status=$?
4398   grep -v '^ *+' conftest.er1 >conftest.err
4399   rm -f conftest.er1
4400   cat conftest.err >&5
4401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402   (exit $ac_status); } &&
4403          { ac_try='test -z "$ac_c_werror_flag"
4404                          || test ! -s conftest.err'
4405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406   (eval $ac_try) 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); }; } &&
4410          { ac_try='test -s conftest.$ac_objext'
4411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412   (eval $ac_try) 2>&5
4413   ac_status=$?
4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415   (exit $ac_status); }; }; then
4416   ac_header_compiler=yes
4417 else
4418   echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4420
4421 ac_header_compiler=no
4422 fi
4423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4425 echo "${ECHO_T}$ac_header_compiler" >&6
4426
4427 # Is the header present?
4428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4430 cat >conftest.$ac_ext <<_ACEOF
4431 /* confdefs.h.  */
4432 _ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h.  */
4436 #include <$ac_header>
4437 _ACEOF
4438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4440   ac_status=$?
4441   grep -v '^ *+' conftest.er1 >conftest.err
4442   rm -f conftest.er1
4443   cat conftest.err >&5
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); } >/dev/null; then
4446   if test -s conftest.err; then
4447     ac_cpp_err=$ac_c_preproc_warn_flag
4448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4449   else
4450     ac_cpp_err=
4451   fi
4452 else
4453   ac_cpp_err=yes
4454 fi
4455 if test -z "$ac_cpp_err"; then
4456   ac_header_preproc=yes
4457 else
4458   echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4460
4461   ac_header_preproc=no
4462 fi
4463 rm -f conftest.err conftest.$ac_ext
4464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4465 echo "${ECHO_T}$ac_header_preproc" >&6
4466
4467 # So?  What about this header?
4468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4469   yes:no: )
4470     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4474     ac_header_preproc=yes
4475     ;;
4476   no:yes:* )
4477     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4479     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4480 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4481     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4483     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4484 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4487     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4489     (
4490       cat <<\_ASBOX
4491 ## ------------------------------------------ ##
4492 ## Report this to the AC_PACKAGE_NAME lists.  ##
4493 ## ------------------------------------------ ##
4494 _ASBOX
4495     ) |
4496       sed "s/^/$as_me: WARNING:     /" >&2
4497     ;;
4498 esac
4499 echo "$as_me:$LINENO: checking for $ac_header" >&5
4500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   eval "$as_ac_Header=\$ac_header_preproc"
4505 fi
4506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4508
4509 fi
4510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4511   cat >>confdefs.h <<_ACEOF
4512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4513 _ACEOF
4514
4515 fi
4516
4517 done
4518
4519 ac_ext=cc
4520 ac_cpp='$CXXCPP $CPPFLAGS'
4521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4524 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4525 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4526 if test -z "$CXXCPP"; then
4527   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4528   echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530       # Double quotes because CXXCPP needs to be expanded
4531     for CXXCPP in "$CXX -E" "/lib/cpp"
4532     do
4533       ac_preproc_ok=false
4534 for ac_cxx_preproc_warn_flag in '' yes
4535 do
4536   # Use a header file that comes with gcc, so configuring glibc
4537   # with a fresh cross-compiler works.
4538   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4539   # <limits.h> exists even on freestanding compilers.
4540   # On the NeXT, cc -E runs the code through the compiler's parser,
4541   # not just through cpp. "Syntax error" is here to catch this case.
4542   cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h.  */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h.  */
4548 #ifdef __STDC__
4549 # include <limits.h>
4550 #else
4551 # include <assert.h>
4552 #endif
4553                      Syntax error
4554 _ACEOF
4555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4556   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4557   ac_status=$?
4558   grep -v '^ *+' conftest.er1 >conftest.err
4559   rm -f conftest.er1
4560   cat conftest.err >&5
4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); } >/dev/null; then
4563   if test -s conftest.err; then
4564     ac_cpp_err=$ac_cxx_preproc_warn_flag
4565     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4566   else
4567     ac_cpp_err=
4568   fi
4569 else
4570   ac_cpp_err=yes
4571 fi
4572 if test -z "$ac_cpp_err"; then
4573   :
4574 else
4575   echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4577
4578   # Broken: fails on valid input.
4579 continue
4580 fi
4581 rm -f conftest.err conftest.$ac_ext
4582
4583   # OK, works on sane cases.  Now check whether non-existent headers
4584   # can be detected and how.
4585   cat >conftest.$ac_ext <<_ACEOF
4586 /* confdefs.h.  */
4587 _ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h.  */
4591 #include <ac_nonexistent.h>
4592 _ACEOF
4593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4594   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4595   ac_status=$?
4596   grep -v '^ *+' conftest.er1 >conftest.err
4597   rm -f conftest.er1
4598   cat conftest.err >&5
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); } >/dev/null; then
4601   if test -s conftest.err; then
4602     ac_cpp_err=$ac_cxx_preproc_warn_flag
4603     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4604   else
4605     ac_cpp_err=
4606   fi
4607 else
4608   ac_cpp_err=yes
4609 fi
4610 if test -z "$ac_cpp_err"; then
4611   # Broken: success on invalid input.
4612 continue
4613 else
4614   echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4616
4617   # Passes both tests.
4618 ac_preproc_ok=:
4619 break
4620 fi
4621 rm -f conftest.err conftest.$ac_ext
4622
4623 done
4624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4625 rm -f conftest.err conftest.$ac_ext
4626 if $ac_preproc_ok; then
4627   break
4628 fi
4629
4630     done
4631     ac_cv_prog_CXXCPP=$CXXCPP
4632
4633 fi
4634   CXXCPP=$ac_cv_prog_CXXCPP
4635 else
4636   ac_cv_prog_CXXCPP=$CXXCPP
4637 fi
4638 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4639 echo "${ECHO_T}$CXXCPP" >&6
4640 ac_preproc_ok=false
4641 for ac_cxx_preproc_warn_flag in '' yes
4642 do
4643   # Use a header file that comes with gcc, so configuring glibc
4644   # with a fresh cross-compiler works.
4645   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4646   # <limits.h> exists even on freestanding compilers.
4647   # On the NeXT, cc -E runs the code through the compiler's parser,
4648   # not just through cpp. "Syntax error" is here to catch this case.
4649   cat >conftest.$ac_ext <<_ACEOF
4650 /* confdefs.h.  */
4651 _ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h.  */
4655 #ifdef __STDC__
4656 # include <limits.h>
4657 #else
4658 # include <assert.h>
4659 #endif
4660                      Syntax error
4661 _ACEOF
4662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4663   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4664   ac_status=$?
4665   grep -v '^ *+' conftest.er1 >conftest.err
4666   rm -f conftest.er1
4667   cat conftest.err >&5
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); } >/dev/null; then
4670   if test -s conftest.err; then
4671     ac_cpp_err=$ac_cxx_preproc_warn_flag
4672     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4673   else
4674     ac_cpp_err=
4675   fi
4676 else
4677   ac_cpp_err=yes
4678 fi
4679 if test -z "$ac_cpp_err"; then
4680   :
4681 else
4682   echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4684
4685   # Broken: fails on valid input.
4686 continue
4687 fi
4688 rm -f conftest.err conftest.$ac_ext
4689
4690   # OK, works on sane cases.  Now check whether non-existent headers
4691   # can be detected and how.
4692   cat >conftest.$ac_ext <<_ACEOF
4693 /* confdefs.h.  */
4694 _ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h.  */
4698 #include <ac_nonexistent.h>
4699 _ACEOF
4700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4701   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4702   ac_status=$?
4703   grep -v '^ *+' conftest.er1 >conftest.err
4704   rm -f conftest.er1
4705   cat conftest.err >&5
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); } >/dev/null; then
4708   if test -s conftest.err; then
4709     ac_cpp_err=$ac_cxx_preproc_warn_flag
4710     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4711   else
4712     ac_cpp_err=
4713   fi
4714 else
4715   ac_cpp_err=yes
4716 fi
4717 if test -z "$ac_cpp_err"; then
4718   # Broken: success on invalid input.
4719 continue
4720 else
4721   echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4723
4724   # Passes both tests.
4725 ac_preproc_ok=:
4726 break
4727 fi
4728 rm -f conftest.err conftest.$ac_ext
4729
4730 done
4731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4732 rm -f conftest.err conftest.$ac_ext
4733 if $ac_preproc_ok; then
4734   :
4735 else
4736   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4737 See \`config.log' for more details." >&5
4738 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4739 See \`config.log' for more details." >&2;}
4740    { (exit 1); exit 1; }; }
4741 fi
4742
4743 ac_ext=cc
4744 ac_cpp='$CXXCPP $CPPFLAGS'
4745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4748
4749
4750 ac_ext=f
4751 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4752 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4754 if test -n "$ac_tool_prefix"; then
4755   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4756   do
4757     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4759 echo "$as_me:$LINENO: checking for $ac_word" >&5
4760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4761 if test "${ac_cv_prog_F77+set}" = set; then
4762   echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764   if test -n "$F77"; then
4765   ac_cv_prog_F77="$F77" # Let the user override the test.
4766 else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4769 do
4770   IFS=$as_save_IFS
4771   test -z "$as_dir" && as_dir=.
4772   for ac_exec_ext in '' $ac_executable_extensions; do
4773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4774     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4776     break 2
4777   fi
4778 done
4779 done
4780
4781 fi
4782 fi
4783 F77=$ac_cv_prog_F77
4784 if test -n "$F77"; then
4785   echo "$as_me:$LINENO: result: $F77" >&5
4786 echo "${ECHO_T}$F77" >&6
4787 else
4788   echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6
4790 fi
4791
4792     test -n "$F77" && break
4793   done
4794 fi
4795 if test -z "$F77"; then
4796   ac_ct_F77=$F77
4797   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4798 do
4799   # Extract the first word of "$ac_prog", so it can be a program name with args.
4800 set dummy $ac_prog; ac_word=$2
4801 echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4803 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4804   echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806   if test -n "$ac_ct_F77"; then
4807   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4808 else
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812   IFS=$as_save_IFS
4813   test -z "$as_dir" && as_dir=.
4814   for ac_exec_ext in '' $ac_executable_extensions; do
4815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816     ac_cv_prog_ac_ct_F77="$ac_prog"
4817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818     break 2
4819   fi
4820 done
4821 done
4822
4823 fi
4824 fi
4825 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4826 if test -n "$ac_ct_F77"; then
4827   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4828 echo "${ECHO_T}$ac_ct_F77" >&6
4829 else
4830   echo "$as_me:$LINENO: result: no" >&5
4831 echo "${ECHO_T}no" >&6
4832 fi
4833
4834   test -n "$ac_ct_F77" && break
4835 done
4836
4837   F77=$ac_ct_F77
4838 fi
4839
4840
4841 # Provide some information about the compiler.
4842 echo "$as_me:4842:" \
4843      "checking for Fortran 77 compiler version" >&5
4844 ac_compiler=`set X $ac_compile; echo $2`
4845 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4846   (eval $ac_compiler --version </dev/null >&5) 2>&5
4847   ac_status=$?
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); }
4850 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4851   (eval $ac_compiler -v </dev/null >&5) 2>&5
4852   ac_status=$?
4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854   (exit $ac_status); }
4855 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4856   (eval $ac_compiler -V </dev/null >&5) 2>&5
4857   ac_status=$?
4858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859   (exit $ac_status); }
4860 rm -f a.out
4861
4862 # If we don't use `.F' as extension, the preprocessor is not run on the
4863 # input file.  (Note that this only needs to work for GNU compilers.)
4864 ac_save_ext=$ac_ext
4865 ac_ext=F
4866 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4867 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4868 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4869   echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871   cat >conftest.$ac_ext <<_ACEOF
4872       program main
4873 #ifndef __GNUC__
4874        choke me
4875 #endif
4876
4877       end
4878 _ACEOF
4879 rm -f conftest.$ac_objext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881   (eval $ac_compile) 2>conftest.er1
4882   ac_status=$?
4883   grep -v '^ *+' conftest.er1 >conftest.err
4884   rm -f conftest.er1
4885   cat conftest.err >&5
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); } &&
4888          { ac_try='test -z "$ac_f77_werror_flag"
4889                          || test ! -s conftest.err'
4890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891   (eval $ac_try) 2>&5
4892   ac_status=$?
4893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894   (exit $ac_status); }; } &&
4895          { ac_try='test -s conftest.$ac_objext'
4896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897   (eval $ac_try) 2>&5
4898   ac_status=$?
4899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900   (exit $ac_status); }; }; then
4901   ac_compiler_gnu=yes
4902 else
4903   echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4905
4906 ac_compiler_gnu=no
4907 fi
4908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4909 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4910
4911 fi
4912 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4913 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4914 ac_ext=$ac_save_ext
4915 ac_test_FFLAGS=${FFLAGS+set}
4916 ac_save_FFLAGS=$FFLAGS
4917 FFLAGS=
4918 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4919 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4920 if test "${ac_cv_prog_f77_g+set}" = set; then
4921   echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923   FFLAGS=-g
4924 cat >conftest.$ac_ext <<_ACEOF
4925       program main
4926
4927       end
4928 _ACEOF
4929 rm -f conftest.$ac_objext
4930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4931   (eval $ac_compile) 2>conftest.er1
4932   ac_status=$?
4933   grep -v '^ *+' conftest.er1 >conftest.err
4934   rm -f conftest.er1
4935   cat conftest.err >&5
4936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937   (exit $ac_status); } &&
4938          { ac_try='test -z "$ac_f77_werror_flag"
4939                          || test ! -s conftest.err'
4940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941   (eval $ac_try) 2>&5
4942   ac_status=$?
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); }; } &&
4945          { ac_try='test -s conftest.$ac_objext'
4946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947   (eval $ac_try) 2>&5
4948   ac_status=$?
4949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950   (exit $ac_status); }; }; then
4951   ac_cv_prog_f77_g=yes
4952 else
4953   echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 ac_cv_prog_f77_g=no
4957 fi
4958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4959
4960 fi
4961 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4962 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4963 if test "$ac_test_FFLAGS" = set; then
4964   FFLAGS=$ac_save_FFLAGS
4965 elif test $ac_cv_prog_f77_g = yes; then
4966   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4967     FFLAGS="-g -O2"
4968   else
4969     FFLAGS="-g"
4970   fi
4971 else
4972   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4973     FFLAGS="-O2"
4974   else
4975     FFLAGS=
4976   fi
4977 fi
4978
4979 G77=`test $ac_compiler_gnu = yes && echo yes`
4980 ac_ext=c
4981 ac_cpp='$CPP $CPPFLAGS'
4982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4985
4986
4987
4988 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4989
4990 # find the maximum length of command line arguments
4991 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4992 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4993 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4994   echo $ECHO_N "(cached) $ECHO_C" >&6
4995 else
4996     i=0
4997   testring="ABCD"
4998
4999   case $build_os in
5000   msdosdjgpp*)
5001     # On DJGPP, this test can blow up pretty badly due to problems in libc
5002     # (any single argument exceeding 2000 bytes causes a buffer overrun
5003     # during glob expansion).  Even if it were fixed, the result of this
5004     # check would be larger than it should be.
5005     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5006     ;;
5007
5008   gnu*)
5009     # Under GNU Hurd, this test is not required because there is
5010     # no limit to the length of command line arguments.
5011     # Libtool will interpret -1 as no limit whatsoever
5012     lt_cv_sys_max_cmd_len=-1;
5013     ;;
5014
5015   cygwin* | mingw*)
5016     # On Win9x/ME, this test blows up -- it succeeds, but takes
5017     # about 5 minutes as the teststring grows exponentially.
5018     # Worse, since 9x/ME are not pre-emptively multitasking,
5019     # you end up with a "frozen" computer, even though with patience
5020     # the test eventually succeeds (with a max line length of 256k).
5021     # Instead, let's just punt: use the minimum linelength reported by
5022     # all of the supported platforms: 8192 (on NT/2K/XP).
5023     lt_cv_sys_max_cmd_len=8192;
5024     ;;
5025
5026   amigaos*)
5027     # On AmigaOS with pdksh, this test takes hours, literally.
5028     # So we just punt and use a minimum line length of 8192.
5029     lt_cv_sys_max_cmd_len=8192;
5030     ;;
5031
5032  *)
5033     # If test is not a shell built-in, we'll probably end up computing a
5034     # maximum length that is only half of the actual maximum length, but
5035     # we can't tell.
5036     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5037                = "XX$testring") >/dev/null 2>&1 &&
5038             new_result=`expr "X$testring" : ".*" 2>&1` &&
5039             lt_cv_sys_max_cmd_len=$new_result &&
5040             test $i != 17 # 1/2 MB should be enough
5041     do
5042       i=`expr $i + 1`
5043       testring=$testring$testring
5044     done
5045     testring=
5046     # Add a significant safety factor because C++ compilers can tack on massive
5047     # amounts of additional arguments before passing them to the linker.
5048     # It appears as though 1/2 is a usable value.
5049     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5050     ;;
5051   esac
5052
5053 fi
5054
5055 if test -n $lt_cv_sys_max_cmd_len ; then
5056   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5057 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5058 else
5059   echo "$as_me:$LINENO: result: none" >&5
5060 echo "${ECHO_T}none" >&6
5061 fi
5062
5063
5064
5065
5066 # Check for command to grab the raw symbol name followed by C symbol from nm.
5067 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5068 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5069 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5070   echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072
5073 # These are sane defaults that work on at least a few old systems.
5074 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5075
5076 # Character class describing NM global symbol codes.
5077 symcode='[BCDEGRST]'
5078
5079 # Regexp to match symbols that can be accessed directly from C.
5080 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5081
5082 # Transform the above into a raw symbol and a C symbol.
5083 symxfrm='\1 \2\3 \3'
5084
5085 # Transform an extracted symbol line into a proper C declaration
5086 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5087
5088 # Transform an extracted symbol line into symbol name and symbol address
5089 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'"
5090
5091 # Define system-specific variables.
5092 case $host_os in
5093 aix*)
5094   symcode='[BCDT]'
5095   ;;
5096 cygwin* | mingw* | pw32*)
5097   symcode='[ABCDGISTW]'
5098   ;;
5099 hpux*) # Its linker distinguishes data from code symbols
5100   if test "$host_cpu" = ia64; then
5101     symcode='[ABCDEGRST]'
5102   fi
5103   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5104   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'"
5105   ;;
5106 irix* | nonstopux*)
5107   symcode='[BCDEGRST]'
5108   ;;
5109 osf*)
5110   symcode='[BCDEGQRST]'
5111   ;;
5112 solaris* | sysv5*)
5113   symcode='[BDRT]'
5114   ;;
5115 sysv4)
5116   symcode='[DFNSTU]'
5117   ;;
5118 esac
5119
5120 # Handle CRLF in mingw tool chain
5121 opt_cr=
5122 case $build_os in
5123 mingw*)
5124   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5125   ;;
5126 esac
5127
5128 # If we're using GNU nm, then use its standard symbol codes.
5129 case `$NM -V 2>&1` in
5130 *GNU* | *'with BFD'*)
5131   symcode='[ABCDGIRSTW]' ;;
5132 esac
5133
5134 # Try without a prefix undercore, then with it.
5135 for ac_symprfx in "" "_"; do
5136
5137   # Write the raw and C identifiers.
5138   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5139
5140   # Check to see that the pipe works correctly.
5141   pipe_works=no
5142
5143   rm -f conftest*
5144   cat > conftest.$ac_ext <<EOF
5145 #ifdef __cplusplus
5146 extern "C" {
5147 #endif
5148 char nm_test_var;
5149 void nm_test_func(){}
5150 #ifdef __cplusplus
5151 }
5152 #endif
5153 int main(){nm_test_var='a';nm_test_func();return(0);}
5154 EOF
5155
5156   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157   (eval $ac_compile) 2>&5
5158   ac_status=$?
5159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160   (exit $ac_status); }; then
5161     # Now try to grab the symbols.
5162     nlist=conftest.nm
5163     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5164   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5165   ac_status=$?
5166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); } && test -s "$nlist"; then
5168       # Try sorting and uniquifying the output.
5169       if sort "$nlist" | uniq > "$nlist"T; then
5170         mv -f "$nlist"T "$nlist"
5171       else
5172         rm -f "$nlist"T
5173       fi
5174
5175       # Make sure that we snagged all the symbols we need.
5176       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5177         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5178           cat <<EOF > conftest.$ac_ext
5179 #ifdef __cplusplus
5180 extern "C" {
5181 #endif
5182
5183 EOF
5184           # Now generate the symbol file.
5185           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5186
5187           cat <<EOF >> conftest.$ac_ext
5188 #if defined (__STDC__) && __STDC__
5189 # define lt_ptr_t void *
5190 #else
5191 # define lt_ptr_t char *
5192 # define const
5193 #endif
5194
5195 /* The mapping between symbol names and symbols. */
5196 const struct {
5197   const char *name;
5198   lt_ptr_t address;
5199 }
5200 lt_preloaded_symbols[] =
5201 {
5202 EOF
5203           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5204           cat <<\EOF >> conftest.$ac_ext
5205   {0, (lt_ptr_t) 0}
5206 };
5207
5208 #ifdef __cplusplus
5209 }
5210 #endif
5211 EOF
5212           # Now try linking the two files.
5213           mv conftest.$ac_objext conftstm.$ac_objext
5214           lt_save_LIBS="$LIBS"
5215           lt_save_CFLAGS="$CFLAGS"
5216           LIBS="conftstm.$ac_objext"
5217           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5218           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5219   (eval $ac_link) 2>&5
5220   ac_status=$?
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5223             pipe_works=yes
5224           fi
5225           LIBS="$lt_save_LIBS"
5226           CFLAGS="$lt_save_CFLAGS"
5227         else
5228           echo "cannot find nm_test_func in $nlist" >&5
5229         fi
5230       else
5231         echo "cannot find nm_test_var in $nlist" >&5
5232       fi
5233     else
5234       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5235     fi
5236   else
5237     echo "$progname: failed program was:" >&5
5238     cat conftest.$ac_ext >&5
5239   fi
5240   rm -f conftest* conftst*
5241
5242   # Do not use the global_symbol_pipe unless it works.
5243   if test "$pipe_works" = yes; then
5244     break
5245   else
5246     lt_cv_sys_global_symbol_pipe=
5247   fi
5248 done
5249
5250 fi
5251
5252 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5253   lt_cv_sys_global_symbol_to_cdecl=
5254 fi
5255 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5256   echo "$as_me:$LINENO: result: failed" >&5
5257 echo "${ECHO_T}failed" >&6
5258 else
5259   echo "$as_me:$LINENO: result: ok" >&5
5260 echo "${ECHO_T}ok" >&6
5261 fi
5262
5263 echo "$as_me:$LINENO: checking for objdir" >&5
5264 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5265 if test "${lt_cv_objdir+set}" = set; then
5266   echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268   rm -f .libs 2>/dev/null
5269 mkdir .libs 2>/dev/null
5270 if test -d .libs; then
5271   lt_cv_objdir=.libs
5272 else
5273   # MS-DOS does not allow filenames that begin with a dot.
5274   lt_cv_objdir=_libs
5275 fi
5276 rmdir .libs 2>/dev/null
5277 fi
5278 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5279 echo "${ECHO_T}$lt_cv_objdir" >&6
5280 objdir=$lt_cv_objdir
5281
5282
5283
5284
5285
5286 case $host_os in
5287 aix3*)
5288   # AIX sometimes has problems with the GCC collect2 program.  For some
5289   # reason, if we set the COLLECT_NAMES environment variable, the problems
5290   # vanish in a puff of smoke.
5291   if test "X${COLLECT_NAMES+set}" != Xset; then
5292     COLLECT_NAMES=
5293     export COLLECT_NAMES
5294   fi
5295   ;;
5296 esac
5297
5298 # Sed substitution that helps us do robust quoting.  It backslashifies
5299 # metacharacters that are still active within double-quoted strings.
5300 Xsed='sed -e s/^X//'
5301 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5302
5303 # Same as above, but do not quote variable references.
5304 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5305
5306 # Sed substitution to delay expansion of an escaped shell variable in a
5307 # double_quote_subst'ed string.
5308 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5309
5310 # Sed substitution to avoid accidental globbing in evaled expressions
5311 no_glob_subst='s/\*/\\\*/g'
5312
5313 # Constants:
5314 rm="rm -f"
5315
5316 # Global variables:
5317 default_ofile=libtool
5318 can_build_shared=yes
5319
5320 # All known linkers require a `.a' archive for static linking (except M$VC,
5321 # which needs '.lib').
5322 libext=a
5323 ltmain="$ac_aux_dir/ltmain.sh"
5324 ofile="$default_ofile"
5325 with_gnu_ld="$lt_cv_prog_gnu_ld"
5326
5327 if test -n "$ac_tool_prefix"; then
5328   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5329 set dummy ${ac_tool_prefix}ar; ac_word=$2
5330 echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5332 if test "${ac_cv_prog_AR+set}" = set; then
5333   echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335   if test -n "$AR"; then
5336   ac_cv_prog_AR="$AR" # Let the user override the test.
5337 else
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5340 do
5341   IFS=$as_save_IFS
5342   test -z "$as_dir" && as_dir=.
5343   for ac_exec_ext in '' $ac_executable_extensions; do
5344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345     ac_cv_prog_AR="${ac_tool_prefix}ar"
5346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347     break 2
5348   fi
5349 done
5350 done
5351
5352 fi
5353 fi
5354 AR=$ac_cv_prog_AR
5355 if test -n "$AR"; then
5356   echo "$as_me:$LINENO: result: $AR" >&5
5357 echo "${ECHO_T}$AR" >&6
5358 else
5359   echo "$as_me:$LINENO: result: no" >&5
5360 echo "${ECHO_T}no" >&6
5361 fi
5362
5363 fi
5364 if test -z "$ac_cv_prog_AR"; then
5365   ac_ct_AR=$AR
5366   # Extract the first word of "ar", so it can be a program name with args.
5367 set dummy ar; ac_word=$2
5368 echo "$as_me:$LINENO: checking for $ac_word" >&5
5369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5370 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   if test -n "$ac_ct_AR"; then
5374   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5375 else
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5378 do
5379   IFS=$as_save_IFS
5380   test -z "$as_dir" && as_dir=.
5381   for ac_exec_ext in '' $ac_executable_extensions; do
5382   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383     ac_cv_prog_ac_ct_AR="ar"
5384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5385     break 2
5386   fi
5387 done
5388 done
5389
5390   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5391 fi
5392 fi
5393 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5394 if test -n "$ac_ct_AR"; then
5395   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5396 echo "${ECHO_T}$ac_ct_AR" >&6
5397 else
5398   echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6
5400 fi
5401
5402   AR=$ac_ct_AR
5403 else
5404   AR="$ac_cv_prog_AR"
5405 fi
5406
5407 if test -n "$ac_tool_prefix"; then
5408   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5409 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5410 echo "$as_me:$LINENO: checking for $ac_word" >&5
5411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5412 if test "${ac_cv_prog_RANLIB+set}" = set; then
5413   echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415   if test -n "$RANLIB"; then
5416   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5417 else
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5420 do
5421   IFS=$as_save_IFS
5422   test -z "$as_dir" && as_dir=.
5423   for ac_exec_ext in '' $ac_executable_extensions; do
5424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427     break 2
5428   fi
5429 done
5430 done
5431
5432 fi
5433 fi
5434 RANLIB=$ac_cv_prog_RANLIB
5435 if test -n "$RANLIB"; then
5436   echo "$as_me:$LINENO: result: $RANLIB" >&5
5437 echo "${ECHO_T}$RANLIB" >&6
5438 else
5439   echo "$as_me:$LINENO: result: no" >&5
5440 echo "${ECHO_T}no" >&6
5441 fi
5442
5443 fi
5444 if test -z "$ac_cv_prog_RANLIB"; then
5445   ac_ct_RANLIB=$RANLIB
5446   # Extract the first word of "ranlib", so it can be a program name with args.
5447 set dummy ranlib; ac_word=$2
5448 echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453   if test -n "$ac_ct_RANLIB"; then
5454   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5458 do
5459   IFS=$as_save_IFS
5460   test -z "$as_dir" && as_dir=.
5461   for ac_exec_ext in '' $ac_executable_extensions; do
5462   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463     ac_cv_prog_ac_ct_RANLIB="ranlib"
5464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5465     break 2
5466   fi
5467 done
5468 done
5469
5470   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5471 fi
5472 fi
5473 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5474 if test -n "$ac_ct_RANLIB"; then
5475   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5476 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5477 else
5478   echo "$as_me:$LINENO: result: no" >&5
5479 echo "${ECHO_T}no" >&6
5480 fi
5481
5482   RANLIB=$ac_ct_RANLIB
5483 else
5484   RANLIB="$ac_cv_prog_RANLIB"
5485 fi
5486
5487 if test -n "$ac_tool_prefix"; then
5488   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5489 set dummy ${ac_tool_prefix}strip; ac_word=$2
5490 echo "$as_me:$LINENO: checking for $ac_word" >&5
5491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5492 if test "${ac_cv_prog_STRIP+set}" = set; then
5493   echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495   if test -n "$STRIP"; then
5496   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5497 else
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5500 do
5501   IFS=$as_save_IFS
5502   test -z "$as_dir" && as_dir=.
5503   for ac_exec_ext in '' $ac_executable_extensions; do
5504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5507     break 2
5508   fi
5509 done
5510 done
5511
5512 fi
5513 fi
5514 STRIP=$ac_cv_prog_STRIP
5515 if test -n "$STRIP"; then
5516   echo "$as_me:$LINENO: result: $STRIP" >&5
5517 echo "${ECHO_T}$STRIP" >&6
5518 else
5519   echo "$as_me:$LINENO: result: no" >&5
5520 echo "${ECHO_T}no" >&6
5521 fi
5522
5523 fi
5524 if test -z "$ac_cv_prog_STRIP"; then
5525   ac_ct_STRIP=$STRIP
5526   # Extract the first word of "strip", so it can be a program name with args.
5527 set dummy strip; ac_word=$2
5528 echo "$as_me:$LINENO: checking for $ac_word" >&5
5529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5530 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5531   echo $ECHO_N "(cached) $ECHO_C" >&6
5532 else
5533   if test -n "$ac_ct_STRIP"; then
5534   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5535 else
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5538 do
5539   IFS=$as_save_IFS
5540   test -z "$as_dir" && as_dir=.
5541   for ac_exec_ext in '' $ac_executable_extensions; do
5542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543     ac_cv_prog_ac_ct_STRIP="strip"
5544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5545     break 2
5546   fi
5547 done
5548 done
5549
5550   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5551 fi
5552 fi
5553 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5554 if test -n "$ac_ct_STRIP"; then
5555   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5556 echo "${ECHO_T}$ac_ct_STRIP" >&6
5557 else
5558   echo "$as_me:$LINENO: result: no" >&5
5559 echo "${ECHO_T}no" >&6
5560 fi
5561
5562   STRIP=$ac_ct_STRIP
5563 else
5564   STRIP="$ac_cv_prog_STRIP"
5565 fi
5566
5567
5568 old_CC="$CC"
5569 old_CFLAGS="$CFLAGS"
5570
5571 # Set sane defaults for various variables
5572 test -z "$AR" && AR=ar
5573 test -z "$AR_FLAGS" && AR_FLAGS=cru
5574 test -z "$AS" && AS=as
5575 test -z "$CC" && CC=cc
5576 test -z "$LTCC" && LTCC=$CC
5577 test -z "$DLLTOOL" && DLLTOOL=dlltool
5578 test -z "$LD" && LD=ld
5579 test -z "$LN_S" && LN_S="ln -s"
5580 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5581 test -z "$NM" && NM=nm
5582 test -z "$SED" && SED=sed
5583 test -z "$OBJDUMP" && OBJDUMP=objdump
5584 test -z "$RANLIB" && RANLIB=:
5585 test -z "$STRIP" && STRIP=:
5586 test -z "$ac_objext" && ac_objext=o
5587
5588 # Determine commands to create old-style static archives.
5589 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5590 old_postinstall_cmds='chmod 644 $oldlib'
5591 old_postuninstall_cmds=
5592
5593 if test -n "$RANLIB"; then
5594   case $host_os in
5595   openbsd*)
5596     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5597     ;;
5598   *)
5599     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5600     ;;
5601   esac
5602   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5603 fi
5604
5605 # Only perform the check for file, if the check method requires it
5606 case $deplibs_check_method in
5607 file_magic*)
5608   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5609     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5610 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5611 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5612   echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614   case $MAGIC_CMD in
5615 [\\/*] |  ?:[\\/]*)
5616   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5617   ;;
5618 *)
5619   lt_save_MAGIC_CMD="$MAGIC_CMD"
5620   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5621   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5622   for ac_dir in $ac_dummy; do
5623     IFS="$lt_save_ifs"
5624     test -z "$ac_dir" && ac_dir=.
5625     if test -f $ac_dir/${ac_tool_prefix}file; then
5626       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5627       if test -n "$file_magic_test_file"; then
5628         case $deplibs_check_method in
5629         "file_magic "*)
5630           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5631           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5632           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5633             $EGREP "$file_magic_regex" > /dev/null; then
5634             :
5635           else
5636             cat <<EOF 1>&2
5637
5638 *** Warning: the command libtool uses to detect shared libraries,
5639 *** $file_magic_cmd, produces output that libtool cannot recognize.
5640 *** The result is that libtool may fail to recognize shared libraries
5641 *** as such.  This will affect the creation of libtool libraries that
5642 *** depend on shared libraries, but programs linked with such libtool
5643 *** libraries will work regardless of this problem.  Nevertheless, you
5644 *** may want to report the problem to your system manager and/or to
5645 *** bug-libtool@gnu.org
5646
5647 EOF
5648           fi ;;
5649         esac
5650       fi
5651       break
5652     fi
5653   done
5654   IFS="$lt_save_ifs"
5655   MAGIC_CMD="$lt_save_MAGIC_CMD"
5656   ;;
5657 esac
5658 fi
5659
5660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5661 if test -n "$MAGIC_CMD"; then
5662   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5663 echo "${ECHO_T}$MAGIC_CMD" >&6
5664 else
5665   echo "$as_me:$LINENO: result: no" >&5
5666 echo "${ECHO_T}no" >&6
5667 fi
5668
5669 if test -z "$lt_cv_path_MAGIC_CMD"; then
5670   if test -n "$ac_tool_prefix"; then
5671     echo "$as_me:$LINENO: checking for file" >&5
5672 echo $ECHO_N "checking for file... $ECHO_C" >&6
5673 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5674   echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676   case $MAGIC_CMD in
5677 [\\/*] |  ?:[\\/]*)
5678   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5679   ;;
5680 *)
5681   lt_save_MAGIC_CMD="$MAGIC_CMD"
5682   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5683   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5684   for ac_dir in $ac_dummy; do
5685     IFS="$lt_save_ifs"
5686     test -z "$ac_dir" && ac_dir=.
5687     if test -f $ac_dir/file; then
5688       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5689       if test -n "$file_magic_test_file"; then
5690         case $deplibs_check_method in
5691         "file_magic "*)
5692           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5693           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5694           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5695             $EGREP "$file_magic_regex" > /dev/null; then
5696             :
5697           else
5698             cat <<EOF 1>&2
5699
5700 *** Warning: the command libtool uses to detect shared libraries,
5701 *** $file_magic_cmd, produces output that libtool cannot recognize.
5702 *** The result is that libtool may fail to recognize shared libraries
5703 *** as such.  This will affect the creation of libtool libraries that
5704 *** depend on shared libraries, but programs linked with such libtool
5705 *** libraries will work regardless of this problem.  Nevertheless, you
5706 *** may want to report the problem to your system manager and/or to
5707 *** bug-libtool@gnu.org
5708
5709 EOF
5710           fi ;;
5711         esac
5712       fi
5713       break
5714     fi
5715   done
5716   IFS="$lt_save_ifs"
5717   MAGIC_CMD="$lt_save_MAGIC_CMD"
5718   ;;
5719 esac
5720 fi
5721
5722 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5723 if test -n "$MAGIC_CMD"; then
5724   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5725 echo "${ECHO_T}$MAGIC_CMD" >&6
5726 else
5727   echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6
5729 fi
5730
5731   else
5732     MAGIC_CMD=:
5733   fi
5734 fi
5735
5736   fi
5737   ;;
5738 esac
5739
5740 enable_dlopen=no
5741 enable_win32_dll=no
5742
5743 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5744 if test "${enable_libtool_lock+set}" = set; then
5745   enableval="$enable_libtool_lock"
5746
5747 fi;
5748 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5749
5750
5751 # Check whether --with-pic or --without-pic was given.
5752 if test "${with_pic+set}" = set; then
5753   withval="$with_pic"
5754   pic_mode="$withval"
5755 else
5756   pic_mode=default
5757 fi;
5758 test -z "$pic_mode" && pic_mode=default
5759
5760 # Use C for the default configuration in the libtool script
5761 tagname=
5762 lt_save_CC="$CC"
5763 ac_ext=c
5764 ac_cpp='$CPP $CPPFLAGS'
5765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5768
5769
5770 # Source file extension for C test sources.
5771 ac_ext=c
5772
5773 # Object file extension for compiled C test sources.
5774 objext=o
5775 objext=$objext
5776
5777 # Code to be used in simple compile tests
5778 lt_simple_compile_test_code="int some_variable = 0;\n"
5779
5780 # Code to be used in simple link tests
5781 lt_simple_link_test_code='int main(){return(0);}\n'
5782
5783
5784 # If no C compiler was specified, use CC.
5785 LTCC=${LTCC-"$CC"}
5786
5787 # Allow CC to be a program name with arguments.
5788 compiler=$CC
5789
5790
5791 #
5792 # Check for any special shared library compilation flags.
5793 #
5794 lt_prog_cc_shlib=
5795 if test "$GCC" = no; then
5796   case $host_os in
5797   sco3.2v5*)
5798     lt_prog_cc_shlib='-belf'
5799     ;;
5800   esac
5801 fi
5802 if test -n "$lt_prog_cc_shlib"; then
5803   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5804 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5805   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5806   else
5807     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5808 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5809     lt_cv_prog_cc_can_build_shared=no
5810   fi
5811 fi
5812
5813
5814 #
5815 # Check to make sure the static flag actually works.
5816 #
5817 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5818 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5819 if test "${lt_prog_compiler_static_works+set}" = set; then
5820   echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822   lt_prog_compiler_static_works=no
5823    save_LDFLAGS="$LDFLAGS"
5824    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5825    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5826    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5827      # The compiler can only warn and ignore the option if not recognized
5828      # So say no if there are warnings
5829      if test -s conftest.err; then
5830        # Append any errors to the config.log.
5831        cat conftest.err 1>&5
5832      else
5833        lt_prog_compiler_static_works=yes
5834      fi
5835    fi
5836    $rm conftest*
5837    LDFLAGS="$save_LDFLAGS"
5838
5839 fi
5840 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5841 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5842
5843 if test x"$lt_prog_compiler_static_works" = xyes; then
5844     :
5845 else
5846     lt_prog_compiler_static=
5847 fi
5848
5849
5850
5851
5852 lt_prog_compiler_no_builtin_flag=
5853
5854 if test "$GCC" = yes; then
5855   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5856
5857
5858 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5859 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5860 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5861   echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863   lt_cv_prog_compiler_rtti_exceptions=no
5864   ac_outfile=conftest.$ac_objext
5865    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5866    lt_compiler_flag="-fno-rtti -fno-exceptions"
5867    # Insert the option either (1) after the last *FLAGS variable, or
5868    # (2) before a word containing "conftest.", or (3) at the end.
5869    # Note that $ac_compile itself does not contain backslashes and begins
5870    # with a dollar sign (not a hyphen), so the echo should work correctly.
5871    # The option is referenced via a variable to avoid confusing sed.
5872    lt_compile=`echo "$ac_compile" | $SED \
5873    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5874    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5875    -e 's:$: $lt_compiler_flag:'`
5876    (eval echo "\"\$as_me:5876: $lt_compile\"" >&5)
5877    (eval "$lt_compile" 2>conftest.err)
5878    ac_status=$?
5879    cat conftest.err >&5
5880    echo "$as_me:5880: \$? = $ac_status" >&5
5881    if (exit $ac_status) && test -s "$ac_outfile"; then
5882      # The compiler can only warn and ignore the option if not recognized
5883      # So say no if there are warnings
5884      if test ! -s conftest.err; then
5885        lt_cv_prog_compiler_rtti_exceptions=yes
5886      fi
5887    fi
5888    $rm conftest*
5889
5890 fi
5891 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5892 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5893
5894 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5895     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5896 else
5897     :
5898 fi
5899
5900 fi
5901
5902 lt_prog_compiler_wl=
5903 lt_prog_compiler_pic=
5904 lt_prog_compiler_static=
5905
5906 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5907 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5908
5909   if test "$GCC" = yes; then
5910     lt_prog_compiler_wl='-Wl,'
5911     lt_prog_compiler_static='-static'
5912
5913     case $host_os in
5914       aix*)
5915       # All AIX code is PIC.
5916       if test "$host_cpu" = ia64; then
5917         # AIX 5 now supports IA64 processor
5918         lt_prog_compiler_static='-Bstatic'
5919       fi
5920       ;;
5921
5922     amigaos*)
5923       # FIXME: we need at least 68020 code to build shared libraries, but
5924       # adding the `-m68020' flag to GCC prevents building anything better,
5925       # like `-m68040'.
5926       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5927       ;;
5928
5929     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5930       # PIC is the default for these OSes.
5931       ;;
5932
5933     mingw* | pw32* | os2*)
5934       # This hack is so that the source file can tell whether it is being
5935       # built for inclusion in a dll (and should export symbols for example).
5936       lt_prog_compiler_pic='-DDLL_EXPORT'
5937       ;;
5938
5939     darwin* | rhapsody*)
5940       # PIC is the default on this platform
5941       # Common symbols not allowed in MH_DYLIB files
5942       lt_prog_compiler_pic='-fno-common'
5943       ;;
5944
5945     msdosdjgpp*)
5946       # Just because we use GCC doesn't mean we suddenly get shared libraries
5947       # on systems that don't support them.
5948       lt_prog_compiler_can_build_shared=no
5949       enable_shared=no
5950       ;;
5951
5952     sysv4*MP*)
5953       if test -d /usr/nec; then
5954         lt_prog_compiler_pic=-Kconform_pic
5955       fi
5956       ;;
5957
5958     hpux*)
5959       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5960       # not for PA HP-UX.
5961       case "$host_cpu" in
5962       hppa*64*|ia64*)
5963         # +Z the default
5964         ;;
5965       *)
5966         lt_prog_compiler_pic='-fPIC'
5967         ;;
5968       esac
5969       ;;
5970
5971     *)
5972       lt_prog_compiler_pic='-fPIC'
5973       ;;
5974     esac
5975   else
5976     # PORTME Check for flag to pass linker flags through the system compiler.
5977     case $host_os in
5978     aix*)
5979       lt_prog_compiler_wl='-Wl,'
5980       if test "$host_cpu" = ia64; then
5981         # AIX 5 now supports IA64 processor
5982         lt_prog_compiler_static='-Bstatic'
5983       else
5984         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5985       fi
5986       ;;
5987
5988     mingw* | pw32* | os2*)
5989       # This hack is so that the source file can tell whether it is being
5990       # built for inclusion in a dll (and should export symbols for example).
5991       lt_prog_compiler_pic='-DDLL_EXPORT'
5992       ;;
5993
5994     hpux9* | hpux10* | hpux11*)
5995       lt_prog_compiler_wl='-Wl,'
5996       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5997       # not for PA HP-UX.
5998       case "$host_cpu" in
5999       hppa*64*|ia64*)
6000         # +Z the default
6001         ;;
6002       *)
6003         lt_prog_compiler_pic='+Z'
6004         ;;
6005       esac
6006       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6007       lt_prog_compiler_static='${wl}-a ${wl}archive'
6008       ;;
6009
6010     irix5* | irix6* | nonstopux*)
6011       lt_prog_compiler_wl='-Wl,'
6012       # PIC (with -KPIC) is the default.
6013       lt_prog_compiler_static='-non_shared'
6014       ;;
6015
6016     newsos6)
6017       lt_prog_compiler_pic='-KPIC'
6018       lt_prog_compiler_static='-Bstatic'
6019       ;;
6020
6021     linux*)
6022       case $CC in
6023       icc* | ecc*)
6024         lt_prog_compiler_wl='-Wl,'
6025         lt_prog_compiler_pic='-KPIC'
6026         lt_prog_compiler_static='-static'
6027         ;;
6028       ccc*)
6029         lt_prog_compiler_wl='-Wl,'
6030         # All Alpha code is PIC.
6031         lt_prog_compiler_static='-non_shared'
6032         ;;
6033       esac
6034       ;;
6035
6036     osf3* | osf4* | osf5*)
6037       lt_prog_compiler_wl='-Wl,'
6038       # All OSF/1 code is PIC.
6039       lt_prog_compiler_static='-non_shared'
6040       ;;
6041
6042     sco3.2v5*)
6043       lt_prog_compiler_pic='-Kpic'
6044       lt_prog_compiler_static='-dn'
6045       ;;
6046
6047     solaris*)
6048       lt_prog_compiler_wl='-Wl,'
6049       lt_prog_compiler_pic='-KPIC'
6050       lt_prog_compiler_static='-Bstatic'
6051       ;;
6052
6053     sunos4*)
6054       lt_prog_compiler_wl='-Qoption ld '
6055       lt_prog_compiler_pic='-PIC'
6056       lt_prog_compiler_static='-Bstatic'
6057       ;;
6058
6059     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6060       lt_prog_compiler_wl='-Wl,'
6061       lt_prog_compiler_pic='-KPIC'
6062       lt_prog_compiler_static='-Bstatic'
6063       ;;
6064
6065     sysv4*MP*)
6066       if test -d /usr/nec ;then
6067         lt_prog_compiler_pic='-Kconform_pic'
6068         lt_prog_compiler_static='-Bstatic'
6069       fi
6070       ;;
6071
6072     uts4*)
6073       lt_prog_compiler_pic='-pic'
6074       lt_prog_compiler_static='-Bstatic'
6075       ;;
6076
6077     *)
6078       lt_prog_compiler_can_build_shared=no
6079       ;;
6080     esac
6081   fi
6082
6083 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6084 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6085
6086 #
6087 # Check to make sure the PIC flag actually works.
6088 #
6089 if test -n "$lt_prog_compiler_pic"; then
6090
6091 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6092 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6093 if test "${lt_prog_compiler_pic_works+set}" = set; then
6094   echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096   lt_prog_compiler_pic_works=no
6097   ac_outfile=conftest.$ac_objext
6098    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6099    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6100    # Insert the option either (1) after the last *FLAGS variable, or
6101    # (2) before a word containing "conftest.", or (3) at the end.
6102    # Note that $ac_compile itself does not contain backslashes and begins
6103    # with a dollar sign (not a hyphen), so the echo should work correctly.
6104    # The option is referenced via a variable to avoid confusing sed.
6105    lt_compile=`echo "$ac_compile" | $SED \
6106    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6107    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6108    -e 's:$: $lt_compiler_flag:'`
6109    (eval echo "\"\$as_me:6109: $lt_compile\"" >&5)
6110    (eval "$lt_compile" 2>conftest.err)
6111    ac_status=$?
6112    cat conftest.err >&5
6113    echo "$as_me:6113: \$? = $ac_status" >&5
6114    if (exit $ac_status) && test -s "$ac_outfile"; then
6115      # The compiler can only warn and ignore the option if not recognized
6116      # So say no if there are warnings
6117      if test ! -s conftest.err; then
6118        lt_prog_compiler_pic_works=yes
6119      fi
6120    fi
6121    $rm conftest*
6122
6123 fi
6124 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6125 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6126
6127 if test x"$lt_prog_compiler_pic_works" = xyes; then
6128     case $lt_prog_compiler_pic in
6129      "" | " "*) ;;
6130      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6131      esac
6132 else
6133     lt_prog_compiler_pic=
6134      lt_prog_compiler_can_build_shared=no
6135 fi
6136
6137 fi
6138 case "$host_os" in
6139   # For platforms which do not support PIC, -DPIC is meaningless:
6140   *djgpp*)
6141     lt_prog_compiler_pic=
6142     ;;
6143   *)
6144     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6145     ;;
6146 esac
6147
6148 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6149 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6150 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   lt_cv_prog_compiler_c_o=no
6154    $rm -r conftest 2>/dev/null
6155    mkdir conftest
6156    cd conftest
6157    mkdir out
6158    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6159
6160    lt_compiler_flag="-o out/conftest2.$ac_objext"
6161    # Insert the option either (1) after the last *FLAGS variable, or
6162    # (2) before a word containing "conftest.", or (3) at the end.
6163    # Note that $ac_compile itself does not contain backslashes and begins
6164    # with a dollar sign (not a hyphen), so the echo should work correctly.
6165    lt_compile=`echo "$ac_compile" | $SED \
6166    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6167    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6168    -e 's:$: $lt_compiler_flag:'`
6169    (eval echo "\"\$as_me:6169: $lt_compile\"" >&5)
6170    (eval "$lt_compile" 2>out/conftest.err)
6171    ac_status=$?
6172    cat out/conftest.err >&5
6173    echo "$as_me:6173: \$? = $ac_status" >&5
6174    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6175    then
6176      # The compiler can only warn and ignore the option if not recognized
6177      # So say no if there are warnings
6178      if test ! -s out/conftest.err; then
6179        lt_cv_prog_compiler_c_o=yes
6180      fi
6181    fi
6182    chmod u+w .
6183    $rm conftest*
6184    # SGI C++ compiler will create directory out/ii_files/ for
6185    # template instantiation
6186    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6187    $rm out/* && rmdir out
6188    cd ..
6189    rmdir conftest
6190    $rm conftest*
6191
6192 fi
6193 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6194 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6195
6196
6197 hard_links="nottested"
6198 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6199   # do not overwrite the value of need_locks provided by the user
6200   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6201 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6202   hard_links=yes
6203   $rm conftest*
6204   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6205   touch conftest.a
6206   ln conftest.a conftest.b 2>&5 || hard_links=no
6207   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6208   echo "$as_me:$LINENO: result: $hard_links" >&5
6209 echo "${ECHO_T}$hard_links" >&6
6210   if test "$hard_links" = no; then
6211     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6212 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6213     need_locks=warn
6214   fi
6215 else
6216   need_locks=no
6217 fi
6218
6219 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6220 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6221
6222   runpath_var=
6223   allow_undefined_flag=
6224   enable_shared_with_static_runtimes=no
6225   archive_cmds=
6226   archive_expsym_cmds=
6227   old_archive_From_new_cmds=
6228   old_archive_from_expsyms_cmds=
6229   export_dynamic_flag_spec=
6230   whole_archive_flag_spec=
6231   thread_safe_flag_spec=
6232   hardcode_libdir_flag_spec=
6233   hardcode_libdir_flag_spec_ld=
6234   hardcode_libdir_separator=
6235   hardcode_direct=no
6236   hardcode_minus_L=no
6237   hardcode_shlibpath_var=unsupported
6238   link_all_deplibs=unknown
6239   hardcode_automatic=no
6240   module_cmds=
6241   module_expsym_cmds=
6242   always_export_symbols=no
6243   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6244   # include_expsyms should be a list of space-separated symbols to be *always*
6245   # included in the symbol list
6246   include_expsyms=
6247   # exclude_expsyms can be an extended regexp of symbols to exclude
6248   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6249   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6250   # as well as any symbol that contains `d'.
6251   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6252   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6253   # platforms (ab)use it in PIC code, but their linkers get confused if
6254   # the symbol is explicitly referenced.  Since portable code cannot
6255   # rely on this symbol name, it's probably fine to never include it in
6256   # preloaded symbol tables.
6257   extract_expsyms_cmds=
6258
6259   case $host_os in
6260   cygwin* | mingw* | pw32*)
6261     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6262     # When not using gcc, we currently assume that we are using
6263     # Microsoft Visual C++.
6264     if test "$GCC" != yes; then
6265       with_gnu_ld=no
6266     fi
6267     ;;
6268   openbsd*)
6269     with_gnu_ld=no
6270     ;;
6271   esac
6272
6273   ld_shlibs=yes
6274   if test "$with_gnu_ld" = yes; then
6275     # If archive_cmds runs LD, not CC, wlarc should be empty
6276     wlarc='${wl}'
6277
6278     # See if GNU ld supports shared libraries.
6279     case $host_os in
6280     aix3* | aix4* | aix5*)
6281       # On AIX/PPC, the GNU linker is very broken
6282       if test "$host_cpu" != ia64; then
6283         ld_shlibs=no
6284         cat <<EOF 1>&2
6285
6286 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6287 *** to be unable to reliably create shared libraries on AIX.
6288 *** Therefore, libtool is disabling shared libraries support.  If you
6289 *** really care for shared libraries, you may want to modify your PATH
6290 *** so that a non-GNU linker is found, and then restart.
6291
6292 EOF
6293       fi
6294       ;;
6295
6296     amigaos*)
6297       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)'
6298       hardcode_libdir_flag_spec='-L$libdir'
6299       hardcode_minus_L=yes
6300
6301       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6302       # that the semantics of dynamic libraries on AmigaOS, at least up
6303       # to version 4, is to share data among multiple programs linked
6304       # with the same dynamic library.  Since this doesn't match the
6305       # behavior of shared libraries on other platforms, we can't use
6306       # them.
6307       ld_shlibs=no
6308       ;;
6309
6310     beos*)
6311       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6312         allow_undefined_flag=unsupported
6313         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6314         # support --undefined.  This deserves some investigation.  FIXME
6315         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6316       else
6317         ld_shlibs=no
6318       fi
6319       ;;
6320
6321     cygwin* | mingw* | pw32*)
6322       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6323       # as there is no search path for DLLs.
6324       hardcode_libdir_flag_spec='-L$libdir'
6325       allow_undefined_flag=unsupported
6326       always_export_symbols=no
6327       enable_shared_with_static_runtimes=yes
6328       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6329
6330       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6331         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6332         # If the export-symbols file already is a .def file (1st line
6333         # is EXPORTS), use it as is; otherwise, prepend...
6334         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6335           cp $export_symbols $output_objdir/$soname.def;
6336         else
6337           echo EXPORTS > $output_objdir/$soname.def;
6338           cat $export_symbols >> $output_objdir/$soname.def;
6339         fi~
6340         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6341       else
6342         ld_shlibs=no
6343       fi
6344       ;;
6345
6346     netbsd*)
6347       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6348         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6349         wlarc=
6350       else
6351         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6352         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6353       fi
6354       ;;
6355
6356     solaris* | sysv5*)
6357       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6358         ld_shlibs=no
6359         cat <<EOF 1>&2
6360
6361 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6362 *** create shared libraries on Solaris systems.  Therefore, libtool
6363 *** is disabling shared libraries support.  We urge you to upgrade GNU
6364 *** binutils to release 2.9.1 or newer.  Another option is to modify
6365 *** your PATH or compiler configuration so that the native linker is
6366 *** used, and then restart.
6367
6368 EOF
6369       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6370         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6371         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6372       else
6373         ld_shlibs=no
6374       fi
6375       ;;
6376
6377     sunos4*)
6378       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6379       wlarc=
6380       hardcode_direct=yes
6381       hardcode_shlibpath_var=no
6382       ;;
6383
6384   linux*)
6385     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6386         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6387         archive_cmds="$tmp_archive_cmds"
6388       supports_anon_versioning=no
6389       case `$LD -v 2>/dev/null` in
6390         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6391         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6392         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6393         *\ 2.11.*) ;; # other 2.11 versions
6394         *) supports_anon_versioning=yes ;;
6395       esac
6396       if test $supports_anon_versioning = yes; then
6397         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6398 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6399 $echo "local: *; };" >> $output_objdir/$libname.ver~
6400         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6401       else
6402         archive_expsym_cmds="$tmp_archive_cmds"
6403       fi
6404     else
6405       ld_shlibs=no
6406     fi
6407     ;;
6408
6409     *)
6410       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6411         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6412         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6413       else
6414         ld_shlibs=no
6415       fi
6416       ;;
6417     esac
6418
6419     if test "$ld_shlibs" = yes; then
6420       runpath_var=LD_RUN_PATH
6421       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6422       export_dynamic_flag_spec='${wl}--export-dynamic'
6423       # ancient GNU ld didn't support --whole-archive et. al.
6424       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6425         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6426       else
6427         whole_archive_flag_spec=
6428       fi
6429     fi
6430   else
6431     # PORTME fill in a description of your system's linker (not GNU ld)
6432     case $host_os in
6433     aix3*)
6434       allow_undefined_flag=unsupported
6435       always_export_symbols=yes
6436       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'
6437       # Note: this linker hardcodes the directories in LIBPATH if there
6438       # are no directories specified by -L.
6439       hardcode_minus_L=yes
6440       if test "$GCC" = yes && test -z "$link_static_flag"; then
6441         # Neither direct hardcoding nor static linking is supported with a
6442         # broken collect2.
6443         hardcode_direct=unsupported
6444       fi
6445       ;;
6446
6447     aix4* | aix5*)
6448       if test "$host_cpu" = ia64; then
6449         # On IA64, the linker does run time linking by default, so we don't
6450         # have to do anything special.
6451         aix_use_runtimelinking=no
6452         exp_sym_flag='-Bexport'
6453         no_entry_flag=""
6454       else
6455         # If we're using GNU nm, then we don't want the "-C" option.
6456         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6457         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6458           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'
6459         else
6460           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'
6461         fi
6462         aix_use_runtimelinking=no
6463
6464         # Test if we are trying to use run time linking or normal
6465         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6466         # need to do runtime linking.
6467         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6468           for ld_flag in $LDFLAGS; do
6469           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6470             aix_use_runtimelinking=yes
6471             break
6472           fi
6473           done
6474         esac
6475
6476         exp_sym_flag='-bexport'
6477         no_entry_flag='-bnoentry'
6478       fi
6479
6480       # When large executables or shared objects are built, AIX ld can
6481       # have problems creating the table of contents.  If linking a library
6482       # or program results in "error TOC overflow" add -mminimal-toc to
6483       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6484       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6485
6486       archive_cmds=''
6487       hardcode_direct=yes
6488       hardcode_libdir_separator=':'
6489       link_all_deplibs=yes
6490
6491       if test "$GCC" = yes; then
6492         case $host_os in aix4.012|aix4.012.*)
6493         # We only want to do this on AIX 4.2 and lower, the check
6494         # below for broken collect2 doesn't work under 4.3+
6495           collect2name=`${CC} -print-prog-name=collect2`
6496           if test -f "$collect2name" && \
6497            strings "$collect2name" | grep resolve_lib_name >/dev/null
6498           then
6499           # We have reworked collect2
6500           hardcode_direct=yes
6501           else
6502           # We have old collect2
6503           hardcode_direct=unsupported
6504           # It fails to find uninstalled libraries when the uninstalled
6505           # path is not listed in the libpath.  Setting hardcode_minus_L
6506           # to unsupported forces relinking
6507           hardcode_minus_L=yes
6508           hardcode_libdir_flag_spec='-L$libdir'
6509           hardcode_libdir_separator=
6510           fi
6511         esac
6512         shared_flag='-shared'
6513       else
6514         # not using gcc
6515         if test "$host_cpu" = ia64; then
6516         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6517         # chokes on -Wl,-G. The following line is correct:
6518           shared_flag='-G'
6519         else
6520         if test "$aix_use_runtimelinking" = yes; then
6521             shared_flag='${wl}-G'
6522           else
6523             shared_flag='${wl}-bM:SRE'
6524         fi
6525         fi
6526       fi
6527
6528       # It seems that -bexpall does not export symbols beginning with
6529       # underscore (_), so it is better to generate a list of symbols to export.
6530       always_export_symbols=yes
6531       if test "$aix_use_runtimelinking" = yes; then
6532         # Warning - without using the other runtime loading flags (-brtl),
6533         # -berok will link without error, but may produce a broken library.
6534         allow_undefined_flag='-berok'
6535        # Determine the default libpath from the value encoded in an empty executable.
6536        cat >conftest.$ac_ext <<_ACEOF
6537 /* confdefs.h.  */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h.  */
6542
6543 int
6544 main ()
6545 {
6546
6547   ;
6548   return 0;
6549 }
6550 _ACEOF
6551 rm -f conftest.$ac_objext conftest$ac_exeext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6553   (eval $ac_link) 2>conftest.er1
6554   ac_status=$?
6555   grep -v '^ *+' conftest.er1 >conftest.err
6556   rm -f conftest.er1
6557   cat conftest.err >&5
6558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559   (exit $ac_status); } &&
6560          { ac_try='test -z "$ac_c_werror_flag"
6561                          || test ! -s conftest.err'
6562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563   (eval $ac_try) 2>&5
6564   ac_status=$?
6565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566   (exit $ac_status); }; } &&
6567          { ac_try='test -s conftest$ac_exeext'
6568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569   (eval $ac_try) 2>&5
6570   ac_status=$?
6571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572   (exit $ac_status); }; }; then
6573
6574 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6575 }'`
6576 # Check for a 64-bit object if we didn't find anything.
6577 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; }
6578 }'`; fi
6579 else
6580   echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6582
6583 fi
6584 rm -f conftest.err conftest.$ac_objext \
6585       conftest$ac_exeext conftest.$ac_ext
6586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6587
6588        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6589         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"
6590        else
6591         if test "$host_cpu" = ia64; then
6592           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6593           allow_undefined_flag="-z nodefs"
6594           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"
6595         else
6596          # Determine the default libpath from the value encoded in an empty executable.
6597          cat >conftest.$ac_ext <<_ACEOF
6598 /* confdefs.h.  */
6599 _ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h.  */
6603
6604 int
6605 main ()
6606 {
6607
6608   ;
6609   return 0;
6610 }
6611 _ACEOF
6612 rm -f conftest.$ac_objext conftest$ac_exeext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6614   (eval $ac_link) 2>conftest.er1
6615   ac_status=$?
6616   grep -v '^ *+' conftest.er1 >conftest.err
6617   rm -f conftest.er1
6618   cat conftest.err >&5
6619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620   (exit $ac_status); } &&
6621          { ac_try='test -z "$ac_c_werror_flag"
6622                          || test ! -s conftest.err'
6623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624   (eval $ac_try) 2>&5
6625   ac_status=$?
6626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627   (exit $ac_status); }; } &&
6628          { ac_try='test -s conftest$ac_exeext'
6629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630   (eval $ac_try) 2>&5
6631   ac_status=$?
6632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633   (exit $ac_status); }; }; then
6634
6635 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6636 }'`
6637 # Check for a 64-bit object if we didn't find anything.
6638 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; }
6639 }'`; fi
6640 else
6641   echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6643
6644 fi
6645 rm -f conftest.err conftest.$ac_objext \
6646       conftest$ac_exeext conftest.$ac_ext
6647 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6648
6649          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6650           # Warning - without using the other run time loading flags,
6651           # -berok will link without error, but may produce a broken library.
6652           no_undefined_flag=' ${wl}-bernotok'
6653           allow_undefined_flag=' ${wl}-berok'
6654           # -bexpall does not export symbols beginning with underscore (_)
6655           always_export_symbols=yes
6656           # Exported symbols can be pulled into shared objects from archives
6657           whole_archive_flag_spec=' '
6658           archive_cmds_need_lc=yes
6659           # This is similar to how AIX traditionally builds it's shared libraries.
6660           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'
6661         fi
6662       fi
6663       ;;
6664
6665     amigaos*)
6666       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)'
6667       hardcode_libdir_flag_spec='-L$libdir'
6668       hardcode_minus_L=yes
6669       # see comment about different semantics on the GNU ld section
6670       ld_shlibs=no
6671       ;;
6672
6673     bsdi4*)
6674       export_dynamic_flag_spec=-rdynamic
6675       ;;
6676
6677     cygwin* | mingw* | pw32*)
6678       # When not using gcc, we currently assume that we are using
6679       # Microsoft Visual C++.
6680       # hardcode_libdir_flag_spec is actually meaningless, as there is
6681       # no search path for DLLs.
6682       hardcode_libdir_flag_spec=' '
6683       allow_undefined_flag=unsupported
6684       # Tell ltmain to make .lib files, not .a files.
6685       libext=lib
6686       # Tell ltmain to make .dll files, not .so files.
6687       shrext=".dll"
6688       # FIXME: Setting linknames here is a bad hack.
6689       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6690       # The linker will automatically build a .lib file if we build a DLL.
6691       old_archive_From_new_cmds='true'
6692       # FIXME: Should let the user specify the lib program.
6693       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6694       fix_srcfile_path='`cygpath -w "$srcfile"`'
6695       enable_shared_with_static_runtimes=yes
6696       ;;
6697
6698     darwin* | rhapsody*)
6699     if test "$GXX" = yes ; then
6700       archive_cmds_need_lc=no
6701       case "$host_os" in
6702       rhapsody* | darwin1.[012])
6703         allow_undefined_flag='-undefined suppress'
6704         ;;
6705       *) # Darwin 1.3 on
6706       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6707         allow_undefined_flag='-flat_namespace -undefined suppress'
6708       else
6709         case ${MACOSX_DEPLOYMENT_TARGET} in
6710           10.[012])
6711             allow_undefined_flag='-flat_namespace -undefined suppress'
6712             ;;
6713           10.*)
6714             allow_undefined_flag='-undefined dynamic_lookup'
6715             ;;
6716         esac
6717       fi
6718         ;;
6719       esac
6720         lt_int_apple_cc_single_mod=no
6721         output_verbose_link_cmd='echo'
6722         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6723           lt_int_apple_cc_single_mod=yes
6724         fi
6725         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6726           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6727         else
6728         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'
6729       fi
6730       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6731       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6732         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6733           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}'
6734         else
6735           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}'
6736         fi
6737           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}'
6738       hardcode_direct=no
6739       hardcode_automatic=yes
6740       hardcode_shlibpath_var=unsupported
6741       whole_archive_flag_spec='-all_load $convenience'
6742       link_all_deplibs=yes
6743     else
6744       ld_shlibs=no
6745     fi
6746       ;;
6747
6748     dgux*)
6749       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6750       hardcode_libdir_flag_spec='-L$libdir'
6751       hardcode_shlibpath_var=no
6752       ;;
6753
6754     freebsd1*)
6755       ld_shlibs=no
6756       ;;
6757
6758     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6759     # support.  Future versions do this automatically, but an explicit c++rt0.o
6760     # does not break anything, and helps significantly (at the cost of a little
6761     # extra space).
6762     freebsd2.2*)
6763       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6764       hardcode_libdir_flag_spec='-R$libdir'
6765       hardcode_direct=yes
6766       hardcode_shlibpath_var=no
6767       ;;
6768
6769     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6770     freebsd2*)
6771       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6772       hardcode_direct=yes
6773       hardcode_minus_L=yes
6774       hardcode_shlibpath_var=no
6775       ;;
6776
6777     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6778     freebsd* | kfreebsd*-gnu)
6779       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6780       hardcode_libdir_flag_spec='-R$libdir'
6781       hardcode_direct=yes
6782       hardcode_shlibpath_var=no
6783       ;;
6784
6785     hpux9*)
6786       if test "$GCC" = yes; then
6787         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'
6788       else
6789         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'
6790       fi
6791       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6792       hardcode_libdir_separator=:
6793       hardcode_direct=yes
6794
6795       # hardcode_minus_L: Not really in the search PATH,
6796       # but as the default location of the library.
6797       hardcode_minus_L=yes
6798       export_dynamic_flag_spec='${wl}-E'
6799       ;;
6800
6801     hpux10* | hpux11*)
6802       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6803         case "$host_cpu" in
6804         hppa*64*|ia64*)
6805           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6806           ;;
6807         *)
6808           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6809           ;;
6810         esac
6811       else
6812         case "$host_cpu" in
6813         hppa*64*|ia64*)
6814           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6815           ;;
6816         *)
6817           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6818           ;;
6819         esac
6820       fi
6821       if test "$with_gnu_ld" = no; then
6822         case "$host_cpu" in
6823         hppa*64*)
6824           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6825           hardcode_libdir_flag_spec_ld='+b $libdir'
6826           hardcode_libdir_separator=:
6827           hardcode_direct=no
6828           hardcode_shlibpath_var=no
6829           ;;
6830         ia64*)
6831           hardcode_libdir_flag_spec='-L$libdir'
6832           hardcode_direct=no
6833           hardcode_shlibpath_var=no
6834
6835           # hardcode_minus_L: Not really in the search PATH,
6836           # but as the default location of the library.
6837           hardcode_minus_L=yes
6838           ;;
6839         *)
6840           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6841           hardcode_libdir_separator=:
6842           hardcode_direct=yes
6843           export_dynamic_flag_spec='${wl}-E'
6844
6845           # hardcode_minus_L: Not really in the search PATH,
6846           # but as the default location of the library.
6847           hardcode_minus_L=yes
6848           ;;
6849         esac
6850       fi
6851       ;;
6852
6853     irix5* | irix6* | nonstopux*)
6854       if test "$GCC" = yes; then
6855         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'
6856       else
6857         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'
6858         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6859       fi
6860       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6861       hardcode_libdir_separator=:
6862       link_all_deplibs=yes
6863       ;;
6864
6865     netbsd*)
6866       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6867         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6868       else
6869         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6870       fi
6871       hardcode_libdir_flag_spec='-R$libdir'
6872       hardcode_direct=yes
6873       hardcode_shlibpath_var=no
6874       ;;
6875
6876     newsos6)
6877       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6878       hardcode_direct=yes
6879       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6880       hardcode_libdir_separator=:
6881       hardcode_shlibpath_var=no
6882       ;;
6883
6884     openbsd*)
6885       hardcode_direct=yes
6886       hardcode_shlibpath_var=no
6887       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6888         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6889         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6890         export_dynamic_flag_spec='${wl}-E'
6891       else
6892        case $host_os in
6893          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6894            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6895            hardcode_libdir_flag_spec='-R$libdir'
6896            ;;
6897          *)
6898            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6899            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6900            ;;
6901        esac
6902       fi
6903       ;;
6904
6905     os2*)
6906       hardcode_libdir_flag_spec='-L$libdir'
6907       hardcode_minus_L=yes
6908       allow_undefined_flag=unsupported
6909       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'
6910       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6911       ;;
6912
6913     osf3*)
6914       if test "$GCC" = yes; then
6915         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6916         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'
6917       else
6918         allow_undefined_flag=' -expect_unresolved \*'
6919         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'
6920       fi
6921       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6922       hardcode_libdir_separator=:
6923       ;;
6924
6925     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6926       if test "$GCC" = yes; then
6927         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6928         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'
6929         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6930       else
6931         allow_undefined_flag=' -expect_unresolved \*'
6932         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'
6933         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6934         $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'
6935
6936         # Both c and cxx compiler support -rpath directly
6937         hardcode_libdir_flag_spec='-rpath $libdir'
6938       fi
6939       hardcode_libdir_separator=:
6940       ;;
6941
6942     sco3.2v5*)
6943       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6944       hardcode_shlibpath_var=no
6945       export_dynamic_flag_spec='${wl}-Bexport'
6946       runpath_var=LD_RUN_PATH
6947       hardcode_runpath_var=yes
6948       ;;
6949
6950     solaris*)
6951       no_undefined_flag=' -z text'
6952       if test "$GCC" = yes; then
6953         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6954         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6955           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6956       else
6957         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6958         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6959         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6960       fi
6961       hardcode_libdir_flag_spec='-R$libdir'
6962       hardcode_shlibpath_var=no
6963       case $host_os in
6964       solaris2.[0-5] | solaris2.[0-5].*) ;;
6965       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6966         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6967       esac
6968       link_all_deplibs=yes
6969       ;;
6970
6971     sunos4*)
6972       if test "x$host_vendor" = xsequent; then
6973         # Use $CC to link under sequent, because it throws in some extra .o
6974         # files that make .init and .fini sections work.
6975         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6976       else
6977         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6978       fi
6979       hardcode_libdir_flag_spec='-L$libdir'
6980       hardcode_direct=yes
6981       hardcode_minus_L=yes
6982       hardcode_shlibpath_var=no
6983       ;;
6984
6985     sysv4)
6986       case $host_vendor in
6987         sni)
6988           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6989           hardcode_direct=yes # is this really true???
6990         ;;
6991         siemens)
6992           ## LD is ld it makes a PLAMLIB
6993           ## CC just makes a GrossModule.
6994           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6995           reload_cmds='$CC -r -o $output$reload_objs'
6996           hardcode_direct=no
6997         ;;
6998         motorola)
6999           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7000           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7001         ;;
7002       esac
7003       runpath_var='LD_RUN_PATH'
7004       hardcode_shlibpath_var=no
7005       ;;
7006
7007     sysv4.3*)
7008       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7009       hardcode_shlibpath_var=no
7010       export_dynamic_flag_spec='-Bexport'
7011       ;;
7012
7013     sysv4*MP*)
7014       if test -d /usr/nec; then
7015         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7016         hardcode_shlibpath_var=no
7017         runpath_var=LD_RUN_PATH
7018         hardcode_runpath_var=yes
7019         ld_shlibs=yes
7020       fi
7021       ;;
7022
7023     sysv4.2uw2*)
7024       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7025       hardcode_direct=yes
7026       hardcode_minus_L=no
7027       hardcode_shlibpath_var=no
7028       hardcode_runpath_var=yes
7029       runpath_var=LD_RUN_PATH
7030       ;;
7031
7032    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7033       no_undefined_flag='${wl}-z ${wl}text'
7034       if test "$GCC" = yes; then
7035         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7036       else
7037         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7038       fi
7039       runpath_var='LD_RUN_PATH'
7040       hardcode_shlibpath_var=no
7041       ;;
7042
7043     sysv5*)
7044       no_undefined_flag=' -z text'
7045       # $CC -shared without GNU ld will not create a library from C++
7046       # object files and a static libstdc++, better avoid it by now
7047       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7048       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7049                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7050       hardcode_libdir_flag_spec=
7051       hardcode_shlibpath_var=no
7052       runpath_var='LD_RUN_PATH'
7053       ;;
7054
7055     uts4*)
7056       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7057       hardcode_libdir_flag_spec='-L$libdir'
7058       hardcode_shlibpath_var=no
7059       ;;
7060
7061     *)
7062       ld_shlibs=no
7063       ;;
7064     esac
7065   fi
7066
7067 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7068 echo "${ECHO_T}$ld_shlibs" >&6
7069 test "$ld_shlibs" = no && can_build_shared=no
7070
7071 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7072 if test "$GCC" = yes; then
7073   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7074 fi
7075
7076 #
7077 # Do we need to explicitly link libc?
7078 #
7079 case "x$archive_cmds_need_lc" in
7080 x|xyes)
7081   # Assume -lc should be added
7082   archive_cmds_need_lc=yes
7083
7084   if test "$enable_shared" = yes && test "$GCC" = yes; then
7085     case $archive_cmds in
7086     *'~'*)
7087       # FIXME: we may have to deal with multi-command sequences.
7088       ;;
7089     '$CC '*)
7090       # Test whether the compiler implicitly links with -lc since on some
7091       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7092       # to ld, don't add -lc before -lgcc.
7093       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7094 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7095       $rm conftest*
7096       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7097
7098       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7099   (eval $ac_compile) 2>&5
7100   ac_status=$?
7101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102   (exit $ac_status); } 2>conftest.err; then
7103         soname=conftest
7104         lib=conftest
7105         libobjs=conftest.$ac_objext
7106         deplibs=
7107         wl=$lt_prog_compiler_wl
7108         compiler_flags=-v
7109         linker_flags=-v
7110         verstring=
7111         output_objdir=.
7112         libname=conftest
7113         lt_save_allow_undefined_flag=$allow_undefined_flag
7114         allow_undefined_flag=
7115         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7116   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7117   ac_status=$?
7118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119   (exit $ac_status); }
7120         then
7121           archive_cmds_need_lc=no
7122         else
7123           archive_cmds_need_lc=yes
7124         fi
7125         allow_undefined_flag=$lt_save_allow_undefined_flag
7126       else
7127         cat conftest.err 1>&5
7128       fi
7129       $rm conftest*
7130       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7131 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7132       ;;
7133     esac
7134   fi
7135   ;;
7136 esac
7137
7138 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7139 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7140 library_names_spec=
7141 libname_spec='lib$name'
7142 soname_spec=
7143 shrext=".so"
7144 postinstall_cmds=
7145 postuninstall_cmds=
7146 finish_cmds=
7147 finish_eval=
7148 shlibpath_var=
7149 shlibpath_overrides_runpath=unknown
7150 version_type=none
7151 dynamic_linker="$host_os ld.so"
7152 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7153 if test "$GCC" = yes; then
7154   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7155   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7156     # if the path contains ";" then we assume it to be the separator
7157     # otherwise default to the standard path separator (i.e. ":") - it is
7158     # assumed that no part of a normal pathname contains ";" but that should
7159     # okay in the real world where ";" in dirpaths is itself problematic.
7160     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7161   else
7162     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7163   fi
7164 else
7165   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7166 fi
7167 need_lib_prefix=unknown
7168 hardcode_into_libs=no
7169
7170 # when you set need_version to no, make sure it does not cause -set_version
7171 # flags to be left without arguments
7172 need_version=unknown
7173
7174 case $host_os in
7175 aix3*)
7176   version_type=linux
7177   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7178   shlibpath_var=LIBPATH
7179
7180   # AIX 3 has no versioning support, so we append a major version to the name.
7181   soname_spec='${libname}${release}${shared_ext}$major'
7182   ;;
7183
7184 aix4* | aix5*)
7185   version_type=linux
7186   need_lib_prefix=no
7187   need_version=no
7188   hardcode_into_libs=yes
7189   if test "$host_cpu" = ia64; then
7190     # AIX 5 supports IA64
7191     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7192     shlibpath_var=LD_LIBRARY_PATH
7193   else
7194     # With GCC up to 2.95.x, collect2 would create an import file
7195     # for dependence libraries.  The import file would start with
7196     # the line `#! .'.  This would cause the generated library to
7197     # depend on `.', always an invalid library.  This was fixed in
7198     # development snapshots of GCC prior to 3.0.
7199     case $host_os in
7200       aix4 | aix4.[01] | aix4.[01].*)
7201       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7202            echo ' yes '
7203            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7204         :
7205       else
7206         can_build_shared=no
7207       fi
7208       ;;
7209     esac
7210     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7211     # soname into executable. Probably we can add versioning support to
7212     # collect2, so additional links can be useful in future.
7213     if test "$aix_use_runtimelinking" = yes; then
7214       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7215       # instead of lib<name>.a to let people know that these are not
7216       # typical AIX shared libraries.
7217       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7218     else
7219       # We preserve .a as extension for shared libraries through AIX4.2
7220       # and later when we are not doing run time linking.
7221       library_names_spec='${libname}${release}.a $libname.a'
7222       soname_spec='${libname}${release}${shared_ext}$major'
7223     fi
7224     shlibpath_var=LIBPATH
7225   fi
7226   ;;
7227
7228 amigaos*)
7229   library_names_spec='$libname.ixlibrary $libname.a'
7230   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7231   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'
7232   ;;
7233
7234 beos*)
7235   library_names_spec='${libname}${shared_ext}'
7236   dynamic_linker="$host_os ld.so"
7237   shlibpath_var=LIBRARY_PATH
7238   ;;
7239
7240 bsdi4*)
7241   version_type=linux
7242   need_version=no
7243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7244   soname_spec='${libname}${release}${shared_ext}$major'
7245   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7246   shlibpath_var=LD_LIBRARY_PATH
7247   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7248   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7249   # the default ld.so.conf also contains /usr/contrib/lib and
7250   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7251   # libtool to hard-code these into programs
7252   ;;
7253
7254 cygwin* | mingw* | pw32*)
7255   version_type=windows
7256   shrext=".dll"
7257   need_version=no
7258   need_lib_prefix=no
7259
7260   case $GCC,$host_os in
7261   yes,cygwin* | yes,mingw* | yes,pw32*)
7262     library_names_spec='$libname.dll.a'
7263     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7264     postinstall_cmds='base_file=`basename \${file}`~
7265       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7266       dldir=$destdir/`dirname \$dlpath`~
7267       test -d \$dldir || mkdir -p \$dldir~
7268       $install_prog $dir/$dlname \$dldir/$dlname'
7269     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7270       dlpath=$dir/\$dldll~
7271        $rm \$dlpath'
7272     shlibpath_overrides_runpath=yes
7273
7274     case $host_os in
7275     cygwin*)
7276       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7277       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7278       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7279       ;;
7280     mingw*)
7281       # MinGW DLLs use traditional 'lib' prefix
7282       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7283       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7284       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7285         # It is most probably a Windows format PATH printed by
7286         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7287         # path with ; separators, and with drive letters. We can handle the
7288         # drive letters (cygwin fileutils understands them), so leave them,
7289         # especially as we might pass files found there to a mingw objdump,
7290         # which wouldn't understand a cygwinified path. Ahh.
7291         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7292       else
7293         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7294       fi
7295       ;;
7296     pw32*)
7297       # pw32 DLLs use 'pw' prefix rather than 'lib'
7298       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7299       ;;
7300     esac
7301     ;;
7302
7303   linux*)
7304     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7305       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7306       supports_anon_versioning=no
7307       case `$LD -v 2>/dev/null` in
7308         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7309         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7310         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7311         *\ 2.11.*) ;; # other 2.11 versions
7312         *) supports_anon_versioning=yes ;;
7313       esac
7314       if test $supports_anon_versioning = yes; then
7315         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7316 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7317 $echo "local: *; };" >> $output_objdir/$libname.ver~
7318         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7319       else
7320         $archive_expsym_cmds="$archive_cmds"
7321       fi
7322     else
7323       ld_shlibs=no
7324     fi
7325     ;;
7326
7327   *)
7328     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7329     ;;
7330   esac
7331   dynamic_linker='Win32 ld.exe'
7332   # FIXME: first we should search . and the directory the executable is in
7333   shlibpath_var=PATH
7334   ;;
7335
7336 darwin* | rhapsody*)
7337   dynamic_linker="$host_os dyld"
7338   version_type=darwin
7339   need_lib_prefix=no
7340   need_version=no
7341   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7342   soname_spec='${libname}${release}${major}$shared_ext'
7343   shlibpath_overrides_runpath=yes
7344   shlibpath_var=DYLD_LIBRARY_PATH
7345   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7346   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7347   if test "$GCC" = yes; then
7348     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"`
7349   else
7350     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7351   fi
7352   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7353   ;;
7354
7355 dgux*)
7356   version_type=linux
7357   need_lib_prefix=no
7358   need_version=no
7359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7360   soname_spec='${libname}${release}${shared_ext}$major'
7361   shlibpath_var=LD_LIBRARY_PATH
7362   ;;
7363
7364 freebsd1*)
7365   dynamic_linker=no
7366   ;;
7367
7368 kfreebsd*-gnu)
7369   version_type=linux
7370   need_lib_prefix=no
7371   need_version=no
7372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7373   soname_spec='${libname}${release}${shared_ext}$major'
7374   shlibpath_var=LD_LIBRARY_PATH
7375   shlibpath_overrides_runpath=no
7376   hardcode_into_libs=yes
7377   dynamic_linker='GNU ld.so'
7378   ;;
7379
7380 freebsd*)
7381   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7382   version_type=freebsd-$objformat
7383   case $version_type in
7384     freebsd-elf*)
7385       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7386       need_version=no
7387       need_lib_prefix=no
7388       ;;
7389     freebsd-*)
7390       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7391       need_version=yes
7392       ;;
7393   esac
7394   shlibpath_var=LD_LIBRARY_PATH
7395   case $host_os in
7396   freebsd2*)
7397     shlibpath_overrides_runpath=yes
7398     ;;
7399   freebsd3.01* | freebsdelf3.01*)
7400     shlibpath_overrides_runpath=yes
7401     hardcode_into_libs=yes
7402     ;;
7403   *) # from 3.2 on
7404     shlibpath_overrides_runpath=no
7405     hardcode_into_libs=yes
7406     ;;
7407   esac
7408   ;;
7409
7410 gnu*)
7411   version_type=linux
7412   need_lib_prefix=no
7413   need_version=no
7414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7415   soname_spec='${libname}${release}${shared_ext}$major'
7416   shlibpath_var=LD_LIBRARY_PATH
7417   hardcode_into_libs=yes
7418   ;;
7419
7420 hpux9* | hpux10* | hpux11*)
7421   # Give a soname corresponding to the major version so that dld.sl refuses to
7422   # link against other versions.
7423   version_type=sunos
7424   need_lib_prefix=no
7425   need_version=no
7426   case "$host_cpu" in
7427   ia64*)
7428     shrext='.so'
7429     hardcode_into_libs=yes
7430     dynamic_linker="$host_os dld.so"
7431     shlibpath_var=LD_LIBRARY_PATH
7432     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7434     soname_spec='${libname}${release}${shared_ext}$major'
7435     if test "X$HPUX_IA64_MODE" = X32; then
7436       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7437     else
7438       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7439     fi
7440     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7441     ;;
7442    hppa*64*)
7443      shrext='.sl'
7444      hardcode_into_libs=yes
7445      dynamic_linker="$host_os dld.sl"
7446      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7447      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7448      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7449      soname_spec='${libname}${release}${shared_ext}$major'
7450      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7451      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7452      ;;
7453    *)
7454     shrext='.sl'
7455     dynamic_linker="$host_os dld.sl"
7456     shlibpath_var=SHLIB_PATH
7457     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7459     soname_spec='${libname}${release}${shared_ext}$major'
7460     ;;
7461   esac
7462   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7463   postinstall_cmds='chmod 555 $lib'
7464   ;;
7465
7466 irix5* | irix6* | nonstopux*)
7467   case $host_os in
7468     nonstopux*) version_type=nonstopux ;;
7469     *)
7470         if test "$lt_cv_prog_gnu_ld" = yes; then
7471                 version_type=linux
7472         else
7473                 version_type=irix
7474         fi ;;
7475   esac
7476   need_lib_prefix=no
7477   need_version=no
7478   soname_spec='${libname}${release}${shared_ext}$major'
7479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7480   case $host_os in
7481   irix5* | nonstopux*)
7482     libsuff= shlibsuff=
7483     ;;
7484   *)
7485     case $LD in # libtool.m4 will add one of these switches to LD
7486     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7487       libsuff= shlibsuff= libmagic=32-bit;;
7488     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7489       libsuff=32 shlibsuff=N32 libmagic=N32;;
7490     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7491       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7492     *) libsuff= shlibsuff= libmagic=never-match;;
7493     esac
7494     ;;
7495   esac
7496   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7497   shlibpath_overrides_runpath=no
7498   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7499   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7500   hardcode_into_libs=yes
7501   ;;
7502
7503 # No shared lib support for Linux oldld, aout, or coff.
7504 linux*oldld* | linux*aout* | linux*coff*)
7505   dynamic_linker=no
7506   ;;
7507
7508 # This must be Linux ELF.
7509 linux*)
7510   version_type=linux
7511   need_lib_prefix=no
7512   need_version=no
7513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7514   soname_spec='${libname}${release}${shared_ext}$major'
7515   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7516   shlibpath_var=LD_LIBRARY_PATH
7517   shlibpath_overrides_runpath=no
7518   # This implies no fast_install, which is unacceptable.
7519   # Some rework will be needed to allow for fast_install
7520   # before this can be enabled.
7521   hardcode_into_libs=yes
7522
7523   # Append ld.so.conf contents to the search path
7524   if test -f /etc/ld.so.conf; then
7525     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7526     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7527   fi
7528
7529   case $host_cpu:$lt_cv_cc_64bit_output in
7530   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
7531     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
7532     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
7533     ;;
7534   esac
7535
7536   # We used to test for /lib/ld.so.1 and disable shared libraries on
7537   # powerpc, because MkLinux only supported shared libraries with the
7538   # GNU dynamic linker.  Since this was broken with cross compilers,
7539   # most powerpc-linux boxes support dynamic linking these days and
7540   # people can always --disable-shared, the test was removed, and we
7541   # assume the GNU/Linux dynamic linker is in use.
7542   dynamic_linker='GNU/Linux ld.so'
7543
7544   # Find out which ABI we are using (multilib Linux x86_64 hack).
7545   libsuff=
7546   case "$host_cpu" in
7547   x86_64*)
7548     echo '#line 7548 "configure"' > conftest.$ac_ext
7549     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7550   (eval $ac_compile) 2>&5
7551   ac_status=$?
7552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553   (exit $ac_status); }; then
7554       case `/usr/bin/file conftest.$ac_objext` in
7555       *64-bit*)
7556         libsuff=64
7557         ;;
7558       esac
7559     fi
7560     rm -rf conftest*
7561     ;;
7562   *)
7563     ;;
7564   esac
7565   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7566   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7567   ;;
7568
7569 knetbsd*-gnu)
7570   version_type=linux
7571   need_lib_prefix=no
7572   need_version=no
7573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7574   soname_spec='${libname}${release}${shared_ext}$major'
7575   shlibpath_var=LD_LIBRARY_PATH
7576   shlibpath_overrides_runpath=no
7577   hardcode_into_libs=yes
7578   dynamic_linker='GNU ld.so'
7579   ;;
7580
7581 netbsd*)
7582   version_type=sunos
7583   need_lib_prefix=no
7584   need_version=no
7585   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7586     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7587     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7588     dynamic_linker='NetBSD (a.out) ld.so'
7589   else
7590     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7591     soname_spec='${libname}${release}${shared_ext}$major'
7592     dynamic_linker='NetBSD ld.elf_so'
7593   fi
7594   shlibpath_var=LD_LIBRARY_PATH
7595   shlibpath_overrides_runpath=yes
7596   hardcode_into_libs=yes
7597   ;;
7598
7599 newsos6)
7600   version_type=linux
7601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7602   shlibpath_var=LD_LIBRARY_PATH
7603   shlibpath_overrides_runpath=yes
7604   ;;
7605
7606 nto-qnx*)
7607   version_type=linux
7608   need_lib_prefix=no
7609   need_version=no
7610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7611   soname_spec='${libname}${release}${shared_ext}$major'
7612   shlibpath_var=LD_LIBRARY_PATH
7613   shlibpath_overrides_runpath=yes
7614   ;;
7615
7616 openbsd*)
7617   version_type=sunos
7618   need_lib_prefix=no
7619   need_version=yes
7620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7621   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7622   shlibpath_var=LD_LIBRARY_PATH
7623   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7624     case $host_os in
7625       openbsd2.[89] | openbsd2.[89].*)
7626         shlibpath_overrides_runpath=no
7627         ;;
7628       *)
7629         shlibpath_overrides_runpath=yes
7630         ;;
7631       esac
7632   else
7633     shlibpath_overrides_runpath=yes
7634   fi
7635   ;;
7636
7637 os2*)
7638   libname_spec='$name'
7639   shrext=".dll"
7640   need_lib_prefix=no
7641   library_names_spec='$libname${shared_ext} $libname.a'
7642   dynamic_linker='OS/2 ld.exe'
7643   shlibpath_var=LIBPATH
7644   ;;
7645
7646 osf3* | osf4* | osf5*)
7647   version_type=osf
7648   need_lib_prefix=no
7649   need_version=no
7650   soname_spec='${libname}${release}${shared_ext}$major'
7651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7652   shlibpath_var=LD_LIBRARY_PATH
7653   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7654   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7655   ;;
7656
7657 sco3.2v5*)
7658   version_type=osf
7659   soname_spec='${libname}${release}${shared_ext}$major'
7660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7661   shlibpath_var=LD_LIBRARY_PATH
7662   ;;
7663
7664 solaris*)
7665   version_type=linux
7666   need_lib_prefix=no
7667   need_version=no
7668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7669   soname_spec='${libname}${release}${shared_ext}$major'
7670   shlibpath_var=LD_LIBRARY_PATH
7671   shlibpath_overrides_runpath=yes
7672   hardcode_into_libs=yes
7673   # ldd complains unless libraries are executable
7674   postinstall_cmds='chmod +x $lib'
7675   ;;
7676
7677 sunos4*)
7678   version_type=sunos
7679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7680   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7681   shlibpath_var=LD_LIBRARY_PATH
7682   shlibpath_overrides_runpath=yes
7683   if test "$with_gnu_ld" = yes; then
7684     need_lib_prefix=no
7685   fi
7686   need_version=yes
7687   ;;
7688
7689 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7690   version_type=linux
7691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7692   soname_spec='${libname}${release}${shared_ext}$major'
7693   shlibpath_var=LD_LIBRARY_PATH
7694   case $host_vendor in
7695     sni)
7696       shlibpath_overrides_runpath=no
7697       need_lib_prefix=no
7698       export_dynamic_flag_spec='${wl}-Blargedynsym'
7699       runpath_var=LD_RUN_PATH
7700       ;;
7701     siemens)
7702       need_lib_prefix=no
7703       ;;
7704     motorola)
7705       need_lib_prefix=no
7706       need_version=no
7707       shlibpath_overrides_runpath=no
7708       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7709       ;;
7710   esac
7711   ;;
7712
7713 sysv4*MP*)
7714   if test -d /usr/nec ;then
7715     version_type=linux
7716     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7717     soname_spec='$libname${shared_ext}.$major'
7718     shlibpath_var=LD_LIBRARY_PATH
7719   fi
7720   ;;
7721
7722 uts4*)
7723   version_type=linux
7724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7725   soname_spec='${libname}${release}${shared_ext}$major'
7726   shlibpath_var=LD_LIBRARY_PATH
7727   ;;
7728
7729 *)
7730   dynamic_linker=no
7731   ;;
7732 esac
7733 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7734 echo "${ECHO_T}$dynamic_linker" >&6
7735 test "$dynamic_linker" = no && can_build_shared=no
7736
7737 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7738 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7739 hardcode_action=
7740 if test -n "$hardcode_libdir_flag_spec" || \
7741    test -n "$runpath_var " || \
7742    test "X$hardcode_automatic"="Xyes" ; then
7743
7744   # We can hardcode non-existant directories.
7745   if test "$hardcode_direct" != no &&
7746      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7747      # have to relink, otherwise we might link with an installed library
7748      # when we should be linking with a yet-to-be-installed one
7749      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7750      test "$hardcode_minus_L" != no; then
7751     # Linking always hardcodes the temporary library directory.
7752     hardcode_action=relink
7753   else
7754     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7755     hardcode_action=immediate
7756   fi
7757 else
7758   # We cannot hardcode anything, or else we can only hardcode existing
7759   # directories.
7760   hardcode_action=unsupported
7761 fi
7762 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7763 echo "${ECHO_T}$hardcode_action" >&6
7764
7765 if test "$hardcode_action" = relink; then
7766   # Fast installation is not supported
7767   enable_fast_install=no
7768 elif test "$shlibpath_overrides_runpath" = yes ||
7769      test "$enable_shared" = no; then
7770   # Fast installation is not necessary
7771   enable_fast_install=needless
7772 fi
7773
7774 striplib=
7775 old_striplib=
7776 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7777 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7778 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7779   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7780   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7781   echo "$as_me:$LINENO: result: yes" >&5
7782 echo "${ECHO_T}yes" >&6
7783 else
7784 # FIXME - insert some real tests, host_os isn't really good enough
7785   case $host_os in
7786    darwin*)
7787        if test -n "$STRIP" ; then
7788          striplib="$STRIP -x"
7789          echo "$as_me:$LINENO: result: yes" >&5
7790 echo "${ECHO_T}yes" >&6
7791        else
7792   echo "$as_me:$LINENO: result: no" >&5
7793 echo "${ECHO_T}no" >&6
7794 fi
7795        ;;
7796    *)
7797   echo "$as_me:$LINENO: result: no" >&5
7798 echo "${ECHO_T}no" >&6
7799     ;;
7800   esac
7801 fi
7802
7803 if test "x$enable_dlopen" != xyes; then
7804   enable_dlopen=unknown
7805   enable_dlopen_self=unknown
7806   enable_dlopen_self_static=unknown
7807 else
7808   lt_cv_dlopen=no
7809   lt_cv_dlopen_libs=
7810
7811   case $host_os in
7812   beos*)
7813     lt_cv_dlopen="load_add_on"
7814     lt_cv_dlopen_libs=
7815     lt_cv_dlopen_self=yes
7816     ;;
7817
7818   mingw* | pw32*)
7819     lt_cv_dlopen="LoadLibrary"
7820     lt_cv_dlopen_libs=
7821    ;;
7822
7823   cygwin*)
7824     lt_cv_dlopen="dlopen"
7825     lt_cv_dlopen_libs=
7826    ;;
7827
7828   darwin*)
7829   # if libdl is installed we need to link against it
7830     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7831 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7832 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7833   echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835   ac_check_lib_save_LIBS=$LIBS
7836 LIBS="-ldl  $LIBS"
7837 cat >conftest.$ac_ext <<_ACEOF
7838 /* confdefs.h.  */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h.  */
7843
7844 /* Override any gcc2 internal prototype to avoid an error.  */
7845 #ifdef __cplusplus
7846 extern "C"
7847 #endif
7848 /* We use char because int might match the return type of a gcc2
7849    builtin and then its argument prototype would still apply.  */
7850 char dlopen ();
7851 int
7852 main ()
7853 {
7854 dlopen ();
7855   ;
7856   return 0;
7857 }
7858 _ACEOF
7859 rm -f conftest.$ac_objext conftest$ac_exeext
7860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7861   (eval $ac_link) 2>conftest.er1
7862   ac_status=$?
7863   grep -v '^ *+' conftest.er1 >conftest.err
7864   rm -f conftest.er1
7865   cat conftest.err >&5
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); } &&
7868          { ac_try='test -z "$ac_c_werror_flag"
7869                          || test ! -s conftest.err'
7870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871   (eval $ac_try) 2>&5
7872   ac_status=$?
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); }; } &&
7875          { ac_try='test -s conftest$ac_exeext'
7876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877   (eval $ac_try) 2>&5
7878   ac_status=$?
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); }; }; then
7881   ac_cv_lib_dl_dlopen=yes
7882 else
7883   echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7885
7886 ac_cv_lib_dl_dlopen=no
7887 fi
7888 rm -f conftest.err conftest.$ac_objext \
7889       conftest$ac_exeext conftest.$ac_ext
7890 LIBS=$ac_check_lib_save_LIBS
7891 fi
7892 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7893 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7894 if test $ac_cv_lib_dl_dlopen = yes; then
7895   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7896 else
7897
7898     lt_cv_dlopen="dyld"
7899     lt_cv_dlopen_libs=
7900     lt_cv_dlopen_self=yes
7901
7902 fi
7903
7904    ;;
7905
7906   *)
7907     echo "$as_me:$LINENO: checking for shl_load" >&5
7908 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7909 if test "${ac_cv_func_shl_load+set}" = set; then
7910   echo $ECHO_N "(cached) $ECHO_C" >&6
7911 else
7912   cat >conftest.$ac_ext <<_ACEOF
7913 /* confdefs.h.  */
7914 _ACEOF
7915 cat confdefs.h >>conftest.$ac_ext
7916 cat >>conftest.$ac_ext <<_ACEOF
7917 /* end confdefs.h.  */
7918 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7920 #define shl_load innocuous_shl_load
7921
7922 /* System header to define __stub macros and hopefully few prototypes,
7923     which can conflict with char shl_load (); below.
7924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7925     <limits.h> exists even on freestanding compilers.  */
7926
7927 #ifdef __STDC__
7928 # include <limits.h>
7929 #else
7930 # include <assert.h>
7931 #endif
7932
7933 #undef shl_load
7934
7935 /* Override any gcc2 internal prototype to avoid an error.  */
7936 #ifdef __cplusplus
7937 extern "C"
7938 {
7939 #endif
7940 /* We use char because int might match the return type of a gcc2
7941    builtin and then its argument prototype would still apply.  */
7942 char shl_load ();
7943 /* The GNU C library defines this for functions which it implements
7944     to always fail with ENOSYS.  Some functions are actually named
7945     something starting with __ and the normal name is an alias.  */
7946 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7947 choke me
7948 #else
7949 char (*f) () = shl_load;
7950 #endif
7951 #ifdef __cplusplus
7952 }
7953 #endif
7954
7955 int
7956 main ()
7957 {
7958 return f != shl_load;
7959   ;
7960   return 0;
7961 }
7962 _ACEOF
7963 rm -f conftest.$ac_objext conftest$ac_exeext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7965   (eval $ac_link) 2>conftest.er1
7966   ac_status=$?
7967   grep -v '^ *+' conftest.er1 >conftest.err
7968   rm -f conftest.er1
7969   cat conftest.err >&5
7970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971   (exit $ac_status); } &&
7972          { ac_try='test -z "$ac_c_werror_flag"
7973                          || test ! -s conftest.err'
7974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975   (eval $ac_try) 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); }; } &&
7979          { ac_try='test -s conftest$ac_exeext'
7980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981   (eval $ac_try) 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; }; then
7985   ac_cv_func_shl_load=yes
7986 else
7987   echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990 ac_cv_func_shl_load=no
7991 fi
7992 rm -f conftest.err conftest.$ac_objext \
7993       conftest$ac_exeext conftest.$ac_ext
7994 fi
7995 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7996 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7997 if test $ac_cv_func_shl_load = yes; then
7998   lt_cv_dlopen="shl_load"
7999 else
8000   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8001 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8002 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8003   echo $ECHO_N "(cached) $ECHO_C" >&6
8004 else
8005   ac_check_lib_save_LIBS=$LIBS
8006 LIBS="-ldld  $LIBS"
8007 cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h.  */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h.  */
8013
8014 /* Override any gcc2 internal prototype to avoid an error.  */
8015 #ifdef __cplusplus
8016 extern "C"
8017 #endif
8018 /* We use char because int might match the return type of a gcc2
8019    builtin and then its argument prototype would still apply.  */
8020 char shl_load ();
8021 int
8022 main ()
8023 {
8024 shl_load ();
8025   ;
8026   return 0;
8027 }
8028 _ACEOF
8029 rm -f conftest.$ac_objext conftest$ac_exeext
8030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8031   (eval $ac_link) 2>conftest.er1
8032   ac_status=$?
8033   grep -v '^ *+' conftest.er1 >conftest.err
8034   rm -f conftest.er1
8035   cat conftest.err >&5
8036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037   (exit $ac_status); } &&
8038          { ac_try='test -z "$ac_c_werror_flag"
8039                          || test ! -s conftest.err'
8040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041   (eval $ac_try) 2>&5
8042   ac_status=$?
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); }; } &&
8045          { ac_try='test -s conftest$ac_exeext'
8046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047   (eval $ac_try) 2>&5
8048   ac_status=$?
8049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); }; }; then
8051   ac_cv_lib_dld_shl_load=yes
8052 else
8053   echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8055
8056 ac_cv_lib_dld_shl_load=no
8057 fi
8058 rm -f conftest.err conftest.$ac_objext \
8059       conftest$ac_exeext conftest.$ac_ext
8060 LIBS=$ac_check_lib_save_LIBS
8061 fi
8062 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8063 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8064 if test $ac_cv_lib_dld_shl_load = yes; then
8065   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8066 else
8067   echo "$as_me:$LINENO: checking for dlopen" >&5
8068 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8069 if test "${ac_cv_func_dlopen+set}" = set; then
8070   echo $ECHO_N "(cached) $ECHO_C" >&6
8071 else
8072   cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h.  */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h.  */
8078 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8080 #define dlopen innocuous_dlopen
8081
8082 /* System header to define __stub macros and hopefully few prototypes,
8083     which can conflict with char dlopen (); below.
8084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8085     <limits.h> exists even on freestanding compilers.  */
8086
8087 #ifdef __STDC__
8088 # include <limits.h>
8089 #else
8090 # include <assert.h>
8091 #endif
8092
8093 #undef dlopen
8094
8095 /* Override any gcc2 internal prototype to avoid an error.  */
8096 #ifdef __cplusplus
8097 extern "C"
8098 {
8099 #endif
8100 /* We use char because int might match the return type of a gcc2
8101    builtin and then its argument prototype would still apply.  */
8102 char dlopen ();
8103 /* The GNU C library defines this for functions which it implements
8104     to always fail with ENOSYS.  Some functions are actually named
8105     something starting with __ and the normal name is an alias.  */
8106 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8107 choke me
8108 #else
8109 char (*f) () = dlopen;
8110 #endif
8111 #ifdef __cplusplus
8112 }
8113 #endif
8114
8115 int
8116 main ()
8117 {
8118 return f != dlopen;
8119   ;
8120   return 0;
8121 }
8122 _ACEOF
8123 rm -f conftest.$ac_objext conftest$ac_exeext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8125   (eval $ac_link) 2>conftest.er1
8126   ac_status=$?
8127   grep -v '^ *+' conftest.er1 >conftest.err
8128   rm -f conftest.er1
8129   cat conftest.err >&5
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); } &&
8132          { ac_try='test -z "$ac_c_werror_flag"
8133                          || test ! -s conftest.err'
8134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135   (eval $ac_try) 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; } &&
8139          { ac_try='test -s conftest$ac_exeext'
8140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141   (eval $ac_try) 2>&5
8142   ac_status=$?
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); }; }; then
8145   ac_cv_func_dlopen=yes
8146 else
8147   echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8149
8150 ac_cv_func_dlopen=no
8151 fi
8152 rm -f conftest.err conftest.$ac_objext \
8153       conftest$ac_exeext conftest.$ac_ext
8154 fi
8155 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8156 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8157 if test $ac_cv_func_dlopen = yes; then
8158   lt_cv_dlopen="dlopen"
8159 else
8160   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8161 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8162 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8163   echo $ECHO_N "(cached) $ECHO_C" >&6
8164 else
8165   ac_check_lib_save_LIBS=$LIBS
8166 LIBS="-ldl  $LIBS"
8167 cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h.  */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h.  */
8173
8174 /* Override any gcc2 internal prototype to avoid an error.  */
8175 #ifdef __cplusplus
8176 extern "C"
8177 #endif
8178 /* We use char because int might match the return type of a gcc2
8179    builtin and then its argument prototype would still apply.  */
8180 char dlopen ();
8181 int
8182 main ()
8183 {
8184 dlopen ();
8185   ;
8186   return 0;
8187 }
8188 _ACEOF
8189 rm -f conftest.$ac_objext conftest$ac_exeext
8190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8191   (eval $ac_link) 2>conftest.er1
8192   ac_status=$?
8193   grep -v '^ *+' conftest.er1 >conftest.err
8194   rm -f conftest.er1
8195   cat conftest.err >&5
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); } &&
8198          { ac_try='test -z "$ac_c_werror_flag"
8199                          || test ! -s conftest.err'
8200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201   (eval $ac_try) 2>&5
8202   ac_status=$?
8203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204   (exit $ac_status); }; } &&
8205          { ac_try='test -s conftest$ac_exeext'
8206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207   (eval $ac_try) 2>&5
8208   ac_status=$?
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); }; }; then
8211   ac_cv_lib_dl_dlopen=yes
8212 else
8213   echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8215
8216 ac_cv_lib_dl_dlopen=no
8217 fi
8218 rm -f conftest.err conftest.$ac_objext \
8219       conftest$ac_exeext conftest.$ac_ext
8220 LIBS=$ac_check_lib_save_LIBS
8221 fi
8222 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8223 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8224 if test $ac_cv_lib_dl_dlopen = yes; then
8225   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8226 else
8227   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8228 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8229 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8230   echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232   ac_check_lib_save_LIBS=$LIBS
8233 LIBS="-lsvld  $LIBS"
8234 cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h.  */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h.  */
8240
8241 /* Override any gcc2 internal prototype to avoid an error.  */
8242 #ifdef __cplusplus
8243 extern "C"
8244 #endif
8245 /* We use char because int might match the return type of a gcc2
8246    builtin and then its argument prototype would still apply.  */
8247 char dlopen ();
8248 int
8249 main ()
8250 {
8251 dlopen ();
8252   ;
8253   return 0;
8254 }
8255 _ACEOF
8256 rm -f conftest.$ac_objext conftest$ac_exeext
8257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8258   (eval $ac_link) 2>conftest.er1
8259   ac_status=$?
8260   grep -v '^ *+' conftest.er1 >conftest.err
8261   rm -f conftest.er1
8262   cat conftest.err >&5
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); } &&
8265          { ac_try='test -z "$ac_c_werror_flag"
8266                          || test ! -s conftest.err'
8267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268   (eval $ac_try) 2>&5
8269   ac_status=$?
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); }; } &&
8272          { ac_try='test -s conftest$ac_exeext'
8273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274   (eval $ac_try) 2>&5
8275   ac_status=$?
8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); }; }; then
8278   ac_cv_lib_svld_dlopen=yes
8279 else
8280   echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8282
8283 ac_cv_lib_svld_dlopen=no
8284 fi
8285 rm -f conftest.err conftest.$ac_objext \
8286       conftest$ac_exeext conftest.$ac_ext
8287 LIBS=$ac_check_lib_save_LIBS
8288 fi
8289 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8290 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8291 if test $ac_cv_lib_svld_dlopen = yes; then
8292   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8293 else
8294   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8295 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8296 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8297   echo $ECHO_N "(cached) $ECHO_C" >&6
8298 else
8299   ac_check_lib_save_LIBS=$LIBS
8300 LIBS="-ldld  $LIBS"
8301 cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h.  */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h.  */
8307
8308 /* Override any gcc2 internal prototype to avoid an error.  */
8309 #ifdef __cplusplus
8310 extern "C"
8311 #endif
8312 /* We use char because int might match the return type of a gcc2
8313    builtin and then its argument prototype would still apply.  */
8314 char dld_link ();
8315 int
8316 main ()
8317 {
8318 dld_link ();
8319   ;
8320   return 0;
8321 }
8322 _ACEOF
8323 rm -f conftest.$ac_objext conftest$ac_exeext
8324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8325   (eval $ac_link) 2>conftest.er1
8326   ac_status=$?
8327   grep -v '^ *+' conftest.er1 >conftest.err
8328   rm -f conftest.er1
8329   cat conftest.err >&5
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); } &&
8332          { ac_try='test -z "$ac_c_werror_flag"
8333                          || test ! -s conftest.err'
8334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335   (eval $ac_try) 2>&5
8336   ac_status=$?
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); }; } &&
8339          { ac_try='test -s conftest$ac_exeext'
8340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341   (eval $ac_try) 2>&5
8342   ac_status=$?
8343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344   (exit $ac_status); }; }; then
8345   ac_cv_lib_dld_dld_link=yes
8346 else
8347   echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8349
8350 ac_cv_lib_dld_dld_link=no
8351 fi
8352 rm -f conftest.err conftest.$ac_objext \
8353       conftest$ac_exeext conftest.$ac_ext
8354 LIBS=$ac_check_lib_save_LIBS
8355 fi
8356 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8357 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8358 if test $ac_cv_lib_dld_dld_link = yes; then
8359   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8360 fi
8361
8362
8363 fi
8364
8365
8366 fi
8367
8368
8369 fi
8370
8371
8372 fi
8373
8374
8375 fi
8376
8377     ;;
8378   esac
8379
8380   if test "x$lt_cv_dlopen" != xno; then
8381     enable_dlopen=yes
8382   else
8383     enable_dlopen=no
8384   fi
8385
8386   case $lt_cv_dlopen in
8387   dlopen)
8388     save_CPPFLAGS="$CPPFLAGS"
8389     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8390
8391     save_LDFLAGS="$LDFLAGS"
8392     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8393
8394     save_LIBS="$LIBS"
8395     LIBS="$lt_cv_dlopen_libs $LIBS"
8396
8397     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8398 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8399 if test "${lt_cv_dlopen_self+set}" = set; then
8400   echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402           if test "$cross_compiling" = yes; then :
8403   lt_cv_dlopen_self=cross
8404 else
8405   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8406   lt_status=$lt_dlunknown
8407   cat > conftest.$ac_ext <<EOF
8408 #line 8408 "configure"
8409 #include "confdefs.h"
8410
8411 #if HAVE_DLFCN_H
8412 #include <dlfcn.h>
8413 #endif
8414
8415 #include <stdio.h>
8416
8417 #ifdef RTLD_GLOBAL
8418 #  define LT_DLGLOBAL           RTLD_GLOBAL
8419 #else
8420 #  ifdef DL_GLOBAL
8421 #    define LT_DLGLOBAL         DL_GLOBAL
8422 #  else
8423 #    define LT_DLGLOBAL         0
8424 #  endif
8425 #endif
8426
8427 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8428    find out it does not work in some platform. */
8429 #ifndef LT_DLLAZY_OR_NOW
8430 #  ifdef RTLD_LAZY
8431 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8432 #  else
8433 #    ifdef DL_LAZY
8434 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8435 #    else
8436 #      ifdef RTLD_NOW
8437 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8438 #      else
8439 #        ifdef DL_NOW
8440 #          define LT_DLLAZY_OR_NOW      DL_NOW
8441 #        else
8442 #          define LT_DLLAZY_OR_NOW      0
8443 #        endif
8444 #      endif
8445 #    endif
8446 #  endif
8447 #endif
8448
8449 #ifdef __cplusplus
8450 extern "C" void exit (int);
8451 #endif
8452
8453 void fnord() { int i=42;}
8454 int main ()
8455 {
8456   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8457   int status = $lt_dlunknown;
8458
8459   if (self)
8460     {
8461       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8462       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8463       /* dlclose (self); */
8464     }
8465
8466     exit (status);
8467 }
8468 EOF
8469   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8470   (eval $ac_link) 2>&5
8471   ac_status=$?
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8474     (./conftest; exit; ) 2>/dev/null
8475     lt_status=$?
8476     case x$lt_status in
8477       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8478       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8479       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8480     esac
8481   else :
8482     # compilation failed
8483     lt_cv_dlopen_self=no
8484   fi
8485 fi
8486 rm -fr conftest*
8487
8488
8489 fi
8490 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8491 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8492
8493     if test "x$lt_cv_dlopen_self" = xyes; then
8494       LDFLAGS="$LDFLAGS $link_static_flag"
8495       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8496 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8497 if test "${lt_cv_dlopen_self_static+set}" = set; then
8498   echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500           if test "$cross_compiling" = yes; then :
8501   lt_cv_dlopen_self_static=cross
8502 else
8503   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8504   lt_status=$lt_dlunknown
8505   cat > conftest.$ac_ext <<EOF
8506 #line 8506 "configure"
8507 #include "confdefs.h"
8508
8509 #if HAVE_DLFCN_H
8510 #include <dlfcn.h>
8511 #endif
8512
8513 #include <stdio.h>
8514
8515 #ifdef RTLD_GLOBAL
8516 #  define LT_DLGLOBAL           RTLD_GLOBAL
8517 #else
8518 #  ifdef DL_GLOBAL
8519 #    define LT_DLGLOBAL         DL_GLOBAL
8520 #  else
8521 #    define LT_DLGLOBAL         0
8522 #  endif
8523 #endif
8524
8525 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8526    find out it does not work in some platform. */
8527 #ifndef LT_DLLAZY_OR_NOW
8528 #  ifdef RTLD_LAZY
8529 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8530 #  else
8531 #    ifdef DL_LAZY
8532 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8533 #    else
8534 #      ifdef RTLD_NOW
8535 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8536 #      else
8537 #        ifdef DL_NOW
8538 #          define LT_DLLAZY_OR_NOW      DL_NOW
8539 #        else
8540 #          define LT_DLLAZY_OR_NOW      0
8541 #        endif
8542 #      endif
8543 #    endif
8544 #  endif
8545 #endif
8546
8547 #ifdef __cplusplus
8548 extern "C" void exit (int);
8549 #endif
8550
8551 void fnord() { int i=42;}
8552 int main ()
8553 {
8554   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8555   int status = $lt_dlunknown;
8556
8557   if (self)
8558     {
8559       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8560       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8561       /* dlclose (self); */
8562     }
8563
8564     exit (status);
8565 }
8566 EOF
8567   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8568   (eval $ac_link) 2>&5
8569   ac_status=$?
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8572     (./conftest; exit; ) 2>/dev/null
8573     lt_status=$?
8574     case x$lt_status in
8575       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8576       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8577       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8578     esac
8579   else :
8580     # compilation failed
8581     lt_cv_dlopen_self_static=no
8582   fi
8583 fi
8584 rm -fr conftest*
8585
8586
8587 fi
8588 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8589 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8590     fi
8591
8592     CPPFLAGS="$save_CPPFLAGS"
8593     LDFLAGS="$save_LDFLAGS"
8594     LIBS="$save_LIBS"
8595     ;;
8596   esac
8597
8598   case $lt_cv_dlopen_self in
8599   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8600   *) enable_dlopen_self=unknown ;;
8601   esac
8602
8603   case $lt_cv_dlopen_self_static in
8604   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8605   *) enable_dlopen_self_static=unknown ;;
8606   esac
8607 fi
8608
8609
8610 # Report which librarie types wil actually be built
8611 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8612 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8613 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8614 echo "${ECHO_T}$can_build_shared" >&6
8615
8616 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8617 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8618 test "$can_build_shared" = "no" && enable_shared=no
8619
8620 # On AIX, shared libraries and static libraries use the same namespace, and
8621 # are all built from PIC.
8622 case "$host_os" in
8623 aix3*)
8624   test "$enable_shared" = yes && enable_static=no
8625   if test -n "$RANLIB"; then
8626     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8627     postinstall_cmds='$RANLIB $lib'
8628   fi
8629   ;;
8630
8631 aix4*)
8632   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8633     test "$enable_shared" = yes && enable_static=no
8634   fi
8635   ;;
8636   darwin* | rhapsody*)
8637   if test "$GCC" = yes; then
8638     archive_cmds_need_lc=no
8639     case "$host_os" in
8640     rhapsody* | darwin1.[012])
8641       allow_undefined_flag='-undefined suppress'
8642       ;;
8643     *) # Darwin 1.3 on
8644       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8645         allow_undefined_flag='-flat_namespace -undefined suppress'
8646       else
8647         case ${MACOSX_DEPLOYMENT_TARGET} in
8648           10.[012])
8649             allow_undefined_flag='-flat_namespace -undefined suppress'
8650             ;;
8651           10.*)
8652             allow_undefined_flag='-undefined dynamic_lookup'
8653             ;;
8654         esac
8655       fi
8656       ;;
8657     esac
8658     output_verbose_link_cmd='echo'
8659     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8660     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8661     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8662     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}'
8663     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}'
8664     hardcode_direct=no
8665     hardcode_automatic=yes
8666     hardcode_shlibpath_var=unsupported
8667     whole_archive_flag_spec='-all_load $convenience'
8668     link_all_deplibs=yes
8669   else
8670     ld_shlibs=no
8671   fi
8672     ;;
8673 esac
8674 echo "$as_me:$LINENO: result: $enable_shared" >&5
8675 echo "${ECHO_T}$enable_shared" >&6
8676
8677 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8678 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8679 # Make sure either enable_shared or enable_static is yes.
8680 test "$enable_shared" = yes || enable_static=yes
8681 echo "$as_me:$LINENO: result: $enable_static" >&5
8682 echo "${ECHO_T}$enable_static" >&6
8683
8684 # The else clause should only fire when bootstrapping the
8685 # libtool distribution, otherwise you forgot to ship ltmain.sh
8686 # with your package, and you will get complaints that there are
8687 # no rules to generate ltmain.sh.
8688 if test -f "$ltmain"; then
8689   # See if we are running on zsh, and set the options which allow our commands through
8690   # without removal of \ escapes.
8691   if test -n "${ZSH_VERSION+set}" ; then
8692     setopt NO_GLOB_SUBST
8693   fi
8694   # Now quote all the things that may contain metacharacters while being
8695   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8696   # variables and quote the copies for generation of the libtool script.
8697   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8698     SED SHELL STRIP \
8699     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8700     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8701     deplibs_check_method reload_flag reload_cmds need_locks \
8702     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8703     lt_cv_sys_global_symbol_to_c_name_address \
8704     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8705     old_postinstall_cmds old_postuninstall_cmds \
8706     compiler \
8707     CC \
8708     LD \
8709     lt_prog_compiler_wl \
8710     lt_prog_compiler_pic \
8711     lt_prog_compiler_static \
8712     lt_prog_compiler_no_builtin_flag \
8713     export_dynamic_flag_spec \
8714     thread_safe_flag_spec \
8715     whole_archive_flag_spec \
8716     enable_shared_with_static_runtimes \
8717     old_archive_cmds \
8718     old_archive_from_new_cmds \
8719     predep_objects \
8720     postdep_objects \
8721     predeps \
8722     postdeps \
8723     compiler_lib_search_path \
8724     archive_cmds \
8725     archive_expsym_cmds \
8726     postinstall_cmds \
8727     postuninstall_cmds \
8728     old_archive_from_expsyms_cmds \
8729     allow_undefined_flag \
8730     no_undefined_flag \
8731     export_symbols_cmds \
8732     hardcode_libdir_flag_spec \
8733     hardcode_libdir_flag_spec_ld \
8734     hardcode_libdir_separator \
8735     hardcode_automatic \
8736     module_cmds \
8737     module_expsym_cmds \
8738     lt_cv_prog_compiler_c_o \
8739     exclude_expsyms \
8740     include_expsyms; do
8741
8742     case $var in
8743     old_archive_cmds | \
8744     old_archive_from_new_cmds | \
8745     archive_cmds | \
8746     archive_expsym_cmds | \
8747     module_cmds | \
8748     module_expsym_cmds | \
8749     old_archive_from_expsyms_cmds | \
8750     export_symbols_cmds | \
8751     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8752     postinstall_cmds | postuninstall_cmds | \
8753     old_postinstall_cmds | old_postuninstall_cmds | \
8754     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8755       # Double-quote double-evaled strings.
8756       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8757       ;;
8758     *)
8759       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8760       ;;
8761     esac
8762   done
8763
8764   case $lt_echo in
8765   *'\$0 --fallback-echo"')
8766     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8767     ;;
8768   esac
8769
8770 cfgfile="${ofile}T"
8771   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8772   $rm -f "$cfgfile"
8773   { echo "$as_me:$LINENO: creating $ofile" >&5
8774 echo "$as_me: creating $ofile" >&6;}
8775
8776   cat <<__EOF__ >> "$cfgfile"
8777 #! $SHELL
8778
8779 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8780 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8781 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8782 #
8783 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8784 # Free Software Foundation, Inc.
8785 #
8786 # This file is part of GNU Libtool:
8787 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8788 #
8789 # This program is free software; you can redistribute it and/or modify
8790 # it under the terms of the GNU General Public License as published by
8791 # the Free Software Foundation; either version 2 of the License, or
8792 # (at your option) any later version.
8793 #
8794 # This program is distributed in the hope that it will be useful, but
8795 # WITHOUT ANY WARRANTY; without even the implied warranty of
8796 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8797 # General Public License for more details.
8798 #
8799 # You should have received a copy of the GNU General Public License
8800 # along with this program; if not, write to the Free Software
8801 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8802 #
8803 # As a special exception to the GNU General Public License, if you
8804 # distribute this file as part of a program that contains a
8805 # configuration script generated by Autoconf, you may include it under
8806 # the same distribution terms that you use for the rest of that program.
8807
8808 # A sed program that does not truncate output.
8809 SED=$lt_SED
8810
8811 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8812 Xsed="$SED -e s/^X//"
8813
8814 # The HP-UX ksh and POSIX shell print the target directory to stdout
8815 # if CDPATH is set.
8816 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8817
8818 # The names of the tagged configurations supported by this script.
8819 available_tags=
8820
8821 # ### BEGIN LIBTOOL CONFIG
8822
8823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8824
8825 # Shell to use when invoking shell scripts.
8826 SHELL=$lt_SHELL
8827
8828 # Whether or not to build shared libraries.
8829 build_libtool_libs=$enable_shared
8830
8831 # Whether or not to build static libraries.
8832 build_old_libs=$enable_static
8833
8834 # Whether or not to add -lc for building shared libraries.
8835 build_libtool_need_lc=$archive_cmds_need_lc
8836
8837 # Whether or not to disallow shared libs when runtime libs are static
8838 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8839
8840 # Whether or not to optimize for fast installation.
8841 fast_install=$enable_fast_install
8842
8843 # The host system.
8844 host_alias=$host_alias
8845 host=$host
8846
8847 # An echo program that does not interpret backslashes.
8848 echo=$lt_echo
8849
8850 # The archiver.
8851 AR=$lt_AR
8852 AR_FLAGS=$lt_AR_FLAGS
8853
8854 # A C compiler.
8855 LTCC=$lt_LTCC
8856
8857 # A language-specific compiler.
8858 CC=$lt_compiler
8859
8860 # Is the compiler the GNU C compiler?
8861 with_gcc=$GCC
8862
8863 # An ERE matcher.
8864 EGREP=$lt_EGREP
8865
8866 # The linker used to build libraries.
8867 LD=$lt_LD
8868
8869 # Whether we need hard or soft links.
8870 LN_S=$lt_LN_S
8871
8872 # A BSD-compatible nm program.
8873 NM=$lt_NM
8874
8875 # A symbol stripping program
8876 STRIP=$lt_STRIP
8877
8878 # Used to examine libraries when file_magic_cmd begins "file"
8879 MAGIC_CMD=$MAGIC_CMD
8880
8881 # Used on cygwin: DLL creation program.
8882 DLLTOOL="$DLLTOOL"
8883
8884 # Used on cygwin: object dumper.
8885 OBJDUMP="$OBJDUMP"
8886
8887 # Used on cygwin: assembler.
8888 AS="$AS"
8889
8890 # The name of the directory that contains temporary libtool files.
8891 objdir=$objdir
8892
8893 # How to create reloadable object files.
8894 reload_flag=$lt_reload_flag
8895 reload_cmds=$lt_reload_cmds
8896
8897 # How to pass a linker flag through the compiler.
8898 wl=$lt_lt_prog_compiler_wl
8899
8900 # Object file suffix (normally "o").
8901 objext="$ac_objext"
8902
8903 # Old archive suffix (normally "a").
8904 libext="$libext"
8905
8906 # Shared library suffix (normally ".so").
8907 shrext='$shrext'
8908
8909 # Executable file suffix (normally "").
8910 exeext="$exeext"
8911
8912 # Additional compiler flags for building library objects.
8913 pic_flag=$lt_lt_prog_compiler_pic
8914 pic_mode=$pic_mode
8915
8916 # What is the maximum length of a command?
8917 max_cmd_len=$lt_cv_sys_max_cmd_len
8918
8919 # Does compiler simultaneously support -c and -o options?
8920 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8921
8922 # Must we lock files when doing compilation ?
8923 need_locks=$lt_need_locks
8924
8925 # Do we need the lib prefix for modules?
8926 need_lib_prefix=$need_lib_prefix
8927
8928 # Do we need a version for libraries?
8929 need_version=$need_version
8930
8931 # Whether dlopen is supported.
8932 dlopen_support=$enable_dlopen
8933
8934 # Whether dlopen of programs is supported.
8935 dlopen_self=$enable_dlopen_self
8936
8937 # Whether dlopen of statically linked programs is supported.
8938 dlopen_self_static=$enable_dlopen_self_static
8939
8940 # Compiler flag to prevent dynamic linking.
8941 link_static_flag=$lt_lt_prog_compiler_static
8942
8943 # Compiler flag to turn off builtin functions.
8944 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8945
8946 # Compiler flag to allow reflexive dlopens.
8947 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8948
8949 # Compiler flag to generate shared objects directly from archives.
8950 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8951
8952 # Compiler flag to generate thread-safe objects.
8953 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8954
8955 # Library versioning type.
8956 version_type=$version_type
8957
8958 # Format of library name prefix.
8959 libname_spec=$lt_libname_spec
8960
8961 # List of archive names.  First name is the real one, the rest are links.
8962 # The last name is the one that the linker finds with -lNAME.
8963 library_names_spec=$lt_library_names_spec
8964
8965 # The coded name of the library, if different from the real name.
8966 soname_spec=$lt_soname_spec
8967
8968 # Commands used to build and install an old-style archive.
8969 RANLIB=$lt_RANLIB
8970 old_archive_cmds=$lt_old_archive_cmds
8971 old_postinstall_cmds=$lt_old_postinstall_cmds
8972 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8973
8974 # Create an old-style archive from a shared archive.
8975 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8976
8977 # Create a temporary old-style archive to link instead of a shared archive.
8978 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8979
8980 # Commands used to build and install a shared archive.
8981 archive_cmds=$lt_archive_cmds
8982 archive_expsym_cmds=$lt_archive_expsym_cmds
8983 postinstall_cmds=$lt_postinstall_cmds
8984 postuninstall_cmds=$lt_postuninstall_cmds
8985
8986 # Commands used to build a loadable module (assumed same as above if empty)
8987 module_cmds=$lt_module_cmds
8988 module_expsym_cmds=$lt_module_expsym_cmds
8989
8990 # Commands to strip libraries.
8991 old_striplib=$lt_old_striplib
8992 striplib=$lt_striplib
8993
8994 # Dependencies to place before the objects being linked to create a
8995 # shared library.
8996 predep_objects=$lt_predep_objects
8997
8998 # Dependencies to place after the objects being linked to create a
8999 # shared library.
9000 postdep_objects=$lt_postdep_objects
9001
9002 # Dependencies to place before the objects being linked to create a
9003 # shared library.
9004 predeps=$lt_predeps
9005
9006 # Dependencies to place after the objects being linked to create a
9007 # shared library.
9008 postdeps=$lt_postdeps
9009
9010 # The library search path used internally by the compiler when linking
9011 # a shared library.
9012 compiler_lib_search_path=$lt_compiler_lib_search_path
9013
9014 # Method to check whether dependent libraries are shared objects.
9015 deplibs_check_method=$lt_deplibs_check_method
9016
9017 # Command to use when deplibs_check_method == file_magic.
9018 file_magic_cmd=$lt_file_magic_cmd
9019
9020 # Flag that allows shared libraries with undefined symbols to be built.
9021 allow_undefined_flag=$lt_allow_undefined_flag
9022
9023 # Flag that forces no undefined symbols.
9024 no_undefined_flag=$lt_no_undefined_flag
9025
9026 # Commands used to finish a libtool library installation in a directory.
9027 finish_cmds=$lt_finish_cmds
9028
9029 # Same as above, but a single script fragment to be evaled but not shown.
9030 finish_eval=$lt_finish_eval
9031
9032 # Take the output of nm and produce a listing of raw symbols and C names.
9033 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9034
9035 # Transform the output of nm in a proper C declaration
9036 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9037
9038 # Transform the output of nm in a C name address pair
9039 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9040
9041 # This is the shared library runtime path variable.
9042 runpath_var=$runpath_var
9043
9044 # This is the shared library path variable.
9045 shlibpath_var=$shlibpath_var
9046
9047 # Is shlibpath searched before the hard-coded library search path?
9048 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9049
9050 # How to hardcode a shared library path into an executable.
9051 hardcode_action=$hardcode_action
9052
9053 # Whether we should hardcode library paths into libraries.
9054 hardcode_into_libs=$hardcode_into_libs
9055
9056 # Flag to hardcode \$libdir into a binary during linking.
9057 # This must work even if \$libdir does not exist.
9058 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9059
9060 # If ld is used when linking, flag to hardcode \$libdir into
9061 # a binary during linking. This must work even if \$libdir does
9062 # not exist.
9063 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9064
9065 # Whether we need a single -rpath flag with a separated argument.
9066 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9067
9068 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9069 # resulting binary.
9070 hardcode_direct=$hardcode_direct
9071
9072 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9073 # resulting binary.
9074 hardcode_minus_L=$hardcode_minus_L
9075
9076 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9077 # the resulting binary.
9078 hardcode_shlibpath_var=$hardcode_shlibpath_var
9079
9080 # Set to yes if building a shared library automatically hardcodes DIR into the library
9081 # and all subsequent libraries and executables linked against it.
9082 hardcode_automatic=$hardcode_automatic
9083
9084 # Variables whose values should be saved in libtool wrapper scripts and
9085 # restored at relink time.
9086 variables_saved_for_relink="$variables_saved_for_relink"
9087
9088 # Whether libtool must link a program against all its dependency libraries.
9089 link_all_deplibs=$link_all_deplibs
9090
9091 # Compile-time system search path for libraries
9092 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9093
9094 # Run-time system search path for libraries
9095 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9096
9097 # Fix the shell variable \$srcfile for the compiler.
9098 fix_srcfile_path="$fix_srcfile_path"
9099
9100 # Set to yes if exported symbols are required.
9101 always_export_symbols=$always_export_symbols
9102
9103 # The commands to list exported symbols.
9104 export_symbols_cmds=$lt_export_symbols_cmds
9105
9106 # The commands to extract the exported symbol list from a shared archive.
9107 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9108
9109 # Symbols that should not be listed in the preloaded symbols.
9110 exclude_expsyms=$lt_exclude_expsyms
9111
9112 # Symbols that must always be exported.
9113 include_expsyms=$lt_include_expsyms
9114
9115 # ### END LIBTOOL CONFIG
9116
9117 __EOF__
9118
9119
9120   case $host_os in
9121   aix3*)
9122     cat <<\EOF >> "$cfgfile"
9123
9124 # AIX sometimes has problems with the GCC collect2 program.  For some
9125 # reason, if we set the COLLECT_NAMES environment variable, the problems
9126 # vanish in a puff of smoke.
9127 if test "X${COLLECT_NAMES+set}" != Xset; then
9128   COLLECT_NAMES=
9129   export COLLECT_NAMES
9130 fi
9131 EOF
9132     ;;
9133   esac
9134
9135   # We use sed instead of cat because bash on DJGPP gets confused if
9136   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9137   # text mode, it properly converts lines to CR/LF.  This bash problem
9138   # is reportedly fixed, but why not run on old versions too?
9139   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9140
9141   mv -f "$cfgfile" "$ofile" || \
9142     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9143   chmod +x "$ofile"
9144
9145 else
9146   # If there is no Makefile yet, we rely on a make rule to execute
9147   # `config.status --recheck' to rerun these tests and create the
9148   # libtool script then.
9149   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9150   if test -f "$ltmain_in"; then
9151     test -f Makefile && make "$ltmain"
9152   fi
9153 fi
9154
9155
9156 ac_ext=c
9157 ac_cpp='$CPP $CPPFLAGS'
9158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9161
9162 CC="$lt_save_CC"
9163
9164
9165 # Check whether --with-tags or --without-tags was given.
9166 if test "${with_tags+set}" = set; then
9167   withval="$with_tags"
9168   tagnames="$withval"
9169 fi;
9170
9171 if test -f "$ltmain" && test -n "$tagnames"; then
9172   if test ! -f "${ofile}"; then
9173     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9174 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9175   fi
9176
9177   if test -z "$LTCC"; then
9178     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9179     if test -z "$LTCC"; then
9180       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9181 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9182     else
9183       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9184 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9185     fi
9186   fi
9187
9188   # Extract list of available tagged configurations in $ofile.
9189   # Note that this assumes the entire list is on one line.
9190   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9191
9192   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9193   for tagname in $tagnames; do
9194     IFS="$lt_save_ifs"
9195     # Check whether tagname contains only valid characters
9196     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9197     "") ;;
9198     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9199 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9200    { (exit 1); exit 1; }; }
9201         ;;
9202     esac
9203
9204     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9205     then
9206       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9207 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9208    { (exit 1); exit 1; }; }
9209     fi
9210
9211     # Update the list of available tags.
9212     if test -n "$tagname"; then
9213       echo appending configuration tag \"$tagname\" to $ofile
9214
9215       case $tagname in
9216       CXX)
9217         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9218           ac_ext=cc
9219 ac_cpp='$CXXCPP $CPPFLAGS'
9220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9223
9224
9225
9226
9227 archive_cmds_need_lc_CXX=no
9228 allow_undefined_flag_CXX=
9229 always_export_symbols_CXX=no
9230 archive_expsym_cmds_CXX=
9231 export_dynamic_flag_spec_CXX=
9232 hardcode_direct_CXX=no
9233 hardcode_libdir_flag_spec_CXX=
9234 hardcode_libdir_flag_spec_ld_CXX=
9235 hardcode_libdir_separator_CXX=
9236 hardcode_minus_L_CXX=no
9237 hardcode_automatic_CXX=no
9238 module_cmds_CXX=
9239 module_expsym_cmds_CXX=
9240 link_all_deplibs_CXX=unknown
9241 old_archive_cmds_CXX=$old_archive_cmds
9242 no_undefined_flag_CXX=
9243 whole_archive_flag_spec_CXX=
9244 enable_shared_with_static_runtimes_CXX=no
9245
9246 # Dependencies to place before and after the object being linked:
9247 predep_objects_CXX=
9248 postdep_objects_CXX=
9249 predeps_CXX=
9250 postdeps_CXX=
9251 compiler_lib_search_path_CXX=
9252
9253 # Source file extension for C++ test sources.
9254 ac_ext=cc
9255
9256 # Object file extension for compiled C++ test sources.
9257 objext=o
9258 objext_CXX=$objext
9259
9260 # Code to be used in simple compile tests
9261 lt_simple_compile_test_code="int some_variable = 0;\n"
9262
9263 # Code to be used in simple link tests
9264 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9265
9266 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9267
9268 # If no C compiler was specified, use CC.
9269 LTCC=${LTCC-"$CC"}
9270
9271 # Allow CC to be a program name with arguments.
9272 compiler=$CC
9273
9274
9275 # Allow CC to be a program name with arguments.
9276 lt_save_CC=$CC
9277 lt_save_LD=$LD
9278 lt_save_GCC=$GCC
9279 GCC=$GXX
9280 lt_save_with_gnu_ld=$with_gnu_ld
9281 lt_save_path_LD=$lt_cv_path_LD
9282 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9283   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9284 else
9285   unset lt_cv_prog_gnu_ld
9286 fi
9287 if test -n "${lt_cv_path_LDCXX+set}"; then
9288   lt_cv_path_LD=$lt_cv_path_LDCXX
9289 else
9290   unset lt_cv_path_LD
9291 fi
9292 test -z "${LDCXX+set}" || LD=$LDCXX
9293 CC=${CXX-"c++"}
9294 compiler=$CC
9295 compiler_CXX=$CC
9296 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9297
9298 # We don't want -fno-exception wen compiling C++ code, so set the
9299 # no_builtin_flag separately
9300 if test "$GXX" = yes; then
9301   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9302 else
9303   lt_prog_compiler_no_builtin_flag_CXX=
9304 fi
9305
9306 if test "$GXX" = yes; then
9307   # Set up default GNU C++ configuration
9308
9309
9310 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9311 if test "${with_gnu_ld+set}" = set; then
9312   withval="$with_gnu_ld"
9313   test "$withval" = no || with_gnu_ld=yes
9314 else
9315   with_gnu_ld=no
9316 fi;
9317 ac_prog=ld
9318 if test "$GCC" = yes; then
9319   # Check if gcc -print-prog-name=ld gives a path.
9320   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9321 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9322   case $host in
9323   *-*-mingw*)
9324     # gcc leaves a trailing carriage return which upsets mingw
9325     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9326   *)
9327     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9328   esac
9329   case $ac_prog in
9330     # Accept absolute paths.
9331     [\\/]* | ?:[\\/]*)
9332       re_direlt='/[^/][^/]*/\.\./'
9333       # Canonicalize the pathname of ld
9334       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9335       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9336         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9337       done
9338       test -z "$LD" && LD="$ac_prog"
9339       ;;
9340   "")
9341     # If it fails, then pretend we aren't using GCC.
9342     ac_prog=ld
9343     ;;
9344   *)
9345     # If it is relative, then search for the first ld in PATH.
9346     with_gnu_ld=unknown
9347     ;;
9348   esac
9349 elif test "$with_gnu_ld" = yes; then
9350   echo "$as_me:$LINENO: checking for GNU ld" >&5
9351 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9352 else
9353   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9354 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9355 fi
9356 if test "${lt_cv_path_LD+set}" = set; then
9357   echo $ECHO_N "(cached) $ECHO_C" >&6
9358 else
9359   if test -z "$LD"; then
9360   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9361   for ac_dir in $PATH; do
9362     IFS="$lt_save_ifs"
9363     test -z "$ac_dir" && ac_dir=.
9364     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9365       lt_cv_path_LD="$ac_dir/$ac_prog"
9366       # Check to see if the program is GNU ld.  I'd rather use --version,
9367       # but apparently some GNU ld's only accept -v.
9368       # Break only if it was the GNU/non-GNU ld that we prefer.
9369       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9370       *GNU* | *'with BFD'*)
9371         test "$with_gnu_ld" != no && break
9372         ;;
9373       *)
9374         test "$with_gnu_ld" != yes && break
9375         ;;
9376       esac
9377     fi
9378   done
9379   IFS="$lt_save_ifs"
9380 else
9381   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9382 fi
9383 fi
9384
9385 LD="$lt_cv_path_LD"
9386 if test -n "$LD"; then
9387   echo "$as_me:$LINENO: result: $LD" >&5
9388 echo "${ECHO_T}$LD" >&6
9389 else
9390   echo "$as_me:$LINENO: result: no" >&5
9391 echo "${ECHO_T}no" >&6
9392 fi
9393 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9394 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9395    { (exit 1); exit 1; }; }
9396 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9397 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9398 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9399   echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9402 case `$LD -v 2>&1 </dev/null` in
9403 *GNU* | *'with BFD'*)
9404   lt_cv_prog_gnu_ld=yes
9405   ;;
9406 *)
9407   lt_cv_prog_gnu_ld=no
9408   ;;
9409 esac
9410 fi
9411 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9412 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9413 with_gnu_ld=$lt_cv_prog_gnu_ld
9414
9415
9416
9417   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9418   # archiving commands below assume that GNU ld is being used.
9419   if test "$with_gnu_ld" = yes; then
9420     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9421     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'
9422
9423     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9424     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9425
9426     # If archive_cmds runs LD, not CC, wlarc should be empty
9427     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9428     #     investigate it a little bit more. (MM)
9429     wlarc='${wl}'
9430
9431     # ancient GNU ld didn't support --whole-archive et. al.
9432     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9433         grep 'no-whole-archive' > /dev/null; then
9434       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9435     else
9436       whole_archive_flag_spec_CXX=
9437     fi
9438   else
9439     with_gnu_ld=no
9440     wlarc=
9441
9442     # A generic and very simple default shared library creation
9443     # command for GNU C++ for the case where it uses the native
9444     # linker, instead of GNU ld.  If possible, this setting should
9445     # overridden to take advantage of the native linker features on
9446     # the platform it is being used on.
9447     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9448   fi
9449
9450   # Commands to make compiler produce verbose output that lists
9451   # what "hidden" libraries, object files and flags are used when
9452   # linking a shared library.
9453   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9454
9455 else
9456   GXX=no
9457   with_gnu_ld=no
9458   wlarc=
9459 fi
9460
9461 # PORTME: fill in a description of your system's C++ link characteristics
9462 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9463 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9464 ld_shlibs_CXX=yes
9465 case $host_os in
9466   aix3*)
9467     # FIXME: insert proper C++ library support
9468     ld_shlibs_CXX=no
9469     ;;
9470   aix4* | aix5*)
9471     if test "$host_cpu" = ia64; then
9472       # On IA64, the linker does run time linking by default, so we don't
9473       # have to do anything special.
9474       aix_use_runtimelinking=no
9475       exp_sym_flag='-Bexport'
9476       no_entry_flag=""
9477     else
9478       aix_use_runtimelinking=no
9479
9480       # Test if we are trying to use run time linking or normal
9481       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9482       # need to do runtime linking.
9483       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9484         for ld_flag in $LDFLAGS; do
9485           case $ld_flag in
9486           *-brtl*)
9487             aix_use_runtimelinking=yes
9488             break
9489             ;;
9490           esac
9491         done
9492       esac
9493
9494       exp_sym_flag='-bexport'
9495       no_entry_flag='-bnoentry'
9496     fi
9497
9498     # When large executables or shared objects are built, AIX ld can
9499     # have problems creating the table of contents.  If linking a library
9500     # or program results in "error TOC overflow" add -mminimal-toc to
9501     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9502     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9503
9504     archive_cmds_CXX=''
9505     hardcode_direct_CXX=yes
9506     hardcode_libdir_separator_CXX=':'
9507     link_all_deplibs_CXX=yes
9508
9509     if test "$GXX" = yes; then
9510       case $host_os in aix4.012|aix4.012.*)
9511       # We only want to do this on AIX 4.2 and lower, the check
9512       # below for broken collect2 doesn't work under 4.3+
9513         collect2name=`${CC} -print-prog-name=collect2`
9514         if test -f "$collect2name" && \
9515            strings "$collect2name" | grep resolve_lib_name >/dev/null
9516         then
9517           # We have reworked collect2
9518           hardcode_direct_CXX=yes
9519         else
9520           # We have old collect2
9521           hardcode_direct_CXX=unsupported
9522           # It fails to find uninstalled libraries when the uninstalled
9523           # path is not listed in the libpath.  Setting hardcode_minus_L
9524           # to unsupported forces relinking
9525           hardcode_minus_L_CXX=yes
9526           hardcode_libdir_flag_spec_CXX='-L$libdir'
9527           hardcode_libdir_separator_CXX=
9528         fi
9529       esac
9530       shared_flag='-shared'
9531     else
9532       # not using gcc
9533       if test "$host_cpu" = ia64; then
9534         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9535         # chokes on -Wl,-G. The following line is correct:
9536         shared_flag='-G'
9537       else
9538         if test "$aix_use_runtimelinking" = yes; then
9539           shared_flag='${wl}-G'
9540         else
9541           shared_flag='${wl}-bM:SRE'
9542         fi
9543       fi
9544     fi
9545
9546     # It seems that -bexpall does not export symbols beginning with
9547     # underscore (_), so it is better to generate a list of symbols to export.
9548     always_export_symbols_CXX=yes
9549     if test "$aix_use_runtimelinking" = yes; then
9550       # Warning - without using the other runtime loading flags (-brtl),
9551       # -berok will link without error, but may produce a broken library.
9552       allow_undefined_flag_CXX='-berok'
9553       # Determine the default libpath from the value encoded in an empty executable.
9554       cat >conftest.$ac_ext <<_ACEOF
9555 /* confdefs.h.  */
9556 _ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h.  */
9560
9561 int
9562 main ()
9563 {
9564
9565   ;
9566   return 0;
9567 }
9568 _ACEOF
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9571   (eval $ac_link) 2>conftest.er1
9572   ac_status=$?
9573   grep -v '^ *+' conftest.er1 >conftest.err
9574   rm -f conftest.er1
9575   cat conftest.err >&5
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); } &&
9578          { ac_try='test -z "$ac_cxx_werror_flag"
9579                          || test ! -s conftest.err'
9580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581   (eval $ac_try) 2>&5
9582   ac_status=$?
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); }; } &&
9585          { ac_try='test -s conftest$ac_exeext'
9586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587   (eval $ac_try) 2>&5
9588   ac_status=$?
9589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590   (exit $ac_status); }; }; then
9591
9592 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9593 }'`
9594 # Check for a 64-bit object if we didn't find anything.
9595 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; }
9596 }'`; fi
9597 else
9598   echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9600
9601 fi
9602 rm -f conftest.err conftest.$ac_objext \
9603       conftest$ac_exeext conftest.$ac_ext
9604 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9605
9606       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9607
9608       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"
9609      else
9610       if test "$host_cpu" = ia64; then
9611         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9612         allow_undefined_flag_CXX="-z nodefs"
9613         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"
9614       else
9615         # Determine the default libpath from the value encoded in an empty executable.
9616         cat >conftest.$ac_ext <<_ACEOF
9617 /* confdefs.h.  */
9618 _ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h.  */
9622
9623 int
9624 main ()
9625 {
9626
9627   ;
9628   return 0;
9629 }
9630 _ACEOF
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633   (eval $ac_link) 2>conftest.er1
9634   ac_status=$?
9635   grep -v '^ *+' conftest.er1 >conftest.err
9636   rm -f conftest.er1
9637   cat conftest.err >&5
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); } &&
9640          { ac_try='test -z "$ac_cxx_werror_flag"
9641                          || test ! -s conftest.err'
9642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643   (eval $ac_try) 2>&5
9644   ac_status=$?
9645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646   (exit $ac_status); }; } &&
9647          { ac_try='test -s conftest$ac_exeext'
9648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649   (eval $ac_try) 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); }; }; then
9653
9654 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9655 }'`
9656 # Check for a 64-bit object if we didn't find anything.
9657 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; }
9658 }'`; fi
9659 else
9660   echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9662
9663 fi
9664 rm -f conftest.err conftest.$ac_objext \
9665       conftest$ac_exeext conftest.$ac_ext
9666 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9667
9668         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9669         # Warning - without using the other run time loading flags,
9670         # -berok will link without error, but may produce a broken library.
9671         no_undefined_flag_CXX=' ${wl}-bernotok'
9672         allow_undefined_flag_CXX=' ${wl}-berok'
9673         # -bexpall does not export symbols beginning with underscore (_)
9674         always_export_symbols_CXX=yes
9675         # Exported symbols can be pulled into shared objects from archives
9676         whole_archive_flag_spec_CXX=' '
9677         archive_cmds_need_lc_CXX=yes
9678         # This is similar to how AIX traditionally builds it's shared libraries.
9679         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'
9680       fi
9681     fi
9682     ;;
9683   chorus*)
9684     case $cc_basename in
9685       *)
9686         # FIXME: insert proper C++ library support
9687         ld_shlibs_CXX=no
9688         ;;
9689     esac
9690     ;;
9691
9692   cygwin* | mingw* | pw32*)
9693     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9694     # as there is no search path for DLLs.
9695     hardcode_libdir_flag_spec_CXX='-L$libdir'
9696     allow_undefined_flag_CXX=unsupported
9697     always_export_symbols_CXX=no
9698     enable_shared_with_static_runtimes_CXX=yes
9699
9700     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9701       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'
9702       # If the export-symbols file already is a .def file (1st line
9703       # is EXPORTS), use it as is; otherwise, prepend...
9704       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9705         cp $export_symbols $output_objdir/$soname.def;
9706       else
9707         echo EXPORTS > $output_objdir/$soname.def;
9708         cat $export_symbols >> $output_objdir/$soname.def;
9709       fi~
9710       $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'
9711     else
9712       ld_shlibs_CXX=no
9713     fi
9714   ;;
9715
9716   darwin* | rhapsody*)
9717   if test "$GXX" = yes; then
9718     archive_cmds_need_lc_CXX=no
9719     case "$host_os" in
9720     rhapsody* | darwin1.[012])
9721       allow_undefined_flag_CXX='-undefined suppress'
9722       ;;
9723     *) # Darwin 1.3 on
9724       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9725         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9726       else
9727         case ${MACOSX_DEPLOYMENT_TARGET} in
9728           10.[012])
9729             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9730             ;;
9731           10.*)
9732             allow_undefined_flag_CXX='-undefined dynamic_lookup'
9733             ;;
9734         esac
9735       fi
9736       ;;
9737     esac
9738     lt_int_apple_cc_single_mod=no
9739     output_verbose_link_cmd='echo'
9740     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9741       lt_int_apple_cc_single_mod=yes
9742     fi
9743     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9744       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9745     else
9746       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'
9747     fi
9748     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9749
9750     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9751     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9752       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}'
9753     else
9754       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}'
9755     fi
9756     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}'
9757     hardcode_direct_CXX=no
9758     hardcode_automatic_CXX=yes
9759     hardcode_shlibpath_var_CXX=unsupported
9760     whole_archive_flag_spec_CXX='-all_load $convenience'
9761     link_all_deplibs_CXX=yes
9762   else
9763     ld_shlibs_CXX=no
9764   fi
9765     ;;
9766
9767   dgux*)
9768     case $cc_basename in
9769       ec++)
9770         # FIXME: insert proper C++ library support
9771         ld_shlibs_CXX=no
9772         ;;
9773       ghcx)
9774         # Green Hills C++ Compiler
9775         # FIXME: insert proper C++ library support
9776         ld_shlibs_CXX=no
9777         ;;
9778       *)
9779         # FIXME: insert proper C++ library support
9780         ld_shlibs_CXX=no
9781         ;;
9782     esac
9783     ;;
9784   freebsd12*)
9785     # C++ shared libraries reported to be fairly broken before switch to ELF
9786     ld_shlibs_CXX=no
9787     ;;
9788   freebsd-elf*)
9789     archive_cmds_need_lc_CXX=no
9790     ;;
9791   freebsd* | kfreebsd*-gnu)
9792     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9793     # conventions
9794     ld_shlibs_CXX=yes
9795     ;;
9796   gnu*)
9797     ;;
9798   hpux9*)
9799     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9800     hardcode_libdir_separator_CXX=:
9801     export_dynamic_flag_spec_CXX='${wl}-E'
9802     hardcode_direct_CXX=yes
9803     hardcode_minus_L_CXX=yes # Not in the search PATH,
9804                                 # but as the default
9805                                 # location of the library.
9806
9807     case $cc_basename in
9808     CC)
9809       # FIXME: insert proper C++ library support
9810       ld_shlibs_CXX=no
9811       ;;
9812     aCC)
9813       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'
9814       # Commands to make compiler produce verbose output that lists
9815       # what "hidden" libraries, object files and flags are used when
9816       # linking a shared library.
9817       #
9818       # There doesn't appear to be a way to prevent this compiler from
9819       # explicitly linking system object files so we need to strip them
9820       # from the output so that they don't get included in the library
9821       # dependencies.
9822       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'
9823       ;;
9824     *)
9825       if test "$GXX" = yes; then
9826         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'
9827       else
9828         # FIXME: insert proper C++ library support
9829         ld_shlibs_CXX=no
9830       fi
9831       ;;
9832     esac
9833     ;;
9834   hpux10*|hpux11*)
9835     if test $with_gnu_ld = no; then
9836       case "$host_cpu" in
9837       hppa*64*)
9838         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9839         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9840         hardcode_libdir_separator_CXX=:
9841         ;;
9842       ia64*)
9843         hardcode_libdir_flag_spec_CXX='-L$libdir'
9844         ;;
9845       *)
9846         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9847         hardcode_libdir_separator_CXX=:
9848         export_dynamic_flag_spec_CXX='${wl}-E'
9849         ;;
9850       esac
9851     fi
9852     case "$host_cpu" in
9853     hppa*64*)
9854       hardcode_direct_CXX=no
9855       hardcode_shlibpath_var_CXX=no
9856       ;;
9857     ia64*)
9858       hardcode_direct_CXX=no
9859       hardcode_shlibpath_var_CXX=no
9860       hardcode_minus_L_CXX=yes # Not in the search PATH,
9861                                               # but as the default
9862                                               # location of the library.
9863       ;;
9864     *)
9865       hardcode_direct_CXX=yes
9866       hardcode_minus_L_CXX=yes # Not in the search PATH,
9867                                               # but as the default
9868                                               # location of the library.
9869       ;;
9870     esac
9871
9872     case $cc_basename in
9873       CC)
9874         # FIXME: insert proper C++ library support
9875         ld_shlibs_CXX=no
9876         ;;
9877       aCC)
9878         case "$host_cpu" in
9879         hppa*64*|ia64*)
9880           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9881           ;;
9882         *)
9883           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9884           ;;
9885         esac
9886         # Commands to make compiler produce verbose output that lists
9887         # what "hidden" libraries, object files and flags are used when
9888         # linking a shared library.
9889         #
9890         # There doesn't appear to be a way to prevent this compiler from
9891         # explicitly linking system object files so we need to strip them
9892         # from the output so that they don't get included in the library
9893         # dependencies.
9894         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'
9895         ;;
9896       *)
9897         if test "$GXX" = yes; then
9898           if test $with_gnu_ld = no; then
9899             case "$host_cpu" in
9900             ia64*|hppa*64*)
9901               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9902               ;;
9903             *)
9904               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'
9905               ;;
9906             esac
9907           fi
9908         else
9909           # FIXME: insert proper C++ library support
9910           ld_shlibs_CXX=no
9911         fi
9912         ;;
9913     esac
9914     ;;
9915   irix5* | irix6*)
9916     case $cc_basename in
9917       CC)
9918         # SGI C++
9919         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'
9920
9921         # Archives containing C++ object files must be created using
9922         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9923         # necessary to make sure instantiated templates are included
9924         # in the archive.
9925         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9926         ;;
9927       *)
9928         if test "$GXX" = yes; then
9929           if test "$with_gnu_ld" = no; then
9930             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'
9931           else
9932             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'
9933           fi
9934         fi
9935         link_all_deplibs_CXX=yes
9936         ;;
9937     esac
9938     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9939     hardcode_libdir_separator_CXX=:
9940     ;;
9941   linux*)
9942     case $cc_basename in
9943       KCC)
9944         # Kuck and Associates, Inc. (KAI) C++ Compiler
9945
9946         # KCC will only create a shared library if the output file
9947         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9948         # to its proper name (with version) after linking.
9949         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'
9950         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'
9951         # Commands to make compiler produce verbose output that lists
9952         # what "hidden" libraries, object files and flags are used when
9953         # linking a shared library.
9954         #
9955         # There doesn't appear to be a way to prevent this compiler from
9956         # explicitly linking system object files so we need to strip them
9957         # from the output so that they don't get included in the library
9958         # dependencies.
9959         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'
9960
9961         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9962         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9963
9964         # Archives containing C++ object files must be created using
9965         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9966         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9967         ;;
9968       icpc)
9969         # Intel C++
9970         with_gnu_ld=yes
9971         archive_cmds_need_lc_CXX=no
9972         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9973         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'
9974         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9975         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9976         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9977         ;;
9978       cxx)
9979         # Compaq C++
9980         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9981         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'
9982
9983         runpath_var=LD_RUN_PATH
9984         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9985         hardcode_libdir_separator_CXX=:
9986
9987         # Commands to make compiler produce verbose output that lists
9988         # what "hidden" libraries, object files and flags are used when
9989         # linking a shared library.
9990         #
9991         # There doesn't appear to be a way to prevent this compiler from
9992         # explicitly linking system object files so we need to strip them
9993         # from the output so that they don't get included in the library
9994         # dependencies.
9995         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'
9996         ;;
9997     esac
9998     ;;
9999   lynxos*)
10000     # FIXME: insert proper C++ library support
10001     ld_shlibs_CXX=no
10002     ;;
10003   m88k*)
10004     # FIXME: insert proper C++ library support
10005     ld_shlibs_CXX=no
10006     ;;
10007   mvs*)
10008     case $cc_basename in
10009       cxx)
10010         # FIXME: insert proper C++ library support
10011         ld_shlibs_CXX=no
10012         ;;
10013       *)
10014         # FIXME: insert proper C++ library support
10015         ld_shlibs_CXX=no
10016         ;;
10017     esac
10018     ;;
10019   netbsd*)
10020     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10021       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10022       wlarc=
10023       hardcode_libdir_flag_spec_CXX='-R$libdir'
10024       hardcode_direct_CXX=yes
10025       hardcode_shlibpath_var_CXX=no
10026     fi
10027     # Workaround some broken pre-1.5 toolchains
10028     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10029     ;;
10030   osf3*)
10031     case $cc_basename in
10032       KCC)
10033         # Kuck and Associates, Inc. (KAI) C++ Compiler
10034
10035         # KCC will only create a shared library if the output file
10036         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10037         # to its proper name (with version) after linking.
10038         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'
10039
10040         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10041         hardcode_libdir_separator_CXX=:
10042
10043         # Archives containing C++ object files must be created using
10044         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10045         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10046
10047         ;;
10048       RCC)
10049         # Rational C++ 2.4.1
10050         # FIXME: insert proper C++ library support
10051         ld_shlibs_CXX=no
10052         ;;
10053       cxx)
10054         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10055         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'
10056
10057         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10058         hardcode_libdir_separator_CXX=:
10059
10060         # Commands to make compiler produce verbose output that lists
10061         # what "hidden" libraries, object files and flags are used when
10062         # linking a shared library.
10063         #
10064         # There doesn't appear to be a way to prevent this compiler from
10065         # explicitly linking system object files so we need to strip them
10066         # from the output so that they don't get included in the library
10067         # dependencies.
10068         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'
10069         ;;
10070       *)
10071         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10072           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10073           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'
10074
10075           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10076           hardcode_libdir_separator_CXX=:
10077
10078           # Commands to make compiler produce verbose output that lists
10079           # what "hidden" libraries, object files and flags are used when
10080           # linking a shared library.
10081           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10082
10083         else
10084           # FIXME: insert proper C++ library support
10085           ld_shlibs_CXX=no
10086         fi
10087         ;;
10088     esac
10089     ;;
10090   osf4* | osf5*)
10091     case $cc_basename in
10092       KCC)
10093         # Kuck and Associates, Inc. (KAI) C++ Compiler
10094
10095         # KCC will only create a shared library if the output file
10096         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10097         # to its proper name (with version) after linking.
10098         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'
10099
10100         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10101         hardcode_libdir_separator_CXX=:
10102
10103         # Archives containing C++ object files must be created using
10104         # the KAI C++ compiler.
10105         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10106         ;;
10107       RCC)
10108         # Rational C++ 2.4.1
10109         # FIXME: insert proper C++ library support
10110         ld_shlibs_CXX=no
10111         ;;
10112       cxx)
10113         allow_undefined_flag_CXX=' -expect_unresolved \*'
10114         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'
10115         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10116           echo "-hidden">> $lib.exp~
10117           $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~
10118           $rm $lib.exp'
10119
10120         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10121         hardcode_libdir_separator_CXX=:
10122
10123         # Commands to make compiler produce verbose output that lists
10124         # what "hidden" libraries, object files and flags are used when
10125         # linking a shared library.
10126         #
10127         # There doesn't appear to be a way to prevent this compiler from
10128         # explicitly linking system object files so we need to strip them
10129         # from the output so that they don't get included in the library
10130         # dependencies.
10131         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'
10132         ;;
10133       *)
10134         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10135           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10136          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'
10137
10138           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10139           hardcode_libdir_separator_CXX=:
10140
10141           # Commands to make compiler produce verbose output that lists
10142           # what "hidden" libraries, object files and flags are used when
10143           # linking a shared library.
10144           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10145
10146         else
10147           # FIXME: insert proper C++ library support
10148           ld_shlibs_CXX=no
10149         fi
10150         ;;
10151     esac
10152     ;;
10153   psos*)
10154     # FIXME: insert proper C++ library support
10155     ld_shlibs_CXX=no
10156     ;;
10157   sco*)
10158     archive_cmds_need_lc_CXX=no
10159     case $cc_basename in
10160       CC)
10161         # FIXME: insert proper C++ library support
10162         ld_shlibs_CXX=no
10163         ;;
10164       *)
10165         # FIXME: insert proper C++ library support
10166         ld_shlibs_CXX=no
10167         ;;
10168     esac
10169     ;;
10170   sunos4*)
10171     case $cc_basename in
10172       CC)
10173         # Sun C++ 4.x
10174         # FIXME: insert proper C++ library support
10175         ld_shlibs_CXX=no
10176         ;;
10177       lcc)
10178         # Lucid
10179         # FIXME: insert proper C++ library support
10180         ld_shlibs_CXX=no
10181         ;;
10182       *)
10183         # FIXME: insert proper C++ library support
10184         ld_shlibs_CXX=no
10185         ;;
10186     esac
10187     ;;
10188   solaris*)
10189     case $cc_basename in
10190       CC)
10191         # Sun C++ 4.2, 5.x and Centerline C++
10192         no_undefined_flag_CXX=' -zdefs'
10193         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10194         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10195         $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'
10196
10197         hardcode_libdir_flag_spec_CXX='-R$libdir'
10198         hardcode_shlibpath_var_CXX=no
10199         case $host_os in
10200           solaris2.0-5 | solaris2.0-5.*) ;;
10201           *)
10202             # The C++ compiler is used as linker so we must use $wl
10203             # flag to pass the commands to the underlying system
10204             # linker.
10205             # Supported since Solaris 2.6 (maybe 2.5.1?)
10206             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10207             ;;
10208         esac
10209         link_all_deplibs_CXX=yes
10210
10211         # Commands to make compiler produce verbose output that lists
10212         # what "hidden" libraries, object files and flags are used when
10213         # linking a shared library.
10214         #
10215         # There doesn't appear to be a way to prevent this compiler from
10216         # explicitly linking system object files so we need to strip them
10217         # from the output so that they don't get included in the library
10218         # dependencies.
10219         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'
10220
10221         # Archives containing C++ object files must be created using
10222         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10223         # necessary to make sure instantiated templates are included
10224         # in the archive.
10225         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10226         ;;
10227       gcx)
10228         # Green Hills C++ Compiler
10229         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10230
10231         # The C++ compiler must be used to create the archive.
10232         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10233         ;;
10234       *)
10235         # GNU C++ compiler with Solaris linker
10236         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10237           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10238           if $CC --version | grep -v '^2\.7' > /dev/null; then
10239             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10240             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10241                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10242
10243             # Commands to make compiler produce verbose output that lists
10244             # what "hidden" libraries, object files and flags are used when
10245             # linking a shared library.
10246             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10247           else
10248             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10249             # platform.
10250             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10251             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10252                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10253
10254             # Commands to make compiler produce verbose output that lists
10255             # what "hidden" libraries, object files and flags are used when
10256             # linking a shared library.
10257             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10258           fi
10259
10260           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10261         fi
10262         ;;
10263     esac
10264     ;;
10265   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10266     archive_cmds_need_lc_CXX=no
10267     ;;
10268   tandem*)
10269     case $cc_basename in
10270       NCC)
10271         # NonStop-UX NCC 3.20
10272         # FIXME: insert proper C++ library support
10273         ld_shlibs_CXX=no
10274         ;;
10275       *)
10276         # FIXME: insert proper C++ library support
10277         ld_shlibs_CXX=no
10278         ;;
10279     esac
10280     ;;
10281   vxworks*)
10282     # FIXME: insert proper C++ library support
10283     ld_shlibs_CXX=no
10284     ;;
10285   *)
10286     # FIXME: insert proper C++ library support
10287     ld_shlibs_CXX=no
10288     ;;
10289 esac
10290 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10291 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10292 test "$ld_shlibs_CXX" = no && can_build_shared=no
10293
10294 GCC_CXX="$GXX"
10295 LD_CXX="$LD"
10296
10297
10298 cat > conftest.$ac_ext <<EOF
10299 class Foo
10300 {
10301 public:
10302   Foo (void) { a = 0; }
10303 private:
10304   int a;
10305 };
10306 EOF
10307
10308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309   (eval $ac_compile) 2>&5
10310   ac_status=$?
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); }; then
10313   # Parse the compiler output and extract the necessary
10314   # objects, libraries and library flags.
10315
10316   # Sentinel used to keep track of whether or not we are before
10317   # the conftest object file.
10318   pre_test_object_deps_done=no
10319
10320   # The `*' in the case matches for architectures that use `case' in
10321   # $output_verbose_cmd can trigger glob expansion during the loop
10322   # eval without this substitution.
10323   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10324
10325   for p in `eval $output_verbose_link_cmd`; do
10326     case $p in
10327
10328     -L* | -R* | -l*)
10329        # Some compilers place space between "-{L,R}" and the path.
10330        # Remove the space.
10331        if test $p = "-L" \
10332           || test $p = "-R"; then
10333          prev=$p
10334          continue
10335        else
10336          prev=
10337        fi
10338
10339        if test "$pre_test_object_deps_done" = no; then
10340          case $p in
10341          -L* | -R*)
10342            # Internal compiler library paths should come after those
10343            # provided the user.  The postdeps already come after the
10344            # user supplied libs so there is no need to process them.
10345            if test -z "$compiler_lib_search_path_CXX"; then
10346              compiler_lib_search_path_CXX="${prev}${p}"
10347            else
10348              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10349            fi
10350            ;;
10351          # The "-l" case would never come before the object being
10352          # linked, so don't bother handling this case.
10353          esac
10354        else
10355          if test -z "$postdeps_CXX"; then
10356            postdeps_CXX="${prev}${p}"
10357          else
10358            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10359          fi
10360        fi
10361        ;;
10362
10363     *.$objext)
10364        # This assumes that the test object file only shows up
10365        # once in the compiler output.
10366        if test "$p" = "conftest.$objext"; then
10367          pre_test_object_deps_done=yes
10368          continue
10369        fi
10370
10371        if test "$pre_test_object_deps_done" = no; then
10372          if test -z "$predep_objects_CXX"; then
10373            predep_objects_CXX="$p"
10374          else
10375            predep_objects_CXX="$predep_objects_CXX $p"
10376          fi
10377        else
10378          if test -z "$postdep_objects_CXX"; then
10379            postdep_objects_CXX="$p"
10380          else
10381            postdep_objects_CXX="$postdep_objects_CXX $p"
10382          fi
10383        fi
10384        ;;
10385
10386     *) ;; # Ignore the rest.
10387
10388     esac
10389   done
10390
10391   # Clean up.
10392   rm -f a.out a.exe
10393 else
10394   echo "libtool.m4: error: problem compiling CXX test program"
10395 fi
10396
10397 $rm -f confest.$objext
10398
10399 case " $postdeps_CXX " in
10400 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10401 esac
10402
10403 lt_prog_compiler_wl_CXX=
10404 lt_prog_compiler_pic_CXX=
10405 lt_prog_compiler_static_CXX=
10406
10407 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10408 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10409
10410   # C++ specific cases for pic, static, wl, etc.
10411   if test "$GXX" = yes; then
10412     lt_prog_compiler_wl_CXX='-Wl,'
10413     lt_prog_compiler_static_CXX='-static'
10414
10415     case $host_os in
10416     aix*)
10417       # All AIX code is PIC.
10418       if test "$host_cpu" = ia64; then
10419         # AIX 5 now supports IA64 processor
10420         lt_prog_compiler_static_CXX='-Bstatic'
10421       fi
10422       ;;
10423     amigaos*)
10424       # FIXME: we need at least 68020 code to build shared libraries, but
10425       # adding the `-m68020' flag to GCC prevents building anything better,
10426       # like `-m68040'.
10427       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10428       ;;
10429     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10430       # PIC is the default for these OSes.
10431       ;;
10432     mingw* | os2* | pw32*)
10433       # This hack is so that the source file can tell whether it is being
10434       # built for inclusion in a dll (and should export symbols for example).
10435       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10436       ;;
10437     darwin* | rhapsody*)
10438       # PIC is the default on this platform
10439       # Common symbols not allowed in MH_DYLIB files
10440       lt_prog_compiler_pic_CXX='-fno-common'
10441       ;;
10442     *djgpp*)
10443       # DJGPP does not support shared libraries at all
10444       lt_prog_compiler_pic_CXX=
10445       ;;
10446     sysv4*MP*)
10447       if test -d /usr/nec; then
10448         lt_prog_compiler_pic_CXX=-Kconform_pic
10449       fi
10450       ;;
10451     hpux*)
10452       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10453       # not for PA HP-UX.
10454       case "$host_cpu" in
10455       hppa*64*|ia64*)
10456         ;;
10457       *)
10458         lt_prog_compiler_pic_CXX='-fPIC'
10459         ;;
10460       esac
10461       ;;
10462     *)
10463       lt_prog_compiler_pic_CXX='-fPIC'
10464       ;;
10465     esac
10466   else
10467     case $host_os in
10468       aix4* | aix5*)
10469         # All AIX code is PIC.
10470         if test "$host_cpu" = ia64; then
10471           # AIX 5 now supports IA64 processor
10472           lt_prog_compiler_static_CXX='-Bstatic'
10473         else
10474           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10475         fi
10476         ;;
10477       chorus*)
10478         case $cc_basename in
10479         cxch68)
10480           # Green Hills C++ Compiler
10481           # _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"
10482           ;;
10483         esac
10484         ;;
10485       dgux*)
10486         case $cc_basename in
10487           ec++)
10488             lt_prog_compiler_pic_CXX='-KPIC'
10489             ;;
10490           ghcx)
10491             # Green Hills C++ Compiler
10492             lt_prog_compiler_pic_CXX='-pic'
10493             ;;
10494           *)
10495             ;;
10496         esac
10497         ;;
10498       freebsd* | kfreebsd*-gnu)
10499         # FreeBSD uses GNU C++
10500         ;;
10501       hpux9* | hpux10* | hpux11*)
10502         case $cc_basename in
10503           CC)
10504             lt_prog_compiler_wl_CXX='-Wl,'
10505             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10506             if test "$host_cpu" != ia64; then
10507               lt_prog_compiler_pic_CXX='+Z'
10508             fi
10509             ;;
10510           aCC)
10511             lt_prog_compiler_wl_CXX='-Wl,'
10512             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10513             case "$host_cpu" in
10514             hppa*64*|ia64*)
10515               # +Z the default
10516               ;;
10517             *)
10518               lt_prog_compiler_pic_CXX='+Z'
10519               ;;
10520             esac
10521             ;;
10522           *)
10523             ;;
10524         esac
10525         ;;
10526       irix5* | irix6* | nonstopux*)
10527         case $cc_basename in
10528           CC)
10529             lt_prog_compiler_wl_CXX='-Wl,'
10530             lt_prog_compiler_static_CXX='-non_shared'
10531             # CC pic flag -KPIC is the default.
10532             ;;
10533           *)
10534             ;;
10535         esac
10536         ;;
10537       linux*)
10538         case $cc_basename in
10539           KCC)
10540             # KAI C++ Compiler
10541             lt_prog_compiler_wl_CXX='--backend -Wl,'
10542             lt_prog_compiler_pic_CXX='-fPIC'
10543             ;;
10544           icpc)
10545             # Intel C++
10546             lt_prog_compiler_wl_CXX='-Wl,'
10547             lt_prog_compiler_pic_CXX='-KPIC'
10548             lt_prog_compiler_static_CXX='-static'
10549             ;;
10550           cxx)
10551             # Compaq C++
10552             # Make sure the PIC flag is empty.  It appears that all Alpha
10553             # Linux and Compaq Tru64 Unix objects are PIC.
10554             lt_prog_compiler_pic_CXX=
10555             lt_prog_compiler_static_CXX='-non_shared'
10556             ;;
10557           *)
10558             ;;
10559         esac
10560         ;;
10561       lynxos*)
10562         ;;
10563       m88k*)
10564         ;;
10565       mvs*)
10566         case $cc_basename in
10567           cxx)
10568             lt_prog_compiler_pic_CXX='-W c,exportall'
10569             ;;
10570           *)
10571             ;;
10572         esac
10573         ;;
10574       netbsd*)
10575         ;;
10576       osf3* | osf4* | osf5*)
10577         case $cc_basename in
10578           KCC)
10579             lt_prog_compiler_wl_CXX='--backend -Wl,'
10580             ;;
10581           RCC)
10582             # Rational C++ 2.4.1
10583             lt_prog_compiler_pic_CXX='-pic'
10584             ;;
10585           cxx)
10586             # Digital/Compaq C++
10587             lt_prog_compiler_wl_CXX='-Wl,'
10588             # Make sure the PIC flag is empty.  It appears that all Alpha
10589             # Linux and Compaq Tru64 Unix objects are PIC.
10590             lt_prog_compiler_pic_CXX=
10591             lt_prog_compiler_static_CXX='-non_shared'
10592             ;;
10593           *)
10594             ;;
10595         esac
10596         ;;
10597       psos*)
10598         ;;
10599       sco*)
10600         case $cc_basename in
10601           CC)
10602             lt_prog_compiler_pic_CXX='-fPIC'
10603             ;;
10604           *)
10605             ;;
10606         esac
10607         ;;
10608       solaris*)
10609         case $cc_basename in
10610           CC)
10611             # Sun C++ 4.2, 5.x and Centerline C++
10612             lt_prog_compiler_pic_CXX='-KPIC'
10613             lt_prog_compiler_static_CXX='-Bstatic'
10614             lt_prog_compiler_wl_CXX='-Qoption ld '
10615             ;;
10616           gcx)
10617             # Green Hills C++ Compiler
10618             lt_prog_compiler_pic_CXX='-PIC'
10619             ;;
10620           *)
10621             ;;
10622         esac
10623         ;;
10624       sunos4*)
10625         case $cc_basename in
10626           CC)
10627             # Sun C++ 4.x
10628             lt_prog_compiler_pic_CXX='-pic'
10629             lt_prog_compiler_static_CXX='-Bstatic'
10630             ;;
10631           lcc)
10632             # Lucid
10633             lt_prog_compiler_pic_CXX='-pic'
10634             ;;
10635           *)
10636             ;;
10637         esac
10638         ;;
10639       tandem*)
10640         case $cc_basename in
10641           NCC)
10642             # NonStop-UX NCC 3.20
10643             lt_prog_compiler_pic_CXX='-KPIC'
10644             ;;
10645           *)
10646             ;;
10647         esac
10648         ;;
10649       unixware*)
10650         ;;
10651       vxworks*)
10652         ;;
10653       *)
10654         lt_prog_compiler_can_build_shared_CXX=no
10655         ;;
10656     esac
10657   fi
10658
10659 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10660 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10661
10662 #
10663 # Check to make sure the PIC flag actually works.
10664 #
10665 if test -n "$lt_prog_compiler_pic_CXX"; then
10666
10667 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10668 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10669 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10670   echo $ECHO_N "(cached) $ECHO_C" >&6
10671 else
10672   lt_prog_compiler_pic_works_CXX=no
10673   ac_outfile=conftest.$ac_objext
10674    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10675    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10676    # Insert the option either (1) after the last *FLAGS variable, or
10677    # (2) before a word containing "conftest.", or (3) at the end.
10678    # Note that $ac_compile itself does not contain backslashes and begins
10679    # with a dollar sign (not a hyphen), so the echo should work correctly.
10680    # The option is referenced via a variable to avoid confusing sed.
10681    lt_compile=`echo "$ac_compile" | $SED \
10682    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10683    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10684    -e 's:$: $lt_compiler_flag:'`
10685    (eval echo "\"\$as_me:10685: $lt_compile\"" >&5)
10686    (eval "$lt_compile" 2>conftest.err)
10687    ac_status=$?
10688    cat conftest.err >&5
10689    echo "$as_me:10689: \$? = $ac_status" >&5
10690    if (exit $ac_status) && test -s "$ac_outfile"; then
10691      # The compiler can only warn and ignore the option if not recognized
10692      # So say no if there are warnings
10693      if test ! -s conftest.err; then
10694        lt_prog_compiler_pic_works_CXX=yes
10695      fi
10696    fi
10697    $rm conftest*
10698
10699 fi
10700 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10701 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10702
10703 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10704     case $lt_prog_compiler_pic_CXX in
10705      "" | " "*) ;;
10706      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10707      esac
10708 else
10709     lt_prog_compiler_pic_CXX=
10710      lt_prog_compiler_can_build_shared_CXX=no
10711 fi
10712
10713 fi
10714 case "$host_os" in
10715   # For platforms which do not support PIC, -DPIC is meaningless:
10716   *djgpp*)
10717     lt_prog_compiler_pic_CXX=
10718     ;;
10719   *)
10720     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10721     ;;
10722 esac
10723
10724 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10725 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10726 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729   lt_cv_prog_compiler_c_o_CXX=no
10730    $rm -r conftest 2>/dev/null
10731    mkdir conftest
10732    cd conftest
10733    mkdir out
10734    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10735
10736    lt_compiler_flag="-o out/conftest2.$ac_objext"
10737    # Insert the option either (1) after the last *FLAGS variable, or
10738    # (2) before a word containing "conftest.", or (3) at the end.
10739    # Note that $ac_compile itself does not contain backslashes and begins
10740    # with a dollar sign (not a hyphen), so the echo should work correctly.
10741    lt_compile=`echo "$ac_compile" | $SED \
10742    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10743    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10744    -e 's:$: $lt_compiler_flag:'`
10745    (eval echo "\"\$as_me:10745: $lt_compile\"" >&5)
10746    (eval "$lt_compile" 2>out/conftest.err)
10747    ac_status=$?
10748    cat out/conftest.err >&5
10749    echo "$as_me:10749: \$? = $ac_status" >&5
10750    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10751    then
10752      # The compiler can only warn and ignore the option if not recognized
10753      # So say no if there are warnings
10754      if test ! -s out/conftest.err; then
10755        lt_cv_prog_compiler_c_o_CXX=yes
10756      fi
10757    fi
10758    chmod u+w .
10759    $rm conftest*
10760    # SGI C++ compiler will create directory out/ii_files/ for
10761    # template instantiation
10762    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10763    $rm out/* && rmdir out
10764    cd ..
10765    rmdir conftest
10766    $rm conftest*
10767
10768 fi
10769 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10770 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10771
10772
10773 hard_links="nottested"
10774 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10775   # do not overwrite the value of need_locks provided by the user
10776   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10777 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10778   hard_links=yes
10779   $rm conftest*
10780   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10781   touch conftest.a
10782   ln conftest.a conftest.b 2>&5 || hard_links=no
10783   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10784   echo "$as_me:$LINENO: result: $hard_links" >&5
10785 echo "${ECHO_T}$hard_links" >&6
10786   if test "$hard_links" = no; then
10787     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10788 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10789     need_locks=warn
10790   fi
10791 else
10792   need_locks=no
10793 fi
10794
10795 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10796 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10797
10798   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10799   case $host_os in
10800   aix4* | aix5*)
10801     # If we're using GNU nm, then we don't want the "-C" option.
10802     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10803     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10804       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'
10805     else
10806       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'
10807     fi
10808     ;;
10809   pw32*)
10810     export_symbols_cmds_CXX="$ltdll_cmds"
10811   ;;
10812   cygwin* | mingw*)
10813     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10814   ;;
10815   *)
10816     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10817   ;;
10818   esac
10819
10820 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10821 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10822 test "$ld_shlibs_CXX" = no && can_build_shared=no
10823
10824 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10825 if test "$GCC" = yes; then
10826   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10827 fi
10828
10829 #
10830 # Do we need to explicitly link libc?
10831 #
10832 case "x$archive_cmds_need_lc_CXX" in
10833 x|xyes)
10834   # Assume -lc should be added
10835   archive_cmds_need_lc_CXX=yes
10836
10837   if test "$enable_shared" = yes && test "$GCC" = yes; then
10838     case $archive_cmds_CXX in
10839     *'~'*)
10840       # FIXME: we may have to deal with multi-command sequences.
10841       ;;
10842     '$CC '*)
10843       # Test whether the compiler implicitly links with -lc since on some
10844       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10845       # to ld, don't add -lc before -lgcc.
10846       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10847 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10848       $rm conftest*
10849       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10850
10851       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10852   (eval $ac_compile) 2>&5
10853   ac_status=$?
10854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855   (exit $ac_status); } 2>conftest.err; then
10856         soname=conftest
10857         lib=conftest
10858         libobjs=conftest.$ac_objext
10859         deplibs=
10860         wl=$lt_prog_compiler_wl_CXX
10861         compiler_flags=-v
10862         linker_flags=-v
10863         verstring=
10864         output_objdir=.
10865         libname=conftest
10866         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10867         allow_undefined_flag_CXX=
10868         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10869   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10870   ac_status=$?
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); }
10873         then
10874           archive_cmds_need_lc_CXX=no
10875         else
10876           archive_cmds_need_lc_CXX=yes
10877         fi
10878         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10879       else
10880         cat conftest.err 1>&5
10881       fi
10882       $rm conftest*
10883       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10884 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10885       ;;
10886     esac
10887   fi
10888   ;;
10889 esac
10890
10891 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10892 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10893 library_names_spec=
10894 libname_spec='lib$name'
10895 soname_spec=
10896 shrext=".so"
10897 postinstall_cmds=
10898 postuninstall_cmds=
10899 finish_cmds=
10900 finish_eval=
10901 shlibpath_var=
10902 shlibpath_overrides_runpath=unknown
10903 version_type=none
10904 dynamic_linker="$host_os ld.so"
10905 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10906 if test "$GCC" = yes; then
10907   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10908   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10909     # if the path contains ";" then we assume it to be the separator
10910     # otherwise default to the standard path separator (i.e. ":") - it is
10911     # assumed that no part of a normal pathname contains ";" but that should
10912     # okay in the real world where ";" in dirpaths is itself problematic.
10913     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10914   else
10915     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10916   fi
10917 else
10918   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10919 fi
10920 need_lib_prefix=unknown
10921 hardcode_into_libs=no
10922
10923 # when you set need_version to no, make sure it does not cause -set_version
10924 # flags to be left without arguments
10925 need_version=unknown
10926
10927 case $host_os in
10928 aix3*)
10929   version_type=linux
10930   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10931   shlibpath_var=LIBPATH
10932
10933   # AIX 3 has no versioning support, so we append a major version to the name.
10934   soname_spec='${libname}${release}${shared_ext}$major'
10935   ;;
10936
10937 aix4* | aix5*)
10938   version_type=linux
10939   need_lib_prefix=no
10940   need_version=no
10941   hardcode_into_libs=yes
10942   if test "$host_cpu" = ia64; then
10943     # AIX 5 supports IA64
10944     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10945     shlibpath_var=LD_LIBRARY_PATH
10946   else
10947     # With GCC up to 2.95.x, collect2 would create an import file
10948     # for dependence libraries.  The import file would start with
10949     # the line `#! .'.  This would cause the generated library to
10950     # depend on `.', always an invalid library.  This was fixed in
10951     # development snapshots of GCC prior to 3.0.
10952     case $host_os in
10953       aix4 | aix4.[01] | aix4.[01].*)
10954       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10955            echo ' yes '
10956            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10957         :
10958       else
10959         can_build_shared=no
10960       fi
10961       ;;
10962     esac
10963     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10964     # soname into executable. Probably we can add versioning support to
10965     # collect2, so additional links can be useful in future.
10966     if test "$aix_use_runtimelinking" = yes; then
10967       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10968       # instead of lib<name>.a to let people know that these are not
10969       # typical AIX shared libraries.
10970       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971     else
10972       # We preserve .a as extension for shared libraries through AIX4.2
10973       # and later when we are not doing run time linking.
10974       library_names_spec='${libname}${release}.a $libname.a'
10975       soname_spec='${libname}${release}${shared_ext}$major'
10976     fi
10977     shlibpath_var=LIBPATH
10978   fi
10979   ;;
10980
10981 amigaos*)
10982   library_names_spec='$libname.ixlibrary $libname.a'
10983   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10984   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'
10985   ;;
10986
10987 beos*)
10988   library_names_spec='${libname}${shared_ext}'
10989   dynamic_linker="$host_os ld.so"
10990   shlibpath_var=LIBRARY_PATH
10991   ;;
10992
10993 bsdi4*)
10994   version_type=linux
10995   need_version=no
10996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10997   soname_spec='${libname}${release}${shared_ext}$major'
10998   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10999   shlibpath_var=LD_LIBRARY_PATH
11000   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11001   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11002   # the default ld.so.conf also contains /usr/contrib/lib and
11003   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11004   # libtool to hard-code these into programs
11005   ;;
11006
11007 cygwin* | mingw* | pw32*)
11008   version_type=windows
11009   shrext=".dll"
11010   need_version=no
11011   need_lib_prefix=no
11012
11013   case $GCC,$host_os in
11014   yes,cygwin* | yes,mingw* | yes,pw32*)
11015     library_names_spec='$libname.dll.a'
11016     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11017     postinstall_cmds='base_file=`basename \${file}`~
11018       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11019       dldir=$destdir/`dirname \$dlpath`~
11020       test -d \$dldir || mkdir -p \$dldir~
11021       $install_prog $dir/$dlname \$dldir/$dlname'
11022     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11023       dlpath=$dir/\$dldll~
11024        $rm \$dlpath'
11025     shlibpath_overrides_runpath=yes
11026
11027     case $host_os in
11028     cygwin*)
11029       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11030       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11031       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11032       ;;
11033     mingw*)
11034       # MinGW DLLs use traditional 'lib' prefix
11035       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11036       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11037       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11038         # It is most probably a Windows format PATH printed by
11039         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11040         # path with ; separators, and with drive letters. We can handle the
11041         # drive letters (cygwin fileutils understands them), so leave them,
11042         # especially as we might pass files found there to a mingw objdump,
11043         # which wouldn't understand a cygwinified path. Ahh.
11044         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11045       else
11046         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11047       fi
11048       ;;
11049     pw32*)
11050       # pw32 DLLs use 'pw' prefix rather than 'lib'
11051       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11052       ;;
11053     esac
11054     ;;
11055
11056   linux*)
11057     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11058       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11059       supports_anon_versioning=no
11060       case `$LD -v 2>/dev/null` in
11061         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11062         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11063         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11064         *\ 2.11.*) ;; # other 2.11 versions
11065         *) supports_anon_versioning=yes ;;
11066       esac
11067       if test $supports_anon_versioning = yes; then
11068         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11069 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11070 $echo "local: *; };" >> $output_objdir/$libname.ver~
11071         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11072       else
11073         $archive_expsym_cmds="$archive_cmds"
11074       fi
11075     else
11076       ld_shlibs=no
11077     fi
11078     ;;
11079
11080   *)
11081     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11082     ;;
11083   esac
11084   dynamic_linker='Win32 ld.exe'
11085   # FIXME: first we should search . and the directory the executable is in
11086   shlibpath_var=PATH
11087   ;;
11088
11089 darwin* | rhapsody*)
11090   dynamic_linker="$host_os dyld"
11091   version_type=darwin
11092   need_lib_prefix=no
11093   need_version=no
11094   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11095   soname_spec='${libname}${release}${major}$shared_ext'
11096   shlibpath_overrides_runpath=yes
11097   shlibpath_var=DYLD_LIBRARY_PATH
11098   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11099   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11100   if test "$GCC" = yes; then
11101     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"`
11102   else
11103     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11104   fi
11105   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11106   ;;
11107
11108 dgux*)
11109   version_type=linux
11110   need_lib_prefix=no
11111   need_version=no
11112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11113   soname_spec='${libname}${release}${shared_ext}$major'
11114   shlibpath_var=LD_LIBRARY_PATH
11115   ;;
11116
11117 freebsd1*)
11118   dynamic_linker=no
11119   ;;
11120
11121 kfreebsd*-gnu)
11122   version_type=linux
11123   need_lib_prefix=no
11124   need_version=no
11125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11126   soname_spec='${libname}${release}${shared_ext}$major'
11127   shlibpath_var=LD_LIBRARY_PATH
11128   shlibpath_overrides_runpath=no
11129   hardcode_into_libs=yes
11130   dynamic_linker='GNU ld.so'
11131   ;;
11132
11133 freebsd*)
11134   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11135   version_type=freebsd-$objformat
11136   case $version_type in
11137     freebsd-elf*)
11138       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11139       need_version=no
11140       need_lib_prefix=no
11141       ;;
11142     freebsd-*)
11143       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11144       need_version=yes
11145       ;;
11146   esac
11147   shlibpath_var=LD_LIBRARY_PATH
11148   case $host_os in
11149   freebsd2*)
11150     shlibpath_overrides_runpath=yes
11151     ;;
11152   freebsd3.01* | freebsdelf3.01*)
11153     shlibpath_overrides_runpath=yes
11154     hardcode_into_libs=yes
11155     ;;
11156   *) # from 3.2 on
11157     shlibpath_overrides_runpath=no
11158     hardcode_into_libs=yes
11159     ;;
11160   esac
11161   ;;
11162
11163 gnu*)
11164   version_type=linux
11165   need_lib_prefix=no
11166   need_version=no
11167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11168   soname_spec='${libname}${release}${shared_ext}$major'
11169   shlibpath_var=LD_LIBRARY_PATH
11170   hardcode_into_libs=yes
11171   ;;
11172
11173 hpux9* | hpux10* | hpux11*)
11174   # Give a soname corresponding to the major version so that dld.sl refuses to
11175   # link against other versions.
11176   version_type=sunos
11177   need_lib_prefix=no
11178   need_version=no
11179   case "$host_cpu" in
11180   ia64*)
11181     shrext='.so'
11182     hardcode_into_libs=yes
11183     dynamic_linker="$host_os dld.so"
11184     shlibpath_var=LD_LIBRARY_PATH
11185     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11186     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187     soname_spec='${libname}${release}${shared_ext}$major'
11188     if test "X$HPUX_IA64_MODE" = X32; then
11189       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11190     else
11191       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11192     fi
11193     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11194     ;;
11195    hppa*64*)
11196      shrext='.sl'
11197      hardcode_into_libs=yes
11198      dynamic_linker="$host_os dld.sl"
11199      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11200      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11201      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202      soname_spec='${libname}${release}${shared_ext}$major'
11203      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11204      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11205      ;;
11206    *)
11207     shrext='.sl'
11208     dynamic_linker="$host_os dld.sl"
11209     shlibpath_var=SHLIB_PATH
11210     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11211     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11212     soname_spec='${libname}${release}${shared_ext}$major'
11213     ;;
11214   esac
11215   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11216   postinstall_cmds='chmod 555 $lib'
11217   ;;
11218
11219 irix5* | irix6* | nonstopux*)
11220   case $host_os in
11221     nonstopux*) version_type=nonstopux ;;
11222     *)
11223         if test "$lt_cv_prog_gnu_ld" = yes; then
11224                 version_type=linux
11225         else
11226                 version_type=irix
11227         fi ;;
11228   esac
11229   need_lib_prefix=no
11230   need_version=no
11231   soname_spec='${libname}${release}${shared_ext}$major'
11232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11233   case $host_os in
11234   irix5* | nonstopux*)
11235     libsuff= shlibsuff=
11236     ;;
11237   *)
11238     case $LD in # libtool.m4 will add one of these switches to LD
11239     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11240       libsuff= shlibsuff= libmagic=32-bit;;
11241     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11242       libsuff=32 shlibsuff=N32 libmagic=N32;;
11243     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11244       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11245     *) libsuff= shlibsuff= libmagic=never-match;;
11246     esac
11247     ;;
11248   esac
11249   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11250   shlibpath_overrides_runpath=no
11251   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11252   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11253   hardcode_into_libs=yes
11254   ;;
11255
11256 # No shared lib support for Linux oldld, aout, or coff.
11257 linux*oldld* | linux*aout* | linux*coff*)
11258   dynamic_linker=no
11259   ;;
11260
11261 # This must be Linux ELF.
11262 linux*)
11263   version_type=linux
11264   need_lib_prefix=no
11265   need_version=no
11266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267   soname_spec='${libname}${release}${shared_ext}$major'
11268   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11269   shlibpath_var=LD_LIBRARY_PATH
11270   shlibpath_overrides_runpath=no
11271   # This implies no fast_install, which is unacceptable.
11272   # Some rework will be needed to allow for fast_install
11273   # before this can be enabled.
11274   hardcode_into_libs=yes
11275
11276   # Append ld.so.conf contents to the search path
11277   if test -f /etc/ld.so.conf; then
11278     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11279     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11280   fi
11281
11282   case $host_cpu:$lt_cv_cc_64bit_output in
11283   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
11284     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
11285     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
11286     ;;
11287   esac
11288
11289   # We used to test for /lib/ld.so.1 and disable shared libraries on
11290   # powerpc, because MkLinux only supported shared libraries with the
11291   # GNU dynamic linker.  Since this was broken with cross compilers,
11292   # most powerpc-linux boxes support dynamic linking these days and
11293   # people can always --disable-shared, the test was removed, and we
11294   # assume the GNU/Linux dynamic linker is in use.
11295   dynamic_linker='GNU/Linux ld.so'
11296
11297   # Find out which ABI we are using (multilib Linux x86_64 hack).
11298   libsuff=
11299   case "$host_cpu" in
11300   x86_64*)
11301     echo '#line 11301 "configure"' > conftest.$ac_ext
11302     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11303   (eval $ac_compile) 2>&5
11304   ac_status=$?
11305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306   (exit $ac_status); }; then
11307       case `/usr/bin/file conftest.$ac_objext` in
11308       *64-bit*)
11309         libsuff=64
11310         ;;
11311       esac
11312     fi
11313     rm -rf conftest*
11314     ;;
11315   *)
11316     ;;
11317   esac
11318   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11319   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11320   ;;
11321
11322 knetbsd*-gnu)
11323   version_type=linux
11324   need_lib_prefix=no
11325   need_version=no
11326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11327   soname_spec='${libname}${release}${shared_ext}$major'
11328   shlibpath_var=LD_LIBRARY_PATH
11329   shlibpath_overrides_runpath=no
11330   hardcode_into_libs=yes
11331   dynamic_linker='GNU ld.so'
11332   ;;
11333
11334 netbsd*)
11335   version_type=sunos
11336   need_lib_prefix=no
11337   need_version=no
11338   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11340     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11341     dynamic_linker='NetBSD (a.out) ld.so'
11342   else
11343     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11344     soname_spec='${libname}${release}${shared_ext}$major'
11345     dynamic_linker='NetBSD ld.elf_so'
11346   fi
11347   shlibpath_var=LD_LIBRARY_PATH
11348   shlibpath_overrides_runpath=yes
11349   hardcode_into_libs=yes
11350   ;;
11351
11352 newsos6)
11353   version_type=linux
11354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355   shlibpath_var=LD_LIBRARY_PATH
11356   shlibpath_overrides_runpath=yes
11357   ;;
11358
11359 nto-qnx*)
11360   version_type=linux
11361   need_lib_prefix=no
11362   need_version=no
11363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11364   soname_spec='${libname}${release}${shared_ext}$major'
11365   shlibpath_var=LD_LIBRARY_PATH
11366   shlibpath_overrides_runpath=yes
11367   ;;
11368
11369 openbsd*)
11370   version_type=sunos
11371   need_lib_prefix=no
11372   need_version=yes
11373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11374   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11375   shlibpath_var=LD_LIBRARY_PATH
11376   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11377     case $host_os in
11378       openbsd2.[89] | openbsd2.[89].*)
11379         shlibpath_overrides_runpath=no
11380         ;;
11381       *)
11382         shlibpath_overrides_runpath=yes
11383         ;;
11384       esac
11385   else
11386     shlibpath_overrides_runpath=yes
11387   fi
11388   ;;
11389
11390 os2*)
11391   libname_spec='$name'
11392   shrext=".dll"
11393   need_lib_prefix=no
11394   library_names_spec='$libname${shared_ext} $libname.a'
11395   dynamic_linker='OS/2 ld.exe'
11396   shlibpath_var=LIBPATH
11397   ;;
11398
11399 osf3* | osf4* | osf5*)
11400   version_type=osf
11401   need_lib_prefix=no
11402   need_version=no
11403   soname_spec='${libname}${release}${shared_ext}$major'
11404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11405   shlibpath_var=LD_LIBRARY_PATH
11406   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11407   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11408   ;;
11409
11410 sco3.2v5*)
11411   version_type=osf
11412   soname_spec='${libname}${release}${shared_ext}$major'
11413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414   shlibpath_var=LD_LIBRARY_PATH
11415   ;;
11416
11417 solaris*)
11418   version_type=linux
11419   need_lib_prefix=no
11420   need_version=no
11421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422   soname_spec='${libname}${release}${shared_ext}$major'
11423   shlibpath_var=LD_LIBRARY_PATH
11424   shlibpath_overrides_runpath=yes
11425   hardcode_into_libs=yes
11426   # ldd complains unless libraries are executable
11427   postinstall_cmds='chmod +x $lib'
11428   ;;
11429
11430 sunos4*)
11431   version_type=sunos
11432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11433   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11434   shlibpath_var=LD_LIBRARY_PATH
11435   shlibpath_overrides_runpath=yes
11436   if test "$with_gnu_ld" = yes; then
11437     need_lib_prefix=no
11438   fi
11439   need_version=yes
11440   ;;
11441
11442 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11443   version_type=linux
11444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11445   soname_spec='${libname}${release}${shared_ext}$major'
11446   shlibpath_var=LD_LIBRARY_PATH
11447   case $host_vendor in
11448     sni)
11449       shlibpath_overrides_runpath=no
11450       need_lib_prefix=no
11451       export_dynamic_flag_spec='${wl}-Blargedynsym'
11452       runpath_var=LD_RUN_PATH
11453       ;;
11454     siemens)
11455       need_lib_prefix=no
11456       ;;
11457     motorola)
11458       need_lib_prefix=no
11459       need_version=no
11460       shlibpath_overrides_runpath=no
11461       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11462       ;;
11463   esac
11464   ;;
11465
11466 sysv4*MP*)
11467   if test -d /usr/nec ;then
11468     version_type=linux
11469     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11470     soname_spec='$libname${shared_ext}.$major'
11471     shlibpath_var=LD_LIBRARY_PATH
11472   fi
11473   ;;
11474
11475 uts4*)
11476   version_type=linux
11477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11478   soname_spec='${libname}${release}${shared_ext}$major'
11479   shlibpath_var=LD_LIBRARY_PATH
11480   ;;
11481
11482 *)
11483   dynamic_linker=no
11484   ;;
11485 esac
11486 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11487 echo "${ECHO_T}$dynamic_linker" >&6
11488 test "$dynamic_linker" = no && can_build_shared=no
11489
11490 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11491 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11492 hardcode_action_CXX=
11493 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11494    test -n "$runpath_var CXX" || \
11495    test "X$hardcode_automatic_CXX"="Xyes" ; then
11496
11497   # We can hardcode non-existant directories.
11498   if test "$hardcode_direct_CXX" != no &&
11499      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11500      # have to relink, otherwise we might link with an installed library
11501      # when we should be linking with a yet-to-be-installed one
11502      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11503      test "$hardcode_minus_L_CXX" != no; then
11504     # Linking always hardcodes the temporary library directory.
11505     hardcode_action_CXX=relink
11506   else
11507     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11508     hardcode_action_CXX=immediate
11509   fi
11510 else
11511   # We cannot hardcode anything, or else we can only hardcode existing
11512   # directories.
11513   hardcode_action_CXX=unsupported
11514 fi
11515 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11516 echo "${ECHO_T}$hardcode_action_CXX" >&6
11517
11518 if test "$hardcode_action_CXX" = relink; then
11519   # Fast installation is not supported
11520   enable_fast_install=no
11521 elif test "$shlibpath_overrides_runpath" = yes ||
11522      test "$enable_shared" = no; then
11523   # Fast installation is not necessary
11524   enable_fast_install=needless
11525 fi
11526
11527 striplib=
11528 old_striplib=
11529 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11530 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11531 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11532   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11533   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11534   echo "$as_me:$LINENO: result: yes" >&5
11535 echo "${ECHO_T}yes" >&6
11536 else
11537 # FIXME - insert some real tests, host_os isn't really good enough
11538   case $host_os in
11539    darwin*)
11540        if test -n "$STRIP" ; then
11541          striplib="$STRIP -x"
11542          echo "$as_me:$LINENO: result: yes" >&5
11543 echo "${ECHO_T}yes" >&6
11544        else
11545   echo "$as_me:$LINENO: result: no" >&5
11546 echo "${ECHO_T}no" >&6
11547 fi
11548        ;;
11549    *)
11550   echo "$as_me:$LINENO: result: no" >&5
11551 echo "${ECHO_T}no" >&6
11552     ;;
11553   esac
11554 fi
11555
11556 if test "x$enable_dlopen" != xyes; then
11557   enable_dlopen=unknown
11558   enable_dlopen_self=unknown
11559   enable_dlopen_self_static=unknown
11560 else
11561   lt_cv_dlopen=no
11562   lt_cv_dlopen_libs=
11563
11564   case $host_os in
11565   beos*)
11566     lt_cv_dlopen="load_add_on"
11567     lt_cv_dlopen_libs=
11568     lt_cv_dlopen_self=yes
11569     ;;
11570
11571   mingw* | pw32*)
11572     lt_cv_dlopen="LoadLibrary"
11573     lt_cv_dlopen_libs=
11574    ;;
11575
11576   cygwin*)
11577     lt_cv_dlopen="dlopen"
11578     lt_cv_dlopen_libs=
11579    ;;
11580
11581   darwin*)
11582   # if libdl is installed we need to link against it
11583     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11584 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11585 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11586   echo $ECHO_N "(cached) $ECHO_C" >&6
11587 else
11588   ac_check_lib_save_LIBS=$LIBS
11589 LIBS="-ldl  $LIBS"
11590 cat >conftest.$ac_ext <<_ACEOF
11591 /* confdefs.h.  */
11592 _ACEOF
11593 cat confdefs.h >>conftest.$ac_ext
11594 cat >>conftest.$ac_ext <<_ACEOF
11595 /* end confdefs.h.  */
11596
11597 /* Override any gcc2 internal prototype to avoid an error.  */
11598 #ifdef __cplusplus
11599 extern "C"
11600 #endif
11601 /* We use char because int might match the return type of a gcc2
11602    builtin and then its argument prototype would still apply.  */
11603 char dlopen ();
11604 int
11605 main ()
11606 {
11607 dlopen ();
11608   ;
11609   return 0;
11610 }
11611 _ACEOF
11612 rm -f conftest.$ac_objext conftest$ac_exeext
11613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11614   (eval $ac_link) 2>conftest.er1
11615   ac_status=$?
11616   grep -v '^ *+' conftest.er1 >conftest.err
11617   rm -f conftest.er1
11618   cat conftest.err >&5
11619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); } &&
11621          { ac_try='test -z "$ac_cxx_werror_flag"
11622                          || test ! -s conftest.err'
11623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624   (eval $ac_try) 2>&5
11625   ac_status=$?
11626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627   (exit $ac_status); }; } &&
11628          { ac_try='test -s conftest$ac_exeext'
11629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630   (eval $ac_try) 2>&5
11631   ac_status=$?
11632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633   (exit $ac_status); }; }; then
11634   ac_cv_lib_dl_dlopen=yes
11635 else
11636   echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.$ac_ext >&5
11638
11639 ac_cv_lib_dl_dlopen=no
11640 fi
11641 rm -f conftest.err conftest.$ac_objext \
11642       conftest$ac_exeext conftest.$ac_ext
11643 LIBS=$ac_check_lib_save_LIBS
11644 fi
11645 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11646 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11647 if test $ac_cv_lib_dl_dlopen = yes; then
11648   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11649 else
11650
11651     lt_cv_dlopen="dyld"
11652     lt_cv_dlopen_libs=
11653     lt_cv_dlopen_self=yes
11654
11655 fi
11656
11657    ;;
11658
11659   *)
11660     echo "$as_me:$LINENO: checking for shl_load" >&5
11661 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11662 if test "${ac_cv_func_shl_load+set}" = set; then
11663   echo $ECHO_N "(cached) $ECHO_C" >&6
11664 else
11665   cat >conftest.$ac_ext <<_ACEOF
11666 /* confdefs.h.  */
11667 _ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h.  */
11671 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11672    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11673 #define shl_load innocuous_shl_load
11674
11675 /* System header to define __stub macros and hopefully few prototypes,
11676     which can conflict with char shl_load (); below.
11677     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11678     <limits.h> exists even on freestanding compilers.  */
11679
11680 #ifdef __STDC__
11681 # include <limits.h>
11682 #else
11683 # include <assert.h>
11684 #endif
11685
11686 #undef shl_load
11687
11688 /* Override any gcc2 internal prototype to avoid an error.  */
11689 #ifdef __cplusplus
11690 extern "C"
11691 {
11692 #endif
11693 /* We use char because int might match the return type of a gcc2
11694    builtin and then its argument prototype would still apply.  */
11695 char shl_load ();
11696 /* The GNU C library defines this for functions which it implements
11697     to always fail with ENOSYS.  Some functions are actually named
11698     something starting with __ and the normal name is an alias.  */
11699 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11700 choke me
11701 #else
11702 char (*f) () = shl_load;
11703 #endif
11704 #ifdef __cplusplus
11705 }
11706 #endif
11707
11708 int
11709 main ()
11710 {
11711 return f != shl_load;
11712   ;
11713   return 0;
11714 }
11715 _ACEOF
11716 rm -f conftest.$ac_objext conftest$ac_exeext
11717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11718   (eval $ac_link) 2>conftest.er1
11719   ac_status=$?
11720   grep -v '^ *+' conftest.er1 >conftest.err
11721   rm -f conftest.er1
11722   cat conftest.err >&5
11723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); } &&
11725          { ac_try='test -z "$ac_cxx_werror_flag"
11726                          || test ! -s conftest.err'
11727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728   (eval $ac_try) 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); }; } &&
11732          { ac_try='test -s conftest$ac_exeext'
11733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734   (eval $ac_try) 2>&5
11735   ac_status=$?
11736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737   (exit $ac_status); }; }; then
11738   ac_cv_func_shl_load=yes
11739 else
11740   echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11742
11743 ac_cv_func_shl_load=no
11744 fi
11745 rm -f conftest.err conftest.$ac_objext \
11746       conftest$ac_exeext conftest.$ac_ext
11747 fi
11748 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11749 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11750 if test $ac_cv_func_shl_load = yes; then
11751   lt_cv_dlopen="shl_load"
11752 else
11753   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11754 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11755 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11756   echo $ECHO_N "(cached) $ECHO_C" >&6
11757 else
11758   ac_check_lib_save_LIBS=$LIBS
11759 LIBS="-ldld  $LIBS"
11760 cat >conftest.$ac_ext <<_ACEOF
11761 /* confdefs.h.  */
11762 _ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h.  */
11766
11767 /* Override any gcc2 internal prototype to avoid an error.  */
11768 #ifdef __cplusplus
11769 extern "C"
11770 #endif
11771 /* We use char because int might match the return type of a gcc2
11772    builtin and then its argument prototype would still apply.  */
11773 char shl_load ();
11774 int
11775 main ()
11776 {
11777 shl_load ();
11778   ;
11779   return 0;
11780 }
11781 _ACEOF
11782 rm -f conftest.$ac_objext conftest$ac_exeext
11783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11784   (eval $ac_link) 2>conftest.er1
11785   ac_status=$?
11786   grep -v '^ *+' conftest.er1 >conftest.err
11787   rm -f conftest.er1
11788   cat conftest.err >&5
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); } &&
11791          { ac_try='test -z "$ac_cxx_werror_flag"
11792                          || test ! -s conftest.err'
11793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794   (eval $ac_try) 2>&5
11795   ac_status=$?
11796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797   (exit $ac_status); }; } &&
11798          { ac_try='test -s conftest$ac_exeext'
11799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800   (eval $ac_try) 2>&5
11801   ac_status=$?
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); }; }; then
11804   ac_cv_lib_dld_shl_load=yes
11805 else
11806   echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11808
11809 ac_cv_lib_dld_shl_load=no
11810 fi
11811 rm -f conftest.err conftest.$ac_objext \
11812       conftest$ac_exeext conftest.$ac_ext
11813 LIBS=$ac_check_lib_save_LIBS
11814 fi
11815 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11816 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11817 if test $ac_cv_lib_dld_shl_load = yes; then
11818   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11819 else
11820   echo "$as_me:$LINENO: checking for dlopen" >&5
11821 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11822 if test "${ac_cv_func_dlopen+set}" = set; then
11823   echo $ECHO_N "(cached) $ECHO_C" >&6
11824 else
11825   cat >conftest.$ac_ext <<_ACEOF
11826 /* confdefs.h.  */
11827 _ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h.  */
11831 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11833 #define dlopen innocuous_dlopen
11834
11835 /* System header to define __stub macros and hopefully few prototypes,
11836     which can conflict with char dlopen (); below.
11837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11838     <limits.h> exists even on freestanding compilers.  */
11839
11840 #ifdef __STDC__
11841 # include <limits.h>
11842 #else
11843 # include <assert.h>
11844 #endif
11845
11846 #undef dlopen
11847
11848 /* Override any gcc2 internal prototype to avoid an error.  */
11849 #ifdef __cplusplus
11850 extern "C"
11851 {
11852 #endif
11853 /* We use char because int might match the return type of a gcc2
11854    builtin and then its argument prototype would still apply.  */
11855 char dlopen ();
11856 /* The GNU C library defines this for functions which it implements
11857     to always fail with ENOSYS.  Some functions are actually named
11858     something starting with __ and the normal name is an alias.  */
11859 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11860 choke me
11861 #else
11862 char (*f) () = dlopen;
11863 #endif
11864 #ifdef __cplusplus
11865 }
11866 #endif
11867
11868 int
11869 main ()
11870 {
11871 return f != dlopen;
11872   ;
11873   return 0;
11874 }
11875 _ACEOF
11876 rm -f conftest.$ac_objext conftest$ac_exeext
11877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11878   (eval $ac_link) 2>conftest.er1
11879   ac_status=$?
11880   grep -v '^ *+' conftest.er1 >conftest.err
11881   rm -f conftest.er1
11882   cat conftest.err >&5
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); } &&
11885          { ac_try='test -z "$ac_cxx_werror_flag"
11886                          || test ! -s conftest.err'
11887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888   (eval $ac_try) 2>&5
11889   ac_status=$?
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); }; } &&
11892          { ac_try='test -s conftest$ac_exeext'
11893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894   (eval $ac_try) 2>&5
11895   ac_status=$?
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); }; }; then
11898   ac_cv_func_dlopen=yes
11899 else
11900   echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11902
11903 ac_cv_func_dlopen=no
11904 fi
11905 rm -f conftest.err conftest.$ac_objext \
11906       conftest$ac_exeext conftest.$ac_ext
11907 fi
11908 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11909 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11910 if test $ac_cv_func_dlopen = yes; then
11911   lt_cv_dlopen="dlopen"
11912 else
11913   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11914 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11915 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11916   echo $ECHO_N "(cached) $ECHO_C" >&6
11917 else
11918   ac_check_lib_save_LIBS=$LIBS
11919 LIBS="-ldl  $LIBS"
11920 cat >conftest.$ac_ext <<_ACEOF
11921 /* confdefs.h.  */
11922 _ACEOF
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h.  */
11926
11927 /* Override any gcc2 internal prototype to avoid an error.  */
11928 #ifdef __cplusplus
11929 extern "C"
11930 #endif
11931 /* We use char because int might match the return type of a gcc2
11932    builtin and then its argument prototype would still apply.  */
11933 char dlopen ();
11934 int
11935 main ()
11936 {
11937 dlopen ();
11938   ;
11939   return 0;
11940 }
11941 _ACEOF
11942 rm -f conftest.$ac_objext conftest$ac_exeext
11943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11944   (eval $ac_link) 2>conftest.er1
11945   ac_status=$?
11946   grep -v '^ *+' conftest.er1 >conftest.err
11947   rm -f conftest.er1
11948   cat conftest.err >&5
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); } &&
11951          { ac_try='test -z "$ac_cxx_werror_flag"
11952                          || test ! -s conftest.err'
11953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954   (eval $ac_try) 2>&5
11955   ac_status=$?
11956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957   (exit $ac_status); }; } &&
11958          { ac_try='test -s conftest$ac_exeext'
11959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960   (eval $ac_try) 2>&5
11961   ac_status=$?
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); }; }; then
11964   ac_cv_lib_dl_dlopen=yes
11965 else
11966   echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11968
11969 ac_cv_lib_dl_dlopen=no
11970 fi
11971 rm -f conftest.err conftest.$ac_objext \
11972       conftest$ac_exeext conftest.$ac_ext
11973 LIBS=$ac_check_lib_save_LIBS
11974 fi
11975 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11976 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11977 if test $ac_cv_lib_dl_dlopen = yes; then
11978   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11979 else
11980   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11981 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11982 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11983   echo $ECHO_N "(cached) $ECHO_C" >&6
11984 else
11985   ac_check_lib_save_LIBS=$LIBS
11986 LIBS="-lsvld  $LIBS"
11987 cat >conftest.$ac_ext <<_ACEOF
11988 /* confdefs.h.  */
11989 _ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h.  */
11993
11994 /* Override any gcc2 internal prototype to avoid an error.  */
11995 #ifdef __cplusplus
11996 extern "C"
11997 #endif
11998 /* We use char because int might match the return type of a gcc2
11999    builtin and then its argument prototype would still apply.  */
12000 char dlopen ();
12001 int
12002 main ()
12003 {
12004 dlopen ();
12005   ;
12006   return 0;
12007 }
12008 _ACEOF
12009 rm -f conftest.$ac_objext conftest$ac_exeext
12010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12011   (eval $ac_link) 2>conftest.er1
12012   ac_status=$?
12013   grep -v '^ *+' conftest.er1 >conftest.err
12014   rm -f conftest.er1
12015   cat conftest.err >&5
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); } &&
12018          { ac_try='test -z "$ac_cxx_werror_flag"
12019                          || test ! -s conftest.err'
12020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021   (eval $ac_try) 2>&5
12022   ac_status=$?
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); }; } &&
12025          { ac_try='test -s conftest$ac_exeext'
12026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027   (eval $ac_try) 2>&5
12028   ac_status=$?
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); }; }; then
12031   ac_cv_lib_svld_dlopen=yes
12032 else
12033   echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.$ac_ext >&5
12035
12036 ac_cv_lib_svld_dlopen=no
12037 fi
12038 rm -f conftest.err conftest.$ac_objext \
12039       conftest$ac_exeext conftest.$ac_ext
12040 LIBS=$ac_check_lib_save_LIBS
12041 fi
12042 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12043 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12044 if test $ac_cv_lib_svld_dlopen = yes; then
12045   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12046 else
12047   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12048 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12049 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12050   echo $ECHO_N "(cached) $ECHO_C" >&6
12051 else
12052   ac_check_lib_save_LIBS=$LIBS
12053 LIBS="-ldld  $LIBS"
12054 cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h.  */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h.  */
12060
12061 /* Override any gcc2 internal prototype to avoid an error.  */
12062 #ifdef __cplusplus
12063 extern "C"
12064 #endif
12065 /* We use char because int might match the return type of a gcc2
12066    builtin and then its argument prototype would still apply.  */
12067 char dld_link ();
12068 int
12069 main ()
12070 {
12071 dld_link ();
12072   ;
12073   return 0;
12074 }
12075 _ACEOF
12076 rm -f conftest.$ac_objext conftest$ac_exeext
12077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12078   (eval $ac_link) 2>conftest.er1
12079   ac_status=$?
12080   grep -v '^ *+' conftest.er1 >conftest.err
12081   rm -f conftest.er1
12082   cat conftest.err >&5
12083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084   (exit $ac_status); } &&
12085          { ac_try='test -z "$ac_cxx_werror_flag"
12086                          || test ! -s conftest.err'
12087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088   (eval $ac_try) 2>&5
12089   ac_status=$?
12090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091   (exit $ac_status); }; } &&
12092          { ac_try='test -s conftest$ac_exeext'
12093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094   (eval $ac_try) 2>&5
12095   ac_status=$?
12096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097   (exit $ac_status); }; }; then
12098   ac_cv_lib_dld_dld_link=yes
12099 else
12100   echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12102
12103 ac_cv_lib_dld_dld_link=no
12104 fi
12105 rm -f conftest.err conftest.$ac_objext \
12106       conftest$ac_exeext conftest.$ac_ext
12107 LIBS=$ac_check_lib_save_LIBS
12108 fi
12109 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12110 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12111 if test $ac_cv_lib_dld_dld_link = yes; then
12112   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12113 fi
12114
12115
12116 fi
12117
12118
12119 fi
12120
12121
12122 fi
12123
12124
12125 fi
12126
12127
12128 fi
12129
12130     ;;
12131   esac
12132
12133   if test "x$lt_cv_dlopen" != xno; then
12134     enable_dlopen=yes
12135   else
12136     enable_dlopen=no
12137   fi
12138
12139   case $lt_cv_dlopen in
12140   dlopen)
12141     save_CPPFLAGS="$CPPFLAGS"
12142     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12143
12144     save_LDFLAGS="$LDFLAGS"
12145     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12146
12147     save_LIBS="$LIBS"
12148     LIBS="$lt_cv_dlopen_libs $LIBS"
12149
12150     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12151 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12152 if test "${lt_cv_dlopen_self+set}" = set; then
12153   echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155           if test "$cross_compiling" = yes; then :
12156   lt_cv_dlopen_self=cross
12157 else
12158   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12159   lt_status=$lt_dlunknown
12160   cat > conftest.$ac_ext <<EOF
12161 #line 12161 "configure"
12162 #include "confdefs.h"
12163
12164 #if HAVE_DLFCN_H
12165 #include <dlfcn.h>
12166 #endif
12167
12168 #include <stdio.h>
12169
12170 #ifdef RTLD_GLOBAL
12171 #  define LT_DLGLOBAL           RTLD_GLOBAL
12172 #else
12173 #  ifdef DL_GLOBAL
12174 #    define LT_DLGLOBAL         DL_GLOBAL
12175 #  else
12176 #    define LT_DLGLOBAL         0
12177 #  endif
12178 #endif
12179
12180 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12181    find out it does not work in some platform. */
12182 #ifndef LT_DLLAZY_OR_NOW
12183 #  ifdef RTLD_LAZY
12184 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12185 #  else
12186 #    ifdef DL_LAZY
12187 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12188 #    else
12189 #      ifdef RTLD_NOW
12190 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12191 #      else
12192 #        ifdef DL_NOW
12193 #          define LT_DLLAZY_OR_NOW      DL_NOW
12194 #        else
12195 #          define LT_DLLAZY_OR_NOW      0
12196 #        endif
12197 #      endif
12198 #    endif
12199 #  endif
12200 #endif
12201
12202 #ifdef __cplusplus
12203 extern "C" void exit (int);
12204 #endif
12205
12206 void fnord() { int i=42;}
12207 int main ()
12208 {
12209   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12210   int status = $lt_dlunknown;
12211
12212   if (self)
12213     {
12214       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12215       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12216       /* dlclose (self); */
12217     }
12218
12219     exit (status);
12220 }
12221 EOF
12222   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12223   (eval $ac_link) 2>&5
12224   ac_status=$?
12225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12227     (./conftest; exit; ) 2>/dev/null
12228     lt_status=$?
12229     case x$lt_status in
12230       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12231       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12232       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12233     esac
12234   else :
12235     # compilation failed
12236     lt_cv_dlopen_self=no
12237   fi
12238 fi
12239 rm -fr conftest*
12240
12241
12242 fi
12243 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12244 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12245
12246     if test "x$lt_cv_dlopen_self" = xyes; then
12247       LDFLAGS="$LDFLAGS $link_static_flag"
12248       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12249 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12250 if test "${lt_cv_dlopen_self_static+set}" = set; then
12251   echo $ECHO_N "(cached) $ECHO_C" >&6
12252 else
12253           if test "$cross_compiling" = yes; then :
12254   lt_cv_dlopen_self_static=cross
12255 else
12256   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12257   lt_status=$lt_dlunknown
12258   cat > conftest.$ac_ext <<EOF
12259 #line 12259 "configure"
12260 #include "confdefs.h"
12261
12262 #if HAVE_DLFCN_H
12263 #include <dlfcn.h>
12264 #endif
12265
12266 #include <stdio.h>
12267
12268 #ifdef RTLD_GLOBAL
12269 #  define LT_DLGLOBAL           RTLD_GLOBAL
12270 #else
12271 #  ifdef DL_GLOBAL
12272 #    define LT_DLGLOBAL         DL_GLOBAL
12273 #  else
12274 #    define LT_DLGLOBAL         0
12275 #  endif
12276 #endif
12277
12278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12279    find out it does not work in some platform. */
12280 #ifndef LT_DLLAZY_OR_NOW
12281 #  ifdef RTLD_LAZY
12282 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12283 #  else
12284 #    ifdef DL_LAZY
12285 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12286 #    else
12287 #      ifdef RTLD_NOW
12288 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12289 #      else
12290 #        ifdef DL_NOW
12291 #          define LT_DLLAZY_OR_NOW      DL_NOW
12292 #        else
12293 #          define LT_DLLAZY_OR_NOW      0
12294 #        endif
12295 #      endif
12296 #    endif
12297 #  endif
12298 #endif
12299
12300 #ifdef __cplusplus
12301 extern "C" void exit (int);
12302 #endif
12303
12304 void fnord() { int i=42;}
12305 int main ()
12306 {
12307   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12308   int status = $lt_dlunknown;
12309
12310   if (self)
12311     {
12312       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12313       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12314       /* dlclose (self); */
12315     }
12316
12317     exit (status);
12318 }
12319 EOF
12320   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12321   (eval $ac_link) 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12325     (./conftest; exit; ) 2>/dev/null
12326     lt_status=$?
12327     case x$lt_status in
12328       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12329       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12330       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12331     esac
12332   else :
12333     # compilation failed
12334     lt_cv_dlopen_self_static=no
12335   fi
12336 fi
12337 rm -fr conftest*
12338
12339
12340 fi
12341 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12342 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12343     fi
12344
12345     CPPFLAGS="$save_CPPFLAGS"
12346     LDFLAGS="$save_LDFLAGS"
12347     LIBS="$save_LIBS"
12348     ;;
12349   esac
12350
12351   case $lt_cv_dlopen_self in
12352   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12353   *) enable_dlopen_self=unknown ;;
12354   esac
12355
12356   case $lt_cv_dlopen_self_static in
12357   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12358   *) enable_dlopen_self_static=unknown ;;
12359   esac
12360 fi
12361
12362
12363 # The else clause should only fire when bootstrapping the
12364 # libtool distribution, otherwise you forgot to ship ltmain.sh
12365 # with your package, and you will get complaints that there are
12366 # no rules to generate ltmain.sh.
12367 if test -f "$ltmain"; then
12368   # See if we are running on zsh, and set the options which allow our commands through
12369   # without removal of \ escapes.
12370   if test -n "${ZSH_VERSION+set}" ; then
12371     setopt NO_GLOB_SUBST
12372   fi
12373   # Now quote all the things that may contain metacharacters while being
12374   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12375   # variables and quote the copies for generation of the libtool script.
12376   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12377     SED SHELL STRIP \
12378     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12379     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12380     deplibs_check_method reload_flag reload_cmds need_locks \
12381     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12382     lt_cv_sys_global_symbol_to_c_name_address \
12383     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12384     old_postinstall_cmds old_postuninstall_cmds \
12385     compiler_CXX \
12386     CC_CXX \
12387     LD_CXX \
12388     lt_prog_compiler_wl_CXX \
12389     lt_prog_compiler_pic_CXX \
12390     lt_prog_compiler_static_CXX \
12391     lt_prog_compiler_no_builtin_flag_CXX \
12392     export_dynamic_flag_spec_CXX \
12393     thread_safe_flag_spec_CXX \
12394     whole_archive_flag_spec_CXX \
12395     enable_shared_with_static_runtimes_CXX \
12396     old_archive_cmds_CXX \
12397     old_archive_from_new_cmds_CXX \
12398     predep_objects_CXX \
12399     postdep_objects_CXX \
12400     predeps_CXX \
12401     postdeps_CXX \
12402     compiler_lib_search_path_CXX \
12403     archive_cmds_CXX \
12404     archive_expsym_cmds_CXX \
12405     postinstall_cmds_CXX \
12406     postuninstall_cmds_CXX \
12407     old_archive_from_expsyms_cmds_CXX \
12408     allow_undefined_flag_CXX \
12409     no_undefined_flag_CXX \
12410     export_symbols_cmds_CXX \
12411     hardcode_libdir_flag_spec_CXX \
12412     hardcode_libdir_flag_spec_ld_CXX \
12413     hardcode_libdir_separator_CXX \
12414     hardcode_automatic_CXX \
12415     module_cmds_CXX \
12416     module_expsym_cmds_CXX \
12417     lt_cv_prog_compiler_c_o_CXX \
12418     exclude_expsyms_CXX \
12419     include_expsyms_CXX; do
12420
12421     case $var in
12422     old_archive_cmds_CXX | \
12423     old_archive_from_new_cmds_CXX | \
12424     archive_cmds_CXX | \
12425     archive_expsym_cmds_CXX | \
12426     module_cmds_CXX | \
12427     module_expsym_cmds_CXX | \
12428     old_archive_from_expsyms_cmds_CXX | \
12429     export_symbols_cmds_CXX | \
12430     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12431     postinstall_cmds | postuninstall_cmds | \
12432     old_postinstall_cmds | old_postuninstall_cmds | \
12433     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12434       # Double-quote double-evaled strings.
12435       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12436       ;;
12437     *)
12438       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12439       ;;
12440     esac
12441   done
12442
12443   case $lt_echo in
12444   *'\$0 --fallback-echo"')
12445     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12446     ;;
12447   esac
12448
12449 cfgfile="$ofile"
12450
12451   cat <<__EOF__ >> "$cfgfile"
12452 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12453
12454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12455
12456 # Shell to use when invoking shell scripts.
12457 SHELL=$lt_SHELL
12458
12459 # Whether or not to build shared libraries.
12460 build_libtool_libs=$enable_shared
12461
12462 # Whether or not to build static libraries.
12463 build_old_libs=$enable_static
12464
12465 # Whether or not to add -lc for building shared libraries.
12466 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12467
12468 # Whether or not to disallow shared libs when runtime libs are static
12469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12470
12471 # Whether or not to optimize for fast installation.
12472 fast_install=$enable_fast_install
12473
12474 # The host system.
12475 host_alias=$host_alias
12476 host=$host
12477
12478 # An echo program that does not interpret backslashes.
12479 echo=$lt_echo
12480
12481 # The archiver.
12482 AR=$lt_AR
12483 AR_FLAGS=$lt_AR_FLAGS
12484
12485 # A C compiler.
12486 LTCC=$lt_LTCC
12487
12488 # A language-specific compiler.
12489 CC=$lt_compiler_CXX
12490
12491 # Is the compiler the GNU C compiler?
12492 with_gcc=$GCC_CXX
12493
12494 # An ERE matcher.
12495 EGREP=$lt_EGREP
12496
12497 # The linker used to build libraries.
12498 LD=$lt_LD_CXX
12499
12500 # Whether we need hard or soft links.
12501 LN_S=$lt_LN_S
12502
12503 # A BSD-compatible nm program.
12504 NM=$lt_NM
12505
12506 # A symbol stripping program
12507 STRIP=$lt_STRIP
12508
12509 # Used to examine libraries when file_magic_cmd begins "file"
12510 MAGIC_CMD=$MAGIC_CMD
12511
12512 # Used on cygwin: DLL creation program.
12513 DLLTOOL="$DLLTOOL"
12514
12515 # Used on cygwin: object dumper.
12516 OBJDUMP="$OBJDUMP"
12517
12518 # Used on cygwin: assembler.
12519 AS="$AS"
12520
12521 # The name of the directory that contains temporary libtool files.
12522 objdir=$objdir
12523
12524 # How to create reloadable object files.
12525 reload_flag=$lt_reload_flag
12526 reload_cmds=$lt_reload_cmds
12527
12528 # How to pass a linker flag through the compiler.
12529 wl=$lt_lt_prog_compiler_wl_CXX
12530
12531 # Object file suffix (normally "o").
12532 objext="$ac_objext"
12533
12534 # Old archive suffix (normally "a").
12535 libext="$libext"
12536
12537 # Shared library suffix (normally ".so").
12538 shrext='$shrext'
12539
12540 # Executable file suffix (normally "").
12541 exeext="$exeext"
12542
12543 # Additional compiler flags for building library objects.
12544 pic_flag=$lt_lt_prog_compiler_pic_CXX
12545 pic_mode=$pic_mode
12546
12547 # What is the maximum length of a command?
12548 max_cmd_len=$lt_cv_sys_max_cmd_len
12549
12550 # Does compiler simultaneously support -c and -o options?
12551 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12552
12553 # Must we lock files when doing compilation ?
12554 need_locks=$lt_need_locks
12555
12556 # Do we need the lib prefix for modules?
12557 need_lib_prefix=$need_lib_prefix
12558
12559 # Do we need a version for libraries?
12560 need_version=$need_version
12561
12562 # Whether dlopen is supported.
12563 dlopen_support=$enable_dlopen
12564
12565 # Whether dlopen of programs is supported.
12566 dlopen_self=$enable_dlopen_self
12567
12568 # Whether dlopen of statically linked programs is supported.
12569 dlopen_self_static=$enable_dlopen_self_static
12570
12571 # Compiler flag to prevent dynamic linking.
12572 link_static_flag=$lt_lt_prog_compiler_static_CXX
12573
12574 # Compiler flag to turn off builtin functions.
12575 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12576
12577 # Compiler flag to allow reflexive dlopens.
12578 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12579
12580 # Compiler flag to generate shared objects directly from archives.
12581 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12582
12583 # Compiler flag to generate thread-safe objects.
12584 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12585
12586 # Library versioning type.
12587 version_type=$version_type
12588
12589 # Format of library name prefix.
12590 libname_spec=$lt_libname_spec
12591
12592 # List of archive names.  First name is the real one, the rest are links.
12593 # The last name is the one that the linker finds with -lNAME.
12594 library_names_spec=$lt_library_names_spec
12595
12596 # The coded name of the library, if different from the real name.
12597 soname_spec=$lt_soname_spec
12598
12599 # Commands used to build and install an old-style archive.
12600 RANLIB=$lt_RANLIB
12601 old_archive_cmds=$lt_old_archive_cmds_CXX
12602 old_postinstall_cmds=$lt_old_postinstall_cmds
12603 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12604
12605 # Create an old-style archive from a shared archive.
12606 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12607
12608 # Create a temporary old-style archive to link instead of a shared archive.
12609 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12610
12611 # Commands used to build and install a shared archive.
12612 archive_cmds=$lt_archive_cmds_CXX
12613 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12614 postinstall_cmds=$lt_postinstall_cmds
12615 postuninstall_cmds=$lt_postuninstall_cmds
12616
12617 # Commands used to build a loadable module (assumed same as above if empty)
12618 module_cmds=$lt_module_cmds_CXX
12619 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12620
12621 # Commands to strip libraries.
12622 old_striplib=$lt_old_striplib
12623 striplib=$lt_striplib
12624
12625 # Dependencies to place before the objects being linked to create a
12626 # shared library.
12627 predep_objects=$lt_predep_objects_CXX
12628
12629 # Dependencies to place after the objects being linked to create a
12630 # shared library.
12631 postdep_objects=$lt_postdep_objects_CXX
12632
12633 # Dependencies to place before the objects being linked to create a
12634 # shared library.
12635 predeps=$lt_predeps_CXX
12636
12637 # Dependencies to place after the objects being linked to create a
12638 # shared library.
12639 postdeps=$lt_postdeps_CXX
12640
12641 # The library search path used internally by the compiler when linking
12642 # a shared library.
12643 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12644
12645 # Method to check whether dependent libraries are shared objects.
12646 deplibs_check_method=$lt_deplibs_check_method
12647
12648 # Command to use when deplibs_check_method == file_magic.
12649 file_magic_cmd=$lt_file_magic_cmd
12650
12651 # Flag that allows shared libraries with undefined symbols to be built.
12652 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12653
12654 # Flag that forces no undefined symbols.
12655 no_undefined_flag=$lt_no_undefined_flag_CXX
12656
12657 # Commands used to finish a libtool library installation in a directory.
12658 finish_cmds=$lt_finish_cmds
12659
12660 # Same as above, but a single script fragment to be evaled but not shown.
12661 finish_eval=$lt_finish_eval
12662
12663 # Take the output of nm and produce a listing of raw symbols and C names.
12664 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12665
12666 # Transform the output of nm in a proper C declaration
12667 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12668
12669 # Transform the output of nm in a C name address pair
12670 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12671
12672 # This is the shared library runtime path variable.
12673 runpath_var=$runpath_var
12674
12675 # This is the shared library path variable.
12676 shlibpath_var=$shlibpath_var
12677
12678 # Is shlibpath searched before the hard-coded library search path?
12679 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12680
12681 # How to hardcode a shared library path into an executable.
12682 hardcode_action=$hardcode_action_CXX
12683
12684 # Whether we should hardcode library paths into libraries.
12685 hardcode_into_libs=$hardcode_into_libs
12686
12687 # Flag to hardcode \$libdir into a binary during linking.
12688 # This must work even if \$libdir does not exist.
12689 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12690
12691 # If ld is used when linking, flag to hardcode \$libdir into
12692 # a binary during linking. This must work even if \$libdir does
12693 # not exist.
12694 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12695
12696 # Whether we need a single -rpath flag with a separated argument.
12697 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12698
12699 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12700 # resulting binary.
12701 hardcode_direct=$hardcode_direct_CXX
12702
12703 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12704 # resulting binary.
12705 hardcode_minus_L=$hardcode_minus_L_CXX
12706
12707 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12708 # the resulting binary.
12709 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12710
12711 # Set to yes if building a shared library automatically hardcodes DIR into the library
12712 # and all subsequent libraries and executables linked against it.
12713 hardcode_automatic=$hardcode_automatic_CXX
12714
12715 # Variables whose values should be saved in libtool wrapper scripts and
12716 # restored at relink time.
12717 variables_saved_for_relink="$variables_saved_for_relink"
12718
12719 # Whether libtool must link a program against all its dependency libraries.
12720 link_all_deplibs=$link_all_deplibs_CXX
12721
12722 # Compile-time system search path for libraries
12723 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12724
12725 # Run-time system search path for libraries
12726 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12727
12728 # Fix the shell variable \$srcfile for the compiler.
12729 fix_srcfile_path="$fix_srcfile_path_CXX"
12730
12731 # Set to yes if exported symbols are required.
12732 always_export_symbols=$always_export_symbols_CXX
12733
12734 # The commands to list exported symbols.
12735 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12736
12737 # The commands to extract the exported symbol list from a shared archive.
12738 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12739
12740 # Symbols that should not be listed in the preloaded symbols.
12741 exclude_expsyms=$lt_exclude_expsyms_CXX
12742
12743 # Symbols that must always be exported.
12744 include_expsyms=$lt_include_expsyms_CXX
12745
12746 # ### END LIBTOOL TAG CONFIG: $tagname
12747
12748 __EOF__
12749
12750
12751 else
12752   # If there is no Makefile yet, we rely on a make rule to execute
12753   # `config.status --recheck' to rerun these tests and create the
12754   # libtool script then.
12755   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12756   if test -f "$ltmain_in"; then
12757     test -f Makefile && make "$ltmain"
12758   fi
12759 fi
12760
12761
12762 ac_ext=c
12763 ac_cpp='$CPP $CPPFLAGS'
12764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12767
12768 CC=$lt_save_CC
12769 LDCXX=$LD
12770 LD=$lt_save_LD
12771 GCC=$lt_save_GCC
12772 with_gnu_ldcxx=$with_gnu_ld
12773 with_gnu_ld=$lt_save_with_gnu_ld
12774 lt_cv_path_LDCXX=$lt_cv_path_LD
12775 lt_cv_path_LD=$lt_save_path_LD
12776 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12777 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12778
12779         else
12780           tagname=""
12781         fi
12782         ;;
12783
12784       F77)
12785         if test -n "$F77" && test "X$F77" != "Xno"; then
12786
12787 ac_ext=f
12788 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12789 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12790 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12791
12792
12793 archive_cmds_need_lc_F77=no
12794 allow_undefined_flag_F77=
12795 always_export_symbols_F77=no
12796 archive_expsym_cmds_F77=
12797 export_dynamic_flag_spec_F77=
12798 hardcode_direct_F77=no
12799 hardcode_libdir_flag_spec_F77=
12800 hardcode_libdir_flag_spec_ld_F77=
12801 hardcode_libdir_separator_F77=
12802 hardcode_minus_L_F77=no
12803 hardcode_automatic_F77=no
12804 module_cmds_F77=
12805 module_expsym_cmds_F77=
12806 link_all_deplibs_F77=unknown
12807 old_archive_cmds_F77=$old_archive_cmds
12808 no_undefined_flag_F77=
12809 whole_archive_flag_spec_F77=
12810 enable_shared_with_static_runtimes_F77=no
12811
12812 # Source file extension for f77 test sources.
12813 ac_ext=f
12814
12815 # Object file extension for compiled f77 test sources.
12816 objext=o
12817 objext_F77=$objext
12818
12819 # Code to be used in simple compile tests
12820 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12821
12822 # Code to be used in simple link tests
12823 lt_simple_link_test_code="      program t\n      end\n"
12824
12825 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12826
12827 # If no C compiler was specified, use CC.
12828 LTCC=${LTCC-"$CC"}
12829
12830 # Allow CC to be a program name with arguments.
12831 compiler=$CC
12832
12833
12834 # Allow CC to be a program name with arguments.
12835 lt_save_CC="$CC"
12836 CC=${F77-"f77"}
12837 compiler=$CC
12838 compiler_F77=$CC
12839 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12840
12841 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12842 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12843 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12844 echo "${ECHO_T}$can_build_shared" >&6
12845
12846 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12847 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12848 test "$can_build_shared" = "no" && enable_shared=no
12849
12850 # On AIX, shared libraries and static libraries use the same namespace, and
12851 # are all built from PIC.
12852 case "$host_os" in
12853 aix3*)
12854   test "$enable_shared" = yes && enable_static=no
12855   if test -n "$RANLIB"; then
12856     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12857     postinstall_cmds='$RANLIB $lib'
12858   fi
12859   ;;
12860 aix4*)
12861   test "$enable_shared" = yes && enable_static=no
12862   ;;
12863 esac
12864 echo "$as_me:$LINENO: result: $enable_shared" >&5
12865 echo "${ECHO_T}$enable_shared" >&6
12866
12867 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12868 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12869 # Make sure either enable_shared or enable_static is yes.
12870 test "$enable_shared" = yes || enable_static=yes
12871 echo "$as_me:$LINENO: result: $enable_static" >&5
12872 echo "${ECHO_T}$enable_static" >&6
12873
12874 test "$ld_shlibs_F77" = no && can_build_shared=no
12875
12876 GCC_F77="$G77"
12877 LD_F77="$LD"
12878
12879 lt_prog_compiler_wl_F77=
12880 lt_prog_compiler_pic_F77=
12881 lt_prog_compiler_static_F77=
12882
12883 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12884 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12885
12886   if test "$GCC" = yes; then
12887     lt_prog_compiler_wl_F77='-Wl,'
12888     lt_prog_compiler_static_F77='-static'
12889
12890     case $host_os in
12891       aix*)
12892       # All AIX code is PIC.
12893       if test "$host_cpu" = ia64; then
12894         # AIX 5 now supports IA64 processor
12895         lt_prog_compiler_static_F77='-Bstatic'
12896       fi
12897       ;;
12898
12899     amigaos*)
12900       # FIXME: we need at least 68020 code to build shared libraries, but
12901       # adding the `-m68020' flag to GCC prevents building anything better,
12902       # like `-m68040'.
12903       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12904       ;;
12905
12906     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12907       # PIC is the default for these OSes.
12908       ;;
12909
12910     mingw* | pw32* | os2*)
12911       # This hack is so that the source file can tell whether it is being
12912       # built for inclusion in a dll (and should export symbols for example).
12913       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12914       ;;
12915
12916     darwin* | rhapsody*)
12917       # PIC is the default on this platform
12918       # Common symbols not allowed in MH_DYLIB files
12919       lt_prog_compiler_pic_F77='-fno-common'
12920       ;;
12921
12922     msdosdjgpp*)
12923       # Just because we use GCC doesn't mean we suddenly get shared libraries
12924       # on systems that don't support them.
12925       lt_prog_compiler_can_build_shared_F77=no
12926       enable_shared=no
12927       ;;
12928
12929     sysv4*MP*)
12930       if test -d /usr/nec; then
12931         lt_prog_compiler_pic_F77=-Kconform_pic
12932       fi
12933       ;;
12934
12935     hpux*)
12936       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12937       # not for PA HP-UX.
12938       case "$host_cpu" in
12939       hppa*64*|ia64*)
12940         # +Z the default
12941         ;;
12942       *)
12943         lt_prog_compiler_pic_F77='-fPIC'
12944         ;;
12945       esac
12946       ;;
12947
12948     *)
12949       lt_prog_compiler_pic_F77='-fPIC'
12950       ;;
12951     esac
12952   else
12953     # PORTME Check for flag to pass linker flags through the system compiler.
12954     case $host_os in
12955     aix*)
12956       lt_prog_compiler_wl_F77='-Wl,'
12957       if test "$host_cpu" = ia64; then
12958         # AIX 5 now supports IA64 processor
12959         lt_prog_compiler_static_F77='-Bstatic'
12960       else
12961         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12962       fi
12963       ;;
12964
12965     mingw* | pw32* | os2*)
12966       # This hack is so that the source file can tell whether it is being
12967       # built for inclusion in a dll (and should export symbols for example).
12968       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12969       ;;
12970
12971     hpux9* | hpux10* | hpux11*)
12972       lt_prog_compiler_wl_F77='-Wl,'
12973       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12974       # not for PA HP-UX.
12975       case "$host_cpu" in
12976       hppa*64*|ia64*)
12977         # +Z the default
12978         ;;
12979       *)
12980         lt_prog_compiler_pic_F77='+Z'
12981         ;;
12982       esac
12983       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12984       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12985       ;;
12986
12987     irix5* | irix6* | nonstopux*)
12988       lt_prog_compiler_wl_F77='-Wl,'
12989       # PIC (with -KPIC) is the default.
12990       lt_prog_compiler_static_F77='-non_shared'
12991       ;;
12992
12993     newsos6)
12994       lt_prog_compiler_pic_F77='-KPIC'
12995       lt_prog_compiler_static_F77='-Bstatic'
12996       ;;
12997
12998     linux*)
12999       case $CC in
13000       icc* | ecc*)
13001         lt_prog_compiler_wl_F77='-Wl,'
13002         lt_prog_compiler_pic_F77='-KPIC'
13003         lt_prog_compiler_static_F77='-static'
13004         ;;
13005       ccc*)
13006         lt_prog_compiler_wl_F77='-Wl,'
13007         # All Alpha code is PIC.
13008         lt_prog_compiler_static_F77='-non_shared'
13009         ;;
13010       esac
13011       ;;
13012
13013     osf3* | osf4* | osf5*)
13014       lt_prog_compiler_wl_F77='-Wl,'
13015       # All OSF/1 code is PIC.
13016       lt_prog_compiler_static_F77='-non_shared'
13017       ;;
13018
13019     sco3.2v5*)
13020       lt_prog_compiler_pic_F77='-Kpic'
13021       lt_prog_compiler_static_F77='-dn'
13022       ;;
13023
13024     solaris*)
13025       lt_prog_compiler_wl_F77='-Wl,'
13026       lt_prog_compiler_pic_F77='-KPIC'
13027       lt_prog_compiler_static_F77='-Bstatic'
13028       ;;
13029
13030     sunos4*)
13031       lt_prog_compiler_wl_F77='-Qoption ld '
13032       lt_prog_compiler_pic_F77='-PIC'
13033       lt_prog_compiler_static_F77='-Bstatic'
13034       ;;
13035
13036     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13037       lt_prog_compiler_wl_F77='-Wl,'
13038       lt_prog_compiler_pic_F77='-KPIC'
13039       lt_prog_compiler_static_F77='-Bstatic'
13040       ;;
13041
13042     sysv4*MP*)
13043       if test -d /usr/nec ;then
13044         lt_prog_compiler_pic_F77='-Kconform_pic'
13045         lt_prog_compiler_static_F77='-Bstatic'
13046       fi
13047       ;;
13048
13049     uts4*)
13050       lt_prog_compiler_pic_F77='-pic'
13051       lt_prog_compiler_static_F77='-Bstatic'
13052       ;;
13053
13054     *)
13055       lt_prog_compiler_can_build_shared_F77=no
13056       ;;
13057     esac
13058   fi
13059
13060 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13061 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13062
13063 #
13064 # Check to make sure the PIC flag actually works.
13065 #
13066 if test -n "$lt_prog_compiler_pic_F77"; then
13067
13068 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13069 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13070 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13071   echo $ECHO_N "(cached) $ECHO_C" >&6
13072 else
13073   lt_prog_compiler_pic_works_F77=no
13074   ac_outfile=conftest.$ac_objext
13075    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13076    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13077    # Insert the option either (1) after the last *FLAGS variable, or
13078    # (2) before a word containing "conftest.", or (3) at the end.
13079    # Note that $ac_compile itself does not contain backslashes and begins
13080    # with a dollar sign (not a hyphen), so the echo should work correctly.
13081    # The option is referenced via a variable to avoid confusing sed.
13082    lt_compile=`echo "$ac_compile" | $SED \
13083    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13084    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13085    -e 's:$: $lt_compiler_flag:'`
13086    (eval echo "\"\$as_me:13086: $lt_compile\"" >&5)
13087    (eval "$lt_compile" 2>conftest.err)
13088    ac_status=$?
13089    cat conftest.err >&5
13090    echo "$as_me:13090: \$? = $ac_status" >&5
13091    if (exit $ac_status) && test -s "$ac_outfile"; then
13092      # The compiler can only warn and ignore the option if not recognized
13093      # So say no if there are warnings
13094      if test ! -s conftest.err; then
13095        lt_prog_compiler_pic_works_F77=yes
13096      fi
13097    fi
13098    $rm conftest*
13099
13100 fi
13101 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13102 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13103
13104 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13105     case $lt_prog_compiler_pic_F77 in
13106      "" | " "*) ;;
13107      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13108      esac
13109 else
13110     lt_prog_compiler_pic_F77=
13111      lt_prog_compiler_can_build_shared_F77=no
13112 fi
13113
13114 fi
13115 case "$host_os" in
13116   # For platforms which do not support PIC, -DPIC is meaningless:
13117   *djgpp*)
13118     lt_prog_compiler_pic_F77=
13119     ;;
13120   *)
13121     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13122     ;;
13123 esac
13124
13125 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13126 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13127 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13128   echo $ECHO_N "(cached) $ECHO_C" >&6
13129 else
13130   lt_cv_prog_compiler_c_o_F77=no
13131    $rm -r conftest 2>/dev/null
13132    mkdir conftest
13133    cd conftest
13134    mkdir out
13135    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13136
13137    lt_compiler_flag="-o out/conftest2.$ac_objext"
13138    # Insert the option either (1) after the last *FLAGS variable, or
13139    # (2) before a word containing "conftest.", or (3) at the end.
13140    # Note that $ac_compile itself does not contain backslashes and begins
13141    # with a dollar sign (not a hyphen), so the echo should work correctly.
13142    lt_compile=`echo "$ac_compile" | $SED \
13143    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13144    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13145    -e 's:$: $lt_compiler_flag:'`
13146    (eval echo "\"\$as_me:13146: $lt_compile\"" >&5)
13147    (eval "$lt_compile" 2>out/conftest.err)
13148    ac_status=$?
13149    cat out/conftest.err >&5
13150    echo "$as_me:13150: \$? = $ac_status" >&5
13151    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13152    then
13153      # The compiler can only warn and ignore the option if not recognized
13154      # So say no if there are warnings
13155      if test ! -s out/conftest.err; then
13156        lt_cv_prog_compiler_c_o_F77=yes
13157      fi
13158    fi
13159    chmod u+w .
13160    $rm conftest*
13161    # SGI C++ compiler will create directory out/ii_files/ for
13162    # template instantiation
13163    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13164    $rm out/* && rmdir out
13165    cd ..
13166    rmdir conftest
13167    $rm conftest*
13168
13169 fi
13170 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13171 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13172
13173
13174 hard_links="nottested"
13175 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13176   # do not overwrite the value of need_locks provided by the user
13177   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13178 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13179   hard_links=yes
13180   $rm conftest*
13181   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13182   touch conftest.a
13183   ln conftest.a conftest.b 2>&5 || hard_links=no
13184   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13185   echo "$as_me:$LINENO: result: $hard_links" >&5
13186 echo "${ECHO_T}$hard_links" >&6
13187   if test "$hard_links" = no; then
13188     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13189 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13190     need_locks=warn
13191   fi
13192 else
13193   need_locks=no
13194 fi
13195
13196 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13197 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13198
13199   runpath_var=
13200   allow_undefined_flag_F77=
13201   enable_shared_with_static_runtimes_F77=no
13202   archive_cmds_F77=
13203   archive_expsym_cmds_F77=
13204   old_archive_From_new_cmds_F77=
13205   old_archive_from_expsyms_cmds_F77=
13206   export_dynamic_flag_spec_F77=
13207   whole_archive_flag_spec_F77=
13208   thread_safe_flag_spec_F77=
13209   hardcode_libdir_flag_spec_F77=
13210   hardcode_libdir_flag_spec_ld_F77=
13211   hardcode_libdir_separator_F77=
13212   hardcode_direct_F77=no
13213   hardcode_minus_L_F77=no
13214   hardcode_shlibpath_var_F77=unsupported
13215   link_all_deplibs_F77=unknown
13216   hardcode_automatic_F77=no
13217   module_cmds_F77=
13218   module_expsym_cmds_F77=
13219   always_export_symbols_F77=no
13220   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13221   # include_expsyms should be a list of space-separated symbols to be *always*
13222   # included in the symbol list
13223   include_expsyms_F77=
13224   # exclude_expsyms can be an extended regexp of symbols to exclude
13225   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13226   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13227   # as well as any symbol that contains `d'.
13228   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13229   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13230   # platforms (ab)use it in PIC code, but their linkers get confused if
13231   # the symbol is explicitly referenced.  Since portable code cannot
13232   # rely on this symbol name, it's probably fine to never include it in
13233   # preloaded symbol tables.
13234   extract_expsyms_cmds=
13235
13236   case $host_os in
13237   cygwin* | mingw* | pw32*)
13238     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13239     # When not using gcc, we currently assume that we are using
13240     # Microsoft Visual C++.
13241     if test "$GCC" != yes; then
13242       with_gnu_ld=no
13243     fi
13244     ;;
13245   openbsd*)
13246     with_gnu_ld=no
13247     ;;
13248   esac
13249
13250   ld_shlibs_F77=yes
13251   if test "$with_gnu_ld" = yes; then
13252     # If archive_cmds runs LD, not CC, wlarc should be empty
13253     wlarc='${wl}'
13254
13255     # See if GNU ld supports shared libraries.
13256     case $host_os in
13257     aix3* | aix4* | aix5*)
13258       # On AIX/PPC, the GNU linker is very broken
13259       if test "$host_cpu" != ia64; then
13260         ld_shlibs_F77=no
13261         cat <<EOF 1>&2
13262
13263 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13264 *** to be unable to reliably create shared libraries on AIX.
13265 *** Therefore, libtool is disabling shared libraries support.  If you
13266 *** really care for shared libraries, you may want to modify your PATH
13267 *** so that a non-GNU linker is found, and then restart.
13268
13269 EOF
13270       fi
13271       ;;
13272
13273     amigaos*)
13274       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)'
13275       hardcode_libdir_flag_spec_F77='-L$libdir'
13276       hardcode_minus_L_F77=yes
13277
13278       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13279       # that the semantics of dynamic libraries on AmigaOS, at least up
13280       # to version 4, is to share data among multiple programs linked
13281       # with the same dynamic library.  Since this doesn't match the
13282       # behavior of shared libraries on other platforms, we can't use
13283       # them.
13284       ld_shlibs_F77=no
13285       ;;
13286
13287     beos*)
13288       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13289         allow_undefined_flag_F77=unsupported
13290         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13291         # support --undefined.  This deserves some investigation.  FIXME
13292         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13293       else
13294         ld_shlibs_F77=no
13295       fi
13296       ;;
13297
13298     cygwin* | mingw* | pw32*)
13299       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13300       # as there is no search path for DLLs.
13301       hardcode_libdir_flag_spec_F77='-L$libdir'
13302       allow_undefined_flag_F77=unsupported
13303       always_export_symbols_F77=no
13304       enable_shared_with_static_runtimes_F77=yes
13305       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13306
13307       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13308         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13309         # If the export-symbols file already is a .def file (1st line
13310         # is EXPORTS), use it as is; otherwise, prepend...
13311         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13312           cp $export_symbols $output_objdir/$soname.def;
13313         else
13314           echo EXPORTS > $output_objdir/$soname.def;
13315           cat $export_symbols >> $output_objdir/$soname.def;
13316         fi~
13317         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13318       else
13319         ld_shlibs=no
13320       fi
13321       ;;
13322
13323     netbsd*)
13324       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13325         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13326         wlarc=
13327       else
13328         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13329         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13330       fi
13331       ;;
13332
13333     solaris* | sysv5*)
13334       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13335         ld_shlibs_F77=no
13336         cat <<EOF 1>&2
13337
13338 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13339 *** create shared libraries on Solaris systems.  Therefore, libtool
13340 *** is disabling shared libraries support.  We urge you to upgrade GNU
13341 *** binutils to release 2.9.1 or newer.  Another option is to modify
13342 *** your PATH or compiler configuration so that the native linker is
13343 *** used, and then restart.
13344
13345 EOF
13346       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13347         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13348         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13349       else
13350         ld_shlibs_F77=no
13351       fi
13352       ;;
13353
13354     sunos4*)
13355       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13356       wlarc=
13357       hardcode_direct_F77=yes
13358       hardcode_shlibpath_var_F77=no
13359       ;;
13360
13361   linux*)
13362     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13363         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13364         archive_cmds_F77="$tmp_archive_cmds"
13365       supports_anon_versioning=no
13366       case `$LD -v 2>/dev/null` in
13367         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13368         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13369         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13370         *\ 2.11.*) ;; # other 2.11 versions
13371         *) supports_anon_versioning=yes ;;
13372       esac
13373       if test $supports_anon_versioning = yes; then
13374         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13375 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13376 $echo "local: *; };" >> $output_objdir/$libname.ver~
13377         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13378       else
13379         archive_expsym_cmds_F77="$tmp_archive_cmds"
13380       fi
13381     else
13382       ld_shlibs_F77=no
13383     fi
13384     ;;
13385
13386     *)
13387       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13388         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13389         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13390       else
13391         ld_shlibs_F77=no
13392       fi
13393       ;;
13394     esac
13395
13396     if test "$ld_shlibs_F77" = yes; then
13397       runpath_var=LD_RUN_PATH
13398       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13399       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13400       # ancient GNU ld didn't support --whole-archive et. al.
13401       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13402         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13403       else
13404         whole_archive_flag_spec_F77=
13405       fi
13406     fi
13407   else
13408     # PORTME fill in a description of your system's linker (not GNU ld)
13409     case $host_os in
13410     aix3*)
13411       allow_undefined_flag_F77=unsupported
13412       always_export_symbols_F77=yes
13413       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'
13414       # Note: this linker hardcodes the directories in LIBPATH if there
13415       # are no directories specified by -L.
13416       hardcode_minus_L_F77=yes
13417       if test "$GCC" = yes && test -z "$link_static_flag"; then
13418         # Neither direct hardcoding nor static linking is supported with a
13419         # broken collect2.
13420         hardcode_direct_F77=unsupported
13421       fi
13422       ;;
13423
13424     aix4* | aix5*)
13425       if test "$host_cpu" = ia64; then
13426         # On IA64, the linker does run time linking by default, so we don't
13427         # have to do anything special.
13428         aix_use_runtimelinking=no
13429         exp_sym_flag='-Bexport'
13430         no_entry_flag=""
13431       else
13432         # If we're using GNU nm, then we don't want the "-C" option.
13433         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13434         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13435           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'
13436         else
13437           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'
13438         fi
13439         aix_use_runtimelinking=no
13440
13441         # Test if we are trying to use run time linking or normal
13442         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13443         # need to do runtime linking.
13444         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13445           for ld_flag in $LDFLAGS; do
13446           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13447             aix_use_runtimelinking=yes
13448             break
13449           fi
13450           done
13451         esac
13452
13453         exp_sym_flag='-bexport'
13454         no_entry_flag='-bnoentry'
13455       fi
13456
13457       # When large executables or shared objects are built, AIX ld can
13458       # have problems creating the table of contents.  If linking a library
13459       # or program results in "error TOC overflow" add -mminimal-toc to
13460       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13461       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13462
13463       archive_cmds_F77=''
13464       hardcode_direct_F77=yes
13465       hardcode_libdir_separator_F77=':'
13466       link_all_deplibs_F77=yes
13467
13468       if test "$GCC" = yes; then
13469         case $host_os in aix4.012|aix4.012.*)
13470         # We only want to do this on AIX 4.2 and lower, the check
13471         # below for broken collect2 doesn't work under 4.3+
13472           collect2name=`${CC} -print-prog-name=collect2`
13473           if test -f "$collect2name" && \
13474            strings "$collect2name" | grep resolve_lib_name >/dev/null
13475           then
13476           # We have reworked collect2
13477           hardcode_direct_F77=yes
13478           else
13479           # We have old collect2
13480           hardcode_direct_F77=unsupported
13481           # It fails to find uninstalled libraries when the uninstalled
13482           # path is not listed in the libpath.  Setting hardcode_minus_L
13483           # to unsupported forces relinking
13484           hardcode_minus_L_F77=yes
13485           hardcode_libdir_flag_spec_F77='-L$libdir'
13486           hardcode_libdir_separator_F77=
13487           fi
13488         esac
13489         shared_flag='-shared'
13490       else
13491         # not using gcc
13492         if test "$host_cpu" = ia64; then
13493         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13494         # chokes on -Wl,-G. The following line is correct:
13495           shared_flag='-G'
13496         else
13497         if test "$aix_use_runtimelinking" = yes; then
13498             shared_flag='${wl}-G'
13499           else
13500             shared_flag='${wl}-bM:SRE'
13501         fi
13502         fi
13503       fi
13504
13505       # It seems that -bexpall does not export symbols beginning with
13506       # underscore (_), so it is better to generate a list of symbols to export.
13507       always_export_symbols_F77=yes
13508       if test "$aix_use_runtimelinking" = yes; then
13509         # Warning - without using the other runtime loading flags (-brtl),
13510         # -berok will link without error, but may produce a broken library.
13511         allow_undefined_flag_F77='-berok'
13512        # Determine the default libpath from the value encoded in an empty executable.
13513        cat >conftest.$ac_ext <<_ACEOF
13514       program main
13515
13516       end
13517 _ACEOF
13518 rm -f conftest.$ac_objext conftest$ac_exeext
13519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13520   (eval $ac_link) 2>conftest.er1
13521   ac_status=$?
13522   grep -v '^ *+' conftest.er1 >conftest.err
13523   rm -f conftest.er1
13524   cat conftest.err >&5
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); } &&
13527          { ac_try='test -z "$ac_f77_werror_flag"
13528                          || test ! -s conftest.err'
13529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530   (eval $ac_try) 2>&5
13531   ac_status=$?
13532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533   (exit $ac_status); }; } &&
13534          { ac_try='test -s conftest$ac_exeext'
13535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536   (eval $ac_try) 2>&5
13537   ac_status=$?
13538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539   (exit $ac_status); }; }; then
13540
13541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13542 }'`
13543 # Check for a 64-bit object if we didn't find anything.
13544 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; }
13545 }'`; fi
13546 else
13547   echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13549
13550 fi
13551 rm -f conftest.err conftest.$ac_objext \
13552       conftest$ac_exeext conftest.$ac_ext
13553 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13554
13555        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13556         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"
13557        else
13558         if test "$host_cpu" = ia64; then
13559           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13560           allow_undefined_flag_F77="-z nodefs"
13561           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"
13562         else
13563          # Determine the default libpath from the value encoded in an empty executable.
13564          cat >conftest.$ac_ext <<_ACEOF
13565       program main
13566
13567       end
13568 _ACEOF
13569 rm -f conftest.$ac_objext conftest$ac_exeext
13570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13571   (eval $ac_link) 2>conftest.er1
13572   ac_status=$?
13573   grep -v '^ *+' conftest.er1 >conftest.err
13574   rm -f conftest.er1
13575   cat conftest.err >&5
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); } &&
13578          { ac_try='test -z "$ac_f77_werror_flag"
13579                          || test ! -s conftest.err'
13580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581   (eval $ac_try) 2>&5
13582   ac_status=$?
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); }; } &&
13585          { ac_try='test -s conftest$ac_exeext'
13586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587   (eval $ac_try) 2>&5
13588   ac_status=$?
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); }; }; then
13591
13592 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13593 }'`
13594 # Check for a 64-bit object if we didn't find anything.
13595 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; }
13596 }'`; fi
13597 else
13598   echo "$as_me: failed program was:" >&5
13599 sed 's/^/| /' conftest.$ac_ext >&5
13600
13601 fi
13602 rm -f conftest.err conftest.$ac_objext \
13603       conftest$ac_exeext conftest.$ac_ext
13604 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13605
13606          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13607           # Warning - without using the other run time loading flags,
13608           # -berok will link without error, but may produce a broken library.
13609           no_undefined_flag_F77=' ${wl}-bernotok'
13610           allow_undefined_flag_F77=' ${wl}-berok'
13611           # -bexpall does not export symbols beginning with underscore (_)
13612           always_export_symbols_F77=yes
13613           # Exported symbols can be pulled into shared objects from archives
13614           whole_archive_flag_spec_F77=' '
13615           archive_cmds_need_lc_F77=yes
13616           # This is similar to how AIX traditionally builds it's shared libraries.
13617           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'
13618         fi
13619       fi
13620       ;;
13621
13622     amigaos*)
13623       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)'
13624       hardcode_libdir_flag_spec_F77='-L$libdir'
13625       hardcode_minus_L_F77=yes
13626       # see comment about different semantics on the GNU ld section
13627       ld_shlibs_F77=no
13628       ;;
13629
13630     bsdi4*)
13631       export_dynamic_flag_spec_F77=-rdynamic
13632       ;;
13633
13634     cygwin* | mingw* | pw32*)
13635       # When not using gcc, we currently assume that we are using
13636       # Microsoft Visual C++.
13637       # hardcode_libdir_flag_spec is actually meaningless, as there is
13638       # no search path for DLLs.
13639       hardcode_libdir_flag_spec_F77=' '
13640       allow_undefined_flag_F77=unsupported
13641       # Tell ltmain to make .lib files, not .a files.
13642       libext=lib
13643       # Tell ltmain to make .dll files, not .so files.
13644       shrext=".dll"
13645       # FIXME: Setting linknames here is a bad hack.
13646       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13647       # The linker will automatically build a .lib file if we build a DLL.
13648       old_archive_From_new_cmds_F77='true'
13649       # FIXME: Should let the user specify the lib program.
13650       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13651       fix_srcfile_path='`cygpath -w "$srcfile"`'
13652       enable_shared_with_static_runtimes_F77=yes
13653       ;;
13654
13655     darwin* | rhapsody*)
13656     if test "$GXX" = yes ; then
13657       archive_cmds_need_lc_F77=no
13658       case "$host_os" in
13659       rhapsody* | darwin1.[012])
13660         allow_undefined_flag_F77='-undefined suppress'
13661         ;;
13662       *) # Darwin 1.3 on
13663       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13664         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13665       else
13666         case ${MACOSX_DEPLOYMENT_TARGET} in
13667           10.[012])
13668             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13669             ;;
13670           10.*)
13671             allow_undefined_flag_F77='-undefined dynamic_lookup'
13672             ;;
13673         esac
13674       fi
13675         ;;
13676       esac
13677         lt_int_apple_cc_single_mod=no
13678         output_verbose_link_cmd='echo'
13679         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13680           lt_int_apple_cc_single_mod=yes
13681         fi
13682         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13683           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13684         else
13685         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'
13686       fi
13687       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13688       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13689         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13690           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}'
13691         else
13692           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}'
13693         fi
13694           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}'
13695       hardcode_direct_F77=no
13696       hardcode_automatic_F77=yes
13697       hardcode_shlibpath_var_F77=unsupported
13698       whole_archive_flag_spec_F77='-all_load $convenience'
13699       link_all_deplibs_F77=yes
13700     else
13701       ld_shlibs_F77=no
13702     fi
13703       ;;
13704
13705     dgux*)
13706       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13707       hardcode_libdir_flag_spec_F77='-L$libdir'
13708       hardcode_shlibpath_var_F77=no
13709       ;;
13710
13711     freebsd1*)
13712       ld_shlibs_F77=no
13713       ;;
13714
13715     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13716     # support.  Future versions do this automatically, but an explicit c++rt0.o
13717     # does not break anything, and helps significantly (at the cost of a little
13718     # extra space).
13719     freebsd2.2*)
13720       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13721       hardcode_libdir_flag_spec_F77='-R$libdir'
13722       hardcode_direct_F77=yes
13723       hardcode_shlibpath_var_F77=no
13724       ;;
13725
13726     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13727     freebsd2*)
13728       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13729       hardcode_direct_F77=yes
13730       hardcode_minus_L_F77=yes
13731       hardcode_shlibpath_var_F77=no
13732       ;;
13733
13734     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13735     freebsd* | kfreebsd*-gnu)
13736       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13737       hardcode_libdir_flag_spec_F77='-R$libdir'
13738       hardcode_direct_F77=yes
13739       hardcode_shlibpath_var_F77=no
13740       ;;
13741
13742     hpux9*)
13743       if test "$GCC" = yes; then
13744         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'
13745       else
13746         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'
13747       fi
13748       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13749       hardcode_libdir_separator_F77=:
13750       hardcode_direct_F77=yes
13751
13752       # hardcode_minus_L: Not really in the search PATH,
13753       # but as the default location of the library.
13754       hardcode_minus_L_F77=yes
13755       export_dynamic_flag_spec_F77='${wl}-E'
13756       ;;
13757
13758     hpux10* | hpux11*)
13759       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13760         case "$host_cpu" in
13761         hppa*64*|ia64*)
13762           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13763           ;;
13764         *)
13765           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13766           ;;
13767         esac
13768       else
13769         case "$host_cpu" in
13770         hppa*64*|ia64*)
13771           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13772           ;;
13773         *)
13774           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13775           ;;
13776         esac
13777       fi
13778       if test "$with_gnu_ld" = no; then
13779         case "$host_cpu" in
13780         hppa*64*)
13781           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13782           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13783           hardcode_libdir_separator_F77=:
13784           hardcode_direct_F77=no
13785           hardcode_shlibpath_var_F77=no
13786           ;;
13787         ia64*)
13788           hardcode_libdir_flag_spec_F77='-L$libdir'
13789           hardcode_direct_F77=no
13790           hardcode_shlibpath_var_F77=no
13791
13792           # hardcode_minus_L: Not really in the search PATH,
13793           # but as the default location of the library.
13794           hardcode_minus_L_F77=yes
13795           ;;
13796         *)
13797           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13798           hardcode_libdir_separator_F77=:
13799           hardcode_direct_F77=yes
13800           export_dynamic_flag_spec_F77='${wl}-E'
13801
13802           # hardcode_minus_L: Not really in the search PATH,
13803           # but as the default location of the library.
13804           hardcode_minus_L_F77=yes
13805           ;;
13806         esac
13807       fi
13808       ;;
13809
13810     irix5* | irix6* | nonstopux*)
13811       if test "$GCC" = yes; then
13812         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'
13813       else
13814         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'
13815         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13816       fi
13817       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13818       hardcode_libdir_separator_F77=:
13819       link_all_deplibs_F77=yes
13820       ;;
13821
13822     netbsd*)
13823       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13824         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13825       else
13826         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13827       fi
13828       hardcode_libdir_flag_spec_F77='-R$libdir'
13829       hardcode_direct_F77=yes
13830       hardcode_shlibpath_var_F77=no
13831       ;;
13832
13833     newsos6)
13834       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13835       hardcode_direct_F77=yes
13836       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13837       hardcode_libdir_separator_F77=:
13838       hardcode_shlibpath_var_F77=no
13839       ;;
13840
13841     openbsd*)
13842       hardcode_direct_F77=yes
13843       hardcode_shlibpath_var_F77=no
13844       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13845         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13846         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13847         export_dynamic_flag_spec_F77='${wl}-E'
13848       else
13849        case $host_os in
13850          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13851            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13852            hardcode_libdir_flag_spec_F77='-R$libdir'
13853            ;;
13854          *)
13855            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13856            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13857            ;;
13858        esac
13859       fi
13860       ;;
13861
13862     os2*)
13863       hardcode_libdir_flag_spec_F77='-L$libdir'
13864       hardcode_minus_L_F77=yes
13865       allow_undefined_flag_F77=unsupported
13866       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'
13867       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13868       ;;
13869
13870     osf3*)
13871       if test "$GCC" = yes; then
13872         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13873         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'
13874       else
13875         allow_undefined_flag_F77=' -expect_unresolved \*'
13876         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'
13877       fi
13878       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13879       hardcode_libdir_separator_F77=:
13880       ;;
13881
13882     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13883       if test "$GCC" = yes; then
13884         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13885         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'
13886         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13887       else
13888         allow_undefined_flag_F77=' -expect_unresolved \*'
13889         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'
13890         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~
13891         $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'
13892
13893         # Both c and cxx compiler support -rpath directly
13894         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13895       fi
13896       hardcode_libdir_separator_F77=:
13897       ;;
13898
13899     sco3.2v5*)
13900       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13901       hardcode_shlibpath_var_F77=no
13902       export_dynamic_flag_spec_F77='${wl}-Bexport'
13903       runpath_var=LD_RUN_PATH
13904       hardcode_runpath_var=yes
13905       ;;
13906
13907     solaris*)
13908       no_undefined_flag_F77=' -z text'
13909       if test "$GCC" = yes; then
13910         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13911         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13912           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13913       else
13914         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13915         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13916         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13917       fi
13918       hardcode_libdir_flag_spec_F77='-R$libdir'
13919       hardcode_shlibpath_var_F77=no
13920       case $host_os in
13921       solaris2.[0-5] | solaris2.[0-5].*) ;;
13922       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13923         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13924       esac
13925       link_all_deplibs_F77=yes
13926       ;;
13927
13928     sunos4*)
13929       if test "x$host_vendor" = xsequent; then
13930         # Use $CC to link under sequent, because it throws in some extra .o
13931         # files that make .init and .fini sections work.
13932         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13933       else
13934         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13935       fi
13936       hardcode_libdir_flag_spec_F77='-L$libdir'
13937       hardcode_direct_F77=yes
13938       hardcode_minus_L_F77=yes
13939       hardcode_shlibpath_var_F77=no
13940       ;;
13941
13942     sysv4)
13943       case $host_vendor in
13944         sni)
13945           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13946           hardcode_direct_F77=yes # is this really true???
13947         ;;
13948         siemens)
13949           ## LD is ld it makes a PLAMLIB
13950           ## CC just makes a GrossModule.
13951           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13952           reload_cmds_F77='$CC -r -o $output$reload_objs'
13953           hardcode_direct_F77=no
13954         ;;
13955         motorola)
13956           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13957           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13958         ;;
13959       esac
13960       runpath_var='LD_RUN_PATH'
13961       hardcode_shlibpath_var_F77=no
13962       ;;
13963
13964     sysv4.3*)
13965       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13966       hardcode_shlibpath_var_F77=no
13967       export_dynamic_flag_spec_F77='-Bexport'
13968       ;;
13969
13970     sysv4*MP*)
13971       if test -d /usr/nec; then
13972         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13973         hardcode_shlibpath_var_F77=no
13974         runpath_var=LD_RUN_PATH
13975         hardcode_runpath_var=yes
13976         ld_shlibs_F77=yes
13977       fi
13978       ;;
13979
13980     sysv4.2uw2*)
13981       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13982       hardcode_direct_F77=yes
13983       hardcode_minus_L_F77=no
13984       hardcode_shlibpath_var_F77=no
13985       hardcode_runpath_var=yes
13986       runpath_var=LD_RUN_PATH
13987       ;;
13988
13989    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13990       no_undefined_flag_F77='${wl}-z ${wl}text'
13991       if test "$GCC" = yes; then
13992         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13993       else
13994         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13995       fi
13996       runpath_var='LD_RUN_PATH'
13997       hardcode_shlibpath_var_F77=no
13998       ;;
13999
14000     sysv5*)
14001       no_undefined_flag_F77=' -z text'
14002       # $CC -shared without GNU ld will not create a library from C++
14003       # object files and a static libstdc++, better avoid it by now
14004       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14005       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14006                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14007       hardcode_libdir_flag_spec_F77=
14008       hardcode_shlibpath_var_F77=no
14009       runpath_var='LD_RUN_PATH'
14010       ;;
14011
14012     uts4*)
14013       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14014       hardcode_libdir_flag_spec_F77='-L$libdir'
14015       hardcode_shlibpath_var_F77=no
14016       ;;
14017
14018     *)
14019       ld_shlibs_F77=no
14020       ;;
14021     esac
14022   fi
14023
14024 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14025 echo "${ECHO_T}$ld_shlibs_F77" >&6
14026 test "$ld_shlibs_F77" = no && can_build_shared=no
14027
14028 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14029 if test "$GCC" = yes; then
14030   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14031 fi
14032
14033 #
14034 # Do we need to explicitly link libc?
14035 #
14036 case "x$archive_cmds_need_lc_F77" in
14037 x|xyes)
14038   # Assume -lc should be added
14039   archive_cmds_need_lc_F77=yes
14040
14041   if test "$enable_shared" = yes && test "$GCC" = yes; then
14042     case $archive_cmds_F77 in
14043     *'~'*)
14044       # FIXME: we may have to deal with multi-command sequences.
14045       ;;
14046     '$CC '*)
14047       # Test whether the compiler implicitly links with -lc since on some
14048       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14049       # to ld, don't add -lc before -lgcc.
14050       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14051 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14052       $rm conftest*
14053       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14054
14055       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14056   (eval $ac_compile) 2>&5
14057   ac_status=$?
14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059   (exit $ac_status); } 2>conftest.err; then
14060         soname=conftest
14061         lib=conftest
14062         libobjs=conftest.$ac_objext
14063         deplibs=
14064         wl=$lt_prog_compiler_wl_F77
14065         compiler_flags=-v
14066         linker_flags=-v
14067         verstring=
14068         output_objdir=.
14069         libname=conftest
14070         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14071         allow_undefined_flag_F77=
14072         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14073   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14074   ac_status=$?
14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076   (exit $ac_status); }
14077         then
14078           archive_cmds_need_lc_F77=no
14079         else
14080           archive_cmds_need_lc_F77=yes
14081         fi
14082         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14083       else
14084         cat conftest.err 1>&5
14085       fi
14086       $rm conftest*
14087       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14088 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14089       ;;
14090     esac
14091   fi
14092   ;;
14093 esac
14094
14095 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14096 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14097 library_names_spec=
14098 libname_spec='lib$name'
14099 soname_spec=
14100 shrext=".so"
14101 postinstall_cmds=
14102 postuninstall_cmds=
14103 finish_cmds=
14104 finish_eval=
14105 shlibpath_var=
14106 shlibpath_overrides_runpath=unknown
14107 version_type=none
14108 dynamic_linker="$host_os ld.so"
14109 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14110 if test "$GCC" = yes; then
14111   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14112   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14113     # if the path contains ";" then we assume it to be the separator
14114     # otherwise default to the standard path separator (i.e. ":") - it is
14115     # assumed that no part of a normal pathname contains ";" but that should
14116     # okay in the real world where ";" in dirpaths is itself problematic.
14117     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14118   else
14119     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14120   fi
14121 else
14122   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14123 fi
14124 need_lib_prefix=unknown
14125 hardcode_into_libs=no
14126
14127 # when you set need_version to no, make sure it does not cause -set_version
14128 # flags to be left without arguments
14129 need_version=unknown
14130
14131 case $host_os in
14132 aix3*)
14133   version_type=linux
14134   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14135   shlibpath_var=LIBPATH
14136
14137   # AIX 3 has no versioning support, so we append a major version to the name.
14138   soname_spec='${libname}${release}${shared_ext}$major'
14139   ;;
14140
14141 aix4* | aix5*)
14142   version_type=linux
14143   need_lib_prefix=no
14144   need_version=no
14145   hardcode_into_libs=yes
14146   if test "$host_cpu" = ia64; then
14147     # AIX 5 supports IA64
14148     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14149     shlibpath_var=LD_LIBRARY_PATH
14150   else
14151     # With GCC up to 2.95.x, collect2 would create an import file
14152     # for dependence libraries.  The import file would start with
14153     # the line `#! .'.  This would cause the generated library to
14154     # depend on `.', always an invalid library.  This was fixed in
14155     # development snapshots of GCC prior to 3.0.
14156     case $host_os in
14157       aix4 | aix4.[01] | aix4.[01].*)
14158       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14159            echo ' yes '
14160            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14161         :
14162       else
14163         can_build_shared=no
14164       fi
14165       ;;
14166     esac
14167     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14168     # soname into executable. Probably we can add versioning support to
14169     # collect2, so additional links can be useful in future.
14170     if test "$aix_use_runtimelinking" = yes; then
14171       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14172       # instead of lib<name>.a to let people know that these are not
14173       # typical AIX shared libraries.
14174       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14175     else
14176       # We preserve .a as extension for shared libraries through AIX4.2
14177       # and later when we are not doing run time linking.
14178       library_names_spec='${libname}${release}.a $libname.a'
14179       soname_spec='${libname}${release}${shared_ext}$major'
14180     fi
14181     shlibpath_var=LIBPATH
14182   fi
14183   ;;
14184
14185 amigaos*)
14186   library_names_spec='$libname.ixlibrary $libname.a'
14187   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14188   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'
14189   ;;
14190
14191 beos*)
14192   library_names_spec='${libname}${shared_ext}'
14193   dynamic_linker="$host_os ld.so"
14194   shlibpath_var=LIBRARY_PATH
14195   ;;
14196
14197 bsdi4*)
14198   version_type=linux
14199   need_version=no
14200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14201   soname_spec='${libname}${release}${shared_ext}$major'
14202   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14203   shlibpath_var=LD_LIBRARY_PATH
14204   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14205   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14206   # the default ld.so.conf also contains /usr/contrib/lib and
14207   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14208   # libtool to hard-code these into programs
14209   ;;
14210
14211 cygwin* | mingw* | pw32*)
14212   version_type=windows
14213   shrext=".dll"
14214   need_version=no
14215   need_lib_prefix=no
14216
14217   case $GCC,$host_os in
14218   yes,cygwin* | yes,mingw* | yes,pw32*)
14219     library_names_spec='$libname.dll.a'
14220     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14221     postinstall_cmds='base_file=`basename \${file}`~
14222       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14223       dldir=$destdir/`dirname \$dlpath`~
14224       test -d \$dldir || mkdir -p \$dldir~
14225       $install_prog $dir/$dlname \$dldir/$dlname'
14226     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14227       dlpath=$dir/\$dldll~
14228        $rm \$dlpath'
14229     shlibpath_overrides_runpath=yes
14230
14231     case $host_os in
14232     cygwin*)
14233       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14234       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14235       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14236       ;;
14237     mingw*)
14238       # MinGW DLLs use traditional 'lib' prefix
14239       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14240       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14241       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14242         # It is most probably a Windows format PATH printed by
14243         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14244         # path with ; separators, and with drive letters. We can handle the
14245         # drive letters (cygwin fileutils understands them), so leave them,
14246         # especially as we might pass files found there to a mingw objdump,
14247         # which wouldn't understand a cygwinified path. Ahh.
14248         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14249       else
14250         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14251       fi
14252       ;;
14253     pw32*)
14254       # pw32 DLLs use 'pw' prefix rather than 'lib'
14255       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14256       ;;
14257     esac
14258     ;;
14259
14260   linux*)
14261     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14262       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14263       supports_anon_versioning=no
14264       case `$LD -v 2>/dev/null` in
14265         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14266         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14267         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14268         *\ 2.11.*) ;; # other 2.11 versions
14269         *) supports_anon_versioning=yes ;;
14270       esac
14271       if test $supports_anon_versioning = yes; then
14272         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14273 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14274 $echo "local: *; };" >> $output_objdir/$libname.ver~
14275         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14276       else
14277         $archive_expsym_cmds="$archive_cmds"
14278       fi
14279     else
14280       ld_shlibs=no
14281     fi
14282     ;;
14283
14284   *)
14285     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14286     ;;
14287   esac
14288   dynamic_linker='Win32 ld.exe'
14289   # FIXME: first we should search . and the directory the executable is in
14290   shlibpath_var=PATH
14291   ;;
14292
14293 darwin* | rhapsody*)
14294   dynamic_linker="$host_os dyld"
14295   version_type=darwin
14296   need_lib_prefix=no
14297   need_version=no
14298   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14299   soname_spec='${libname}${release}${major}$shared_ext'
14300   shlibpath_overrides_runpath=yes
14301   shlibpath_var=DYLD_LIBRARY_PATH
14302   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14303   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14304   if test "$GCC" = yes; then
14305     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"`
14306   else
14307     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14308   fi
14309   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14310   ;;
14311
14312 dgux*)
14313   version_type=linux
14314   need_lib_prefix=no
14315   need_version=no
14316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14317   soname_spec='${libname}${release}${shared_ext}$major'
14318   shlibpath_var=LD_LIBRARY_PATH
14319   ;;
14320
14321 freebsd1*)
14322   dynamic_linker=no
14323   ;;
14324
14325 kfreebsd*-gnu)
14326   version_type=linux
14327   need_lib_prefix=no
14328   need_version=no
14329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14330   soname_spec='${libname}${release}${shared_ext}$major'
14331   shlibpath_var=LD_LIBRARY_PATH
14332   shlibpath_overrides_runpath=no
14333   hardcode_into_libs=yes
14334   dynamic_linker='GNU ld.so'
14335   ;;
14336
14337 freebsd*)
14338   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14339   version_type=freebsd-$objformat
14340   case $version_type in
14341     freebsd-elf*)
14342       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14343       need_version=no
14344       need_lib_prefix=no
14345       ;;
14346     freebsd-*)
14347       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14348       need_version=yes
14349       ;;
14350   esac
14351   shlibpath_var=LD_LIBRARY_PATH
14352   case $host_os in
14353   freebsd2*)
14354     shlibpath_overrides_runpath=yes
14355     ;;
14356   freebsd3.01* | freebsdelf3.01*)
14357     shlibpath_overrides_runpath=yes
14358     hardcode_into_libs=yes
14359     ;;
14360   *) # from 3.2 on
14361     shlibpath_overrides_runpath=no
14362     hardcode_into_libs=yes
14363     ;;
14364   esac
14365   ;;
14366
14367 gnu*)
14368   version_type=linux
14369   need_lib_prefix=no
14370   need_version=no
14371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14372   soname_spec='${libname}${release}${shared_ext}$major'
14373   shlibpath_var=LD_LIBRARY_PATH
14374   hardcode_into_libs=yes
14375   ;;
14376
14377 hpux9* | hpux10* | hpux11*)
14378   # Give a soname corresponding to the major version so that dld.sl refuses to
14379   # link against other versions.
14380   version_type=sunos
14381   need_lib_prefix=no
14382   need_version=no
14383   case "$host_cpu" in
14384   ia64*)
14385     shrext='.so'
14386     hardcode_into_libs=yes
14387     dynamic_linker="$host_os dld.so"
14388     shlibpath_var=LD_LIBRARY_PATH
14389     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14390     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14391     soname_spec='${libname}${release}${shared_ext}$major'
14392     if test "X$HPUX_IA64_MODE" = X32; then
14393       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14394     else
14395       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14396     fi
14397     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14398     ;;
14399    hppa*64*)
14400      shrext='.sl'
14401      hardcode_into_libs=yes
14402      dynamic_linker="$host_os dld.sl"
14403      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14404      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14405      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14406      soname_spec='${libname}${release}${shared_ext}$major'
14407      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14408      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14409      ;;
14410    *)
14411     shrext='.sl'
14412     dynamic_linker="$host_os dld.sl"
14413     shlibpath_var=SHLIB_PATH
14414     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14416     soname_spec='${libname}${release}${shared_ext}$major'
14417     ;;
14418   esac
14419   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14420   postinstall_cmds='chmod 555 $lib'
14421   ;;
14422
14423 irix5* | irix6* | nonstopux*)
14424   case $host_os in
14425     nonstopux*) version_type=nonstopux ;;
14426     *)
14427         if test "$lt_cv_prog_gnu_ld" = yes; then
14428                 version_type=linux
14429         else
14430                 version_type=irix
14431         fi ;;
14432   esac
14433   need_lib_prefix=no
14434   need_version=no
14435   soname_spec='${libname}${release}${shared_ext}$major'
14436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14437   case $host_os in
14438   irix5* | nonstopux*)
14439     libsuff= shlibsuff=
14440     ;;
14441   *)
14442     case $LD in # libtool.m4 will add one of these switches to LD
14443     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14444       libsuff= shlibsuff= libmagic=32-bit;;
14445     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14446       libsuff=32 shlibsuff=N32 libmagic=N32;;
14447     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14448       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14449     *) libsuff= shlibsuff= libmagic=never-match;;
14450     esac
14451     ;;
14452   esac
14453   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14454   shlibpath_overrides_runpath=no
14455   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14456   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14457   hardcode_into_libs=yes
14458   ;;
14459
14460 # No shared lib support for Linux oldld, aout, or coff.
14461 linux*oldld* | linux*aout* | linux*coff*)
14462   dynamic_linker=no
14463   ;;
14464
14465 # This must be Linux ELF.
14466 linux*)
14467   version_type=linux
14468   need_lib_prefix=no
14469   need_version=no
14470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14471   soname_spec='${libname}${release}${shared_ext}$major'
14472   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14473   shlibpath_var=LD_LIBRARY_PATH
14474   shlibpath_overrides_runpath=no
14475   # This implies no fast_install, which is unacceptable.
14476   # Some rework will be needed to allow for fast_install
14477   # before this can be enabled.
14478   hardcode_into_libs=yes
14479
14480   # Append ld.so.conf contents to the search path
14481   if test -f /etc/ld.so.conf; then
14482     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14483     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14484   fi
14485
14486   case $host_cpu:$lt_cv_cc_64bit_output in
14487   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
14488     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
14489     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
14490     ;;
14491   esac
14492
14493   # We used to test for /lib/ld.so.1 and disable shared libraries on
14494   # powerpc, because MkLinux only supported shared libraries with the
14495   # GNU dynamic linker.  Since this was broken with cross compilers,
14496   # most powerpc-linux boxes support dynamic linking these days and
14497   # people can always --disable-shared, the test was removed, and we
14498   # assume the GNU/Linux dynamic linker is in use.
14499   dynamic_linker='GNU/Linux ld.so'
14500
14501   # Find out which ABI we are using (multilib Linux x86_64 hack).
14502   libsuff=
14503   case "$host_cpu" in
14504   x86_64*)
14505     echo '#line 14505 "configure"' > conftest.$ac_ext
14506     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14507   (eval $ac_compile) 2>&5
14508   ac_status=$?
14509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510   (exit $ac_status); }; then
14511       case `/usr/bin/file conftest.$ac_objext` in
14512       *64-bit*)
14513         libsuff=64
14514         ;;
14515       esac
14516     fi
14517     rm -rf conftest*
14518     ;;
14519   *)
14520     ;;
14521   esac
14522   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
14523   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14524   ;;
14525
14526 knetbsd*-gnu)
14527   version_type=linux
14528   need_lib_prefix=no
14529   need_version=no
14530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14531   soname_spec='${libname}${release}${shared_ext}$major'
14532   shlibpath_var=LD_LIBRARY_PATH
14533   shlibpath_overrides_runpath=no
14534   hardcode_into_libs=yes
14535   dynamic_linker='GNU ld.so'
14536   ;;
14537
14538 netbsd*)
14539   version_type=sunos
14540   need_lib_prefix=no
14541   need_version=no
14542   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14543     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14544     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14545     dynamic_linker='NetBSD (a.out) ld.so'
14546   else
14547     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14548     soname_spec='${libname}${release}${shared_ext}$major'
14549     dynamic_linker='NetBSD ld.elf_so'
14550   fi
14551   shlibpath_var=LD_LIBRARY_PATH
14552   shlibpath_overrides_runpath=yes
14553   hardcode_into_libs=yes
14554   ;;
14555
14556 newsos6)
14557   version_type=linux
14558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14559   shlibpath_var=LD_LIBRARY_PATH
14560   shlibpath_overrides_runpath=yes
14561   ;;
14562
14563 nto-qnx*)
14564   version_type=linux
14565   need_lib_prefix=no
14566   need_version=no
14567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14568   soname_spec='${libname}${release}${shared_ext}$major'
14569   shlibpath_var=LD_LIBRARY_PATH
14570   shlibpath_overrides_runpath=yes
14571   ;;
14572
14573 openbsd*)
14574   version_type=sunos
14575   need_lib_prefix=no
14576   need_version=yes
14577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14578   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14579   shlibpath_var=LD_LIBRARY_PATH
14580   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14581     case $host_os in
14582       openbsd2.[89] | openbsd2.[89].*)
14583         shlibpath_overrides_runpath=no
14584         ;;
14585       *)
14586         shlibpath_overrides_runpath=yes
14587         ;;
14588       esac
14589   else
14590     shlibpath_overrides_runpath=yes
14591   fi
14592   ;;
14593
14594 os2*)
14595   libname_spec='$name'
14596   shrext=".dll"
14597   need_lib_prefix=no
14598   library_names_spec='$libname${shared_ext} $libname.a'
14599   dynamic_linker='OS/2 ld.exe'
14600   shlibpath_var=LIBPATH
14601   ;;
14602
14603 osf3* | osf4* | osf5*)
14604   version_type=osf
14605   need_lib_prefix=no
14606   need_version=no
14607   soname_spec='${libname}${release}${shared_ext}$major'
14608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609   shlibpath_var=LD_LIBRARY_PATH
14610   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14611   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14612   ;;
14613
14614 sco3.2v5*)
14615   version_type=osf
14616   soname_spec='${libname}${release}${shared_ext}$major'
14617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14618   shlibpath_var=LD_LIBRARY_PATH
14619   ;;
14620
14621 solaris*)
14622   version_type=linux
14623   need_lib_prefix=no
14624   need_version=no
14625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626   soname_spec='${libname}${release}${shared_ext}$major'
14627   shlibpath_var=LD_LIBRARY_PATH
14628   shlibpath_overrides_runpath=yes
14629   hardcode_into_libs=yes
14630   # ldd complains unless libraries are executable
14631   postinstall_cmds='chmod +x $lib'
14632   ;;
14633
14634 sunos4*)
14635   version_type=sunos
14636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14637   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14638   shlibpath_var=LD_LIBRARY_PATH
14639   shlibpath_overrides_runpath=yes
14640   if test "$with_gnu_ld" = yes; then
14641     need_lib_prefix=no
14642   fi
14643   need_version=yes
14644   ;;
14645
14646 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14647   version_type=linux
14648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14649   soname_spec='${libname}${release}${shared_ext}$major'
14650   shlibpath_var=LD_LIBRARY_PATH
14651   case $host_vendor in
14652     sni)
14653       shlibpath_overrides_runpath=no
14654       need_lib_prefix=no
14655       export_dynamic_flag_spec='${wl}-Blargedynsym'
14656       runpath_var=LD_RUN_PATH
14657       ;;
14658     siemens)
14659       need_lib_prefix=no
14660       ;;
14661     motorola)
14662       need_lib_prefix=no
14663       need_version=no
14664       shlibpath_overrides_runpath=no
14665       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14666       ;;
14667   esac
14668   ;;
14669
14670 sysv4*MP*)
14671   if test -d /usr/nec ;then
14672     version_type=linux
14673     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14674     soname_spec='$libname${shared_ext}.$major'
14675     shlibpath_var=LD_LIBRARY_PATH
14676   fi
14677   ;;
14678
14679 uts4*)
14680   version_type=linux
14681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682   soname_spec='${libname}${release}${shared_ext}$major'
14683   shlibpath_var=LD_LIBRARY_PATH
14684   ;;
14685
14686 *)
14687   dynamic_linker=no
14688   ;;
14689 esac
14690 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14691 echo "${ECHO_T}$dynamic_linker" >&6
14692 test "$dynamic_linker" = no && can_build_shared=no
14693
14694 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14695 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14696 hardcode_action_F77=
14697 if test -n "$hardcode_libdir_flag_spec_F77" || \
14698    test -n "$runpath_var F77" || \
14699    test "X$hardcode_automatic_F77"="Xyes" ; then
14700
14701   # We can hardcode non-existant directories.
14702   if test "$hardcode_direct_F77" != no &&
14703      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14704      # have to relink, otherwise we might link with an installed library
14705      # when we should be linking with a yet-to-be-installed one
14706      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14707      test "$hardcode_minus_L_F77" != no; then
14708     # Linking always hardcodes the temporary library directory.
14709     hardcode_action_F77=relink
14710   else
14711     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14712     hardcode_action_F77=immediate
14713   fi
14714 else
14715   # We cannot hardcode anything, or else we can only hardcode existing
14716   # directories.
14717   hardcode_action_F77=unsupported
14718 fi
14719 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14720 echo "${ECHO_T}$hardcode_action_F77" >&6
14721
14722 if test "$hardcode_action_F77" = relink; then
14723   # Fast installation is not supported
14724   enable_fast_install=no
14725 elif test "$shlibpath_overrides_runpath" = yes ||
14726      test "$enable_shared" = no; then
14727   # Fast installation is not necessary
14728   enable_fast_install=needless
14729 fi
14730
14731 striplib=
14732 old_striplib=
14733 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14734 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14735 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14736   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14737   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14738   echo "$as_me:$LINENO: result: yes" >&5
14739 echo "${ECHO_T}yes" >&6
14740 else
14741 # FIXME - insert some real tests, host_os isn't really good enough
14742   case $host_os in
14743    darwin*)
14744        if test -n "$STRIP" ; then
14745          striplib="$STRIP -x"
14746          echo "$as_me:$LINENO: result: yes" >&5
14747 echo "${ECHO_T}yes" >&6
14748        else
14749   echo "$as_me:$LINENO: result: no" >&5
14750 echo "${ECHO_T}no" >&6
14751 fi
14752        ;;
14753    *)
14754   echo "$as_me:$LINENO: result: no" >&5
14755 echo "${ECHO_T}no" >&6
14756     ;;
14757   esac
14758 fi
14759
14760
14761
14762 # The else clause should only fire when bootstrapping the
14763 # libtool distribution, otherwise you forgot to ship ltmain.sh
14764 # with your package, and you will get complaints that there are
14765 # no rules to generate ltmain.sh.
14766 if test -f "$ltmain"; then
14767   # See if we are running on zsh, and set the options which allow our commands through
14768   # without removal of \ escapes.
14769   if test -n "${ZSH_VERSION+set}" ; then
14770     setopt NO_GLOB_SUBST
14771   fi
14772   # Now quote all the things that may contain metacharacters while being
14773   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14774   # variables and quote the copies for generation of the libtool script.
14775   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14776     SED SHELL STRIP \
14777     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14778     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14779     deplibs_check_method reload_flag reload_cmds need_locks \
14780     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14781     lt_cv_sys_global_symbol_to_c_name_address \
14782     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14783     old_postinstall_cmds old_postuninstall_cmds \
14784     compiler_F77 \
14785     CC_F77 \
14786     LD_F77 \
14787     lt_prog_compiler_wl_F77 \
14788     lt_prog_compiler_pic_F77 \
14789     lt_prog_compiler_static_F77 \
14790     lt_prog_compiler_no_builtin_flag_F77 \
14791     export_dynamic_flag_spec_F77 \
14792     thread_safe_flag_spec_F77 \
14793     whole_archive_flag_spec_F77 \
14794     enable_shared_with_static_runtimes_F77 \
14795     old_archive_cmds_F77 \
14796     old_archive_from_new_cmds_F77 \
14797     predep_objects_F77 \
14798     postdep_objects_F77 \
14799     predeps_F77 \
14800     postdeps_F77 \
14801     compiler_lib_search_path_F77 \
14802     archive_cmds_F77 \
14803     archive_expsym_cmds_F77 \
14804     postinstall_cmds_F77 \
14805     postuninstall_cmds_F77 \
14806     old_archive_from_expsyms_cmds_F77 \
14807     allow_undefined_flag_F77 \
14808     no_undefined_flag_F77 \
14809     export_symbols_cmds_F77 \
14810     hardcode_libdir_flag_spec_F77 \
14811     hardcode_libdir_flag_spec_ld_F77 \
14812     hardcode_libdir_separator_F77 \
14813     hardcode_automatic_F77 \
14814     module_cmds_F77 \
14815     module_expsym_cmds_F77 \
14816     lt_cv_prog_compiler_c_o_F77 \
14817     exclude_expsyms_F77 \
14818     include_expsyms_F77; do
14819
14820     case $var in
14821     old_archive_cmds_F77 | \
14822     old_archive_from_new_cmds_F77 | \
14823     archive_cmds_F77 | \
14824     archive_expsym_cmds_F77 | \
14825     module_cmds_F77 | \
14826     module_expsym_cmds_F77 | \
14827     old_archive_from_expsyms_cmds_F77 | \
14828     export_symbols_cmds_F77 | \
14829     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14830     postinstall_cmds | postuninstall_cmds | \
14831     old_postinstall_cmds | old_postuninstall_cmds | \
14832     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14833       # Double-quote double-evaled strings.
14834       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14835       ;;
14836     *)
14837       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14838       ;;
14839     esac
14840   done
14841
14842   case $lt_echo in
14843   *'\$0 --fallback-echo"')
14844     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14845     ;;
14846   esac
14847
14848 cfgfile="$ofile"
14849
14850   cat <<__EOF__ >> "$cfgfile"
14851 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14852
14853 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14854
14855 # Shell to use when invoking shell scripts.
14856 SHELL=$lt_SHELL
14857
14858 # Whether or not to build shared libraries.
14859 build_libtool_libs=$enable_shared
14860
14861 # Whether or not to build static libraries.
14862 build_old_libs=$enable_static
14863
14864 # Whether or not to add -lc for building shared libraries.
14865 build_libtool_need_lc=$archive_cmds_need_lc_F77
14866
14867 # Whether or not to disallow shared libs when runtime libs are static
14868 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14869
14870 # Whether or not to optimize for fast installation.
14871 fast_install=$enable_fast_install
14872
14873 # The host system.
14874 host_alias=$host_alias
14875 host=$host
14876
14877 # An echo program that does not interpret backslashes.
14878 echo=$lt_echo
14879
14880 # The archiver.
14881 AR=$lt_AR
14882 AR_FLAGS=$lt_AR_FLAGS
14883
14884 # A C compiler.
14885 LTCC=$lt_LTCC
14886
14887 # A language-specific compiler.
14888 CC=$lt_compiler_F77
14889
14890 # Is the compiler the GNU C compiler?
14891 with_gcc=$GCC_F77
14892
14893 # An ERE matcher.
14894 EGREP=$lt_EGREP
14895
14896 # The linker used to build libraries.
14897 LD=$lt_LD_F77
14898
14899 # Whether we need hard or soft links.
14900 LN_S=$lt_LN_S
14901
14902 # A BSD-compatible nm program.
14903 NM=$lt_NM
14904
14905 # A symbol stripping program
14906 STRIP=$lt_STRIP
14907
14908 # Used to examine libraries when file_magic_cmd begins "file"
14909 MAGIC_CMD=$MAGIC_CMD
14910
14911 # Used on cygwin: DLL creation program.
14912 DLLTOOL="$DLLTOOL"
14913
14914 # Used on cygwin: object dumper.
14915 OBJDUMP="$OBJDUMP"
14916
14917 # Used on cygwin: assembler.
14918 AS="$AS"
14919
14920 # The name of the directory that contains temporary libtool files.
14921 objdir=$objdir
14922
14923 # How to create reloadable object files.
14924 reload_flag=$lt_reload_flag
14925 reload_cmds=$lt_reload_cmds
14926
14927 # How to pass a linker flag through the compiler.
14928 wl=$lt_lt_prog_compiler_wl_F77
14929
14930 # Object file suffix (normally "o").
14931 objext="$ac_objext"
14932
14933 # Old archive suffix (normally "a").
14934 libext="$libext"
14935
14936 # Shared library suffix (normally ".so").
14937 shrext='$shrext'
14938
14939 # Executable file suffix (normally "").
14940 exeext="$exeext"
14941
14942 # Additional compiler flags for building library objects.
14943 pic_flag=$lt_lt_prog_compiler_pic_F77
14944 pic_mode=$pic_mode
14945
14946 # What is the maximum length of a command?
14947 max_cmd_len=$lt_cv_sys_max_cmd_len
14948
14949 # Does compiler simultaneously support -c and -o options?
14950 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14951
14952 # Must we lock files when doing compilation ?
14953 need_locks=$lt_need_locks
14954
14955 # Do we need the lib prefix for modules?
14956 need_lib_prefix=$need_lib_prefix
14957
14958 # Do we need a version for libraries?
14959 need_version=$need_version
14960
14961 # Whether dlopen is supported.
14962 dlopen_support=$enable_dlopen
14963
14964 # Whether dlopen of programs is supported.
14965 dlopen_self=$enable_dlopen_self
14966
14967 # Whether dlopen of statically linked programs is supported.
14968 dlopen_self_static=$enable_dlopen_self_static
14969
14970 # Compiler flag to prevent dynamic linking.
14971 link_static_flag=$lt_lt_prog_compiler_static_F77
14972
14973 # Compiler flag to turn off builtin functions.
14974 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14975
14976 # Compiler flag to allow reflexive dlopens.
14977 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14978
14979 # Compiler flag to generate shared objects directly from archives.
14980 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14981
14982 # Compiler flag to generate thread-safe objects.
14983 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14984
14985 # Library versioning type.
14986 version_type=$version_type
14987
14988 # Format of library name prefix.
14989 libname_spec=$lt_libname_spec
14990
14991 # List of archive names.  First name is the real one, the rest are links.
14992 # The last name is the one that the linker finds with -lNAME.
14993 library_names_spec=$lt_library_names_spec
14994
14995 # The coded name of the library, if different from the real name.
14996 soname_spec=$lt_soname_spec
14997
14998 # Commands used to build and install an old-style archive.
14999 RANLIB=$lt_RANLIB
15000 old_archive_cmds=$lt_old_archive_cmds_F77
15001 old_postinstall_cmds=$lt_old_postinstall_cmds
15002 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15003
15004 # Create an old-style archive from a shared archive.
15005 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15006
15007 # Create a temporary old-style archive to link instead of a shared archive.
15008 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15009
15010 # Commands used to build and install a shared archive.
15011 archive_cmds=$lt_archive_cmds_F77
15012 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15013 postinstall_cmds=$lt_postinstall_cmds
15014 postuninstall_cmds=$lt_postuninstall_cmds
15015
15016 # Commands used to build a loadable module (assumed same as above if empty)
15017 module_cmds=$lt_module_cmds_F77
15018 module_expsym_cmds=$lt_module_expsym_cmds_F77
15019
15020 # Commands to strip libraries.
15021 old_striplib=$lt_old_striplib
15022 striplib=$lt_striplib
15023
15024 # Dependencies to place before the objects being linked to create a
15025 # shared library.
15026 predep_objects=$lt_predep_objects_F77
15027
15028 # Dependencies to place after the objects being linked to create a
15029 # shared library.
15030 postdep_objects=$lt_postdep_objects_F77
15031
15032 # Dependencies to place before the objects being linked to create a
15033 # shared library.
15034 predeps=$lt_predeps_F77
15035
15036 # Dependencies to place after the objects being linked to create a
15037 # shared library.
15038 postdeps=$lt_postdeps_F77
15039
15040 # The library search path used internally by the compiler when linking
15041 # a shared library.
15042 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15043
15044 # Method to check whether dependent libraries are shared objects.
15045 deplibs_check_method=$lt_deplibs_check_method
15046
15047 # Command to use when deplibs_check_method == file_magic.
15048 file_magic_cmd=$lt_file_magic_cmd
15049
15050 # Flag that allows shared libraries with undefined symbols to be built.
15051 allow_undefined_flag=$lt_allow_undefined_flag_F77
15052
15053 # Flag that forces no undefined symbols.
15054 no_undefined_flag=$lt_no_undefined_flag_F77
15055
15056 # Commands used to finish a libtool library installation in a directory.
15057 finish_cmds=$lt_finish_cmds
15058
15059 # Same as above, but a single script fragment to be evaled but not shown.
15060 finish_eval=$lt_finish_eval
15061
15062 # Take the output of nm and produce a listing of raw symbols and C names.
15063 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15064
15065 # Transform the output of nm in a proper C declaration
15066 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15067
15068 # Transform the output of nm in a C name address pair
15069 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15070
15071 # This is the shared library runtime path variable.
15072 runpath_var=$runpath_var
15073
15074 # This is the shared library path variable.
15075 shlibpath_var=$shlibpath_var
15076
15077 # Is shlibpath searched before the hard-coded library search path?
15078 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15079
15080 # How to hardcode a shared library path into an executable.
15081 hardcode_action=$hardcode_action_F77
15082
15083 # Whether we should hardcode library paths into libraries.
15084 hardcode_into_libs=$hardcode_into_libs
15085
15086 # Flag to hardcode \$libdir into a binary during linking.
15087 # This must work even if \$libdir does not exist.
15088 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15089
15090 # If ld is used when linking, flag to hardcode \$libdir into
15091 # a binary during linking. This must work even if \$libdir does
15092 # not exist.
15093 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15094
15095 # Whether we need a single -rpath flag with a separated argument.
15096 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15097
15098 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15099 # resulting binary.
15100 hardcode_direct=$hardcode_direct_F77
15101
15102 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15103 # resulting binary.
15104 hardcode_minus_L=$hardcode_minus_L_F77
15105
15106 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15107 # the resulting binary.
15108 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15109
15110 # Set to yes if building a shared library automatically hardcodes DIR into the library
15111 # and all subsequent libraries and executables linked against it.
15112 hardcode_automatic=$hardcode_automatic_F77
15113
15114 # Variables whose values should be saved in libtool wrapper scripts and
15115 # restored at relink time.
15116 variables_saved_for_relink="$variables_saved_for_relink"
15117
15118 # Whether libtool must link a program against all its dependency libraries.
15119 link_all_deplibs=$link_all_deplibs_F77
15120
15121 # Compile-time system search path for libraries
15122 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15123
15124 # Run-time system search path for libraries
15125 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15126
15127 # Fix the shell variable \$srcfile for the compiler.
15128 fix_srcfile_path="$fix_srcfile_path_F77"
15129
15130 # Set to yes if exported symbols are required.
15131 always_export_symbols=$always_export_symbols_F77
15132
15133 # The commands to list exported symbols.
15134 export_symbols_cmds=$lt_export_symbols_cmds_F77
15135
15136 # The commands to extract the exported symbol list from a shared archive.
15137 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15138
15139 # Symbols that should not be listed in the preloaded symbols.
15140 exclude_expsyms=$lt_exclude_expsyms_F77
15141
15142 # Symbols that must always be exported.
15143 include_expsyms=$lt_include_expsyms_F77
15144
15145 # ### END LIBTOOL TAG CONFIG: $tagname
15146
15147 __EOF__
15148
15149
15150 else
15151   # If there is no Makefile yet, we rely on a make rule to execute
15152   # `config.status --recheck' to rerun these tests and create the
15153   # libtool script then.
15154   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15155   if test -f "$ltmain_in"; then
15156     test -f Makefile && make "$ltmain"
15157   fi
15158 fi
15159
15160
15161 ac_ext=c
15162 ac_cpp='$CPP $CPPFLAGS'
15163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15166
15167 CC="$lt_save_CC"
15168
15169         else
15170           tagname=""
15171         fi
15172         ;;
15173
15174       GCJ)
15175         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15176
15177
15178
15179 # Source file extension for Java test sources.
15180 ac_ext=java
15181
15182 # Object file extension for compiled Java test sources.
15183 objext=o
15184 objext_GCJ=$objext
15185
15186 # Code to be used in simple compile tests
15187 lt_simple_compile_test_code="class foo {}\n"
15188
15189 # Code to be used in simple link tests
15190 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15191
15192 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15193
15194 # If no C compiler was specified, use CC.
15195 LTCC=${LTCC-"$CC"}
15196
15197 # Allow CC to be a program name with arguments.
15198 compiler=$CC
15199
15200
15201 # Allow CC to be a program name with arguments.
15202 lt_save_CC="$CC"
15203 CC=${GCJ-"gcj"}
15204 compiler=$CC
15205 compiler_GCJ=$CC
15206
15207 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15208 archive_cmds_need_lc_GCJ=no
15209
15210
15211 lt_prog_compiler_no_builtin_flag_GCJ=
15212
15213 if test "$GCC" = yes; then
15214   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15215
15216
15217 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15218 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15219 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15220   echo $ECHO_N "(cached) $ECHO_C" >&6
15221 else
15222   lt_cv_prog_compiler_rtti_exceptions=no
15223   ac_outfile=conftest.$ac_objext
15224    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15225    lt_compiler_flag="-fno-rtti -fno-exceptions"
15226    # Insert the option either (1) after the last *FLAGS variable, or
15227    # (2) before a word containing "conftest.", or (3) at the end.
15228    # Note that $ac_compile itself does not contain backslashes and begins
15229    # with a dollar sign (not a hyphen), so the echo should work correctly.
15230    # The option is referenced via a variable to avoid confusing sed.
15231    lt_compile=`echo "$ac_compile" | $SED \
15232    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15233    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15234    -e 's:$: $lt_compiler_flag:'`
15235    (eval echo "\"\$as_me:15235: $lt_compile\"" >&5)
15236    (eval "$lt_compile" 2>conftest.err)
15237    ac_status=$?
15238    cat conftest.err >&5
15239    echo "$as_me:15239: \$? = $ac_status" >&5
15240    if (exit $ac_status) && test -s "$ac_outfile"; then
15241      # The compiler can only warn and ignore the option if not recognized
15242      # So say no if there are warnings
15243      if test ! -s conftest.err; then
15244        lt_cv_prog_compiler_rtti_exceptions=yes
15245      fi
15246    fi
15247    $rm conftest*
15248
15249 fi
15250 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15251 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15252
15253 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15254     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15255 else
15256     :
15257 fi
15258
15259 fi
15260
15261 lt_prog_compiler_wl_GCJ=
15262 lt_prog_compiler_pic_GCJ=
15263 lt_prog_compiler_static_GCJ=
15264
15265 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15266 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15267
15268   if test "$GCC" = yes; then
15269     lt_prog_compiler_wl_GCJ='-Wl,'
15270     lt_prog_compiler_static_GCJ='-static'
15271
15272     case $host_os in
15273       aix*)
15274       # All AIX code is PIC.
15275       if test "$host_cpu" = ia64; then
15276         # AIX 5 now supports IA64 processor
15277         lt_prog_compiler_static_GCJ='-Bstatic'
15278       fi
15279       ;;
15280
15281     amigaos*)
15282       # FIXME: we need at least 68020 code to build shared libraries, but
15283       # adding the `-m68020' flag to GCC prevents building anything better,
15284       # like `-m68040'.
15285       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15286       ;;
15287
15288     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15289       # PIC is the default for these OSes.
15290       ;;
15291
15292     mingw* | pw32* | os2*)
15293       # This hack is so that the source file can tell whether it is being
15294       # built for inclusion in a dll (and should export symbols for example).
15295       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15296       ;;
15297
15298     darwin* | rhapsody*)
15299       # PIC is the default on this platform
15300       # Common symbols not allowed in MH_DYLIB files
15301       lt_prog_compiler_pic_GCJ='-fno-common'
15302       ;;
15303
15304     msdosdjgpp*)
15305       # Just because we use GCC doesn't mean we suddenly get shared libraries
15306       # on systems that don't support them.
15307       lt_prog_compiler_can_build_shared_GCJ=no
15308       enable_shared=no
15309       ;;
15310
15311     sysv4*MP*)
15312       if test -d /usr/nec; then
15313         lt_prog_compiler_pic_GCJ=-Kconform_pic
15314       fi
15315       ;;
15316
15317     hpux*)
15318       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15319       # not for PA HP-UX.
15320       case "$host_cpu" in
15321       hppa*64*|ia64*)
15322         # +Z the default
15323         ;;
15324       *)
15325         lt_prog_compiler_pic_GCJ='-fPIC'
15326         ;;
15327       esac
15328       ;;
15329
15330     *)
15331       lt_prog_compiler_pic_GCJ='-fPIC'
15332       ;;
15333     esac
15334   else
15335     # PORTME Check for flag to pass linker flags through the system compiler.
15336     case $host_os in
15337     aix*)
15338       lt_prog_compiler_wl_GCJ='-Wl,'
15339       if test "$host_cpu" = ia64; then
15340         # AIX 5 now supports IA64 processor
15341         lt_prog_compiler_static_GCJ='-Bstatic'
15342       else
15343         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15344       fi
15345       ;;
15346
15347     mingw* | pw32* | os2*)
15348       # This hack is so that the source file can tell whether it is being
15349       # built for inclusion in a dll (and should export symbols for example).
15350       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15351       ;;
15352
15353     hpux9* | hpux10* | hpux11*)
15354       lt_prog_compiler_wl_GCJ='-Wl,'
15355       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15356       # not for PA HP-UX.
15357       case "$host_cpu" in
15358       hppa*64*|ia64*)
15359         # +Z the default
15360         ;;
15361       *)
15362         lt_prog_compiler_pic_GCJ='+Z'
15363         ;;
15364       esac
15365       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15366       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15367       ;;
15368
15369     irix5* | irix6* | nonstopux*)
15370       lt_prog_compiler_wl_GCJ='-Wl,'
15371       # PIC (with -KPIC) is the default.
15372       lt_prog_compiler_static_GCJ='-non_shared'
15373       ;;
15374
15375     newsos6)
15376       lt_prog_compiler_pic_GCJ='-KPIC'
15377       lt_prog_compiler_static_GCJ='-Bstatic'
15378       ;;
15379
15380     linux*)
15381       case $CC in
15382       icc* | ecc*)
15383         lt_prog_compiler_wl_GCJ='-Wl,'
15384         lt_prog_compiler_pic_GCJ='-KPIC'
15385         lt_prog_compiler_static_GCJ='-static'
15386         ;;
15387       ccc*)
15388         lt_prog_compiler_wl_GCJ='-Wl,'
15389         # All Alpha code is PIC.
15390         lt_prog_compiler_static_GCJ='-non_shared'
15391         ;;
15392       esac
15393       ;;
15394
15395     osf3* | osf4* | osf5*)
15396       lt_prog_compiler_wl_GCJ='-Wl,'
15397       # All OSF/1 code is PIC.
15398       lt_prog_compiler_static_GCJ='-non_shared'
15399       ;;
15400
15401     sco3.2v5*)
15402       lt_prog_compiler_pic_GCJ='-Kpic'
15403       lt_prog_compiler_static_GCJ='-dn'
15404       ;;
15405
15406     solaris*)
15407       lt_prog_compiler_wl_GCJ='-Wl,'
15408       lt_prog_compiler_pic_GCJ='-KPIC'
15409       lt_prog_compiler_static_GCJ='-Bstatic'
15410       ;;
15411
15412     sunos4*)
15413       lt_prog_compiler_wl_GCJ='-Qoption ld '
15414       lt_prog_compiler_pic_GCJ='-PIC'
15415       lt_prog_compiler_static_GCJ='-Bstatic'
15416       ;;
15417
15418     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15419       lt_prog_compiler_wl_GCJ='-Wl,'
15420       lt_prog_compiler_pic_GCJ='-KPIC'
15421       lt_prog_compiler_static_GCJ='-Bstatic'
15422       ;;
15423
15424     sysv4*MP*)
15425       if test -d /usr/nec ;then
15426         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15427         lt_prog_compiler_static_GCJ='-Bstatic'
15428       fi
15429       ;;
15430
15431     uts4*)
15432       lt_prog_compiler_pic_GCJ='-pic'
15433       lt_prog_compiler_static_GCJ='-Bstatic'
15434       ;;
15435
15436     *)
15437       lt_prog_compiler_can_build_shared_GCJ=no
15438       ;;
15439     esac
15440   fi
15441
15442 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15443 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15444
15445 #
15446 # Check to make sure the PIC flag actually works.
15447 #
15448 if test -n "$lt_prog_compiler_pic_GCJ"; then
15449
15450 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15451 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15452 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15453   echo $ECHO_N "(cached) $ECHO_C" >&6
15454 else
15455   lt_prog_compiler_pic_works_GCJ=no
15456   ac_outfile=conftest.$ac_objext
15457    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15458    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15459    # Insert the option either (1) after the last *FLAGS variable, or
15460    # (2) before a word containing "conftest.", or (3) at the end.
15461    # Note that $ac_compile itself does not contain backslashes and begins
15462    # with a dollar sign (not a hyphen), so the echo should work correctly.
15463    # The option is referenced via a variable to avoid confusing sed.
15464    lt_compile=`echo "$ac_compile" | $SED \
15465    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15466    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15467    -e 's:$: $lt_compiler_flag:'`
15468    (eval echo "\"\$as_me:15468: $lt_compile\"" >&5)
15469    (eval "$lt_compile" 2>conftest.err)
15470    ac_status=$?
15471    cat conftest.err >&5
15472    echo "$as_me:15472: \$? = $ac_status" >&5
15473    if (exit $ac_status) && test -s "$ac_outfile"; then
15474      # The compiler can only warn and ignore the option if not recognized
15475      # So say no if there are warnings
15476      if test ! -s conftest.err; then
15477        lt_prog_compiler_pic_works_GCJ=yes
15478      fi
15479    fi
15480    $rm conftest*
15481
15482 fi
15483 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15484 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15485
15486 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15487     case $lt_prog_compiler_pic_GCJ in
15488      "" | " "*) ;;
15489      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15490      esac
15491 else
15492     lt_prog_compiler_pic_GCJ=
15493      lt_prog_compiler_can_build_shared_GCJ=no
15494 fi
15495
15496 fi
15497 case "$host_os" in
15498   # For platforms which do not support PIC, -DPIC is meaningless:
15499   *djgpp*)
15500     lt_prog_compiler_pic_GCJ=
15501     ;;
15502   *)
15503     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15504     ;;
15505 esac
15506
15507 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15508 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15509 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15510   echo $ECHO_N "(cached) $ECHO_C" >&6
15511 else
15512   lt_cv_prog_compiler_c_o_GCJ=no
15513    $rm -r conftest 2>/dev/null
15514    mkdir conftest
15515    cd conftest
15516    mkdir out
15517    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15518
15519    lt_compiler_flag="-o out/conftest2.$ac_objext"
15520    # Insert the option either (1) after the last *FLAGS variable, or
15521    # (2) before a word containing "conftest.", or (3) at the end.
15522    # Note that $ac_compile itself does not contain backslashes and begins
15523    # with a dollar sign (not a hyphen), so the echo should work correctly.
15524    lt_compile=`echo "$ac_compile" | $SED \
15525    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15526    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15527    -e 's:$: $lt_compiler_flag:'`
15528    (eval echo "\"\$as_me:15528: $lt_compile\"" >&5)
15529    (eval "$lt_compile" 2>out/conftest.err)
15530    ac_status=$?
15531    cat out/conftest.err >&5
15532    echo "$as_me:15532: \$? = $ac_status" >&5
15533    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15534    then
15535      # The compiler can only warn and ignore the option if not recognized
15536      # So say no if there are warnings
15537      if test ! -s out/conftest.err; then
15538        lt_cv_prog_compiler_c_o_GCJ=yes
15539      fi
15540    fi
15541    chmod u+w .
15542    $rm conftest*
15543    # SGI C++ compiler will create directory out/ii_files/ for
15544    # template instantiation
15545    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15546    $rm out/* && rmdir out
15547    cd ..
15548    rmdir conftest
15549    $rm conftest*
15550
15551 fi
15552 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15553 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15554
15555
15556 hard_links="nottested"
15557 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15558   # do not overwrite the value of need_locks provided by the user
15559   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15560 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15561   hard_links=yes
15562   $rm conftest*
15563   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15564   touch conftest.a
15565   ln conftest.a conftest.b 2>&5 || hard_links=no
15566   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15567   echo "$as_me:$LINENO: result: $hard_links" >&5
15568 echo "${ECHO_T}$hard_links" >&6
15569   if test "$hard_links" = no; then
15570     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15571 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15572     need_locks=warn
15573   fi
15574 else
15575   need_locks=no
15576 fi
15577
15578 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15579 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15580
15581   runpath_var=
15582   allow_undefined_flag_GCJ=
15583   enable_shared_with_static_runtimes_GCJ=no
15584   archive_cmds_GCJ=
15585   archive_expsym_cmds_GCJ=
15586   old_archive_From_new_cmds_GCJ=
15587   old_archive_from_expsyms_cmds_GCJ=
15588   export_dynamic_flag_spec_GCJ=
15589   whole_archive_flag_spec_GCJ=
15590   thread_safe_flag_spec_GCJ=
15591   hardcode_libdir_flag_spec_GCJ=
15592   hardcode_libdir_flag_spec_ld_GCJ=
15593   hardcode_libdir_separator_GCJ=
15594   hardcode_direct_GCJ=no
15595   hardcode_minus_L_GCJ=no
15596   hardcode_shlibpath_var_GCJ=unsupported
15597   link_all_deplibs_GCJ=unknown
15598   hardcode_automatic_GCJ=no
15599   module_cmds_GCJ=
15600   module_expsym_cmds_GCJ=
15601   always_export_symbols_GCJ=no
15602   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15603   # include_expsyms should be a list of space-separated symbols to be *always*
15604   # included in the symbol list
15605   include_expsyms_GCJ=
15606   # exclude_expsyms can be an extended regexp of symbols to exclude
15607   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15608   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15609   # as well as any symbol that contains `d'.
15610   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15611   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15612   # platforms (ab)use it in PIC code, but their linkers get confused if
15613   # the symbol is explicitly referenced.  Since portable code cannot
15614   # rely on this symbol name, it's probably fine to never include it in
15615   # preloaded symbol tables.
15616   extract_expsyms_cmds=
15617
15618   case $host_os in
15619   cygwin* | mingw* | pw32*)
15620     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15621     # When not using gcc, we currently assume that we are using
15622     # Microsoft Visual C++.
15623     if test "$GCC" != yes; then
15624       with_gnu_ld=no
15625     fi
15626     ;;
15627   openbsd*)
15628     with_gnu_ld=no
15629     ;;
15630   esac
15631
15632   ld_shlibs_GCJ=yes
15633   if test "$with_gnu_ld" = yes; then
15634     # If archive_cmds runs LD, not CC, wlarc should be empty
15635     wlarc='${wl}'
15636
15637     # See if GNU ld supports shared libraries.
15638     case $host_os in
15639     aix3* | aix4* | aix5*)
15640       # On AIX/PPC, the GNU linker is very broken
15641       if test "$host_cpu" != ia64; then
15642         ld_shlibs_GCJ=no
15643         cat <<EOF 1>&2
15644
15645 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15646 *** to be unable to reliably create shared libraries on AIX.
15647 *** Therefore, libtool is disabling shared libraries support.  If you
15648 *** really care for shared libraries, you may want to modify your PATH
15649 *** so that a non-GNU linker is found, and then restart.
15650
15651 EOF
15652       fi
15653       ;;
15654
15655     amigaos*)
15656       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)'
15657       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15658       hardcode_minus_L_GCJ=yes
15659
15660       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15661       # that the semantics of dynamic libraries on AmigaOS, at least up
15662       # to version 4, is to share data among multiple programs linked
15663       # with the same dynamic library.  Since this doesn't match the
15664       # behavior of shared libraries on other platforms, we can't use
15665       # them.
15666       ld_shlibs_GCJ=no
15667       ;;
15668
15669     beos*)
15670       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15671         allow_undefined_flag_GCJ=unsupported
15672         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15673         # support --undefined.  This deserves some investigation.  FIXME
15674         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15675       else
15676         ld_shlibs_GCJ=no
15677       fi
15678       ;;
15679
15680     cygwin* | mingw* | pw32*)
15681       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15682       # as there is no search path for DLLs.
15683       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15684       allow_undefined_flag_GCJ=unsupported
15685       always_export_symbols_GCJ=no
15686       enable_shared_with_static_runtimes_GCJ=yes
15687       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15688
15689       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15690         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15691         # If the export-symbols file already is a .def file (1st line
15692         # is EXPORTS), use it as is; otherwise, prepend...
15693         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15694           cp $export_symbols $output_objdir/$soname.def;
15695         else
15696           echo EXPORTS > $output_objdir/$soname.def;
15697           cat $export_symbols >> $output_objdir/$soname.def;
15698         fi~
15699         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15700       else
15701         ld_shlibs=no
15702       fi
15703       ;;
15704
15705     netbsd*)
15706       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15707         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15708         wlarc=
15709       else
15710         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15711         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15712       fi
15713       ;;
15714
15715     solaris* | sysv5*)
15716       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15717         ld_shlibs_GCJ=no
15718         cat <<EOF 1>&2
15719
15720 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15721 *** create shared libraries on Solaris systems.  Therefore, libtool
15722 *** is disabling shared libraries support.  We urge you to upgrade GNU
15723 *** binutils to release 2.9.1 or newer.  Another option is to modify
15724 *** your PATH or compiler configuration so that the native linker is
15725 *** used, and then restart.
15726
15727 EOF
15728       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15729         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15730         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15731       else
15732         ld_shlibs_GCJ=no
15733       fi
15734       ;;
15735
15736     sunos4*)
15737       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15738       wlarc=
15739       hardcode_direct_GCJ=yes
15740       hardcode_shlibpath_var_GCJ=no
15741       ;;
15742
15743   linux*)
15744     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15745         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15746         archive_cmds_GCJ="$tmp_archive_cmds"
15747       supports_anon_versioning=no
15748       case `$LD -v 2>/dev/null` in
15749         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15750         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15751         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15752         *\ 2.11.*) ;; # other 2.11 versions
15753         *) supports_anon_versioning=yes ;;
15754       esac
15755       if test $supports_anon_versioning = yes; then
15756         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15757 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15758 $echo "local: *; };" >> $output_objdir/$libname.ver~
15759         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15760       else
15761         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15762       fi
15763     else
15764       ld_shlibs_GCJ=no
15765     fi
15766     ;;
15767
15768     *)
15769       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15770         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15771         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15772       else
15773         ld_shlibs_GCJ=no
15774       fi
15775       ;;
15776     esac
15777
15778     if test "$ld_shlibs_GCJ" = yes; then
15779       runpath_var=LD_RUN_PATH
15780       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15781       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15782       # ancient GNU ld didn't support --whole-archive et. al.
15783       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15784         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15785       else
15786         whole_archive_flag_spec_GCJ=
15787       fi
15788     fi
15789   else
15790     # PORTME fill in a description of your system's linker (not GNU ld)
15791     case $host_os in
15792     aix3*)
15793       allow_undefined_flag_GCJ=unsupported
15794       always_export_symbols_GCJ=yes
15795       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'
15796       # Note: this linker hardcodes the directories in LIBPATH if there
15797       # are no directories specified by -L.
15798       hardcode_minus_L_GCJ=yes
15799       if test "$GCC" = yes && test -z "$link_static_flag"; then
15800         # Neither direct hardcoding nor static linking is supported with a
15801         # broken collect2.
15802         hardcode_direct_GCJ=unsupported
15803       fi
15804       ;;
15805
15806     aix4* | aix5*)
15807       if test "$host_cpu" = ia64; then
15808         # On IA64, the linker does run time linking by default, so we don't
15809         # have to do anything special.
15810         aix_use_runtimelinking=no
15811         exp_sym_flag='-Bexport'
15812         no_entry_flag=""
15813       else
15814         # If we're using GNU nm, then we don't want the "-C" option.
15815         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15816         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15817           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'
15818         else
15819           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'
15820         fi
15821         aix_use_runtimelinking=no
15822
15823         # Test if we are trying to use run time linking or normal
15824         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15825         # need to do runtime linking.
15826         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15827           for ld_flag in $LDFLAGS; do
15828           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15829             aix_use_runtimelinking=yes
15830             break
15831           fi
15832           done
15833         esac
15834
15835         exp_sym_flag='-bexport'
15836         no_entry_flag='-bnoentry'
15837       fi
15838
15839       # When large executables or shared objects are built, AIX ld can
15840       # have problems creating the table of contents.  If linking a library
15841       # or program results in "error TOC overflow" add -mminimal-toc to
15842       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15843       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15844
15845       archive_cmds_GCJ=''
15846       hardcode_direct_GCJ=yes
15847       hardcode_libdir_separator_GCJ=':'
15848       link_all_deplibs_GCJ=yes
15849
15850       if test "$GCC" = yes; then
15851         case $host_os in aix4.012|aix4.012.*)
15852         # We only want to do this on AIX 4.2 and lower, the check
15853         # below for broken collect2 doesn't work under 4.3+
15854           collect2name=`${CC} -print-prog-name=collect2`
15855           if test -f "$collect2name" && \
15856            strings "$collect2name" | grep resolve_lib_name >/dev/null
15857           then
15858           # We have reworked collect2
15859           hardcode_direct_GCJ=yes
15860           else
15861           # We have old collect2
15862           hardcode_direct_GCJ=unsupported
15863           # It fails to find uninstalled libraries when the uninstalled
15864           # path is not listed in the libpath.  Setting hardcode_minus_L
15865           # to unsupported forces relinking
15866           hardcode_minus_L_GCJ=yes
15867           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15868           hardcode_libdir_separator_GCJ=
15869           fi
15870         esac
15871         shared_flag='-shared'
15872       else
15873         # not using gcc
15874         if test "$host_cpu" = ia64; then
15875         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15876         # chokes on -Wl,-G. The following line is correct:
15877           shared_flag='-G'
15878         else
15879         if test "$aix_use_runtimelinking" = yes; then
15880             shared_flag='${wl}-G'
15881           else
15882             shared_flag='${wl}-bM:SRE'
15883         fi
15884         fi
15885       fi
15886
15887       # It seems that -bexpall does not export symbols beginning with
15888       # underscore (_), so it is better to generate a list of symbols to export.
15889       always_export_symbols_GCJ=yes
15890       if test "$aix_use_runtimelinking" = yes; then
15891         # Warning - without using the other runtime loading flags (-brtl),
15892         # -berok will link without error, but may produce a broken library.
15893         allow_undefined_flag_GCJ='-berok'
15894        # Determine the default libpath from the value encoded in an empty executable.
15895        cat >conftest.$ac_ext <<_ACEOF
15896 /* confdefs.h.  */
15897 _ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h.  */
15901
15902 int
15903 main ()
15904 {
15905
15906   ;
15907   return 0;
15908 }
15909 _ACEOF
15910 rm -f conftest.$ac_objext conftest$ac_exeext
15911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15912   (eval $ac_link) 2>conftest.er1
15913   ac_status=$?
15914   grep -v '^ *+' conftest.er1 >conftest.err
15915   rm -f conftest.er1
15916   cat conftest.err >&5
15917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918   (exit $ac_status); } &&
15919          { ac_try='test -z "$ac_c_werror_flag"
15920                          || test ! -s conftest.err'
15921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922   (eval $ac_try) 2>&5
15923   ac_status=$?
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); }; } &&
15926          { ac_try='test -s conftest$ac_exeext'
15927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928   (eval $ac_try) 2>&5
15929   ac_status=$?
15930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931   (exit $ac_status); }; }; then
15932
15933 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15934 }'`
15935 # Check for a 64-bit object if we didn't find anything.
15936 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; }
15937 }'`; fi
15938 else
15939   echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15941
15942 fi
15943 rm -f conftest.err conftest.$ac_objext \
15944       conftest$ac_exeext conftest.$ac_ext
15945 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15946
15947        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15948         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"
15949        else
15950         if test "$host_cpu" = ia64; then
15951           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15952           allow_undefined_flag_GCJ="-z nodefs"
15953           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"
15954         else
15955          # Determine the default libpath from the value encoded in an empty executable.
15956          cat >conftest.$ac_ext <<_ACEOF
15957 /* confdefs.h.  */
15958 _ACEOF
15959 cat confdefs.h >>conftest.$ac_ext
15960 cat >>conftest.$ac_ext <<_ACEOF
15961 /* end confdefs.h.  */
15962
15963 int
15964 main ()
15965 {
15966
15967   ;
15968   return 0;
15969 }
15970 _ACEOF
15971 rm -f conftest.$ac_objext conftest$ac_exeext
15972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15973   (eval $ac_link) 2>conftest.er1
15974   ac_status=$?
15975   grep -v '^ *+' conftest.er1 >conftest.err
15976   rm -f conftest.er1
15977   cat conftest.err >&5
15978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979   (exit $ac_status); } &&
15980          { ac_try='test -z "$ac_c_werror_flag"
15981                          || test ! -s conftest.err'
15982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15983   (eval $ac_try) 2>&5
15984   ac_status=$?
15985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986   (exit $ac_status); }; } &&
15987          { ac_try='test -s conftest$ac_exeext'
15988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989   (eval $ac_try) 2>&5
15990   ac_status=$?
15991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992   (exit $ac_status); }; }; then
15993
15994 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15995 }'`
15996 # Check for a 64-bit object if we didn't find anything.
15997 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; }
15998 }'`; fi
15999 else
16000   echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16002
16003 fi
16004 rm -f conftest.err conftest.$ac_objext \
16005       conftest$ac_exeext conftest.$ac_ext
16006 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16007
16008          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16009           # Warning - without using the other run time loading flags,
16010           # -berok will link without error, but may produce a broken library.
16011           no_undefined_flag_GCJ=' ${wl}-bernotok'
16012           allow_undefined_flag_GCJ=' ${wl}-berok'
16013           # -bexpall does not export symbols beginning with underscore (_)
16014           always_export_symbols_GCJ=yes
16015           # Exported symbols can be pulled into shared objects from archives
16016           whole_archive_flag_spec_GCJ=' '
16017           archive_cmds_need_lc_GCJ=yes
16018           # This is similar to how AIX traditionally builds it's shared libraries.
16019           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'
16020         fi
16021       fi
16022       ;;
16023
16024     amigaos*)
16025       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)'
16026       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16027       hardcode_minus_L_GCJ=yes
16028       # see comment about different semantics on the GNU ld section
16029       ld_shlibs_GCJ=no
16030       ;;
16031
16032     bsdi4*)
16033       export_dynamic_flag_spec_GCJ=-rdynamic
16034       ;;
16035
16036     cygwin* | mingw* | pw32*)
16037       # When not using gcc, we currently assume that we are using
16038       # Microsoft Visual C++.
16039       # hardcode_libdir_flag_spec is actually meaningless, as there is
16040       # no search path for DLLs.
16041       hardcode_libdir_flag_spec_GCJ=' '
16042       allow_undefined_flag_GCJ=unsupported
16043       # Tell ltmain to make .lib files, not .a files.
16044       libext=lib
16045       # Tell ltmain to make .dll files, not .so files.
16046       shrext=".dll"
16047       # FIXME: Setting linknames here is a bad hack.
16048       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16049       # The linker will automatically build a .lib file if we build a DLL.
16050       old_archive_From_new_cmds_GCJ='true'
16051       # FIXME: Should let the user specify the lib program.
16052       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16053       fix_srcfile_path='`cygpath -w "$srcfile"`'
16054       enable_shared_with_static_runtimes_GCJ=yes
16055       ;;
16056
16057     darwin* | rhapsody*)
16058     if test "$GXX" = yes ; then
16059       archive_cmds_need_lc_GCJ=no
16060       case "$host_os" in
16061       rhapsody* | darwin1.[012])
16062         allow_undefined_flag_GCJ='-undefined suppress'
16063         ;;
16064       *) # Darwin 1.3 on
16065       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16066         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16067       else
16068         case ${MACOSX_DEPLOYMENT_TARGET} in
16069           10.[012])
16070             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16071             ;;
16072           10.*)
16073             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16074             ;;
16075         esac
16076       fi
16077         ;;
16078       esac
16079         lt_int_apple_cc_single_mod=no
16080         output_verbose_link_cmd='echo'
16081         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16082           lt_int_apple_cc_single_mod=yes
16083         fi
16084         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16085           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16086         else
16087         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'
16088       fi
16089       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16090       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16091         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16092           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}'
16093         else
16094           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}'
16095         fi
16096           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}'
16097       hardcode_direct_GCJ=no
16098       hardcode_automatic_GCJ=yes
16099       hardcode_shlibpath_var_GCJ=unsupported
16100       whole_archive_flag_spec_GCJ='-all_load $convenience'
16101       link_all_deplibs_GCJ=yes
16102     else
16103       ld_shlibs_GCJ=no
16104     fi
16105       ;;
16106
16107     dgux*)
16108       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16109       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16110       hardcode_shlibpath_var_GCJ=no
16111       ;;
16112
16113     freebsd1*)
16114       ld_shlibs_GCJ=no
16115       ;;
16116
16117     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16118     # support.  Future versions do this automatically, but an explicit c++rt0.o
16119     # does not break anything, and helps significantly (at the cost of a little
16120     # extra space).
16121     freebsd2.2*)
16122       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16123       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16124       hardcode_direct_GCJ=yes
16125       hardcode_shlibpath_var_GCJ=no
16126       ;;
16127
16128     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16129     freebsd2*)
16130       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16131       hardcode_direct_GCJ=yes
16132       hardcode_minus_L_GCJ=yes
16133       hardcode_shlibpath_var_GCJ=no
16134       ;;
16135
16136     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16137     freebsd* | kfreebsd*-gnu)
16138       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16139       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16140       hardcode_direct_GCJ=yes
16141       hardcode_shlibpath_var_GCJ=no
16142       ;;
16143
16144     hpux9*)
16145       if test "$GCC" = yes; then
16146         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'
16147       else
16148         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'
16149       fi
16150       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16151       hardcode_libdir_separator_GCJ=:
16152       hardcode_direct_GCJ=yes
16153
16154       # hardcode_minus_L: Not really in the search PATH,
16155       # but as the default location of the library.
16156       hardcode_minus_L_GCJ=yes
16157       export_dynamic_flag_spec_GCJ='${wl}-E'
16158       ;;
16159
16160     hpux10* | hpux11*)
16161       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16162         case "$host_cpu" in
16163         hppa*64*|ia64*)
16164           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16165           ;;
16166         *)
16167           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16168           ;;
16169         esac
16170       else
16171         case "$host_cpu" in
16172         hppa*64*|ia64*)
16173           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16174           ;;
16175         *)
16176           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16177           ;;
16178         esac
16179       fi
16180       if test "$with_gnu_ld" = no; then
16181         case "$host_cpu" in
16182         hppa*64*)
16183           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16184           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16185           hardcode_libdir_separator_GCJ=:
16186           hardcode_direct_GCJ=no
16187           hardcode_shlibpath_var_GCJ=no
16188           ;;
16189         ia64*)
16190           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16191           hardcode_direct_GCJ=no
16192           hardcode_shlibpath_var_GCJ=no
16193
16194           # hardcode_minus_L: Not really in the search PATH,
16195           # but as the default location of the library.
16196           hardcode_minus_L_GCJ=yes
16197           ;;
16198         *)
16199           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16200           hardcode_libdir_separator_GCJ=:
16201           hardcode_direct_GCJ=yes
16202           export_dynamic_flag_spec_GCJ='${wl}-E'
16203
16204           # hardcode_minus_L: Not really in the search PATH,
16205           # but as the default location of the library.
16206           hardcode_minus_L_GCJ=yes
16207           ;;
16208         esac
16209       fi
16210       ;;
16211
16212     irix5* | irix6* | nonstopux*)
16213       if test "$GCC" = yes; then
16214         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'
16215       else
16216         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'
16217         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16218       fi
16219       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16220       hardcode_libdir_separator_GCJ=:
16221       link_all_deplibs_GCJ=yes
16222       ;;
16223
16224     netbsd*)
16225       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16226         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16227       else
16228         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16229       fi
16230       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16231       hardcode_direct_GCJ=yes
16232       hardcode_shlibpath_var_GCJ=no
16233       ;;
16234
16235     newsos6)
16236       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16237       hardcode_direct_GCJ=yes
16238       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16239       hardcode_libdir_separator_GCJ=:
16240       hardcode_shlibpath_var_GCJ=no
16241       ;;
16242
16243     openbsd*)
16244       hardcode_direct_GCJ=yes
16245       hardcode_shlibpath_var_GCJ=no
16246       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16247         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16248         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16249         export_dynamic_flag_spec_GCJ='${wl}-E'
16250       else
16251        case $host_os in
16252          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16253            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16254            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16255            ;;
16256          *)
16257            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16258            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16259            ;;
16260        esac
16261       fi
16262       ;;
16263
16264     os2*)
16265       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16266       hardcode_minus_L_GCJ=yes
16267       allow_undefined_flag_GCJ=unsupported
16268       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'
16269       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16270       ;;
16271
16272     osf3*)
16273       if test "$GCC" = yes; then
16274         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16275         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'
16276       else
16277         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16278         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'
16279       fi
16280       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16281       hardcode_libdir_separator_GCJ=:
16282       ;;
16283
16284     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16285       if test "$GCC" = yes; then
16286         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16287         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'
16288         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16289       else
16290         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16291         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'
16292         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~
16293         $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'
16294
16295         # Both c and cxx compiler support -rpath directly
16296         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16297       fi
16298       hardcode_libdir_separator_GCJ=:
16299       ;;
16300
16301     sco3.2v5*)
16302       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16303       hardcode_shlibpath_var_GCJ=no
16304       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16305       runpath_var=LD_RUN_PATH
16306       hardcode_runpath_var=yes
16307       ;;
16308
16309     solaris*)
16310       no_undefined_flag_GCJ=' -z text'
16311       if test "$GCC" = yes; then
16312         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16313         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16314           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16315       else
16316         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16317         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16318         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16319       fi
16320       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16321       hardcode_shlibpath_var_GCJ=no
16322       case $host_os in
16323       solaris2.[0-5] | solaris2.[0-5].*) ;;
16324       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16325         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16326       esac
16327       link_all_deplibs_GCJ=yes
16328       ;;
16329
16330     sunos4*)
16331       if test "x$host_vendor" = xsequent; then
16332         # Use $CC to link under sequent, because it throws in some extra .o
16333         # files that make .init and .fini sections work.
16334         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16335       else
16336         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16337       fi
16338       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16339       hardcode_direct_GCJ=yes
16340       hardcode_minus_L_GCJ=yes
16341       hardcode_shlibpath_var_GCJ=no
16342       ;;
16343
16344     sysv4)
16345       case $host_vendor in
16346         sni)
16347           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16348           hardcode_direct_GCJ=yes # is this really true???
16349         ;;
16350         siemens)
16351           ## LD is ld it makes a PLAMLIB
16352           ## CC just makes a GrossModule.
16353           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16354           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16355           hardcode_direct_GCJ=no
16356         ;;
16357         motorola)
16358           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16359           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16360         ;;
16361       esac
16362       runpath_var='LD_RUN_PATH'
16363       hardcode_shlibpath_var_GCJ=no
16364       ;;
16365
16366     sysv4.3*)
16367       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16368       hardcode_shlibpath_var_GCJ=no
16369       export_dynamic_flag_spec_GCJ='-Bexport'
16370       ;;
16371
16372     sysv4*MP*)
16373       if test -d /usr/nec; then
16374         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16375         hardcode_shlibpath_var_GCJ=no
16376         runpath_var=LD_RUN_PATH
16377         hardcode_runpath_var=yes
16378         ld_shlibs_GCJ=yes
16379       fi
16380       ;;
16381
16382     sysv4.2uw2*)
16383       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16384       hardcode_direct_GCJ=yes
16385       hardcode_minus_L_GCJ=no
16386       hardcode_shlibpath_var_GCJ=no
16387       hardcode_runpath_var=yes
16388       runpath_var=LD_RUN_PATH
16389       ;;
16390
16391    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16392       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16393       if test "$GCC" = yes; then
16394         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16395       else
16396         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16397       fi
16398       runpath_var='LD_RUN_PATH'
16399       hardcode_shlibpath_var_GCJ=no
16400       ;;
16401
16402     sysv5*)
16403       no_undefined_flag_GCJ=' -z text'
16404       # $CC -shared without GNU ld will not create a library from C++
16405       # object files and a static libstdc++, better avoid it by now
16406       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16407       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16408                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16409       hardcode_libdir_flag_spec_GCJ=
16410       hardcode_shlibpath_var_GCJ=no
16411       runpath_var='LD_RUN_PATH'
16412       ;;
16413
16414     uts4*)
16415       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16416       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16417       hardcode_shlibpath_var_GCJ=no
16418       ;;
16419
16420     *)
16421       ld_shlibs_GCJ=no
16422       ;;
16423     esac
16424   fi
16425
16426 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16427 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16428 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16429
16430 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16431 if test "$GCC" = yes; then
16432   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16433 fi
16434
16435 #
16436 # Do we need to explicitly link libc?
16437 #
16438 case "x$archive_cmds_need_lc_GCJ" in
16439 x|xyes)
16440   # Assume -lc should be added
16441   archive_cmds_need_lc_GCJ=yes
16442
16443   if test "$enable_shared" = yes && test "$GCC" = yes; then
16444     case $archive_cmds_GCJ in
16445     *'~'*)
16446       # FIXME: we may have to deal with multi-command sequences.
16447       ;;
16448     '$CC '*)
16449       # Test whether the compiler implicitly links with -lc since on some
16450       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16451       # to ld, don't add -lc before -lgcc.
16452       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16453 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16454       $rm conftest*
16455       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16456
16457       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16458   (eval $ac_compile) 2>&5
16459   ac_status=$?
16460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461   (exit $ac_status); } 2>conftest.err; then
16462         soname=conftest
16463         lib=conftest
16464         libobjs=conftest.$ac_objext
16465         deplibs=
16466         wl=$lt_prog_compiler_wl_GCJ
16467         compiler_flags=-v
16468         linker_flags=-v
16469         verstring=
16470         output_objdir=.
16471         libname=conftest
16472         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16473         allow_undefined_flag_GCJ=
16474         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16475   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16476   ac_status=$?
16477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478   (exit $ac_status); }
16479         then
16480           archive_cmds_need_lc_GCJ=no
16481         else
16482           archive_cmds_need_lc_GCJ=yes
16483         fi
16484         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16485       else
16486         cat conftest.err 1>&5
16487       fi
16488       $rm conftest*
16489       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16490 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16491       ;;
16492     esac
16493   fi
16494   ;;
16495 esac
16496
16497 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16498 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16499 library_names_spec=
16500 libname_spec='lib$name'
16501 soname_spec=
16502 shrext=".so"
16503 postinstall_cmds=
16504 postuninstall_cmds=
16505 finish_cmds=
16506 finish_eval=
16507 shlibpath_var=
16508 shlibpath_overrides_runpath=unknown
16509 version_type=none
16510 dynamic_linker="$host_os ld.so"
16511 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16512 if test "$GCC" = yes; then
16513   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16514   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16515     # if the path contains ";" then we assume it to be the separator
16516     # otherwise default to the standard path separator (i.e. ":") - it is
16517     # assumed that no part of a normal pathname contains ";" but that should
16518     # okay in the real world where ";" in dirpaths is itself problematic.
16519     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16520   else
16521     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16522   fi
16523 else
16524   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16525 fi
16526 need_lib_prefix=unknown
16527 hardcode_into_libs=no
16528
16529 # when you set need_version to no, make sure it does not cause -set_version
16530 # flags to be left without arguments
16531 need_version=unknown
16532
16533 case $host_os in
16534 aix3*)
16535   version_type=linux
16536   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16537   shlibpath_var=LIBPATH
16538
16539   # AIX 3 has no versioning support, so we append a major version to the name.
16540   soname_spec='${libname}${release}${shared_ext}$major'
16541   ;;
16542
16543 aix4* | aix5*)
16544   version_type=linux
16545   need_lib_prefix=no
16546   need_version=no
16547   hardcode_into_libs=yes
16548   if test "$host_cpu" = ia64; then
16549     # AIX 5 supports IA64
16550     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16551     shlibpath_var=LD_LIBRARY_PATH
16552   else
16553     # With GCC up to 2.95.x, collect2 would create an import file
16554     # for dependence libraries.  The import file would start with
16555     # the line `#! .'.  This would cause the generated library to
16556     # depend on `.', always an invalid library.  This was fixed in
16557     # development snapshots of GCC prior to 3.0.
16558     case $host_os in
16559       aix4 | aix4.[01] | aix4.[01].*)
16560       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16561            echo ' yes '
16562            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16563         :
16564       else
16565         can_build_shared=no
16566       fi
16567       ;;
16568     esac
16569     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16570     # soname into executable. Probably we can add versioning support to
16571     # collect2, so additional links can be useful in future.
16572     if test "$aix_use_runtimelinking" = yes; then
16573       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16574       # instead of lib<name>.a to let people know that these are not
16575       # typical AIX shared libraries.
16576       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16577     else
16578       # We preserve .a as extension for shared libraries through AIX4.2
16579       # and later when we are not doing run time linking.
16580       library_names_spec='${libname}${release}.a $libname.a'
16581       soname_spec='${libname}${release}${shared_ext}$major'
16582     fi
16583     shlibpath_var=LIBPATH
16584   fi
16585   ;;
16586
16587 amigaos*)
16588   library_names_spec='$libname.ixlibrary $libname.a'
16589   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16590   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'
16591   ;;
16592
16593 beos*)
16594   library_names_spec='${libname}${shared_ext}'
16595   dynamic_linker="$host_os ld.so"
16596   shlibpath_var=LIBRARY_PATH
16597   ;;
16598
16599 bsdi4*)
16600   version_type=linux
16601   need_version=no
16602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603   soname_spec='${libname}${release}${shared_ext}$major'
16604   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16605   shlibpath_var=LD_LIBRARY_PATH
16606   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16607   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16608   # the default ld.so.conf also contains /usr/contrib/lib and
16609   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16610   # libtool to hard-code these into programs
16611   ;;
16612
16613 cygwin* | mingw* | pw32*)
16614   version_type=windows
16615   shrext=".dll"
16616   need_version=no
16617   need_lib_prefix=no
16618
16619   case $GCC,$host_os in
16620   yes,cygwin* | yes,mingw* | yes,pw32*)
16621     library_names_spec='$libname.dll.a'
16622     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16623     postinstall_cmds='base_file=`basename \${file}`~
16624       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16625       dldir=$destdir/`dirname \$dlpath`~
16626       test -d \$dldir || mkdir -p \$dldir~
16627       $install_prog $dir/$dlname \$dldir/$dlname'
16628     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16629       dlpath=$dir/\$dldll~
16630        $rm \$dlpath'
16631     shlibpath_overrides_runpath=yes
16632
16633     case $host_os in
16634     cygwin*)
16635       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16636       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16637       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16638       ;;
16639     mingw*)
16640       # MinGW DLLs use traditional 'lib' prefix
16641       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16642       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16643       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16644         # It is most probably a Windows format PATH printed by
16645         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16646         # path with ; separators, and with drive letters. We can handle the
16647         # drive letters (cygwin fileutils understands them), so leave them,
16648         # especially as we might pass files found there to a mingw objdump,
16649         # which wouldn't understand a cygwinified path. Ahh.
16650         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16651       else
16652         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16653       fi
16654       ;;
16655     pw32*)
16656       # pw32 DLLs use 'pw' prefix rather than 'lib'
16657       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16658       ;;
16659     esac
16660     ;;
16661
16662   linux*)
16663     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16664       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16665       supports_anon_versioning=no
16666       case `$LD -v 2>/dev/null` in
16667         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16668         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16669         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16670         *\ 2.11.*) ;; # other 2.11 versions
16671         *) supports_anon_versioning=yes ;;
16672       esac
16673       if test $supports_anon_versioning = yes; then
16674         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
16675 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16676 $echo "local: *; };" >> $output_objdir/$libname.ver~
16677         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16678       else
16679         $archive_expsym_cmds="$archive_cmds"
16680       fi
16681     else
16682       ld_shlibs=no
16683     fi
16684     ;;
16685
16686   *)
16687     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16688     ;;
16689   esac
16690   dynamic_linker='Win32 ld.exe'
16691   # FIXME: first we should search . and the directory the executable is in
16692   shlibpath_var=PATH
16693   ;;
16694
16695 darwin* | rhapsody*)
16696   dynamic_linker="$host_os dyld"
16697   version_type=darwin
16698   need_lib_prefix=no
16699   need_version=no
16700   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16701   soname_spec='${libname}${release}${major}$shared_ext'
16702   shlibpath_overrides_runpath=yes
16703   shlibpath_var=DYLD_LIBRARY_PATH
16704   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16705   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16706   if test "$GCC" = yes; then
16707     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"`
16708   else
16709     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16710   fi
16711   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16712   ;;
16713
16714 dgux*)
16715   version_type=linux
16716   need_lib_prefix=no
16717   need_version=no
16718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16719   soname_spec='${libname}${release}${shared_ext}$major'
16720   shlibpath_var=LD_LIBRARY_PATH
16721   ;;
16722
16723 freebsd1*)
16724   dynamic_linker=no
16725   ;;
16726
16727 kfreebsd*-gnu)
16728   version_type=linux
16729   need_lib_prefix=no
16730   need_version=no
16731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16732   soname_spec='${libname}${release}${shared_ext}$major'
16733   shlibpath_var=LD_LIBRARY_PATH
16734   shlibpath_overrides_runpath=no
16735   hardcode_into_libs=yes
16736   dynamic_linker='GNU ld.so'
16737   ;;
16738
16739 freebsd*)
16740   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16741   version_type=freebsd-$objformat
16742   case $version_type in
16743     freebsd-elf*)
16744       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16745       need_version=no
16746       need_lib_prefix=no
16747       ;;
16748     freebsd-*)
16749       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16750       need_version=yes
16751       ;;
16752   esac
16753   shlibpath_var=LD_LIBRARY_PATH
16754   case $host_os in
16755   freebsd2*)
16756     shlibpath_overrides_runpath=yes
16757     ;;
16758   freebsd3.01* | freebsdelf3.01*)
16759     shlibpath_overrides_runpath=yes
16760     hardcode_into_libs=yes
16761     ;;
16762   *) # from 3.2 on
16763     shlibpath_overrides_runpath=no
16764     hardcode_into_libs=yes
16765     ;;
16766   esac
16767   ;;
16768
16769 gnu*)
16770   version_type=linux
16771   need_lib_prefix=no
16772   need_version=no
16773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16774   soname_spec='${libname}${release}${shared_ext}$major'
16775   shlibpath_var=LD_LIBRARY_PATH
16776   hardcode_into_libs=yes
16777   ;;
16778
16779 hpux9* | hpux10* | hpux11*)
16780   # Give a soname corresponding to the major version so that dld.sl refuses to
16781   # link against other versions.
16782   version_type=sunos
16783   need_lib_prefix=no
16784   need_version=no
16785   case "$host_cpu" in
16786   ia64*)
16787     shrext='.so'
16788     hardcode_into_libs=yes
16789     dynamic_linker="$host_os dld.so"
16790     shlibpath_var=LD_LIBRARY_PATH
16791     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16793     soname_spec='${libname}${release}${shared_ext}$major'
16794     if test "X$HPUX_IA64_MODE" = X32; then
16795       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16796     else
16797       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16798     fi
16799     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16800     ;;
16801    hppa*64*)
16802      shrext='.sl'
16803      hardcode_into_libs=yes
16804      dynamic_linker="$host_os dld.sl"
16805      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16806      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16807      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16808      soname_spec='${libname}${release}${shared_ext}$major'
16809      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16810      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16811      ;;
16812    *)
16813     shrext='.sl'
16814     dynamic_linker="$host_os dld.sl"
16815     shlibpath_var=SHLIB_PATH
16816     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16818     soname_spec='${libname}${release}${shared_ext}$major'
16819     ;;
16820   esac
16821   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16822   postinstall_cmds='chmod 555 $lib'
16823   ;;
16824
16825 irix5* | irix6* | nonstopux*)
16826   case $host_os in
16827     nonstopux*) version_type=nonstopux ;;
16828     *)
16829         if test "$lt_cv_prog_gnu_ld" = yes; then
16830                 version_type=linux
16831         else
16832                 version_type=irix
16833         fi ;;
16834   esac
16835   need_lib_prefix=no
16836   need_version=no
16837   soname_spec='${libname}${release}${shared_ext}$major'
16838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16839   case $host_os in
16840   irix5* | nonstopux*)
16841     libsuff= shlibsuff=
16842     ;;
16843   *)
16844     case $LD in # libtool.m4 will add one of these switches to LD
16845     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16846       libsuff= shlibsuff= libmagic=32-bit;;
16847     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16848       libsuff=32 shlibsuff=N32 libmagic=N32;;
16849     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16850       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16851     *) libsuff= shlibsuff= libmagic=never-match;;
16852     esac
16853     ;;
16854   esac
16855   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16856   shlibpath_overrides_runpath=no
16857   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16858   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16859   hardcode_into_libs=yes
16860   ;;
16861
16862 # No shared lib support for Linux oldld, aout, or coff.
16863 linux*oldld* | linux*aout* | linux*coff*)
16864   dynamic_linker=no
16865   ;;
16866
16867 # This must be Linux ELF.
16868 linux*)
16869   version_type=linux
16870   need_lib_prefix=no
16871   need_version=no
16872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16873   soname_spec='${libname}${release}${shared_ext}$major'
16874   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16875   shlibpath_var=LD_LIBRARY_PATH
16876   shlibpath_overrides_runpath=no
16877   # This implies no fast_install, which is unacceptable.
16878   # Some rework will be needed to allow for fast_install
16879   # before this can be enabled.
16880   hardcode_into_libs=yes
16881
16882   # Append ld.so.conf contents to the search path
16883   if test -f /etc/ld.so.conf; then
16884     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16885     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16886   fi
16887
16888   case $host_cpu:$lt_cv_cc_64bit_output in
16889   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
16890     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
16891     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
16892     ;;
16893   esac
16894
16895   # We used to test for /lib/ld.so.1 and disable shared libraries on
16896   # powerpc, because MkLinux only supported shared libraries with the
16897   # GNU dynamic linker.  Since this was broken with cross compilers,
16898   # most powerpc-linux boxes support dynamic linking these days and
16899   # people can always --disable-shared, the test was removed, and we
16900   # assume the GNU/Linux dynamic linker is in use.
16901   dynamic_linker='GNU/Linux ld.so'
16902
16903   # Find out which ABI we are using (multilib Linux x86_64 hack).
16904   libsuff=
16905   case "$host_cpu" in
16906   x86_64*)
16907     echo '#line 16907 "configure"' > conftest.$ac_ext
16908     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16909   (eval $ac_compile) 2>&5
16910   ac_status=$?
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); }; then
16913       case `/usr/bin/file conftest.$ac_objext` in
16914       *64-bit*)
16915         libsuff=64
16916         ;;
16917       esac
16918     fi
16919     rm -rf conftest*
16920     ;;
16921   *)
16922     ;;
16923   esac
16924   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16925   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16926   ;;
16927
16928 knetbsd*-gnu)
16929   version_type=linux
16930   need_lib_prefix=no
16931   need_version=no
16932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16933   soname_spec='${libname}${release}${shared_ext}$major'
16934   shlibpath_var=LD_LIBRARY_PATH
16935   shlibpath_overrides_runpath=no
16936   hardcode_into_libs=yes
16937   dynamic_linker='GNU ld.so'
16938   ;;
16939
16940 netbsd*)
16941   version_type=sunos
16942   need_lib_prefix=no
16943   need_version=no
16944   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16945     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16946     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16947     dynamic_linker='NetBSD (a.out) ld.so'
16948   else
16949     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16950     soname_spec='${libname}${release}${shared_ext}$major'
16951     dynamic_linker='NetBSD ld.elf_so'
16952   fi
16953   shlibpath_var=LD_LIBRARY_PATH
16954   shlibpath_overrides_runpath=yes
16955   hardcode_into_libs=yes
16956   ;;
16957
16958 newsos6)
16959   version_type=linux
16960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16961   shlibpath_var=LD_LIBRARY_PATH
16962   shlibpath_overrides_runpath=yes
16963   ;;
16964
16965 nto-qnx*)
16966   version_type=linux
16967   need_lib_prefix=no
16968   need_version=no
16969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16970   soname_spec='${libname}${release}${shared_ext}$major'
16971   shlibpath_var=LD_LIBRARY_PATH
16972   shlibpath_overrides_runpath=yes
16973   ;;
16974
16975 openbsd*)
16976   version_type=sunos
16977   need_lib_prefix=no
16978   need_version=yes
16979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16980   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16981   shlibpath_var=LD_LIBRARY_PATH
16982   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16983     case $host_os in
16984       openbsd2.[89] | openbsd2.[89].*)
16985         shlibpath_overrides_runpath=no
16986         ;;
16987       *)
16988         shlibpath_overrides_runpath=yes
16989         ;;
16990       esac
16991   else
16992     shlibpath_overrides_runpath=yes
16993   fi
16994   ;;
16995
16996 os2*)
16997   libname_spec='$name'
16998   shrext=".dll"
16999   need_lib_prefix=no
17000   library_names_spec='$libname${shared_ext} $libname.a'
17001   dynamic_linker='OS/2 ld.exe'
17002   shlibpath_var=LIBPATH
17003   ;;
17004
17005 osf3* | osf4* | osf5*)
17006   version_type=osf
17007   need_lib_prefix=no
17008   need_version=no
17009   soname_spec='${libname}${release}${shared_ext}$major'
17010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17011   shlibpath_var=LD_LIBRARY_PATH
17012   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17013   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17014   ;;
17015
17016 sco3.2v5*)
17017   version_type=osf
17018   soname_spec='${libname}${release}${shared_ext}$major'
17019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17020   shlibpath_var=LD_LIBRARY_PATH
17021   ;;
17022
17023 solaris*)
17024   version_type=linux
17025   need_lib_prefix=no
17026   need_version=no
17027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17028   soname_spec='${libname}${release}${shared_ext}$major'
17029   shlibpath_var=LD_LIBRARY_PATH
17030   shlibpath_overrides_runpath=yes
17031   hardcode_into_libs=yes
17032   # ldd complains unless libraries are executable
17033   postinstall_cmds='chmod +x $lib'
17034   ;;
17035
17036 sunos4*)
17037   version_type=sunos
17038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17039   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17040   shlibpath_var=LD_LIBRARY_PATH
17041   shlibpath_overrides_runpath=yes
17042   if test "$with_gnu_ld" = yes; then
17043     need_lib_prefix=no
17044   fi
17045   need_version=yes
17046   ;;
17047
17048 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17049   version_type=linux
17050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17051   soname_spec='${libname}${release}${shared_ext}$major'
17052   shlibpath_var=LD_LIBRARY_PATH
17053   case $host_vendor in
17054     sni)
17055       shlibpath_overrides_runpath=no
17056       need_lib_prefix=no
17057       export_dynamic_flag_spec='${wl}-Blargedynsym'
17058       runpath_var=LD_RUN_PATH
17059       ;;
17060     siemens)
17061       need_lib_prefix=no
17062       ;;
17063     motorola)
17064       need_lib_prefix=no
17065       need_version=no
17066       shlibpath_overrides_runpath=no
17067       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17068       ;;
17069   esac
17070   ;;
17071
17072 sysv4*MP*)
17073   if test -d /usr/nec ;then
17074     version_type=linux
17075     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17076     soname_spec='$libname${shared_ext}.$major'
17077     shlibpath_var=LD_LIBRARY_PATH
17078   fi
17079   ;;
17080
17081 uts4*)
17082   version_type=linux
17083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17084   soname_spec='${libname}${release}${shared_ext}$major'
17085   shlibpath_var=LD_LIBRARY_PATH
17086   ;;
17087
17088 *)
17089   dynamic_linker=no
17090   ;;
17091 esac
17092 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17093 echo "${ECHO_T}$dynamic_linker" >&6
17094 test "$dynamic_linker" = no && can_build_shared=no
17095
17096 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17097 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17098 hardcode_action_GCJ=
17099 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17100    test -n "$runpath_var GCJ" || \
17101    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17102
17103   # We can hardcode non-existant directories.
17104   if test "$hardcode_direct_GCJ" != no &&
17105      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17106      # have to relink, otherwise we might link with an installed library
17107      # when we should be linking with a yet-to-be-installed one
17108      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17109      test "$hardcode_minus_L_GCJ" != no; then
17110     # Linking always hardcodes the temporary library directory.
17111     hardcode_action_GCJ=relink
17112   else
17113     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17114     hardcode_action_GCJ=immediate
17115   fi
17116 else
17117   # We cannot hardcode anything, or else we can only hardcode existing
17118   # directories.
17119   hardcode_action_GCJ=unsupported
17120 fi
17121 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17122 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17123
17124 if test "$hardcode_action_GCJ" = relink; then
17125   # Fast installation is not supported
17126   enable_fast_install=no
17127 elif test "$shlibpath_overrides_runpath" = yes ||
17128      test "$enable_shared" = no; then
17129   # Fast installation is not necessary
17130   enable_fast_install=needless
17131 fi
17132
17133 striplib=
17134 old_striplib=
17135 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17136 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17137 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17138   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17139   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17140   echo "$as_me:$LINENO: result: yes" >&5
17141 echo "${ECHO_T}yes" >&6
17142 else
17143 # FIXME - insert some real tests, host_os isn't really good enough
17144   case $host_os in
17145    darwin*)
17146        if test -n "$STRIP" ; then
17147          striplib="$STRIP -x"
17148          echo "$as_me:$LINENO: result: yes" >&5
17149 echo "${ECHO_T}yes" >&6
17150        else
17151   echo "$as_me:$LINENO: result: no" >&5
17152 echo "${ECHO_T}no" >&6
17153 fi
17154        ;;
17155    *)
17156   echo "$as_me:$LINENO: result: no" >&5
17157 echo "${ECHO_T}no" >&6
17158     ;;
17159   esac
17160 fi
17161
17162 if test "x$enable_dlopen" != xyes; then
17163   enable_dlopen=unknown
17164   enable_dlopen_self=unknown
17165   enable_dlopen_self_static=unknown
17166 else
17167   lt_cv_dlopen=no
17168   lt_cv_dlopen_libs=
17169
17170   case $host_os in
17171   beos*)
17172     lt_cv_dlopen="load_add_on"
17173     lt_cv_dlopen_libs=
17174     lt_cv_dlopen_self=yes
17175     ;;
17176
17177   mingw* | pw32*)
17178     lt_cv_dlopen="LoadLibrary"
17179     lt_cv_dlopen_libs=
17180    ;;
17181
17182   cygwin*)
17183     lt_cv_dlopen="dlopen"
17184     lt_cv_dlopen_libs=
17185    ;;
17186
17187   darwin*)
17188   # if libdl is installed we need to link against it
17189     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17190 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17192   echo $ECHO_N "(cached) $ECHO_C" >&6
17193 else
17194   ac_check_lib_save_LIBS=$LIBS
17195 LIBS="-ldl  $LIBS"
17196 cat >conftest.$ac_ext <<_ACEOF
17197 /* confdefs.h.  */
17198 _ACEOF
17199 cat confdefs.h >>conftest.$ac_ext
17200 cat >>conftest.$ac_ext <<_ACEOF
17201 /* end confdefs.h.  */
17202
17203 /* Override any gcc2 internal prototype to avoid an error.  */
17204 #ifdef __cplusplus
17205 extern "C"
17206 #endif
17207 /* We use char because int might match the return type of a gcc2
17208    builtin and then its argument prototype would still apply.  */
17209 char dlopen ();
17210 int
17211 main ()
17212 {
17213 dlopen ();
17214   ;
17215   return 0;
17216 }
17217 _ACEOF
17218 rm -f conftest.$ac_objext conftest$ac_exeext
17219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17220   (eval $ac_link) 2>conftest.er1
17221   ac_status=$?
17222   grep -v '^ *+' conftest.er1 >conftest.err
17223   rm -f conftest.er1
17224   cat conftest.err >&5
17225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226   (exit $ac_status); } &&
17227          { ac_try='test -z "$ac_c_werror_flag"
17228                          || test ! -s conftest.err'
17229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230   (eval $ac_try) 2>&5
17231   ac_status=$?
17232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); }; } &&
17234          { ac_try='test -s conftest$ac_exeext'
17235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17236   (eval $ac_try) 2>&5
17237   ac_status=$?
17238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239   (exit $ac_status); }; }; then
17240   ac_cv_lib_dl_dlopen=yes
17241 else
17242   echo "$as_me: failed program was:" >&5
17243 sed 's/^/| /' conftest.$ac_ext >&5
17244
17245 ac_cv_lib_dl_dlopen=no
17246 fi
17247 rm -f conftest.err conftest.$ac_objext \
17248       conftest$ac_exeext conftest.$ac_ext
17249 LIBS=$ac_check_lib_save_LIBS
17250 fi
17251 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17252 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17253 if test $ac_cv_lib_dl_dlopen = yes; then
17254   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17255 else
17256
17257     lt_cv_dlopen="dyld"
17258     lt_cv_dlopen_libs=
17259     lt_cv_dlopen_self=yes
17260
17261 fi
17262
17263    ;;
17264
17265   *)
17266     echo "$as_me:$LINENO: checking for shl_load" >&5
17267 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17268 if test "${ac_cv_func_shl_load+set}" = set; then
17269   echo $ECHO_N "(cached) $ECHO_C" >&6
17270 else
17271   cat >conftest.$ac_ext <<_ACEOF
17272 /* confdefs.h.  */
17273 _ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h.  */
17277 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17279 #define shl_load innocuous_shl_load
17280
17281 /* System header to define __stub macros and hopefully few prototypes,
17282     which can conflict with char shl_load (); below.
17283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17284     <limits.h> exists even on freestanding compilers.  */
17285
17286 #ifdef __STDC__
17287 # include <limits.h>
17288 #else
17289 # include <assert.h>
17290 #endif
17291
17292 #undef shl_load
17293
17294 /* Override any gcc2 internal prototype to avoid an error.  */
17295 #ifdef __cplusplus
17296 extern "C"
17297 {
17298 #endif
17299 /* We use char because int might match the return type of a gcc2
17300    builtin and then its argument prototype would still apply.  */
17301 char shl_load ();
17302 /* The GNU C library defines this for functions which it implements
17303     to always fail with ENOSYS.  Some functions are actually named
17304     something starting with __ and the normal name is an alias.  */
17305 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17306 choke me
17307 #else
17308 char (*f) () = shl_load;
17309 #endif
17310 #ifdef __cplusplus
17311 }
17312 #endif
17313
17314 int
17315 main ()
17316 {
17317 return f != shl_load;
17318   ;
17319   return 0;
17320 }
17321 _ACEOF
17322 rm -f conftest.$ac_objext conftest$ac_exeext
17323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17324   (eval $ac_link) 2>conftest.er1
17325   ac_status=$?
17326   grep -v '^ *+' conftest.er1 >conftest.err
17327   rm -f conftest.er1
17328   cat conftest.err >&5
17329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330   (exit $ac_status); } &&
17331          { ac_try='test -z "$ac_c_werror_flag"
17332                          || test ! -s conftest.err'
17333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334   (eval $ac_try) 2>&5
17335   ac_status=$?
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); }; } &&
17338          { ac_try='test -s conftest$ac_exeext'
17339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340   (eval $ac_try) 2>&5
17341   ac_status=$?
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); }; }; then
17344   ac_cv_func_shl_load=yes
17345 else
17346   echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17348
17349 ac_cv_func_shl_load=no
17350 fi
17351 rm -f conftest.err conftest.$ac_objext \
17352       conftest$ac_exeext conftest.$ac_ext
17353 fi
17354 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17355 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17356 if test $ac_cv_func_shl_load = yes; then
17357   lt_cv_dlopen="shl_load"
17358 else
17359   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17360 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17361 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17362   echo $ECHO_N "(cached) $ECHO_C" >&6
17363 else
17364   ac_check_lib_save_LIBS=$LIBS
17365 LIBS="-ldld  $LIBS"
17366 cat >conftest.$ac_ext <<_ACEOF
17367 /* confdefs.h.  */
17368 _ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h.  */
17372
17373 /* Override any gcc2 internal prototype to avoid an error.  */
17374 #ifdef __cplusplus
17375 extern "C"
17376 #endif
17377 /* We use char because int might match the return type of a gcc2
17378    builtin and then its argument prototype would still apply.  */
17379 char shl_load ();
17380 int
17381 main ()
17382 {
17383 shl_load ();
17384   ;
17385   return 0;
17386 }
17387 _ACEOF
17388 rm -f conftest.$ac_objext conftest$ac_exeext
17389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17390   (eval $ac_link) 2>conftest.er1
17391   ac_status=$?
17392   grep -v '^ *+' conftest.er1 >conftest.err
17393   rm -f conftest.er1
17394   cat conftest.err >&5
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); } &&
17397          { ac_try='test -z "$ac_c_werror_flag"
17398                          || test ! -s conftest.err'
17399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400   (eval $ac_try) 2>&5
17401   ac_status=$?
17402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403   (exit $ac_status); }; } &&
17404          { ac_try='test -s conftest$ac_exeext'
17405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406   (eval $ac_try) 2>&5
17407   ac_status=$?
17408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409   (exit $ac_status); }; }; then
17410   ac_cv_lib_dld_shl_load=yes
17411 else
17412   echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17414
17415 ac_cv_lib_dld_shl_load=no
17416 fi
17417 rm -f conftest.err conftest.$ac_objext \
17418       conftest$ac_exeext conftest.$ac_ext
17419 LIBS=$ac_check_lib_save_LIBS
17420 fi
17421 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17422 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17423 if test $ac_cv_lib_dld_shl_load = yes; then
17424   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17425 else
17426   echo "$as_me:$LINENO: checking for dlopen" >&5
17427 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17428 if test "${ac_cv_func_dlopen+set}" = set; then
17429   echo $ECHO_N "(cached) $ECHO_C" >&6
17430 else
17431   cat >conftest.$ac_ext <<_ACEOF
17432 /* confdefs.h.  */
17433 _ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h.  */
17437 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17439 #define dlopen innocuous_dlopen
17440
17441 /* System header to define __stub macros and hopefully few prototypes,
17442     which can conflict with char dlopen (); below.
17443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17444     <limits.h> exists even on freestanding compilers.  */
17445
17446 #ifdef __STDC__
17447 # include <limits.h>
17448 #else
17449 # include <assert.h>
17450 #endif
17451
17452 #undef dlopen
17453
17454 /* Override any gcc2 internal prototype to avoid an error.  */
17455 #ifdef __cplusplus
17456 extern "C"
17457 {
17458 #endif
17459 /* We use char because int might match the return type of a gcc2
17460    builtin and then its argument prototype would still apply.  */
17461 char dlopen ();
17462 /* The GNU C library defines this for functions which it implements
17463     to always fail with ENOSYS.  Some functions are actually named
17464     something starting with __ and the normal name is an alias.  */
17465 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17466 choke me
17467 #else
17468 char (*f) () = dlopen;
17469 #endif
17470 #ifdef __cplusplus
17471 }
17472 #endif
17473
17474 int
17475 main ()
17476 {
17477 return f != dlopen;
17478   ;
17479   return 0;
17480 }
17481 _ACEOF
17482 rm -f conftest.$ac_objext conftest$ac_exeext
17483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484   (eval $ac_link) 2>conftest.er1
17485   ac_status=$?
17486   grep -v '^ *+' conftest.er1 >conftest.err
17487   rm -f conftest.er1
17488   cat conftest.err >&5
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); } &&
17491          { ac_try='test -z "$ac_c_werror_flag"
17492                          || test ! -s conftest.err'
17493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494   (eval $ac_try) 2>&5
17495   ac_status=$?
17496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497   (exit $ac_status); }; } &&
17498          { ac_try='test -s conftest$ac_exeext'
17499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500   (eval $ac_try) 2>&5
17501   ac_status=$?
17502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503   (exit $ac_status); }; }; then
17504   ac_cv_func_dlopen=yes
17505 else
17506   echo "$as_me: failed program was:" >&5
17507 sed 's/^/| /' conftest.$ac_ext >&5
17508
17509 ac_cv_func_dlopen=no
17510 fi
17511 rm -f conftest.err conftest.$ac_objext \
17512       conftest$ac_exeext conftest.$ac_ext
17513 fi
17514 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17515 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17516 if test $ac_cv_func_dlopen = yes; then
17517   lt_cv_dlopen="dlopen"
17518 else
17519   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17520 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17521 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17522   echo $ECHO_N "(cached) $ECHO_C" >&6
17523 else
17524   ac_check_lib_save_LIBS=$LIBS
17525 LIBS="-ldl  $LIBS"
17526 cat >conftest.$ac_ext <<_ACEOF
17527 /* confdefs.h.  */
17528 _ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h.  */
17532
17533 /* Override any gcc2 internal prototype to avoid an error.  */
17534 #ifdef __cplusplus
17535 extern "C"
17536 #endif
17537 /* We use char because int might match the return type of a gcc2
17538    builtin and then its argument prototype would still apply.  */
17539 char dlopen ();
17540 int
17541 main ()
17542 {
17543 dlopen ();
17544   ;
17545   return 0;
17546 }
17547 _ACEOF
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17550   (eval $ac_link) 2>conftest.er1
17551   ac_status=$?
17552   grep -v '^ *+' conftest.er1 >conftest.err
17553   rm -f conftest.er1
17554   cat conftest.err >&5
17555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556   (exit $ac_status); } &&
17557          { ac_try='test -z "$ac_c_werror_flag"
17558                          || test ! -s conftest.err'
17559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560   (eval $ac_try) 2>&5
17561   ac_status=$?
17562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563   (exit $ac_status); }; } &&
17564          { ac_try='test -s conftest$ac_exeext'
17565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566   (eval $ac_try) 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; }; then
17570   ac_cv_lib_dl_dlopen=yes
17571 else
17572   echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17574
17575 ac_cv_lib_dl_dlopen=no
17576 fi
17577 rm -f conftest.err conftest.$ac_objext \
17578       conftest$ac_exeext conftest.$ac_ext
17579 LIBS=$ac_check_lib_save_LIBS
17580 fi
17581 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17582 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17583 if test $ac_cv_lib_dl_dlopen = yes; then
17584   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17585 else
17586   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17587 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17588 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17589   echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591   ac_check_lib_save_LIBS=$LIBS
17592 LIBS="-lsvld  $LIBS"
17593 cat >conftest.$ac_ext <<_ACEOF
17594 /* confdefs.h.  */
17595 _ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h.  */
17599
17600 /* Override any gcc2 internal prototype to avoid an error.  */
17601 #ifdef __cplusplus
17602 extern "C"
17603 #endif
17604 /* We use char because int might match the return type of a gcc2
17605    builtin and then its argument prototype would still apply.  */
17606 char dlopen ();
17607 int
17608 main ()
17609 {
17610 dlopen ();
17611   ;
17612   return 0;
17613 }
17614 _ACEOF
17615 rm -f conftest.$ac_objext conftest$ac_exeext
17616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17617   (eval $ac_link) 2>conftest.er1
17618   ac_status=$?
17619   grep -v '^ *+' conftest.er1 >conftest.err
17620   rm -f conftest.er1
17621   cat conftest.err >&5
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); } &&
17624          { ac_try='test -z "$ac_c_werror_flag"
17625                          || test ! -s conftest.err'
17626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627   (eval $ac_try) 2>&5
17628   ac_status=$?
17629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630   (exit $ac_status); }; } &&
17631          { ac_try='test -s conftest$ac_exeext'
17632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633   (eval $ac_try) 2>&5
17634   ac_status=$?
17635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636   (exit $ac_status); }; }; then
17637   ac_cv_lib_svld_dlopen=yes
17638 else
17639   echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17641
17642 ac_cv_lib_svld_dlopen=no
17643 fi
17644 rm -f conftest.err conftest.$ac_objext \
17645       conftest$ac_exeext conftest.$ac_ext
17646 LIBS=$ac_check_lib_save_LIBS
17647 fi
17648 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17649 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17650 if test $ac_cv_lib_svld_dlopen = yes; then
17651   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17652 else
17653   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17654 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17655 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17656   echo $ECHO_N "(cached) $ECHO_C" >&6
17657 else
17658   ac_check_lib_save_LIBS=$LIBS
17659 LIBS="-ldld  $LIBS"
17660 cat >conftest.$ac_ext <<_ACEOF
17661 /* confdefs.h.  */
17662 _ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h.  */
17666
17667 /* Override any gcc2 internal prototype to avoid an error.  */
17668 #ifdef __cplusplus
17669 extern "C"
17670 #endif
17671 /* We use char because int might match the return type of a gcc2
17672    builtin and then its argument prototype would still apply.  */
17673 char dld_link ();
17674 int
17675 main ()
17676 {
17677 dld_link ();
17678   ;
17679   return 0;
17680 }
17681 _ACEOF
17682 rm -f conftest.$ac_objext conftest$ac_exeext
17683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17684   (eval $ac_link) 2>conftest.er1
17685   ac_status=$?
17686   grep -v '^ *+' conftest.er1 >conftest.err
17687   rm -f conftest.er1
17688   cat conftest.err >&5
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); } &&
17691          { ac_try='test -z "$ac_c_werror_flag"
17692                          || test ! -s conftest.err'
17693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694   (eval $ac_try) 2>&5
17695   ac_status=$?
17696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697   (exit $ac_status); }; } &&
17698          { ac_try='test -s conftest$ac_exeext'
17699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700   (eval $ac_try) 2>&5
17701   ac_status=$?
17702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703   (exit $ac_status); }; }; then
17704   ac_cv_lib_dld_dld_link=yes
17705 else
17706   echo "$as_me: failed program was:" >&5
17707 sed 's/^/| /' conftest.$ac_ext >&5
17708
17709 ac_cv_lib_dld_dld_link=no
17710 fi
17711 rm -f conftest.err conftest.$ac_objext \
17712       conftest$ac_exeext conftest.$ac_ext
17713 LIBS=$ac_check_lib_save_LIBS
17714 fi
17715 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17716 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17717 if test $ac_cv_lib_dld_dld_link = yes; then
17718   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17719 fi
17720
17721
17722 fi
17723
17724
17725 fi
17726
17727
17728 fi
17729
17730
17731 fi
17732
17733
17734 fi
17735
17736     ;;
17737   esac
17738
17739   if test "x$lt_cv_dlopen" != xno; then
17740     enable_dlopen=yes
17741   else
17742     enable_dlopen=no
17743   fi
17744
17745   case $lt_cv_dlopen in
17746   dlopen)
17747     save_CPPFLAGS="$CPPFLAGS"
17748     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17749
17750     save_LDFLAGS="$LDFLAGS"
17751     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17752
17753     save_LIBS="$LIBS"
17754     LIBS="$lt_cv_dlopen_libs $LIBS"
17755
17756     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17757 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17758 if test "${lt_cv_dlopen_self+set}" = set; then
17759   echo $ECHO_N "(cached) $ECHO_C" >&6
17760 else
17761           if test "$cross_compiling" = yes; then :
17762   lt_cv_dlopen_self=cross
17763 else
17764   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17765   lt_status=$lt_dlunknown
17766   cat > conftest.$ac_ext <<EOF
17767 #line 17767 "configure"
17768 #include "confdefs.h"
17769
17770 #if HAVE_DLFCN_H
17771 #include <dlfcn.h>
17772 #endif
17773
17774 #include <stdio.h>
17775
17776 #ifdef RTLD_GLOBAL
17777 #  define LT_DLGLOBAL           RTLD_GLOBAL
17778 #else
17779 #  ifdef DL_GLOBAL
17780 #    define LT_DLGLOBAL         DL_GLOBAL
17781 #  else
17782 #    define LT_DLGLOBAL         0
17783 #  endif
17784 #endif
17785
17786 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17787    find out it does not work in some platform. */
17788 #ifndef LT_DLLAZY_OR_NOW
17789 #  ifdef RTLD_LAZY
17790 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17791 #  else
17792 #    ifdef DL_LAZY
17793 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17794 #    else
17795 #      ifdef RTLD_NOW
17796 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17797 #      else
17798 #        ifdef DL_NOW
17799 #          define LT_DLLAZY_OR_NOW      DL_NOW
17800 #        else
17801 #          define LT_DLLAZY_OR_NOW      0
17802 #        endif
17803 #      endif
17804 #    endif
17805 #  endif
17806 #endif
17807
17808 #ifdef __cplusplus
17809 extern "C" void exit (int);
17810 #endif
17811
17812 void fnord() { int i=42;}
17813 int main ()
17814 {
17815   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17816   int status = $lt_dlunknown;
17817
17818   if (self)
17819     {
17820       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17821       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17822       /* dlclose (self); */
17823     }
17824
17825     exit (status);
17826 }
17827 EOF
17828   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17829   (eval $ac_link) 2>&5
17830   ac_status=$?
17831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17833     (./conftest; exit; ) 2>/dev/null
17834     lt_status=$?
17835     case x$lt_status in
17836       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17837       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17838       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17839     esac
17840   else :
17841     # compilation failed
17842     lt_cv_dlopen_self=no
17843   fi
17844 fi
17845 rm -fr conftest*
17846
17847
17848 fi
17849 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17850 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17851
17852     if test "x$lt_cv_dlopen_self" = xyes; then
17853       LDFLAGS="$LDFLAGS $link_static_flag"
17854       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17855 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17856 if test "${lt_cv_dlopen_self_static+set}" = set; then
17857   echo $ECHO_N "(cached) $ECHO_C" >&6
17858 else
17859           if test "$cross_compiling" = yes; then :
17860   lt_cv_dlopen_self_static=cross
17861 else
17862   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17863   lt_status=$lt_dlunknown
17864   cat > conftest.$ac_ext <<EOF
17865 #line 17865 "configure"
17866 #include "confdefs.h"
17867
17868 #if HAVE_DLFCN_H
17869 #include <dlfcn.h>
17870 #endif
17871
17872 #include <stdio.h>
17873
17874 #ifdef RTLD_GLOBAL
17875 #  define LT_DLGLOBAL           RTLD_GLOBAL
17876 #else
17877 #  ifdef DL_GLOBAL
17878 #    define LT_DLGLOBAL         DL_GLOBAL
17879 #  else
17880 #    define LT_DLGLOBAL         0
17881 #  endif
17882 #endif
17883
17884 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17885    find out it does not work in some platform. */
17886 #ifndef LT_DLLAZY_OR_NOW
17887 #  ifdef RTLD_LAZY
17888 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17889 #  else
17890 #    ifdef DL_LAZY
17891 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17892 #    else
17893 #      ifdef RTLD_NOW
17894 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17895 #      else
17896 #        ifdef DL_NOW
17897 #          define LT_DLLAZY_OR_NOW      DL_NOW
17898 #        else
17899 #          define LT_DLLAZY_OR_NOW      0
17900 #        endif
17901 #      endif
17902 #    endif
17903 #  endif
17904 #endif
17905
17906 #ifdef __cplusplus
17907 extern "C" void exit (int);
17908 #endif
17909
17910 void fnord() { int i=42;}
17911 int main ()
17912 {
17913   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17914   int status = $lt_dlunknown;
17915
17916   if (self)
17917     {
17918       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17919       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17920       /* dlclose (self); */
17921     }
17922
17923     exit (status);
17924 }
17925 EOF
17926   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17927   (eval $ac_link) 2>&5
17928   ac_status=$?
17929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17931     (./conftest; exit; ) 2>/dev/null
17932     lt_status=$?
17933     case x$lt_status in
17934       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17935       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17936       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17937     esac
17938   else :
17939     # compilation failed
17940     lt_cv_dlopen_self_static=no
17941   fi
17942 fi
17943 rm -fr conftest*
17944
17945
17946 fi
17947 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17948 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17949     fi
17950
17951     CPPFLAGS="$save_CPPFLAGS"
17952     LDFLAGS="$save_LDFLAGS"
17953     LIBS="$save_LIBS"
17954     ;;
17955   esac
17956
17957   case $lt_cv_dlopen_self in
17958   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17959   *) enable_dlopen_self=unknown ;;
17960   esac
17961
17962   case $lt_cv_dlopen_self_static in
17963   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17964   *) enable_dlopen_self_static=unknown ;;
17965   esac
17966 fi
17967
17968
17969 # The else clause should only fire when bootstrapping the
17970 # libtool distribution, otherwise you forgot to ship ltmain.sh
17971 # with your package, and you will get complaints that there are
17972 # no rules to generate ltmain.sh.
17973 if test -f "$ltmain"; then
17974   # See if we are running on zsh, and set the options which allow our commands through
17975   # without removal of \ escapes.
17976   if test -n "${ZSH_VERSION+set}" ; then
17977     setopt NO_GLOB_SUBST
17978   fi
17979   # Now quote all the things that may contain metacharacters while being
17980   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17981   # variables and quote the copies for generation of the libtool script.
17982   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17983     SED SHELL STRIP \
17984     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17985     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17986     deplibs_check_method reload_flag reload_cmds need_locks \
17987     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17988     lt_cv_sys_global_symbol_to_c_name_address \
17989     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17990     old_postinstall_cmds old_postuninstall_cmds \
17991     compiler_GCJ \
17992     CC_GCJ \
17993     LD_GCJ \
17994     lt_prog_compiler_wl_GCJ \
17995     lt_prog_compiler_pic_GCJ \
17996     lt_prog_compiler_static_GCJ \
17997     lt_prog_compiler_no_builtin_flag_GCJ \
17998     export_dynamic_flag_spec_GCJ \
17999     thread_safe_flag_spec_GCJ \
18000     whole_archive_flag_spec_GCJ \
18001     enable_shared_with_static_runtimes_GCJ \
18002     old_archive_cmds_GCJ \
18003     old_archive_from_new_cmds_GCJ \
18004     predep_objects_GCJ \
18005     postdep_objects_GCJ \
18006     predeps_GCJ \
18007     postdeps_GCJ \
18008     compiler_lib_search_path_GCJ \
18009     archive_cmds_GCJ \
18010     archive_expsym_cmds_GCJ \
18011     postinstall_cmds_GCJ \
18012     postuninstall_cmds_GCJ \
18013     old_archive_from_expsyms_cmds_GCJ \
18014     allow_undefined_flag_GCJ \
18015     no_undefined_flag_GCJ \
18016     export_symbols_cmds_GCJ \
18017     hardcode_libdir_flag_spec_GCJ \
18018     hardcode_libdir_flag_spec_ld_GCJ \
18019     hardcode_libdir_separator_GCJ \
18020     hardcode_automatic_GCJ \
18021     module_cmds_GCJ \
18022     module_expsym_cmds_GCJ \
18023     lt_cv_prog_compiler_c_o_GCJ \
18024     exclude_expsyms_GCJ \
18025     include_expsyms_GCJ; do
18026
18027     case $var in
18028     old_archive_cmds_GCJ | \
18029     old_archive_from_new_cmds_GCJ | \
18030     archive_cmds_GCJ | \
18031     archive_expsym_cmds_GCJ | \
18032     module_cmds_GCJ | \
18033     module_expsym_cmds_GCJ | \
18034     old_archive_from_expsyms_cmds_GCJ | \
18035     export_symbols_cmds_GCJ | \
18036     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18037     postinstall_cmds | postuninstall_cmds | \
18038     old_postinstall_cmds | old_postuninstall_cmds | \
18039     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18040       # Double-quote double-evaled strings.
18041       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18042       ;;
18043     *)
18044       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18045       ;;
18046     esac
18047   done
18048
18049   case $lt_echo in
18050   *'\$0 --fallback-echo"')
18051     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18052     ;;
18053   esac
18054
18055 cfgfile="$ofile"
18056
18057   cat <<__EOF__ >> "$cfgfile"
18058 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18059
18060 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18061
18062 # Shell to use when invoking shell scripts.
18063 SHELL=$lt_SHELL
18064
18065 # Whether or not to build shared libraries.
18066 build_libtool_libs=$enable_shared
18067
18068 # Whether or not to build static libraries.
18069 build_old_libs=$enable_static
18070
18071 # Whether or not to add -lc for building shared libraries.
18072 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18073
18074 # Whether or not to disallow shared libs when runtime libs are static
18075 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18076
18077 # Whether or not to optimize for fast installation.
18078 fast_install=$enable_fast_install
18079
18080 # The host system.
18081 host_alias=$host_alias
18082 host=$host
18083
18084 # An echo program that does not interpret backslashes.
18085 echo=$lt_echo
18086
18087 # The archiver.
18088 AR=$lt_AR
18089 AR_FLAGS=$lt_AR_FLAGS
18090
18091 # A C compiler.
18092 LTCC=$lt_LTCC
18093
18094 # A language-specific compiler.
18095 CC=$lt_compiler_GCJ
18096
18097 # Is the compiler the GNU C compiler?
18098 with_gcc=$GCC_GCJ
18099
18100 # An ERE matcher.
18101 EGREP=$lt_EGREP
18102
18103 # The linker used to build libraries.
18104 LD=$lt_LD_GCJ
18105
18106 # Whether we need hard or soft links.
18107 LN_S=$lt_LN_S
18108
18109 # A BSD-compatible nm program.
18110 NM=$lt_NM
18111
18112 # A symbol stripping program
18113 STRIP=$lt_STRIP
18114
18115 # Used to examine libraries when file_magic_cmd begins "file"
18116 MAGIC_CMD=$MAGIC_CMD
18117
18118 # Used on cygwin: DLL creation program.
18119 DLLTOOL="$DLLTOOL"
18120
18121 # Used on cygwin: object dumper.
18122 OBJDUMP="$OBJDUMP"
18123
18124 # Used on cygwin: assembler.
18125 AS="$AS"
18126
18127 # The name of the directory that contains temporary libtool files.
18128 objdir=$objdir
18129
18130 # How to create reloadable object files.
18131 reload_flag=$lt_reload_flag
18132 reload_cmds=$lt_reload_cmds
18133
18134 # How to pass a linker flag through the compiler.
18135 wl=$lt_lt_prog_compiler_wl_GCJ
18136
18137 # Object file suffix (normally "o").
18138 objext="$ac_objext"
18139
18140 # Old archive suffix (normally "a").
18141 libext="$libext"
18142
18143 # Shared library suffix (normally ".so").
18144 shrext='$shrext'
18145
18146 # Executable file suffix (normally "").
18147 exeext="$exeext"
18148
18149 # Additional compiler flags for building library objects.
18150 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18151 pic_mode=$pic_mode
18152
18153 # What is the maximum length of a command?
18154 max_cmd_len=$lt_cv_sys_max_cmd_len
18155
18156 # Does compiler simultaneously support -c and -o options?
18157 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18158
18159 # Must we lock files when doing compilation ?
18160 need_locks=$lt_need_locks
18161
18162 # Do we need the lib prefix for modules?
18163 need_lib_prefix=$need_lib_prefix
18164
18165 # Do we need a version for libraries?
18166 need_version=$need_version
18167
18168 # Whether dlopen is supported.
18169 dlopen_support=$enable_dlopen
18170
18171 # Whether dlopen of programs is supported.
18172 dlopen_self=$enable_dlopen_self
18173
18174 # Whether dlopen of statically linked programs is supported.
18175 dlopen_self_static=$enable_dlopen_self_static
18176
18177 # Compiler flag to prevent dynamic linking.
18178 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18179
18180 # Compiler flag to turn off builtin functions.
18181 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18182
18183 # Compiler flag to allow reflexive dlopens.
18184 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18185
18186 # Compiler flag to generate shared objects directly from archives.
18187 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18188
18189 # Compiler flag to generate thread-safe objects.
18190 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18191
18192 # Library versioning type.
18193 version_type=$version_type
18194
18195 # Format of library name prefix.
18196 libname_spec=$lt_libname_spec
18197
18198 # List of archive names.  First name is the real one, the rest are links.
18199 # The last name is the one that the linker finds with -lNAME.
18200 library_names_spec=$lt_library_names_spec
18201
18202 # The coded name of the library, if different from the real name.
18203 soname_spec=$lt_soname_spec
18204
18205 # Commands used to build and install an old-style archive.
18206 RANLIB=$lt_RANLIB
18207 old_archive_cmds=$lt_old_archive_cmds_GCJ
18208 old_postinstall_cmds=$lt_old_postinstall_cmds
18209 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18210
18211 # Create an old-style archive from a shared archive.
18212 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18213
18214 # Create a temporary old-style archive to link instead of a shared archive.
18215 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18216
18217 # Commands used to build and install a shared archive.
18218 archive_cmds=$lt_archive_cmds_GCJ
18219 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18220 postinstall_cmds=$lt_postinstall_cmds
18221 postuninstall_cmds=$lt_postuninstall_cmds
18222
18223 # Commands used to build a loadable module (assumed same as above if empty)
18224 module_cmds=$lt_module_cmds_GCJ
18225 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18226
18227 # Commands to strip libraries.
18228 old_striplib=$lt_old_striplib
18229 striplib=$lt_striplib
18230
18231 # Dependencies to place before the objects being linked to create a
18232 # shared library.
18233 predep_objects=$lt_predep_objects_GCJ
18234
18235 # Dependencies to place after the objects being linked to create a
18236 # shared library.
18237 postdep_objects=$lt_postdep_objects_GCJ
18238
18239 # Dependencies to place before the objects being linked to create a
18240 # shared library.
18241 predeps=$lt_predeps_GCJ
18242
18243 # Dependencies to place after the objects being linked to create a
18244 # shared library.
18245 postdeps=$lt_postdeps_GCJ
18246
18247 # The library search path used internally by the compiler when linking
18248 # a shared library.
18249 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18250
18251 # Method to check whether dependent libraries are shared objects.
18252 deplibs_check_method=$lt_deplibs_check_method
18253
18254 # Command to use when deplibs_check_method == file_magic.
18255 file_magic_cmd=$lt_file_magic_cmd
18256
18257 # Flag that allows shared libraries with undefined symbols to be built.
18258 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18259
18260 # Flag that forces no undefined symbols.
18261 no_undefined_flag=$lt_no_undefined_flag_GCJ
18262
18263 # Commands used to finish a libtool library installation in a directory.
18264 finish_cmds=$lt_finish_cmds
18265
18266 # Same as above, but a single script fragment to be evaled but not shown.
18267 finish_eval=$lt_finish_eval
18268
18269 # Take the output of nm and produce a listing of raw symbols and C names.
18270 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18271
18272 # Transform the output of nm in a proper C declaration
18273 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18274
18275 # Transform the output of nm in a C name address pair
18276 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18277
18278 # This is the shared library runtime path variable.
18279 runpath_var=$runpath_var
18280
18281 # This is the shared library path variable.
18282 shlibpath_var=$shlibpath_var
18283
18284 # Is shlibpath searched before the hard-coded library search path?
18285 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18286
18287 # How to hardcode a shared library path into an executable.
18288 hardcode_action=$hardcode_action_GCJ
18289
18290 # Whether we should hardcode library paths into libraries.
18291 hardcode_into_libs=$hardcode_into_libs
18292
18293 # Flag to hardcode \$libdir into a binary during linking.
18294 # This must work even if \$libdir does not exist.
18295 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18296
18297 # If ld is used when linking, flag to hardcode \$libdir into
18298 # a binary during linking. This must work even if \$libdir does
18299 # not exist.
18300 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18301
18302 # Whether we need a single -rpath flag with a separated argument.
18303 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18304
18305 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18306 # resulting binary.
18307 hardcode_direct=$hardcode_direct_GCJ
18308
18309 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18310 # resulting binary.
18311 hardcode_minus_L=$hardcode_minus_L_GCJ
18312
18313 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18314 # the resulting binary.
18315 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18316
18317 # Set to yes if building a shared library automatically hardcodes DIR into the library
18318 # and all subsequent libraries and executables linked against it.
18319 hardcode_automatic=$hardcode_automatic_GCJ
18320
18321 # Variables whose values should be saved in libtool wrapper scripts and
18322 # restored at relink time.
18323 variables_saved_for_relink="$variables_saved_for_relink"
18324
18325 # Whether libtool must link a program against all its dependency libraries.
18326 link_all_deplibs=$link_all_deplibs_GCJ
18327
18328 # Compile-time system search path for libraries
18329 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18330
18331 # Run-time system search path for libraries
18332 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18333
18334 # Fix the shell variable \$srcfile for the compiler.
18335 fix_srcfile_path="$fix_srcfile_path_GCJ"
18336
18337 # Set to yes if exported symbols are required.
18338 always_export_symbols=$always_export_symbols_GCJ
18339
18340 # The commands to list exported symbols.
18341 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18342
18343 # The commands to extract the exported symbol list from a shared archive.
18344 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18345
18346 # Symbols that should not be listed in the preloaded symbols.
18347 exclude_expsyms=$lt_exclude_expsyms_GCJ
18348
18349 # Symbols that must always be exported.
18350 include_expsyms=$lt_include_expsyms_GCJ
18351
18352 # ### END LIBTOOL TAG CONFIG: $tagname
18353
18354 __EOF__
18355
18356
18357 else
18358   # If there is no Makefile yet, we rely on a make rule to execute
18359   # `config.status --recheck' to rerun these tests and create the
18360   # libtool script then.
18361   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18362   if test -f "$ltmain_in"; then
18363     test -f Makefile && make "$ltmain"
18364   fi
18365 fi
18366
18367
18368 ac_ext=c
18369 ac_cpp='$CPP $CPPFLAGS'
18370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18373
18374 CC="$lt_save_CC"
18375
18376         else
18377           tagname=""
18378         fi
18379         ;;
18380
18381       RC)
18382
18383
18384
18385 # Source file extension for RC test sources.
18386 ac_ext=rc
18387
18388 # Object file extension for compiled RC test sources.
18389 objext=o
18390 objext_RC=$objext
18391
18392 # Code to be used in simple compile tests
18393 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18394
18395 # Code to be used in simple link tests
18396 lt_simple_link_test_code="$lt_simple_compile_test_code"
18397
18398 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18399
18400 # If no C compiler was specified, use CC.
18401 LTCC=${LTCC-"$CC"}
18402
18403 # Allow CC to be a program name with arguments.
18404 compiler=$CC
18405
18406
18407 # Allow CC to be a program name with arguments.
18408 lt_save_CC="$CC"
18409 CC=${RC-"windres"}
18410 compiler=$CC
18411 compiler_RC=$CC
18412 lt_cv_prog_compiler_c_o_RC=yes
18413
18414 # The else clause should only fire when bootstrapping the
18415 # libtool distribution, otherwise you forgot to ship ltmain.sh
18416 # with your package, and you will get complaints that there are
18417 # no rules to generate ltmain.sh.
18418 if test -f "$ltmain"; then
18419   # See if we are running on zsh, and set the options which allow our commands through
18420   # without removal of \ escapes.
18421   if test -n "${ZSH_VERSION+set}" ; then
18422     setopt NO_GLOB_SUBST
18423   fi
18424   # Now quote all the things that may contain metacharacters while being
18425   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18426   # variables and quote the copies for generation of the libtool script.
18427   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18428     SED SHELL STRIP \
18429     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18430     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18431     deplibs_check_method reload_flag reload_cmds need_locks \
18432     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18433     lt_cv_sys_global_symbol_to_c_name_address \
18434     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18435     old_postinstall_cmds old_postuninstall_cmds \
18436     compiler_RC \
18437     CC_RC \
18438     LD_RC \
18439     lt_prog_compiler_wl_RC \
18440     lt_prog_compiler_pic_RC \
18441     lt_prog_compiler_static_RC \
18442     lt_prog_compiler_no_builtin_flag_RC \
18443     export_dynamic_flag_spec_RC \
18444     thread_safe_flag_spec_RC \
18445     whole_archive_flag_spec_RC \
18446     enable_shared_with_static_runtimes_RC \
18447     old_archive_cmds_RC \
18448     old_archive_from_new_cmds_RC \
18449     predep_objects_RC \
18450     postdep_objects_RC \
18451     predeps_RC \
18452     postdeps_RC \
18453     compiler_lib_search_path_RC \
18454     archive_cmds_RC \
18455     archive_expsym_cmds_RC \
18456     postinstall_cmds_RC \
18457     postuninstall_cmds_RC \
18458     old_archive_from_expsyms_cmds_RC \
18459     allow_undefined_flag_RC \
18460     no_undefined_flag_RC \
18461     export_symbols_cmds_RC \
18462     hardcode_libdir_flag_spec_RC \
18463     hardcode_libdir_flag_spec_ld_RC \
18464     hardcode_libdir_separator_RC \
18465     hardcode_automatic_RC \
18466     module_cmds_RC \
18467     module_expsym_cmds_RC \
18468     lt_cv_prog_compiler_c_o_RC \
18469     exclude_expsyms_RC \
18470     include_expsyms_RC; do
18471
18472     case $var in
18473     old_archive_cmds_RC | \
18474     old_archive_from_new_cmds_RC | \
18475     archive_cmds_RC | \
18476     archive_expsym_cmds_RC | \
18477     module_cmds_RC | \
18478     module_expsym_cmds_RC | \
18479     old_archive_from_expsyms_cmds_RC | \
18480     export_symbols_cmds_RC | \
18481     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18482     postinstall_cmds | postuninstall_cmds | \
18483     old_postinstall_cmds | old_postuninstall_cmds | \
18484     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18485       # Double-quote double-evaled strings.
18486       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18487       ;;
18488     *)
18489       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18490       ;;
18491     esac
18492   done
18493
18494   case $lt_echo in
18495   *'\$0 --fallback-echo"')
18496     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18497     ;;
18498   esac
18499
18500 cfgfile="$ofile"
18501
18502   cat <<__EOF__ >> "$cfgfile"
18503 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18504
18505 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18506
18507 # Shell to use when invoking shell scripts.
18508 SHELL=$lt_SHELL
18509
18510 # Whether or not to build shared libraries.
18511 build_libtool_libs=$enable_shared
18512
18513 # Whether or not to build static libraries.
18514 build_old_libs=$enable_static
18515
18516 # Whether or not to add -lc for building shared libraries.
18517 build_libtool_need_lc=$archive_cmds_need_lc_RC
18518
18519 # Whether or not to disallow shared libs when runtime libs are static
18520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18521
18522 # Whether or not to optimize for fast installation.
18523 fast_install=$enable_fast_install
18524
18525 # The host system.
18526 host_alias=$host_alias
18527 host=$host
18528
18529 # An echo program that does not interpret backslashes.
18530 echo=$lt_echo
18531
18532 # The archiver.
18533 AR=$lt_AR
18534 AR_FLAGS=$lt_AR_FLAGS
18535
18536 # A C compiler.
18537 LTCC=$lt_LTCC
18538
18539 # A language-specific compiler.
18540 CC=$lt_compiler_RC
18541
18542 # Is the compiler the GNU C compiler?
18543 with_gcc=$GCC_RC
18544
18545 # An ERE matcher.
18546 EGREP=$lt_EGREP
18547
18548 # The linker used to build libraries.
18549 LD=$lt_LD_RC
18550
18551 # Whether we need hard or soft links.
18552 LN_S=$lt_LN_S
18553
18554 # A BSD-compatible nm program.
18555 NM=$lt_NM
18556
18557 # A symbol stripping program
18558 STRIP=$lt_STRIP
18559
18560 # Used to examine libraries when file_magic_cmd begins "file"
18561 MAGIC_CMD=$MAGIC_CMD
18562
18563 # Used on cygwin: DLL creation program.
18564 DLLTOOL="$DLLTOOL"
18565
18566 # Used on cygwin: object dumper.
18567 OBJDUMP="$OBJDUMP"
18568
18569 # Used on cygwin: assembler.
18570 AS="$AS"
18571
18572 # The name of the directory that contains temporary libtool files.
18573 objdir=$objdir
18574
18575 # How to create reloadable object files.
18576 reload_flag=$lt_reload_flag
18577 reload_cmds=$lt_reload_cmds
18578
18579 # How to pass a linker flag through the compiler.
18580 wl=$lt_lt_prog_compiler_wl_RC
18581
18582 # Object file suffix (normally "o").
18583 objext="$ac_objext"
18584
18585 # Old archive suffix (normally "a").
18586 libext="$libext"
18587
18588 # Shared library suffix (normally ".so").
18589 shrext='$shrext'
18590
18591 # Executable file suffix (normally "").
18592 exeext="$exeext"
18593
18594 # Additional compiler flags for building library objects.
18595 pic_flag=$lt_lt_prog_compiler_pic_RC
18596 pic_mode=$pic_mode
18597
18598 # What is the maximum length of a command?
18599 max_cmd_len=$lt_cv_sys_max_cmd_len
18600
18601 # Does compiler simultaneously support -c and -o options?
18602 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18603
18604 # Must we lock files when doing compilation ?
18605 need_locks=$lt_need_locks
18606
18607 # Do we need the lib prefix for modules?
18608 need_lib_prefix=$need_lib_prefix
18609
18610 # Do we need a version for libraries?
18611 need_version=$need_version
18612
18613 # Whether dlopen is supported.
18614 dlopen_support=$enable_dlopen
18615
18616 # Whether dlopen of programs is supported.
18617 dlopen_self=$enable_dlopen_self
18618
18619 # Whether dlopen of statically linked programs is supported.
18620 dlopen_self_static=$enable_dlopen_self_static
18621
18622 # Compiler flag to prevent dynamic linking.
18623 link_static_flag=$lt_lt_prog_compiler_static_RC
18624
18625 # Compiler flag to turn off builtin functions.
18626 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18627
18628 # Compiler flag to allow reflexive dlopens.
18629 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18630
18631 # Compiler flag to generate shared objects directly from archives.
18632 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18633
18634 # Compiler flag to generate thread-safe objects.
18635 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18636
18637 # Library versioning type.
18638 version_type=$version_type
18639
18640 # Format of library name prefix.
18641 libname_spec=$lt_libname_spec
18642
18643 # List of archive names.  First name is the real one, the rest are links.
18644 # The last name is the one that the linker finds with -lNAME.
18645 library_names_spec=$lt_library_names_spec
18646
18647 # The coded name of the library, if different from the real name.
18648 soname_spec=$lt_soname_spec
18649
18650 # Commands used to build and install an old-style archive.
18651 RANLIB=$lt_RANLIB
18652 old_archive_cmds=$lt_old_archive_cmds_RC
18653 old_postinstall_cmds=$lt_old_postinstall_cmds
18654 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18655
18656 # Create an old-style archive from a shared archive.
18657 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18658
18659 # Create a temporary old-style archive to link instead of a shared archive.
18660 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18661
18662 # Commands used to build and install a shared archive.
18663 archive_cmds=$lt_archive_cmds_RC
18664 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18665 postinstall_cmds=$lt_postinstall_cmds
18666 postuninstall_cmds=$lt_postuninstall_cmds
18667
18668 # Commands used to build a loadable module (assumed same as above if empty)
18669 module_cmds=$lt_module_cmds_RC
18670 module_expsym_cmds=$lt_module_expsym_cmds_RC
18671
18672 # Commands to strip libraries.
18673 old_striplib=$lt_old_striplib
18674 striplib=$lt_striplib
18675
18676 # Dependencies to place before the objects being linked to create a
18677 # shared library.
18678 predep_objects=$lt_predep_objects_RC
18679
18680 # Dependencies to place after the objects being linked to create a
18681 # shared library.
18682 postdep_objects=$lt_postdep_objects_RC
18683
18684 # Dependencies to place before the objects being linked to create a
18685 # shared library.
18686 predeps=$lt_predeps_RC
18687
18688 # Dependencies to place after the objects being linked to create a
18689 # shared library.
18690 postdeps=$lt_postdeps_RC
18691
18692 # The library search path used internally by the compiler when linking
18693 # a shared library.
18694 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18695
18696 # Method to check whether dependent libraries are shared objects.
18697 deplibs_check_method=$lt_deplibs_check_method
18698
18699 # Command to use when deplibs_check_method == file_magic.
18700 file_magic_cmd=$lt_file_magic_cmd
18701
18702 # Flag that allows shared libraries with undefined symbols to be built.
18703 allow_undefined_flag=$lt_allow_undefined_flag_RC
18704
18705 # Flag that forces no undefined symbols.
18706 no_undefined_flag=$lt_no_undefined_flag_RC
18707
18708 # Commands used to finish a libtool library installation in a directory.
18709 finish_cmds=$lt_finish_cmds
18710
18711 # Same as above, but a single script fragment to be evaled but not shown.
18712 finish_eval=$lt_finish_eval
18713
18714 # Take the output of nm and produce a listing of raw symbols and C names.
18715 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18716
18717 # Transform the output of nm in a proper C declaration
18718 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18719
18720 # Transform the output of nm in a C name address pair
18721 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18722
18723 # This is the shared library runtime path variable.
18724 runpath_var=$runpath_var
18725
18726 # This is the shared library path variable.
18727 shlibpath_var=$shlibpath_var
18728
18729 # Is shlibpath searched before the hard-coded library search path?
18730 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18731
18732 # How to hardcode a shared library path into an executable.
18733 hardcode_action=$hardcode_action_RC
18734
18735 # Whether we should hardcode library paths into libraries.
18736 hardcode_into_libs=$hardcode_into_libs
18737
18738 # Flag to hardcode \$libdir into a binary during linking.
18739 # This must work even if \$libdir does not exist.
18740 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18741
18742 # If ld is used when linking, flag to hardcode \$libdir into
18743 # a binary during linking. This must work even if \$libdir does
18744 # not exist.
18745 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18746
18747 # Whether we need a single -rpath flag with a separated argument.
18748 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18749
18750 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18751 # resulting binary.
18752 hardcode_direct=$hardcode_direct_RC
18753
18754 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18755 # resulting binary.
18756 hardcode_minus_L=$hardcode_minus_L_RC
18757
18758 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18759 # the resulting binary.
18760 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18761
18762 # Set to yes if building a shared library automatically hardcodes DIR into the library
18763 # and all subsequent libraries and executables linked against it.
18764 hardcode_automatic=$hardcode_automatic_RC
18765
18766 # Variables whose values should be saved in libtool wrapper scripts and
18767 # restored at relink time.
18768 variables_saved_for_relink="$variables_saved_for_relink"
18769
18770 # Whether libtool must link a program against all its dependency libraries.
18771 link_all_deplibs=$link_all_deplibs_RC
18772
18773 # Compile-time system search path for libraries
18774 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18775
18776 # Run-time system search path for libraries
18777 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18778
18779 # Fix the shell variable \$srcfile for the compiler.
18780 fix_srcfile_path="$fix_srcfile_path_RC"
18781
18782 # Set to yes if exported symbols are required.
18783 always_export_symbols=$always_export_symbols_RC
18784
18785 # The commands to list exported symbols.
18786 export_symbols_cmds=$lt_export_symbols_cmds_RC
18787
18788 # The commands to extract the exported symbol list from a shared archive.
18789 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18790
18791 # Symbols that should not be listed in the preloaded symbols.
18792 exclude_expsyms=$lt_exclude_expsyms_RC
18793
18794 # Symbols that must always be exported.
18795 include_expsyms=$lt_include_expsyms_RC
18796
18797 # ### END LIBTOOL TAG CONFIG: $tagname
18798
18799 __EOF__
18800
18801
18802 else
18803   # If there is no Makefile yet, we rely on a make rule to execute
18804   # `config.status --recheck' to rerun these tests and create the
18805   # libtool script then.
18806   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18807   if test -f "$ltmain_in"; then
18808     test -f Makefile && make "$ltmain"
18809   fi
18810 fi
18811
18812
18813 ac_ext=c
18814 ac_cpp='$CPP $CPPFLAGS'
18815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18818
18819 CC="$lt_save_CC"
18820
18821         ;;
18822
18823       *)
18824         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18825 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18826    { (exit 1); exit 1; }; }
18827         ;;
18828       esac
18829
18830       # Append the new tag name to the list of available tags.
18831       if test -n "$tagname" ; then
18832       available_tags="$available_tags $tagname"
18833     fi
18834     fi
18835   done
18836   IFS="$lt_save_ifs"
18837
18838   # Now substitute the updated list of available tags.
18839   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18840     mv "${ofile}T" "$ofile"
18841     chmod +x "$ofile"
18842   else
18843     rm -f "${ofile}T"
18844     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18845 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18846    { (exit 1); exit 1; }; }
18847   fi
18848 fi
18849
18850
18851   if test ! -f "${ofile}"; then
18852     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18853 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18854   fi
18855   if test -z `grep -e 'shared_ext.*shrext' $ofile`; then
18856     # Make sure $shared_ext gets set to $shrext
18857     if sed -e 's/shared_ext/shrext/g' "$ofile" > "${ofile}T"; then
18858       mv "${ofile}T" "$ofile"
18859       chmod +x "$ofile"
18860     else
18861       rm -f "${ofile}T"
18862       { { echo "$as_me:$LINENO: error: unable to update shared_ext." >&5
18863 echo "$as_me: error: unable to update shared_ext." >&2;}
18864    { (exit 1); exit 1; }; }
18865     fi
18866   fi
18867
18868
18869
18870 # This can be used to rebuild libtool when needed
18871 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18872
18873 # Always use our own libtool.
18874 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18875
18876 # Prevent multiple expansion
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897  for ac_prog in gzip uncompress compress
18898 do
18899   # Extract the first word of "$ac_prog", so it can be a program name with args.
18900 set dummy $ac_prog; ac_word=$2
18901 echo "$as_me:$LINENO: checking for $ac_word" >&5
18902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18903 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
18904   echo $ECHO_N "(cached) $ECHO_C" >&6
18905 else
18906   if test -n "$UNCOMPRESS"; then
18907   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
18908 else
18909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18910 for as_dir in $PATH
18911 do
18912   IFS=$as_save_IFS
18913   test -z "$as_dir" && as_dir=.
18914   for ac_exec_ext in '' $ac_executable_extensions; do
18915   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18916     ac_cv_prog_UNCOMPRESS="$ac_prog"
18917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18918     break 2
18919   fi
18920 done
18921 done
18922
18923 fi
18924 fi
18925 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
18926 if test -n "$UNCOMPRESS"; then
18927   echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
18928 echo "${ECHO_T}$UNCOMPRESS" >&6
18929 else
18930   echo "$as_me:$LINENO: result: no" >&5
18931 echo "${ECHO_T}no" >&6
18932 fi
18933
18934   test -n "$UNCOMPRESS" && break
18935 done
18936
18937
18938 OBJEXT="o"
18939 AREXT=".a"
18940
18941
18942
18943 if test "x$EXEEXT" = "x.exe";then
18944     OBJEXT="obj"
18945     AREXT=".lib"
18946 fi
18947
18948
18949
18950
18951
18952
18953
18954 echo "$as_me:$LINENO: checking for target system" >&5
18955 echo $ECHO_N "checking for target system... $ECHO_C" >&6
18956 CYGWIN=
18957 MINGW=
18958 case $host_os in
18959     *cygwin* ) CYGWIN=yes;;
18960     *mingw* ) MINGW=yes;;
18961 esac
18962
18963 AR=ar
18964 if test "x$MINGW" = "xyes"; then
18965     #fix for the debian distribution of mingw
18966     if test -x "/usr/i586-mingw32msvc/bin/ar";then
18967         AR="/usr/i586-mingw32msvc/bin/ar"
18968     fi
18969     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
18970         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
18971     fi
18972     #fix for the gentoo distribution of mingw
18973     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
18974         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
18975     fi
18976     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
18977         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
18978     fi
18979     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
18980         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
18981     fi
18982 fi
18983
18984
18985
18986 if test "x${CYGWIN}" = "xyes"; then
18987     cat >>confdefs.h <<_ACEOF
18988 #define CYGWIN 1
18989 _ACEOF
18990
18991     echo "$as_me:$LINENO: result: cygwin" >&5
18992 echo "${ECHO_T}cygwin" >&6
18993 else
18994     if test "x${MINGW}" = "xyes"; then
18995         cat >>confdefs.h <<_ACEOF
18996 #define MINGW 1
18997 _ACEOF
18998
18999         WIN32=1
19000         cat >>confdefs.h <<_ACEOF
19001 #define WIN32 1
19002 _ACEOF
19003
19004         LIBS="$LIBS -lws2_32"
19005         echo "$as_me:$LINENO: result: mingw" >&5
19006 echo "${ECHO_T}mingw" >&6
19007     else
19008         LINUX=1
19009         export LINUX
19010         cat >>confdefs.h <<_ACEOF
19011 #define LINUX 1
19012 _ACEOF
19013
19014         echo "$as_me:$LINENO: result: " >&5
19015 echo "${ECHO_T}" >&6
19016     fi
19017 fi
19018
19019
19020 SLEXT="so"
19021 if test "x${MINGW}" != "xyes"; then
19022     # no mingW
19023     cat >>confdefs.h <<_ACEOF
19024 #define O_BINARY 0
19025 _ACEOF
19026
19027 else
19028     # mingW
19029     SLEXT="dll"
19030 fi
19031 export SLEXT
19032
19033
19034 # The following tries to make use of includes and libraries in
19035 # /usr/local, too. Notice: A -I/usr/local/include might break
19036 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
19037 # especially on systems which link /usr/local to /usr, so it has yet
19038 # to be seen how useful this is.
19039 if test -d /usr/local/lib; then
19040     LDFLAGS="$LDFLAGS -L/usr/local/lib"
19041 fi
19042 if test -d /usr/local/include; then
19043 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
19044 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
19045     echo > /dev/null
19046 fi
19047 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
19048     # if the user has a special prefix (like /opt), there might also be $prefix/lib
19049     # and $prefix/include, which should be included in our search paths for libraries
19050     # and includes.
19051     LDFLAGS="$LDFLAGS -L${libdir}"
19052     CPPFLAGS="$CPPFLAGS -I${includedir}"
19053     # TODO- test whether gcc still works after this
19054 fi
19055
19056 #Mac OS:
19057 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
19058
19059
19060 # this must be done after (I believe) AC_PROG_MAKE_SET
19061 if test "x$DEBUG" '!=' "x";then
19062     STRIP="@echo debug enabled, not stripping "
19063     export STRIP
19064
19065 fi
19066
19067
19068 echo "$as_me:$LINENO: checking for sin in -lm" >&5
19069 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
19070 if test "${ac_cv_lib_m_sin+set}" = set; then
19071   echo $ECHO_N "(cached) $ECHO_C" >&6
19072 else
19073   ac_check_lib_save_LIBS=$LIBS
19074 LIBS="-lm  $LIBS"
19075 cat >conftest.$ac_ext <<_ACEOF
19076 /* confdefs.h.  */
19077 _ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h.  */
19081
19082 /* Override any gcc2 internal prototype to avoid an error.  */
19083 #ifdef __cplusplus
19084 extern "C"
19085 #endif
19086 /* We use char because int might match the return type of a gcc2
19087    builtin and then its argument prototype would still apply.  */
19088 char sin ();
19089 int
19090 main ()
19091 {
19092 sin ();
19093   ;
19094   return 0;
19095 }
19096 _ACEOF
19097 rm -f conftest.$ac_objext conftest$ac_exeext
19098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19099   (eval $ac_link) 2>conftest.er1
19100   ac_status=$?
19101   grep -v '^ *+' conftest.er1 >conftest.err
19102   rm -f conftest.er1
19103   cat conftest.err >&5
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); } &&
19106          { ac_try='test -z "$ac_c_werror_flag"
19107                          || test ! -s conftest.err'
19108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109   (eval $ac_try) 2>&5
19110   ac_status=$?
19111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112   (exit $ac_status); }; } &&
19113          { ac_try='test -s conftest$ac_exeext'
19114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115   (eval $ac_try) 2>&5
19116   ac_status=$?
19117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118   (exit $ac_status); }; }; then
19119   ac_cv_lib_m_sin=yes
19120 else
19121   echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.$ac_ext >&5
19123
19124 ac_cv_lib_m_sin=no
19125 fi
19126 rm -f conftest.err conftest.$ac_objext \
19127       conftest$ac_exeext conftest.$ac_ext
19128 LIBS=$ac_check_lib_save_LIBS
19129 fi
19130 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
19131 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
19132 if test $ac_cv_lib_m_sin = yes; then
19133   cat >>confdefs.h <<_ACEOF
19134 #define HAVE_LIBM 1
19135 _ACEOF
19136
19137   LIBS="-lm $LIBS"
19138
19139 else
19140   echo "Error: Math library not found.";
19141  exit;
19142
19143 fi
19144
19145
19146 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19147 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19148 if test "${ac_cv_lib_z_deflate+set}" = set; then
19149   echo $ECHO_N "(cached) $ECHO_C" >&6
19150 else
19151   ac_check_lib_save_LIBS=$LIBS
19152 LIBS="-lz  $LIBS"
19153 cat >conftest.$ac_ext <<_ACEOF
19154 /* confdefs.h.  */
19155 _ACEOF
19156 cat confdefs.h >>conftest.$ac_ext
19157 cat >>conftest.$ac_ext <<_ACEOF
19158 /* end confdefs.h.  */
19159
19160 /* Override any gcc2 internal prototype to avoid an error.  */
19161 #ifdef __cplusplus
19162 extern "C"
19163 #endif
19164 /* We use char because int might match the return type of a gcc2
19165    builtin and then its argument prototype would still apply.  */
19166 char deflate ();
19167 int
19168 main ()
19169 {
19170 deflate ();
19171   ;
19172   return 0;
19173 }
19174 _ACEOF
19175 rm -f conftest.$ac_objext conftest$ac_exeext
19176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19177   (eval $ac_link) 2>conftest.er1
19178   ac_status=$?
19179   grep -v '^ *+' conftest.er1 >conftest.err
19180   rm -f conftest.er1
19181   cat conftest.err >&5
19182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183   (exit $ac_status); } &&
19184          { ac_try='test -z "$ac_c_werror_flag"
19185                          || test ! -s conftest.err'
19186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187   (eval $ac_try) 2>&5
19188   ac_status=$?
19189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190   (exit $ac_status); }; } &&
19191          { ac_try='test -s conftest$ac_exeext'
19192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193   (eval $ac_try) 2>&5
19194   ac_status=$?
19195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196   (exit $ac_status); }; }; then
19197   ac_cv_lib_z_deflate=yes
19198 else
19199   echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19201
19202 ac_cv_lib_z_deflate=no
19203 fi
19204 rm -f conftest.err conftest.$ac_objext \
19205       conftest$ac_exeext conftest.$ac_ext
19206 LIBS=$ac_check_lib_save_LIBS
19207 fi
19208 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19209 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19210 if test $ac_cv_lib_z_deflate = yes; then
19211   cat >>confdefs.h <<_ACEOF
19212 #define HAVE_LIBZ 1
19213 _ACEOF
19214
19215   LIBS="-lz $LIBS"
19216
19217 else
19218   ZLIBMISSING=true
19219 fi
19220
19221
19222 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
19223 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
19224 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
19225   echo $ECHO_N "(cached) $ECHO_C" >&6
19226 else
19227   ac_check_lib_save_LIBS=$LIBS
19228 LIBS="-ljpeg  $LIBS"
19229 cat >conftest.$ac_ext <<_ACEOF
19230 /* confdefs.h.  */
19231 _ACEOF
19232 cat confdefs.h >>conftest.$ac_ext
19233 cat >>conftest.$ac_ext <<_ACEOF
19234 /* end confdefs.h.  */
19235
19236 /* Override any gcc2 internal prototype to avoid an error.  */
19237 #ifdef __cplusplus
19238 extern "C"
19239 #endif
19240 /* We use char because int might match the return type of a gcc2
19241    builtin and then its argument prototype would still apply.  */
19242 char jpeg_write_raw_data ();
19243 int
19244 main ()
19245 {
19246 jpeg_write_raw_data ();
19247   ;
19248   return 0;
19249 }
19250 _ACEOF
19251 rm -f conftest.$ac_objext conftest$ac_exeext
19252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19253   (eval $ac_link) 2>conftest.er1
19254   ac_status=$?
19255   grep -v '^ *+' conftest.er1 >conftest.err
19256   rm -f conftest.er1
19257   cat conftest.err >&5
19258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259   (exit $ac_status); } &&
19260          { ac_try='test -z "$ac_c_werror_flag"
19261                          || test ! -s conftest.err'
19262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263   (eval $ac_try) 2>&5
19264   ac_status=$?
19265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); }; } &&
19267          { ac_try='test -s conftest$ac_exeext'
19268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269   (eval $ac_try) 2>&5
19270   ac_status=$?
19271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272   (exit $ac_status); }; }; then
19273   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
19274 else
19275   echo "$as_me: failed program was:" >&5
19276 sed 's/^/| /' conftest.$ac_ext >&5
19277
19278 ac_cv_lib_jpeg_jpeg_write_raw_data=no
19279 fi
19280 rm -f conftest.err conftest.$ac_objext \
19281       conftest$ac_exeext conftest.$ac_ext
19282 LIBS=$ac_check_lib_save_LIBS
19283 fi
19284 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
19285 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
19286 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
19287   cat >>confdefs.h <<_ACEOF
19288 #define HAVE_LIBJPEG 1
19289 _ACEOF
19290
19291   LIBS="-ljpeg $LIBS"
19292
19293 else
19294   JPEGLIBMISSING=true
19295 fi
19296
19297
19298 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
19299 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
19300 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
19301   echo $ECHO_N "(cached) $ECHO_C" >&6
19302 else
19303   ac_check_lib_save_LIBS=$LIBS
19304 LIBS="-lt1  $LIBS"
19305 cat >conftest.$ac_ext <<_ACEOF
19306 /* confdefs.h.  */
19307 _ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h.  */
19311
19312 /* Override any gcc2 internal prototype to avoid an error.  */
19313 #ifdef __cplusplus
19314 extern "C"
19315 #endif
19316 /* We use char because int might match the return type of a gcc2
19317    builtin and then its argument prototype would still apply.  */
19318 char T1_LoadFont ();
19319 int
19320 main ()
19321 {
19322 T1_LoadFont ();
19323   ;
19324   return 0;
19325 }
19326 _ACEOF
19327 rm -f conftest.$ac_objext conftest$ac_exeext
19328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19329   (eval $ac_link) 2>conftest.er1
19330   ac_status=$?
19331   grep -v '^ *+' conftest.er1 >conftest.err
19332   rm -f conftest.er1
19333   cat conftest.err >&5
19334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335   (exit $ac_status); } &&
19336          { ac_try='test -z "$ac_c_werror_flag"
19337                          || test ! -s conftest.err'
19338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339   (eval $ac_try) 2>&5
19340   ac_status=$?
19341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342   (exit $ac_status); }; } &&
19343          { ac_try='test -s conftest$ac_exeext'
19344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345   (eval $ac_try) 2>&5
19346   ac_status=$?
19347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348   (exit $ac_status); }; }; then
19349   ac_cv_lib_t1_T1_LoadFont=yes
19350 else
19351   echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19353
19354 ac_cv_lib_t1_T1_LoadFont=no
19355 fi
19356 rm -f conftest.err conftest.$ac_objext \
19357       conftest$ac_exeext conftest.$ac_ext
19358 LIBS=$ac_check_lib_save_LIBS
19359 fi
19360 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
19361 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
19362 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
19363   cat >>confdefs.h <<_ACEOF
19364 #define HAVE_LIBT1 1
19365 _ACEOF
19366
19367   LIBS="-lt1 $LIBS"
19368
19369 else
19370   T1LIBMISSING=true
19371 fi
19372
19373
19374
19375 echo "$as_me:$LINENO: checking for byte order" >&5
19376 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
19377 if test "$cross_compiling" = yes; then
19378   CROSSCOMPILE=1
19379 else
19380   cat >conftest.$ac_ext <<_ACEOF
19381 /* confdefs.h.  */
19382 _ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h.  */
19386
19387 int main (int argc, char *argv[])
19388 {
19389     int i = 1;
19390     return *(char*)&i;
19391 }
19392
19393 _ACEOF
19394 rm -f conftest$ac_exeext
19395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19396   (eval $ac_link) 2>&5
19397   ac_status=$?
19398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401   (eval $ac_try) 2>&5
19402   ac_status=$?
19403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404   (exit $ac_status); }; }; then
19405   BIGENDIAN=1
19406 else
19407   echo "$as_me: program exited with status $ac_status" >&5
19408 echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19410
19411 ( exit $ac_status )
19412 LITTLEENDIAN=1
19413 fi
19414 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19415 fi
19416 export CROSSCOMPILE
19417
19418 if test "x${CROSSCOMPILE}" = "x1"; then
19419  echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
19420 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
19421  echo "$as_me:$LINENO: checking target system type" >&5
19422 echo $ECHO_N "checking target system type... $ECHO_C" >&6
19423 if test "${ac_cv_target+set}" = set; then
19424   echo $ECHO_N "(cached) $ECHO_C" >&6
19425 else
19426   ac_cv_target_alias=$target_alias
19427 test "x$ac_cv_target_alias" = "x" &&
19428   ac_cv_target_alias=$ac_cv_host_alias
19429 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
19430   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
19431 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
19432    { (exit 1); exit 1; }; }
19433
19434 fi
19435 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
19436 echo "${ECHO_T}$ac_cv_target" >&6
19437 target=$ac_cv_target
19438 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
19439 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
19440 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
19441
19442
19443 # The aliases save the names the user supplied, while $host etc.
19444 # will get canonicalized.
19445 test -n "$target_alias" &&
19446   test "$program_prefix$program_suffix$program_transform_name" = \
19447     NONENONEs,x,x, &&
19448   program_prefix=${target_alias}-
19449  echo "$as_me:$LINENO: checking for byte order, try 2" >&5
19450 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
19451  case "${target}" in
19452   *86* | *-pc-* )
19453      LITTLEENDIAN=1
19454      ;;
19455   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
19456      BIGENDIAN=1
19457      ;;
19458  esac
19459 fi
19460
19461 export LITTLEENDIAN
19462 if test "x${LITTLEENDIAN}" = "x1"; then
19463 echo "$as_me:$LINENO: result: little endian" >&5
19464 echo "${ECHO_T}little endian" >&6
19465 BYTEORDERCHECKOK=1
19466 fi
19467 export BIGENDIAN
19468 if test "x${BIGENDIAN}" = "x1"; then
19469 echo "$as_me:$LINENO: result: big endian" >&5
19470 echo "${ECHO_T}big endian" >&6
19471 BYTEORDERCHECKOK=1
19472 WORDS_BIGENDIAN=1
19473 export WORDS_BIGENDIAN
19474 cat >>confdefs.h <<_ACEOF
19475 #define WORDS_BIGENDIAN 1
19476 _ACEOF
19477
19478 fi
19479 if test "x${BYTEORDERCHECKOK}" != "x1"; then
19480 echo "$as_me:$LINENO: result: unknown" >&5
19481 echo "${ECHO_T}unknown" >&6
19482 echo Byte order could not determined.
19483 exit 1
19484 fi
19485
19486
19487
19488 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
19489 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
19490 if test "$cross_compiling" = yes; then
19491   CROSSCOMPILE=1
19492 else
19493   cat >conftest.$ac_ext <<_ACEOF
19494 /* confdefs.h.  */
19495 _ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h.  */
19499
19500 #include "stdlib.h"
19501 int main (int argc, char*argv[])
19502 {
19503     return system("test `touch config.tmp2`");
19504 }
19505
19506 _ACEOF
19507 rm -f conftest$ac_exeext
19508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19509   (eval $ac_link) 2>&5
19510   ac_status=$?
19511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514   (eval $ac_try) 2>&5
19515   ac_status=$?
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); }; }; then
19518   OK=OK
19519 else
19520   echo "$as_me: program exited with status $ac_status" >&5
19521 echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19523
19524 fi
19525 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19526 fi
19527
19528 if test "x${OK}" = "xOK";then
19529     test -f config.tmp2 || OK=
19530 fi
19531
19532 if test "x${CROSSCOMPILE}" = "x1";then
19533     OK=OK;
19534 fi
19535 if test "x${OK}" = "xOK";then
19536 rm -f config.tmp2
19537 echo "$as_me:$LINENO: result: yes" >&5
19538 echo "${ECHO_T}yes" >&6
19539 SYSTEM_BACKTICKS=1
19540 export SYSTEM_BACKTICKS
19541 cat >>confdefs.h <<_ACEOF
19542 #define SYSTEM_BACKTICKS 1
19543 _ACEOF
19544
19545 else
19546 echo "$as_me:$LINENO: result: no" >&5
19547 echo "${ECHO_T}no" >&6
19548 fi
19549
19550
19551
19552 test "$program_prefix" != NONE &&
19553   program_transform_name="s,^,$program_prefix,;$program_transform_name"
19554 # Use a double $ so make ignores it.
19555 test "$program_suffix" != NONE &&
19556   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
19557 # Double any \ or $.  echo might interpret backslashes.
19558 # By default was `s,x,x', remove it if useless.
19559 cat <<\_ACEOF >conftest.sed
19560 s/[\\$]/&&/g;s/;s,x,x,$//
19561 _ACEOF
19562 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
19563 rm conftest.sed
19564
19565
19566            ac_config_headers="$ac_config_headers config.h"
19567
19568
19569
19570
19571
19572
19573 ac_header_dirent=no
19574 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19575   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19576 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19577 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19579   echo $ECHO_N "(cached) $ECHO_C" >&6
19580 else
19581   cat >conftest.$ac_ext <<_ACEOF
19582 /* confdefs.h.  */
19583 _ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h.  */
19587 #include <sys/types.h>
19588 #include <$ac_hdr>
19589
19590 int
19591 main ()
19592 {
19593 if ((DIR *) 0)
19594 return 0;
19595   ;
19596   return 0;
19597 }
19598 _ACEOF
19599 rm -f conftest.$ac_objext
19600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19601   (eval $ac_compile) 2>conftest.er1
19602   ac_status=$?
19603   grep -v '^ *+' conftest.er1 >conftest.err
19604   rm -f conftest.er1
19605   cat conftest.err >&5
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); } &&
19608          { ac_try='test -z "$ac_c_werror_flag"
19609                          || test ! -s conftest.err'
19610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611   (eval $ac_try) 2>&5
19612   ac_status=$?
19613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614   (exit $ac_status); }; } &&
19615          { ac_try='test -s conftest.$ac_objext'
19616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617   (eval $ac_try) 2>&5
19618   ac_status=$?
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); }; }; then
19621   eval "$as_ac_Header=yes"
19622 else
19623   echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19625
19626 eval "$as_ac_Header=no"
19627 fi
19628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19629 fi
19630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19633   cat >>confdefs.h <<_ACEOF
19634 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19635 _ACEOF
19636
19637 ac_header_dirent=$ac_hdr; break
19638 fi
19639
19640 done
19641 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19642 if test $ac_header_dirent = dirent.h; then
19643   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19644 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19645 if test "${ac_cv_search_opendir+set}" = set; then
19646   echo $ECHO_N "(cached) $ECHO_C" >&6
19647 else
19648   ac_func_search_save_LIBS=$LIBS
19649 ac_cv_search_opendir=no
19650 cat >conftest.$ac_ext <<_ACEOF
19651 /* confdefs.h.  */
19652 _ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h.  */
19656
19657 /* Override any gcc2 internal prototype to avoid an error.  */
19658 #ifdef __cplusplus
19659 extern "C"
19660 #endif
19661 /* We use char because int might match the return type of a gcc2
19662    builtin and then its argument prototype would still apply.  */
19663 char opendir ();
19664 int
19665 main ()
19666 {
19667 opendir ();
19668   ;
19669   return 0;
19670 }
19671 _ACEOF
19672 rm -f conftest.$ac_objext conftest$ac_exeext
19673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19674   (eval $ac_link) 2>conftest.er1
19675   ac_status=$?
19676   grep -v '^ *+' conftest.er1 >conftest.err
19677   rm -f conftest.er1
19678   cat conftest.err >&5
19679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680   (exit $ac_status); } &&
19681          { ac_try='test -z "$ac_c_werror_flag"
19682                          || test ! -s conftest.err'
19683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684   (eval $ac_try) 2>&5
19685   ac_status=$?
19686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687   (exit $ac_status); }; } &&
19688          { ac_try='test -s conftest$ac_exeext'
19689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690   (eval $ac_try) 2>&5
19691   ac_status=$?
19692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693   (exit $ac_status); }; }; then
19694   ac_cv_search_opendir="none required"
19695 else
19696   echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19698
19699 fi
19700 rm -f conftest.err conftest.$ac_objext \
19701       conftest$ac_exeext conftest.$ac_ext
19702 if test "$ac_cv_search_opendir" = no; then
19703   for ac_lib in dir; do
19704     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19705     cat >conftest.$ac_ext <<_ACEOF
19706 /* confdefs.h.  */
19707 _ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h.  */
19711
19712 /* Override any gcc2 internal prototype to avoid an error.  */
19713 #ifdef __cplusplus
19714 extern "C"
19715 #endif
19716 /* We use char because int might match the return type of a gcc2
19717    builtin and then its argument prototype would still apply.  */
19718 char opendir ();
19719 int
19720 main ()
19721 {
19722 opendir ();
19723   ;
19724   return 0;
19725 }
19726 _ACEOF
19727 rm -f conftest.$ac_objext conftest$ac_exeext
19728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19729   (eval $ac_link) 2>conftest.er1
19730   ac_status=$?
19731   grep -v '^ *+' conftest.er1 >conftest.err
19732   rm -f conftest.er1
19733   cat conftest.err >&5
19734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); } &&
19736          { ac_try='test -z "$ac_c_werror_flag"
19737                          || test ! -s conftest.err'
19738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739   (eval $ac_try) 2>&5
19740   ac_status=$?
19741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742   (exit $ac_status); }; } &&
19743          { ac_try='test -s conftest$ac_exeext'
19744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745   (eval $ac_try) 2>&5
19746   ac_status=$?
19747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748   (exit $ac_status); }; }; then
19749   ac_cv_search_opendir="-l$ac_lib"
19750 break
19751 else
19752   echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19754
19755 fi
19756 rm -f conftest.err conftest.$ac_objext \
19757       conftest$ac_exeext conftest.$ac_ext
19758   done
19759 fi
19760 LIBS=$ac_func_search_save_LIBS
19761 fi
19762 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19763 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19764 if test "$ac_cv_search_opendir" != no; then
19765   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19766
19767 fi
19768
19769 else
19770   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19771 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19772 if test "${ac_cv_search_opendir+set}" = set; then
19773   echo $ECHO_N "(cached) $ECHO_C" >&6
19774 else
19775   ac_func_search_save_LIBS=$LIBS
19776 ac_cv_search_opendir=no
19777 cat >conftest.$ac_ext <<_ACEOF
19778 /* confdefs.h.  */
19779 _ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h.  */
19783
19784 /* Override any gcc2 internal prototype to avoid an error.  */
19785 #ifdef __cplusplus
19786 extern "C"
19787 #endif
19788 /* We use char because int might match the return type of a gcc2
19789    builtin and then its argument prototype would still apply.  */
19790 char opendir ();
19791 int
19792 main ()
19793 {
19794 opendir ();
19795   ;
19796   return 0;
19797 }
19798 _ACEOF
19799 rm -f conftest.$ac_objext conftest$ac_exeext
19800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19801   (eval $ac_link) 2>conftest.er1
19802   ac_status=$?
19803   grep -v '^ *+' conftest.er1 >conftest.err
19804   rm -f conftest.er1
19805   cat conftest.err >&5
19806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807   (exit $ac_status); } &&
19808          { ac_try='test -z "$ac_c_werror_flag"
19809                          || test ! -s conftest.err'
19810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811   (eval $ac_try) 2>&5
19812   ac_status=$?
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); }; } &&
19815          { ac_try='test -s conftest$ac_exeext'
19816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817   (eval $ac_try) 2>&5
19818   ac_status=$?
19819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820   (exit $ac_status); }; }; then
19821   ac_cv_search_opendir="none required"
19822 else
19823   echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19825
19826 fi
19827 rm -f conftest.err conftest.$ac_objext \
19828       conftest$ac_exeext conftest.$ac_ext
19829 if test "$ac_cv_search_opendir" = no; then
19830   for ac_lib in x; do
19831     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19832     cat >conftest.$ac_ext <<_ACEOF
19833 /* confdefs.h.  */
19834 _ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h.  */
19838
19839 /* Override any gcc2 internal prototype to avoid an error.  */
19840 #ifdef __cplusplus
19841 extern "C"
19842 #endif
19843 /* We use char because int might match the return type of a gcc2
19844    builtin and then its argument prototype would still apply.  */
19845 char opendir ();
19846 int
19847 main ()
19848 {
19849 opendir ();
19850   ;
19851   return 0;
19852 }
19853 _ACEOF
19854 rm -f conftest.$ac_objext conftest$ac_exeext
19855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19856   (eval $ac_link) 2>conftest.er1
19857   ac_status=$?
19858   grep -v '^ *+' conftest.er1 >conftest.err
19859   rm -f conftest.er1
19860   cat conftest.err >&5
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); } &&
19863          { ac_try='test -z "$ac_c_werror_flag"
19864                          || test ! -s conftest.err'
19865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866   (eval $ac_try) 2>&5
19867   ac_status=$?
19868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869   (exit $ac_status); }; } &&
19870          { ac_try='test -s conftest$ac_exeext'
19871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872   (eval $ac_try) 2>&5
19873   ac_status=$?
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); }; }; then
19876   ac_cv_search_opendir="-l$ac_lib"
19877 break
19878 else
19879   echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19881
19882 fi
19883 rm -f conftest.err conftest.$ac_objext \
19884       conftest$ac_exeext conftest.$ac_ext
19885   done
19886 fi
19887 LIBS=$ac_func_search_save_LIBS
19888 fi
19889 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19890 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19891 if test "$ac_cv_search_opendir" != no; then
19892   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19893
19894 fi
19895
19896 fi
19897
19898  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19899 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19900 if test "${ac_cv_header_stdc+set}" = set; then
19901   echo $ECHO_N "(cached) $ECHO_C" >&6
19902 else
19903   cat >conftest.$ac_ext <<_ACEOF
19904 /* confdefs.h.  */
19905 _ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h.  */
19909 #include <stdlib.h>
19910 #include <stdarg.h>
19911 #include <string.h>
19912 #include <float.h>
19913
19914 int
19915 main ()
19916 {
19917
19918   ;
19919   return 0;
19920 }
19921 _ACEOF
19922 rm -f conftest.$ac_objext
19923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19924   (eval $ac_compile) 2>conftest.er1
19925   ac_status=$?
19926   grep -v '^ *+' conftest.er1 >conftest.err
19927   rm -f conftest.er1
19928   cat conftest.err >&5
19929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930   (exit $ac_status); } &&
19931          { ac_try='test -z "$ac_c_werror_flag"
19932                          || test ! -s conftest.err'
19933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934   (eval $ac_try) 2>&5
19935   ac_status=$?
19936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); }; } &&
19938          { ac_try='test -s conftest.$ac_objext'
19939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940   (eval $ac_try) 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); }; }; then
19944   ac_cv_header_stdc=yes
19945 else
19946   echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19948
19949 ac_cv_header_stdc=no
19950 fi
19951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19952
19953 if test $ac_cv_header_stdc = yes; then
19954   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19955   cat >conftest.$ac_ext <<_ACEOF
19956 /* confdefs.h.  */
19957 _ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h.  */
19961 #include <string.h>
19962
19963 _ACEOF
19964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19965   $EGREP "memchr" >/dev/null 2>&1; then
19966   :
19967 else
19968   ac_cv_header_stdc=no
19969 fi
19970 rm -f conftest*
19971
19972 fi
19973
19974 if test $ac_cv_header_stdc = yes; then
19975   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19976   cat >conftest.$ac_ext <<_ACEOF
19977 /* confdefs.h.  */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h.  */
19982 #include <stdlib.h>
19983
19984 _ACEOF
19985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19986   $EGREP "free" >/dev/null 2>&1; then
19987   :
19988 else
19989   ac_cv_header_stdc=no
19990 fi
19991 rm -f conftest*
19992
19993 fi
19994
19995 if test $ac_cv_header_stdc = yes; then
19996   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19997   if test "$cross_compiling" = yes; then
19998   :
19999 else
20000   cat >conftest.$ac_ext <<_ACEOF
20001 /* confdefs.h.  */
20002 _ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h.  */
20006 #include <ctype.h>
20007 #if ((' ' & 0x0FF) == 0x020)
20008 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20009 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20010 #else
20011 # define ISLOWER(c) \
20012                    (('a' <= (c) && (c) <= 'i') \
20013                      || ('j' <= (c) && (c) <= 'r') \
20014                      || ('s' <= (c) && (c) <= 'z'))
20015 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20016 #endif
20017
20018 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20019 int
20020 main ()
20021 {
20022   int i;
20023   for (i = 0; i < 256; i++)
20024     if (XOR (islower (i), ISLOWER (i))
20025         || toupper (i) != TOUPPER (i))
20026       exit(2);
20027   exit (0);
20028 }
20029 _ACEOF
20030 rm -f conftest$ac_exeext
20031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20032   (eval $ac_link) 2>&5
20033   ac_status=$?
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20037   (eval $ac_try) 2>&5
20038   ac_status=$?
20039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040   (exit $ac_status); }; }; then
20041   :
20042 else
20043   echo "$as_me: program exited with status $ac_status" >&5
20044 echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20046
20047 ( exit $ac_status )
20048 ac_cv_header_stdc=no
20049 fi
20050 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20051 fi
20052 fi
20053 fi
20054 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20055 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20056 if test $ac_cv_header_stdc = yes; then
20057
20058 cat >>confdefs.h <<\_ACEOF
20059 #define STDC_HEADERS 1
20060 _ACEOF
20061
20062 fi
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078 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
20079 do
20080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20082   echo "$as_me:$LINENO: checking for $ac_header" >&5
20083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20085   echo $ECHO_N "(cached) $ECHO_C" >&6
20086 fi
20087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20089 else
20090   # Is the header compilable?
20091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20093 cat >conftest.$ac_ext <<_ACEOF
20094 /* confdefs.h.  */
20095 _ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h.  */
20099 $ac_includes_default
20100 #include <$ac_header>
20101 _ACEOF
20102 rm -f conftest.$ac_objext
20103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20104   (eval $ac_compile) 2>conftest.er1
20105   ac_status=$?
20106   grep -v '^ *+' conftest.er1 >conftest.err
20107   rm -f conftest.er1
20108   cat conftest.err >&5
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); } &&
20111          { ac_try='test -z "$ac_c_werror_flag"
20112                          || test ! -s conftest.err'
20113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114   (eval $ac_try) 2>&5
20115   ac_status=$?
20116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117   (exit $ac_status); }; } &&
20118          { ac_try='test -s conftest.$ac_objext'
20119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120   (eval $ac_try) 2>&5
20121   ac_status=$?
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); }; }; then
20124   ac_header_compiler=yes
20125 else
20126   echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20128
20129 ac_header_compiler=no
20130 fi
20131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20133 echo "${ECHO_T}$ac_header_compiler" >&6
20134
20135 # Is the header present?
20136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20138 cat >conftest.$ac_ext <<_ACEOF
20139 /* confdefs.h.  */
20140 _ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h.  */
20144 #include <$ac_header>
20145 _ACEOF
20146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20147   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20148   ac_status=$?
20149   grep -v '^ *+' conftest.er1 >conftest.err
20150   rm -f conftest.er1
20151   cat conftest.err >&5
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); } >/dev/null; then
20154   if test -s conftest.err; then
20155     ac_cpp_err=$ac_c_preproc_warn_flag
20156     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20157   else
20158     ac_cpp_err=
20159   fi
20160 else
20161   ac_cpp_err=yes
20162 fi
20163 if test -z "$ac_cpp_err"; then
20164   ac_header_preproc=yes
20165 else
20166   echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20168
20169   ac_header_preproc=no
20170 fi
20171 rm -f conftest.err conftest.$ac_ext
20172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20173 echo "${ECHO_T}$ac_header_preproc" >&6
20174
20175 # So?  What about this header?
20176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20177   yes:no: )
20178     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20182     ac_header_preproc=yes
20183     ;;
20184   no:yes:* )
20185     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20187     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20188 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20189     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20191     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20192 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20195     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20197     (
20198       cat <<\_ASBOX
20199 ## ------------------------------------------ ##
20200 ## Report this to the AC_PACKAGE_NAME lists.  ##
20201 ## ------------------------------------------ ##
20202 _ASBOX
20203     ) |
20204       sed "s/^/$as_me: WARNING:     /" >&2
20205     ;;
20206 esac
20207 echo "$as_me:$LINENO: checking for $ac_header" >&5
20208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20210   echo $ECHO_N "(cached) $ECHO_C" >&6
20211 else
20212   eval "$as_ac_Header=\$ac_header_preproc"
20213 fi
20214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20216
20217 fi
20218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20219   cat >>confdefs.h <<_ACEOF
20220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20221 _ACEOF
20222
20223 fi
20224
20225 done
20226
20227
20228 cat >>confdefs.h <<_ACEOF
20229 #define PACKAGE "$PACKAGE"
20230 _ACEOF
20231
20232 cat >>confdefs.h <<_ACEOF
20233 #define VERSION "$VERSION"
20234 _ACEOF
20235
20236
20237
20238
20239
20240
20241
20242  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20243 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20244 if test "${ac_cv_c_const+set}" = set; then
20245   echo $ECHO_N "(cached) $ECHO_C" >&6
20246 else
20247   cat >conftest.$ac_ext <<_ACEOF
20248 /* confdefs.h.  */
20249 _ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h.  */
20253
20254 int
20255 main ()
20256 {
20257 /* FIXME: Include the comments suggested by Paul. */
20258 #ifndef __cplusplus
20259   /* Ultrix mips cc rejects this.  */
20260   typedef int charset[2];
20261   const charset x;
20262   /* SunOS 4.1.1 cc rejects this.  */
20263   char const *const *ccp;
20264   char **p;
20265   /* NEC SVR4.0.2 mips cc rejects this.  */
20266   struct point {int x, y;};
20267   static struct point const zero = {0,0};
20268   /* AIX XL C 1.02.0.0 rejects this.
20269      It does not let you subtract one const X* pointer from another in
20270      an arm of an if-expression whose if-part is not a constant
20271      expression */
20272   const char *g = "string";
20273   ccp = &g + (g ? g-g : 0);
20274   /* HPUX 7.0 cc rejects these. */
20275   ++ccp;
20276   p = (char**) ccp;
20277   ccp = (char const *const *) p;
20278   { /* SCO 3.2v4 cc rejects this.  */
20279     char *t;
20280     char const *s = 0 ? (char *) 0 : (char const *) 0;
20281
20282     *t++ = 0;
20283   }
20284   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20285     int x[] = {25, 17};
20286     const int *foo = &x[0];
20287     ++foo;
20288   }
20289   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20290     typedef const int *iptr;
20291     iptr p = 0;
20292     ++p;
20293   }
20294   { /* AIX XL C 1.02.0.0 rejects this saying
20295        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20296     struct s { int j; const int *ap[3]; };
20297     struct s *b; b->j = 5;
20298   }
20299   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20300     const int foo = 10;
20301   }
20302 #endif
20303
20304   ;
20305   return 0;
20306 }
20307 _ACEOF
20308 rm -f conftest.$ac_objext
20309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20310   (eval $ac_compile) 2>conftest.er1
20311   ac_status=$?
20312   grep -v '^ *+' conftest.er1 >conftest.err
20313   rm -f conftest.er1
20314   cat conftest.err >&5
20315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316   (exit $ac_status); } &&
20317          { ac_try='test -z "$ac_c_werror_flag"
20318                          || test ! -s conftest.err'
20319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320   (eval $ac_try) 2>&5
20321   ac_status=$?
20322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323   (exit $ac_status); }; } &&
20324          { ac_try='test -s conftest.$ac_objext'
20325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326   (eval $ac_try) 2>&5
20327   ac_status=$?
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); }; }; then
20330   ac_cv_c_const=yes
20331 else
20332   echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20334
20335 ac_cv_c_const=no
20336 fi
20337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20338 fi
20339 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20340 echo "${ECHO_T}$ac_cv_c_const" >&6
20341 if test $ac_cv_c_const = no; then
20342
20343 cat >>confdefs.h <<\_ACEOF
20344 #define const
20345 _ACEOF
20346
20347 fi
20348
20349  echo "$as_me:$LINENO: checking for inline" >&5
20350 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20351 if test "${ac_cv_c_inline+set}" = set; then
20352   echo $ECHO_N "(cached) $ECHO_C" >&6
20353 else
20354   ac_cv_c_inline=no
20355 for ac_kw in inline __inline__ __inline; do
20356   cat >conftest.$ac_ext <<_ACEOF
20357 /* confdefs.h.  */
20358 _ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h.  */
20362 #ifndef __cplusplus
20363 typedef int foo_t;
20364 static $ac_kw foo_t static_foo () {return 0; }
20365 $ac_kw foo_t foo () {return 0; }
20366 #endif
20367
20368 _ACEOF
20369 rm -f conftest.$ac_objext
20370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20371   (eval $ac_compile) 2>conftest.er1
20372   ac_status=$?
20373   grep -v '^ *+' conftest.er1 >conftest.err
20374   rm -f conftest.er1
20375   cat conftest.err >&5
20376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377   (exit $ac_status); } &&
20378          { ac_try='test -z "$ac_c_werror_flag"
20379                          || test ! -s conftest.err'
20380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381   (eval $ac_try) 2>&5
20382   ac_status=$?
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); }; } &&
20385          { ac_try='test -s conftest.$ac_objext'
20386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387   (eval $ac_try) 2>&5
20388   ac_status=$?
20389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390   (exit $ac_status); }; }; then
20391   ac_cv_c_inline=$ac_kw; break
20392 else
20393   echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20395
20396 fi
20397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20398 done
20399
20400 fi
20401 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20402 echo "${ECHO_T}$ac_cv_c_inline" >&6
20403
20404
20405 case $ac_cv_c_inline in
20406   inline | yes) ;;
20407   *)
20408     case $ac_cv_c_inline in
20409       no) ac_val=;;
20410       *) ac_val=$ac_cv_c_inline;;
20411     esac
20412     cat >>confdefs.h <<_ACEOF
20413 #ifndef __cplusplus
20414 #define inline $ac_val
20415 #endif
20416 _ACEOF
20417     ;;
20418 esac
20419
20420  echo "$as_me:$LINENO: checking for off_t" >&5
20421 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20422 if test "${ac_cv_type_off_t+set}" = set; then
20423   echo $ECHO_N "(cached) $ECHO_C" >&6
20424 else
20425   cat >conftest.$ac_ext <<_ACEOF
20426 /* confdefs.h.  */
20427 _ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h.  */
20431 $ac_includes_default
20432 int
20433 main ()
20434 {
20435 if ((off_t *) 0)
20436   return 0;
20437 if (sizeof (off_t))
20438   return 0;
20439   ;
20440   return 0;
20441 }
20442 _ACEOF
20443 rm -f conftest.$ac_objext
20444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20445   (eval $ac_compile) 2>conftest.er1
20446   ac_status=$?
20447   grep -v '^ *+' conftest.er1 >conftest.err
20448   rm -f conftest.er1
20449   cat conftest.err >&5
20450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451   (exit $ac_status); } &&
20452          { ac_try='test -z "$ac_c_werror_flag"
20453                          || test ! -s conftest.err'
20454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455   (eval $ac_try) 2>&5
20456   ac_status=$?
20457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); }; } &&
20459          { ac_try='test -s conftest.$ac_objext'
20460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461   (eval $ac_try) 2>&5
20462   ac_status=$?
20463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464   (exit $ac_status); }; }; then
20465   ac_cv_type_off_t=yes
20466 else
20467   echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20469
20470 ac_cv_type_off_t=no
20471 fi
20472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20473 fi
20474 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20475 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20476 if test $ac_cv_type_off_t = yes; then
20477   :
20478 else
20479
20480 cat >>confdefs.h <<_ACEOF
20481 #define off_t long
20482 _ACEOF
20483
20484 fi
20485
20486  echo "$as_me:$LINENO: checking for size_t" >&5
20487 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20488 if test "${ac_cv_type_size_t+set}" = set; then
20489   echo $ECHO_N "(cached) $ECHO_C" >&6
20490 else
20491   cat >conftest.$ac_ext <<_ACEOF
20492 /* confdefs.h.  */
20493 _ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h.  */
20497 $ac_includes_default
20498 int
20499 main ()
20500 {
20501 if ((size_t *) 0)
20502   return 0;
20503 if (sizeof (size_t))
20504   return 0;
20505   ;
20506   return 0;
20507 }
20508 _ACEOF
20509 rm -f conftest.$ac_objext
20510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20511   (eval $ac_compile) 2>conftest.er1
20512   ac_status=$?
20513   grep -v '^ *+' conftest.er1 >conftest.err
20514   rm -f conftest.er1
20515   cat conftest.err >&5
20516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517   (exit $ac_status); } &&
20518          { ac_try='test -z "$ac_c_werror_flag"
20519                          || test ! -s conftest.err'
20520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521   (eval $ac_try) 2>&5
20522   ac_status=$?
20523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524   (exit $ac_status); }; } &&
20525          { ac_try='test -s conftest.$ac_objext'
20526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527   (eval $ac_try) 2>&5
20528   ac_status=$?
20529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530   (exit $ac_status); }; }; then
20531   ac_cv_type_size_t=yes
20532 else
20533   echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20535
20536 ac_cv_type_size_t=no
20537 fi
20538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20539 fi
20540 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20541 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20542 if test $ac_cv_type_size_t = yes; then
20543   :
20544 else
20545
20546 cat >>confdefs.h <<_ACEOF
20547 #define size_t unsigned
20548 _ACEOF
20549
20550 fi
20551
20552  echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20553 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20554 if test "${ac_cv_struct_tm+set}" = set; then
20555   echo $ECHO_N "(cached) $ECHO_C" >&6
20556 else
20557   cat >conftest.$ac_ext <<_ACEOF
20558 /* confdefs.h.  */
20559 _ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h.  */
20563 #include <sys/types.h>
20564 #include <time.h>
20565
20566 int
20567 main ()
20568 {
20569 struct tm *tp; tp->tm_sec;
20570   ;
20571   return 0;
20572 }
20573 _ACEOF
20574 rm -f conftest.$ac_objext
20575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20576   (eval $ac_compile) 2>conftest.er1
20577   ac_status=$?
20578   grep -v '^ *+' conftest.er1 >conftest.err
20579   rm -f conftest.er1
20580   cat conftest.err >&5
20581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   (exit $ac_status); } &&
20583          { ac_try='test -z "$ac_c_werror_flag"
20584                          || test ! -s conftest.err'
20585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20586   (eval $ac_try) 2>&5
20587   ac_status=$?
20588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589   (exit $ac_status); }; } &&
20590          { ac_try='test -s conftest.$ac_objext'
20591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592   (eval $ac_try) 2>&5
20593   ac_status=$?
20594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595   (exit $ac_status); }; }; then
20596   ac_cv_struct_tm=time.h
20597 else
20598   echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20600
20601 ac_cv_struct_tm=sys/time.h
20602 fi
20603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20604 fi
20605 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20606 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20607 if test $ac_cv_struct_tm = sys/time.h; then
20608
20609 cat >>confdefs.h <<\_ACEOF
20610 #define TM_IN_SYS_TIME 1
20611 _ACEOF
20612
20613 fi
20614
20615  echo "$as_me:$LINENO: checking for boolean" >&5
20616 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
20617 if test "${ac_cv_type_boolean+set}" = set; then
20618   echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20620   cat >conftest.$ac_ext <<_ACEOF
20621 /* confdefs.h.  */
20622 _ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h.  */
20626 $ac_includes_default
20627 int
20628 main ()
20629 {
20630 if ((boolean *) 0)
20631   return 0;
20632 if (sizeof (boolean))
20633   return 0;
20634   ;
20635   return 0;
20636 }
20637 _ACEOF
20638 rm -f conftest.$ac_objext
20639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20640   (eval $ac_compile) 2>conftest.er1
20641   ac_status=$?
20642   grep -v '^ *+' conftest.er1 >conftest.err
20643   rm -f conftest.er1
20644   cat conftest.err >&5
20645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646   (exit $ac_status); } &&
20647          { ac_try='test -z "$ac_c_werror_flag"
20648                          || test ! -s conftest.err'
20649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650   (eval $ac_try) 2>&5
20651   ac_status=$?
20652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653   (exit $ac_status); }; } &&
20654          { ac_try='test -s conftest.$ac_objext'
20655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656   (eval $ac_try) 2>&5
20657   ac_status=$?
20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659   (exit $ac_status); }; }; then
20660   ac_cv_type_boolean=yes
20661 else
20662   echo "$as_me: failed program was:" >&5
20663 sed 's/^/| /' conftest.$ac_ext >&5
20664
20665 ac_cv_type_boolean=no
20666 fi
20667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20668 fi
20669 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
20670 echo "${ECHO_T}$ac_cv_type_boolean" >&6
20671 if test $ac_cv_type_boolean = yes; then
20672   :
20673 else
20674
20675 cat >>confdefs.h <<_ACEOF
20676 #define boolean int
20677 _ACEOF
20678
20679 fi
20680  #needed for jpeglib
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
20693 do
20694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20695 echo "$as_me:$LINENO: checking for $ac_func" >&5
20696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20697 if eval "test \"\${$as_ac_var+set}\" = set"; then
20698   echo $ECHO_N "(cached) $ECHO_C" >&6
20699 else
20700   cat >conftest.$ac_ext <<_ACEOF
20701 /* confdefs.h.  */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h.  */
20706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20708 #define $ac_func innocuous_$ac_func
20709
20710 /* System header to define __stub macros and hopefully few prototypes,
20711     which can conflict with char $ac_func (); below.
20712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20713     <limits.h> exists even on freestanding compilers.  */
20714
20715 #ifdef __STDC__
20716 # include <limits.h>
20717 #else
20718 # include <assert.h>
20719 #endif
20720
20721 #undef $ac_func
20722
20723 /* Override any gcc2 internal prototype to avoid an error.  */
20724 #ifdef __cplusplus
20725 extern "C"
20726 {
20727 #endif
20728 /* We use char because int might match the return type of a gcc2
20729    builtin and then its argument prototype would still apply.  */
20730 char $ac_func ();
20731 /* The GNU C library defines this for functions which it implements
20732     to always fail with ENOSYS.  Some functions are actually named
20733     something starting with __ and the normal name is an alias.  */
20734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20735 choke me
20736 #else
20737 char (*f) () = $ac_func;
20738 #endif
20739 #ifdef __cplusplus
20740 }
20741 #endif
20742
20743 int
20744 main ()
20745 {
20746 return f != $ac_func;
20747   ;
20748   return 0;
20749 }
20750 _ACEOF
20751 rm -f conftest.$ac_objext conftest$ac_exeext
20752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20753   (eval $ac_link) 2>conftest.er1
20754   ac_status=$?
20755   grep -v '^ *+' conftest.er1 >conftest.err
20756   rm -f conftest.er1
20757   cat conftest.err >&5
20758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759   (exit $ac_status); } &&
20760          { ac_try='test -z "$ac_c_werror_flag"
20761                          || test ! -s conftest.err'
20762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763   (eval $ac_try) 2>&5
20764   ac_status=$?
20765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766   (exit $ac_status); }; } &&
20767          { ac_try='test -s conftest$ac_exeext'
20768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769   (eval $ac_try) 2>&5
20770   ac_status=$?
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); }; }; then
20773   eval "$as_ac_var=yes"
20774 else
20775   echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20777
20778 eval "$as_ac_var=no"
20779 fi
20780 rm -f conftest.err conftest.$ac_objext \
20781       conftest$ac_exeext conftest.$ac_ext
20782 fi
20783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20785 if test `eval echo '${'$as_ac_var'}'` = yes; then
20786   cat >>confdefs.h <<_ACEOF
20787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20788 _ACEOF
20789
20790 fi
20791 done
20792
20793
20794 # ------------------------------------------------------------------
20795
20796
20797
20798 # Extract the first word of "freetype-config", so it can be a program name with args.
20799 set dummy freetype-config; ac_word=$2
20800 echo "$as_me:$LINENO: checking for $ac_word" >&5
20801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20802 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
20803   echo $ECHO_N "(cached) $ECHO_C" >&6
20804 else
20805   case $FREETYPE_CONFIG in
20806   [\\/]* | ?:[\\/]*)
20807   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
20808   ;;
20809   *)
20810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20811 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
20812 for as_dir in $as_dummy
20813 do
20814   IFS=$as_save_IFS
20815   test -z "$as_dir" && as_dir=.
20816   for ac_exec_ext in '' $ac_executable_extensions; do
20817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20818     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20820     break 2
20821   fi
20822 done
20823 done
20824
20825   ;;
20826 esac
20827 fi
20828 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
20829
20830 if test -n "$FREETYPE_CONFIG"; then
20831   echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
20832 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
20833 else
20834   echo "$as_me:$LINENO: result: no" >&5
20835 echo "${ECHO_T}no" >&6
20836 fi
20837
20838
20839 OLDCPPFLAGS="${CPPFLAGS}"
20840 OLDLIBS="${LIBS}"
20841 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
20842     CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
20843 else if test -d /usr/include/freetype2; then
20844     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
20845 else if test -d /usr/local/include/freetype2; then
20846     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
20847 fi
20848 fi
20849 fi
20850
20851 if test "x${FREETYPE_CONFIG}" '=' "x";then
20852     # if we didn't find the freetype-config program, we won't
20853     # know where the libs are expected to be. So just blindly
20854     # try to link against them.
20855     echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
20856 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
20857 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
20858   echo $ECHO_N "(cached) $ECHO_C" >&6
20859 else
20860   ac_check_lib_save_LIBS=$LIBS
20861 LIBS="-lfreetype  $LIBS"
20862 cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h.  */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h.  */
20868
20869 /* Override any gcc2 internal prototype to avoid an error.  */
20870 #ifdef __cplusplus
20871 extern "C"
20872 #endif
20873 /* We use char because int might match the return type of a gcc2
20874    builtin and then its argument prototype would still apply.  */
20875 char FT_Init_FreeType ();
20876 int
20877 main ()
20878 {
20879 FT_Init_FreeType ();
20880   ;
20881   return 0;
20882 }
20883 _ACEOF
20884 rm -f conftest.$ac_objext conftest$ac_exeext
20885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20886   (eval $ac_link) 2>conftest.er1
20887   ac_status=$?
20888   grep -v '^ *+' conftest.er1 >conftest.err
20889   rm -f conftest.er1
20890   cat conftest.err >&5
20891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892   (exit $ac_status); } &&
20893          { ac_try='test -z "$ac_c_werror_flag"
20894                          || test ! -s conftest.err'
20895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896   (eval $ac_try) 2>&5
20897   ac_status=$?
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); }; } &&
20900          { ac_try='test -s conftest$ac_exeext'
20901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902   (eval $ac_try) 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); }; }; then
20906   ac_cv_lib_freetype_FT_Init_FreeType=yes
20907 else
20908   echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20910
20911 ac_cv_lib_freetype_FT_Init_FreeType=no
20912 fi
20913 rm -f conftest.err conftest.$ac_objext \
20914       conftest$ac_exeext conftest.$ac_ext
20915 LIBS=$ac_check_lib_save_LIBS
20916 fi
20917 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
20918 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
20919 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
20920   HAVE_LIB_FREETYPE=1
20921 fi
20922
20923 fi
20924
20925
20926 for ac_header in ft2build.h
20927 do
20928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20930   echo "$as_me:$LINENO: checking for $ac_header" >&5
20931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20933   echo $ECHO_N "(cached) $ECHO_C" >&6
20934 fi
20935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20937 else
20938   # Is the header compilable?
20939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20941 cat >conftest.$ac_ext <<_ACEOF
20942 /* confdefs.h.  */
20943 _ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h.  */
20947 $ac_includes_default
20948 #include <$ac_header>
20949 _ACEOF
20950 rm -f conftest.$ac_objext
20951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20952   (eval $ac_compile) 2>conftest.er1
20953   ac_status=$?
20954   grep -v '^ *+' conftest.er1 >conftest.err
20955   rm -f conftest.er1
20956   cat conftest.err >&5
20957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958   (exit $ac_status); } &&
20959          { ac_try='test -z "$ac_c_werror_flag"
20960                          || test ! -s conftest.err'
20961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962   (eval $ac_try) 2>&5
20963   ac_status=$?
20964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965   (exit $ac_status); }; } &&
20966          { ac_try='test -s conftest.$ac_objext'
20967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968   (eval $ac_try) 2>&5
20969   ac_status=$?
20970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971   (exit $ac_status); }; }; then
20972   ac_header_compiler=yes
20973 else
20974   echo "$as_me: failed program was:" >&5
20975 sed 's/^/| /' conftest.$ac_ext >&5
20976
20977 ac_header_compiler=no
20978 fi
20979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20981 echo "${ECHO_T}$ac_header_compiler" >&6
20982
20983 # Is the header present?
20984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20986 cat >conftest.$ac_ext <<_ACEOF
20987 /* confdefs.h.  */
20988 _ACEOF
20989 cat confdefs.h >>conftest.$ac_ext
20990 cat >>conftest.$ac_ext <<_ACEOF
20991 /* end confdefs.h.  */
20992 #include <$ac_header>
20993 _ACEOF
20994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20996   ac_status=$?
20997   grep -v '^ *+' conftest.er1 >conftest.err
20998   rm -f conftest.er1
20999   cat conftest.err >&5
21000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); } >/dev/null; then
21002   if test -s conftest.err; then
21003     ac_cpp_err=$ac_c_preproc_warn_flag
21004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21005   else
21006     ac_cpp_err=
21007   fi
21008 else
21009   ac_cpp_err=yes
21010 fi
21011 if test -z "$ac_cpp_err"; then
21012   ac_header_preproc=yes
21013 else
21014   echo "$as_me: failed program was:" >&5
21015 sed 's/^/| /' conftest.$ac_ext >&5
21016
21017   ac_header_preproc=no
21018 fi
21019 rm -f conftest.err conftest.$ac_ext
21020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21021 echo "${ECHO_T}$ac_header_preproc" >&6
21022
21023 # So?  What about this header?
21024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21025   yes:no: )
21026     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21030     ac_header_preproc=yes
21031     ;;
21032   no:yes:* )
21033     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21035     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21036 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21037     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21039     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21040 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21043     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21045     (
21046       cat <<\_ASBOX
21047 ## ------------------------------------------ ##
21048 ## Report this to the AC_PACKAGE_NAME lists.  ##
21049 ## ------------------------------------------ ##
21050 _ASBOX
21051     ) |
21052       sed "s/^/$as_me: WARNING:     /" >&2
21053     ;;
21054 esac
21055 echo "$as_me:$LINENO: checking for $ac_header" >&5
21056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21058   echo $ECHO_N "(cached) $ECHO_C" >&6
21059 else
21060   eval "$as_ac_Header=\$ac_header_preproc"
21061 fi
21062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21064
21065 fi
21066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21067   cat >>confdefs.h <<_ACEOF
21068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21069 _ACEOF
21070  HAVE_FT2BUILD_H=1
21071 fi
21072
21073 done
21074
21075 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
21076
21077 for ac_header in freetype/freetype.h
21078 do
21079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21081   echo "$as_me:$LINENO: checking for $ac_header" >&5
21082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21084   echo $ECHO_N "(cached) $ECHO_C" >&6
21085 fi
21086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21088 else
21089   # Is the header compilable?
21090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21091 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
21099 #include <$ac_header>
21100 _ACEOF
21101 rm -f conftest.$ac_objext
21102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21103   (eval $ac_compile) 2>conftest.er1
21104   ac_status=$?
21105   grep -v '^ *+' conftest.er1 >conftest.err
21106   rm -f conftest.er1
21107   cat conftest.err >&5
21108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109   (exit $ac_status); } &&
21110          { ac_try='test -z "$ac_c_werror_flag"
21111                          || test ! -s conftest.err'
21112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113   (eval $ac_try) 2>&5
21114   ac_status=$?
21115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116   (exit $ac_status); }; } &&
21117          { ac_try='test -s conftest.$ac_objext'
21118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119   (eval $ac_try) 2>&5
21120   ac_status=$?
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); }; }; then
21123   ac_header_compiler=yes
21124 else
21125   echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128 ac_header_compiler=no
21129 fi
21130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21132 echo "${ECHO_T}$ac_header_compiler" >&6
21133
21134 # Is the header present?
21135 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21137 cat >conftest.$ac_ext <<_ACEOF
21138 /* confdefs.h.  */
21139 _ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h.  */
21143 #include <$ac_header>
21144 _ACEOF
21145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21147   ac_status=$?
21148   grep -v '^ *+' conftest.er1 >conftest.err
21149   rm -f conftest.er1
21150   cat conftest.err >&5
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); } >/dev/null; then
21153   if test -s conftest.err; then
21154     ac_cpp_err=$ac_c_preproc_warn_flag
21155     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21156   else
21157     ac_cpp_err=
21158   fi
21159 else
21160   ac_cpp_err=yes
21161 fi
21162 if test -z "$ac_cpp_err"; then
21163   ac_header_preproc=yes
21164 else
21165   echo "$as_me: failed program was:" >&5
21166 sed 's/^/| /' conftest.$ac_ext >&5
21167
21168   ac_header_preproc=no
21169 fi
21170 rm -f conftest.err conftest.$ac_ext
21171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21172 echo "${ECHO_T}$ac_header_preproc" >&6
21173
21174 # So?  What about this header?
21175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21176   yes:no: )
21177     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21181     ac_header_preproc=yes
21182     ;;
21183   no:yes:* )
21184     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21186     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21187 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21188     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21190     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21191 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21194     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21196     (
21197       cat <<\_ASBOX
21198 ## ------------------------------------------ ##
21199 ## Report this to the AC_PACKAGE_NAME lists.  ##
21200 ## ------------------------------------------ ##
21201 _ASBOX
21202     ) |
21203       sed "s/^/$as_me: WARNING:     /" >&2
21204     ;;
21205 esac
21206 echo "$as_me:$LINENO: checking for $ac_header" >&5
21207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21209   echo $ECHO_N "(cached) $ECHO_C" >&6
21210 else
21211   eval "$as_ac_Header=\$ac_header_preproc"
21212 fi
21213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21215
21216 fi
21217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21218   cat >>confdefs.h <<_ACEOF
21219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21220 _ACEOF
21221  HAVE_FREETYPE_FREETYPE_H=1
21222 fi
21223
21224 done
21225
21226 fi
21227
21228 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
21229         "x${FREETYPE_CONFIG}" '!=' "x";then
21230     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
21231         HAVE_FREETYPE=1
21232     fi
21233     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
21234         HAVE_FREETYPE=1
21235     fi
21236 fi
21237
21238 if test "x${HAVE_FREETYPE}" = "x1"; then
21239     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
21240         LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
21241     else
21242         LIBS="$LIBS -lfreetype"
21243     fi
21244
21245     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
21246         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
21247     fi
21248
21249     echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
21250 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
21251
21252     cat > conftest.c << EOF
21253 $HAVE_FT2BUILD_H_DEFINE
21254
21255 #ifdef HAVE_FT2BUILD_H
21256 #include <ft2build.h>
21257 #include FT_FREETYPE_H
21258 #include FT_GLYPH_H
21259 #include FT_SIZES_H
21260 #include FT_SFNT_NAMES_H
21261 #include FT_TRUETYPE_IDS_H
21262 #include FT_OUTLINE_H
21263 #else
21264 #include <freetype/freetype.h>
21265 #include <freetype/ftglyph.h>
21266 #include <freetype/ftsizes.h>
21267 #include <freetype/ftsnames.h>
21268 #include <freetype/ttnameid.h>
21269 #include <freetype/ftoutln.h>
21270 #endif
21271
21272 int main()
21273 {
21274     FT_Library ftlibrary;
21275     FT_Face face;
21276     FT_Error error;
21277     FT_ULong charcode;
21278     FT_UInt gindex;
21279     FT_Glyph glyph;
21280     FT_BBox bbox;
21281     FT_Matrix matrix;
21282     FT_UInt i;
21283     char* name = 0;
21284     char italic, bold;
21285
21286     FT_Init_FreeType(&ftlibrary);
21287     FT_New_Face(ftlibrary, "filename", 0, &face);
21288     i = face->num_glyphs - 1;
21289     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
21290     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
21291     FT_Get_Postscript_Name(face);
21292     FT_Get_Char_Index(face, 33);
21293     FT_Get_First_Char(face, &i);
21294     FT_Get_Next_Char(face, 33, &i);
21295     if(FT_HAS_GLYPH_NAMES(face)) {
21296         FT_Get_Glyph_Name(face, 33, name, 127);
21297     }
21298     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
21299     FT_Get_Glyph(face->glyph, &glyph);
21300     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
21301     FT_Done_Glyph(glyph);
21302     FT_Done_Face(face);
21303     FT_Done_FreeType(ftlibrary);
21304     return 0;
21305 }
21306 EOF
21307
21308     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
21309     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21310         echo "$as_me:$LINENO: result: yes" >&5
21311 echo "${ECHO_T}yes" >&6
21312         cat >>confdefs.h <<_ACEOF
21313 #define HAVE_FREETYPE 1
21314 _ACEOF
21315
21316         cat >>confdefs.h <<_ACEOF
21317 #define USE_FREETYPE 1
21318 _ACEOF
21319   # for ttf2tp1
21320     else
21321         echo "configure: failed program was:" >&5
21322         cat conftest.c >&5
21323         HAVE_FREETYPE=0
21324         echo "$as_me:$LINENO: result: no" >&5
21325 echo "${ECHO_T}no" >&6
21326     fi
21327     rm -f conftest*
21328 fi
21329
21330 # if the above didn't work out, reset all changes to the compiler variables.
21331 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
21332     CPPFLAGS=$OLDCPPFLAGS
21333     LIBS=$OLDLIBS
21334 fi
21335
21336
21337
21338 OLDCPPFLAGS="${CPPFLAGS}"
21339 OLDLIBS="${LIBS}"
21340
21341 if test -d /usr/include/fontconfig; then
21342     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
21343 fi
21344
21345 echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
21346 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
21347 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
21348   echo $ECHO_N "(cached) $ECHO_C" >&6
21349 else
21350   ac_check_lib_save_LIBS=$LIBS
21351 LIBS="-lfontconfig  $LIBS"
21352 cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h.  */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h.  */
21358
21359 /* Override any gcc2 internal prototype to avoid an error.  */
21360 #ifdef __cplusplus
21361 extern "C"
21362 #endif
21363 /* We use char because int might match the return type of a gcc2
21364    builtin and then its argument prototype would still apply.  */
21365 char FcInit ();
21366 int
21367 main ()
21368 {
21369 FcInit ();
21370   ;
21371   return 0;
21372 }
21373 _ACEOF
21374 rm -f conftest.$ac_objext conftest$ac_exeext
21375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21376   (eval $ac_link) 2>conftest.er1
21377   ac_status=$?
21378   grep -v '^ *+' conftest.er1 >conftest.err
21379   rm -f conftest.er1
21380   cat conftest.err >&5
21381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382   (exit $ac_status); } &&
21383          { ac_try='test -z "$ac_c_werror_flag"
21384                          || test ! -s conftest.err'
21385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386   (eval $ac_try) 2>&5
21387   ac_status=$?
21388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389   (exit $ac_status); }; } &&
21390          { ac_try='test -s conftest$ac_exeext'
21391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21392   (eval $ac_try) 2>&5
21393   ac_status=$?
21394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395   (exit $ac_status); }; }; then
21396   ac_cv_lib_fontconfig_FcInit=yes
21397 else
21398   echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21400
21401 ac_cv_lib_fontconfig_FcInit=no
21402 fi
21403 rm -f conftest.err conftest.$ac_objext \
21404       conftest$ac_exeext conftest.$ac_ext
21405 LIBS=$ac_check_lib_save_LIBS
21406 fi
21407 echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
21408 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
21409 if test $ac_cv_lib_fontconfig_FcInit = yes; then
21410   HAVE_LIB_FONTCONFIG=1
21411 fi
21412
21413
21414 for ac_header in fontconfig.h
21415 do
21416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21418   echo "$as_me:$LINENO: checking for $ac_header" >&5
21419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21421   echo $ECHO_N "(cached) $ECHO_C" >&6
21422 fi
21423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21425 else
21426   # Is the header compilable?
21427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21429 cat >conftest.$ac_ext <<_ACEOF
21430 /* confdefs.h.  */
21431 _ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h.  */
21435 $ac_includes_default
21436 #include <$ac_header>
21437 _ACEOF
21438 rm -f conftest.$ac_objext
21439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21440   (eval $ac_compile) 2>conftest.er1
21441   ac_status=$?
21442   grep -v '^ *+' conftest.er1 >conftest.err
21443   rm -f conftest.er1
21444   cat conftest.err >&5
21445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446   (exit $ac_status); } &&
21447          { ac_try='test -z "$ac_c_werror_flag"
21448                          || test ! -s conftest.err'
21449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450   (eval $ac_try) 2>&5
21451   ac_status=$?
21452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453   (exit $ac_status); }; } &&
21454          { ac_try='test -s conftest.$ac_objext'
21455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456   (eval $ac_try) 2>&5
21457   ac_status=$?
21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); }; }; then
21460   ac_header_compiler=yes
21461 else
21462   echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21464
21465 ac_header_compiler=no
21466 fi
21467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21469 echo "${ECHO_T}$ac_header_compiler" >&6
21470
21471 # Is the header present?
21472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21474 cat >conftest.$ac_ext <<_ACEOF
21475 /* confdefs.h.  */
21476 _ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h.  */
21480 #include <$ac_header>
21481 _ACEOF
21482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21484   ac_status=$?
21485   grep -v '^ *+' conftest.er1 >conftest.err
21486   rm -f conftest.er1
21487   cat conftest.err >&5
21488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489   (exit $ac_status); } >/dev/null; then
21490   if test -s conftest.err; then
21491     ac_cpp_err=$ac_c_preproc_warn_flag
21492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21493   else
21494     ac_cpp_err=
21495   fi
21496 else
21497   ac_cpp_err=yes
21498 fi
21499 if test -z "$ac_cpp_err"; then
21500   ac_header_preproc=yes
21501 else
21502   echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21504
21505   ac_header_preproc=no
21506 fi
21507 rm -f conftest.err conftest.$ac_ext
21508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21509 echo "${ECHO_T}$ac_header_preproc" >&6
21510
21511 # So?  What about this header?
21512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21513   yes:no: )
21514     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21518     ac_header_preproc=yes
21519     ;;
21520   no:yes:* )
21521     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21523     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21524 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21525     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21527     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21528 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21531     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21533     (
21534       cat <<\_ASBOX
21535 ## ------------------------------------------ ##
21536 ## Report this to the AC_PACKAGE_NAME lists.  ##
21537 ## ------------------------------------------ ##
21538 _ASBOX
21539     ) |
21540       sed "s/^/$as_me: WARNING:     /" >&2
21541     ;;
21542 esac
21543 echo "$as_me:$LINENO: checking for $ac_header" >&5
21544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21546   echo $ECHO_N "(cached) $ECHO_C" >&6
21547 else
21548   eval "$as_ac_Header=\$ac_header_preproc"
21549 fi
21550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21552
21553 fi
21554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21555   cat >>confdefs.h <<_ACEOF
21556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21557 _ACEOF
21558  HAVE_FONTCONFIG_H=1
21559 fi
21560
21561 done
21562
21563
21564 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
21565 if test "x${HAVE_FONTCONFIG_H}" != "x";then
21566     HAVE_FONTCONFIG=1
21567 fi
21568 fi
21569
21570 if test "x${HAVE_FONTCONFIG}" = "x1"; then
21571     LIBS="$LIBS -lfontconfig"
21572 echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
21573 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6
21574
21575 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
21576     #move freetype library to the end of libraries, otherwise fontconfig
21577     #won't compile.
21578     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
21579 fi
21580
21581 cat > conftest.c << EOF
21582 #include <fontconfig.h>
21583
21584 int main()
21585 {
21586     FcPattern *pattern, *match;
21587     FcResult result;
21588     FcChar8 *v;
21589     FcInit();
21590     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
21591     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
21592     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
21593     FcConfigSubstitute(0, pattern, FcMatchPattern);
21594     FcDefaultSubstitute(pattern);
21595     match = FcFontMatch(0, pattern, &result);
21596     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
21597     FcPatternPrint(pattern);
21598     FcPatternDestroy(pattern);
21599     FcPatternDestroy(match);
21600     return 0;
21601 }
21602 EOF
21603
21604     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
21605     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21606         echo "$as_me:$LINENO: result: yes" >&5
21607 echo "${ECHO_T}yes" >&6
21608         cat >>confdefs.h <<_ACEOF
21609 #define HAVE_FONTCONFIG 1
21610 _ACEOF
21611
21612     else
21613         echo "configure: failed program was:" >&5
21614         cat conftest.c >&5
21615         HAVE_FONTCONFIG=0
21616         echo "$as_me:$LINENO: result: no" >&5
21617 echo "${ECHO_T}no" >&6
21618     fi
21619     rm -f conftest*
21620 fi
21621
21622 # if the above didn't work out, reset all changes to the compiler variables.
21623 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
21624     CPPFLAGS=$OLDCPPFLAGS
21625     LIBS=$OLDLIBS
21626 fi
21627
21628
21629 # ------------------------------------------------------------------
21630
21631 lame_objects=
21632 lame_makefile=
21633 if test "x${DISABLE_LAME}" = "xtrue"; then
21634     echo "*" Disabling lame support...
21635 else
21636     # old lame code at lib/lame
21637     if test -f lib/lame/Makefile.in; then
21638         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)"
21639         lame_makefile="lib/lame/Makefile"
21640         CPPFLAGS="$CPPFLAGS -Ilame"
21641         cat >>confdefs.h <<_ACEOF
21642 #define HAVE_LAME 1
21643 _ACEOF
21644
21645     else
21646         if test -d /usr/include/lame; then
21647             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
21648         else
21649             if test -d /usr/local/include/lame; then
21650                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
21651             fi
21652         fi
21653
21654 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
21655 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
21656 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
21657   echo $ECHO_N "(cached) $ECHO_C" >&6
21658 else
21659   ac_check_lib_save_LIBS=$LIBS
21660 LIBS="-lmp3lame  $LIBS"
21661 cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h.  */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h.  */
21667
21668 /* Override any gcc2 internal prototype to avoid an error.  */
21669 #ifdef __cplusplus
21670 extern "C"
21671 #endif
21672 /* We use char because int might match the return type of a gcc2
21673    builtin and then its argument prototype would still apply.  */
21674 char lame_init ();
21675 int
21676 main ()
21677 {
21678 lame_init ();
21679   ;
21680   return 0;
21681 }
21682 _ACEOF
21683 rm -f conftest.$ac_objext conftest$ac_exeext
21684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21685   (eval $ac_link) 2>conftest.er1
21686   ac_status=$?
21687   grep -v '^ *+' conftest.er1 >conftest.err
21688   rm -f conftest.er1
21689   cat conftest.err >&5
21690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691   (exit $ac_status); } &&
21692          { ac_try='test -z "$ac_c_werror_flag"
21693                          || test ! -s conftest.err'
21694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21695   (eval $ac_try) 2>&5
21696   ac_status=$?
21697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698   (exit $ac_status); }; } &&
21699          { ac_try='test -s conftest$ac_exeext'
21700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701   (eval $ac_try) 2>&5
21702   ac_status=$?
21703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704   (exit $ac_status); }; }; then
21705   ac_cv_lib_mp3lame_lame_init=yes
21706 else
21707   echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21709
21710 ac_cv_lib_mp3lame_lame_init=no
21711 fi
21712 rm -f conftest.err conftest.$ac_objext \
21713       conftest$ac_exeext conftest.$ac_ext
21714 LIBS=$ac_check_lib_save_LIBS
21715 fi
21716 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
21717 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
21718 if test $ac_cv_lib_mp3lame_lame_init = yes; then
21719   cat >>confdefs.h <<_ACEOF
21720 #define HAVE_LIBMP3LAME 1
21721 _ACEOF
21722
21723   LIBS="-lmp3lame $LIBS"
21724
21725 else
21726   NO_LIBMP3LAME=1
21727 fi
21728
21729
21730 for ac_header in lame.h
21731 do
21732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21734   echo "$as_me:$LINENO: checking for $ac_header" >&5
21735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21737   echo $ECHO_N "(cached) $ECHO_C" >&6
21738 fi
21739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21741 else
21742   # Is the header compilable?
21743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21745 cat >conftest.$ac_ext <<_ACEOF
21746 /* confdefs.h.  */
21747 _ACEOF
21748 cat confdefs.h >>conftest.$ac_ext
21749 cat >>conftest.$ac_ext <<_ACEOF
21750 /* end confdefs.h.  */
21751 $ac_includes_default
21752 #include <$ac_header>
21753 _ACEOF
21754 rm -f conftest.$ac_objext
21755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21756   (eval $ac_compile) 2>conftest.er1
21757   ac_status=$?
21758   grep -v '^ *+' conftest.er1 >conftest.err
21759   rm -f conftest.er1
21760   cat conftest.err >&5
21761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762   (exit $ac_status); } &&
21763          { ac_try='test -z "$ac_c_werror_flag"
21764                          || test ! -s conftest.err'
21765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766   (eval $ac_try) 2>&5
21767   ac_status=$?
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); }; } &&
21770          { ac_try='test -s conftest.$ac_objext'
21771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21772   (eval $ac_try) 2>&5
21773   ac_status=$?
21774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775   (exit $ac_status); }; }; then
21776   ac_header_compiler=yes
21777 else
21778   echo "$as_me: failed program was:" >&5
21779 sed 's/^/| /' conftest.$ac_ext >&5
21780
21781 ac_header_compiler=no
21782 fi
21783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21785 echo "${ECHO_T}$ac_header_compiler" >&6
21786
21787 # Is the header present?
21788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21790 cat >conftest.$ac_ext <<_ACEOF
21791 /* confdefs.h.  */
21792 _ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h.  */
21796 #include <$ac_header>
21797 _ACEOF
21798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21799   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21800   ac_status=$?
21801   grep -v '^ *+' conftest.er1 >conftest.err
21802   rm -f conftest.er1
21803   cat conftest.err >&5
21804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805   (exit $ac_status); } >/dev/null; then
21806   if test -s conftest.err; then
21807     ac_cpp_err=$ac_c_preproc_warn_flag
21808     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21809   else
21810     ac_cpp_err=
21811   fi
21812 else
21813   ac_cpp_err=yes
21814 fi
21815 if test -z "$ac_cpp_err"; then
21816   ac_header_preproc=yes
21817 else
21818   echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21820
21821   ac_header_preproc=no
21822 fi
21823 rm -f conftest.err conftest.$ac_ext
21824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21825 echo "${ECHO_T}$ac_header_preproc" >&6
21826
21827 # So?  What about this header?
21828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21829   yes:no: )
21830     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21834     ac_header_preproc=yes
21835     ;;
21836   no:yes:* )
21837     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21839     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21840 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21841     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21843     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21844 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21847     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21849     (
21850       cat <<\_ASBOX
21851 ## ------------------------------------------ ##
21852 ## Report this to the AC_PACKAGE_NAME lists.  ##
21853 ## ------------------------------------------ ##
21854 _ASBOX
21855     ) |
21856       sed "s/^/$as_me: WARNING:     /" >&2
21857     ;;
21858 esac
21859 echo "$as_me:$LINENO: checking for $ac_header" >&5
21860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21862   echo $ECHO_N "(cached) $ECHO_C" >&6
21863 else
21864   eval "$as_ac_Header=\$ac_header_preproc"
21865 fi
21866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21868
21869 fi
21870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21871   cat >>confdefs.h <<_ACEOF
21872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21873 _ACEOF
21874
21875 fi
21876
21877 done
21878
21879         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
21880             cat >>confdefs.h <<_ACEOF
21881 #define HAVE_LAME 1
21882 _ACEOF
21883
21884         fi
21885     fi
21886 fi
21887
21888
21889 # ------------------------------------------------------------------
21890
21891
21892
21893 for ac_prog in avifile-config
21894 do
21895   # Extract the first word of "$ac_prog", so it can be a program name with args.
21896 set dummy $ac_prog; ac_word=$2
21897 echo "$as_me:$LINENO: checking for $ac_word" >&5
21898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21899 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
21900   echo $ECHO_N "(cached) $ECHO_C" >&6
21901 else
21902   if test -n "$AVIFILE_CONFIG"; then
21903   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
21904 else
21905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21906 for as_dir in $PATH
21907 do
21908   IFS=$as_save_IFS
21909   test -z "$as_dir" && as_dir=.
21910   for ac_exec_ext in '' $ac_executable_extensions; do
21911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21912     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
21913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21914     break 2
21915   fi
21916 done
21917 done
21918
21919 fi
21920 fi
21921 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
21922 if test -n "$AVIFILE_CONFIG"; then
21923   echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
21924 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
21925 else
21926   echo "$as_me:$LINENO: result: no" >&5
21927 echo "${ECHO_T}no" >&6
21928 fi
21929
21930   test -n "$AVIFILE_CONFIG" && break
21931 done
21932
21933
21934 if test "x$AVIFILE_CONFIG" '!=' "x";then
21935     OLDCPPFLAGS="$CPPFLAGS"
21936     # temporarily add avifile paths to CPPFLAGS...
21937     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
21938
21939
21940 for ac_header in avifile/version.h version.h
21941 do
21942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21944   echo "$as_me:$LINENO: checking for $ac_header" >&5
21945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21947   echo $ECHO_N "(cached) $ECHO_C" >&6
21948 fi
21949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21951 else
21952   # Is the header compilable?
21953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21955 cat >conftest.$ac_ext <<_ACEOF
21956 /* confdefs.h.  */
21957 _ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h.  */
21961 $ac_includes_default
21962 #include <$ac_header>
21963 _ACEOF
21964 rm -f conftest.$ac_objext
21965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21966   (eval $ac_compile) 2>conftest.er1
21967   ac_status=$?
21968   grep -v '^ *+' conftest.er1 >conftest.err
21969   rm -f conftest.er1
21970   cat conftest.err >&5
21971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972   (exit $ac_status); } &&
21973          { ac_try='test -z "$ac_c_werror_flag"
21974                          || test ! -s conftest.err'
21975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976   (eval $ac_try) 2>&5
21977   ac_status=$?
21978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979   (exit $ac_status); }; } &&
21980          { ac_try='test -s conftest.$ac_objext'
21981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982   (eval $ac_try) 2>&5
21983   ac_status=$?
21984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985   (exit $ac_status); }; }; then
21986   ac_header_compiler=yes
21987 else
21988   echo "$as_me: failed program was:" >&5
21989 sed 's/^/| /' conftest.$ac_ext >&5
21990
21991 ac_header_compiler=no
21992 fi
21993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21995 echo "${ECHO_T}$ac_header_compiler" >&6
21996
21997 # Is the header present?
21998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22000 cat >conftest.$ac_ext <<_ACEOF
22001 /* confdefs.h.  */
22002 _ACEOF
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h.  */
22006 #include <$ac_header>
22007 _ACEOF
22008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22009   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22010   ac_status=$?
22011   grep -v '^ *+' conftest.er1 >conftest.err
22012   rm -f conftest.er1
22013   cat conftest.err >&5
22014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015   (exit $ac_status); } >/dev/null; then
22016   if test -s conftest.err; then
22017     ac_cpp_err=$ac_c_preproc_warn_flag
22018     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22019   else
22020     ac_cpp_err=
22021   fi
22022 else
22023   ac_cpp_err=yes
22024 fi
22025 if test -z "$ac_cpp_err"; then
22026   ac_header_preproc=yes
22027 else
22028   echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22030
22031   ac_header_preproc=no
22032 fi
22033 rm -f conftest.err conftest.$ac_ext
22034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22035 echo "${ECHO_T}$ac_header_preproc" >&6
22036
22037 # So?  What about this header?
22038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22039   yes:no: )
22040     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22044     ac_header_preproc=yes
22045     ;;
22046   no:yes:* )
22047     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22049     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22050 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22051     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22053     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22054 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22057     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22059     (
22060       cat <<\_ASBOX
22061 ## ------------------------------------------ ##
22062 ## Report this to the AC_PACKAGE_NAME lists.  ##
22063 ## ------------------------------------------ ##
22064 _ASBOX
22065     ) |
22066       sed "s/^/$as_me: WARNING:     /" >&2
22067     ;;
22068 esac
22069 echo "$as_me:$LINENO: checking for $ac_header" >&5
22070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22072   echo $ECHO_N "(cached) $ECHO_C" >&6
22073 else
22074   eval "$as_ac_Header=\$ac_header_preproc"
22075 fi
22076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22078
22079 fi
22080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22081   cat >>confdefs.h <<_ACEOF
22082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22083 _ACEOF
22084
22085 fi
22086
22087 done
22088
22089     # ... and reset
22090     CPPFLAGS="$OLDCPPFLAGS"
22091 fi
22092
22093 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
22094 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
22095
22096 if test "x${ac_cv_header_version_h}" '=' "xyes";then
22097     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
22098 fi
22099 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
22100     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
22101 fi
22102
22103 cat > conftest.cpp << EOF
22104
22105 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
22106 // so we have to introduce them this way
22107 $HAVE_VERSION_H_DEFINE
22108 $HAVE_AVIFILE_VERSION_H_DEFINE
22109
22110 #ifdef HAVE_VERSION_H
22111   #include <version.h>
22112 #endif
22113 #ifdef HAVE_AVIFILE_VERSION_H
22114   #include <avifile/version.h>
22115 #endif
22116
22117 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
22118    #include <avifile.h>
22119    #include <aviplay.h>
22120    #include <fourcc.h>
22121    #include <creators.h>
22122    #include <StreamInfo.h>
22123    #define VERSION6
22124 #else
22125    #include <avifile.h>
22126    #include <aviplay.h>
22127    #include <aviutil.h>
22128    #define Width width
22129    #define Height height
22130    #define Data data
22131    #define Bpp bpp
22132 #endif
22133
22134 void test()
22135 {
22136   IAviReadFile* player;
22137   IAviReadStream* astream;
22138   IAviReadStream* vstream;
22139   player = CreateIAviReadFile(0);
22140   astream = player->GetStream(0, AviStream::Audio);
22141   vstream = player->GetStream(0, AviStream::Video);
22142   vstream -> StartStreaming();
22143   astream -> StartStreaming();
22144 #ifndef VERSION6
22145   MainAVIHeader head;
22146   player->GetFileHeader(&head);
22147   head.dwMicroSecPerFrame;
22148   head.dwTotalFrames;
22149   head.dwStreams;
22150   head.dwWidth;
22151   head.dwHeight;
22152   head.dwMicroSecPerFrame;
22153   astream->GetEndPos(),
22154   astream->GetEndTime());
22155   player->StreamCount();
22156 #else
22157   StreamInfo*audioinfo;
22158   StreamInfo*videoinfo;
22159   audioinfo = astream->GetStreamInfo();
22160   videoinfo = vstream->GetStreamInfo();
22161   videoinfo->GetVideoWidth();
22162   videoinfo->GetVideoHeight();
22163   audioinfo->GetAudioSamplesPerSec();
22164   videoinfo->GetFps();
22165 #endif
22166   CImage*img = vstream->GetFrame();
22167   img->ToRGB();
22168   img->Data();
22169   img->Bpp();
22170   img->Width();
22171   img->Height();
22172   WAVEFORMATEX wave;
22173   astream->GetAudioFormatInfo(&wave,0);
22174   uint_t a,b;
22175   astream->ReadFrames(0,0,0,a,b);
22176 }
22177 int main (int argc, char*argv)
22178 {
22179     return 0;
22180 }
22181 EOF
22182
22183 if test "x$AVIFILE_CONFIG" '!=' "x";then
22184     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
22185     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
22186     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
22187     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
22188       echo "$as_me:$LINENO: result: yes" >&5
22189 echo "${ECHO_T}yes" >&6
22190       AVIFILE=true
22191       export AVIFILE
22192       cat >>confdefs.h <<_ACEOF
22193 #define AVIFILE true
22194 _ACEOF
22195
22196     else
22197       echo "configure: failed program was:" >&5
22198       cat conftest.cpp >&5
22199       echo "$as_me:$LINENO: result: no" >&5
22200 echo "${ECHO_T}no" >&6
22201     fi
22202 else
22203     echo "$as_me:$LINENO: result: no" >&5
22204 echo "${ECHO_T}no" >&6
22205 fi
22206 rm -f conftest*
22207
22208 if test "x${AVIFILE}" = "xtrue"; then
22209     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
22210     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
22211     cat >>confdefs.h <<_ACEOF
22212 #define HAVE_AVIFILE 1
22213 _ACEOF
22214
22215 fi
22216
22217 if test "x${WIN32}" != "x"; then
22218     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
22219     #if test "x${AVIFIL32}" != "x"; then
22220     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
22221     #fi
22222     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
22223     AVIFIL32=true
22224 fi
22225
22226
22227
22228 # ------------------------------------------------------------------
22229
22230 if test "x${UNCOMPRESS}" = "xgzip"; then
22231     cat >>confdefs.h <<_ACEOF
22232 #define USE_GZIP 1
22233 _ACEOF
22234
22235 fi
22236
22237
22238 # ------------------------------------------------------------------
22239
22240
22241 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
22242 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
22243
22244 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
22245     PY_VERSION=unknown
22246 else
22247     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
22248         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
22249     fi
22250     # iterate through version 2.2 to 2.4
22251     for v in 2 3 4; do
22252         # Linux
22253         if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
22254             PY_VERSION=2.$v
22255             PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
22256             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
22257         # Mac OS X
22258         elif test -f "/Library/Python/2.$v/PIL/_imaging.so" \
22259                -a -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
22260             #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
22261             PY_VERSION=2.$v
22262             PYTHON_LIB="-framework Python"
22263             PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
22264             PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
22265         # Mac OS X [Fink]:
22266         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
22267                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
22268                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
22269                   ")" \
22270                -a -f "/sw/include/python2.$v/Python.h" \
22271                -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
22272             PY_VERSION=2.$v
22273             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
22274             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
22275         fi
22276     done
22277 fi
22278
22279 if test "x$PY_VERSION" "!=" "x"; then
22280     echo "$as_me:$LINENO: result: $PY_VERSION" >&5
22281 echo "${ECHO_T}$PY_VERSION" >&6
22282     export PYTHON_INCLUDES PYTHON_LIB
22283
22284
22285     echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
22286 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
22287
22288     cat > conftest.c << EOF
22289 #include <Python.h>
22290 #include <Imaging.h>
22291
22292 int main()
22293 {
22294     int ret;
22295     ret = Py_Main(0, 0);
22296     int x; // check also for gcc 2.95.x incompatibilities
22297     return ret;
22298 }
22299 EOF
22300     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
22301     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22302         echo "$as_me:$LINENO: result: yes" >&5
22303 echo "${ECHO_T}yes" >&6
22304         PYTHON_OK=yes
22305     else
22306         ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
22307         if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22308             echo "$as_me:$LINENO: result: yes" >&5
22309 echo "${ECHO_T}yes" >&6
22310             PYTHON_LIB="${PYTHON_LIB2}"
22311             PYTHON_OK=yes
22312         else
22313             echo "configure: failed program was:" >&5
22314             cat conftest.c >&5
22315             echo "$as_me:$LINENO: result: no" >&5
22316 echo "${ECHO_T}no" >&6
22317         fi
22318     fi
22319     rm -f conftest*
22320 else
22321     echo "$as_me:$LINENO: result: nope" >&5
22322 echo "${ECHO_T}nope" >&6
22323 fi
22324
22325
22326 if test "x$PYTHON_OK" '!=' "xyes";then
22327     echo all install uninstall clean: > lib/python/Makefile
22328     # fail silently- the most users won't have any need for the
22329     # python interface anyway
22330 else
22331     pythonrfxswf="lib/python/Makefile"
22332 fi
22333
22334 # ------------------------------------------------------------------
22335
22336 echo "$as_me:$LINENO: checking for missing libraries" >&5
22337 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
22338
22339 if test "x$ZLIBMISSING" = "xtrue";then
22340     MISSINGLIBS="${MISSINGLIBS} zlib"
22341     DISABLEPNG2SWF=true
22342     PARTIAL=true
22343 fi
22344 if test "x$JPEGLIBMISSING" = "xtrue";then
22345     MISSINGLIBS="${MISSINGLIBS} jpeglib"
22346     DISABLEPDF2SWF=true
22347     DISABLEJPEG2SWF=true
22348     PARTIAL=true
22349 fi
22350 if test "x$T1LIBMISSING" = "xtrue";then
22351     MISSINGLIBS="${MISSINGLIBS} t1lib"
22352 fi
22353
22354 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
22355     DISABLEPDF2SWF=true;
22356     DISABLEJPEG2SWF=true;
22357     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
22358     PARTIAL=true
22359 fi
22360 if test "x$HAVE_FREETYPE" '!=' "x1"; then
22361     DISABLEPDF2SWF=true;
22362     MISSINGLIBS="${MISSINGLIBS} freetype"
22363     PARTIAL=true
22364 fi
22365 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
22366     MISSINGLIBS="${MISSINGLIBS} t1lib.h"
22367 fi
22368 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
22369     DISABLEPNG2SWF=true;
22370     MISSINGLIBS="${MISSINGLIBS} zlib.h"
22371     PARTIAL=true
22372 fi
22373 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
22374     MISSINGLIBS="${MISSINGLIBS} avifile"
22375     PARTIAL=true
22376 fi
22377
22378 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
22379 echo "${ECHO_T}${MISSINGLIBS}" >&6
22380
22381 # ------------------------------------------------------------------
22382
22383 if test "x${MISSINGLIBS}" '!=' "x"; then
22384   echo "***************************************************"
22385   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
22386 fi
22387
22388 avi2swf="avi2swf/Makefile"
22389 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
22390  echo "* Disabling avi2swf tool..."
22391  echo all install uninstall clean: > avi2swf/Makefile
22392  avi2swf=
22393 fi
22394
22395 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
22396 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
22397   echo "* Disabling pdf2swf tool..."
22398   rm -f pdf2swf/Makefile
22399   echo all install uninstall clean: > pdf2swf/Makefile
22400   pdf2swf_makefile=""
22401 fi
22402
22403 if test "x${ZLIBMISSING}" = "xtrue"; then
22404   echo
22405   echo "* Warning! Without zlib, you will not be able to read"
22406   echo "* or write compressed Flash MX files!"
22407 fi
22408
22409 JPEG2SWF='jpeg2swf$(E)'
22410 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
22411   echo "* Disabling jpeg2swf tool..."
22412   JPEG2SWF=
22413 fi
22414 export JPEG2SWF
22415
22416
22417 PNG2SWF='png2swf$(E)'
22418 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
22419   echo "* Disabling png2swf tool..."
22420   PNG2SWF=
22421 fi
22422 export PNG2SWF
22423
22424
22425 if test "x${MISSINGLIBS}" '!=' "x"; then
22426   if test "x${PARTIAL}" '=' "x"; then
22427     echo "* (never mind)"
22428   fi
22429   echo "***************************************************"
22430 fi
22431
22432 # ------------------------------------------------------------------
22433
22434 if test -f "release.in"; then release_in="./release"; fi
22435 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
22436
22437           ac_config_files="$ac_config_files ${FILES}"
22438
22439 cat >confcache <<\_ACEOF
22440 # This file is a shell script that caches the results of configure
22441 # tests run on this system so they can be shared between configure
22442 # scripts and configure runs, see configure's option --config-cache.
22443 # It is not useful on other systems.  If it contains results you don't
22444 # want to keep, you may remove or edit it.
22445 #
22446 # config.status only pays attention to the cache file if you give it
22447 # the --recheck option to rerun configure.
22448 #
22449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22451 # following values.
22452
22453 _ACEOF
22454
22455 # The following way of writing the cache mishandles newlines in values,
22456 # but we know of no workaround that is simple, portable, and efficient.
22457 # So, don't put newlines in cache variables' values.
22458 # Ultrix sh set writes to stderr and can't be redirected directly,
22459 # and sets the high bit in the cache file unless we assign to the vars.
22460 {
22461   (set) 2>&1 |
22462     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22463     *ac_space=\ *)
22464       # `set' does not quote correctly, so add quotes (double-quote
22465       # substitution turns \\\\ into \\, and sed turns \\ into \).
22466       sed -n \
22467         "s/'/'\\\\''/g;
22468           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22469       ;;
22470     *)
22471       # `set' quotes correctly as required by POSIX, so do not add quotes.
22472       sed -n \
22473         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22474       ;;
22475     esac;
22476 } |
22477   sed '
22478      t clear
22479      : clear
22480      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22481      t end
22482      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22483      : end' >>confcache
22484 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22485   if test -w $cache_file; then
22486     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22487     cat confcache >$cache_file
22488   else
22489     echo "not updating unwritable cache $cache_file"
22490   fi
22491 fi
22492 rm -f confcache
22493
22494 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22495 # Let make expand exec_prefix.
22496 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22497
22498 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22499 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22500 # trailing colons and then remove the whole line if VPATH becomes empty
22501 # (actually we leave an empty line to preserve line numbers).
22502 if test "x$srcdir" = x.; then
22503   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22504 s/:*\$(srcdir):*/:/;
22505 s/:*\${srcdir}:*/:/;
22506 s/:*@srcdir@:*/:/;
22507 s/^\([^=]*=[     ]*\):*/\1/;
22508 s/:*$//;
22509 s/^[^=]*=[       ]*$//;
22510 }'
22511 fi
22512
22513 DEFS=-DHAVE_CONFIG_H
22514
22515 ac_libobjs=
22516 ac_ltlibobjs=
22517 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22518   # 1. Remove the extension, and $U if already installed.
22519   ac_i=`echo "$ac_i" |
22520          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22521   # 2. Add them.
22522   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22523   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22524 done
22525 LIBOBJS=$ac_libobjs
22526
22527 LTLIBOBJS=$ac_ltlibobjs
22528
22529
22530
22531 : ${CONFIG_STATUS=./config.status}
22532 ac_clean_files_save=$ac_clean_files
22533 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22534 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22535 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22536 cat >$CONFIG_STATUS <<_ACEOF
22537 #! $SHELL
22538 # Generated by $as_me.
22539 # Run this file to recreate the current configuration.
22540 # Compiler output produced by configure, useful for debugging
22541 # configure, is in config.log if it exists.
22542
22543 debug=false
22544 ac_cs_recheck=false
22545 ac_cs_silent=false
22546 SHELL=\${CONFIG_SHELL-$SHELL}
22547 _ACEOF
22548
22549 cat >>$CONFIG_STATUS <<\_ACEOF
22550 ## --------------------- ##
22551 ## M4sh Initialization.  ##
22552 ## --------------------- ##
22553
22554 # Be Bourne compatible
22555 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22556   emulate sh
22557   NULLCMD=:
22558   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22559   # is contrary to our usage.  Disable this feature.
22560   alias -g '${1+"$@"}'='"$@"'
22561 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22562   set -o posix
22563 fi
22564 DUALCASE=1; export DUALCASE # for MKS sh
22565
22566 # Support unset when possible.
22567 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22568   as_unset=unset
22569 else
22570   as_unset=false
22571 fi
22572
22573
22574 # Work around bugs in pre-3.0 UWIN ksh.
22575 $as_unset ENV MAIL MAILPATH
22576 PS1='$ '
22577 PS2='> '
22578 PS4='+ '
22579
22580 # NLS nuisances.
22581 for as_var in \
22582   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22583   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22584   LC_TELEPHONE LC_TIME
22585 do
22586   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22587     eval $as_var=C; export $as_var
22588   else
22589     $as_unset $as_var
22590   fi
22591 done
22592
22593 # Required to use basename.
22594 if expr a : '\(a\)' >/dev/null 2>&1; then
22595   as_expr=expr
22596 else
22597   as_expr=false
22598 fi
22599
22600 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22601   as_basename=basename
22602 else
22603   as_basename=false
22604 fi
22605
22606
22607 # Name of the executable.
22608 as_me=`$as_basename "$0" ||
22609 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22610          X"$0" : 'X\(//\)$' \| \
22611          X"$0" : 'X\(/\)$' \| \
22612          .     : '\(.\)' 2>/dev/null ||
22613 echo X/"$0" |
22614     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22615           /^X\/\(\/\/\)$/{ s//\1/; q; }
22616           /^X\/\(\/\).*/{ s//\1/; q; }
22617           s/.*/./; q'`
22618
22619
22620 # PATH needs CR, and LINENO needs CR and PATH.
22621 # Avoid depending upon Character Ranges.
22622 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22623 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22624 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22625 as_cr_digits='0123456789'
22626 as_cr_alnum=$as_cr_Letters$as_cr_digits
22627
22628 # The user is always right.
22629 if test "${PATH_SEPARATOR+set}" != set; then
22630   echo "#! /bin/sh" >conf$$.sh
22631   echo  "exit 0"   >>conf$$.sh
22632   chmod +x conf$$.sh
22633   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22634     PATH_SEPARATOR=';'
22635   else
22636     PATH_SEPARATOR=:
22637   fi
22638   rm -f conf$$.sh
22639 fi
22640
22641
22642   as_lineno_1=$LINENO
22643   as_lineno_2=$LINENO
22644   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22645   test "x$as_lineno_1" != "x$as_lineno_2" &&
22646   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22647   # Find who we are.  Look in the path if we contain no path at all
22648   # relative or not.
22649   case $0 in
22650     *[\\/]* ) as_myself=$0 ;;
22651     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22652 for as_dir in $PATH
22653 do
22654   IFS=$as_save_IFS
22655   test -z "$as_dir" && as_dir=.
22656   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22657 done
22658
22659        ;;
22660   esac
22661   # We did not find ourselves, most probably we were run as `sh COMMAND'
22662   # in which case we are not to be found in the path.
22663   if test "x$as_myself" = x; then
22664     as_myself=$0
22665   fi
22666   if test ! -f "$as_myself"; then
22667     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22668 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22669    { (exit 1); exit 1; }; }
22670   fi
22671   case $CONFIG_SHELL in
22672   '')
22673     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22674 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22675 do
22676   IFS=$as_save_IFS
22677   test -z "$as_dir" && as_dir=.
22678   for as_base in sh bash ksh sh5; do
22679          case $as_dir in
22680          /*)
22681            if ("$as_dir/$as_base" -c '
22682   as_lineno_1=$LINENO
22683   as_lineno_2=$LINENO
22684   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22685   test "x$as_lineno_1" != "x$as_lineno_2" &&
22686   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22687              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22688              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22689              CONFIG_SHELL=$as_dir/$as_base
22690              export CONFIG_SHELL
22691              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22692            fi;;
22693          esac
22694        done
22695 done
22696 ;;
22697   esac
22698
22699   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22700   # uniformly replaced by the line number.  The first 'sed' inserts a
22701   # line-number line before each line; the second 'sed' does the real
22702   # work.  The second script uses 'N' to pair each line-number line
22703   # with the numbered line, and appends trailing '-' during
22704   # substitution so that $LINENO is not a special case at line end.
22705   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22706   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22707   sed '=' <$as_myself |
22708     sed '
22709       N
22710       s,$,-,
22711       : loop
22712       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22713       t loop
22714       s,-$,,
22715       s,^['$as_cr_digits']*\n,,
22716     ' >$as_me.lineno &&
22717   chmod +x $as_me.lineno ||
22718     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22719 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22720    { (exit 1); exit 1; }; }
22721
22722   # Don't try to exec as it changes $[0], causing all sort of problems
22723   # (the dirname of $[0] is not the place where we might find the
22724   # original and so on.  Autoconf is especially sensible to this).
22725   . ./$as_me.lineno
22726   # Exit status is that of the last command.
22727   exit
22728 }
22729
22730
22731 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22732   *c*,-n*) ECHO_N= ECHO_C='
22733 ' ECHO_T='      ' ;;
22734   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22735   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22736 esac
22737
22738 if expr a : '\(a\)' >/dev/null 2>&1; then
22739   as_expr=expr
22740 else
22741   as_expr=false
22742 fi
22743
22744 rm -f conf$$ conf$$.exe conf$$.file
22745 echo >conf$$.file
22746 if ln -s conf$$.file conf$$ 2>/dev/null; then
22747   # We could just check for DJGPP; but this test a) works b) is more generic
22748   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22749   if test -f conf$$.exe; then
22750     # Don't use ln at all; we don't have any links
22751     as_ln_s='cp -p'
22752   else
22753     as_ln_s='ln -s'
22754   fi
22755 elif ln conf$$.file conf$$ 2>/dev/null; then
22756   as_ln_s=ln
22757 else
22758   as_ln_s='cp -p'
22759 fi
22760 rm -f conf$$ conf$$.exe conf$$.file
22761
22762 if mkdir -p . 2>/dev/null; then
22763   as_mkdir_p=:
22764 else
22765   test -d ./-p && rmdir ./-p
22766   as_mkdir_p=false
22767 fi
22768
22769 as_executable_p="test -f"
22770
22771 # Sed expression to map a string onto a valid CPP name.
22772 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22773
22774 # Sed expression to map a string onto a valid variable name.
22775 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22776
22777
22778 # IFS
22779 # We need space, tab and new line, in precisely that order.
22780 as_nl='
22781 '
22782 IFS="   $as_nl"
22783
22784 # CDPATH.
22785 $as_unset CDPATH
22786
22787 exec 6>&1
22788
22789 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22790 # report actual input values of CONFIG_FILES etc. instead of their
22791 # values after options handling.  Logging --version etc. is OK.
22792 exec 5>>config.log
22793 {
22794   echo
22795   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22796 ## Running $as_me. ##
22797 _ASBOX
22798 } >&5
22799 cat >&5 <<_CSEOF
22800
22801 This file was extended by $as_me, which was
22802 generated by GNU Autoconf 2.59.  Invocation command line was
22803
22804   CONFIG_FILES    = $CONFIG_FILES
22805   CONFIG_HEADERS  = $CONFIG_HEADERS
22806   CONFIG_LINKS    = $CONFIG_LINKS
22807   CONFIG_COMMANDS = $CONFIG_COMMANDS
22808   $ $0 $@
22809
22810 _CSEOF
22811 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22812 echo >&5
22813 _ACEOF
22814
22815 # Files that config.status was made for.
22816 if test -n "$ac_config_files"; then
22817   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22818 fi
22819
22820 if test -n "$ac_config_headers"; then
22821   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22822 fi
22823
22824 if test -n "$ac_config_links"; then
22825   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22826 fi
22827
22828 if test -n "$ac_config_commands"; then
22829   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22830 fi
22831
22832 cat >>$CONFIG_STATUS <<\_ACEOF
22833
22834 ac_cs_usage="\
22835 \`$as_me' instantiates files from templates according to the
22836 current configuration.
22837
22838 Usage: $0 [OPTIONS] [FILE]...
22839
22840   -h, --help       print this help, then exit
22841   -V, --version    print version number, then exit
22842   -q, --quiet      do not print progress messages
22843   -d, --debug      don't remove temporary files
22844       --recheck    update $as_me by reconfiguring in the same conditions
22845   --file=FILE[:TEMPLATE]
22846                    instantiate the configuration file FILE
22847   --header=FILE[:TEMPLATE]
22848                    instantiate the configuration header FILE
22849
22850 Configuration files:
22851 $config_files
22852
22853 Configuration headers:
22854 $config_headers
22855
22856 Report bugs to <bug-autoconf@gnu.org>."
22857 _ACEOF
22858
22859 cat >>$CONFIG_STATUS <<_ACEOF
22860 ac_cs_version="\\
22861 config.status
22862 configured by $0, generated by GNU Autoconf 2.59,
22863   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22864
22865 Copyright (C) 2003 Free Software Foundation, Inc.
22866 This config.status script is free software; the Free Software Foundation
22867 gives unlimited permission to copy, distribute and modify it."
22868 srcdir=$srcdir
22869 INSTALL="$INSTALL"
22870 _ACEOF
22871
22872 cat >>$CONFIG_STATUS <<\_ACEOF
22873 # If no file are specified by the user, then we need to provide default
22874 # value.  By we need to know if files were specified by the user.
22875 ac_need_defaults=:
22876 while test $# != 0
22877 do
22878   case $1 in
22879   --*=*)
22880     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22881     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22882     ac_shift=:
22883     ;;
22884   -*)
22885     ac_option=$1
22886     ac_optarg=$2
22887     ac_shift=shift
22888     ;;
22889   *) # This is not an option, so the user has probably given explicit
22890      # arguments.
22891      ac_option=$1
22892      ac_need_defaults=false;;
22893   esac
22894
22895   case $ac_option in
22896   # Handling of the options.
22897 _ACEOF
22898 cat >>$CONFIG_STATUS <<\_ACEOF
22899   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22900     ac_cs_recheck=: ;;
22901   --version | --vers* | -V )
22902     echo "$ac_cs_version"; exit 0 ;;
22903   --he | --h)
22904     # Conflict between --help and --header
22905     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22906 Try \`$0 --help' for more information." >&5
22907 echo "$as_me: error: ambiguous option: $1
22908 Try \`$0 --help' for more information." >&2;}
22909    { (exit 1); exit 1; }; };;
22910   --help | --hel | -h )
22911     echo "$ac_cs_usage"; exit 0 ;;
22912   --debug | --d* | -d )
22913     debug=: ;;
22914   --file | --fil | --fi | --f )
22915     $ac_shift
22916     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22917     ac_need_defaults=false;;
22918   --header | --heade | --head | --hea )
22919     $ac_shift
22920     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22921     ac_need_defaults=false;;
22922   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22923   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22924     ac_cs_silent=: ;;
22925
22926   # This is an error.
22927   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22928 Try \`$0 --help' for more information." >&5
22929 echo "$as_me: error: unrecognized option: $1
22930 Try \`$0 --help' for more information." >&2;}
22931    { (exit 1); exit 1; }; } ;;
22932
22933   *) ac_config_targets="$ac_config_targets $1" ;;
22934
22935   esac
22936   shift
22937 done
22938
22939 ac_configure_extra_args=
22940
22941 if $ac_cs_silent; then
22942   exec 6>/dev/null
22943   ac_configure_extra_args="$ac_configure_extra_args --silent"
22944 fi
22945
22946 _ACEOF
22947 cat >>$CONFIG_STATUS <<_ACEOF
22948 if \$ac_cs_recheck; then
22949   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22950   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22951 fi
22952
22953 _ACEOF
22954
22955
22956
22957
22958
22959 cat >>$CONFIG_STATUS <<\_ACEOF
22960 for ac_config_target in $ac_config_targets
22961 do
22962   case "$ac_config_target" in
22963   # Handling of arguments.
22964   "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
22965   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22966   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22967 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22968    { (exit 1); exit 1; }; };;
22969   esac
22970 done
22971
22972 # If the user did not use the arguments to specify the items to instantiate,
22973 # then the envvar interface is used.  Set only those that are not.
22974 # We use the long form for the default assignment because of an extremely
22975 # bizarre bug on SunOS 4.1.3.
22976 if $ac_need_defaults; then
22977   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22978   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22979 fi
22980
22981 # Have a temporary directory for convenience.  Make it in the build tree
22982 # simply because there is no reason to put it here, and in addition,
22983 # creating and moving files from /tmp can sometimes cause problems.
22984 # Create a temporary directory, and hook for its removal unless debugging.
22985 $debug ||
22986 {
22987   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22988   trap '{ (exit 1); exit 1; }' 1 2 13 15
22989 }
22990
22991 # Create a (secure) tmp directory for tmp files.
22992
22993 {
22994   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22995   test -n "$tmp" && test -d "$tmp"
22996 }  ||
22997 {
22998   tmp=./confstat$$-$RANDOM
22999   (umask 077 && mkdir $tmp)
23000 } ||
23001 {
23002    echo "$me: cannot create a temporary directory in ." >&2
23003    { (exit 1); exit 1; }
23004 }
23005
23006 _ACEOF
23007
23008 cat >>$CONFIG_STATUS <<_ACEOF
23009
23010 #
23011 # CONFIG_FILES section.
23012 #
23013
23014 # No need to generate the scripts if there are no CONFIG_FILES.
23015 # This happens for instance when ./config.status config.h
23016 if test -n "\$CONFIG_FILES"; then
23017   # Protect against being on the right side of a sed subst in config.status.
23018   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23019    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23020 s,@SHELL@,$SHELL,;t t
23021 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23022 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23023 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23024 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23025 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23026 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23027 s,@exec_prefix@,$exec_prefix,;t t
23028 s,@prefix@,$prefix,;t t
23029 s,@program_transform_name@,$program_transform_name,;t t
23030 s,@bindir@,$bindir,;t t
23031 s,@sbindir@,$sbindir,;t t
23032 s,@libexecdir@,$libexecdir,;t t
23033 s,@datadir@,$datadir,;t t
23034 s,@sysconfdir@,$sysconfdir,;t t
23035 s,@sharedstatedir@,$sharedstatedir,;t t
23036 s,@localstatedir@,$localstatedir,;t t
23037 s,@libdir@,$libdir,;t t
23038 s,@includedir@,$includedir,;t t
23039 s,@oldincludedir@,$oldincludedir,;t t
23040 s,@infodir@,$infodir,;t t
23041 s,@mandir@,$mandir,;t t
23042 s,@build_alias@,$build_alias,;t t
23043 s,@host_alias@,$host_alias,;t t
23044 s,@target_alias@,$target_alias,;t t
23045 s,@DEFS@,$DEFS,;t t
23046 s,@ECHO_C@,$ECHO_C,;t t
23047 s,@ECHO_N@,$ECHO_N,;t t
23048 s,@ECHO_T@,$ECHO_T,;t t
23049 s,@LIBS@,$LIBS,;t t
23050 s,@build@,$build,;t t
23051 s,@build_cpu@,$build_cpu,;t t
23052 s,@build_vendor@,$build_vendor,;t t
23053 s,@build_os@,$build_os,;t t
23054 s,@host@,$host,;t t
23055 s,@host_cpu@,$host_cpu,;t t
23056 s,@host_vendor@,$host_vendor,;t t
23057 s,@host_os@,$host_os,;t t
23058 s,@SHARED@,$SHARED,;t t
23059 s,@CC@,$CC,;t t
23060 s,@CFLAGS@,$CFLAGS,;t t
23061 s,@LDFLAGS@,$LDFLAGS,;t t
23062 s,@CPPFLAGS@,$CPPFLAGS,;t t
23063 s,@ac_ct_CC@,$ac_ct_CC,;t t
23064 s,@EXEEXT@,$EXEEXT,;t t
23065 s,@OBJEXT@,$OBJEXT,;t t
23066 s,@CXX@,$CXX,;t t
23067 s,@CXXFLAGS@,$CXXFLAGS,;t t
23068 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23069 s,@CPP@,$CPP,;t t
23070 s,@RANLIB@,$RANLIB,;t t
23071 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23072 s,@SET_MAKE@,$SET_MAKE,;t t
23073 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23074 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23075 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23076 s,@LN_S@,$LN_S,;t t
23077 s,@EGREP@,$EGREP,;t t
23078 s,@ECHO@,$ECHO,;t t
23079 s,@AR@,$AR,;t t
23080 s,@ac_ct_AR@,$ac_ct_AR,;t t
23081 s,@STRIP@,$STRIP,;t t
23082 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23083 s,@CXXCPP@,$CXXCPP,;t t
23084 s,@F77@,$F77,;t t
23085 s,@FFLAGS@,$FFLAGS,;t t
23086 s,@ac_ct_F77@,$ac_ct_F77,;t t
23087 s,@LIBTOOL@,$LIBTOOL,;t t
23088 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
23089 s,@AREXT@,$AREXT,;t t
23090 s,@SLEXT@,$SLEXT,;t t
23091 s,@target@,$target,;t t
23092 s,@target_cpu@,$target_cpu,;t t
23093 s,@target_vendor@,$target_vendor,;t t
23094 s,@target_os@,$target_os,;t t
23095 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
23096 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
23097 s,@PACKAGE@,$PACKAGE,;t t
23098 s,@VERSION@,$VERSION,;t t
23099 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
23100 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
23101 s,@lame_objects@,$lame_objects,;t t
23102 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
23103 s,@VIDEO_LIBS@,$VIDEO_LIBS,;t t
23104 s,@VIDEO_CFLAGS@,$VIDEO_CFLAGS,;t t
23105 s,@USE_GZIP@,$USE_GZIP,;t t
23106 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
23107 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
23108 s,@JPEG2SWF@,$JPEG2SWF,;t t
23109 s,@PNG2SWF@,$PNG2SWF,;t t
23110 s,@LIBOBJS@,$LIBOBJS,;t t
23111 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23112 CEOF
23113
23114 _ACEOF
23115
23116   cat >>$CONFIG_STATUS <<\_ACEOF
23117   # Split the substitutions into bite-sized pieces for seds with
23118   # small command number limits, like on Digital OSF/1 and HP-UX.
23119   ac_max_sed_lines=48
23120   ac_sed_frag=1 # Number of current file.
23121   ac_beg=1 # First line for current file.
23122   ac_end=$ac_max_sed_lines # Line after last line for current file.
23123   ac_more_lines=:
23124   ac_sed_cmds=
23125   while $ac_more_lines; do
23126     if test $ac_beg -gt 1; then
23127       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23128     else
23129       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23130     fi
23131     if test ! -s $tmp/subs.frag; then
23132       ac_more_lines=false
23133     else
23134       # The purpose of the label and of the branching condition is to
23135       # speed up the sed processing (if there are no `@' at all, there
23136       # is no need to browse any of the substitutions).
23137       # These are the two extra sed commands mentioned above.
23138       (echo ':t
23139   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23140       if test -z "$ac_sed_cmds"; then
23141         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23142       else
23143         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23144       fi
23145       ac_sed_frag=`expr $ac_sed_frag + 1`
23146       ac_beg=$ac_end
23147       ac_end=`expr $ac_end + $ac_max_sed_lines`
23148     fi
23149   done
23150   if test -z "$ac_sed_cmds"; then
23151     ac_sed_cmds=cat
23152   fi
23153 fi # test -n "$CONFIG_FILES"
23154
23155 _ACEOF
23156 cat >>$CONFIG_STATUS <<\_ACEOF
23157 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23158   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23159   case $ac_file in
23160   - | *:- | *:-:* ) # input from stdin
23161         cat >$tmp/stdin
23162         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23163         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23164   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23165         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23166   * )   ac_file_in=$ac_file.in ;;
23167   esac
23168
23169   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23170   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23171 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23172          X"$ac_file" : 'X\(//\)[^/]' \| \
23173          X"$ac_file" : 'X\(//\)$' \| \
23174          X"$ac_file" : 'X\(/\)' \| \
23175          .     : '\(.\)' 2>/dev/null ||
23176 echo X"$ac_file" |
23177     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23178           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23179           /^X\(\/\/\)$/{ s//\1/; q; }
23180           /^X\(\/\).*/{ s//\1/; q; }
23181           s/.*/./; q'`
23182   { if $as_mkdir_p; then
23183     mkdir -p "$ac_dir"
23184   else
23185     as_dir="$ac_dir"
23186     as_dirs=
23187     while test ! -d "$as_dir"; do
23188       as_dirs="$as_dir $as_dirs"
23189       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23191          X"$as_dir" : 'X\(//\)[^/]' \| \
23192          X"$as_dir" : 'X\(//\)$' \| \
23193          X"$as_dir" : 'X\(/\)' \| \
23194          .     : '\(.\)' 2>/dev/null ||
23195 echo X"$as_dir" |
23196     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23197           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23198           /^X\(\/\/\)$/{ s//\1/; q; }
23199           /^X\(\/\).*/{ s//\1/; q; }
23200           s/.*/./; q'`
23201     done
23202     test ! -n "$as_dirs" || mkdir $as_dirs
23203   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23204 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23205    { (exit 1); exit 1; }; }; }
23206
23207   ac_builddir=.
23208
23209 if test "$ac_dir" != .; then
23210   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23211   # A "../" for each directory in $ac_dir_suffix.
23212   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23213 else
23214   ac_dir_suffix= ac_top_builddir=
23215 fi
23216
23217 case $srcdir in
23218   .)  # No --srcdir option.  We are building in place.
23219     ac_srcdir=.
23220     if test -z "$ac_top_builddir"; then
23221        ac_top_srcdir=.
23222     else
23223        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23224     fi ;;
23225   [\\/]* | ?:[\\/]* )  # Absolute path.
23226     ac_srcdir=$srcdir$ac_dir_suffix;
23227     ac_top_srcdir=$srcdir ;;
23228   *) # Relative path.
23229     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23230     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23231 esac
23232
23233 # Do not use `cd foo && pwd` to compute absolute paths, because
23234 # the directories may not exist.
23235 case `pwd` in
23236 .) ac_abs_builddir="$ac_dir";;
23237 *)
23238   case "$ac_dir" in
23239   .) ac_abs_builddir=`pwd`;;
23240   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23241   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23242   esac;;
23243 esac
23244 case $ac_abs_builddir in
23245 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23246 *)
23247   case ${ac_top_builddir}. in
23248   .) ac_abs_top_builddir=$ac_abs_builddir;;
23249   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23250   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23251   esac;;
23252 esac
23253 case $ac_abs_builddir in
23254 .) ac_abs_srcdir=$ac_srcdir;;
23255 *)
23256   case $ac_srcdir in
23257   .) ac_abs_srcdir=$ac_abs_builddir;;
23258   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23259   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23260   esac;;
23261 esac
23262 case $ac_abs_builddir in
23263 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23264 *)
23265   case $ac_top_srcdir in
23266   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23267   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23268   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23269   esac;;
23270 esac
23271
23272
23273   case $INSTALL in
23274   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23275   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23276   esac
23277
23278   if test x"$ac_file" != x-; then
23279     { echo "$as_me:$LINENO: creating $ac_file" >&5
23280 echo "$as_me: creating $ac_file" >&6;}
23281     rm -f "$ac_file"
23282   fi
23283   # Let's still pretend it is `configure' which instantiates (i.e., don't
23284   # use $as_me), people would be surprised to read:
23285   #    /* config.h.  Generated by config.status.  */
23286   if test x"$ac_file" = x-; then
23287     configure_input=
23288   else
23289     configure_input="$ac_file.  "
23290   fi
23291   configure_input=$configure_input"Generated from `echo $ac_file_in |
23292                                      sed 's,.*/,,'` by configure."
23293
23294   # First look for the input files in the build tree, otherwise in the
23295   # src tree.
23296   ac_file_inputs=`IFS=:
23297     for f in $ac_file_in; do
23298       case $f in
23299       -) echo $tmp/stdin ;;
23300       [\\/$]*)
23301          # Absolute (can't be DOS-style, as IFS=:)
23302          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23303 echo "$as_me: error: cannot find input file: $f" >&2;}
23304    { (exit 1); exit 1; }; }
23305          echo "$f";;
23306       *) # Relative
23307          if test -f "$f"; then
23308            # Build tree
23309            echo "$f"
23310          elif test -f "$srcdir/$f"; then
23311            # Source tree
23312            echo "$srcdir/$f"
23313          else
23314            # /dev/null tree
23315            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23316 echo "$as_me: error: cannot find input file: $f" >&2;}
23317    { (exit 1); exit 1; }; }
23318          fi;;
23319       esac
23320     done` || { (exit 1); exit 1; }
23321 _ACEOF
23322 cat >>$CONFIG_STATUS <<_ACEOF
23323   sed "$ac_vpsub
23324 $extrasub
23325 _ACEOF
23326 cat >>$CONFIG_STATUS <<\_ACEOF
23327 :t
23328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23329 s,@configure_input@,$configure_input,;t t
23330 s,@srcdir@,$ac_srcdir,;t t
23331 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23332 s,@top_srcdir@,$ac_top_srcdir,;t t
23333 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23334 s,@builddir@,$ac_builddir,;t t
23335 s,@abs_builddir@,$ac_abs_builddir,;t t
23336 s,@top_builddir@,$ac_top_builddir,;t t
23337 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23338 s,@INSTALL@,$ac_INSTALL,;t t
23339 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23340   rm -f $tmp/stdin
23341   if test x"$ac_file" != x-; then
23342     mv $tmp/out $ac_file
23343   else
23344     cat $tmp/out
23345     rm -f $tmp/out
23346   fi
23347
23348 done
23349 _ACEOF
23350 cat >>$CONFIG_STATUS <<\_ACEOF
23351
23352 #
23353 # CONFIG_HEADER section.
23354 #
23355
23356 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23357 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23358 #
23359 # ac_d sets the value in "#define NAME VALUE" lines.
23360 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
23361 ac_dB='[         ].*$,\1#\2'
23362 ac_dC=' '
23363 ac_dD=',;t'
23364 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23365 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23366 ac_uB='$,\1#\2define\3'
23367 ac_uC=' '
23368 ac_uD=',;t'
23369
23370 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23371   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23372   case $ac_file in
23373   - | *:- | *:-:* ) # input from stdin
23374         cat >$tmp/stdin
23375         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23376         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23377   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23378         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23379   * )   ac_file_in=$ac_file.in ;;
23380   esac
23381
23382   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23383 echo "$as_me: creating $ac_file" >&6;}
23384
23385   # First look for the input files in the build tree, otherwise in the
23386   # src tree.
23387   ac_file_inputs=`IFS=:
23388     for f in $ac_file_in; do
23389       case $f in
23390       -) echo $tmp/stdin ;;
23391       [\\/$]*)
23392          # Absolute (can't be DOS-style, as IFS=:)
23393          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23394 echo "$as_me: error: cannot find input file: $f" >&2;}
23395    { (exit 1); exit 1; }; }
23396          # Do quote $f, to prevent DOS paths from being IFS'd.
23397          echo "$f";;
23398       *) # Relative
23399          if test -f "$f"; then
23400            # Build tree
23401            echo "$f"
23402          elif test -f "$srcdir/$f"; then
23403            # Source tree
23404            echo "$srcdir/$f"
23405          else
23406            # /dev/null tree
23407            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23408 echo "$as_me: error: cannot find input file: $f" >&2;}
23409    { (exit 1); exit 1; }; }
23410          fi;;
23411       esac
23412     done` || { (exit 1); exit 1; }
23413   # Remove the trailing spaces.
23414   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23415
23416 _ACEOF
23417
23418 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23419 # `conftest.undefs', that substitutes the proper values into
23420 # config.h.in to produce config.h.  The first handles `#define'
23421 # templates, and the second `#undef' templates.
23422 # And first: Protect against being on the right side of a sed subst in
23423 # config.status.  Protect against being in an unquoted here document
23424 # in config.status.
23425 rm -f conftest.defines conftest.undefs
23426 # Using a here document instead of a string reduces the quoting nightmare.
23427 # Putting comments in sed scripts is not portable.
23428 #
23429 # `end' is used to avoid that the second main sed command (meant for
23430 # 0-ary CPP macros) applies to n-ary macro definitions.
23431 # See the Autoconf documentation for `clear'.
23432 cat >confdef2sed.sed <<\_ACEOF
23433 s/[\\&,]/\\&/g
23434 s,[\\$`],\\&,g
23435 t clear
23436 : clear
23437 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23438 t end
23439 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23440 : end
23441 _ACEOF
23442 # If some macros were called several times there might be several times
23443 # the same #defines, which is useless.  Nevertheless, we may not want to
23444 # sort them, since we want the *last* AC-DEFINE to be honored.
23445 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23446 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23447 rm -f confdef2sed.sed
23448
23449 # This sed command replaces #undef with comments.  This is necessary, for
23450 # example, in the case of _POSIX_SOURCE, which is predefined and required
23451 # on some systems where configure will not decide to define it.
23452 cat >>conftest.undefs <<\_ACEOF
23453 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23454 _ACEOF
23455
23456 # Break up conftest.defines because some shells have a limit on the size
23457 # of here documents, and old seds have small limits too (100 cmds).
23458 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23459 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23460 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23461 echo '  :' >>$CONFIG_STATUS
23462 rm -f conftest.tail
23463 while grep . conftest.defines >/dev/null
23464 do
23465   # Write a limited-size here document to $tmp/defines.sed.
23466   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23467   # Speed up: don't consider the non `#define' lines.
23468   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
23469   # Work around the forget-to-reset-the-flag bug.
23470   echo 't clr' >>$CONFIG_STATUS
23471   echo ': clr' >>$CONFIG_STATUS
23472   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23473   echo 'CEOF
23474   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23475   rm -f $tmp/in
23476   mv $tmp/out $tmp/in
23477 ' >>$CONFIG_STATUS
23478   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23479   rm -f conftest.defines
23480   mv conftest.tail conftest.defines
23481 done
23482 rm -f conftest.defines
23483 echo '  fi # grep' >>$CONFIG_STATUS
23484 echo >>$CONFIG_STATUS
23485
23486 # Break up conftest.undefs because some shells have a limit on the size
23487 # of here documents, and old seds have small limits too (100 cmds).
23488 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23489 rm -f conftest.tail
23490 while grep . conftest.undefs >/dev/null
23491 do
23492   # Write a limited-size here document to $tmp/undefs.sed.
23493   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23494   # Speed up: don't consider the non `#undef'
23495   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23496   # Work around the forget-to-reset-the-flag bug.
23497   echo 't clr' >>$CONFIG_STATUS
23498   echo ': clr' >>$CONFIG_STATUS
23499   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23500   echo 'CEOF
23501   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23502   rm -f $tmp/in
23503   mv $tmp/out $tmp/in
23504 ' >>$CONFIG_STATUS
23505   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23506   rm -f conftest.undefs
23507   mv conftest.tail conftest.undefs
23508 done
23509 rm -f conftest.undefs
23510
23511 cat >>$CONFIG_STATUS <<\_ACEOF
23512   # Let's still pretend it is `configure' which instantiates (i.e., don't
23513   # use $as_me), people would be surprised to read:
23514   #    /* config.h.  Generated by config.status.  */
23515   if test x"$ac_file" = x-; then
23516     echo "/* Generated by configure.  */" >$tmp/config.h
23517   else
23518     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23519   fi
23520   cat $tmp/in >>$tmp/config.h
23521   rm -f $tmp/in
23522   if test x"$ac_file" != x-; then
23523     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23524       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23525 echo "$as_me: $ac_file is unchanged" >&6;}
23526     else
23527       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23528 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23529          X"$ac_file" : 'X\(//\)[^/]' \| \
23530          X"$ac_file" : 'X\(//\)$' \| \
23531          X"$ac_file" : 'X\(/\)' \| \
23532          .     : '\(.\)' 2>/dev/null ||
23533 echo X"$ac_file" |
23534     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23535           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23536           /^X\(\/\/\)$/{ s//\1/; q; }
23537           /^X\(\/\).*/{ s//\1/; q; }
23538           s/.*/./; q'`
23539       { if $as_mkdir_p; then
23540     mkdir -p "$ac_dir"
23541   else
23542     as_dir="$ac_dir"
23543     as_dirs=
23544     while test ! -d "$as_dir"; do
23545       as_dirs="$as_dir $as_dirs"
23546       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23548          X"$as_dir" : 'X\(//\)[^/]' \| \
23549          X"$as_dir" : 'X\(//\)$' \| \
23550          X"$as_dir" : 'X\(/\)' \| \
23551          .     : '\(.\)' 2>/dev/null ||
23552 echo X"$as_dir" |
23553     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23554           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23555           /^X\(\/\/\)$/{ s//\1/; q; }
23556           /^X\(\/\).*/{ s//\1/; q; }
23557           s/.*/./; q'`
23558     done
23559     test ! -n "$as_dirs" || mkdir $as_dirs
23560   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23561 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23562    { (exit 1); exit 1; }; }; }
23563
23564       rm -f $ac_file
23565       mv $tmp/config.h $ac_file
23566     fi
23567   else
23568     cat $tmp/config.h
23569     rm -f $tmp/config.h
23570   fi
23571 done
23572 _ACEOF
23573
23574 cat >>$CONFIG_STATUS <<\_ACEOF
23575
23576 { (exit 0); exit 0; }
23577 _ACEOF
23578 chmod +x $CONFIG_STATUS
23579 ac_clean_files=$ac_clean_files_save
23580
23581
23582 # configure is writing to config.log, and then calls config.status.
23583 # config.status does its own redirection, appending to config.log.
23584 # Unfortunately, on DOS this fails, as config.log is still kept open
23585 # by configure, so config.status won't be able to write to it; its
23586 # output is simply discarded.  So we exec the FD to /dev/null,
23587 # effectively closing config.log, so it can be properly (re)opened and
23588 # appended to by config.status.  When coming back to configure, we
23589 # need to make the FD available again.
23590 if test "$no_create" != yes; then
23591   ac_cs_success=:
23592   ac_config_status_args=
23593   test "$silent" = yes &&
23594     ac_config_status_args="$ac_config_status_args --quiet"
23595   exec 5>/dev/null
23596   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23597   exec 5>>config.log
23598   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23599   # would make configure fail if this is the last instruction.
23600   $ac_cs_success || { (exit 1); exit 1; }
23601 fi
23602
23603