resetting manifest requested domain to floor
[platform/upstream/jasper.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for jasper 1.900.1.
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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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='jasper'
423 PACKAGE_TARNAME='jasper'
424 PACKAGE_VERSION='1.900.1'
425 PACKAGE_STRING='jasper 1.900.1'
426 PACKAGE_BUGREPORT=''
427
428 ac_unique_file="README"
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 target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar JAS_MAJOR_VERSION JAS_MINOR_VERSION JAS_MICRO_VERSION JAS_VERSION JAS_RPM_RELEASE LT_RELEASE LT_CURRENT LT_REVISION LT_AGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB SED EGREP LN_S ECHO AR ac_ct_AR CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS HAVE_LIBJPEG_TRUE HAVE_LIBJPEG_FALSE HAVE_OPENGL_TRUE HAVE_OPENGL_FALSE OPENGL_LIBS 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_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
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 jasper 1.900.1 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 X features:
1014   --x-includes=DIR    X include files are in DIR
1015   --x-libraries=DIR   X library files are in DIR
1016
1017 System types:
1018   --build=BUILD     configure for building on BUILD [guessed]
1019   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1020   --target=TARGET   configure for building compilers for TARGET [HOST]
1021 _ACEOF
1022 fi
1023
1024 if test -n "$ac_init_help"; then
1025   case $ac_init_help in
1026      short | recursive ) echo "Configuration of jasper 1.900.1:";;
1027    esac
1028   cat <<\_ACEOF
1029
1030 Optional Features:
1031   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1032   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1033   --disable-dependency-tracking  speeds up one-time build
1034   --enable-dependency-tracking   do not reject slow dependency extractors
1035   --enable-shared[=PKGS]
1036                           build shared libraries [default=no]
1037   --enable-static[=PKGS]
1038                           build static libraries [default=yes]
1039   --enable-fast-install[=PKGS]
1040                           optimize for fast installation [default=yes]
1041   --disable-libtool-lock  avoid locking (might break parallel builds)
1042   --disable-libjpeg    Force the IJG JPEG library to be ignored
1043   --disable-opengl    Disable use of OpenGL.
1044   --enable-dmalloc    use special memory allocator for debugging
1045   --enable-debug    add extra code for debugging
1046   --enable-special0    enable something
1047
1048 Optional Packages:
1049   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1050   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1051   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1052   --with-pic              try to use only PIC/non-PIC objects [default=use
1053                           both]
1054   --with-tags[=TAGS]
1055                           include additional configurations [automatic]
1056   --with-x                use the X Window System
1057   --with-glut-include-dir=DIR    Set GLUT include directory.
1058   --with-glut-lib-dir=DIR        Set GLUT library directory.
1059
1060 Some influential environment variables:
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1064               nonstandard directory <lib dir>
1065   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066               headers in a nonstandard directory <include dir>
1067   CPP         C preprocessor
1068   CXX         C++ compiler command
1069   CXXFLAGS    C++ compiler flags
1070   CXXCPP      C++ preprocessor
1071   F77         Fortran 77 compiler command
1072   FFLAGS      Fortran 77 compiler flags
1073
1074 Use these variables to override the choices made by `configure' or to help
1075 it to find libraries and programs with nonstandard names/locations.
1076
1077 _ACEOF
1078 fi
1079
1080 if test "$ac_init_help" = "recursive"; then
1081   # If there are subdirs, report their specific --help.
1082   ac_popdir=`pwd`
1083   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084     test -d $ac_dir || continue
1085     ac_builddir=.
1086
1087 if test "$ac_dir" != .; then
1088   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089   # A "../" for each directory in $ac_dir_suffix.
1090   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091 else
1092   ac_dir_suffix= ac_top_builddir=
1093 fi
1094
1095 case $srcdir in
1096   .)  # No --srcdir option.  We are building in place.
1097     ac_srcdir=.
1098     if test -z "$ac_top_builddir"; then
1099        ac_top_srcdir=.
1100     else
1101        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102     fi ;;
1103   [\\/]* | ?:[\\/]* )  # Absolute path.
1104     ac_srcdir=$srcdir$ac_dir_suffix;
1105     ac_top_srcdir=$srcdir ;;
1106   *) # Relative path.
1107     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109 esac
1110
1111 # Do not use `cd foo && pwd` to compute absolute paths, because
1112 # the directories may not exist.
1113 case `pwd` in
1114 .) ac_abs_builddir="$ac_dir";;
1115 *)
1116   case "$ac_dir" in
1117   .) ac_abs_builddir=`pwd`;;
1118   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1119   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1120   esac;;
1121 esac
1122 case $ac_abs_builddir in
1123 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *)
1125   case ${ac_top_builddir}. in
1126   .) ac_abs_top_builddir=$ac_abs_builddir;;
1127   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1128   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1129   esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_srcdir=$ac_srcdir;;
1133 *)
1134   case $ac_srcdir in
1135   .) ac_abs_srcdir=$ac_abs_builddir;;
1136   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1137   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1138   esac;;
1139 esac
1140 case $ac_abs_builddir in
1141 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *)
1143   case $ac_top_srcdir in
1144   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1145   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1146   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147   esac;;
1148 esac
1149
1150     cd $ac_dir
1151     # Check for guested configure; otherwise get Cygnus style configure.
1152     if test -f $ac_srcdir/configure.gnu; then
1153       echo
1154       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1155     elif test -f $ac_srcdir/configure; then
1156       echo
1157       $SHELL $ac_srcdir/configure  --help=recursive
1158     elif test -f $ac_srcdir/configure.ac ||
1159            test -f $ac_srcdir/configure.in; then
1160       echo
1161       $ac_configure --help
1162     else
1163       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1164     fi
1165     cd $ac_popdir
1166   done
1167 fi
1168
1169 test -n "$ac_init_help" && exit 0
1170 if $ac_init_version; then
1171   cat <<\_ACEOF
1172 jasper configure 1.900.1
1173 generated by GNU Autoconf 2.59
1174
1175 Copyright (C) 2003 Free Software Foundation, Inc.
1176 This configure script is free software; the Free Software Foundation
1177 gives unlimited permission to copy, distribute and modify it.
1178 _ACEOF
1179   exit 0
1180 fi
1181 exec 5>config.log
1182 cat >&5 <<_ACEOF
1183 This file contains any messages produced by compilers while
1184 running configure, to aid debugging if configure makes a mistake.
1185
1186 It was created by jasper $as_me 1.900.1, which was
1187 generated by GNU Autoconf 2.59.  Invocation command line was
1188
1189   $ $0 $@
1190
1191 _ACEOF
1192 {
1193 cat <<_ASUNAME
1194 ## --------- ##
1195 ## Platform. ##
1196 ## --------- ##
1197
1198 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1199 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1200 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1201 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1202 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1203
1204 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1205 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1206
1207 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1208 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1209 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1210 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1211 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1212 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1213 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1214
1215 _ASUNAME
1216
1217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1218 for as_dir in $PATH
1219 do
1220   IFS=$as_save_IFS
1221   test -z "$as_dir" && as_dir=.
1222   echo "PATH: $as_dir"
1223 done
1224
1225 } >&5
1226
1227 cat >&5 <<_ACEOF
1228
1229
1230 ## ----------- ##
1231 ## Core tests. ##
1232 ## ----------- ##
1233
1234 _ACEOF
1235
1236
1237 # Keep a trace of the command line.
1238 # Strip out --no-create and --no-recursion so they do not pile up.
1239 # Strip out --silent because we don't want to record it for future runs.
1240 # Also quote any args containing shell meta-characters.
1241 # Make two passes to allow for proper duplicate-argument suppression.
1242 ac_configure_args=
1243 ac_configure_args0=
1244 ac_configure_args1=
1245 ac_sep=
1246 ac_must_keep_next=false
1247 for ac_pass in 1 2
1248 do
1249   for ac_arg
1250   do
1251     case $ac_arg in
1252     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1253     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1254     | -silent | --silent | --silen | --sile | --sil)
1255       continue ;;
1256     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1257       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1258     esac
1259     case $ac_pass in
1260     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1261     2)
1262       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1263       if test $ac_must_keep_next = true; then
1264         ac_must_keep_next=false # Got value, back to normal.
1265       else
1266         case $ac_arg in
1267           *=* | --config-cache | -C | -disable-* | --disable-* \
1268           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1269           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1270           | -with-* | --with-* | -without-* | --without-* | --x)
1271             case "$ac_configure_args0 " in
1272               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1273             esac
1274             ;;
1275           -* ) ac_must_keep_next=true ;;
1276         esac
1277       fi
1278       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1279       # Get rid of the leading space.
1280       ac_sep=" "
1281       ;;
1282     esac
1283   done
1284 done
1285 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1286 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1287
1288 # When interrupted or exit'd, cleanup temporary files, and complete
1289 # config.log.  We remove comments because anyway the quotes in there
1290 # would cause problems or look ugly.
1291 # WARNING: Be sure not to use single quotes in there, as some shells,
1292 # such as our DU 5.0 friend, will then `close' the trap.
1293 trap 'exit_status=$?
1294   # Save into config.log some information that might help in debugging.
1295   {
1296     echo
1297
1298     cat <<\_ASBOX
1299 ## ---------------- ##
1300 ## Cache variables. ##
1301 ## ---------------- ##
1302 _ASBOX
1303     echo
1304     # The following way of writing the cache mishandles newlines in values,
1305 {
1306   (set) 2>&1 |
1307     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1308     *ac_space=\ *)
1309       sed -n \
1310         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1311           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1312       ;;
1313     *)
1314       sed -n \
1315         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1316       ;;
1317     esac;
1318 }
1319     echo
1320
1321     cat <<\_ASBOX
1322 ## ----------------- ##
1323 ## Output variables. ##
1324 ## ----------------- ##
1325 _ASBOX
1326     echo
1327     for ac_var in $ac_subst_vars
1328     do
1329       eval ac_val=$`echo $ac_var`
1330       echo "$ac_var='"'"'$ac_val'"'"'"
1331     done | sort
1332     echo
1333
1334     if test -n "$ac_subst_files"; then
1335       cat <<\_ASBOX
1336 ## ------------- ##
1337 ## Output files. ##
1338 ## ------------- ##
1339 _ASBOX
1340       echo
1341       for ac_var in $ac_subst_files
1342       do
1343         eval ac_val=$`echo $ac_var`
1344         echo "$ac_var='"'"'$ac_val'"'"'"
1345       done | sort
1346       echo
1347     fi
1348
1349     if test -s confdefs.h; then
1350       cat <<\_ASBOX
1351 ## ----------- ##
1352 ## confdefs.h. ##
1353 ## ----------- ##
1354 _ASBOX
1355       echo
1356       sed "/^$/d" confdefs.h | sort
1357       echo
1358     fi
1359     test "$ac_signal" != 0 &&
1360       echo "$as_me: caught signal $ac_signal"
1361     echo "$as_me: exit $exit_status"
1362   } >&5
1363   rm -f core *.core &&
1364   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1365     exit $exit_status
1366      ' 0
1367 for ac_signal in 1 2 13 15; do
1368   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1369 done
1370 ac_signal=0
1371
1372 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1373 rm -rf conftest* confdefs.h
1374 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1375 echo >confdefs.h
1376
1377 # Predefined preprocessor variables.
1378
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_NAME "$PACKAGE_NAME"
1381 _ACEOF
1382
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1386 _ACEOF
1387
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1391 _ACEOF
1392
1393
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_STRING "$PACKAGE_STRING"
1396 _ACEOF
1397
1398
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1401 _ACEOF
1402
1403
1404 # Let the site file select an alternate cache file if it wants to.
1405 # Prefer explicitly selected file to automatically selected ones.
1406 if test -z "$CONFIG_SITE"; then
1407   if test "x$prefix" != xNONE; then
1408     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1409   else
1410     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1411   fi
1412 fi
1413 for ac_site_file in $CONFIG_SITE; do
1414   if test -r "$ac_site_file"; then
1415     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1416 echo "$as_me: loading site script $ac_site_file" >&6;}
1417     sed 's/^/| /' "$ac_site_file" >&5
1418     . "$ac_site_file"
1419   fi
1420 done
1421
1422 if test -r "$cache_file"; then
1423   # Some versions of bash will fail to source /dev/null (special
1424   # files actually), so we avoid doing that.
1425   if test -f "$cache_file"; then
1426     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1427 echo "$as_me: loading cache $cache_file" >&6;}
1428     case $cache_file in
1429       [\\/]* | ?:[\\/]* ) . $cache_file;;
1430       *)                      . ./$cache_file;;
1431     esac
1432   fi
1433 else
1434   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1435 echo "$as_me: creating cache $cache_file" >&6;}
1436   >$cache_file
1437 fi
1438
1439 # Check that the precious variables saved in the cache have kept the same
1440 # value.
1441 ac_cache_corrupted=false
1442 for ac_var in `(set) 2>&1 |
1443                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1444   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1445   eval ac_new_set=\$ac_env_${ac_var}_set
1446   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1447   eval ac_new_val="\$ac_env_${ac_var}_value"
1448   case $ac_old_set,$ac_new_set in
1449     set,)
1450       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1452       ac_cache_corrupted=: ;;
1453     ,set)
1454       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1456       ac_cache_corrupted=: ;;
1457     ,);;
1458     *)
1459       if test "x$ac_old_val" != "x$ac_new_val"; then
1460         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1461 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1462         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1463 echo "$as_me:   former value:  $ac_old_val" >&2;}
1464         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1465 echo "$as_me:   current value: $ac_new_val" >&2;}
1466         ac_cache_corrupted=:
1467       fi;;
1468   esac
1469   # Pass precious variables to config.status.
1470   if test "$ac_new_set" = set; then
1471     case $ac_new_val in
1472     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1473       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1474     *) ac_arg=$ac_var=$ac_new_val ;;
1475     esac
1476     case " $ac_configure_args " in
1477       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1478       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1479     esac
1480   fi
1481 done
1482 if $ac_cache_corrupted; then
1483   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1484 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1485   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1486 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1487    { (exit 1); exit 1; }; }
1488 fi
1489
1490 ac_ext=c
1491 ac_cpp='$CPP $CPPFLAGS'
1492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524 ac_aux_dir=
1525 for ac_dir in acaux $srcdir/acaux; do
1526   if test -f $ac_dir/install-sh; then
1527     ac_aux_dir=$ac_dir
1528     ac_install_sh="$ac_aux_dir/install-sh -c"
1529     break
1530   elif test -f $ac_dir/install.sh; then
1531     ac_aux_dir=$ac_dir
1532     ac_install_sh="$ac_aux_dir/install.sh -c"
1533     break
1534   elif test -f $ac_dir/shtool; then
1535     ac_aux_dir=$ac_dir
1536     ac_install_sh="$ac_aux_dir/shtool install -c"
1537     break
1538   fi
1539 done
1540 if test -z "$ac_aux_dir"; then
1541   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in acaux $srcdir/acaux" >&5
1542 echo "$as_me: error: cannot find install-sh or install.sh in acaux $srcdir/acaux" >&2;}
1543    { (exit 1); exit 1; }; }
1544 fi
1545 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1546 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1547 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1548
1549
1550 # Detect the canonical host and target build environment.
1551 # Note: This precedes automake initialization to avoid warnings.
1552 # Make sure we can run config.sub.
1553 $ac_config_sub sun4 >/dev/null 2>&1 ||
1554   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1555 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1556    { (exit 1); exit 1; }; }
1557
1558 echo "$as_me:$LINENO: checking build system type" >&5
1559 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1560 if test "${ac_cv_build+set}" = set; then
1561   echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563   ac_cv_build_alias=$build_alias
1564 test -z "$ac_cv_build_alias" &&
1565   ac_cv_build_alias=`$ac_config_guess`
1566 test -z "$ac_cv_build_alias" &&
1567   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1568 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1569    { (exit 1); exit 1; }; }
1570 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1571   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1572 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1573    { (exit 1); exit 1; }; }
1574
1575 fi
1576 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1577 echo "${ECHO_T}$ac_cv_build" >&6
1578 build=$ac_cv_build
1579 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1582
1583
1584 echo "$as_me:$LINENO: checking host system type" >&5
1585 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1586 if test "${ac_cv_host+set}" = set; then
1587   echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589   ac_cv_host_alias=$host_alias
1590 test -z "$ac_cv_host_alias" &&
1591   ac_cv_host_alias=$ac_cv_build_alias
1592 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1593   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1594 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1595    { (exit 1); exit 1; }; }
1596
1597 fi
1598 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1599 echo "${ECHO_T}$ac_cv_host" >&6
1600 host=$ac_cv_host
1601 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604
1605
1606 echo "$as_me:$LINENO: checking target system type" >&5
1607 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1608 if test "${ac_cv_target+set}" = set; then
1609   echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611   ac_cv_target_alias=$target_alias
1612 test "x$ac_cv_target_alias" = "x" &&
1613   ac_cv_target_alias=$ac_cv_host_alias
1614 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1615   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1616 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1617    { (exit 1); exit 1; }; }
1618
1619 fi
1620 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1621 echo "${ECHO_T}$ac_cv_target" >&6
1622 target=$ac_cv_target
1623 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1624 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1625 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1626
1627
1628 # The aliases save the names the user supplied, while $host etc.
1629 # will get canonicalized.
1630 test -n "$target_alias" &&
1631   test "$program_prefix$program_suffix$program_transform_name" = \
1632     NONENONEs,x,x, &&
1633   program_prefix=${target_alias}-
1634
1635 # Initialize automake.
1636 am__api_version="1.9"
1637 # Find a good install program.  We prefer a C program (faster),
1638 # so one script is as good as another.  But avoid the broken or
1639 # incompatible versions:
1640 # SysV /etc/install, /usr/sbin/install
1641 # SunOS /usr/etc/install
1642 # IRIX /sbin/install
1643 # AIX /bin/install
1644 # AmigaOS /C/install, which installs bootblocks on floppy discs
1645 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1646 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1647 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1648 # OS/2's system install, which has a completely different semantic
1649 # ./install, which can be erroneously created by make from ./install.sh.
1650 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1651 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1652 if test -z "$INSTALL"; then
1653 if test "${ac_cv_path_install+set}" = set; then
1654   echo $ECHO_N "(cached) $ECHO_C" >&6
1655 else
1656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 for as_dir in $PATH
1658 do
1659   IFS=$as_save_IFS
1660   test -z "$as_dir" && as_dir=.
1661   # Account for people who put trailing slashes in PATH elements.
1662 case $as_dir/ in
1663   ./ | .// | /cC/* | \
1664   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1665   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1666   /usr/ucb/* ) ;;
1667   *)
1668     # OSF1 and SCO ODT 3.0 have their own names for install.
1669     # Don't use installbsd from OSF since it installs stuff as root
1670     # by default.
1671     for ac_prog in ginstall scoinst install; do
1672       for ac_exec_ext in '' $ac_executable_extensions; do
1673         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1674           if test $ac_prog = install &&
1675             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1676             # AIX install.  It has an incompatible calling convention.
1677             :
1678           elif test $ac_prog = install &&
1679             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1680             # program-specific install script used by HP pwplus--don't use.
1681             :
1682           else
1683             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1684             break 3
1685           fi
1686         fi
1687       done
1688     done
1689     ;;
1690 esac
1691 done
1692
1693
1694 fi
1695   if test "${ac_cv_path_install+set}" = set; then
1696     INSTALL=$ac_cv_path_install
1697   else
1698     # As a last resort, use the slow shell script.  We don't cache a
1699     # path for INSTALL within a source directory, because that will
1700     # break other packages using the cache if that directory is
1701     # removed, or if the path is relative.
1702     INSTALL=$ac_install_sh
1703   fi
1704 fi
1705 echo "$as_me:$LINENO: result: $INSTALL" >&5
1706 echo "${ECHO_T}$INSTALL" >&6
1707
1708 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1709 # It thinks the first close brace ends the variable substitution.
1710 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1711
1712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1713
1714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1715
1716 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1717 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1718 # Just in case
1719 sleep 1
1720 echo timestamp > conftest.file
1721 # Do `set' in a subshell so we don't clobber the current shell's
1722 # arguments.  Must try -L first in case configure is actually a
1723 # symlink; some systems play weird games with the mod time of symlinks
1724 # (eg FreeBSD returns the mod time of the symlink's containing
1725 # directory).
1726 if (
1727    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1728    if test "$*" = "X"; then
1729       # -L didn't work.
1730       set X `ls -t $srcdir/configure conftest.file`
1731    fi
1732    rm -f conftest.file
1733    if test "$*" != "X $srcdir/configure conftest.file" \
1734       && test "$*" != "X conftest.file $srcdir/configure"; then
1735
1736       # If neither matched, then we have a broken ls.  This can happen
1737       # if, for instance, CONFIG_SHELL is bash and it inherits a
1738       # broken ls alias from the environment.  This has actually
1739       # happened.  Such a system could not be considered "sane".
1740       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1741 alias in your environment" >&5
1742 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1743 alias in your environment" >&2;}
1744    { (exit 1); exit 1; }; }
1745    fi
1746
1747    test "$2" = conftest.file
1748    )
1749 then
1750    # Ok.
1751    :
1752 else
1753    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1754 Check your system clock" >&5
1755 echo "$as_me: error: newly created file is older than distributed files!
1756 Check your system clock" >&2;}
1757    { (exit 1); exit 1; }; }
1758 fi
1759 echo "$as_me:$LINENO: result: yes" >&5
1760 echo "${ECHO_T}yes" >&6
1761 test "$program_prefix" != NONE &&
1762   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1763 # Use a double $ so make ignores it.
1764 test "$program_suffix" != NONE &&
1765   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1766 # Double any \ or $.  echo might interpret backslashes.
1767 # By default was `s,x,x', remove it if useless.
1768 cat <<\_ACEOF >conftest.sed
1769 s/[\\$]/&&/g;s/;s,x,x,$//
1770 _ACEOF
1771 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1772 rm conftest.sed
1773
1774 # expand $ac_aux_dir to an absolute path
1775 am_aux_dir=`cd $ac_aux_dir && pwd`
1776
1777 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1778 # Use eval to expand $SHELL
1779 if eval "$MISSING --run true"; then
1780   am_missing_run="$MISSING --run "
1781 else
1782   am_missing_run=
1783   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1784 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1785 fi
1786
1787 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1788   # We used to keeping the `.' as first argument, in order to
1789   # allow $(mkdir_p) to be used without argument.  As in
1790   #   $(mkdir_p) $(somedir)
1791   # where $(somedir) is conditionally defined.  However this is wrong
1792   # for two reasons:
1793   #  1. if the package is installed by a user who cannot write `.'
1794   #     make install will fail,
1795   #  2. the above comment should most certainly read
1796   #     $(mkdir_p) $(DESTDIR)$(somedir)
1797   #     so it does not work when $(somedir) is undefined and
1798   #     $(DESTDIR) is not.
1799   #  To support the latter case, we have to write
1800   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1801   #  so the `.' trick is pointless.
1802   mkdir_p='mkdir -p --'
1803 else
1804   # On NextStep and OpenStep, the `mkdir' command does not
1805   # recognize any option.  It will interpret all options as
1806   # directories to create, and then abort because `.' already
1807   # exists.
1808   for d in ./-p ./--version;
1809   do
1810     test -d $d && rmdir $d
1811   done
1812   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1813   if test -f "$ac_aux_dir/mkinstalldirs"; then
1814     mkdir_p='$(mkinstalldirs)'
1815   else
1816     mkdir_p='$(install_sh) -d'
1817   fi
1818 fi
1819
1820 for ac_prog in gawk mawk nawk awk
1821 do
1822   # Extract the first word of "$ac_prog", so it can be a program name with args.
1823 set dummy $ac_prog; ac_word=$2
1824 echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826 if test "${ac_cv_prog_AWK+set}" = set; then
1827   echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829   if test -n "$AWK"; then
1830   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1831 else
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833 for as_dir in $PATH
1834 do
1835   IFS=$as_save_IFS
1836   test -z "$as_dir" && as_dir=.
1837   for ac_exec_ext in '' $ac_executable_extensions; do
1838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839     ac_cv_prog_AWK="$ac_prog"
1840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841     break 2
1842   fi
1843 done
1844 done
1845
1846 fi
1847 fi
1848 AWK=$ac_cv_prog_AWK
1849 if test -n "$AWK"; then
1850   echo "$as_me:$LINENO: result: $AWK" >&5
1851 echo "${ECHO_T}$AWK" >&6
1852 else
1853   echo "$as_me:$LINENO: result: no" >&5
1854 echo "${ECHO_T}no" >&6
1855 fi
1856
1857   test -n "$AWK" && break
1858 done
1859
1860 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1861 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1862 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1863 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1864   echo $ECHO_N "(cached) $ECHO_C" >&6
1865 else
1866   cat >conftest.make <<\_ACEOF
1867 all:
1868         @echo 'ac_maketemp="$(MAKE)"'
1869 _ACEOF
1870 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1871 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1872 if test -n "$ac_maketemp"; then
1873   eval ac_cv_prog_make_${ac_make}_set=yes
1874 else
1875   eval ac_cv_prog_make_${ac_make}_set=no
1876 fi
1877 rm -f conftest.make
1878 fi
1879 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1880   echo "$as_me:$LINENO: result: yes" >&5
1881 echo "${ECHO_T}yes" >&6
1882   SET_MAKE=
1883 else
1884   echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1886   SET_MAKE="MAKE=${MAKE-make}"
1887 fi
1888
1889 rm -rf .tst 2>/dev/null
1890 mkdir .tst 2>/dev/null
1891 if test -d .tst; then
1892   am__leading_dot=.
1893 else
1894   am__leading_dot=_
1895 fi
1896 rmdir .tst 2>/dev/null
1897
1898 # test to see if srcdir already configured
1899 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1900    test -f $srcdir/config.status; then
1901   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1902 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1903    { (exit 1); exit 1; }; }
1904 fi
1905
1906 # test whether we have cygpath
1907 if test -z "$CYGPATH_W"; then
1908   if (cygpath --version) >/dev/null 2>/dev/null; then
1909     CYGPATH_W='cygpath -w'
1910   else
1911     CYGPATH_W=echo
1912   fi
1913 fi
1914
1915
1916 # Define the identity of the package.
1917  PACKAGE='jasper'
1918  VERSION='1.900.1'
1919
1920
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE "$PACKAGE"
1923 _ACEOF
1924
1925
1926 cat >>confdefs.h <<_ACEOF
1927 #define VERSION "$VERSION"
1928 _ACEOF
1929
1930 # Some tools Automake needs.
1931
1932 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1933
1934
1935 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1936
1937
1938 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1939
1940
1941 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1942
1943
1944 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1945
1946 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1947
1948 # Installed binaries are usually stripped using `strip' when the user
1949 # run `make install-strip'.  However `strip' might not be the right
1950 # tool to use in cross-compilation environments, therefore Automake
1951 # will honor the `STRIP' environment variable to overrule this program.
1952 if test "$cross_compiling" != no; then
1953   if test -n "$ac_tool_prefix"; then
1954   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1955 set dummy ${ac_tool_prefix}strip; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_STRIP+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test -n "$STRIP"; then
1962   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969   for ac_exec_ext in '' $ac_executable_extensions; do
1970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973     break 2
1974   fi
1975 done
1976 done
1977
1978 fi
1979 fi
1980 STRIP=$ac_cv_prog_STRIP
1981 if test -n "$STRIP"; then
1982   echo "$as_me:$LINENO: result: $STRIP" >&5
1983 echo "${ECHO_T}$STRIP" >&6
1984 else
1985   echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1987 fi
1988
1989 fi
1990 if test -z "$ac_cv_prog_STRIP"; then
1991   ac_ct_STRIP=$STRIP
1992   # Extract the first word of "strip", so it can be a program name with args.
1993 set dummy strip; ac_word=$2
1994 echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1997   echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999   if test -n "$ac_ct_STRIP"; then
2000   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2001 else
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
2005   IFS=$as_save_IFS
2006   test -z "$as_dir" && as_dir=.
2007   for ac_exec_ext in '' $ac_executable_extensions; do
2008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009     ac_cv_prog_ac_ct_STRIP="strip"
2010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011     break 2
2012   fi
2013 done
2014 done
2015
2016   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2017 fi
2018 fi
2019 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2020 if test -n "$ac_ct_STRIP"; then
2021   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2022 echo "${ECHO_T}$ac_ct_STRIP" >&6
2023 else
2024   echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6
2026 fi
2027
2028   STRIP=$ac_ct_STRIP
2029 else
2030   STRIP="$ac_cv_prog_STRIP"
2031 fi
2032
2033 fi
2034 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2035
2036 # We need awk for the "check" target.  The system "awk" is bad on
2037 # some platforms.
2038 # Always define AMTAR for backward compatibility.
2039
2040 AMTAR=${AMTAR-"${am_missing_run}tar"}
2041
2042 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2043
2044
2045
2046
2047
2048
2049 # Initialize version information parameters.
2050 JAS_MAJOR_VERSION=1
2051 JAS_MINOR_VERSION=900
2052 JAS_MICRO_VERSION=1
2053 JAS_VERSION=1.900.1
2054
2055
2056
2057
2058 cat >>confdefs.h <<_ACEOF
2059 #define JAS_VERSION "$JAS_VERSION"
2060 _ACEOF
2061
2062 JAS_RPM_RELEASE=1
2063
2064
2065 # Initialize version information for libtool.
2066 LT_RELEASE=1.900
2067 LT_CURRENT=1
2068 LT_REVISION=0
2069 LT_AGE=0
2070
2071
2072
2073
2074
2075 # Indicate a configure-based build is being used.
2076 cat >>confdefs.h <<\_ACEOF
2077 #define JAS_CONFIGURE 1
2078 _ACEOF
2079
2080
2081 ############################################################
2082 # Configuration header file.
2083 ############################################################
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104 ############################################################
2105 # Checks for programs.
2106 ############################################################
2107
2108 ac_ext=c
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113 if test -n "$ac_tool_prefix"; then
2114   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2115 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2116 echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118 if test "${ac_cv_prog_CC+set}" = set; then
2119   echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121   if test -n "$CC"; then
2122   ac_cv_prog_CC="$CC" # Let the user override the test.
2123 else
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2126 do
2127   IFS=$as_save_IFS
2128   test -z "$as_dir" && as_dir=.
2129   for ac_exec_ext in '' $ac_executable_extensions; do
2130   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133     break 2
2134   fi
2135 done
2136 done
2137
2138 fi
2139 fi
2140 CC=$ac_cv_prog_CC
2141 if test -n "$CC"; then
2142   echo "$as_me:$LINENO: result: $CC" >&5
2143 echo "${ECHO_T}$CC" >&6
2144 else
2145   echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6
2147 fi
2148
2149 fi
2150 if test -z "$ac_cv_prog_CC"; then
2151   ac_ct_CC=$CC
2152   # Extract the first word of "gcc", so it can be a program name with args.
2153 set dummy gcc; ac_word=$2
2154 echo "$as_me:$LINENO: checking for $ac_word" >&5
2155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2157   echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159   if test -n "$ac_ct_CC"; then
2160   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2161 else
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH
2164 do
2165   IFS=$as_save_IFS
2166   test -z "$as_dir" && as_dir=.
2167   for ac_exec_ext in '' $ac_executable_extensions; do
2168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2169     ac_cv_prog_ac_ct_CC="gcc"
2170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171     break 2
2172   fi
2173 done
2174 done
2175
2176 fi
2177 fi
2178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2179 if test -n "$ac_ct_CC"; then
2180   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2181 echo "${ECHO_T}$ac_ct_CC" >&6
2182 else
2183   echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6
2185 fi
2186
2187   CC=$ac_ct_CC
2188 else
2189   CC="$ac_cv_prog_CC"
2190 fi
2191
2192 if test -z "$CC"; then
2193   if test -n "$ac_tool_prefix"; then
2194   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2195 set dummy ${ac_tool_prefix}cc; ac_word=$2
2196 echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2198 if test "${ac_cv_prog_CC+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   if test -n "$CC"; then
2202   ac_cv_prog_CC="$CC" # Let the user override the test.
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207   IFS=$as_save_IFS
2208   test -z "$as_dir" && as_dir=.
2209   for ac_exec_ext in '' $ac_executable_extensions; do
2210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2211     ac_cv_prog_CC="${ac_tool_prefix}cc"
2212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213     break 2
2214   fi
2215 done
2216 done
2217
2218 fi
2219 fi
2220 CC=$ac_cv_prog_CC
2221 if test -n "$CC"; then
2222   echo "$as_me:$LINENO: result: $CC" >&5
2223 echo "${ECHO_T}$CC" >&6
2224 else
2225   echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6
2227 fi
2228
2229 fi
2230 if test -z "$ac_cv_prog_CC"; then
2231   ac_ct_CC=$CC
2232   # Extract the first word of "cc", so it can be a program name with args.
2233 set dummy cc; ac_word=$2
2234 echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2236 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2237   echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239   if test -n "$ac_ct_CC"; then
2240   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2241 else
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 for as_dir in $PATH
2244 do
2245   IFS=$as_save_IFS
2246   test -z "$as_dir" && as_dir=.
2247   for ac_exec_ext in '' $ac_executable_extensions; do
2248   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2249     ac_cv_prog_ac_ct_CC="cc"
2250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251     break 2
2252   fi
2253 done
2254 done
2255
2256 fi
2257 fi
2258 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2259 if test -n "$ac_ct_CC"; then
2260   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2261 echo "${ECHO_T}$ac_ct_CC" >&6
2262 else
2263   echo "$as_me:$LINENO: result: no" >&5
2264 echo "${ECHO_T}no" >&6
2265 fi
2266
2267   CC=$ac_ct_CC
2268 else
2269   CC="$ac_cv_prog_CC"
2270 fi
2271
2272 fi
2273 if test -z "$CC"; then
2274   # Extract the first word of "cc", so it can be a program name with args.
2275 set dummy cc; ac_word=$2
2276 echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2278 if test "${ac_cv_prog_CC+set}" = set; then
2279   echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281   if test -n "$CC"; then
2282   ac_cv_prog_CC="$CC" # Let the user override the test.
2283 else
2284   ac_prog_rejected=no
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2287 do
2288   IFS=$as_save_IFS
2289   test -z "$as_dir" && as_dir=.
2290   for ac_exec_ext in '' $ac_executable_extensions; do
2291   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2292     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2293        ac_prog_rejected=yes
2294        continue
2295      fi
2296     ac_cv_prog_CC="cc"
2297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298     break 2
2299   fi
2300 done
2301 done
2302
2303 if test $ac_prog_rejected = yes; then
2304   # We found a bogon in the path, so make sure we never use it.
2305   set dummy $ac_cv_prog_CC
2306   shift
2307   if test $# != 0; then
2308     # We chose a different compiler from the bogus one.
2309     # However, it has the same basename, so the bogon will be chosen
2310     # first if we set CC to just the basename; use the full file name.
2311     shift
2312     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2313   fi
2314 fi
2315 fi
2316 fi
2317 CC=$ac_cv_prog_CC
2318 if test -n "$CC"; then
2319   echo "$as_me:$LINENO: result: $CC" >&5
2320 echo "${ECHO_T}$CC" >&6
2321 else
2322   echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6
2324 fi
2325
2326 fi
2327 if test -z "$CC"; then
2328   if test -n "$ac_tool_prefix"; then
2329   for ac_prog in cl
2330   do
2331     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2333 echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2335 if test "${ac_cv_prog_CC+set}" = set; then
2336   echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338   if test -n "$CC"; then
2339   ac_cv_prog_CC="$CC" # Let the user override the test.
2340 else
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344   IFS=$as_save_IFS
2345   test -z "$as_dir" && as_dir=.
2346   for ac_exec_ext in '' $ac_executable_extensions; do
2347   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2348     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350     break 2
2351   fi
2352 done
2353 done
2354
2355 fi
2356 fi
2357 CC=$ac_cv_prog_CC
2358 if test -n "$CC"; then
2359   echo "$as_me:$LINENO: result: $CC" >&5
2360 echo "${ECHO_T}$CC" >&6
2361 else
2362   echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6
2364 fi
2365
2366     test -n "$CC" && break
2367   done
2368 fi
2369 if test -z "$CC"; then
2370   ac_ct_CC=$CC
2371   for ac_prog in cl
2372 do
2373   # Extract the first word of "$ac_prog", so it can be a program name with args.
2374 set dummy $ac_prog; ac_word=$2
2375 echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2378   echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380   if test -n "$ac_ct_CC"; then
2381   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2382 else
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2385 do
2386   IFS=$as_save_IFS
2387   test -z "$as_dir" && as_dir=.
2388   for ac_exec_ext in '' $ac_executable_extensions; do
2389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2390     ac_cv_prog_ac_ct_CC="$ac_prog"
2391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392     break 2
2393   fi
2394 done
2395 done
2396
2397 fi
2398 fi
2399 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2400 if test -n "$ac_ct_CC"; then
2401   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2402 echo "${ECHO_T}$ac_ct_CC" >&6
2403 else
2404   echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6
2406 fi
2407
2408   test -n "$ac_ct_CC" && break
2409 done
2410
2411   CC=$ac_ct_CC
2412 fi
2413
2414 fi
2415
2416
2417 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2418 See \`config.log' for more details." >&5
2419 echo "$as_me: error: no acceptable C compiler found in \$PATH
2420 See \`config.log' for more details." >&2;}
2421    { (exit 1); exit 1; }; }
2422
2423 # Provide some information about the compiler.
2424 echo "$as_me:$LINENO:" \
2425      "checking for C compiler version" >&5
2426 ac_compiler=`set X $ac_compile; echo $2`
2427 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2428   (eval $ac_compiler --version </dev/null >&5) 2>&5
2429   ac_status=$?
2430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431   (exit $ac_status); }
2432 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2433   (eval $ac_compiler -v </dev/null >&5) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }
2437 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2438   (eval $ac_compiler -V </dev/null >&5) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }
2442
2443 cat >conftest.$ac_ext <<_ACEOF
2444 /* confdefs.h.  */
2445 _ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h.  */
2449
2450 int
2451 main ()
2452 {
2453
2454   ;
2455   return 0;
2456 }
2457 _ACEOF
2458 ac_clean_files_save=$ac_clean_files
2459 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2460 # Try to create an executable without -o first, disregard a.out.
2461 # It will help us diagnose broken compilers, and finding out an intuition
2462 # of exeext.
2463 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2464 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2465 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2466 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2467   (eval $ac_link_default) 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); }; then
2471   # Find the output, starting from the most likely.  This scheme is
2472 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2473 # resort.
2474
2475 # Be careful to initialize this variable, since it used to be cached.
2476 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2477 ac_cv_exeext=
2478 # b.out is created by i960 compilers.
2479 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2480 do
2481   test -f "$ac_file" || continue
2482   case $ac_file in
2483     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2484         ;;
2485     conftest.$ac_ext )
2486         # This is the source file.
2487         ;;
2488     [ab].out )
2489         # We found the default executable, but exeext='' is most
2490         # certainly right.
2491         break;;
2492     *.* )
2493         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2494         # FIXME: I believe we export ac_cv_exeext for Libtool,
2495         # but it would be cool to find out if it's true.  Does anybody
2496         # maintain Libtool? --akim.
2497         export ac_cv_exeext
2498         break;;
2499     * )
2500         break;;
2501   esac
2502 done
2503 else
2504   echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2506
2507 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2508 See \`config.log' for more details." >&5
2509 echo "$as_me: error: C compiler cannot create executables
2510 See \`config.log' for more details." >&2;}
2511    { (exit 77); exit 77; }; }
2512 fi
2513
2514 ac_exeext=$ac_cv_exeext
2515 echo "$as_me:$LINENO: result: $ac_file" >&5
2516 echo "${ECHO_T}$ac_file" >&6
2517
2518 # Check the compiler produces executables we can run.  If not, either
2519 # the compiler is broken, or we cross compile.
2520 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2521 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2522 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2523 # If not cross compiling, check that we can run a simple program.
2524 if test "$cross_compiling" != yes; then
2525   if { ac_try='./$ac_file'
2526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527   (eval $ac_try) 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); }; }; then
2531     cross_compiling=no
2532   else
2533     if test "$cross_compiling" = maybe; then
2534         cross_compiling=yes
2535     else
2536         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2537 If you meant to cross compile, use \`--host'.
2538 See \`config.log' for more details." >&5
2539 echo "$as_me: error: cannot run C compiled programs.
2540 If you meant to cross compile, use \`--host'.
2541 See \`config.log' for more details." >&2;}
2542    { (exit 1); exit 1; }; }
2543     fi
2544   fi
2545 fi
2546 echo "$as_me:$LINENO: result: yes" >&5
2547 echo "${ECHO_T}yes" >&6
2548
2549 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2550 ac_clean_files=$ac_clean_files_save
2551 # Check the compiler produces executables we can run.  If not, either
2552 # the compiler is broken, or we cross compile.
2553 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2554 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2555 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2556 echo "${ECHO_T}$cross_compiling" >&6
2557
2558 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2559 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2561   (eval $ac_link) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }; then
2565   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2566 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2567 # work properly (i.e., refer to `conftest.exe'), while it won't with
2568 # `rm'.
2569 for ac_file in conftest.exe conftest conftest.*; do
2570   test -f "$ac_file" || continue
2571   case $ac_file in
2572     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2573     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2574           export ac_cv_exeext
2575           break;;
2576     * ) break;;
2577   esac
2578 done
2579 else
2580   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2583 See \`config.log' for more details." >&2;}
2584    { (exit 1); exit 1; }; }
2585 fi
2586
2587 rm -f conftest$ac_cv_exeext
2588 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2589 echo "${ECHO_T}$ac_cv_exeext" >&6
2590
2591 rm -f conftest.$ac_ext
2592 EXEEXT=$ac_cv_exeext
2593 ac_exeext=$EXEEXT
2594 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2595 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2596 if test "${ac_cv_objext+set}" = set; then
2597   echo $ECHO_N "(cached) $ECHO_C" >&6
2598 else
2599   cat >conftest.$ac_ext <<_ACEOF
2600 /* confdefs.h.  */
2601 _ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h.  */
2605
2606 int
2607 main ()
2608 {
2609
2610   ;
2611   return 0;
2612 }
2613 _ACEOF
2614 rm -f conftest.o conftest.obj
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616   (eval $ac_compile) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; then
2620   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2621   case $ac_file in
2622     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2623     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2624        break;;
2625   esac
2626 done
2627 else
2628   echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2630
2631 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2632 See \`config.log' for more details." >&5
2633 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2634 See \`config.log' for more details." >&2;}
2635    { (exit 1); exit 1; }; }
2636 fi
2637
2638 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2639 fi
2640 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2641 echo "${ECHO_T}$ac_cv_objext" >&6
2642 OBJEXT=$ac_cv_objext
2643 ac_objext=$OBJEXT
2644 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2645 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2646 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2647   echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649   cat >conftest.$ac_ext <<_ACEOF
2650 /* confdefs.h.  */
2651 _ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h.  */
2655
2656 int
2657 main ()
2658 {
2659 #ifndef __GNUC__
2660        choke me
2661 #endif
2662
2663   ;
2664   return 0;
2665 }
2666 _ACEOF
2667 rm -f conftest.$ac_objext
2668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669   (eval $ac_compile) 2>conftest.er1
2670   ac_status=$?
2671   grep -v '^ *+' conftest.er1 >conftest.err
2672   rm -f conftest.er1
2673   cat conftest.err >&5
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); } &&
2676          { ac_try='test -z "$ac_c_werror_flag"
2677                          || test ! -s conftest.err'
2678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679   (eval $ac_try) 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }; } &&
2683          { ac_try='test -s conftest.$ac_objext'
2684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685   (eval $ac_try) 2>&5
2686   ac_status=$?
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); }; }; then
2689   ac_compiler_gnu=yes
2690 else
2691   echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2693
2694 ac_compiler_gnu=no
2695 fi
2696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2697 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2698
2699 fi
2700 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2701 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2702 GCC=`test $ac_compiler_gnu = yes && echo yes`
2703 ac_test_CFLAGS=${CFLAGS+set}
2704 ac_save_CFLAGS=$CFLAGS
2705 CFLAGS="-g"
2706 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2707 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2708 if test "${ac_cv_prog_cc_g+set}" = set; then
2709   echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711   cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h.  */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h.  */
2717
2718 int
2719 main ()
2720 {
2721
2722   ;
2723   return 0;
2724 }
2725 _ACEOF
2726 rm -f conftest.$ac_objext
2727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728   (eval $ac_compile) 2>conftest.er1
2729   ac_status=$?
2730   grep -v '^ *+' conftest.er1 >conftest.err
2731   rm -f conftest.er1
2732   cat conftest.err >&5
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); } &&
2735          { ac_try='test -z "$ac_c_werror_flag"
2736                          || test ! -s conftest.err'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; } &&
2742          { ac_try='test -s conftest.$ac_objext'
2743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744   (eval $ac_try) 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); }; }; then
2748   ac_cv_prog_cc_g=yes
2749 else
2750   echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2752
2753 ac_cv_prog_cc_g=no
2754 fi
2755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2756 fi
2757 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2758 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2759 if test "$ac_test_CFLAGS" = set; then
2760   CFLAGS=$ac_save_CFLAGS
2761 elif test $ac_cv_prog_cc_g = yes; then
2762   if test "$GCC" = yes; then
2763     CFLAGS="-g -O2"
2764   else
2765     CFLAGS="-g"
2766   fi
2767 else
2768   if test "$GCC" = yes; then
2769     CFLAGS="-O2"
2770   else
2771     CFLAGS=
2772   fi
2773 fi
2774 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2775 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2776 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2777   echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779   ac_cv_prog_cc_stdc=no
2780 ac_save_CC=$CC
2781 cat >conftest.$ac_ext <<_ACEOF
2782 /* confdefs.h.  */
2783 _ACEOF
2784 cat confdefs.h >>conftest.$ac_ext
2785 cat >>conftest.$ac_ext <<_ACEOF
2786 /* end confdefs.h.  */
2787 #include <stdarg.h>
2788 #include <stdio.h>
2789 #include <sys/types.h>
2790 #include <sys/stat.h>
2791 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2792 struct buf { int x; };
2793 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2794 static char *e (p, i)
2795      char **p;
2796      int i;
2797 {
2798   return p[i];
2799 }
2800 static char *f (char * (*g) (char **, int), char **p, ...)
2801 {
2802   char *s;
2803   va_list v;
2804   va_start (v,p);
2805   s = g (p, va_arg (v,int));
2806   va_end (v);
2807   return s;
2808 }
2809
2810 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2811    function prototypes and stuff, but not '\xHH' hex character constants.
2812    These don't provoke an error unfortunately, instead are silently treated
2813    as 'x'.  The following induces an error, until -std1 is added to get
2814    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2815    array size at least.  It's necessary to write '\x00'==0 to get something
2816    that's true only with -std1.  */
2817 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2818
2819 int test (int i, double x);
2820 struct s1 {int (*f) (int a);};
2821 struct s2 {int (*f) (double a);};
2822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2823 int argc;
2824 char **argv;
2825 int
2826 main ()
2827 {
2828 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2829   ;
2830   return 0;
2831 }
2832 _ACEOF
2833 # Don't try gcc -ansi; that turns off useful extensions and
2834 # breaks some systems' header files.
2835 # AIX                   -qlanglvl=ansi
2836 # Ultrix and OSF/1      -std1
2837 # HP-UX 10.20 and later -Ae
2838 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2839 # SVR4                  -Xc -D__EXTENSIONS__
2840 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2841 do
2842   CC="$ac_save_CC $ac_arg"
2843   rm -f conftest.$ac_objext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845   (eval $ac_compile) 2>conftest.er1
2846   ac_status=$?
2847   grep -v '^ *+' conftest.er1 >conftest.err
2848   rm -f conftest.er1
2849   cat conftest.err >&5
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); } &&
2852          { ac_try='test -z "$ac_c_werror_flag"
2853                          || test ! -s conftest.err'
2854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855   (eval $ac_try) 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; } &&
2859          { ac_try='test -s conftest.$ac_objext'
2860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861   (eval $ac_try) 2>&5
2862   ac_status=$?
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); }; }; then
2865   ac_cv_prog_cc_stdc=$ac_arg
2866 break
2867 else
2868   echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2870
2871 fi
2872 rm -f conftest.err conftest.$ac_objext
2873 done
2874 rm -f conftest.$ac_ext conftest.$ac_objext
2875 CC=$ac_save_CC
2876
2877 fi
2878
2879 case "x$ac_cv_prog_cc_stdc" in
2880   x|xno)
2881     echo "$as_me:$LINENO: result: none needed" >&5
2882 echo "${ECHO_T}none needed" >&6 ;;
2883   *)
2884     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2885 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2886     CC="$CC $ac_cv_prog_cc_stdc" ;;
2887 esac
2888
2889 # Some people use a C++ compiler to compile C.  Since we use `exit',
2890 # in C++ we need to declare it.  In case someone uses the same compiler
2891 # for both compiling C and C++ we need to have the C++ compiler decide
2892 # the declaration of exit, since it's the most demanding environment.
2893 cat >conftest.$ac_ext <<_ACEOF
2894 #ifndef __cplusplus
2895   choke me
2896 #endif
2897 _ACEOF
2898 rm -f conftest.$ac_objext
2899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2900   (eval $ac_compile) 2>conftest.er1
2901   ac_status=$?
2902   grep -v '^ *+' conftest.er1 >conftest.err
2903   rm -f conftest.er1
2904   cat conftest.err >&5
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } &&
2907          { ac_try='test -z "$ac_c_werror_flag"
2908                          || test ! -s conftest.err'
2909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910   (eval $ac_try) 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; } &&
2914          { ac_try='test -s conftest.$ac_objext'
2915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916   (eval $ac_try) 2>&5
2917   ac_status=$?
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); }; }; then
2920   for ac_declaration in \
2921    '' \
2922    'extern "C" void std::exit (int) throw (); using std::exit;' \
2923    'extern "C" void std::exit (int); using std::exit;' \
2924    'extern "C" void exit (int) throw ();' \
2925    'extern "C" void exit (int);' \
2926    'void exit (int);'
2927 do
2928   cat >conftest.$ac_ext <<_ACEOF
2929 /* confdefs.h.  */
2930 _ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h.  */
2934 $ac_declaration
2935 #include <stdlib.h>
2936 int
2937 main ()
2938 {
2939 exit (42);
2940   ;
2941   return 0;
2942 }
2943 _ACEOF
2944 rm -f conftest.$ac_objext
2945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2946   (eval $ac_compile) 2>conftest.er1
2947   ac_status=$?
2948   grep -v '^ *+' conftest.er1 >conftest.err
2949   rm -f conftest.er1
2950   cat conftest.err >&5
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); } &&
2953          { ac_try='test -z "$ac_c_werror_flag"
2954                          || test ! -s conftest.err'
2955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956   (eval $ac_try) 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); }; } &&
2960          { ac_try='test -s conftest.$ac_objext'
2961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962   (eval $ac_try) 2>&5
2963   ac_status=$?
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); }; }; then
2966   :
2967 else
2968   echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2970
2971 continue
2972 fi
2973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2974   cat >conftest.$ac_ext <<_ACEOF
2975 /* confdefs.h.  */
2976 _ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h.  */
2980 $ac_declaration
2981 int
2982 main ()
2983 {
2984 exit (42);
2985   ;
2986   return 0;
2987 }
2988 _ACEOF
2989 rm -f conftest.$ac_objext
2990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2991   (eval $ac_compile) 2>conftest.er1
2992   ac_status=$?
2993   grep -v '^ *+' conftest.er1 >conftest.err
2994   rm -f conftest.er1
2995   cat conftest.err >&5
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); } &&
2998          { ac_try='test -z "$ac_c_werror_flag"
2999                          || test ! -s conftest.err'
3000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001   (eval $ac_try) 2>&5
3002   ac_status=$?
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); }; } &&
3005          { ac_try='test -s conftest.$ac_objext'
3006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007   (eval $ac_try) 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); }; }; then
3011   break
3012 else
3013   echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3015
3016 fi
3017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3018 done
3019 rm -f conftest*
3020 if test -n "$ac_declaration"; then
3021   echo '#ifdef __cplusplus' >>confdefs.h
3022   echo $ac_declaration      >>confdefs.h
3023   echo '#endif'             >>confdefs.h
3024 fi
3025
3026 else
3027   echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3029
3030 fi
3031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3032 ac_ext=c
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037 DEPDIR="${am__leading_dot}deps"
3038
3039           ac_config_commands="$ac_config_commands depfiles"
3040
3041
3042 am_make=${MAKE-make}
3043 cat > confinc << 'END'
3044 am__doit:
3045         @echo done
3046 .PHONY: am__doit
3047 END
3048 # If we don't find an include directive, just comment out the code.
3049 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3050 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3051 am__include="#"
3052 am__quote=
3053 _am_result=none
3054 # First try GNU make style include.
3055 echo "include confinc" > confmf
3056 # We grep out `Entering directory' and `Leaving directory'
3057 # messages which can occur if `w' ends up in MAKEFLAGS.
3058 # In particular we don't look at `^make:' because GNU make might
3059 # be invoked under some other name (usually "gmake"), in which
3060 # case it prints its new name instead of `make'.
3061 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3062    am__include=include
3063    am__quote=
3064    _am_result=GNU
3065 fi
3066 # Now try BSD make style include.
3067 if test "$am__include" = "#"; then
3068    echo '.include "confinc"' > confmf
3069    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3070       am__include=.include
3071       am__quote="\""
3072       _am_result=BSD
3073    fi
3074 fi
3075
3076
3077 echo "$as_me:$LINENO: result: $_am_result" >&5
3078 echo "${ECHO_T}$_am_result" >&6
3079 rm -f confinc confmf
3080
3081 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3082 if test "${enable_dependency_tracking+set}" = set; then
3083   enableval="$enable_dependency_tracking"
3084
3085 fi;
3086 if test "x$enable_dependency_tracking" != xno; then
3087   am_depcomp="$ac_aux_dir/depcomp"
3088   AMDEPBACKSLASH='\'
3089 fi
3090
3091
3092 if test "x$enable_dependency_tracking" != xno; then
3093   AMDEP_TRUE=
3094   AMDEP_FALSE='#'
3095 else
3096   AMDEP_TRUE='#'
3097   AMDEP_FALSE=
3098 fi
3099
3100
3101
3102
3103 depcc="$CC"   am_compiler_list=
3104
3105 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3106 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3107 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3108   echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3111   # We make a subdir and do the tests there.  Otherwise we can end up
3112   # making bogus files that we don't know about and never remove.  For
3113   # instance it was reported that on HP-UX the gcc test will end up
3114   # making a dummy file named `D' -- because `-MD' means `put the output
3115   # in D'.
3116   mkdir conftest.dir
3117   # Copy depcomp to subdir because otherwise we won't find it if we're
3118   # using a relative directory.
3119   cp "$am_depcomp" conftest.dir
3120   cd conftest.dir
3121   # We will build objects and dependencies in a subdirectory because
3122   # it helps to detect inapplicable dependency modes.  For instance
3123   # both Tru64's cc and ICC support -MD to output dependencies as a
3124   # side effect of compilation, but ICC will put the dependencies in
3125   # the current directory while Tru64 will put them in the object
3126   # directory.
3127   mkdir sub
3128
3129   am_cv_CC_dependencies_compiler_type=none
3130   if test "$am_compiler_list" = ""; then
3131      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3132   fi
3133   for depmode in $am_compiler_list; do
3134     # Setup a source with many dependencies, because some compilers
3135     # like to wrap large dependency lists on column 80 (with \), and
3136     # we should not choose a depcomp mode which is confused by this.
3137     #
3138     # We need to recreate these files for each test, as the compiler may
3139     # overwrite some of them when testing with obscure command lines.
3140     # This happens at least with the AIX C compiler.
3141     : > sub/conftest.c
3142     for i in 1 2 3 4 5 6; do
3143       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3144       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3145       # Solaris 8's {/usr,}/bin/sh.
3146       touch sub/conftst$i.h
3147     done
3148     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3149
3150     case $depmode in
3151     nosideeffect)
3152       # after this tag, mechanisms are not by side-effect, so they'll
3153       # only be used when explicitly requested
3154       if test "x$enable_dependency_tracking" = xyes; then
3155         continue
3156       else
3157         break
3158       fi
3159       ;;
3160     none) break ;;
3161     esac
3162     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3163     # mode.  It turns out that the SunPro C++ compiler does not properly
3164     # handle `-M -o', and we need to detect this.
3165     if depmode=$depmode \
3166        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3167        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3168        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3169          >/dev/null 2>conftest.err &&
3170        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3171        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3172        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3173       # icc doesn't choke on unknown options, it will just issue warnings
3174       # or remarks (even with -Werror).  So we grep stderr for any message
3175       # that says an option was ignored or not supported.
3176       # When given -MP, icc 7.0 and 7.1 complain thusly:
3177       #   icc: Command line warning: ignoring option '-M'; no argument required
3178       # The diagnosis changed in icc 8.0:
3179       #   icc: Command line remark: option '-MP' not supported
3180       if (grep 'ignoring option' conftest.err ||
3181           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3182         am_cv_CC_dependencies_compiler_type=$depmode
3183         break
3184       fi
3185     fi
3186   done
3187
3188   cd ..
3189   rm -rf conftest.dir
3190 else
3191   am_cv_CC_dependencies_compiler_type=none
3192 fi
3193
3194 fi
3195 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3196 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3197 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3198
3199
3200
3201 if
3202   test "x$enable_dependency_tracking" != xno \
3203   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3204   am__fastdepCC_TRUE=
3205   am__fastdepCC_FALSE='#'
3206 else
3207   am__fastdepCC_TRUE='#'
3208   am__fastdepCC_FALSE=
3209 fi
3210
3211
3212 # Find a good install program.  We prefer a C program (faster),
3213 # so one script is as good as another.  But avoid the broken or
3214 # incompatible versions:
3215 # SysV /etc/install, /usr/sbin/install
3216 # SunOS /usr/etc/install
3217 # IRIX /sbin/install
3218 # AIX /bin/install
3219 # AmigaOS /C/install, which installs bootblocks on floppy discs
3220 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3221 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3222 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3223 # OS/2's system install, which has a completely different semantic
3224 # ./install, which can be erroneously created by make from ./install.sh.
3225 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3226 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3227 if test -z "$INSTALL"; then
3228 if test "${ac_cv_path_install+set}" = set; then
3229   echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234   IFS=$as_save_IFS
3235   test -z "$as_dir" && as_dir=.
3236   # Account for people who put trailing slashes in PATH elements.
3237 case $as_dir/ in
3238   ./ | .// | /cC/* | \
3239   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3240   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3241   /usr/ucb/* ) ;;
3242   *)
3243     # OSF1 and SCO ODT 3.0 have their own names for install.
3244     # Don't use installbsd from OSF since it installs stuff as root
3245     # by default.
3246     for ac_prog in ginstall scoinst install; do
3247       for ac_exec_ext in '' $ac_executable_extensions; do
3248         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3249           if test $ac_prog = install &&
3250             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3251             # AIX install.  It has an incompatible calling convention.
3252             :
3253           elif test $ac_prog = install &&
3254             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3255             # program-specific install script used by HP pwplus--don't use.
3256             :
3257           else
3258             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3259             break 3
3260           fi
3261         fi
3262       done
3263     done
3264     ;;
3265 esac
3266 done
3267
3268
3269 fi
3270   if test "${ac_cv_path_install+set}" = set; then
3271     INSTALL=$ac_cv_path_install
3272   else
3273     # As a last resort, use the slow shell script.  We don't cache a
3274     # path for INSTALL within a source directory, because that will
3275     # break other packages using the cache if that directory is
3276     # removed, or if the path is relative.
3277     INSTALL=$ac_install_sh
3278   fi
3279 fi
3280 echo "$as_me:$LINENO: result: $INSTALL" >&5
3281 echo "${ECHO_T}$INSTALL" >&6
3282
3283 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3284 # It thinks the first close brace ends the variable substitution.
3285 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3286
3287 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3288
3289 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3290
3291 if test -n "$ac_tool_prefix"; then
3292   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3293 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3294 echo "$as_me:$LINENO: checking for $ac_word" >&5
3295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3296 if test "${ac_cv_prog_RANLIB+set}" = set; then
3297   echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299   if test -n "$RANLIB"; then
3300   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3301 else
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3304 do
3305   IFS=$as_save_IFS
3306   test -z "$as_dir" && as_dir=.
3307   for ac_exec_ext in '' $ac_executable_extensions; do
3308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311     break 2
3312   fi
3313 done
3314 done
3315
3316 fi
3317 fi
3318 RANLIB=$ac_cv_prog_RANLIB
3319 if test -n "$RANLIB"; then
3320   echo "$as_me:$LINENO: result: $RANLIB" >&5
3321 echo "${ECHO_T}$RANLIB" >&6
3322 else
3323   echo "$as_me:$LINENO: result: no" >&5
3324 echo "${ECHO_T}no" >&6
3325 fi
3326
3327 fi
3328 if test -z "$ac_cv_prog_RANLIB"; then
3329   ac_ct_RANLIB=$RANLIB
3330   # Extract the first word of "ranlib", so it can be a program name with args.
3331 set dummy ranlib; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3335   echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337   if test -n "$ac_ct_RANLIB"; then
3338   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3342 do
3343   IFS=$as_save_IFS
3344   test -z "$as_dir" && as_dir=.
3345   for ac_exec_ext in '' $ac_executable_extensions; do
3346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347     ac_cv_prog_ac_ct_RANLIB="ranlib"
3348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349     break 2
3350   fi
3351 done
3352 done
3353
3354   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3355 fi
3356 fi
3357 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3358 if test -n "$ac_ct_RANLIB"; then
3359   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3360 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3361 else
3362   echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6
3364 fi
3365
3366   RANLIB=$ac_ct_RANLIB
3367 else
3368   RANLIB="$ac_cv_prog_RANLIB"
3369 fi
3370
3371 # AC_PROG_AWK
3372 # AC_PROG_CPP
3373 # AC_PROG_LN_S
3374
3375 # Check whether --enable-shared or --disable-shared was given.
3376 if test "${enable_shared+set}" = set; then
3377   enableval="$enable_shared"
3378   p=${PACKAGE-default}
3379     case $enableval in
3380     yes) enable_shared=yes ;;
3381     no) enable_shared=no ;;
3382     *)
3383       enable_shared=no
3384       # Look at the argument we got.  We use all the common list separators.
3385       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3386       for pkg in $enableval; do
3387         IFS="$lt_save_ifs"
3388         if test "X$pkg" = "X$p"; then
3389           enable_shared=yes
3390         fi
3391       done
3392       IFS="$lt_save_ifs"
3393       ;;
3394     esac
3395 else
3396   enable_shared=no
3397 fi;
3398
3399
3400 # Check whether --enable-static or --disable-static was given.
3401 if test "${enable_static+set}" = set; then
3402   enableval="$enable_static"
3403   p=${PACKAGE-default}
3404     case $enableval in
3405     yes) enable_static=yes ;;
3406     no) enable_static=no ;;
3407     *)
3408      enable_static=no
3409       # Look at the argument we got.  We use all the common list separators.
3410       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3411       for pkg in $enableval; do
3412         IFS="$lt_save_ifs"
3413         if test "X$pkg" = "X$p"; then
3414           enable_static=yes
3415         fi
3416       done
3417       IFS="$lt_save_ifs"
3418       ;;
3419     esac
3420 else
3421   enable_static=yes
3422 fi;
3423
3424 # Check whether --enable-fast-install or --disable-fast-install was given.
3425 if test "${enable_fast_install+set}" = set; then
3426   enableval="$enable_fast_install"
3427   p=${PACKAGE-default}
3428     case $enableval in
3429     yes) enable_fast_install=yes ;;
3430     no) enable_fast_install=no ;;
3431     *)
3432       enable_fast_install=no
3433       # Look at the argument we got.  We use all the common list separators.
3434       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3435       for pkg in $enableval; do
3436         IFS="$lt_save_ifs"
3437         if test "X$pkg" = "X$p"; then
3438           enable_fast_install=yes
3439         fi
3440       done
3441       IFS="$lt_save_ifs"
3442       ;;
3443     esac
3444 else
3445   enable_fast_install=yes
3446 fi;
3447
3448 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3449 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3450 if test "${lt_cv_path_SED+set}" = set; then
3451   echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453   # Loop through the user's path and test for sed and gsed.
3454 # Then use that list of sed's as ones to test for truncation.
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458   IFS=$as_save_IFS
3459   test -z "$as_dir" && as_dir=.
3460   for lt_ac_prog in sed gsed; do
3461     for ac_exec_ext in '' $ac_executable_extensions; do
3462       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3463         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3464       fi
3465     done
3466   done
3467 done
3468 IFS=$as_save_IFS
3469 lt_ac_max=0
3470 lt_ac_count=0
3471 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3472 # along with /bin/sed that truncates output.
3473 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3474   test ! -f $lt_ac_sed && continue
3475   cat /dev/null > conftest.in
3476   lt_ac_count=0
3477   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3478   # Check for GNU sed and select it if it is found.
3479   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3480     lt_cv_path_SED=$lt_ac_sed
3481     break
3482   fi
3483   while true; do
3484     cat conftest.in conftest.in >conftest.tmp
3485     mv conftest.tmp conftest.in
3486     cp conftest.in conftest.nl
3487     echo >>conftest.nl
3488     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3489     cmp -s conftest.out conftest.nl || break
3490     # 10000 chars as input seems more than enough
3491     test $lt_ac_count -gt 10 && break
3492     lt_ac_count=`expr $lt_ac_count + 1`
3493     if test $lt_ac_count -gt $lt_ac_max; then
3494       lt_ac_max=$lt_ac_count
3495       lt_cv_path_SED=$lt_ac_sed
3496     fi
3497   done
3498 done
3499
3500 fi
3501
3502 SED=$lt_cv_path_SED
3503
3504 echo "$as_me:$LINENO: result: $SED" >&5
3505 echo "${ECHO_T}$SED" >&6
3506
3507 echo "$as_me:$LINENO: checking for egrep" >&5
3508 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3509 if test "${ac_cv_prog_egrep+set}" = set; then
3510   echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3513     then ac_cv_prog_egrep='grep -E'
3514     else ac_cv_prog_egrep='egrep'
3515     fi
3516 fi
3517 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3518 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3519  EGREP=$ac_cv_prog_egrep
3520
3521
3522
3523 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3524 if test "${with_gnu_ld+set}" = set; then
3525   withval="$with_gnu_ld"
3526   test "$withval" = no || with_gnu_ld=yes
3527 else
3528   with_gnu_ld=no
3529 fi;
3530 ac_prog=ld
3531 if test "$GCC" = yes; then
3532   # Check if gcc -print-prog-name=ld gives a path.
3533   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3534 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3535   case $host in
3536   *-*-mingw*)
3537     # gcc leaves a trailing carriage return which upsets mingw
3538     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3539   *)
3540     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3541   esac
3542   case $ac_prog in
3543     # Accept absolute paths.
3544     [\\/]* | ?:[\\/]*)
3545       re_direlt='/[^/][^/]*/\.\./'
3546       # Canonicalize the pathname of ld
3547       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3548       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3549         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3550       done
3551       test -z "$LD" && LD="$ac_prog"
3552       ;;
3553   "")
3554     # If it fails, then pretend we aren't using GCC.
3555     ac_prog=ld
3556     ;;
3557   *)
3558     # If it is relative, then search for the first ld in PATH.
3559     with_gnu_ld=unknown
3560     ;;
3561   esac
3562 elif test "$with_gnu_ld" = yes; then
3563   echo "$as_me:$LINENO: checking for GNU ld" >&5
3564 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3565 else
3566   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3567 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3568 fi
3569 if test "${lt_cv_path_LD+set}" = set; then
3570   echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572   if test -z "$LD"; then
3573   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3574   for ac_dir in $PATH; do
3575     IFS="$lt_save_ifs"
3576     test -z "$ac_dir" && ac_dir=.
3577     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3578       lt_cv_path_LD="$ac_dir/$ac_prog"
3579       # Check to see if the program is GNU ld.  I'd rather use --version,
3580       # but apparently some variants of GNU ld only accept -v.
3581       # Break only if it was the GNU/non-GNU ld that we prefer.
3582       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3583       *GNU* | *'with BFD'*)
3584         test "$with_gnu_ld" != no && break
3585         ;;
3586       *)
3587         test "$with_gnu_ld" != yes && break
3588         ;;
3589       esac
3590     fi
3591   done
3592   IFS="$lt_save_ifs"
3593 else
3594   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3595 fi
3596 fi
3597
3598 LD="$lt_cv_path_LD"
3599 if test -n "$LD"; then
3600   echo "$as_me:$LINENO: result: $LD" >&5
3601 echo "${ECHO_T}$LD" >&6
3602 else
3603   echo "$as_me:$LINENO: result: no" >&5
3604 echo "${ECHO_T}no" >&6
3605 fi
3606 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3607 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3608    { (exit 1); exit 1; }; }
3609 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3610 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3611 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3612   echo $ECHO_N "(cached) $ECHO_C" >&6
3613 else
3614   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3615 case `$LD -v 2>&1 </dev/null` in
3616 *GNU* | *'with BFD'*)
3617   lt_cv_prog_gnu_ld=yes
3618   ;;
3619 *)
3620   lt_cv_prog_gnu_ld=no
3621   ;;
3622 esac
3623 fi
3624 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3625 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3626 with_gnu_ld=$lt_cv_prog_gnu_ld
3627
3628
3629 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3630 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3631 if test "${lt_cv_ld_reload_flag+set}" = set; then
3632   echo $ECHO_N "(cached) $ECHO_C" >&6
3633 else
3634   lt_cv_ld_reload_flag='-r'
3635 fi
3636 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3637 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3638 reload_flag=$lt_cv_ld_reload_flag
3639 case $reload_flag in
3640 "" | " "*) ;;
3641 *) reload_flag=" $reload_flag" ;;
3642 esac
3643 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3644 case $host_os in
3645   darwin*)
3646     if test "$GCC" = yes; then
3647       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3648     else
3649       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3650     fi
3651     ;;
3652 esac
3653
3654 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3655 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3656 if test "${lt_cv_path_NM+set}" = set; then
3657   echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659   if test -n "$NM"; then
3660   # Let the user override the test.
3661   lt_cv_path_NM="$NM"
3662 else
3663   lt_nm_to_check="${ac_tool_prefix}nm"
3664   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3665     lt_nm_to_check="$lt_nm_to_check nm"
3666   fi
3667   for lt_tmp_nm in $lt_nm_to_check; do
3668     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3669     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3670       IFS="$lt_save_ifs"
3671       test -z "$ac_dir" && ac_dir=.
3672       tmp_nm="$ac_dir/$lt_tmp_nm"
3673       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3674         # Check to see if the nm accepts a BSD-compat flag.
3675         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3676         #   nm: unknown option "B" ignored
3677         # Tru64's nm complains that /dev/null is an invalid object file
3678         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3679         */dev/null* | *'Invalid file or object type'*)
3680           lt_cv_path_NM="$tmp_nm -B"
3681           break
3682           ;;
3683         *)
3684           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3685           */dev/null*)
3686             lt_cv_path_NM="$tmp_nm -p"
3687             break
3688             ;;
3689           *)
3690             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3691             continue # so that we can try to find one that supports BSD flags
3692             ;;
3693           esac
3694           ;;
3695         esac
3696       fi
3697     done
3698     IFS="$lt_save_ifs"
3699   done
3700   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3701 fi
3702 fi
3703 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3704 echo "${ECHO_T}$lt_cv_path_NM" >&6
3705 NM="$lt_cv_path_NM"
3706
3707 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3708 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3709 LN_S=$as_ln_s
3710 if test "$LN_S" = "ln -s"; then
3711   echo "$as_me:$LINENO: result: yes" >&5
3712 echo "${ECHO_T}yes" >&6
3713 else
3714   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3715 echo "${ECHO_T}no, using $LN_S" >&6
3716 fi
3717
3718 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3719 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3720 if test "${lt_cv_deplibs_check_method+set}" = set; then
3721   echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723   lt_cv_file_magic_cmd='$MAGIC_CMD'
3724 lt_cv_file_magic_test_file=
3725 lt_cv_deplibs_check_method='unknown'
3726 # Need to set the preceding variable on all platforms that support
3727 # interlibrary dependencies.
3728 # 'none' -- dependencies not supported.
3729 # `unknown' -- same as none, but documents that we really don't know.
3730 # 'pass_all' -- all dependencies passed with no checks.
3731 # 'test_compile' -- check by making test program.
3732 # 'file_magic [[regex]]' -- check by looking for files in library path
3733 # which responds to the $file_magic_cmd with a given extended regex.
3734 # If you have `file' or equivalent on your system and you're not sure
3735 # whether `pass_all' will *always* work, you probably want this one.
3736
3737 case $host_os in
3738 aix4* | aix5*)
3739   lt_cv_deplibs_check_method=pass_all
3740   ;;
3741
3742 beos*)
3743   lt_cv_deplibs_check_method=pass_all
3744   ;;
3745
3746 bsdi[45]*)
3747   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3748   lt_cv_file_magic_cmd='/usr/bin/file -L'
3749   lt_cv_file_magic_test_file=/shlib/libc.so
3750   ;;
3751
3752 cygwin*)
3753   # func_win32_libid is a shell function defined in ltmain.sh
3754   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3755   lt_cv_file_magic_cmd='func_win32_libid'
3756   ;;
3757
3758 mingw* | pw32*)
3759   # Base MSYS/MinGW do not provide the 'file' command needed by
3760   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3761   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3762   lt_cv_file_magic_cmd='$OBJDUMP -f'
3763   ;;
3764
3765 darwin* | rhapsody*)
3766   lt_cv_deplibs_check_method=pass_all
3767   ;;
3768
3769 freebsd* | kfreebsd*-gnu | dragonfly*)
3770   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3771     case $host_cpu in
3772     i*86 )
3773       # Not sure whether the presence of OpenBSD here was a mistake.
3774       # Let's accept both of them until this is cleared up.
3775       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3776       lt_cv_file_magic_cmd=/usr/bin/file
3777       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3778       ;;
3779     esac
3780   else
3781     lt_cv_deplibs_check_method=pass_all
3782   fi
3783   ;;
3784
3785 gnu*)
3786   lt_cv_deplibs_check_method=pass_all
3787   ;;
3788
3789 hpux10.20* | hpux11*)
3790   lt_cv_file_magic_cmd=/usr/bin/file
3791   case $host_cpu in
3792   ia64*)
3793     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3794     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3795     ;;
3796   hppa*64*)
3797     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]'
3798     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3799     ;;
3800   *)
3801     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3802     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3803     ;;
3804   esac
3805   ;;
3806
3807 interix3*)
3808   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3809   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3810   ;;
3811
3812 irix5* | irix6* | nonstopux*)
3813   case $LD in
3814   *-32|*"-32 ") libmagic=32-bit;;
3815   *-n32|*"-n32 ") libmagic=N32;;
3816   *-64|*"-64 ") libmagic=64-bit;;
3817   *) libmagic=never-match;;
3818   esac
3819   lt_cv_deplibs_check_method=pass_all
3820   ;;
3821
3822 # This must be Linux ELF.
3823 linux*)
3824   lt_cv_deplibs_check_method=pass_all
3825   ;;
3826
3827 netbsd*)
3828   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3829     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3830   else
3831     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3832   fi
3833   ;;
3834
3835 newos6*)
3836   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3837   lt_cv_file_magic_cmd=/usr/bin/file
3838   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3839   ;;
3840
3841 nto-qnx*)
3842   lt_cv_deplibs_check_method=unknown
3843   ;;
3844
3845 openbsd*)
3846   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3847     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3848   else
3849     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3850   fi
3851   ;;
3852
3853 osf3* | osf4* | osf5*)
3854   lt_cv_deplibs_check_method=pass_all
3855   ;;
3856
3857 solaris*)
3858   lt_cv_deplibs_check_method=pass_all
3859   ;;
3860
3861 sysv4 | sysv4.3*)
3862   case $host_vendor in
3863   motorola)
3864     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]'
3865     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3866     ;;
3867   ncr)
3868     lt_cv_deplibs_check_method=pass_all
3869     ;;
3870   sequent)
3871     lt_cv_file_magic_cmd='/bin/file'
3872     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3873     ;;
3874   sni)
3875     lt_cv_file_magic_cmd='/bin/file'
3876     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3877     lt_cv_file_magic_test_file=/lib/libc.so
3878     ;;
3879   siemens)
3880     lt_cv_deplibs_check_method=pass_all
3881     ;;
3882   pc)
3883     lt_cv_deplibs_check_method=pass_all
3884     ;;
3885   esac
3886   ;;
3887
3888 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3889   lt_cv_deplibs_check_method=pass_all
3890   ;;
3891 esac
3892
3893 fi
3894 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3895 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3896 file_magic_cmd=$lt_cv_file_magic_cmd
3897 deplibs_check_method=$lt_cv_deplibs_check_method
3898 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3899
3900
3901
3902
3903 # If no C compiler was specified, use CC.
3904 LTCC=${LTCC-"$CC"}
3905
3906 # If no C compiler flags were specified, use CFLAGS.
3907 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3908
3909 # Allow CC to be a program name with arguments.
3910 compiler=$CC
3911
3912
3913 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3914 if test "${enable_libtool_lock+set}" = set; then
3915   enableval="$enable_libtool_lock"
3916
3917 fi;
3918 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3919
3920 # Some flags need to be propagated to the compiler or linker for good
3921 # libtool support.
3922 case $host in
3923 ia64-*-hpux*)
3924   # Find out which ABI we are using.
3925   echo 'int i;' > conftest.$ac_ext
3926   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3927   (eval $ac_compile) 2>&5
3928   ac_status=$?
3929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930   (exit $ac_status); }; then
3931     case `/usr/bin/file conftest.$ac_objext` in
3932     *ELF-32*)
3933       HPUX_IA64_MODE="32"
3934       ;;
3935     *ELF-64*)
3936       HPUX_IA64_MODE="64"
3937       ;;
3938     esac
3939   fi
3940   rm -rf conftest*
3941   ;;
3942 *-*-irix6*)
3943   # Find out which ABI we are using.
3944   echo '#line 3944 "configure"' > conftest.$ac_ext
3945   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3946   (eval $ac_compile) 2>&5
3947   ac_status=$?
3948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); }; then
3950    if test "$lt_cv_prog_gnu_ld" = yes; then
3951     case `/usr/bin/file conftest.$ac_objext` in
3952     *32-bit*)
3953       LD="${LD-ld} -melf32bsmip"
3954       ;;
3955     *N32*)
3956       LD="${LD-ld} -melf32bmipn32"
3957       ;;
3958     *64-bit*)
3959       LD="${LD-ld} -melf64bmip"
3960       ;;
3961     esac
3962    else
3963     case `/usr/bin/file conftest.$ac_objext` in
3964     *32-bit*)
3965       LD="${LD-ld} -32"
3966       ;;
3967     *N32*)
3968       LD="${LD-ld} -n32"
3969       ;;
3970     *64-bit*)
3971       LD="${LD-ld} -64"
3972       ;;
3973     esac
3974    fi
3975   fi
3976   rm -rf conftest*
3977   ;;
3978
3979 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3980   # Find out which ABI we are using.
3981   echo 'int i;' > conftest.$ac_ext
3982   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983   (eval $ac_compile) 2>&5
3984   ac_status=$?
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); }; then
3987     case `/usr/bin/file conftest.o` in
3988     *32-bit*)
3989       case $host in
3990         x86_64-*linux*)
3991           LD="${LD-ld} -m elf_i386"
3992           ;;
3993         ppc64-*linux*|powerpc64-*linux*)
3994           LD="${LD-ld} -m elf32ppclinux"
3995           ;;
3996         s390x-*linux*)
3997           LD="${LD-ld} -m elf_s390"
3998           ;;
3999         sparc64-*linux*)
4000           LD="${LD-ld} -m elf32_sparc"
4001           ;;
4002       esac
4003       ;;
4004     *64-bit*)
4005       case $host in
4006         x86_64-*linux*)
4007           LD="${LD-ld} -m elf_x86_64"
4008           ;;
4009         ppc*-*linux*|powerpc*-*linux*)
4010           LD="${LD-ld} -m elf64ppc"
4011           ;;
4012         s390*-*linux*)
4013           LD="${LD-ld} -m elf64_s390"
4014           ;;
4015         sparc*-*linux*)
4016           LD="${LD-ld} -m elf64_sparc"
4017           ;;
4018       esac
4019       ;;
4020     esac
4021   fi
4022   rm -rf conftest*
4023   ;;
4024
4025 *-*-sco3.2v5*)
4026   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4027   SAVE_CFLAGS="$CFLAGS"
4028   CFLAGS="$CFLAGS -belf"
4029   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4030 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4031 if test "${lt_cv_cc_needs_belf+set}" = set; then
4032   echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034   ac_ext=c
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039
4040      cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h.  */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h.  */
4046
4047 int
4048 main ()
4049 {
4050
4051   ;
4052   return 0;
4053 }
4054 _ACEOF
4055 rm -f conftest.$ac_objext conftest$ac_exeext
4056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4057   (eval $ac_link) 2>conftest.er1
4058   ac_status=$?
4059   grep -v '^ *+' conftest.er1 >conftest.err
4060   rm -f conftest.er1
4061   cat conftest.err >&5
4062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063   (exit $ac_status); } &&
4064          { ac_try='test -z "$ac_c_werror_flag"
4065                          || test ! -s conftest.err'
4066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067   (eval $ac_try) 2>&5
4068   ac_status=$?
4069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070   (exit $ac_status); }; } &&
4071          { ac_try='test -s conftest$ac_exeext'
4072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073   (eval $ac_try) 2>&5
4074   ac_status=$?
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); }; }; then
4077   lt_cv_cc_needs_belf=yes
4078 else
4079   echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4081
4082 lt_cv_cc_needs_belf=no
4083 fi
4084 rm -f conftest.err conftest.$ac_objext \
4085       conftest$ac_exeext conftest.$ac_ext
4086      ac_ext=c
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091
4092 fi
4093 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4094 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4095   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4096     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4097     CFLAGS="$SAVE_CFLAGS"
4098   fi
4099   ;;
4100 sparc*-*solaris*)
4101   # Find out which ABI we are using.
4102   echo 'int i;' > conftest.$ac_ext
4103   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104   (eval $ac_compile) 2>&5
4105   ac_status=$?
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); }; then
4108     case `/usr/bin/file conftest.o` in
4109     *64-bit*)
4110       case $lt_cv_prog_gnu_ld in
4111       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4112       *)    LD="${LD-ld} -64" ;;
4113       esac
4114       ;;
4115     esac
4116   fi
4117   rm -rf conftest*
4118   ;;
4119
4120
4121 esac
4122
4123 need_locks="$enable_libtool_lock"
4124
4125
4126 ac_ext=c
4127 ac_cpp='$CPP $CPPFLAGS'
4128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4132 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4133 # On Suns, sometimes $CPP names a directory.
4134 if test -n "$CPP" && test -d "$CPP"; then
4135   CPP=
4136 fi
4137 if test -z "$CPP"; then
4138   if test "${ac_cv_prog_CPP+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141       # Double quotes because CPP needs to be expanded
4142     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4143     do
4144       ac_preproc_ok=false
4145 for ac_c_preproc_warn_flag in '' yes
4146 do
4147   # Use a header file that comes with gcc, so configuring glibc
4148   # with a fresh cross-compiler works.
4149   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4150   # <limits.h> exists even on freestanding compilers.
4151   # On the NeXT, cc -E runs the code through the compiler's parser,
4152   # not just through cpp. "Syntax error" is here to catch this case.
4153   cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h.  */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h.  */
4159 #ifdef __STDC__
4160 # include <limits.h>
4161 #else
4162 # include <assert.h>
4163 #endif
4164                      Syntax error
4165 _ACEOF
4166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4167   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4168   ac_status=$?
4169   grep -v '^ *+' conftest.er1 >conftest.err
4170   rm -f conftest.er1
4171   cat conftest.err >&5
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); } >/dev/null; then
4174   if test -s conftest.err; then
4175     ac_cpp_err=$ac_c_preproc_warn_flag
4176     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4177   else
4178     ac_cpp_err=
4179   fi
4180 else
4181   ac_cpp_err=yes
4182 fi
4183 if test -z "$ac_cpp_err"; then
4184   :
4185 else
4186   echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4188
4189   # Broken: fails on valid input.
4190 continue
4191 fi
4192 rm -f conftest.err conftest.$ac_ext
4193
4194   # OK, works on sane cases.  Now check whether non-existent headers
4195   # can be detected and how.
4196   cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h.  */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h.  */
4202 #include <ac_nonexistent.h>
4203 _ACEOF
4204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4205   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4206   ac_status=$?
4207   grep -v '^ *+' conftest.er1 >conftest.err
4208   rm -f conftest.er1
4209   cat conftest.err >&5
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); } >/dev/null; then
4212   if test -s conftest.err; then
4213     ac_cpp_err=$ac_c_preproc_warn_flag
4214     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4215   else
4216     ac_cpp_err=
4217   fi
4218 else
4219   ac_cpp_err=yes
4220 fi
4221 if test -z "$ac_cpp_err"; then
4222   # Broken: success on invalid input.
4223 continue
4224 else
4225   echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228   # Passes both tests.
4229 ac_preproc_ok=:
4230 break
4231 fi
4232 rm -f conftest.err conftest.$ac_ext
4233
4234 done
4235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4236 rm -f conftest.err conftest.$ac_ext
4237 if $ac_preproc_ok; then
4238   break
4239 fi
4240
4241     done
4242     ac_cv_prog_CPP=$CPP
4243
4244 fi
4245   CPP=$ac_cv_prog_CPP
4246 else
4247   ac_cv_prog_CPP=$CPP
4248 fi
4249 echo "$as_me:$LINENO: result: $CPP" >&5
4250 echo "${ECHO_T}$CPP" >&6
4251 ac_preproc_ok=false
4252 for ac_c_preproc_warn_flag in '' yes
4253 do
4254   # Use a header file that comes with gcc, so configuring glibc
4255   # with a fresh cross-compiler works.
4256   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4257   # <limits.h> exists even on freestanding compilers.
4258   # On the NeXT, cc -E runs the code through the compiler's parser,
4259   # not just through cpp. "Syntax error" is here to catch this case.
4260   cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h.  */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h.  */
4266 #ifdef __STDC__
4267 # include <limits.h>
4268 #else
4269 # include <assert.h>
4270 #endif
4271                      Syntax error
4272 _ACEOF
4273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4274   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4275   ac_status=$?
4276   grep -v '^ *+' conftest.er1 >conftest.err
4277   rm -f conftest.er1
4278   cat conftest.err >&5
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); } >/dev/null; then
4281   if test -s conftest.err; then
4282     ac_cpp_err=$ac_c_preproc_warn_flag
4283     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4284   else
4285     ac_cpp_err=
4286   fi
4287 else
4288   ac_cpp_err=yes
4289 fi
4290 if test -z "$ac_cpp_err"; then
4291   :
4292 else
4293   echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4295
4296   # Broken: fails on valid input.
4297 continue
4298 fi
4299 rm -f conftest.err conftest.$ac_ext
4300
4301   # OK, works on sane cases.  Now check whether non-existent headers
4302   # can be detected and how.
4303   cat >conftest.$ac_ext <<_ACEOF
4304 /* confdefs.h.  */
4305 _ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h.  */
4309 #include <ac_nonexistent.h>
4310 _ACEOF
4311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4313   ac_status=$?
4314   grep -v '^ *+' conftest.er1 >conftest.err
4315   rm -f conftest.er1
4316   cat conftest.err >&5
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); } >/dev/null; then
4319   if test -s conftest.err; then
4320     ac_cpp_err=$ac_c_preproc_warn_flag
4321     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4322   else
4323     ac_cpp_err=
4324   fi
4325 else
4326   ac_cpp_err=yes
4327 fi
4328 if test -z "$ac_cpp_err"; then
4329   # Broken: success on invalid input.
4330 continue
4331 else
4332   echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4334
4335   # Passes both tests.
4336 ac_preproc_ok=:
4337 break
4338 fi
4339 rm -f conftest.err conftest.$ac_ext
4340
4341 done
4342 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4343 rm -f conftest.err conftest.$ac_ext
4344 if $ac_preproc_ok; then
4345   :
4346 else
4347   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4348 See \`config.log' for more details." >&5
4349 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4350 See \`config.log' for more details." >&2;}
4351    { (exit 1); exit 1; }; }
4352 fi
4353
4354 ac_ext=c
4355 ac_cpp='$CPP $CPPFLAGS'
4356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4359
4360
4361 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4362 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4363 if test "${ac_cv_header_stdc+set}" = set; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366   cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h.  */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h.  */
4372 #include <stdlib.h>
4373 #include <stdarg.h>
4374 #include <string.h>
4375 #include <float.h>
4376
4377 int
4378 main ()
4379 {
4380
4381   ;
4382   return 0;
4383 }
4384 _ACEOF
4385 rm -f conftest.$ac_objext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387   (eval $ac_compile) 2>conftest.er1
4388   ac_status=$?
4389   grep -v '^ *+' conftest.er1 >conftest.err
4390   rm -f conftest.er1
4391   cat conftest.err >&5
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); } &&
4394          { ac_try='test -z "$ac_c_werror_flag"
4395                          || test ! -s conftest.err'
4396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397   (eval $ac_try) 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); }; } &&
4401          { ac_try='test -s conftest.$ac_objext'
4402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403   (eval $ac_try) 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; }; then
4407   ac_cv_header_stdc=yes
4408 else
4409   echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4411
4412 ac_cv_header_stdc=no
4413 fi
4414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4415
4416 if test $ac_cv_header_stdc = yes; then
4417   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4418   cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h.  */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h.  */
4424 #include <string.h>
4425
4426 _ACEOF
4427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4428   $EGREP "memchr" >/dev/null 2>&1; then
4429   :
4430 else
4431   ac_cv_header_stdc=no
4432 fi
4433 rm -f conftest*
4434
4435 fi
4436
4437 if test $ac_cv_header_stdc = yes; then
4438   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4439   cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h.  */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h.  */
4445 #include <stdlib.h>
4446
4447 _ACEOF
4448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4449   $EGREP "free" >/dev/null 2>&1; then
4450   :
4451 else
4452   ac_cv_header_stdc=no
4453 fi
4454 rm -f conftest*
4455
4456 fi
4457
4458 if test $ac_cv_header_stdc = yes; then
4459   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4460   if test "$cross_compiling" = yes; then
4461   :
4462 else
4463   cat >conftest.$ac_ext <<_ACEOF
4464 /* confdefs.h.  */
4465 _ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h.  */
4469 #include <ctype.h>
4470 #if ((' ' & 0x0FF) == 0x020)
4471 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4472 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4473 #else
4474 # define ISLOWER(c) \
4475                    (('a' <= (c) && (c) <= 'i') \
4476                      || ('j' <= (c) && (c) <= 'r') \
4477                      || ('s' <= (c) && (c) <= 'z'))
4478 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4479 #endif
4480
4481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4482 int
4483 main ()
4484 {
4485   int i;
4486   for (i = 0; i < 256; i++)
4487     if (XOR (islower (i), ISLOWER (i))
4488         || toupper (i) != TOUPPER (i))
4489       exit(2);
4490   exit (0);
4491 }
4492 _ACEOF
4493 rm -f conftest$ac_exeext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4495   (eval $ac_link) 2>&5
4496   ac_status=$?
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500   (eval $ac_try) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; }; then
4504   :
4505 else
4506   echo "$as_me: program exited with status $ac_status" >&5
4507 echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4509
4510 ( exit $ac_status )
4511 ac_cv_header_stdc=no
4512 fi
4513 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4514 fi
4515 fi
4516 fi
4517 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4518 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4519 if test $ac_cv_header_stdc = yes; then
4520
4521 cat >>confdefs.h <<\_ACEOF
4522 #define STDC_HEADERS 1
4523 _ACEOF
4524
4525 fi
4526
4527 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4538                   inttypes.h stdint.h unistd.h
4539 do
4540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4541 echo "$as_me:$LINENO: checking for $ac_header" >&5
4542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4544   echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546   cat >conftest.$ac_ext <<_ACEOF
4547 /* confdefs.h.  */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h.  */
4552 $ac_includes_default
4553
4554 #include <$ac_header>
4555 _ACEOF
4556 rm -f conftest.$ac_objext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558   (eval $ac_compile) 2>conftest.er1
4559   ac_status=$?
4560   grep -v '^ *+' conftest.er1 >conftest.err
4561   rm -f conftest.er1
4562   cat conftest.err >&5
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); } &&
4565          { ac_try='test -z "$ac_c_werror_flag"
4566                          || test ! -s conftest.err'
4567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568   (eval $ac_try) 2>&5
4569   ac_status=$?
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); }; } &&
4572          { ac_try='test -s conftest.$ac_objext'
4573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574   (eval $ac_try) 2>&5
4575   ac_status=$?
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); }; }; then
4578   eval "$as_ac_Header=yes"
4579 else
4580   echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4582
4583 eval "$as_ac_Header=no"
4584 fi
4585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4586 fi
4587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4590   cat >>confdefs.h <<_ACEOF
4591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4592 _ACEOF
4593
4594 fi
4595
4596 done
4597
4598
4599
4600 for ac_header in dlfcn.h
4601 do
4602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4604   echo "$as_me:$LINENO: checking for $ac_header" >&5
4605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4607   echo $ECHO_N "(cached) $ECHO_C" >&6
4608 fi
4609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4611 else
4612   # Is the header compilable?
4613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4615 cat >conftest.$ac_ext <<_ACEOF
4616 /* confdefs.h.  */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h.  */
4621 $ac_includes_default
4622 #include <$ac_header>
4623 _ACEOF
4624 rm -f conftest.$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626   (eval $ac_compile) 2>conftest.er1
4627   ac_status=$?
4628   grep -v '^ *+' conftest.er1 >conftest.err
4629   rm -f conftest.er1
4630   cat conftest.err >&5
4631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632   (exit $ac_status); } &&
4633          { ac_try='test -z "$ac_c_werror_flag"
4634                          || test ! -s conftest.err'
4635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636   (eval $ac_try) 2>&5
4637   ac_status=$?
4638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639   (exit $ac_status); }; } &&
4640          { ac_try='test -s conftest.$ac_objext'
4641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642   (eval $ac_try) 2>&5
4643   ac_status=$?
4644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645   (exit $ac_status); }; }; then
4646   ac_header_compiler=yes
4647 else
4648   echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4650
4651 ac_header_compiler=no
4652 fi
4653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4655 echo "${ECHO_T}$ac_header_compiler" >&6
4656
4657 # Is the header present?
4658 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4660 cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h.  */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h.  */
4666 #include <$ac_header>
4667 _ACEOF
4668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4669   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4670   ac_status=$?
4671   grep -v '^ *+' conftest.er1 >conftest.err
4672   rm -f conftest.er1
4673   cat conftest.err >&5
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); } >/dev/null; then
4676   if test -s conftest.err; then
4677     ac_cpp_err=$ac_c_preproc_warn_flag
4678     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4679   else
4680     ac_cpp_err=
4681   fi
4682 else
4683   ac_cpp_err=yes
4684 fi
4685 if test -z "$ac_cpp_err"; then
4686   ac_header_preproc=yes
4687 else
4688   echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4690
4691   ac_header_preproc=no
4692 fi
4693 rm -f conftest.err conftest.$ac_ext
4694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4695 echo "${ECHO_T}$ac_header_preproc" >&6
4696
4697 # So?  What about this header?
4698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4699   yes:no: )
4700     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4702     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4704     ac_header_preproc=yes
4705     ;;
4706   no:yes:* )
4707     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4709     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4710 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4711     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4713     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4714 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4717     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4719     (
4720       cat <<\_ASBOX
4721 ## --------------------------------- ##
4722 ## Report this to the jasper lists.  ##
4723 ## --------------------------------- ##
4724 _ASBOX
4725     ) |
4726       sed "s/^/$as_me: WARNING:     /" >&2
4727     ;;
4728 esac
4729 echo "$as_me:$LINENO: checking for $ac_header" >&5
4730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4732   echo $ECHO_N "(cached) $ECHO_C" >&6
4733 else
4734   eval "$as_ac_Header=\$ac_header_preproc"
4735 fi
4736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4738
4739 fi
4740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4741   cat >>confdefs.h <<_ACEOF
4742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4743 _ACEOF
4744
4745 fi
4746
4747 done
4748
4749 ac_ext=cc
4750 ac_cpp='$CXXCPP $CPPFLAGS'
4751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4754 if test -n "$ac_tool_prefix"; then
4755   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
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_CXX+set}" = set; then
4762   echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764   if test -n "$CXX"; then
4765   ac_cv_prog_CXX="$CXX" # 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_CXX="$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 CXX=$ac_cv_prog_CXX
4784 if test -n "$CXX"; then
4785   echo "$as_me:$LINENO: result: $CXX" >&5
4786 echo "${ECHO_T}$CXX" >&6
4787 else
4788   echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6
4790 fi
4791
4792     test -n "$CXX" && break
4793   done
4794 fi
4795 if test -z "$CXX"; then
4796   ac_ct_CXX=$CXX
4797   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
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_CXX+set}" = set; then
4804   echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806   if test -n "$ac_ct_CXX"; then
4807   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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_CXX="$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_CXX=$ac_cv_prog_ac_ct_CXX
4826 if test -n "$ac_ct_CXX"; then
4827   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4828 echo "${ECHO_T}$ac_ct_CXX" >&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_CXX" && break
4835 done
4836 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4837
4838   CXX=$ac_ct_CXX
4839 fi
4840
4841
4842 # Provide some information about the compiler.
4843 echo "$as_me:$LINENO:" \
4844      "checking for C++ compiler version" >&5
4845 ac_compiler=`set X $ac_compile; echo $2`
4846 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4847   (eval $ac_compiler --version </dev/null >&5) 2>&5
4848   ac_status=$?
4849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850   (exit $ac_status); }
4851 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4852   (eval $ac_compiler -v </dev/null >&5) 2>&5
4853   ac_status=$?
4854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855   (exit $ac_status); }
4856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4857   (eval $ac_compiler -V </dev/null >&5) 2>&5
4858   ac_status=$?
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); }
4861
4862 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4863 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4864 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h.  */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h.  */
4873
4874 int
4875 main ()
4876 {
4877 #ifndef __GNUC__
4878        choke me
4879 #endif
4880
4881   ;
4882   return 0;
4883 }
4884 _ACEOF
4885 rm -f conftest.$ac_objext
4886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4887   (eval $ac_compile) 2>conftest.er1
4888   ac_status=$?
4889   grep -v '^ *+' conftest.er1 >conftest.err
4890   rm -f conftest.er1
4891   cat conftest.err >&5
4892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); } &&
4894          { ac_try='test -z "$ac_cxx_werror_flag"
4895                          || test ! -s conftest.err'
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); }; } &&
4901          { ac_try='test -s conftest.$ac_objext'
4902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903   (eval $ac_try) 2>&5
4904   ac_status=$?
4905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906   (exit $ac_status); }; }; then
4907   ac_compiler_gnu=yes
4908 else
4909   echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4911
4912 ac_compiler_gnu=no
4913 fi
4914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4915 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4916
4917 fi
4918 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4919 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4920 GXX=`test $ac_compiler_gnu = yes && echo yes`
4921 ac_test_CXXFLAGS=${CXXFLAGS+set}
4922 ac_save_CXXFLAGS=$CXXFLAGS
4923 CXXFLAGS="-g"
4924 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4925 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4926 if test "${ac_cv_prog_cxx_g+set}" = set; then
4927   echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929   cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h.  */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h.  */
4935
4936 int
4937 main ()
4938 {
4939
4940   ;
4941   return 0;
4942 }
4943 _ACEOF
4944 rm -f conftest.$ac_objext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4946   (eval $ac_compile) 2>conftest.er1
4947   ac_status=$?
4948   grep -v '^ *+' conftest.er1 >conftest.err
4949   rm -f conftest.er1
4950   cat conftest.err >&5
4951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952   (exit $ac_status); } &&
4953          { ac_try='test -z "$ac_cxx_werror_flag"
4954                          || test ! -s conftest.err'
4955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956   (eval $ac_try) 2>&5
4957   ac_status=$?
4958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959   (exit $ac_status); }; } &&
4960          { ac_try='test -s conftest.$ac_objext'
4961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962   (eval $ac_try) 2>&5
4963   ac_status=$?
4964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965   (exit $ac_status); }; }; then
4966   ac_cv_prog_cxx_g=yes
4967 else
4968   echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4970
4971 ac_cv_prog_cxx_g=no
4972 fi
4973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4974 fi
4975 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4976 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4977 if test "$ac_test_CXXFLAGS" = set; then
4978   CXXFLAGS=$ac_save_CXXFLAGS
4979 elif test $ac_cv_prog_cxx_g = yes; then
4980   if test "$GXX" = yes; then
4981     CXXFLAGS="-g -O2"
4982   else
4983     CXXFLAGS="-g"
4984   fi
4985 else
4986   if test "$GXX" = yes; then
4987     CXXFLAGS="-O2"
4988   else
4989     CXXFLAGS=
4990   fi
4991 fi
4992 for ac_declaration in \
4993    '' \
4994    'extern "C" void std::exit (int) throw (); using std::exit;' \
4995    'extern "C" void std::exit (int); using std::exit;' \
4996    'extern "C" void exit (int) throw ();' \
4997    'extern "C" void exit (int);' \
4998    'void exit (int);'
4999 do
5000   cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h.  */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h.  */
5006 $ac_declaration
5007 #include <stdlib.h>
5008 int
5009 main ()
5010 {
5011 exit (42);
5012   ;
5013   return 0;
5014 }
5015 _ACEOF
5016 rm -f conftest.$ac_objext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018   (eval $ac_compile) 2>conftest.er1
5019   ac_status=$?
5020   grep -v '^ *+' conftest.er1 >conftest.err
5021   rm -f conftest.er1
5022   cat conftest.err >&5
5023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024   (exit $ac_status); } &&
5025          { ac_try='test -z "$ac_cxx_werror_flag"
5026                          || test ! -s conftest.err'
5027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028   (eval $ac_try) 2>&5
5029   ac_status=$?
5030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); }; } &&
5032          { ac_try='test -s conftest.$ac_objext'
5033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034   (eval $ac_try) 2>&5
5035   ac_status=$?
5036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037   (exit $ac_status); }; }; then
5038   :
5039 else
5040   echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5042
5043 continue
5044 fi
5045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5046   cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h.  */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h.  */
5052 $ac_declaration
5053 int
5054 main ()
5055 {
5056 exit (42);
5057   ;
5058   return 0;
5059 }
5060 _ACEOF
5061 rm -f conftest.$ac_objext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063   (eval $ac_compile) 2>conftest.er1
5064   ac_status=$?
5065   grep -v '^ *+' conftest.er1 >conftest.err
5066   rm -f conftest.er1
5067   cat conftest.err >&5
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); } &&
5070          { ac_try='test -z "$ac_cxx_werror_flag"
5071                          || test ! -s conftest.err'
5072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073   (eval $ac_try) 2>&5
5074   ac_status=$?
5075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076   (exit $ac_status); }; } &&
5077          { ac_try='test -s conftest.$ac_objext'
5078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079   (eval $ac_try) 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); }; }; then
5083   break
5084 else
5085   echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5087
5088 fi
5089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5090 done
5091 rm -f conftest*
5092 if test -n "$ac_declaration"; then
5093   echo '#ifdef __cplusplus' >>confdefs.h
5094   echo $ac_declaration      >>confdefs.h
5095   echo '#endif'             >>confdefs.h
5096 fi
5097
5098 ac_ext=cc
5099 ac_cpp='$CXXCPP $CPPFLAGS'
5100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5103
5104 depcc="$CXX"  am_compiler_list=
5105
5106 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5107 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5108 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5109   echo $ECHO_N "(cached) $ECHO_C" >&6
5110 else
5111   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5112   # We make a subdir and do the tests there.  Otherwise we can end up
5113   # making bogus files that we don't know about and never remove.  For
5114   # instance it was reported that on HP-UX the gcc test will end up
5115   # making a dummy file named `D' -- because `-MD' means `put the output
5116   # in D'.
5117   mkdir conftest.dir
5118   # Copy depcomp to subdir because otherwise we won't find it if we're
5119   # using a relative directory.
5120   cp "$am_depcomp" conftest.dir
5121   cd conftest.dir
5122   # We will build objects and dependencies in a subdirectory because
5123   # it helps to detect inapplicable dependency modes.  For instance
5124   # both Tru64's cc and ICC support -MD to output dependencies as a
5125   # side effect of compilation, but ICC will put the dependencies in
5126   # the current directory while Tru64 will put them in the object
5127   # directory.
5128   mkdir sub
5129
5130   am_cv_CXX_dependencies_compiler_type=none
5131   if test "$am_compiler_list" = ""; then
5132      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5133   fi
5134   for depmode in $am_compiler_list; do
5135     # Setup a source with many dependencies, because some compilers
5136     # like to wrap large dependency lists on column 80 (with \), and
5137     # we should not choose a depcomp mode which is confused by this.
5138     #
5139     # We need to recreate these files for each test, as the compiler may
5140     # overwrite some of them when testing with obscure command lines.
5141     # This happens at least with the AIX C compiler.
5142     : > sub/conftest.c
5143     for i in 1 2 3 4 5 6; do
5144       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5145       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5146       # Solaris 8's {/usr,}/bin/sh.
5147       touch sub/conftst$i.h
5148     done
5149     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5150
5151     case $depmode in
5152     nosideeffect)
5153       # after this tag, mechanisms are not by side-effect, so they'll
5154       # only be used when explicitly requested
5155       if test "x$enable_dependency_tracking" = xyes; then
5156         continue
5157       else
5158         break
5159       fi
5160       ;;
5161     none) break ;;
5162     esac
5163     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5164     # mode.  It turns out that the SunPro C++ compiler does not properly
5165     # handle `-M -o', and we need to detect this.
5166     if depmode=$depmode \
5167        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5168        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5169        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5170          >/dev/null 2>conftest.err &&
5171        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5172        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5173        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5174       # icc doesn't choke on unknown options, it will just issue warnings
5175       # or remarks (even with -Werror).  So we grep stderr for any message
5176       # that says an option was ignored or not supported.
5177       # When given -MP, icc 7.0 and 7.1 complain thusly:
5178       #   icc: Command line warning: ignoring option '-M'; no argument required
5179       # The diagnosis changed in icc 8.0:
5180       #   icc: Command line remark: option '-MP' not supported
5181       if (grep 'ignoring option' conftest.err ||
5182           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5183         am_cv_CXX_dependencies_compiler_type=$depmode
5184         break
5185       fi
5186     fi
5187   done
5188
5189   cd ..
5190   rm -rf conftest.dir
5191 else
5192   am_cv_CXX_dependencies_compiler_type=none
5193 fi
5194
5195 fi
5196 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5197 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5198 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5199
5200
5201
5202 if
5203   test "x$enable_dependency_tracking" != xno \
5204   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5205   am__fastdepCXX_TRUE=
5206   am__fastdepCXX_FALSE='#'
5207 else
5208   am__fastdepCXX_TRUE='#'
5209   am__fastdepCXX_FALSE=
5210 fi
5211
5212
5213
5214
5215 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5216     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5217     (test "X$CXX" != "Xg++"))) ; then
5218   ac_ext=cc
5219 ac_cpp='$CXXCPP $CPPFLAGS'
5220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5223 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5224 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5225 if test -z "$CXXCPP"; then
5226   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5227   echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229       # Double quotes because CXXCPP needs to be expanded
5230     for CXXCPP in "$CXX -E" "/lib/cpp"
5231     do
5232       ac_preproc_ok=false
5233 for ac_cxx_preproc_warn_flag in '' yes
5234 do
5235   # Use a header file that comes with gcc, so configuring glibc
5236   # with a fresh cross-compiler works.
5237   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5238   # <limits.h> exists even on freestanding compilers.
5239   # On the NeXT, cc -E runs the code through the compiler's parser,
5240   # not just through cpp. "Syntax error" is here to catch this case.
5241   cat >conftest.$ac_ext <<_ACEOF
5242 /* confdefs.h.  */
5243 _ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h.  */
5247 #ifdef __STDC__
5248 # include <limits.h>
5249 #else
5250 # include <assert.h>
5251 #endif
5252                      Syntax error
5253 _ACEOF
5254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5256   ac_status=$?
5257   grep -v '^ *+' conftest.er1 >conftest.err
5258   rm -f conftest.er1
5259   cat conftest.err >&5
5260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); } >/dev/null; then
5262   if test -s conftest.err; then
5263     ac_cpp_err=$ac_cxx_preproc_warn_flag
5264     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5265   else
5266     ac_cpp_err=
5267   fi
5268 else
5269   ac_cpp_err=yes
5270 fi
5271 if test -z "$ac_cpp_err"; then
5272   :
5273 else
5274   echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5276
5277   # Broken: fails on valid input.
5278 continue
5279 fi
5280 rm -f conftest.err conftest.$ac_ext
5281
5282   # OK, works on sane cases.  Now check whether non-existent headers
5283   # can be detected and how.
5284   cat >conftest.$ac_ext <<_ACEOF
5285 /* confdefs.h.  */
5286 _ACEOF
5287 cat confdefs.h >>conftest.$ac_ext
5288 cat >>conftest.$ac_ext <<_ACEOF
5289 /* end confdefs.h.  */
5290 #include <ac_nonexistent.h>
5291 _ACEOF
5292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5293   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5294   ac_status=$?
5295   grep -v '^ *+' conftest.er1 >conftest.err
5296   rm -f conftest.er1
5297   cat conftest.err >&5
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); } >/dev/null; then
5300   if test -s conftest.err; then
5301     ac_cpp_err=$ac_cxx_preproc_warn_flag
5302     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5303   else
5304     ac_cpp_err=
5305   fi
5306 else
5307   ac_cpp_err=yes
5308 fi
5309 if test -z "$ac_cpp_err"; then
5310   # Broken: success on invalid input.
5311 continue
5312 else
5313   echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5315
5316   # Passes both tests.
5317 ac_preproc_ok=:
5318 break
5319 fi
5320 rm -f conftest.err conftest.$ac_ext
5321
5322 done
5323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5324 rm -f conftest.err conftest.$ac_ext
5325 if $ac_preproc_ok; then
5326   break
5327 fi
5328
5329     done
5330     ac_cv_prog_CXXCPP=$CXXCPP
5331
5332 fi
5333   CXXCPP=$ac_cv_prog_CXXCPP
5334 else
5335   ac_cv_prog_CXXCPP=$CXXCPP
5336 fi
5337 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5338 echo "${ECHO_T}$CXXCPP" >&6
5339 ac_preproc_ok=false
5340 for ac_cxx_preproc_warn_flag in '' yes
5341 do
5342   # Use a header file that comes with gcc, so configuring glibc
5343   # with a fresh cross-compiler works.
5344   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5345   # <limits.h> exists even on freestanding compilers.
5346   # On the NeXT, cc -E runs the code through the compiler's parser,
5347   # not just through cpp. "Syntax error" is here to catch this case.
5348   cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5354 #ifdef __STDC__
5355 # include <limits.h>
5356 #else
5357 # include <assert.h>
5358 #endif
5359                      Syntax error
5360 _ACEOF
5361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5362   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5363   ac_status=$?
5364   grep -v '^ *+' conftest.er1 >conftest.err
5365   rm -f conftest.er1
5366   cat conftest.err >&5
5367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368   (exit $ac_status); } >/dev/null; then
5369   if test -s conftest.err; then
5370     ac_cpp_err=$ac_cxx_preproc_warn_flag
5371     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5372   else
5373     ac_cpp_err=
5374   fi
5375 else
5376   ac_cpp_err=yes
5377 fi
5378 if test -z "$ac_cpp_err"; then
5379   :
5380 else
5381   echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5383
5384   # Broken: fails on valid input.
5385 continue
5386 fi
5387 rm -f conftest.err conftest.$ac_ext
5388
5389   # OK, works on sane cases.  Now check whether non-existent headers
5390   # can be detected and how.
5391   cat >conftest.$ac_ext <<_ACEOF
5392 /* confdefs.h.  */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h.  */
5397 #include <ac_nonexistent.h>
5398 _ACEOF
5399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5400   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5401   ac_status=$?
5402   grep -v '^ *+' conftest.er1 >conftest.err
5403   rm -f conftest.er1
5404   cat conftest.err >&5
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); } >/dev/null; then
5407   if test -s conftest.err; then
5408     ac_cpp_err=$ac_cxx_preproc_warn_flag
5409     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5410   else
5411     ac_cpp_err=
5412   fi
5413 else
5414   ac_cpp_err=yes
5415 fi
5416 if test -z "$ac_cpp_err"; then
5417   # Broken: success on invalid input.
5418 continue
5419 else
5420   echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5422
5423   # Passes both tests.
5424 ac_preproc_ok=:
5425 break
5426 fi
5427 rm -f conftest.err conftest.$ac_ext
5428
5429 done
5430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5431 rm -f conftest.err conftest.$ac_ext
5432 if $ac_preproc_ok; then
5433   :
5434 else
5435   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5436 See \`config.log' for more details." >&5
5437 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5438 See \`config.log' for more details." >&2;}
5439    { (exit 1); exit 1; }; }
5440 fi
5441
5442 ac_ext=cc
5443 ac_cpp='$CXXCPP $CPPFLAGS'
5444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5447
5448 fi
5449
5450
5451 ac_ext=f
5452 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5453 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5454 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5455 if test -n "$ac_tool_prefix"; then
5456   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5457   do
5458     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5460 echo "$as_me:$LINENO: checking for $ac_word" >&5
5461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5462 if test "${ac_cv_prog_F77+set}" = set; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465   if test -n "$F77"; then
5466   ac_cv_prog_F77="$F77" # Let the user override the test.
5467 else
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 for as_dir in $PATH
5470 do
5471   IFS=$as_save_IFS
5472   test -z "$as_dir" && as_dir=.
5473   for ac_exec_ext in '' $ac_executable_extensions; do
5474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5475     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5477     break 2
5478   fi
5479 done
5480 done
5481
5482 fi
5483 fi
5484 F77=$ac_cv_prog_F77
5485 if test -n "$F77"; then
5486   echo "$as_me:$LINENO: result: $F77" >&5
5487 echo "${ECHO_T}$F77" >&6
5488 else
5489   echo "$as_me:$LINENO: result: no" >&5
5490 echo "${ECHO_T}no" >&6
5491 fi
5492
5493     test -n "$F77" && break
5494   done
5495 fi
5496 if test -z "$F77"; then
5497   ac_ct_F77=$F77
5498   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5499 do
5500   # Extract the first word of "$ac_prog", so it can be a program name with args.
5501 set dummy $ac_prog; ac_word=$2
5502 echo "$as_me:$LINENO: checking for $ac_word" >&5
5503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5504 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5505   echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507   if test -n "$ac_ct_F77"; then
5508   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5512 do
5513   IFS=$as_save_IFS
5514   test -z "$as_dir" && as_dir=.
5515   for ac_exec_ext in '' $ac_executable_extensions; do
5516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517     ac_cv_prog_ac_ct_F77="$ac_prog"
5518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5519     break 2
5520   fi
5521 done
5522 done
5523
5524 fi
5525 fi
5526 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5527 if test -n "$ac_ct_F77"; then
5528   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5529 echo "${ECHO_T}$ac_ct_F77" >&6
5530 else
5531   echo "$as_me:$LINENO: result: no" >&5
5532 echo "${ECHO_T}no" >&6
5533 fi
5534
5535   test -n "$ac_ct_F77" && break
5536 done
5537
5538   F77=$ac_ct_F77
5539 fi
5540
5541
5542 # Provide some information about the compiler.
5543 echo "$as_me:5543:" \
5544      "checking for Fortran 77 compiler version" >&5
5545 ac_compiler=`set X $ac_compile; echo $2`
5546 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5547   (eval $ac_compiler --version </dev/null >&5) 2>&5
5548   ac_status=$?
5549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550   (exit $ac_status); }
5551 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5552   (eval $ac_compiler -v </dev/null >&5) 2>&5
5553   ac_status=$?
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); }
5556 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5557   (eval $ac_compiler -V </dev/null >&5) 2>&5
5558   ac_status=$?
5559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560   (exit $ac_status); }
5561 rm -f a.out
5562
5563 # If we don't use `.F' as extension, the preprocessor is not run on the
5564 # input file.  (Note that this only needs to work for GNU compilers.)
5565 ac_save_ext=$ac_ext
5566 ac_ext=F
5567 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5568 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5569 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5570   echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572   cat >conftest.$ac_ext <<_ACEOF
5573       program main
5574 #ifndef __GNUC__
5575        choke me
5576 #endif
5577
5578       end
5579 _ACEOF
5580 rm -f conftest.$ac_objext
5581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582   (eval $ac_compile) 2>conftest.er1
5583   ac_status=$?
5584   grep -v '^ *+' conftest.er1 >conftest.err
5585   rm -f conftest.er1
5586   cat conftest.err >&5
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); } &&
5589          { ac_try='test -z "$ac_f77_werror_flag"
5590                          || test ! -s conftest.err'
5591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592   (eval $ac_try) 2>&5
5593   ac_status=$?
5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595   (exit $ac_status); }; } &&
5596          { ac_try='test -s conftest.$ac_objext'
5597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598   (eval $ac_try) 2>&5
5599   ac_status=$?
5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601   (exit $ac_status); }; }; then
5602   ac_compiler_gnu=yes
5603 else
5604   echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5606
5607 ac_compiler_gnu=no
5608 fi
5609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5610 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5611
5612 fi
5613 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5614 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5615 ac_ext=$ac_save_ext
5616 ac_test_FFLAGS=${FFLAGS+set}
5617 ac_save_FFLAGS=$FFLAGS
5618 FFLAGS=
5619 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5620 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5621 if test "${ac_cv_prog_f77_g+set}" = set; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624   FFLAGS=-g
5625 cat >conftest.$ac_ext <<_ACEOF
5626       program main
5627
5628       end
5629 _ACEOF
5630 rm -f conftest.$ac_objext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5632   (eval $ac_compile) 2>conftest.er1
5633   ac_status=$?
5634   grep -v '^ *+' conftest.er1 >conftest.err
5635   rm -f conftest.er1
5636   cat conftest.err >&5
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); } &&
5639          { ac_try='test -z "$ac_f77_werror_flag"
5640                          || test ! -s conftest.err'
5641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642   (eval $ac_try) 2>&5
5643   ac_status=$?
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); }; } &&
5646          { ac_try='test -s conftest.$ac_objext'
5647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648   (eval $ac_try) 2>&5
5649   ac_status=$?
5650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651   (exit $ac_status); }; }; then
5652   ac_cv_prog_f77_g=yes
5653 else
5654   echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5656
5657 ac_cv_prog_f77_g=no
5658 fi
5659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5660
5661 fi
5662 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5663 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5664 if test "$ac_test_FFLAGS" = set; then
5665   FFLAGS=$ac_save_FFLAGS
5666 elif test $ac_cv_prog_f77_g = yes; then
5667   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5668     FFLAGS="-g -O2"
5669   else
5670     FFLAGS="-g"
5671   fi
5672 else
5673   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5674     FFLAGS="-O2"
5675   else
5676     FFLAGS=
5677   fi
5678 fi
5679
5680 G77=`test $ac_compiler_gnu = yes && echo yes`
5681 ac_ext=c
5682 ac_cpp='$CPP $CPPFLAGS'
5683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5686
5687
5688
5689 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5690
5691 # find the maximum length of command line arguments
5692 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5693 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5694 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697     i=0
5698   teststring="ABCD"
5699
5700   case $build_os in
5701   msdosdjgpp*)
5702     # On DJGPP, this test can blow up pretty badly due to problems in libc
5703     # (any single argument exceeding 2000 bytes causes a buffer overrun
5704     # during glob expansion).  Even if it were fixed, the result of this
5705     # check would be larger than it should be.
5706     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5707     ;;
5708
5709   gnu*)
5710     # Under GNU Hurd, this test is not required because there is
5711     # no limit to the length of command line arguments.
5712     # Libtool will interpret -1 as no limit whatsoever
5713     lt_cv_sys_max_cmd_len=-1;
5714     ;;
5715
5716   cygwin* | mingw*)
5717     # On Win9x/ME, this test blows up -- it succeeds, but takes
5718     # about 5 minutes as the teststring grows exponentially.
5719     # Worse, since 9x/ME are not pre-emptively multitasking,
5720     # you end up with a "frozen" computer, even though with patience
5721     # the test eventually succeeds (with a max line length of 256k).
5722     # Instead, let's just punt: use the minimum linelength reported by
5723     # all of the supported platforms: 8192 (on NT/2K/XP).
5724     lt_cv_sys_max_cmd_len=8192;
5725     ;;
5726
5727   amigaos*)
5728     # On AmigaOS with pdksh, this test takes hours, literally.
5729     # So we just punt and use a minimum line length of 8192.
5730     lt_cv_sys_max_cmd_len=8192;
5731     ;;
5732
5733   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5734     # This has been around since 386BSD, at least.  Likely further.
5735     if test -x /sbin/sysctl; then
5736       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5737     elif test -x /usr/sbin/sysctl; then
5738       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5739     else
5740       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5741     fi
5742     # And add a safety zone
5743     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5744     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5745     ;;
5746
5747   interix*)
5748     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5749     lt_cv_sys_max_cmd_len=196608
5750     ;;
5751
5752   osf*)
5753     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5754     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5755     # nice to cause kernel panics so lets avoid the loop below.
5756     # First set a reasonable default.
5757     lt_cv_sys_max_cmd_len=16384
5758     #
5759     if test -x /sbin/sysconfig; then
5760       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5761         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5762       esac
5763     fi
5764     ;;
5765   sco3.2v5*)
5766     lt_cv_sys_max_cmd_len=102400
5767     ;;
5768   sysv5* | sco5v6* | sysv4.2uw2*)
5769     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5770     if test -n "$kargmax"; then
5771       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5772     else
5773       lt_cv_sys_max_cmd_len=32768
5774     fi
5775     ;;
5776   *)
5777     # If test is not a shell built-in, we'll probably end up computing a
5778     # maximum length that is only half of the actual maximum length, but
5779     # we can't tell.
5780     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5781     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5782                = "XX$teststring") >/dev/null 2>&1 &&
5783             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5784             lt_cv_sys_max_cmd_len=$new_result &&
5785             test $i != 17 # 1/2 MB should be enough
5786     do
5787       i=`expr $i + 1`
5788       teststring=$teststring$teststring
5789     done
5790     teststring=
5791     # Add a significant safety factor because C++ compilers can tack on massive
5792     # amounts of additional arguments before passing them to the linker.
5793     # It appears as though 1/2 is a usable value.
5794     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5795     ;;
5796   esac
5797
5798 fi
5799
5800 if test -n $lt_cv_sys_max_cmd_len ; then
5801   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5802 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5803 else
5804   echo "$as_me:$LINENO: result: none" >&5
5805 echo "${ECHO_T}none" >&6
5806 fi
5807
5808
5809
5810
5811 # Check for command to grab the raw symbol name followed by C symbol from nm.
5812 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5813 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5814 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5815   echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817
5818 # These are sane defaults that work on at least a few old systems.
5819 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5820
5821 # Character class describing NM global symbol codes.
5822 symcode='[BCDEGRST]'
5823
5824 # Regexp to match symbols that can be accessed directly from C.
5825 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5826
5827 # Transform an extracted symbol line into a proper C declaration
5828 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5829
5830 # Transform an extracted symbol line into symbol name and symbol address
5831 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'"
5832
5833 # Define system-specific variables.
5834 case $host_os in
5835 aix*)
5836   symcode='[BCDT]'
5837   ;;
5838 cygwin* | mingw* | pw32*)
5839   symcode='[ABCDGISTW]'
5840   ;;
5841 hpux*) # Its linker distinguishes data from code symbols
5842   if test "$host_cpu" = ia64; then
5843     symcode='[ABCDEGRST]'
5844   fi
5845   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5846   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'"
5847   ;;
5848 linux*)
5849   if test "$host_cpu" = ia64; then
5850     symcode='[ABCDGIRSTW]'
5851     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5852     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'"
5853   fi
5854   ;;
5855 irix* | nonstopux*)
5856   symcode='[BCDEGRST]'
5857   ;;
5858 osf*)
5859   symcode='[BCDEGQRST]'
5860   ;;
5861 solaris*)
5862   symcode='[BDRT]'
5863   ;;
5864 sco3.2v5*)
5865   symcode='[DT]'
5866   ;;
5867 sysv4.2uw2*)
5868   symcode='[DT]'
5869   ;;
5870 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5871   symcode='[ABDT]'
5872   ;;
5873 sysv4)
5874   symcode='[DFNSTU]'
5875   ;;
5876 esac
5877
5878 # Handle CRLF in mingw tool chain
5879 opt_cr=
5880 case $build_os in
5881 mingw*)
5882   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5883   ;;
5884 esac
5885
5886 # If we're using GNU nm, then use its standard symbol codes.
5887 case `$NM -V 2>&1` in
5888 *GNU* | *'with BFD'*)
5889   symcode='[ABCDGIRSTW]' ;;
5890 esac
5891
5892 # Try without a prefix undercore, then with it.
5893 for ac_symprfx in "" "_"; do
5894
5895   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5896   symxfrm="\\1 $ac_symprfx\\2 \\2"
5897
5898   # Write the raw and C identifiers.
5899   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5900
5901   # Check to see that the pipe works correctly.
5902   pipe_works=no
5903
5904   rm -f conftest*
5905   cat > conftest.$ac_ext <<EOF
5906 #ifdef __cplusplus
5907 extern "C" {
5908 #endif
5909 char nm_test_var;
5910 void nm_test_func(){}
5911 #ifdef __cplusplus
5912 }
5913 #endif
5914 int main(){nm_test_var='a';nm_test_func();return(0);}
5915 EOF
5916
5917   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918   (eval $ac_compile) 2>&5
5919   ac_status=$?
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); }; then
5922     # Now try to grab the symbols.
5923     nlist=conftest.nm
5924     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5925   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5926   ac_status=$?
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); } && test -s "$nlist"; then
5929       # Try sorting and uniquifying the output.
5930       if sort "$nlist" | uniq > "$nlist"T; then
5931         mv -f "$nlist"T "$nlist"
5932       else
5933         rm -f "$nlist"T
5934       fi
5935
5936       # Make sure that we snagged all the symbols we need.
5937       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5938         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5939           cat <<EOF > conftest.$ac_ext
5940 #ifdef __cplusplus
5941 extern "C" {
5942 #endif
5943
5944 EOF
5945           # Now generate the symbol file.
5946           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5947
5948           cat <<EOF >> conftest.$ac_ext
5949 #if defined (__STDC__) && __STDC__
5950 # define lt_ptr_t void *
5951 #else
5952 # define lt_ptr_t char *
5953 # define const
5954 #endif
5955
5956 /* The mapping between symbol names and symbols. */
5957 const struct {
5958   const char *name;
5959   lt_ptr_t address;
5960 }
5961 lt_preloaded_symbols[] =
5962 {
5963 EOF
5964           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5965           cat <<\EOF >> conftest.$ac_ext
5966   {0, (lt_ptr_t) 0}
5967 };
5968
5969 #ifdef __cplusplus
5970 }
5971 #endif
5972 EOF
5973           # Now try linking the two files.
5974           mv conftest.$ac_objext conftstm.$ac_objext
5975           lt_save_LIBS="$LIBS"
5976           lt_save_CFLAGS="$CFLAGS"
5977           LIBS="conftstm.$ac_objext"
5978           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5979           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5980   (eval $ac_link) 2>&5
5981   ac_status=$?
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5984             pipe_works=yes
5985           fi
5986           LIBS="$lt_save_LIBS"
5987           CFLAGS="$lt_save_CFLAGS"
5988         else
5989           echo "cannot find nm_test_func in $nlist" >&5
5990         fi
5991       else
5992         echo "cannot find nm_test_var in $nlist" >&5
5993       fi
5994     else
5995       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5996     fi
5997   else
5998     echo "$progname: failed program was:" >&5
5999     cat conftest.$ac_ext >&5
6000   fi
6001   rm -f conftest* conftst*
6002
6003   # Do not use the global_symbol_pipe unless it works.
6004   if test "$pipe_works" = yes; then
6005     break
6006   else
6007     lt_cv_sys_global_symbol_pipe=
6008   fi
6009 done
6010
6011 fi
6012
6013 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6014   lt_cv_sys_global_symbol_to_cdecl=
6015 fi
6016 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6017   echo "$as_me:$LINENO: result: failed" >&5
6018 echo "${ECHO_T}failed" >&6
6019 else
6020   echo "$as_me:$LINENO: result: ok" >&5
6021 echo "${ECHO_T}ok" >&6
6022 fi
6023
6024 echo "$as_me:$LINENO: checking for objdir" >&5
6025 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6026 if test "${lt_cv_objdir+set}" = set; then
6027   echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029   rm -f .libs 2>/dev/null
6030 mkdir .libs 2>/dev/null
6031 if test -d .libs; then
6032   lt_cv_objdir=.libs
6033 else
6034   # MS-DOS does not allow filenames that begin with a dot.
6035   lt_cv_objdir=_libs
6036 fi
6037 rmdir .libs 2>/dev/null
6038 fi
6039 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6040 echo "${ECHO_T}$lt_cv_objdir" >&6
6041 objdir=$lt_cv_objdir
6042
6043
6044
6045
6046
6047 case $host_os in
6048 aix3*)
6049   # AIX sometimes has problems with the GCC collect2 program.  For some
6050   # reason, if we set the COLLECT_NAMES environment variable, the problems
6051   # vanish in a puff of smoke.
6052   if test "X${COLLECT_NAMES+set}" != Xset; then
6053     COLLECT_NAMES=
6054     export COLLECT_NAMES
6055   fi
6056   ;;
6057 esac
6058
6059 # Sed substitution that helps us do robust quoting.  It backslashifies
6060 # metacharacters that are still active within double-quoted strings.
6061 Xsed='sed -e 1s/^X//'
6062 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6063
6064 # Same as above, but do not quote variable references.
6065 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6066
6067 # Sed substitution to delay expansion of an escaped shell variable in a
6068 # double_quote_subst'ed string.
6069 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6070
6071 # Sed substitution to avoid accidental globbing in evaled expressions
6072 no_glob_subst='s/\*/\\\*/g'
6073
6074 # Constants:
6075 rm="rm -f"
6076
6077 # Global variables:
6078 default_ofile=libtool
6079 can_build_shared=yes
6080
6081 # All known linkers require a `.a' archive for static linking (except MSVC,
6082 # which needs '.lib').
6083 libext=a
6084 ltmain="$ac_aux_dir/ltmain.sh"
6085 ofile="$default_ofile"
6086 with_gnu_ld="$lt_cv_prog_gnu_ld"
6087
6088 if test -n "$ac_tool_prefix"; then
6089   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6090 set dummy ${ac_tool_prefix}ar; ac_word=$2
6091 echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6093 if test "${ac_cv_prog_AR+set}" = set; then
6094   echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096   if test -n "$AR"; then
6097   ac_cv_prog_AR="$AR" # Let the user override the test.
6098 else
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102   IFS=$as_save_IFS
6103   test -z "$as_dir" && as_dir=.
6104   for ac_exec_ext in '' $ac_executable_extensions; do
6105   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6106     ac_cv_prog_AR="${ac_tool_prefix}ar"
6107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108     break 2
6109   fi
6110 done
6111 done
6112
6113 fi
6114 fi
6115 AR=$ac_cv_prog_AR
6116 if test -n "$AR"; then
6117   echo "$as_me:$LINENO: result: $AR" >&5
6118 echo "${ECHO_T}$AR" >&6
6119 else
6120   echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6
6122 fi
6123
6124 fi
6125 if test -z "$ac_cv_prog_AR"; then
6126   ac_ct_AR=$AR
6127   # Extract the first word of "ar", so it can be a program name with args.
6128 set dummy ar; ac_word=$2
6129 echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6131 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6132   echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134   if test -n "$ac_ct_AR"; then
6135   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140   IFS=$as_save_IFS
6141   test -z "$as_dir" && as_dir=.
6142   for ac_exec_ext in '' $ac_executable_extensions; do
6143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6144     ac_cv_prog_ac_ct_AR="ar"
6145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146     break 2
6147   fi
6148 done
6149 done
6150
6151   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6152 fi
6153 fi
6154 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6155 if test -n "$ac_ct_AR"; then
6156   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6157 echo "${ECHO_T}$ac_ct_AR" >&6
6158 else
6159   echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6
6161 fi
6162
6163   AR=$ac_ct_AR
6164 else
6165   AR="$ac_cv_prog_AR"
6166 fi
6167
6168 if test -n "$ac_tool_prefix"; then
6169   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6170 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6171 echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6173 if test "${ac_cv_prog_RANLIB+set}" = set; then
6174   echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176   if test -n "$RANLIB"; then
6177   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182   IFS=$as_save_IFS
6183   test -z "$as_dir" && as_dir=.
6184   for ac_exec_ext in '' $ac_executable_extensions; do
6185   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188     break 2
6189   fi
6190 done
6191 done
6192
6193 fi
6194 fi
6195 RANLIB=$ac_cv_prog_RANLIB
6196 if test -n "$RANLIB"; then
6197   echo "$as_me:$LINENO: result: $RANLIB" >&5
6198 echo "${ECHO_T}$RANLIB" >&6
6199 else
6200   echo "$as_me:$LINENO: result: no" >&5
6201 echo "${ECHO_T}no" >&6
6202 fi
6203
6204 fi
6205 if test -z "$ac_cv_prog_RANLIB"; then
6206   ac_ct_RANLIB=$RANLIB
6207   # Extract the first word of "ranlib", so it can be a program name with args.
6208 set dummy ranlib; ac_word=$2
6209 echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6211 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6212   echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214   if test -n "$ac_ct_RANLIB"; then
6215   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220   IFS=$as_save_IFS
6221   test -z "$as_dir" && as_dir=.
6222   for ac_exec_ext in '' $ac_executable_extensions; do
6223   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224     ac_cv_prog_ac_ct_RANLIB="ranlib"
6225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6226     break 2
6227   fi
6228 done
6229 done
6230
6231   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6232 fi
6233 fi
6234 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6235 if test -n "$ac_ct_RANLIB"; then
6236   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6237 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6238 else
6239   echo "$as_me:$LINENO: result: no" >&5
6240 echo "${ECHO_T}no" >&6
6241 fi
6242
6243   RANLIB=$ac_ct_RANLIB
6244 else
6245   RANLIB="$ac_cv_prog_RANLIB"
6246 fi
6247
6248 if test -n "$ac_tool_prefix"; then
6249   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6250 set dummy ${ac_tool_prefix}strip; ac_word=$2
6251 echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6253 if test "${ac_cv_prog_STRIP+set}" = set; then
6254   echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256   if test -n "$STRIP"; then
6257   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262   IFS=$as_save_IFS
6263   test -z "$as_dir" && as_dir=.
6264   for ac_exec_ext in '' $ac_executable_extensions; do
6265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268     break 2
6269   fi
6270 done
6271 done
6272
6273 fi
6274 fi
6275 STRIP=$ac_cv_prog_STRIP
6276 if test -n "$STRIP"; then
6277   echo "$as_me:$LINENO: result: $STRIP" >&5
6278 echo "${ECHO_T}$STRIP" >&6
6279 else
6280   echo "$as_me:$LINENO: result: no" >&5
6281 echo "${ECHO_T}no" >&6
6282 fi
6283
6284 fi
6285 if test -z "$ac_cv_prog_STRIP"; then
6286   ac_ct_STRIP=$STRIP
6287   # Extract the first word of "strip", so it can be a program name with args.
6288 set dummy strip; ac_word=$2
6289 echo "$as_me:$LINENO: checking for $ac_word" >&5
6290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6291 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6292   echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294   if test -n "$ac_ct_STRIP"; then
6295   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300   IFS=$as_save_IFS
6301   test -z "$as_dir" && as_dir=.
6302   for ac_exec_ext in '' $ac_executable_extensions; do
6303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304     ac_cv_prog_ac_ct_STRIP="strip"
6305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306     break 2
6307   fi
6308 done
6309 done
6310
6311   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6312 fi
6313 fi
6314 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6315 if test -n "$ac_ct_STRIP"; then
6316   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6317 echo "${ECHO_T}$ac_ct_STRIP" >&6
6318 else
6319   echo "$as_me:$LINENO: result: no" >&5
6320 echo "${ECHO_T}no" >&6
6321 fi
6322
6323   STRIP=$ac_ct_STRIP
6324 else
6325   STRIP="$ac_cv_prog_STRIP"
6326 fi
6327
6328
6329 old_CC="$CC"
6330 old_CFLAGS="$CFLAGS"
6331
6332 # Set sane defaults for various variables
6333 test -z "$AR" && AR=ar
6334 test -z "$AR_FLAGS" && AR_FLAGS=cru
6335 test -z "$AS" && AS=as
6336 test -z "$CC" && CC=cc
6337 test -z "$LTCC" && LTCC=$CC
6338 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6339 test -z "$DLLTOOL" && DLLTOOL=dlltool
6340 test -z "$LD" && LD=ld
6341 test -z "$LN_S" && LN_S="ln -s"
6342 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6343 test -z "$NM" && NM=nm
6344 test -z "$SED" && SED=sed
6345 test -z "$OBJDUMP" && OBJDUMP=objdump
6346 test -z "$RANLIB" && RANLIB=:
6347 test -z "$STRIP" && STRIP=:
6348 test -z "$ac_objext" && ac_objext=o
6349
6350 # Determine commands to create old-style static archives.
6351 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6352 old_postinstall_cmds='chmod 644 $oldlib'
6353 old_postuninstall_cmds=
6354
6355 if test -n "$RANLIB"; then
6356   case $host_os in
6357   openbsd*)
6358     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6359     ;;
6360   *)
6361     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6362     ;;
6363   esac
6364   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6365 fi
6366
6367 for cc_temp in $compiler""; do
6368   case $cc_temp in
6369     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6370     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6371     \-*) ;;
6372     *) break;;
6373   esac
6374 done
6375 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6376
6377
6378 # Only perform the check for file, if the check method requires it
6379 case $deplibs_check_method in
6380 file_magic*)
6381   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6382     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6383 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6384 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6385   echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387   case $MAGIC_CMD in
6388 [\\/*] |  ?:[\\/]*)
6389   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6390   ;;
6391 *)
6392   lt_save_MAGIC_CMD="$MAGIC_CMD"
6393   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6394   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6395   for ac_dir in $ac_dummy; do
6396     IFS="$lt_save_ifs"
6397     test -z "$ac_dir" && ac_dir=.
6398     if test -f $ac_dir/${ac_tool_prefix}file; then
6399       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6400       if test -n "$file_magic_test_file"; then
6401         case $deplibs_check_method in
6402         "file_magic "*)
6403           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6404           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6405           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6406             $EGREP "$file_magic_regex" > /dev/null; then
6407             :
6408           else
6409             cat <<EOF 1>&2
6410
6411 *** Warning: the command libtool uses to detect shared libraries,
6412 *** $file_magic_cmd, produces output that libtool cannot recognize.
6413 *** The result is that libtool may fail to recognize shared libraries
6414 *** as such.  This will affect the creation of libtool libraries that
6415 *** depend on shared libraries, but programs linked with such libtool
6416 *** libraries will work regardless of this problem.  Nevertheless, you
6417 *** may want to report the problem to your system manager and/or to
6418 *** bug-libtool@gnu.org
6419
6420 EOF
6421           fi ;;
6422         esac
6423       fi
6424       break
6425     fi
6426   done
6427   IFS="$lt_save_ifs"
6428   MAGIC_CMD="$lt_save_MAGIC_CMD"
6429   ;;
6430 esac
6431 fi
6432
6433 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6434 if test -n "$MAGIC_CMD"; then
6435   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6436 echo "${ECHO_T}$MAGIC_CMD" >&6
6437 else
6438   echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6
6440 fi
6441
6442 if test -z "$lt_cv_path_MAGIC_CMD"; then
6443   if test -n "$ac_tool_prefix"; then
6444     echo "$as_me:$LINENO: checking for file" >&5
6445 echo $ECHO_N "checking for file... $ECHO_C" >&6
6446 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6447   echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449   case $MAGIC_CMD in
6450 [\\/*] |  ?:[\\/]*)
6451   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6452   ;;
6453 *)
6454   lt_save_MAGIC_CMD="$MAGIC_CMD"
6455   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6456   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6457   for ac_dir in $ac_dummy; do
6458     IFS="$lt_save_ifs"
6459     test -z "$ac_dir" && ac_dir=.
6460     if test -f $ac_dir/file; then
6461       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6462       if test -n "$file_magic_test_file"; then
6463         case $deplibs_check_method in
6464         "file_magic "*)
6465           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6466           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6467           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6468             $EGREP "$file_magic_regex" > /dev/null; then
6469             :
6470           else
6471             cat <<EOF 1>&2
6472
6473 *** Warning: the command libtool uses to detect shared libraries,
6474 *** $file_magic_cmd, produces output that libtool cannot recognize.
6475 *** The result is that libtool may fail to recognize shared libraries
6476 *** as such.  This will affect the creation of libtool libraries that
6477 *** depend on shared libraries, but programs linked with such libtool
6478 *** libraries will work regardless of this problem.  Nevertheless, you
6479 *** may want to report the problem to your system manager and/or to
6480 *** bug-libtool@gnu.org
6481
6482 EOF
6483           fi ;;
6484         esac
6485       fi
6486       break
6487     fi
6488   done
6489   IFS="$lt_save_ifs"
6490   MAGIC_CMD="$lt_save_MAGIC_CMD"
6491   ;;
6492 esac
6493 fi
6494
6495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6496 if test -n "$MAGIC_CMD"; then
6497   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6498 echo "${ECHO_T}$MAGIC_CMD" >&6
6499 else
6500   echo "$as_me:$LINENO: result: no" >&5
6501 echo "${ECHO_T}no" >&6
6502 fi
6503
6504   else
6505     MAGIC_CMD=:
6506   fi
6507 fi
6508
6509   fi
6510   ;;
6511 esac
6512
6513 enable_dlopen=no
6514 enable_win32_dll=no
6515
6516 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6517 if test "${enable_libtool_lock+set}" = set; then
6518   enableval="$enable_libtool_lock"
6519
6520 fi;
6521 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6522
6523
6524 # Check whether --with-pic or --without-pic was given.
6525 if test "${with_pic+set}" = set; then
6526   withval="$with_pic"
6527   pic_mode="$withval"
6528 else
6529   pic_mode=default
6530 fi;
6531 test -z "$pic_mode" && pic_mode=default
6532
6533 # Use C for the default configuration in the libtool script
6534 tagname=
6535 lt_save_CC="$CC"
6536 ac_ext=c
6537 ac_cpp='$CPP $CPPFLAGS'
6538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6541
6542
6543 # Source file extension for C test sources.
6544 ac_ext=c
6545
6546 # Object file extension for compiled C test sources.
6547 objext=o
6548 objext=$objext
6549
6550 # Code to be used in simple compile tests
6551 lt_simple_compile_test_code="int some_variable = 0;\n"
6552
6553 # Code to be used in simple link tests
6554 lt_simple_link_test_code='int main(){return(0);}\n'
6555
6556
6557 # If no C compiler was specified, use CC.
6558 LTCC=${LTCC-"$CC"}
6559
6560 # If no C compiler flags were specified, use CFLAGS.
6561 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6562
6563 # Allow CC to be a program name with arguments.
6564 compiler=$CC
6565
6566
6567 # save warnings/boilerplate of simple test code
6568 ac_outfile=conftest.$ac_objext
6569 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6570 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6571 _lt_compiler_boilerplate=`cat conftest.err`
6572 $rm conftest*
6573
6574 ac_outfile=conftest.$ac_objext
6575 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6576 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6577 _lt_linker_boilerplate=`cat conftest.err`
6578 $rm conftest*
6579
6580
6581
6582 lt_prog_compiler_no_builtin_flag=
6583
6584 if test "$GCC" = yes; then
6585   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6586
6587
6588 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6589 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6590 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6591   echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593   lt_cv_prog_compiler_rtti_exceptions=no
6594   ac_outfile=conftest.$ac_objext
6595    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6596    lt_compiler_flag="-fno-rtti -fno-exceptions"
6597    # Insert the option either (1) after the last *FLAGS variable, or
6598    # (2) before a word containing "conftest.", or (3) at the end.
6599    # Note that $ac_compile itself does not contain backslashes and begins
6600    # with a dollar sign (not a hyphen), so the echo should work correctly.
6601    # The option is referenced via a variable to avoid confusing sed.
6602    lt_compile=`echo "$ac_compile" | $SED \
6603    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6604    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6605    -e 's:$: $lt_compiler_flag:'`
6606    (eval echo "\"\$as_me:6606: $lt_compile\"" >&5)
6607    (eval "$lt_compile" 2>conftest.err)
6608    ac_status=$?
6609    cat conftest.err >&5
6610    echo "$as_me:6610: \$? = $ac_status" >&5
6611    if (exit $ac_status) && test -s "$ac_outfile"; then
6612      # The compiler can only warn and ignore the option if not recognized
6613      # So say no if there are warnings other than the usual output.
6614      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6615      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6616      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6617        lt_cv_prog_compiler_rtti_exceptions=yes
6618      fi
6619    fi
6620    $rm conftest*
6621
6622 fi
6623 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6624 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6625
6626 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6627     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6628 else
6629     :
6630 fi
6631
6632 fi
6633
6634 lt_prog_compiler_wl=
6635 lt_prog_compiler_pic=
6636 lt_prog_compiler_static=
6637
6638 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6639 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6640
6641   if test "$GCC" = yes; then
6642     lt_prog_compiler_wl='-Wl,'
6643     lt_prog_compiler_static='-static'
6644
6645     case $host_os in
6646       aix*)
6647       # All AIX code is PIC.
6648       if test "$host_cpu" = ia64; then
6649         # AIX 5 now supports IA64 processor
6650         lt_prog_compiler_static='-Bstatic'
6651       fi
6652       ;;
6653
6654     amigaos*)
6655       # FIXME: we need at least 68020 code to build shared libraries, but
6656       # adding the `-m68020' flag to GCC prevents building anything better,
6657       # like `-m68040'.
6658       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6659       ;;
6660
6661     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6662       # PIC is the default for these OSes.
6663       ;;
6664
6665     mingw* | pw32* | os2*)
6666       # This hack is so that the source file can tell whether it is being
6667       # built for inclusion in a dll (and should export symbols for example).
6668       lt_prog_compiler_pic='-DDLL_EXPORT'
6669       ;;
6670
6671     darwin* | rhapsody*)
6672       # PIC is the default on this platform
6673       # Common symbols not allowed in MH_DYLIB files
6674       lt_prog_compiler_pic='-fno-common'
6675       ;;
6676
6677     interix3*)
6678       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6679       # Instead, we relocate shared libraries at runtime.
6680       ;;
6681
6682     msdosdjgpp*)
6683       # Just because we use GCC doesn't mean we suddenly get shared libraries
6684       # on systems that don't support them.
6685       lt_prog_compiler_can_build_shared=no
6686       enable_shared=no
6687       ;;
6688
6689     sysv4*MP*)
6690       if test -d /usr/nec; then
6691         lt_prog_compiler_pic=-Kconform_pic
6692       fi
6693       ;;
6694
6695     hpux*)
6696       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6697       # not for PA HP-UX.
6698       case $host_cpu in
6699       hppa*64*|ia64*)
6700         # +Z the default
6701         ;;
6702       *)
6703         lt_prog_compiler_pic='-fPIC'
6704         ;;
6705       esac
6706       ;;
6707
6708     *)
6709       lt_prog_compiler_pic='-fPIC'
6710       ;;
6711     esac
6712   else
6713     # PORTME Check for flag to pass linker flags through the system compiler.
6714     case $host_os in
6715     aix*)
6716       lt_prog_compiler_wl='-Wl,'
6717       if test "$host_cpu" = ia64; then
6718         # AIX 5 now supports IA64 processor
6719         lt_prog_compiler_static='-Bstatic'
6720       else
6721         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6722       fi
6723       ;;
6724       darwin*)
6725         # PIC is the default on this platform
6726         # Common symbols not allowed in MH_DYLIB files
6727        case $cc_basename in
6728          xlc*)
6729          lt_prog_compiler_pic='-qnocommon'
6730          lt_prog_compiler_wl='-Wl,'
6731          ;;
6732        esac
6733        ;;
6734
6735     mingw* | pw32* | os2*)
6736       # This hack is so that the source file can tell whether it is being
6737       # built for inclusion in a dll (and should export symbols for example).
6738       lt_prog_compiler_pic='-DDLL_EXPORT'
6739       ;;
6740
6741     hpux9* | hpux10* | hpux11*)
6742       lt_prog_compiler_wl='-Wl,'
6743       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6744       # not for PA HP-UX.
6745       case $host_cpu in
6746       hppa*64*|ia64*)
6747         # +Z the default
6748         ;;
6749       *)
6750         lt_prog_compiler_pic='+Z'
6751         ;;
6752       esac
6753       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6754       lt_prog_compiler_static='${wl}-a ${wl}archive'
6755       ;;
6756
6757     irix5* | irix6* | nonstopux*)
6758       lt_prog_compiler_wl='-Wl,'
6759       # PIC (with -KPIC) is the default.
6760       lt_prog_compiler_static='-non_shared'
6761       ;;
6762
6763     newsos6)
6764       lt_prog_compiler_pic='-KPIC'
6765       lt_prog_compiler_static='-Bstatic'
6766       ;;
6767
6768     linux*)
6769       case $cc_basename in
6770       icc* | ecc*)
6771         lt_prog_compiler_wl='-Wl,'
6772         lt_prog_compiler_pic='-KPIC'
6773         lt_prog_compiler_static='-static'
6774         ;;
6775       pgcc* | pgf77* | pgf90* | pgf95*)
6776         # Portland Group compilers (*not* the Pentium gcc compiler,
6777         # which looks to be a dead project)
6778         lt_prog_compiler_wl='-Wl,'
6779         lt_prog_compiler_pic='-fpic'
6780         lt_prog_compiler_static='-Bstatic'
6781         ;;
6782       ccc*)
6783         lt_prog_compiler_wl='-Wl,'
6784         # All Alpha code is PIC.
6785         lt_prog_compiler_static='-non_shared'
6786         ;;
6787       esac
6788       ;;
6789
6790     osf3* | osf4* | osf5*)
6791       lt_prog_compiler_wl='-Wl,'
6792       # All OSF/1 code is PIC.
6793       lt_prog_compiler_static='-non_shared'
6794       ;;
6795
6796     solaris*)
6797       lt_prog_compiler_pic='-KPIC'
6798       lt_prog_compiler_static='-Bstatic'
6799       case $cc_basename in
6800       f77* | f90* | f95*)
6801         lt_prog_compiler_wl='-Qoption ld ';;
6802       *)
6803         lt_prog_compiler_wl='-Wl,';;
6804       esac
6805       ;;
6806
6807     sunos4*)
6808       lt_prog_compiler_wl='-Qoption ld '
6809       lt_prog_compiler_pic='-PIC'
6810       lt_prog_compiler_static='-Bstatic'
6811       ;;
6812
6813     sysv4 | sysv4.2uw2* | sysv4.3*)
6814       lt_prog_compiler_wl='-Wl,'
6815       lt_prog_compiler_pic='-KPIC'
6816       lt_prog_compiler_static='-Bstatic'
6817       ;;
6818
6819     sysv4*MP*)
6820       if test -d /usr/nec ;then
6821         lt_prog_compiler_pic='-Kconform_pic'
6822         lt_prog_compiler_static='-Bstatic'
6823       fi
6824       ;;
6825
6826     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6827       lt_prog_compiler_wl='-Wl,'
6828       lt_prog_compiler_pic='-KPIC'
6829       lt_prog_compiler_static='-Bstatic'
6830       ;;
6831
6832     unicos*)
6833       lt_prog_compiler_wl='-Wl,'
6834       lt_prog_compiler_can_build_shared=no
6835       ;;
6836
6837     uts4*)
6838       lt_prog_compiler_pic='-pic'
6839       lt_prog_compiler_static='-Bstatic'
6840       ;;
6841
6842     *)
6843       lt_prog_compiler_can_build_shared=no
6844       ;;
6845     esac
6846   fi
6847
6848 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6849 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6850
6851 #
6852 # Check to make sure the PIC flag actually works.
6853 #
6854 if test -n "$lt_prog_compiler_pic"; then
6855
6856 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6857 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6858 if test "${lt_prog_compiler_pic_works+set}" = set; then
6859   echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861   lt_prog_compiler_pic_works=no
6862   ac_outfile=conftest.$ac_objext
6863    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6864    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6865    # Insert the option either (1) after the last *FLAGS variable, or
6866    # (2) before a word containing "conftest.", or (3) at the end.
6867    # Note that $ac_compile itself does not contain backslashes and begins
6868    # with a dollar sign (not a hyphen), so the echo should work correctly.
6869    # The option is referenced via a variable to avoid confusing sed.
6870    lt_compile=`echo "$ac_compile" | $SED \
6871    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6872    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6873    -e 's:$: $lt_compiler_flag:'`
6874    (eval echo "\"\$as_me:6874: $lt_compile\"" >&5)
6875    (eval "$lt_compile" 2>conftest.err)
6876    ac_status=$?
6877    cat conftest.err >&5
6878    echo "$as_me:6878: \$? = $ac_status" >&5
6879    if (exit $ac_status) && test -s "$ac_outfile"; then
6880      # The compiler can only warn and ignore the option if not recognized
6881      # So say no if there are warnings other than the usual output.
6882      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6883      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6884      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6885        lt_prog_compiler_pic_works=yes
6886      fi
6887    fi
6888    $rm conftest*
6889
6890 fi
6891 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6892 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6893
6894 if test x"$lt_prog_compiler_pic_works" = xyes; then
6895     case $lt_prog_compiler_pic in
6896      "" | " "*) ;;
6897      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6898      esac
6899 else
6900     lt_prog_compiler_pic=
6901      lt_prog_compiler_can_build_shared=no
6902 fi
6903
6904 fi
6905 case $host_os in
6906   # For platforms which do not support PIC, -DPIC is meaningless:
6907   *djgpp*)
6908     lt_prog_compiler_pic=
6909     ;;
6910   *)
6911     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6912     ;;
6913 esac
6914
6915 #
6916 # Check to make sure the static flag actually works.
6917 #
6918 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6919 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6920 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6921 if test "${lt_prog_compiler_static_works+set}" = set; then
6922   echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924   lt_prog_compiler_static_works=no
6925    save_LDFLAGS="$LDFLAGS"
6926    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6927    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6928    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6929      # The linker can only warn and ignore the option if not recognized
6930      # So say no if there are warnings
6931      if test -s conftest.err; then
6932        # Append any errors to the config.log.
6933        cat conftest.err 1>&5
6934        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6935        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6936        if diff conftest.exp conftest.er2 >/dev/null; then
6937          lt_prog_compiler_static_works=yes
6938        fi
6939      else
6940        lt_prog_compiler_static_works=yes
6941      fi
6942    fi
6943    $rm conftest*
6944    LDFLAGS="$save_LDFLAGS"
6945
6946 fi
6947 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6948 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6949
6950 if test x"$lt_prog_compiler_static_works" = xyes; then
6951     :
6952 else
6953     lt_prog_compiler_static=
6954 fi
6955
6956
6957 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6958 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6959 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6960   echo $ECHO_N "(cached) $ECHO_C" >&6
6961 else
6962   lt_cv_prog_compiler_c_o=no
6963    $rm -r conftest 2>/dev/null
6964    mkdir conftest
6965    cd conftest
6966    mkdir out
6967    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6968
6969    lt_compiler_flag="-o out/conftest2.$ac_objext"
6970    # Insert the option either (1) after the last *FLAGS variable, or
6971    # (2) before a word containing "conftest.", or (3) at the end.
6972    # Note that $ac_compile itself does not contain backslashes and begins
6973    # with a dollar sign (not a hyphen), so the echo should work correctly.
6974    lt_compile=`echo "$ac_compile" | $SED \
6975    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6976    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6977    -e 's:$: $lt_compiler_flag:'`
6978    (eval echo "\"\$as_me:6978: $lt_compile\"" >&5)
6979    (eval "$lt_compile" 2>out/conftest.err)
6980    ac_status=$?
6981    cat out/conftest.err >&5
6982    echo "$as_me:6982: \$? = $ac_status" >&5
6983    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6984    then
6985      # The compiler can only warn and ignore the option if not recognized
6986      # So say no if there are warnings
6987      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6988      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6989      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6990        lt_cv_prog_compiler_c_o=yes
6991      fi
6992    fi
6993    chmod u+w . 2>&5
6994    $rm conftest*
6995    # SGI C++ compiler will create directory out/ii_files/ for
6996    # template instantiation
6997    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6998    $rm out/* && rmdir out
6999    cd ..
7000    rmdir conftest
7001    $rm conftest*
7002
7003 fi
7004 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7005 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7006
7007
7008 hard_links="nottested"
7009 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7010   # do not overwrite the value of need_locks provided by the user
7011   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7012 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7013   hard_links=yes
7014   $rm conftest*
7015   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7016   touch conftest.a
7017   ln conftest.a conftest.b 2>&5 || hard_links=no
7018   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7019   echo "$as_me:$LINENO: result: $hard_links" >&5
7020 echo "${ECHO_T}$hard_links" >&6
7021   if test "$hard_links" = no; then
7022     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7023 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7024     need_locks=warn
7025   fi
7026 else
7027   need_locks=no
7028 fi
7029
7030 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7031 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7032
7033   runpath_var=
7034   allow_undefined_flag=
7035   enable_shared_with_static_runtimes=no
7036   archive_cmds=
7037   archive_expsym_cmds=
7038   old_archive_From_new_cmds=
7039   old_archive_from_expsyms_cmds=
7040   export_dynamic_flag_spec=
7041   whole_archive_flag_spec=
7042   thread_safe_flag_spec=
7043   hardcode_libdir_flag_spec=
7044   hardcode_libdir_flag_spec_ld=
7045   hardcode_libdir_separator=
7046   hardcode_direct=no
7047   hardcode_minus_L=no
7048   hardcode_shlibpath_var=unsupported
7049   link_all_deplibs=unknown
7050   hardcode_automatic=no
7051   module_cmds=
7052   module_expsym_cmds=
7053   always_export_symbols=no
7054   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7055   # include_expsyms should be a list of space-separated symbols to be *always*
7056   # included in the symbol list
7057   include_expsyms=
7058   # exclude_expsyms can be an extended regexp of symbols to exclude
7059   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7060   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7061   # as well as any symbol that contains `d'.
7062   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7063   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7064   # platforms (ab)use it in PIC code, but their linkers get confused if
7065   # the symbol is explicitly referenced.  Since portable code cannot
7066   # rely on this symbol name, it's probably fine to never include it in
7067   # preloaded symbol tables.
7068   extract_expsyms_cmds=
7069   # Just being paranoid about ensuring that cc_basename is set.
7070   for cc_temp in $compiler""; do
7071   case $cc_temp in
7072     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7073     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7074     \-*) ;;
7075     *) break;;
7076   esac
7077 done
7078 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7079
7080   case $host_os in
7081   cygwin* | mingw* | pw32*)
7082     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7083     # When not using gcc, we currently assume that we are using
7084     # Microsoft Visual C++.
7085     if test "$GCC" != yes; then
7086       with_gnu_ld=no
7087     fi
7088     ;;
7089   interix*)
7090     # we just hope/assume this is gcc and not c89 (= MSVC++)
7091     with_gnu_ld=yes
7092     ;;
7093   openbsd*)
7094     with_gnu_ld=no
7095     ;;
7096   esac
7097
7098   ld_shlibs=yes
7099   if test "$with_gnu_ld" = yes; then
7100     # If archive_cmds runs LD, not CC, wlarc should be empty
7101     wlarc='${wl}'
7102
7103     # Set some defaults for GNU ld with shared library support. These
7104     # are reset later if shared libraries are not supported. Putting them
7105     # here allows them to be overridden if necessary.
7106     runpath_var=LD_RUN_PATH
7107     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7108     export_dynamic_flag_spec='${wl}--export-dynamic'
7109     # ancient GNU ld didn't support --whole-archive et. al.
7110     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7111         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7112       else
7113         whole_archive_flag_spec=
7114     fi
7115     supports_anon_versioning=no
7116     case `$LD -v 2>/dev/null` in
7117       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7118       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7119       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7120       *\ 2.11.*) ;; # other 2.11 versions
7121       *) supports_anon_versioning=yes ;;
7122     esac
7123
7124     # See if GNU ld supports shared libraries.
7125     case $host_os in
7126     aix3* | aix4* | aix5*)
7127       # On AIX/PPC, the GNU linker is very broken
7128       if test "$host_cpu" != ia64; then
7129         ld_shlibs=no
7130         cat <<EOF 1>&2
7131
7132 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7133 *** to be unable to reliably create shared libraries on AIX.
7134 *** Therefore, libtool is disabling shared libraries support.  If you
7135 *** really care for shared libraries, you may want to modify your PATH
7136 *** so that a non-GNU linker is found, and then restart.
7137
7138 EOF
7139       fi
7140       ;;
7141
7142     amigaos*)
7143       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)'
7144       hardcode_libdir_flag_spec='-L$libdir'
7145       hardcode_minus_L=yes
7146
7147       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7148       # that the semantics of dynamic libraries on AmigaOS, at least up
7149       # to version 4, is to share data among multiple programs linked
7150       # with the same dynamic library.  Since this doesn't match the
7151       # behavior of shared libraries on other platforms, we can't use
7152       # them.
7153       ld_shlibs=no
7154       ;;
7155
7156     beos*)
7157       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7158         allow_undefined_flag=unsupported
7159         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7160         # support --undefined.  This deserves some investigation.  FIXME
7161         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7162       else
7163         ld_shlibs=no
7164       fi
7165       ;;
7166
7167     cygwin* | mingw* | pw32*)
7168       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7169       # as there is no search path for DLLs.
7170       hardcode_libdir_flag_spec='-L$libdir'
7171       allow_undefined_flag=unsupported
7172       always_export_symbols=no
7173       enable_shared_with_static_runtimes=yes
7174       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7175
7176       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7177         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7178         # If the export-symbols file already is a .def file (1st line
7179         # is EXPORTS), use it as is; otherwise, prepend...
7180         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7181           cp $export_symbols $output_objdir/$soname.def;
7182         else
7183           echo EXPORTS > $output_objdir/$soname.def;
7184           cat $export_symbols >> $output_objdir/$soname.def;
7185         fi~
7186         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7187       else
7188         ld_shlibs=no
7189       fi
7190       ;;
7191
7192     interix3*)
7193       hardcode_direct=no
7194       hardcode_shlibpath_var=no
7195       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7196       export_dynamic_flag_spec='${wl}-E'
7197       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7198       # Instead, shared libraries are loaded at an image base (0x10000000 by
7199       # default) and relocated if they conflict, which is a slow very memory
7200       # consuming and fragmenting process.  To avoid this, we pick a random,
7201       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7202       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7203       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7204       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7205       ;;
7206
7207     linux*)
7208       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7209         tmp_addflag=
7210         case $cc_basename,$host_cpu in
7211         pgcc*)                          # Portland Group C compiler
7212           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7213           tmp_addflag=' $pic_flag'
7214           ;;
7215         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7216           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7217           tmp_addflag=' $pic_flag -Mnomain' ;;
7218         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7219           tmp_addflag=' -i_dynamic' ;;
7220         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7221           tmp_addflag=' -i_dynamic -nofor_main' ;;
7222         ifc* | ifort*)                  # Intel Fortran compiler
7223           tmp_addflag=' -nofor_main' ;;
7224         esac
7225         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7226
7227         if test $supports_anon_versioning = yes; then
7228           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7229   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7230   $echo "local: *; };" >> $output_objdir/$libname.ver~
7231           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7232         fi
7233       else
7234         ld_shlibs=no
7235       fi
7236       ;;
7237
7238     netbsd*)
7239       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7240         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7241         wlarc=
7242       else
7243         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7244         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7245       fi
7246       ;;
7247
7248     solaris*)
7249       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7250         ld_shlibs=no
7251         cat <<EOF 1>&2
7252
7253 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7254 *** create shared libraries on Solaris systems.  Therefore, libtool
7255 *** is disabling shared libraries support.  We urge you to upgrade GNU
7256 *** binutils to release 2.9.1 or newer.  Another option is to modify
7257 *** your PATH or compiler configuration so that the native linker is
7258 *** used, and then restart.
7259
7260 EOF
7261       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7262         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7263         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7264       else
7265         ld_shlibs=no
7266       fi
7267       ;;
7268
7269     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7270       case `$LD -v 2>&1` in
7271         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7272         ld_shlibs=no
7273         cat <<_LT_EOF 1>&2
7274
7275 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7276 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7277 *** is disabling shared libraries support.  We urge you to upgrade GNU
7278 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7279 *** your PATH or compiler configuration so that the native linker is
7280 *** used, and then restart.
7281
7282 _LT_EOF
7283         ;;
7284         *)
7285           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7286             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7287             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7288             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7289           else
7290             ld_shlibs=no
7291           fi
7292         ;;
7293       esac
7294       ;;
7295
7296     sunos4*)
7297       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7298       wlarc=
7299       hardcode_direct=yes
7300       hardcode_shlibpath_var=no
7301       ;;
7302
7303     *)
7304       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7305         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7306         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7307       else
7308         ld_shlibs=no
7309       fi
7310       ;;
7311     esac
7312
7313     if test "$ld_shlibs" = no; then
7314       runpath_var=
7315       hardcode_libdir_flag_spec=
7316       export_dynamic_flag_spec=
7317       whole_archive_flag_spec=
7318     fi
7319   else
7320     # PORTME fill in a description of your system's linker (not GNU ld)
7321     case $host_os in
7322     aix3*)
7323       allow_undefined_flag=unsupported
7324       always_export_symbols=yes
7325       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'
7326       # Note: this linker hardcodes the directories in LIBPATH if there
7327       # are no directories specified by -L.
7328       hardcode_minus_L=yes
7329       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7330         # Neither direct hardcoding nor static linking is supported with a
7331         # broken collect2.
7332         hardcode_direct=unsupported
7333       fi
7334       ;;
7335
7336     aix4* | aix5*)
7337       if test "$host_cpu" = ia64; then
7338         # On IA64, the linker does run time linking by default, so we don't
7339         # have to do anything special.
7340         aix_use_runtimelinking=no
7341         exp_sym_flag='-Bexport'
7342         no_entry_flag=""
7343       else
7344         # If we're using GNU nm, then we don't want the "-C" option.
7345         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7346         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7347           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'
7348         else
7349           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'
7350         fi
7351         aix_use_runtimelinking=no
7352
7353         # Test if we are trying to use run time linking or normal
7354         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7355         # need to do runtime linking.
7356         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7357           for ld_flag in $LDFLAGS; do
7358           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7359             aix_use_runtimelinking=yes
7360             break
7361           fi
7362           done
7363           ;;
7364         esac
7365
7366         exp_sym_flag='-bexport'
7367         no_entry_flag='-bnoentry'
7368       fi
7369
7370       # When large executables or shared objects are built, AIX ld can
7371       # have problems creating the table of contents.  If linking a library
7372       # or program results in "error TOC overflow" add -mminimal-toc to
7373       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7374       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7375
7376       archive_cmds=''
7377       hardcode_direct=yes
7378       hardcode_libdir_separator=':'
7379       link_all_deplibs=yes
7380
7381       if test "$GCC" = yes; then
7382         case $host_os in aix4.[012]|aix4.[012].*)
7383         # We only want to do this on AIX 4.2 and lower, the check
7384         # below for broken collect2 doesn't work under 4.3+
7385           collect2name=`${CC} -print-prog-name=collect2`
7386           if test -f "$collect2name" && \
7387            strings "$collect2name" | grep resolve_lib_name >/dev/null
7388           then
7389           # We have reworked collect2
7390           hardcode_direct=yes
7391           else
7392           # We have old collect2
7393           hardcode_direct=unsupported
7394           # It fails to find uninstalled libraries when the uninstalled
7395           # path is not listed in the libpath.  Setting hardcode_minus_L
7396           # to unsupported forces relinking
7397           hardcode_minus_L=yes
7398           hardcode_libdir_flag_spec='-L$libdir'
7399           hardcode_libdir_separator=
7400           fi
7401           ;;
7402         esac
7403         shared_flag='-shared'
7404         if test "$aix_use_runtimelinking" = yes; then
7405           shared_flag="$shared_flag "'${wl}-G'
7406         fi
7407       else
7408         # not using gcc
7409         if test "$host_cpu" = ia64; then
7410         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7411         # chokes on -Wl,-G. The following line is correct:
7412           shared_flag='-G'
7413         else
7414           if test "$aix_use_runtimelinking" = yes; then
7415             shared_flag='${wl}-G'
7416           else
7417             shared_flag='${wl}-bM:SRE'
7418           fi
7419         fi
7420       fi
7421
7422       # It seems that -bexpall does not export symbols beginning with
7423       # underscore (_), so it is better to generate a list of symbols to export.
7424       always_export_symbols=yes
7425       if test "$aix_use_runtimelinking" = yes; then
7426         # Warning - without using the other runtime loading flags (-brtl),
7427         # -berok will link without error, but may produce a broken library.
7428         allow_undefined_flag='-berok'
7429        # Determine the default libpath from the value encoded in an empty executable.
7430        cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h.  */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h.  */
7436
7437 int
7438 main ()
7439 {
7440
7441   ;
7442   return 0;
7443 }
7444 _ACEOF
7445 rm -f conftest.$ac_objext conftest$ac_exeext
7446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7447   (eval $ac_link) 2>conftest.er1
7448   ac_status=$?
7449   grep -v '^ *+' conftest.er1 >conftest.err
7450   rm -f conftest.er1
7451   cat conftest.err >&5
7452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453   (exit $ac_status); } &&
7454          { ac_try='test -z "$ac_c_werror_flag"
7455                          || test ! -s conftest.err'
7456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457   (eval $ac_try) 2>&5
7458   ac_status=$?
7459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460   (exit $ac_status); }; } &&
7461          { ac_try='test -s conftest$ac_exeext'
7462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463   (eval $ac_try) 2>&5
7464   ac_status=$?
7465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466   (exit $ac_status); }; }; then
7467
7468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7469 }'`
7470 # Check for a 64-bit object if we didn't find anything.
7471 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; }
7472 }'`; fi
7473 else
7474   echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7476
7477 fi
7478 rm -f conftest.err conftest.$ac_objext \
7479       conftest$ac_exeext conftest.$ac_ext
7480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7481
7482        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7483         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7484        else
7485         if test "$host_cpu" = ia64; then
7486           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7487           allow_undefined_flag="-z nodefs"
7488           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7489         else
7490          # Determine the default libpath from the value encoded in an empty executable.
7491          cat >conftest.$ac_ext <<_ACEOF
7492 /* confdefs.h.  */
7493 _ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h.  */
7497
7498 int
7499 main ()
7500 {
7501
7502   ;
7503   return 0;
7504 }
7505 _ACEOF
7506 rm -f conftest.$ac_objext conftest$ac_exeext
7507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7508   (eval $ac_link) 2>conftest.er1
7509   ac_status=$?
7510   grep -v '^ *+' conftest.er1 >conftest.err
7511   rm -f conftest.er1
7512   cat conftest.err >&5
7513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514   (exit $ac_status); } &&
7515          { ac_try='test -z "$ac_c_werror_flag"
7516                          || test ! -s conftest.err'
7517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518   (eval $ac_try) 2>&5
7519   ac_status=$?
7520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521   (exit $ac_status); }; } &&
7522          { ac_try='test -s conftest$ac_exeext'
7523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524   (eval $ac_try) 2>&5
7525   ac_status=$?
7526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527   (exit $ac_status); }; }; then
7528
7529 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7530 }'`
7531 # Check for a 64-bit object if we didn't find anything.
7532 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; }
7533 }'`; fi
7534 else
7535   echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7537
7538 fi
7539 rm -f conftest.err conftest.$ac_objext \
7540       conftest$ac_exeext conftest.$ac_ext
7541 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7542
7543          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7544           # Warning - without using the other run time loading flags,
7545           # -berok will link without error, but may produce a broken library.
7546           no_undefined_flag=' ${wl}-bernotok'
7547           allow_undefined_flag=' ${wl}-berok'
7548           # Exported symbols can be pulled into shared objects from archives
7549           whole_archive_flag_spec='$convenience'
7550           archive_cmds_need_lc=yes
7551           # This is similar to how AIX traditionally builds its shared libraries.
7552           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7553         fi
7554       fi
7555       ;;
7556
7557     amigaos*)
7558       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)'
7559       hardcode_libdir_flag_spec='-L$libdir'
7560       hardcode_minus_L=yes
7561       # see comment about different semantics on the GNU ld section
7562       ld_shlibs=no
7563       ;;
7564
7565     bsdi[45]*)
7566       export_dynamic_flag_spec=-rdynamic
7567       ;;
7568
7569     cygwin* | mingw* | pw32*)
7570       # When not using gcc, we currently assume that we are using
7571       # Microsoft Visual C++.
7572       # hardcode_libdir_flag_spec is actually meaningless, as there is
7573       # no search path for DLLs.
7574       hardcode_libdir_flag_spec=' '
7575       allow_undefined_flag=unsupported
7576       # Tell ltmain to make .lib files, not .a files.
7577       libext=lib
7578       # Tell ltmain to make .dll files, not .so files.
7579       shrext_cmds=".dll"
7580       # FIXME: Setting linknames here is a bad hack.
7581       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7582       # The linker will automatically build a .lib file if we build a DLL.
7583       old_archive_From_new_cmds='true'
7584       # FIXME: Should let the user specify the lib program.
7585       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7586       fix_srcfile_path='`cygpath -w "$srcfile"`'
7587       enable_shared_with_static_runtimes=yes
7588       ;;
7589
7590     darwin* | rhapsody*)
7591       case $host_os in
7592         rhapsody* | darwin1.[012])
7593          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7594          ;;
7595        *) # Darwin 1.3 on
7596          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7597            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7598          else
7599            case ${MACOSX_DEPLOYMENT_TARGET} in
7600              10.[012])
7601                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7602                ;;
7603              10.*)
7604                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7605                ;;
7606            esac
7607          fi
7608          ;;
7609       esac
7610       archive_cmds_need_lc=no
7611       hardcode_direct=no
7612       hardcode_automatic=yes
7613       hardcode_shlibpath_var=unsupported
7614       whole_archive_flag_spec=''
7615       link_all_deplibs=yes
7616     if test "$GCC" = yes ; then
7617         output_verbose_link_cmd='echo'
7618         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7619       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7620       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7621       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}'
7622       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}'
7623     else
7624       case $cc_basename in
7625         xlc*)
7626          output_verbose_link_cmd='echo'
7627          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7628          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7629           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7630          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7631           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}'
7632           ;;
7633        *)
7634          ld_shlibs=no
7635           ;;
7636       esac
7637     fi
7638       ;;
7639
7640     dgux*)
7641       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7642       hardcode_libdir_flag_spec='-L$libdir'
7643       hardcode_shlibpath_var=no
7644       ;;
7645
7646     freebsd1*)
7647       ld_shlibs=no
7648       ;;
7649
7650     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7651     # support.  Future versions do this automatically, but an explicit c++rt0.o
7652     # does not break anything, and helps significantly (at the cost of a little
7653     # extra space).
7654     freebsd2.2*)
7655       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7656       hardcode_libdir_flag_spec='-R$libdir'
7657       hardcode_direct=yes
7658       hardcode_shlibpath_var=no
7659       ;;
7660
7661     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7662     freebsd2*)
7663       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7664       hardcode_direct=yes
7665       hardcode_minus_L=yes
7666       hardcode_shlibpath_var=no
7667       ;;
7668
7669     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7670     freebsd* | kfreebsd*-gnu | dragonfly*)
7671       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7672       hardcode_libdir_flag_spec='-R$libdir'
7673       hardcode_direct=yes
7674       hardcode_shlibpath_var=no
7675       ;;
7676
7677     hpux9*)
7678       if test "$GCC" = yes; then
7679         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'
7680       else
7681         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'
7682       fi
7683       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7684       hardcode_libdir_separator=:
7685       hardcode_direct=yes
7686
7687       # hardcode_minus_L: Not really in the search PATH,
7688       # but as the default location of the library.
7689       hardcode_minus_L=yes
7690       export_dynamic_flag_spec='${wl}-E'
7691       ;;
7692
7693     hpux10*)
7694       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7695         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7696       else
7697         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7698       fi
7699       if test "$with_gnu_ld" = no; then
7700         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7701         hardcode_libdir_separator=:
7702
7703         hardcode_direct=yes
7704         export_dynamic_flag_spec='${wl}-E'
7705
7706         # hardcode_minus_L: Not really in the search PATH,
7707         # but as the default location of the library.
7708         hardcode_minus_L=yes
7709       fi
7710       ;;
7711
7712     hpux11*)
7713       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7714         case $host_cpu in
7715         hppa*64*)
7716           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7717           ;;
7718         ia64*)
7719           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7720           ;;
7721         *)
7722           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7723           ;;
7724         esac
7725       else
7726         case $host_cpu in
7727         hppa*64*)
7728           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7729           ;;
7730         ia64*)
7731           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7732           ;;
7733         *)
7734           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7735           ;;
7736         esac
7737       fi
7738       if test "$with_gnu_ld" = no; then
7739         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7740         hardcode_libdir_separator=:
7741
7742         case $host_cpu in
7743         hppa*64*|ia64*)
7744           hardcode_libdir_flag_spec_ld='+b $libdir'
7745           hardcode_direct=no
7746           hardcode_shlibpath_var=no
7747           ;;
7748         *)
7749           hardcode_direct=yes
7750           export_dynamic_flag_spec='${wl}-E'
7751
7752           # hardcode_minus_L: Not really in the search PATH,
7753           # but as the default location of the library.
7754           hardcode_minus_L=yes
7755           ;;
7756         esac
7757       fi
7758       ;;
7759
7760     irix5* | irix6* | nonstopux*)
7761       if test "$GCC" = yes; then
7762         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'
7763       else
7764         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'
7765         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7766       fi
7767       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7768       hardcode_libdir_separator=:
7769       link_all_deplibs=yes
7770       ;;
7771
7772     netbsd*)
7773       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7774         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7775       else
7776         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7777       fi
7778       hardcode_libdir_flag_spec='-R$libdir'
7779       hardcode_direct=yes
7780       hardcode_shlibpath_var=no
7781       ;;
7782
7783     newsos6)
7784       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7785       hardcode_direct=yes
7786       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7787       hardcode_libdir_separator=:
7788       hardcode_shlibpath_var=no
7789       ;;
7790
7791     openbsd*)
7792       hardcode_direct=yes
7793       hardcode_shlibpath_var=no
7794       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7795         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7796         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7797         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7798         export_dynamic_flag_spec='${wl}-E'
7799       else
7800        case $host_os in
7801          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7802            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7803            hardcode_libdir_flag_spec='-R$libdir'
7804            ;;
7805          *)
7806            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7807            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7808            ;;
7809        esac
7810       fi
7811       ;;
7812
7813     os2*)
7814       hardcode_libdir_flag_spec='-L$libdir'
7815       hardcode_minus_L=yes
7816       allow_undefined_flag=unsupported
7817       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'
7818       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7819       ;;
7820
7821     osf3*)
7822       if test "$GCC" = yes; then
7823         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7824         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'
7825       else
7826         allow_undefined_flag=' -expect_unresolved \*'
7827         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'
7828       fi
7829       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7830       hardcode_libdir_separator=:
7831       ;;
7832
7833     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7834       if test "$GCC" = yes; then
7835         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7836         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'
7837         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7838       else
7839         allow_undefined_flag=' -expect_unresolved \*'
7840         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'
7841         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7842         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7843
7844         # Both c and cxx compiler support -rpath directly
7845         hardcode_libdir_flag_spec='-rpath $libdir'
7846       fi
7847       hardcode_libdir_separator=:
7848       ;;
7849
7850     solaris*)
7851       no_undefined_flag=' -z text'
7852       if test "$GCC" = yes; then
7853         wlarc='${wl}'
7854         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7855         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7856           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7857       else
7858         wlarc=''
7859         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7860         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7861         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7862       fi
7863       hardcode_libdir_flag_spec='-R$libdir'
7864       hardcode_shlibpath_var=no
7865       case $host_os in
7866       solaris2.[0-5] | solaris2.[0-5].*) ;;
7867       *)
7868         # The compiler driver will combine linker options so we
7869         # cannot just pass the convience library names through
7870         # without $wl, iff we do not link with $LD.
7871         # Luckily, gcc supports the same syntax we need for Sun Studio.
7872         # Supported since Solaris 2.6 (maybe 2.5.1?)
7873         case $wlarc in
7874         '')
7875           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7876         *)
7877           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7878         esac ;;
7879       esac
7880       link_all_deplibs=yes
7881       ;;
7882
7883     sunos4*)
7884       if test "x$host_vendor" = xsequent; then
7885         # Use $CC to link under sequent, because it throws in some extra .o
7886         # files that make .init and .fini sections work.
7887         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7888       else
7889         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7890       fi
7891       hardcode_libdir_flag_spec='-L$libdir'
7892       hardcode_direct=yes
7893       hardcode_minus_L=yes
7894       hardcode_shlibpath_var=no
7895       ;;
7896
7897     sysv4)
7898       case $host_vendor in
7899         sni)
7900           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7901           hardcode_direct=yes # is this really true???
7902         ;;
7903         siemens)
7904           ## LD is ld it makes a PLAMLIB
7905           ## CC just makes a GrossModule.
7906           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7907           reload_cmds='$CC -r -o $output$reload_objs'
7908           hardcode_direct=no
7909         ;;
7910         motorola)
7911           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7912           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7913         ;;
7914       esac
7915       runpath_var='LD_RUN_PATH'
7916       hardcode_shlibpath_var=no
7917       ;;
7918
7919     sysv4.3*)
7920       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7921       hardcode_shlibpath_var=no
7922       export_dynamic_flag_spec='-Bexport'
7923       ;;
7924
7925     sysv4*MP*)
7926       if test -d /usr/nec; then
7927         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7928         hardcode_shlibpath_var=no
7929         runpath_var=LD_RUN_PATH
7930         hardcode_runpath_var=yes
7931         ld_shlibs=yes
7932       fi
7933       ;;
7934
7935     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7936       no_undefined_flag='${wl}-z,text'
7937       archive_cmds_need_lc=no
7938       hardcode_shlibpath_var=no
7939       runpath_var='LD_RUN_PATH'
7940
7941       if test "$GCC" = yes; then
7942         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7943         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7944       else
7945         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7946         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7947       fi
7948       ;;
7949
7950     sysv5* | sco3.2v5* | sco5v6*)
7951       # Note: We can NOT use -z defs as we might desire, because we do not
7952       # link with -lc, and that would cause any symbols used from libc to
7953       # always be unresolved, which means just about no library would
7954       # ever link correctly.  If we're not using GNU ld we use -z text
7955       # though, which does catch some bad symbols but isn't as heavy-handed
7956       # as -z defs.
7957       no_undefined_flag='${wl}-z,text'
7958       allow_undefined_flag='${wl}-z,nodefs'
7959       archive_cmds_need_lc=no
7960       hardcode_shlibpath_var=no
7961       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7962       hardcode_libdir_separator=':'
7963       link_all_deplibs=yes
7964       export_dynamic_flag_spec='${wl}-Bexport'
7965       runpath_var='LD_RUN_PATH'
7966
7967       if test "$GCC" = yes; then
7968         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7969         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7970       else
7971         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7972         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7973       fi
7974       ;;
7975
7976     uts4*)
7977       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7978       hardcode_libdir_flag_spec='-L$libdir'
7979       hardcode_shlibpath_var=no
7980       ;;
7981
7982     *)
7983       ld_shlibs=no
7984       ;;
7985     esac
7986   fi
7987
7988 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7989 echo "${ECHO_T}$ld_shlibs" >&6
7990 test "$ld_shlibs" = no && can_build_shared=no
7991
7992 #
7993 # Do we need to explicitly link libc?
7994 #
7995 case "x$archive_cmds_need_lc" in
7996 x|xyes)
7997   # Assume -lc should be added
7998   archive_cmds_need_lc=yes
7999
8000   if test "$enable_shared" = yes && test "$GCC" = yes; then
8001     case $archive_cmds in
8002     *'~'*)
8003       # FIXME: we may have to deal with multi-command sequences.
8004       ;;
8005     '$CC '*)
8006       # Test whether the compiler implicitly links with -lc since on some
8007       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8008       # to ld, don't add -lc before -lgcc.
8009       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8010 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8011       $rm conftest*
8012       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8013
8014       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8015   (eval $ac_compile) 2>&5
8016   ac_status=$?
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); } 2>conftest.err; then
8019         soname=conftest
8020         lib=conftest
8021         libobjs=conftest.$ac_objext
8022         deplibs=
8023         wl=$lt_prog_compiler_wl
8024         pic_flag=$lt_prog_compiler_pic
8025         compiler_flags=-v
8026         linker_flags=-v
8027         verstring=
8028         output_objdir=.
8029         libname=conftest
8030         lt_save_allow_undefined_flag=$allow_undefined_flag
8031         allow_undefined_flag=
8032         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8033   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8034   ac_status=$?
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); }
8037         then
8038           archive_cmds_need_lc=no
8039         else
8040           archive_cmds_need_lc=yes
8041         fi
8042         allow_undefined_flag=$lt_save_allow_undefined_flag
8043       else
8044         cat conftest.err 1>&5
8045       fi
8046       $rm conftest*
8047       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8048 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8049       ;;
8050     esac
8051   fi
8052   ;;
8053 esac
8054
8055 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8056 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8057 library_names_spec=
8058 libname_spec='lib$name'
8059 soname_spec=
8060 shrext_cmds=".so"
8061 postinstall_cmds=
8062 postuninstall_cmds=
8063 finish_cmds=
8064 finish_eval=
8065 shlibpath_var=
8066 shlibpath_overrides_runpath=unknown
8067 version_type=none
8068 dynamic_linker="$host_os ld.so"
8069 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8070 if test "$GCC" = yes; then
8071   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8072   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8073     # if the path contains ";" then we assume it to be the separator
8074     # otherwise default to the standard path separator (i.e. ":") - it is
8075     # assumed that no part of a normal pathname contains ";" but that should
8076     # okay in the real world where ";" in dirpaths is itself problematic.
8077     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8078   else
8079     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8080   fi
8081 else
8082   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8083 fi
8084 need_lib_prefix=unknown
8085 hardcode_into_libs=no
8086
8087 # when you set need_version to no, make sure it does not cause -set_version
8088 # flags to be left without arguments
8089 need_version=unknown
8090
8091 case $host_os in
8092 aix3*)
8093   version_type=linux
8094   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8095   shlibpath_var=LIBPATH
8096
8097   # AIX 3 has no versioning support, so we append a major version to the name.
8098   soname_spec='${libname}${release}${shared_ext}$major'
8099   ;;
8100
8101 aix4* | aix5*)
8102   version_type=linux
8103   need_lib_prefix=no
8104   need_version=no
8105   hardcode_into_libs=yes
8106   if test "$host_cpu" = ia64; then
8107     # AIX 5 supports IA64
8108     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8109     shlibpath_var=LD_LIBRARY_PATH
8110   else
8111     # With GCC up to 2.95.x, collect2 would create an import file
8112     # for dependence libraries.  The import file would start with
8113     # the line `#! .'.  This would cause the generated library to
8114     # depend on `.', always an invalid library.  This was fixed in
8115     # development snapshots of GCC prior to 3.0.
8116     case $host_os in
8117       aix4 | aix4.[01] | aix4.[01].*)
8118       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8119            echo ' yes '
8120            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8121         :
8122       else
8123         can_build_shared=no
8124       fi
8125       ;;
8126     esac
8127     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8128     # soname into executable. Probably we can add versioning support to
8129     # collect2, so additional links can be useful in future.
8130     if test "$aix_use_runtimelinking" = yes; then
8131       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8132       # instead of lib<name>.a to let people know that these are not
8133       # typical AIX shared libraries.
8134       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8135     else
8136       # We preserve .a as extension for shared libraries through AIX4.2
8137       # and later when we are not doing run time linking.
8138       library_names_spec='${libname}${release}.a $libname.a'
8139       soname_spec='${libname}${release}${shared_ext}$major'
8140     fi
8141     shlibpath_var=LIBPATH
8142   fi
8143   ;;
8144
8145 amigaos*)
8146   library_names_spec='$libname.ixlibrary $libname.a'
8147   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8148   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'
8149   ;;
8150
8151 beos*)
8152   library_names_spec='${libname}${shared_ext}'
8153   dynamic_linker="$host_os ld.so"
8154   shlibpath_var=LIBRARY_PATH
8155   ;;
8156
8157 bsdi[45]*)
8158   version_type=linux
8159   need_version=no
8160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8161   soname_spec='${libname}${release}${shared_ext}$major'
8162   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8163   shlibpath_var=LD_LIBRARY_PATH
8164   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8165   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8166   # the default ld.so.conf also contains /usr/contrib/lib and
8167   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8168   # libtool to hard-code these into programs
8169   ;;
8170
8171 cygwin* | mingw* | pw32*)
8172   version_type=windows
8173   shrext_cmds=".dll"
8174   need_version=no
8175   need_lib_prefix=no
8176
8177   case $GCC,$host_os in
8178   yes,cygwin* | yes,mingw* | yes,pw32*)
8179     library_names_spec='$libname.dll.a'
8180     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8181     postinstall_cmds='base_file=`basename \${file}`~
8182       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8183       dldir=$destdir/`dirname \$dlpath`~
8184       test -d \$dldir || mkdir -p \$dldir~
8185       $install_prog $dir/$dlname \$dldir/$dlname~
8186       chmod a+x \$dldir/$dlname'
8187     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8188       dlpath=$dir/\$dldll~
8189        $rm \$dlpath'
8190     shlibpath_overrides_runpath=yes
8191
8192     case $host_os in
8193     cygwin*)
8194       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8195       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8196       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8197       ;;
8198     mingw*)
8199       # MinGW DLLs use traditional 'lib' prefix
8200       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8201       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8202       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8203         # It is most probably a Windows format PATH printed by
8204         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8205         # path with ; separators, and with drive letters. We can handle the
8206         # drive letters (cygwin fileutils understands them), so leave them,
8207         # especially as we might pass files found there to a mingw objdump,
8208         # which wouldn't understand a cygwinified path. Ahh.
8209         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8210       else
8211         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8212       fi
8213       ;;
8214     pw32*)
8215       # pw32 DLLs use 'pw' prefix rather than 'lib'
8216       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8217       ;;
8218     esac
8219     ;;
8220
8221   *)
8222     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8223     ;;
8224   esac
8225   dynamic_linker='Win32 ld.exe'
8226   # FIXME: first we should search . and the directory the executable is in
8227   shlibpath_var=PATH
8228   ;;
8229
8230 darwin* | rhapsody*)
8231   dynamic_linker="$host_os dyld"
8232   version_type=darwin
8233   need_lib_prefix=no
8234   need_version=no
8235   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8236   soname_spec='${libname}${release}${major}$shared_ext'
8237   shlibpath_overrides_runpath=yes
8238   shlibpath_var=DYLD_LIBRARY_PATH
8239   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8240   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8241   if test "$GCC" = yes; then
8242     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"`
8243   else
8244     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8245   fi
8246   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8247   ;;
8248
8249 dgux*)
8250   version_type=linux
8251   need_lib_prefix=no
8252   need_version=no
8253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8254   soname_spec='${libname}${release}${shared_ext}$major'
8255   shlibpath_var=LD_LIBRARY_PATH
8256   ;;
8257
8258 freebsd1*)
8259   dynamic_linker=no
8260   ;;
8261
8262 kfreebsd*-gnu)
8263   version_type=linux
8264   need_lib_prefix=no
8265   need_version=no
8266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8267   soname_spec='${libname}${release}${shared_ext}$major'
8268   shlibpath_var=LD_LIBRARY_PATH
8269   shlibpath_overrides_runpath=no
8270   hardcode_into_libs=yes
8271   dynamic_linker='GNU ld.so'
8272   ;;
8273
8274 freebsd* | dragonfly*)
8275   # DragonFly does not have aout.  When/if they implement a new
8276   # versioning mechanism, adjust this.
8277   if test -x /usr/bin/objformat; then
8278     objformat=`/usr/bin/objformat`
8279   else
8280     case $host_os in
8281     freebsd[123]*) objformat=aout ;;
8282     *) objformat=elf ;;
8283     esac
8284   fi
8285   version_type=freebsd-$objformat
8286   case $version_type in
8287     freebsd-elf*)
8288       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8289       need_version=no
8290       need_lib_prefix=no
8291       ;;
8292     freebsd-*)
8293       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8294       need_version=yes
8295       ;;
8296   esac
8297   shlibpath_var=LD_LIBRARY_PATH
8298   case $host_os in
8299   freebsd2*)
8300     shlibpath_overrides_runpath=yes
8301     ;;
8302   freebsd3.[01]* | freebsdelf3.[01]*)
8303     shlibpath_overrides_runpath=yes
8304     hardcode_into_libs=yes
8305     ;;
8306   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8307   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8308     shlibpath_overrides_runpath=no
8309     hardcode_into_libs=yes
8310     ;;
8311   freebsd*) # from 4.6 on
8312     shlibpath_overrides_runpath=yes
8313     hardcode_into_libs=yes
8314     ;;
8315   esac
8316   ;;
8317
8318 gnu*)
8319   version_type=linux
8320   need_lib_prefix=no
8321   need_version=no
8322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8323   soname_spec='${libname}${release}${shared_ext}$major'
8324   shlibpath_var=LD_LIBRARY_PATH
8325   hardcode_into_libs=yes
8326   ;;
8327
8328 hpux9* | hpux10* | hpux11*)
8329   # Give a soname corresponding to the major version so that dld.sl refuses to
8330   # link against other versions.
8331   version_type=sunos
8332   need_lib_prefix=no
8333   need_version=no
8334   case $host_cpu in
8335   ia64*)
8336     shrext_cmds='.so'
8337     hardcode_into_libs=yes
8338     dynamic_linker="$host_os dld.so"
8339     shlibpath_var=LD_LIBRARY_PATH
8340     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8341     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8342     soname_spec='${libname}${release}${shared_ext}$major'
8343     if test "X$HPUX_IA64_MODE" = X32; then
8344       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8345     else
8346       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8347     fi
8348     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8349     ;;
8350    hppa*64*)
8351      shrext_cmds='.sl'
8352      hardcode_into_libs=yes
8353      dynamic_linker="$host_os dld.sl"
8354      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8355      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8356      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8357      soname_spec='${libname}${release}${shared_ext}$major'
8358      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8359      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8360      ;;
8361    *)
8362     shrext_cmds='.sl'
8363     dynamic_linker="$host_os dld.sl"
8364     shlibpath_var=SHLIB_PATH
8365     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8366     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8367     soname_spec='${libname}${release}${shared_ext}$major'
8368     ;;
8369   esac
8370   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8371   postinstall_cmds='chmod 555 $lib'
8372   ;;
8373
8374 interix3*)
8375   version_type=linux
8376   need_lib_prefix=no
8377   need_version=no
8378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8379   soname_spec='${libname}${release}${shared_ext}$major'
8380   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8381   shlibpath_var=LD_LIBRARY_PATH
8382   shlibpath_overrides_runpath=no
8383   hardcode_into_libs=yes
8384   ;;
8385
8386 irix5* | irix6* | nonstopux*)
8387   case $host_os in
8388     nonstopux*) version_type=nonstopux ;;
8389     *)
8390         if test "$lt_cv_prog_gnu_ld" = yes; then
8391                 version_type=linux
8392         else
8393                 version_type=irix
8394         fi ;;
8395   esac
8396   need_lib_prefix=no
8397   need_version=no
8398   soname_spec='${libname}${release}${shared_ext}$major'
8399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8400   case $host_os in
8401   irix5* | nonstopux*)
8402     libsuff= shlibsuff=
8403     ;;
8404   *)
8405     case $LD in # libtool.m4 will add one of these switches to LD
8406     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8407       libsuff= shlibsuff= libmagic=32-bit;;
8408     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8409       libsuff=32 shlibsuff=N32 libmagic=N32;;
8410     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8411       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8412     *) libsuff= shlibsuff= libmagic=never-match;;
8413     esac
8414     ;;
8415   esac
8416   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8417   shlibpath_overrides_runpath=no
8418   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8419   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8420   hardcode_into_libs=yes
8421   ;;
8422
8423 # No shared lib support for Linux oldld, aout, or coff.
8424 linux*oldld* | linux*aout* | linux*coff*)
8425   dynamic_linker=no
8426   ;;
8427
8428 # This must be Linux ELF.
8429 linux*)
8430   version_type=linux
8431   need_lib_prefix=no
8432   need_version=no
8433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8434   soname_spec='${libname}${release}${shared_ext}$major'
8435   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8436   shlibpath_var=LD_LIBRARY_PATH
8437   shlibpath_overrides_runpath=no
8438   # This implies no fast_install, which is unacceptable.
8439   # Some rework will be needed to allow for fast_install
8440   # before this can be enabled.
8441   hardcode_into_libs=yes
8442
8443   # find out which ABI we are using
8444   libsuff=
8445   case "$host_cpu" in
8446   x86_64*|s390x*|powerpc64*)
8447     echo '#line 8447 "configure"' > conftest.$ac_ext
8448     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8449   (eval $ac_compile) 2>&5
8450   ac_status=$?
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); }; then
8453       case `/usr/bin/file conftest.$ac_objext` in
8454       *64-bit*)
8455         libsuff=64
8456         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8457         ;;
8458       esac
8459     fi
8460     rm -rf conftest*
8461     ;;
8462   esac
8463
8464   # Append ld.so.conf contents to the search path
8465   if test -f /etc/ld.so.conf; then
8466     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8467     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8468   fi
8469
8470   # We used to test for /lib/ld.so.1 and disable shared libraries on
8471   # powerpc, because MkLinux only supported shared libraries with the
8472   # GNU dynamic linker.  Since this was broken with cross compilers,
8473   # most powerpc-linux boxes support dynamic linking these days and
8474   # people can always --disable-shared, the test was removed, and we
8475   # assume the GNU/Linux dynamic linker is in use.
8476   dynamic_linker='GNU/Linux ld.so'
8477   ;;
8478
8479 knetbsd*-gnu)
8480   version_type=linux
8481   need_lib_prefix=no
8482   need_version=no
8483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8484   soname_spec='${libname}${release}${shared_ext}$major'
8485   shlibpath_var=LD_LIBRARY_PATH
8486   shlibpath_overrides_runpath=no
8487   hardcode_into_libs=yes
8488   dynamic_linker='GNU ld.so'
8489   ;;
8490
8491 netbsd*)
8492   version_type=sunos
8493   need_lib_prefix=no
8494   need_version=no
8495   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8496     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8497     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8498     dynamic_linker='NetBSD (a.out) ld.so'
8499   else
8500     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8501     soname_spec='${libname}${release}${shared_ext}$major'
8502     dynamic_linker='NetBSD ld.elf_so'
8503   fi
8504   shlibpath_var=LD_LIBRARY_PATH
8505   shlibpath_overrides_runpath=yes
8506   hardcode_into_libs=yes
8507   ;;
8508
8509 newsos6)
8510   version_type=linux
8511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8512   shlibpath_var=LD_LIBRARY_PATH
8513   shlibpath_overrides_runpath=yes
8514   ;;
8515
8516 nto-qnx*)
8517   version_type=linux
8518   need_lib_prefix=no
8519   need_version=no
8520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8521   soname_spec='${libname}${release}${shared_ext}$major'
8522   shlibpath_var=LD_LIBRARY_PATH
8523   shlibpath_overrides_runpath=yes
8524   ;;
8525
8526 openbsd*)
8527   version_type=sunos
8528   sys_lib_dlsearch_path_spec="/usr/lib"
8529   need_lib_prefix=no
8530   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8531   case $host_os in
8532     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8533     *)                         need_version=no  ;;
8534   esac
8535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8536   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8537   shlibpath_var=LD_LIBRARY_PATH
8538   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8539     case $host_os in
8540       openbsd2.[89] | openbsd2.[89].*)
8541         shlibpath_overrides_runpath=no
8542         ;;
8543       *)
8544         shlibpath_overrides_runpath=yes
8545         ;;
8546       esac
8547   else
8548     shlibpath_overrides_runpath=yes
8549   fi
8550   ;;
8551
8552 os2*)
8553   libname_spec='$name'
8554   shrext_cmds=".dll"
8555   need_lib_prefix=no
8556   library_names_spec='$libname${shared_ext} $libname.a'
8557   dynamic_linker='OS/2 ld.exe'
8558   shlibpath_var=LIBPATH
8559   ;;
8560
8561 osf3* | osf4* | osf5*)
8562   version_type=osf
8563   need_lib_prefix=no
8564   need_version=no
8565   soname_spec='${libname}${release}${shared_ext}$major'
8566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8567   shlibpath_var=LD_LIBRARY_PATH
8568   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8569   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8570   ;;
8571
8572 solaris*)
8573   version_type=linux
8574   need_lib_prefix=no
8575   need_version=no
8576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8577   soname_spec='${libname}${release}${shared_ext}$major'
8578   shlibpath_var=LD_LIBRARY_PATH
8579   shlibpath_overrides_runpath=yes
8580   hardcode_into_libs=yes
8581   # ldd complains unless libraries are executable
8582   postinstall_cmds='chmod +x $lib'
8583   ;;
8584
8585 sunos4*)
8586   version_type=sunos
8587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8588   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8589   shlibpath_var=LD_LIBRARY_PATH
8590   shlibpath_overrides_runpath=yes
8591   if test "$with_gnu_ld" = yes; then
8592     need_lib_prefix=no
8593   fi
8594   need_version=yes
8595   ;;
8596
8597 sysv4 | sysv4.3*)
8598   version_type=linux
8599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8600   soname_spec='${libname}${release}${shared_ext}$major'
8601   shlibpath_var=LD_LIBRARY_PATH
8602   case $host_vendor in
8603     sni)
8604       shlibpath_overrides_runpath=no
8605       need_lib_prefix=no
8606       export_dynamic_flag_spec='${wl}-Blargedynsym'
8607       runpath_var=LD_RUN_PATH
8608       ;;
8609     siemens)
8610       need_lib_prefix=no
8611       ;;
8612     motorola)
8613       need_lib_prefix=no
8614       need_version=no
8615       shlibpath_overrides_runpath=no
8616       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8617       ;;
8618   esac
8619   ;;
8620
8621 sysv4*MP*)
8622   if test -d /usr/nec ;then
8623     version_type=linux
8624     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8625     soname_spec='$libname${shared_ext}.$major'
8626     shlibpath_var=LD_LIBRARY_PATH
8627   fi
8628   ;;
8629
8630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8631   version_type=freebsd-elf
8632   need_lib_prefix=no
8633   need_version=no
8634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8635   soname_spec='${libname}${release}${shared_ext}$major'
8636   shlibpath_var=LD_LIBRARY_PATH
8637   hardcode_into_libs=yes
8638   if test "$with_gnu_ld" = yes; then
8639     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8640     shlibpath_overrides_runpath=no
8641   else
8642     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8643     shlibpath_overrides_runpath=yes
8644     case $host_os in
8645       sco3.2v5*)
8646         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8647         ;;
8648     esac
8649   fi
8650   sys_lib_dlsearch_path_spec='/usr/lib'
8651   ;;
8652
8653 uts4*)
8654   version_type=linux
8655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8656   soname_spec='${libname}${release}${shared_ext}$major'
8657   shlibpath_var=LD_LIBRARY_PATH
8658   ;;
8659
8660 *)
8661   dynamic_linker=no
8662   ;;
8663 esac
8664 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8665 echo "${ECHO_T}$dynamic_linker" >&6
8666 test "$dynamic_linker" = no && can_build_shared=no
8667
8668 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8669 if test "$GCC" = yes; then
8670   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8671 fi
8672
8673 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8674 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8675 hardcode_action=
8676 if test -n "$hardcode_libdir_flag_spec" || \
8677    test -n "$runpath_var" || \
8678    test "X$hardcode_automatic" = "Xyes" ; then
8679
8680   # We can hardcode non-existant directories.
8681   if test "$hardcode_direct" != no &&
8682      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8683      # have to relink, otherwise we might link with an installed library
8684      # when we should be linking with a yet-to-be-installed one
8685      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8686      test "$hardcode_minus_L" != no; then
8687     # Linking always hardcodes the temporary library directory.
8688     hardcode_action=relink
8689   else
8690     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8691     hardcode_action=immediate
8692   fi
8693 else
8694   # We cannot hardcode anything, or else we can only hardcode existing
8695   # directories.
8696   hardcode_action=unsupported
8697 fi
8698 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8699 echo "${ECHO_T}$hardcode_action" >&6
8700
8701 if test "$hardcode_action" = relink; then
8702   # Fast installation is not supported
8703   enable_fast_install=no
8704 elif test "$shlibpath_overrides_runpath" = yes ||
8705      test "$enable_shared" = no; then
8706   # Fast installation is not necessary
8707   enable_fast_install=needless
8708 fi
8709
8710 striplib=
8711 old_striplib=
8712 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8713 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8714 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8715   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8716   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8717   echo "$as_me:$LINENO: result: yes" >&5
8718 echo "${ECHO_T}yes" >&6
8719 else
8720 # FIXME - insert some real tests, host_os isn't really good enough
8721   case $host_os in
8722    darwin*)
8723        if test -n "$STRIP" ; then
8724          striplib="$STRIP -x"
8725          echo "$as_me:$LINENO: result: yes" >&5
8726 echo "${ECHO_T}yes" >&6
8727        else
8728   echo "$as_me:$LINENO: result: no" >&5
8729 echo "${ECHO_T}no" >&6
8730 fi
8731        ;;
8732    *)
8733   echo "$as_me:$LINENO: result: no" >&5
8734 echo "${ECHO_T}no" >&6
8735     ;;
8736   esac
8737 fi
8738
8739 if test "x$enable_dlopen" != xyes; then
8740   enable_dlopen=unknown
8741   enable_dlopen_self=unknown
8742   enable_dlopen_self_static=unknown
8743 else
8744   lt_cv_dlopen=no
8745   lt_cv_dlopen_libs=
8746
8747   case $host_os in
8748   beos*)
8749     lt_cv_dlopen="load_add_on"
8750     lt_cv_dlopen_libs=
8751     lt_cv_dlopen_self=yes
8752     ;;
8753
8754   mingw* | pw32*)
8755     lt_cv_dlopen="LoadLibrary"
8756     lt_cv_dlopen_libs=
8757    ;;
8758
8759   cygwin*)
8760     lt_cv_dlopen="dlopen"
8761     lt_cv_dlopen_libs=
8762    ;;
8763
8764   darwin*)
8765   # if libdl is installed we need to link against it
8766     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8767 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8768 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8769   echo $ECHO_N "(cached) $ECHO_C" >&6
8770 else
8771   ac_check_lib_save_LIBS=$LIBS
8772 LIBS="-ldl  $LIBS"
8773 cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h.  */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h.  */
8779
8780 /* Override any gcc2 internal prototype to avoid an error.  */
8781 #ifdef __cplusplus
8782 extern "C"
8783 #endif
8784 /* We use char because int might match the return type of a gcc2
8785    builtin and then its argument prototype would still apply.  */
8786 char dlopen ();
8787 int
8788 main ()
8789 {
8790 dlopen ();
8791   ;
8792   return 0;
8793 }
8794 _ACEOF
8795 rm -f conftest.$ac_objext conftest$ac_exeext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797   (eval $ac_link) 2>conftest.er1
8798   ac_status=$?
8799   grep -v '^ *+' conftest.er1 >conftest.err
8800   rm -f conftest.er1
8801   cat conftest.err >&5
8802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803   (exit $ac_status); } &&
8804          { ac_try='test -z "$ac_c_werror_flag"
8805                          || test ! -s conftest.err'
8806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807   (eval $ac_try) 2>&5
8808   ac_status=$?
8809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810   (exit $ac_status); }; } &&
8811          { ac_try='test -s conftest$ac_exeext'
8812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813   (eval $ac_try) 2>&5
8814   ac_status=$?
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); }; }; then
8817   ac_cv_lib_dl_dlopen=yes
8818 else
8819   echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8821
8822 ac_cv_lib_dl_dlopen=no
8823 fi
8824 rm -f conftest.err conftest.$ac_objext \
8825       conftest$ac_exeext conftest.$ac_ext
8826 LIBS=$ac_check_lib_save_LIBS
8827 fi
8828 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8829 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8830 if test $ac_cv_lib_dl_dlopen = yes; then
8831   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8832 else
8833
8834     lt_cv_dlopen="dyld"
8835     lt_cv_dlopen_libs=
8836     lt_cv_dlopen_self=yes
8837
8838 fi
8839
8840    ;;
8841
8842   *)
8843     echo "$as_me:$LINENO: checking for shl_load" >&5
8844 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8845 if test "${ac_cv_func_shl_load+set}" = set; then
8846   echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848   cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h.  */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h.  */
8854 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8856 #define shl_load innocuous_shl_load
8857
8858 /* System header to define __stub macros and hopefully few prototypes,
8859     which can conflict with char shl_load (); below.
8860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8861     <limits.h> exists even on freestanding compilers.  */
8862
8863 #ifdef __STDC__
8864 # include <limits.h>
8865 #else
8866 # include <assert.h>
8867 #endif
8868
8869 #undef shl_load
8870
8871 /* Override any gcc2 internal prototype to avoid an error.  */
8872 #ifdef __cplusplus
8873 extern "C"
8874 {
8875 #endif
8876 /* We use char because int might match the return type of a gcc2
8877    builtin and then its argument prototype would still apply.  */
8878 char shl_load ();
8879 /* The GNU C library defines this for functions which it implements
8880     to always fail with ENOSYS.  Some functions are actually named
8881     something starting with __ and the normal name is an alias.  */
8882 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8883 choke me
8884 #else
8885 char (*f) () = shl_load;
8886 #endif
8887 #ifdef __cplusplus
8888 }
8889 #endif
8890
8891 int
8892 main ()
8893 {
8894 return f != shl_load;
8895   ;
8896   return 0;
8897 }
8898 _ACEOF
8899 rm -f conftest.$ac_objext conftest$ac_exeext
8900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8901   (eval $ac_link) 2>conftest.er1
8902   ac_status=$?
8903   grep -v '^ *+' conftest.er1 >conftest.err
8904   rm -f conftest.er1
8905   cat conftest.err >&5
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); } &&
8908          { ac_try='test -z "$ac_c_werror_flag"
8909                          || test ! -s conftest.err'
8910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911   (eval $ac_try) 2>&5
8912   ac_status=$?
8913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); }; } &&
8915          { ac_try='test -s conftest$ac_exeext'
8916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917   (eval $ac_try) 2>&5
8918   ac_status=$?
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   (exit $ac_status); }; }; then
8921   ac_cv_func_shl_load=yes
8922 else
8923   echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8925
8926 ac_cv_func_shl_load=no
8927 fi
8928 rm -f conftest.err conftest.$ac_objext \
8929       conftest$ac_exeext conftest.$ac_ext
8930 fi
8931 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8932 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8933 if test $ac_cv_func_shl_load = yes; then
8934   lt_cv_dlopen="shl_load"
8935 else
8936   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8937 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8938 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941   ac_check_lib_save_LIBS=$LIBS
8942 LIBS="-ldld  $LIBS"
8943 cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h.  */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h.  */
8949
8950 /* Override any gcc2 internal prototype to avoid an error.  */
8951 #ifdef __cplusplus
8952 extern "C"
8953 #endif
8954 /* We use char because int might match the return type of a gcc2
8955    builtin and then its argument prototype would still apply.  */
8956 char shl_load ();
8957 int
8958 main ()
8959 {
8960 shl_load ();
8961   ;
8962   return 0;
8963 }
8964 _ACEOF
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8967   (eval $ac_link) 2>conftest.er1
8968   ac_status=$?
8969   grep -v '^ *+' conftest.er1 >conftest.err
8970   rm -f conftest.er1
8971   cat conftest.err >&5
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); } &&
8974          { ac_try='test -z "$ac_c_werror_flag"
8975                          || test ! -s conftest.err'
8976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977   (eval $ac_try) 2>&5
8978   ac_status=$?
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); }; } &&
8981          { ac_try='test -s conftest$ac_exeext'
8982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983   (eval $ac_try) 2>&5
8984   ac_status=$?
8985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986   (exit $ac_status); }; }; then
8987   ac_cv_lib_dld_shl_load=yes
8988 else
8989   echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8991
8992 ac_cv_lib_dld_shl_load=no
8993 fi
8994 rm -f conftest.err conftest.$ac_objext \
8995       conftest$ac_exeext conftest.$ac_ext
8996 LIBS=$ac_check_lib_save_LIBS
8997 fi
8998 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8999 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9000 if test $ac_cv_lib_dld_shl_load = yes; then
9001   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9002 else
9003   echo "$as_me:$LINENO: checking for dlopen" >&5
9004 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9005 if test "${ac_cv_func_dlopen+set}" = set; then
9006   echo $ECHO_N "(cached) $ECHO_C" >&6
9007 else
9008   cat >conftest.$ac_ext <<_ACEOF
9009 /* confdefs.h.  */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h.  */
9014 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9016 #define dlopen innocuous_dlopen
9017
9018 /* System header to define __stub macros and hopefully few prototypes,
9019     which can conflict with char dlopen (); below.
9020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9021     <limits.h> exists even on freestanding compilers.  */
9022
9023 #ifdef __STDC__
9024 # include <limits.h>
9025 #else
9026 # include <assert.h>
9027 #endif
9028
9029 #undef dlopen
9030
9031 /* Override any gcc2 internal prototype to avoid an error.  */
9032 #ifdef __cplusplus
9033 extern "C"
9034 {
9035 #endif
9036 /* We use char because int might match the return type of a gcc2
9037    builtin and then its argument prototype would still apply.  */
9038 char dlopen ();
9039 /* The GNU C library defines this for functions which it implements
9040     to always fail with ENOSYS.  Some functions are actually named
9041     something starting with __ and the normal name is an alias.  */
9042 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9043 choke me
9044 #else
9045 char (*f) () = dlopen;
9046 #endif
9047 #ifdef __cplusplus
9048 }
9049 #endif
9050
9051 int
9052 main ()
9053 {
9054 return f != dlopen;
9055   ;
9056   return 0;
9057 }
9058 _ACEOF
9059 rm -f conftest.$ac_objext conftest$ac_exeext
9060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9061   (eval $ac_link) 2>conftest.er1
9062   ac_status=$?
9063   grep -v '^ *+' conftest.er1 >conftest.err
9064   rm -f conftest.er1
9065   cat conftest.err >&5
9066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067   (exit $ac_status); } &&
9068          { ac_try='test -z "$ac_c_werror_flag"
9069                          || test ! -s conftest.err'
9070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071   (eval $ac_try) 2>&5
9072   ac_status=$?
9073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074   (exit $ac_status); }; } &&
9075          { ac_try='test -s conftest$ac_exeext'
9076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077   (eval $ac_try) 2>&5
9078   ac_status=$?
9079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080   (exit $ac_status); }; }; then
9081   ac_cv_func_dlopen=yes
9082 else
9083   echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9085
9086 ac_cv_func_dlopen=no
9087 fi
9088 rm -f conftest.err conftest.$ac_objext \
9089       conftest$ac_exeext conftest.$ac_ext
9090 fi
9091 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9092 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9093 if test $ac_cv_func_dlopen = yes; then
9094   lt_cv_dlopen="dlopen"
9095 else
9096   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9097 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9098 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9099   echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101   ac_check_lib_save_LIBS=$LIBS
9102 LIBS="-ldl  $LIBS"
9103 cat >conftest.$ac_ext <<_ACEOF
9104 /* confdefs.h.  */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h.  */
9109
9110 /* Override any gcc2 internal prototype to avoid an error.  */
9111 #ifdef __cplusplus
9112 extern "C"
9113 #endif
9114 /* We use char because int might match the return type of a gcc2
9115    builtin and then its argument prototype would still apply.  */
9116 char dlopen ();
9117 int
9118 main ()
9119 {
9120 dlopen ();
9121   ;
9122   return 0;
9123 }
9124 _ACEOF
9125 rm -f conftest.$ac_objext conftest$ac_exeext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9127   (eval $ac_link) 2>conftest.er1
9128   ac_status=$?
9129   grep -v '^ *+' conftest.er1 >conftest.err
9130   rm -f conftest.er1
9131   cat conftest.err >&5
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); } &&
9134          { ac_try='test -z "$ac_c_werror_flag"
9135                          || test ! -s conftest.err'
9136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137   (eval $ac_try) 2>&5
9138   ac_status=$?
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); }; } &&
9141          { ac_try='test -s conftest$ac_exeext'
9142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143   (eval $ac_try) 2>&5
9144   ac_status=$?
9145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146   (exit $ac_status); }; }; then
9147   ac_cv_lib_dl_dlopen=yes
9148 else
9149   echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9151
9152 ac_cv_lib_dl_dlopen=no
9153 fi
9154 rm -f conftest.err conftest.$ac_objext \
9155       conftest$ac_exeext conftest.$ac_ext
9156 LIBS=$ac_check_lib_save_LIBS
9157 fi
9158 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9159 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9160 if test $ac_cv_lib_dl_dlopen = yes; then
9161   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9162 else
9163   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9164 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9165 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9166   echo $ECHO_N "(cached) $ECHO_C" >&6
9167 else
9168   ac_check_lib_save_LIBS=$LIBS
9169 LIBS="-lsvld  $LIBS"
9170 cat >conftest.$ac_ext <<_ACEOF
9171 /* confdefs.h.  */
9172 _ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h.  */
9176
9177 /* Override any gcc2 internal prototype to avoid an error.  */
9178 #ifdef __cplusplus
9179 extern "C"
9180 #endif
9181 /* We use char because int might match the return type of a gcc2
9182    builtin and then its argument prototype would still apply.  */
9183 char dlopen ();
9184 int
9185 main ()
9186 {
9187 dlopen ();
9188   ;
9189   return 0;
9190 }
9191 _ACEOF
9192 rm -f conftest.$ac_objext conftest$ac_exeext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9194   (eval $ac_link) 2>conftest.er1
9195   ac_status=$?
9196   grep -v '^ *+' conftest.er1 >conftest.err
9197   rm -f conftest.er1
9198   cat conftest.err >&5
9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); } &&
9201          { ac_try='test -z "$ac_c_werror_flag"
9202                          || test ! -s conftest.err'
9203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204   (eval $ac_try) 2>&5
9205   ac_status=$?
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); }; } &&
9208          { ac_try='test -s conftest$ac_exeext'
9209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210   (eval $ac_try) 2>&5
9211   ac_status=$?
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); }; }; then
9214   ac_cv_lib_svld_dlopen=yes
9215 else
9216   echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9218
9219 ac_cv_lib_svld_dlopen=no
9220 fi
9221 rm -f conftest.err conftest.$ac_objext \
9222       conftest$ac_exeext conftest.$ac_ext
9223 LIBS=$ac_check_lib_save_LIBS
9224 fi
9225 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9226 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9227 if test $ac_cv_lib_svld_dlopen = yes; then
9228   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9229 else
9230   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9231 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9232 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9233   echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235   ac_check_lib_save_LIBS=$LIBS
9236 LIBS="-ldld  $LIBS"
9237 cat >conftest.$ac_ext <<_ACEOF
9238 /* confdefs.h.  */
9239 _ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h.  */
9243
9244 /* Override any gcc2 internal prototype to avoid an error.  */
9245 #ifdef __cplusplus
9246 extern "C"
9247 #endif
9248 /* We use char because int might match the return type of a gcc2
9249    builtin and then its argument prototype would still apply.  */
9250 char dld_link ();
9251 int
9252 main ()
9253 {
9254 dld_link ();
9255   ;
9256   return 0;
9257 }
9258 _ACEOF
9259 rm -f conftest.$ac_objext conftest$ac_exeext
9260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9261   (eval $ac_link) 2>conftest.er1
9262   ac_status=$?
9263   grep -v '^ *+' conftest.er1 >conftest.err
9264   rm -f conftest.er1
9265   cat conftest.err >&5
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); } &&
9268          { ac_try='test -z "$ac_c_werror_flag"
9269                          || test ! -s conftest.err'
9270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271   (eval $ac_try) 2>&5
9272   ac_status=$?
9273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274   (exit $ac_status); }; } &&
9275          { ac_try='test -s conftest$ac_exeext'
9276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277   (eval $ac_try) 2>&5
9278   ac_status=$?
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); }; }; then
9281   ac_cv_lib_dld_dld_link=yes
9282 else
9283   echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9285
9286 ac_cv_lib_dld_dld_link=no
9287 fi
9288 rm -f conftest.err conftest.$ac_objext \
9289       conftest$ac_exeext conftest.$ac_ext
9290 LIBS=$ac_check_lib_save_LIBS
9291 fi
9292 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9293 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9294 if test $ac_cv_lib_dld_dld_link = yes; then
9295   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9296 fi
9297
9298
9299 fi
9300
9301
9302 fi
9303
9304
9305 fi
9306
9307
9308 fi
9309
9310
9311 fi
9312
9313     ;;
9314   esac
9315
9316   if test "x$lt_cv_dlopen" != xno; then
9317     enable_dlopen=yes
9318   else
9319     enable_dlopen=no
9320   fi
9321
9322   case $lt_cv_dlopen in
9323   dlopen)
9324     save_CPPFLAGS="$CPPFLAGS"
9325     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9326
9327     save_LDFLAGS="$LDFLAGS"
9328     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9329
9330     save_LIBS="$LIBS"
9331     LIBS="$lt_cv_dlopen_libs $LIBS"
9332
9333     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9334 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9335 if test "${lt_cv_dlopen_self+set}" = set; then
9336   echo $ECHO_N "(cached) $ECHO_C" >&6
9337 else
9338           if test "$cross_compiling" = yes; then :
9339   lt_cv_dlopen_self=cross
9340 else
9341   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9342   lt_status=$lt_dlunknown
9343   cat > conftest.$ac_ext <<EOF
9344 #line 9344 "configure"
9345 #include "confdefs.h"
9346
9347 #if HAVE_DLFCN_H
9348 #include <dlfcn.h>
9349 #endif
9350
9351 #include <stdio.h>
9352
9353 #ifdef RTLD_GLOBAL
9354 #  define LT_DLGLOBAL           RTLD_GLOBAL
9355 #else
9356 #  ifdef DL_GLOBAL
9357 #    define LT_DLGLOBAL         DL_GLOBAL
9358 #  else
9359 #    define LT_DLGLOBAL         0
9360 #  endif
9361 #endif
9362
9363 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9364    find out it does not work in some platform. */
9365 #ifndef LT_DLLAZY_OR_NOW
9366 #  ifdef RTLD_LAZY
9367 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9368 #  else
9369 #    ifdef DL_LAZY
9370 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9371 #    else
9372 #      ifdef RTLD_NOW
9373 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9374 #      else
9375 #        ifdef DL_NOW
9376 #          define LT_DLLAZY_OR_NOW      DL_NOW
9377 #        else
9378 #          define LT_DLLAZY_OR_NOW      0
9379 #        endif
9380 #      endif
9381 #    endif
9382 #  endif
9383 #endif
9384
9385 #ifdef __cplusplus
9386 extern "C" void exit (int);
9387 #endif
9388
9389 void fnord() { int i=42;}
9390 int main ()
9391 {
9392   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9393   int status = $lt_dlunknown;
9394
9395   if (self)
9396     {
9397       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9398       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9399       /* dlclose (self); */
9400     }
9401   else
9402     puts (dlerror ());
9403
9404     exit (status);
9405 }
9406 EOF
9407   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9408   (eval $ac_link) 2>&5
9409   ac_status=$?
9410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9412     (./conftest; exit; ) >&5 2>/dev/null
9413     lt_status=$?
9414     case x$lt_status in
9415       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9416       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9417       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9418     esac
9419   else :
9420     # compilation failed
9421     lt_cv_dlopen_self=no
9422   fi
9423 fi
9424 rm -fr conftest*
9425
9426
9427 fi
9428 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9429 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9430
9431     if test "x$lt_cv_dlopen_self" = xyes; then
9432       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9433       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9434 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9435 if test "${lt_cv_dlopen_self_static+set}" = set; then
9436   echo $ECHO_N "(cached) $ECHO_C" >&6
9437 else
9438           if test "$cross_compiling" = yes; then :
9439   lt_cv_dlopen_self_static=cross
9440 else
9441   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9442   lt_status=$lt_dlunknown
9443   cat > conftest.$ac_ext <<EOF
9444 #line 9444 "configure"
9445 #include "confdefs.h"
9446
9447 #if HAVE_DLFCN_H
9448 #include <dlfcn.h>
9449 #endif
9450
9451 #include <stdio.h>
9452
9453 #ifdef RTLD_GLOBAL
9454 #  define LT_DLGLOBAL           RTLD_GLOBAL
9455 #else
9456 #  ifdef DL_GLOBAL
9457 #    define LT_DLGLOBAL         DL_GLOBAL
9458 #  else
9459 #    define LT_DLGLOBAL         0
9460 #  endif
9461 #endif
9462
9463 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9464    find out it does not work in some platform. */
9465 #ifndef LT_DLLAZY_OR_NOW
9466 #  ifdef RTLD_LAZY
9467 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9468 #  else
9469 #    ifdef DL_LAZY
9470 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9471 #    else
9472 #      ifdef RTLD_NOW
9473 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9474 #      else
9475 #        ifdef DL_NOW
9476 #          define LT_DLLAZY_OR_NOW      DL_NOW
9477 #        else
9478 #          define LT_DLLAZY_OR_NOW      0
9479 #        endif
9480 #      endif
9481 #    endif
9482 #  endif
9483 #endif
9484
9485 #ifdef __cplusplus
9486 extern "C" void exit (int);
9487 #endif
9488
9489 void fnord() { int i=42;}
9490 int main ()
9491 {
9492   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9493   int status = $lt_dlunknown;
9494
9495   if (self)
9496     {
9497       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9498       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9499       /* dlclose (self); */
9500     }
9501   else
9502     puts (dlerror ());
9503
9504     exit (status);
9505 }
9506 EOF
9507   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9508   (eval $ac_link) 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9512     (./conftest; exit; ) >&5 2>/dev/null
9513     lt_status=$?
9514     case x$lt_status in
9515       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9516       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9517       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9518     esac
9519   else :
9520     # compilation failed
9521     lt_cv_dlopen_self_static=no
9522   fi
9523 fi
9524 rm -fr conftest*
9525
9526
9527 fi
9528 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9529 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9530     fi
9531
9532     CPPFLAGS="$save_CPPFLAGS"
9533     LDFLAGS="$save_LDFLAGS"
9534     LIBS="$save_LIBS"
9535     ;;
9536   esac
9537
9538   case $lt_cv_dlopen_self in
9539   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9540   *) enable_dlopen_self=unknown ;;
9541   esac
9542
9543   case $lt_cv_dlopen_self_static in
9544   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9545   *) enable_dlopen_self_static=unknown ;;
9546   esac
9547 fi
9548
9549
9550 # Report which library types will actually be built
9551 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9552 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9553 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9554 echo "${ECHO_T}$can_build_shared" >&6
9555
9556 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9557 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9558 test "$can_build_shared" = "no" && enable_shared=no
9559
9560 # On AIX, shared libraries and static libraries use the same namespace, and
9561 # are all built from PIC.
9562 case $host_os in
9563 aix3*)
9564   test "$enable_shared" = yes && enable_static=no
9565   if test -n "$RANLIB"; then
9566     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9567     postinstall_cmds='$RANLIB $lib'
9568   fi
9569   ;;
9570
9571 aix4* | aix5*)
9572   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9573     test "$enable_shared" = yes && enable_static=no
9574   fi
9575     ;;
9576 esac
9577 echo "$as_me:$LINENO: result: $enable_shared" >&5
9578 echo "${ECHO_T}$enable_shared" >&6
9579
9580 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9581 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9582 # Make sure either enable_shared or enable_static is yes.
9583 test "$enable_shared" = yes || enable_static=yes
9584 echo "$as_me:$LINENO: result: $enable_static" >&5
9585 echo "${ECHO_T}$enable_static" >&6
9586
9587 # The else clause should only fire when bootstrapping the
9588 # libtool distribution, otherwise you forgot to ship ltmain.sh
9589 # with your package, and you will get complaints that there are
9590 # no rules to generate ltmain.sh.
9591 if test -f "$ltmain"; then
9592   # See if we are running on zsh, and set the options which allow our commands through
9593   # without removal of \ escapes.
9594   if test -n "${ZSH_VERSION+set}" ; then
9595     setopt NO_GLOB_SUBST
9596   fi
9597   # Now quote all the things that may contain metacharacters while being
9598   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9599   # variables and quote the copies for generation of the libtool script.
9600   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9601     SED SHELL STRIP \
9602     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9603     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9604     deplibs_check_method reload_flag reload_cmds need_locks \
9605     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9606     lt_cv_sys_global_symbol_to_c_name_address \
9607     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9608     old_postinstall_cmds old_postuninstall_cmds \
9609     compiler \
9610     CC \
9611     LD \
9612     lt_prog_compiler_wl \
9613     lt_prog_compiler_pic \
9614     lt_prog_compiler_static \
9615     lt_prog_compiler_no_builtin_flag \
9616     export_dynamic_flag_spec \
9617     thread_safe_flag_spec \
9618     whole_archive_flag_spec \
9619     enable_shared_with_static_runtimes \
9620     old_archive_cmds \
9621     old_archive_from_new_cmds \
9622     predep_objects \
9623     postdep_objects \
9624     predeps \
9625     postdeps \
9626     compiler_lib_search_path \
9627     archive_cmds \
9628     archive_expsym_cmds \
9629     postinstall_cmds \
9630     postuninstall_cmds \
9631     old_archive_from_expsyms_cmds \
9632     allow_undefined_flag \
9633     no_undefined_flag \
9634     export_symbols_cmds \
9635     hardcode_libdir_flag_spec \
9636     hardcode_libdir_flag_spec_ld \
9637     hardcode_libdir_separator \
9638     hardcode_automatic \
9639     module_cmds \
9640     module_expsym_cmds \
9641     lt_cv_prog_compiler_c_o \
9642     exclude_expsyms \
9643     include_expsyms; do
9644
9645     case $var in
9646     old_archive_cmds | \
9647     old_archive_from_new_cmds | \
9648     archive_cmds | \
9649     archive_expsym_cmds | \
9650     module_cmds | \
9651     module_expsym_cmds | \
9652     old_archive_from_expsyms_cmds | \
9653     export_symbols_cmds | \
9654     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9655     postinstall_cmds | postuninstall_cmds | \
9656     old_postinstall_cmds | old_postuninstall_cmds | \
9657     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9658       # Double-quote double-evaled strings.
9659       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9660       ;;
9661     *)
9662       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9663       ;;
9664     esac
9665   done
9666
9667   case $lt_echo in
9668   *'\$0 --fallback-echo"')
9669     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9670     ;;
9671   esac
9672
9673 cfgfile="${ofile}T"
9674   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9675   $rm -f "$cfgfile"
9676   { echo "$as_me:$LINENO: creating $ofile" >&5
9677 echo "$as_me: creating $ofile" >&6;}
9678
9679   cat <<__EOF__ >> "$cfgfile"
9680 #! $SHELL
9681
9682 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9683 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9684 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9685 #
9686 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9687 # Free Software Foundation, Inc.
9688 #
9689 # This file is part of GNU Libtool:
9690 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9691 #
9692 # This program is free software; you can redistribute it and/or modify
9693 # it under the terms of the GNU General Public License as published by
9694 # the Free Software Foundation; either version 2 of the License, or
9695 # (at your option) any later version.
9696 #
9697 # This program is distributed in the hope that it will be useful, but
9698 # WITHOUT ANY WARRANTY; without even the implied warranty of
9699 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9700 # General Public License for more details.
9701 #
9702 # You should have received a copy of the GNU General Public License
9703 # along with this program; if not, write to the Free Software
9704 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9705 #
9706 # As a special exception to the GNU General Public License, if you
9707 # distribute this file as part of a program that contains a
9708 # configuration script generated by Autoconf, you may include it under
9709 # the same distribution terms that you use for the rest of that program.
9710
9711 # A sed program that does not truncate output.
9712 SED=$lt_SED
9713
9714 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9715 Xsed="$SED -e 1s/^X//"
9716
9717 # The HP-UX ksh and POSIX shell print the target directory to stdout
9718 # if CDPATH is set.
9719 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9720
9721 # The names of the tagged configurations supported by this script.
9722 available_tags=
9723
9724 # ### BEGIN LIBTOOL CONFIG
9725
9726 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9727
9728 # Shell to use when invoking shell scripts.
9729 SHELL=$lt_SHELL
9730
9731 # Whether or not to build shared libraries.
9732 build_libtool_libs=$enable_shared
9733
9734 # Whether or not to build static libraries.
9735 build_old_libs=$enable_static
9736
9737 # Whether or not to add -lc for building shared libraries.
9738 build_libtool_need_lc=$archive_cmds_need_lc
9739
9740 # Whether or not to disallow shared libs when runtime libs are static
9741 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9742
9743 # Whether or not to optimize for fast installation.
9744 fast_install=$enable_fast_install
9745
9746 # The host system.
9747 host_alias=$host_alias
9748 host=$host
9749 host_os=$host_os
9750
9751 # The build system.
9752 build_alias=$build_alias
9753 build=$build
9754 build_os=$build_os
9755
9756 # An echo program that does not interpret backslashes.
9757 echo=$lt_echo
9758
9759 # The archiver.
9760 AR=$lt_AR
9761 AR_FLAGS=$lt_AR_FLAGS
9762
9763 # A C compiler.
9764 LTCC=$lt_LTCC
9765
9766 # LTCC compiler flags.
9767 LTCFLAGS=$lt_LTCFLAGS
9768
9769 # A language-specific compiler.
9770 CC=$lt_compiler
9771
9772 # Is the compiler the GNU C compiler?
9773 with_gcc=$GCC
9774
9775 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9776 gcc_ver=\`gcc -dumpversion\`
9777
9778 # An ERE matcher.
9779 EGREP=$lt_EGREP
9780
9781 # The linker used to build libraries.
9782 LD=$lt_LD
9783
9784 # Whether we need hard or soft links.
9785 LN_S=$lt_LN_S
9786
9787 # A BSD-compatible nm program.
9788 NM=$lt_NM
9789
9790 # A symbol stripping program
9791 STRIP=$lt_STRIP
9792
9793 # Used to examine libraries when file_magic_cmd begins "file"
9794 MAGIC_CMD=$MAGIC_CMD
9795
9796 # Used on cygwin: DLL creation program.
9797 DLLTOOL="$DLLTOOL"
9798
9799 # Used on cygwin: object dumper.
9800 OBJDUMP="$OBJDUMP"
9801
9802 # Used on cygwin: assembler.
9803 AS="$AS"
9804
9805 # The name of the directory that contains temporary libtool files.
9806 objdir=$objdir
9807
9808 # How to create reloadable object files.
9809 reload_flag=$lt_reload_flag
9810 reload_cmds=$lt_reload_cmds
9811
9812 # How to pass a linker flag through the compiler.
9813 wl=$lt_lt_prog_compiler_wl
9814
9815 # Object file suffix (normally "o").
9816 objext="$ac_objext"
9817
9818 # Old archive suffix (normally "a").
9819 libext="$libext"
9820
9821 # Shared library suffix (normally ".so").
9822 shrext_cmds='$shrext_cmds'
9823
9824 # Executable file suffix (normally "").
9825 exeext="$exeext"
9826
9827 # Additional compiler flags for building library objects.
9828 pic_flag=$lt_lt_prog_compiler_pic
9829 pic_mode=$pic_mode
9830
9831 # What is the maximum length of a command?
9832 max_cmd_len=$lt_cv_sys_max_cmd_len
9833
9834 # Does compiler simultaneously support -c and -o options?
9835 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9836
9837 # Must we lock files when doing compilation?
9838 need_locks=$lt_need_locks
9839
9840 # Do we need the lib prefix for modules?
9841 need_lib_prefix=$need_lib_prefix
9842
9843 # Do we need a version for libraries?
9844 need_version=$need_version
9845
9846 # Whether dlopen is supported.
9847 dlopen_support=$enable_dlopen
9848
9849 # Whether dlopen of programs is supported.
9850 dlopen_self=$enable_dlopen_self
9851
9852 # Whether dlopen of statically linked programs is supported.
9853 dlopen_self_static=$enable_dlopen_self_static
9854
9855 # Compiler flag to prevent dynamic linking.
9856 link_static_flag=$lt_lt_prog_compiler_static
9857
9858 # Compiler flag to turn off builtin functions.
9859 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9860
9861 # Compiler flag to allow reflexive dlopens.
9862 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9863
9864 # Compiler flag to generate shared objects directly from archives.
9865 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9866
9867 # Compiler flag to generate thread-safe objects.
9868 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9869
9870 # Library versioning type.
9871 version_type=$version_type
9872
9873 # Format of library name prefix.
9874 libname_spec=$lt_libname_spec
9875
9876 # List of archive names.  First name is the real one, the rest are links.
9877 # The last name is the one that the linker finds with -lNAME.
9878 library_names_spec=$lt_library_names_spec
9879
9880 # The coded name of the library, if different from the real name.
9881 soname_spec=$lt_soname_spec
9882
9883 # Commands used to build and install an old-style archive.
9884 RANLIB=$lt_RANLIB
9885 old_archive_cmds=$lt_old_archive_cmds
9886 old_postinstall_cmds=$lt_old_postinstall_cmds
9887 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9888
9889 # Create an old-style archive from a shared archive.
9890 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9891
9892 # Create a temporary old-style archive to link instead of a shared archive.
9893 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9894
9895 # Commands used to build and install a shared archive.
9896 archive_cmds=$lt_archive_cmds
9897 archive_expsym_cmds=$lt_archive_expsym_cmds
9898 postinstall_cmds=$lt_postinstall_cmds
9899 postuninstall_cmds=$lt_postuninstall_cmds
9900
9901 # Commands used to build a loadable module (assumed same as above if empty)
9902 module_cmds=$lt_module_cmds
9903 module_expsym_cmds=$lt_module_expsym_cmds
9904
9905 # Commands to strip libraries.
9906 old_striplib=$lt_old_striplib
9907 striplib=$lt_striplib
9908
9909 # Dependencies to place before the objects being linked to create a
9910 # shared library.
9911 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9912
9913 # Dependencies to place after the objects being linked to create a
9914 # shared library.
9915 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9916
9917 # Dependencies to place before the objects being linked to create a
9918 # shared library.
9919 predeps=$lt_predeps
9920
9921 # Dependencies to place after the objects being linked to create a
9922 # shared library.
9923 postdeps=$lt_postdeps
9924
9925 # The library search path used internally by the compiler when linking
9926 # a shared library.
9927 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9928
9929 # Method to check whether dependent libraries are shared objects.
9930 deplibs_check_method=$lt_deplibs_check_method
9931
9932 # Command to use when deplibs_check_method == file_magic.
9933 file_magic_cmd=$lt_file_magic_cmd
9934
9935 # Flag that allows shared libraries with undefined symbols to be built.
9936 allow_undefined_flag=$lt_allow_undefined_flag
9937
9938 # Flag that forces no undefined symbols.
9939 no_undefined_flag=$lt_no_undefined_flag
9940
9941 # Commands used to finish a libtool library installation in a directory.
9942 finish_cmds=$lt_finish_cmds
9943
9944 # Same as above, but a single script fragment to be evaled but not shown.
9945 finish_eval=$lt_finish_eval
9946
9947 # Take the output of nm and produce a listing of raw symbols and C names.
9948 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9949
9950 # Transform the output of nm in a proper C declaration
9951 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9952
9953 # Transform the output of nm in a C name address pair
9954 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9955
9956 # This is the shared library runtime path variable.
9957 runpath_var=$runpath_var
9958
9959 # This is the shared library path variable.
9960 shlibpath_var=$shlibpath_var
9961
9962 # Is shlibpath searched before the hard-coded library search path?
9963 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9964
9965 # How to hardcode a shared library path into an executable.
9966 hardcode_action=$hardcode_action
9967
9968 # Whether we should hardcode library paths into libraries.
9969 hardcode_into_libs=$hardcode_into_libs
9970
9971 # Flag to hardcode \$libdir into a binary during linking.
9972 # This must work even if \$libdir does not exist.
9973 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9974
9975 # If ld is used when linking, flag to hardcode \$libdir into
9976 # a binary during linking. This must work even if \$libdir does
9977 # not exist.
9978 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9979
9980 # Whether we need a single -rpath flag with a separated argument.
9981 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9982
9983 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9984 # resulting binary.
9985 hardcode_direct=$hardcode_direct
9986
9987 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9988 # resulting binary.
9989 hardcode_minus_L=$hardcode_minus_L
9990
9991 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9992 # the resulting binary.
9993 hardcode_shlibpath_var=$hardcode_shlibpath_var
9994
9995 # Set to yes if building a shared library automatically hardcodes DIR into the library
9996 # and all subsequent libraries and executables linked against it.
9997 hardcode_automatic=$hardcode_automatic
9998
9999 # Variables whose values should be saved in libtool wrapper scripts and
10000 # restored at relink time.
10001 variables_saved_for_relink="$variables_saved_for_relink"
10002
10003 # Whether libtool must link a program against all its dependency libraries.
10004 link_all_deplibs=$link_all_deplibs
10005
10006 # Compile-time system search path for libraries
10007 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10008
10009 # Run-time system search path for libraries
10010 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10011
10012 # Fix the shell variable \$srcfile for the compiler.
10013 fix_srcfile_path="$fix_srcfile_path"
10014
10015 # Set to yes if exported symbols are required.
10016 always_export_symbols=$always_export_symbols
10017
10018 # The commands to list exported symbols.
10019 export_symbols_cmds=$lt_export_symbols_cmds
10020
10021 # The commands to extract the exported symbol list from a shared archive.
10022 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10023
10024 # Symbols that should not be listed in the preloaded symbols.
10025 exclude_expsyms=$lt_exclude_expsyms
10026
10027 # Symbols that must always be exported.
10028 include_expsyms=$lt_include_expsyms
10029
10030 # ### END LIBTOOL CONFIG
10031
10032 __EOF__
10033
10034
10035   case $host_os in
10036   aix3*)
10037     cat <<\EOF >> "$cfgfile"
10038
10039 # AIX sometimes has problems with the GCC collect2 program.  For some
10040 # reason, if we set the COLLECT_NAMES environment variable, the problems
10041 # vanish in a puff of smoke.
10042 if test "X${COLLECT_NAMES+set}" != Xset; then
10043   COLLECT_NAMES=
10044   export COLLECT_NAMES
10045 fi
10046 EOF
10047     ;;
10048   esac
10049
10050   # We use sed instead of cat because bash on DJGPP gets confused if
10051   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10052   # text mode, it properly converts lines to CR/LF.  This bash problem
10053   # is reportedly fixed, but why not run on old versions too?
10054   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10055
10056   mv -f "$cfgfile" "$ofile" || \
10057     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10058   chmod +x "$ofile"
10059
10060 else
10061   # If there is no Makefile yet, we rely on a make rule to execute
10062   # `config.status --recheck' to rerun these tests and create the
10063   # libtool script then.
10064   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10065   if test -f "$ltmain_in"; then
10066     test -f Makefile && make "$ltmain"
10067   fi
10068 fi
10069
10070
10071 ac_ext=c
10072 ac_cpp='$CPP $CPPFLAGS'
10073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10076
10077 CC="$lt_save_CC"
10078
10079
10080 # Check whether --with-tags or --without-tags was given.
10081 if test "${with_tags+set}" = set; then
10082   withval="$with_tags"
10083   tagnames="$withval"
10084 fi;
10085
10086 if test -f "$ltmain" && test -n "$tagnames"; then
10087   if test ! -f "${ofile}"; then
10088     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10089 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10090   fi
10091
10092   if test -z "$LTCC"; then
10093     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10094     if test -z "$LTCC"; then
10095       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10096 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10097     else
10098       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10099 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10100     fi
10101   fi
10102   if test -z "$LTCFLAGS"; then
10103     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10104   fi
10105
10106   # Extract list of available tagged configurations in $ofile.
10107   # Note that this assumes the entire list is on one line.
10108   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10109
10110   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10111   for tagname in $tagnames; do
10112     IFS="$lt_save_ifs"
10113     # Check whether tagname contains only valid characters
10114     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10115     "") ;;
10116     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10117 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10118    { (exit 1); exit 1; }; }
10119         ;;
10120     esac
10121
10122     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10123     then
10124       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10125 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10126    { (exit 1); exit 1; }; }
10127     fi
10128
10129     # Update the list of available tags.
10130     if test -n "$tagname"; then
10131       echo appending configuration tag \"$tagname\" to $ofile
10132
10133       case $tagname in
10134       CXX)
10135         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10136             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10137             (test "X$CXX" != "Xg++"))) ; then
10138           ac_ext=cc
10139 ac_cpp='$CXXCPP $CPPFLAGS'
10140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10143
10144
10145
10146
10147 archive_cmds_need_lc_CXX=no
10148 allow_undefined_flag_CXX=
10149 always_export_symbols_CXX=no
10150 archive_expsym_cmds_CXX=
10151 export_dynamic_flag_spec_CXX=
10152 hardcode_direct_CXX=no
10153 hardcode_libdir_flag_spec_CXX=
10154 hardcode_libdir_flag_spec_ld_CXX=
10155 hardcode_libdir_separator_CXX=
10156 hardcode_minus_L_CXX=no
10157 hardcode_shlibpath_var_CXX=unsupported
10158 hardcode_automatic_CXX=no
10159 module_cmds_CXX=
10160 module_expsym_cmds_CXX=
10161 link_all_deplibs_CXX=unknown
10162 old_archive_cmds_CXX=$old_archive_cmds
10163 no_undefined_flag_CXX=
10164 whole_archive_flag_spec_CXX=
10165 enable_shared_with_static_runtimes_CXX=no
10166
10167 # Dependencies to place before and after the object being linked:
10168 predep_objects_CXX=
10169 postdep_objects_CXX=
10170 predeps_CXX=
10171 postdeps_CXX=
10172 compiler_lib_search_path_CXX=
10173
10174 # Source file extension for C++ test sources.
10175 ac_ext=cpp
10176
10177 # Object file extension for compiled C++ test sources.
10178 objext=o
10179 objext_CXX=$objext
10180
10181 # Code to be used in simple compile tests
10182 lt_simple_compile_test_code="int some_variable = 0;\n"
10183
10184 # Code to be used in simple link tests
10185 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10186
10187 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10188
10189 # If no C compiler was specified, use CC.
10190 LTCC=${LTCC-"$CC"}
10191
10192 # If no C compiler flags were specified, use CFLAGS.
10193 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10194
10195 # Allow CC to be a program name with arguments.
10196 compiler=$CC
10197
10198
10199 # save warnings/boilerplate of simple test code
10200 ac_outfile=conftest.$ac_objext
10201 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10202 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10203 _lt_compiler_boilerplate=`cat conftest.err`
10204 $rm conftest*
10205
10206 ac_outfile=conftest.$ac_objext
10207 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10208 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10209 _lt_linker_boilerplate=`cat conftest.err`
10210 $rm conftest*
10211
10212
10213 # Allow CC to be a program name with arguments.
10214 lt_save_CC=$CC
10215 lt_save_LD=$LD
10216 lt_save_GCC=$GCC
10217 GCC=$GXX
10218 lt_save_with_gnu_ld=$with_gnu_ld
10219 lt_save_path_LD=$lt_cv_path_LD
10220 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10221   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10222 else
10223   $as_unset lt_cv_prog_gnu_ld
10224 fi
10225 if test -n "${lt_cv_path_LDCXX+set}"; then
10226   lt_cv_path_LD=$lt_cv_path_LDCXX
10227 else
10228   $as_unset lt_cv_path_LD
10229 fi
10230 test -z "${LDCXX+set}" || LD=$LDCXX
10231 CC=${CXX-"c++"}
10232 compiler=$CC
10233 compiler_CXX=$CC
10234 for cc_temp in $compiler""; do
10235   case $cc_temp in
10236     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10237     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10238     \-*) ;;
10239     *) break;;
10240   esac
10241 done
10242 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10243
10244
10245 # We don't want -fno-exception wen compiling C++ code, so set the
10246 # no_builtin_flag separately
10247 if test "$GXX" = yes; then
10248   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10249 else
10250   lt_prog_compiler_no_builtin_flag_CXX=
10251 fi
10252
10253 if test "$GXX" = yes; then
10254   # Set up default GNU C++ configuration
10255
10256
10257 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10258 if test "${with_gnu_ld+set}" = set; then
10259   withval="$with_gnu_ld"
10260   test "$withval" = no || with_gnu_ld=yes
10261 else
10262   with_gnu_ld=no
10263 fi;
10264 ac_prog=ld
10265 if test "$GCC" = yes; then
10266   # Check if gcc -print-prog-name=ld gives a path.
10267   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10268 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10269   case $host in
10270   *-*-mingw*)
10271     # gcc leaves a trailing carriage return which upsets mingw
10272     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10273   *)
10274     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10275   esac
10276   case $ac_prog in
10277     # Accept absolute paths.
10278     [\\/]* | ?:[\\/]*)
10279       re_direlt='/[^/][^/]*/\.\./'
10280       # Canonicalize the pathname of ld
10281       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10282       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10283         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10284       done
10285       test -z "$LD" && LD="$ac_prog"
10286       ;;
10287   "")
10288     # If it fails, then pretend we aren't using GCC.
10289     ac_prog=ld
10290     ;;
10291   *)
10292     # If it is relative, then search for the first ld in PATH.
10293     with_gnu_ld=unknown
10294     ;;
10295   esac
10296 elif test "$with_gnu_ld" = yes; then
10297   echo "$as_me:$LINENO: checking for GNU ld" >&5
10298 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10299 else
10300   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10301 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10302 fi
10303 if test "${lt_cv_path_LD+set}" = set; then
10304   echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306   if test -z "$LD"; then
10307   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10308   for ac_dir in $PATH; do
10309     IFS="$lt_save_ifs"
10310     test -z "$ac_dir" && ac_dir=.
10311     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10312       lt_cv_path_LD="$ac_dir/$ac_prog"
10313       # Check to see if the program is GNU ld.  I'd rather use --version,
10314       # but apparently some variants of GNU ld only accept -v.
10315       # Break only if it was the GNU/non-GNU ld that we prefer.
10316       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10317       *GNU* | *'with BFD'*)
10318         test "$with_gnu_ld" != no && break
10319         ;;
10320       *)
10321         test "$with_gnu_ld" != yes && break
10322         ;;
10323       esac
10324     fi
10325   done
10326   IFS="$lt_save_ifs"
10327 else
10328   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10329 fi
10330 fi
10331
10332 LD="$lt_cv_path_LD"
10333 if test -n "$LD"; then
10334   echo "$as_me:$LINENO: result: $LD" >&5
10335 echo "${ECHO_T}$LD" >&6
10336 else
10337   echo "$as_me:$LINENO: result: no" >&5
10338 echo "${ECHO_T}no" >&6
10339 fi
10340 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10341 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10342    { (exit 1); exit 1; }; }
10343 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10344 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10345 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10346   echo $ECHO_N "(cached) $ECHO_C" >&6
10347 else
10348   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10349 case `$LD -v 2>&1 </dev/null` in
10350 *GNU* | *'with BFD'*)
10351   lt_cv_prog_gnu_ld=yes
10352   ;;
10353 *)
10354   lt_cv_prog_gnu_ld=no
10355   ;;
10356 esac
10357 fi
10358 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10359 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10360 with_gnu_ld=$lt_cv_prog_gnu_ld
10361
10362
10363
10364   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10365   # archiving commands below assume that GNU ld is being used.
10366   if test "$with_gnu_ld" = yes; then
10367     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10368     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'
10369
10370     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10371     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10372
10373     # If archive_cmds runs LD, not CC, wlarc should be empty
10374     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10375     #     investigate it a little bit more. (MM)
10376     wlarc='${wl}'
10377
10378     # ancient GNU ld didn't support --whole-archive et. al.
10379     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10380         grep 'no-whole-archive' > /dev/null; then
10381       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10382     else
10383       whole_archive_flag_spec_CXX=
10384     fi
10385   else
10386     with_gnu_ld=no
10387     wlarc=
10388
10389     # A generic and very simple default shared library creation
10390     # command for GNU C++ for the case where it uses the native
10391     # linker, instead of GNU ld.  If possible, this setting should
10392     # overridden to take advantage of the native linker features on
10393     # the platform it is being used on.
10394     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10395   fi
10396
10397   # Commands to make compiler produce verbose output that lists
10398   # what "hidden" libraries, object files and flags are used when
10399   # linking a shared library.
10400   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10401
10402 else
10403   GXX=no
10404   with_gnu_ld=no
10405   wlarc=
10406 fi
10407
10408 # PORTME: fill in a description of your system's C++ link characteristics
10409 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10410 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10411 ld_shlibs_CXX=yes
10412 case $host_os in
10413   aix3*)
10414     # FIXME: insert proper C++ library support
10415     ld_shlibs_CXX=no
10416     ;;
10417   aix4* | aix5*)
10418     if test "$host_cpu" = ia64; then
10419       # On IA64, the linker does run time linking by default, so we don't
10420       # have to do anything special.
10421       aix_use_runtimelinking=no
10422       exp_sym_flag='-Bexport'
10423       no_entry_flag=""
10424     else
10425       aix_use_runtimelinking=no
10426
10427       # Test if we are trying to use run time linking or normal
10428       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10429       # need to do runtime linking.
10430       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10431         for ld_flag in $LDFLAGS; do
10432           case $ld_flag in
10433           *-brtl*)
10434             aix_use_runtimelinking=yes
10435             break
10436             ;;
10437           esac
10438         done
10439         ;;
10440       esac
10441
10442       exp_sym_flag='-bexport'
10443       no_entry_flag='-bnoentry'
10444     fi
10445
10446     # When large executables or shared objects are built, AIX ld can
10447     # have problems creating the table of contents.  If linking a library
10448     # or program results in "error TOC overflow" add -mminimal-toc to
10449     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10450     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10451
10452     archive_cmds_CXX=''
10453     hardcode_direct_CXX=yes
10454     hardcode_libdir_separator_CXX=':'
10455     link_all_deplibs_CXX=yes
10456
10457     if test "$GXX" = yes; then
10458       case $host_os in aix4.[012]|aix4.[012].*)
10459       # We only want to do this on AIX 4.2 and lower, the check
10460       # below for broken collect2 doesn't work under 4.3+
10461         collect2name=`${CC} -print-prog-name=collect2`
10462         if test -f "$collect2name" && \
10463            strings "$collect2name" | grep resolve_lib_name >/dev/null
10464         then
10465           # We have reworked collect2
10466           hardcode_direct_CXX=yes
10467         else
10468           # We have old collect2
10469           hardcode_direct_CXX=unsupported
10470           # It fails to find uninstalled libraries when the uninstalled
10471           # path is not listed in the libpath.  Setting hardcode_minus_L
10472           # to unsupported forces relinking
10473           hardcode_minus_L_CXX=yes
10474           hardcode_libdir_flag_spec_CXX='-L$libdir'
10475           hardcode_libdir_separator_CXX=
10476         fi
10477         ;;
10478       esac
10479       shared_flag='-shared'
10480       if test "$aix_use_runtimelinking" = yes; then
10481         shared_flag="$shared_flag "'${wl}-G'
10482       fi
10483     else
10484       # not using gcc
10485       if test "$host_cpu" = ia64; then
10486         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10487         # chokes on -Wl,-G. The following line is correct:
10488         shared_flag='-G'
10489       else
10490         if test "$aix_use_runtimelinking" = yes; then
10491           shared_flag='${wl}-G'
10492         else
10493           shared_flag='${wl}-bM:SRE'
10494         fi
10495       fi
10496     fi
10497
10498     # It seems that -bexpall does not export symbols beginning with
10499     # underscore (_), so it is better to generate a list of symbols to export.
10500     always_export_symbols_CXX=yes
10501     if test "$aix_use_runtimelinking" = yes; then
10502       # Warning - without using the other runtime loading flags (-brtl),
10503       # -berok will link without error, but may produce a broken library.
10504       allow_undefined_flag_CXX='-berok'
10505       # Determine the default libpath from the value encoded in an empty executable.
10506       cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h.  */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h.  */
10512
10513 int
10514 main ()
10515 {
10516
10517   ;
10518   return 0;
10519 }
10520 _ACEOF
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10523   (eval $ac_link) 2>conftest.er1
10524   ac_status=$?
10525   grep -v '^ *+' conftest.er1 >conftest.err
10526   rm -f conftest.er1
10527   cat conftest.err >&5
10528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529   (exit $ac_status); } &&
10530          { ac_try='test -z "$ac_cxx_werror_flag"
10531                          || test ! -s conftest.err'
10532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533   (eval $ac_try) 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); }; } &&
10537          { ac_try='test -s conftest$ac_exeext'
10538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539   (eval $ac_try) 2>&5
10540   ac_status=$?
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); }; }; then
10543
10544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10545 }'`
10546 # Check for a 64-bit object if we didn't find anything.
10547 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; }
10548 }'`; fi
10549 else
10550   echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10552
10553 fi
10554 rm -f conftest.err conftest.$ac_objext \
10555       conftest$ac_exeext conftest.$ac_ext
10556 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10557
10558       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10559
10560       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10561      else
10562       if test "$host_cpu" = ia64; then
10563         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10564         allow_undefined_flag_CXX="-z nodefs"
10565         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10566       else
10567         # Determine the default libpath from the value encoded in an empty executable.
10568         cat >conftest.$ac_ext <<_ACEOF
10569 /* confdefs.h.  */
10570 _ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h.  */
10574
10575 int
10576 main ()
10577 {
10578
10579   ;
10580   return 0;
10581 }
10582 _ACEOF
10583 rm -f conftest.$ac_objext conftest$ac_exeext
10584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10585   (eval $ac_link) 2>conftest.er1
10586   ac_status=$?
10587   grep -v '^ *+' conftest.er1 >conftest.err
10588   rm -f conftest.er1
10589   cat conftest.err >&5
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); } &&
10592          { ac_try='test -z "$ac_cxx_werror_flag"
10593                          || test ! -s conftest.err'
10594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595   (eval $ac_try) 2>&5
10596   ac_status=$?
10597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598   (exit $ac_status); }; } &&
10599          { ac_try='test -s conftest$ac_exeext'
10600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601   (eval $ac_try) 2>&5
10602   ac_status=$?
10603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604   (exit $ac_status); }; }; then
10605
10606 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10607 }'`
10608 # Check for a 64-bit object if we didn't find anything.
10609 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; }
10610 }'`; fi
10611 else
10612   echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10614
10615 fi
10616 rm -f conftest.err conftest.$ac_objext \
10617       conftest$ac_exeext conftest.$ac_ext
10618 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10619
10620         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10621         # Warning - without using the other run time loading flags,
10622         # -berok will link without error, but may produce a broken library.
10623         no_undefined_flag_CXX=' ${wl}-bernotok'
10624         allow_undefined_flag_CXX=' ${wl}-berok'
10625         # Exported symbols can be pulled into shared objects from archives
10626         whole_archive_flag_spec_CXX='$convenience'
10627         archive_cmds_need_lc_CXX=yes
10628         # This is similar to how AIX traditionally builds its shared libraries.
10629         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10630       fi
10631     fi
10632     ;;
10633
10634   beos*)
10635     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10636       allow_undefined_flag_CXX=unsupported
10637       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10638       # support --undefined.  This deserves some investigation.  FIXME
10639       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10640     else
10641       ld_shlibs_CXX=no
10642     fi
10643     ;;
10644
10645   chorus*)
10646     case $cc_basename in
10647       *)
10648         # FIXME: insert proper C++ library support
10649         ld_shlibs_CXX=no
10650         ;;
10651     esac
10652     ;;
10653
10654   cygwin* | mingw* | pw32*)
10655     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10656     # as there is no search path for DLLs.
10657     hardcode_libdir_flag_spec_CXX='-L$libdir'
10658     allow_undefined_flag_CXX=unsupported
10659     always_export_symbols_CXX=no
10660     enable_shared_with_static_runtimes_CXX=yes
10661
10662     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10663       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10664       # If the export-symbols file already is a .def file (1st line
10665       # is EXPORTS), use it as is; otherwise, prepend...
10666       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10667         cp $export_symbols $output_objdir/$soname.def;
10668       else
10669         echo EXPORTS > $output_objdir/$soname.def;
10670         cat $export_symbols >> $output_objdir/$soname.def;
10671       fi~
10672       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10673     else
10674       ld_shlibs_CXX=no
10675     fi
10676   ;;
10677       darwin* | rhapsody*)
10678         case $host_os in
10679         rhapsody* | darwin1.[012])
10680          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10681          ;;
10682        *) # Darwin 1.3 on
10683          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10684            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10685          else
10686            case ${MACOSX_DEPLOYMENT_TARGET} in
10687              10.[012])
10688                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10689                ;;
10690              10.*)
10691                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10692                ;;
10693            esac
10694          fi
10695          ;;
10696         esac
10697       archive_cmds_need_lc_CXX=no
10698       hardcode_direct_CXX=no
10699       hardcode_automatic_CXX=yes
10700       hardcode_shlibpath_var_CXX=unsupported
10701       whole_archive_flag_spec_CXX=''
10702       link_all_deplibs_CXX=yes
10703
10704     if test "$GXX" = yes ; then
10705       lt_int_apple_cc_single_mod=no
10706       output_verbose_link_cmd='echo'
10707       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10708        lt_int_apple_cc_single_mod=yes
10709       fi
10710       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10711        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10712       else
10713           archive_cmds_CXX='$CC -r -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'
10714         fi
10715         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10716         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10717           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10718             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}'
10719           else
10720             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
10721           fi
10722             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}'
10723       else
10724       case $cc_basename in
10725         xlc*)
10726          output_verbose_link_cmd='echo'
10727           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10728           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10729           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10730           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10731           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}'
10732           ;;
10733        *)
10734          ld_shlibs_CXX=no
10735           ;;
10736       esac
10737       fi
10738         ;;
10739
10740   dgux*)
10741     case $cc_basename in
10742       ec++*)
10743         # FIXME: insert proper C++ library support
10744         ld_shlibs_CXX=no
10745         ;;
10746       ghcx*)
10747         # Green Hills C++ Compiler
10748         # FIXME: insert proper C++ library support
10749         ld_shlibs_CXX=no
10750         ;;
10751       *)
10752         # FIXME: insert proper C++ library support
10753         ld_shlibs_CXX=no
10754         ;;
10755     esac
10756     ;;
10757   freebsd[12]*)
10758     # C++ shared libraries reported to be fairly broken before switch to ELF
10759     ld_shlibs_CXX=no
10760     ;;
10761   freebsd-elf*)
10762     archive_cmds_need_lc_CXX=no
10763     ;;
10764   freebsd* | kfreebsd*-gnu | dragonfly*)
10765     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10766     # conventions
10767     ld_shlibs_CXX=yes
10768     ;;
10769   gnu*)
10770     ;;
10771   hpux9*)
10772     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10773     hardcode_libdir_separator_CXX=:
10774     export_dynamic_flag_spec_CXX='${wl}-E'
10775     hardcode_direct_CXX=yes
10776     hardcode_minus_L_CXX=yes # Not in the search PATH,
10777                                 # but as the default
10778                                 # location of the library.
10779
10780     case $cc_basename in
10781     CC*)
10782       # FIXME: insert proper C++ library support
10783       ld_shlibs_CXX=no
10784       ;;
10785     aCC*)
10786       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'
10787       # Commands to make compiler produce verbose output that lists
10788       # what "hidden" libraries, object files and flags are used when
10789       # linking a shared library.
10790       #
10791       # There doesn't appear to be a way to prevent this compiler from
10792       # explicitly linking system object files so we need to strip them
10793       # from the output so that they don't get included in the library
10794       # dependencies.
10795       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'
10796       ;;
10797     *)
10798       if test "$GXX" = yes; then
10799         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'
10800       else
10801         # FIXME: insert proper C++ library support
10802         ld_shlibs_CXX=no
10803       fi
10804       ;;
10805     esac
10806     ;;
10807   hpux10*|hpux11*)
10808     if test $with_gnu_ld = no; then
10809       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10810       hardcode_libdir_separator_CXX=:
10811
10812       case $host_cpu in
10813       hppa*64*|ia64*)
10814         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10815         ;;
10816       *)
10817         export_dynamic_flag_spec_CXX='${wl}-E'
10818         ;;
10819       esac
10820     fi
10821     case $host_cpu in
10822     hppa*64*|ia64*)
10823       hardcode_direct_CXX=no
10824       hardcode_shlibpath_var_CXX=no
10825       ;;
10826     *)
10827       hardcode_direct_CXX=yes
10828       hardcode_minus_L_CXX=yes # Not in the search PATH,
10829                                               # but as the default
10830                                               # location of the library.
10831       ;;
10832     esac
10833
10834     case $cc_basename in
10835       CC*)
10836         # FIXME: insert proper C++ library support
10837         ld_shlibs_CXX=no
10838         ;;
10839       aCC*)
10840         case $host_cpu in
10841         hppa*64*)
10842           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10843           ;;
10844         ia64*)
10845           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10846           ;;
10847         *)
10848           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10849           ;;
10850         esac
10851         # Commands to make compiler produce verbose output that lists
10852         # what "hidden" libraries, object files and flags are used when
10853         # linking a shared library.
10854         #
10855         # There doesn't appear to be a way to prevent this compiler from
10856         # explicitly linking system object files so we need to strip them
10857         # from the output so that they don't get included in the library
10858         # dependencies.
10859         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'
10860         ;;
10861       *)
10862         if test "$GXX" = yes; then
10863           if test $with_gnu_ld = no; then
10864             case $host_cpu in
10865             hppa*64*)
10866               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10867               ;;
10868             ia64*)
10869               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10870               ;;
10871             *)
10872               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'
10873               ;;
10874             esac
10875           fi
10876         else
10877           # FIXME: insert proper C++ library support
10878           ld_shlibs_CXX=no
10879         fi
10880         ;;
10881     esac
10882     ;;
10883   interix3*)
10884     hardcode_direct_CXX=no
10885     hardcode_shlibpath_var_CXX=no
10886     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10887     export_dynamic_flag_spec_CXX='${wl}-E'
10888     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10889     # Instead, shared libraries are loaded at an image base (0x10000000 by
10890     # default) and relocated if they conflict, which is a slow very memory
10891     # consuming and fragmenting process.  To avoid this, we pick a random,
10892     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10893     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10894     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10895     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10896     ;;
10897   irix5* | irix6*)
10898     case $cc_basename in
10899       CC*)
10900         # SGI C++
10901         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 ${output_objdir}/so_locations -o $lib'
10902
10903         # Archives containing C++ object files must be created using
10904         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10905         # necessary to make sure instantiated templates are included
10906         # in the archive.
10907         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10908         ;;
10909       *)
10910         if test "$GXX" = yes; then
10911           if test "$with_gnu_ld" = no; then
10912             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}${output_objdir}/so_locations -o $lib'
10913           else
10914             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'
10915           fi
10916         fi
10917         link_all_deplibs_CXX=yes
10918         ;;
10919     esac
10920     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10921     hardcode_libdir_separator_CXX=:
10922     ;;
10923   linux*)
10924     case $cc_basename in
10925       KCC*)
10926         # Kuck and Associates, Inc. (KAI) C++ Compiler
10927
10928         # KCC will only create a shared library if the output file
10929         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10930         # to its proper name (with version) after linking.
10931         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'
10932         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'
10933         # Commands to make compiler produce verbose output that lists
10934         # what "hidden" libraries, object files and flags are used when
10935         # linking a shared library.
10936         #
10937         # There doesn't appear to be a way to prevent this compiler from
10938         # explicitly linking system object files so we need to strip them
10939         # from the output so that they don't get included in the library
10940         # dependencies.
10941         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'
10942
10943         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10944         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10945
10946         # Archives containing C++ object files must be created using
10947         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10948         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10949         ;;
10950       icpc*)
10951         # Intel C++
10952         with_gnu_ld=yes
10953         # version 8.0 and above of icpc choke on multiply defined symbols
10954         # if we add $predep_objects and $postdep_objects, however 7.1 and
10955         # earlier do not add the objects themselves.
10956         case `$CC -V 2>&1` in
10957         *"Version 7."*)
10958           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10959           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'
10960           ;;
10961         *)  # Version 8.0 or newer
10962           tmp_idyn=
10963           case $host_cpu in
10964             ia64*) tmp_idyn=' -i_dynamic';;
10965           esac
10966           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10967           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10968           ;;
10969         esac
10970         archive_cmds_need_lc_CXX=no
10971         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10972         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10973         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10974         ;;
10975       pgCC*)
10976         # Portland Group C++ compiler
10977         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10978         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10979
10980         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10981         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10982         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10983         ;;
10984       cxx*)
10985         # Compaq C++
10986         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10987         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'
10988
10989         runpath_var=LD_RUN_PATH
10990         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10991         hardcode_libdir_separator_CXX=:
10992
10993         # Commands to make compiler produce verbose output that lists
10994         # what "hidden" libraries, object files and flags are used when
10995         # linking a shared library.
10996         #
10997         # There doesn't appear to be a way to prevent this compiler from
10998         # explicitly linking system object files so we need to strip them
10999         # from the output so that they don't get included in the library
11000         # dependencies.
11001         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'
11002         ;;
11003     esac
11004     ;;
11005   lynxos*)
11006     # FIXME: insert proper C++ library support
11007     ld_shlibs_CXX=no
11008     ;;
11009   m88k*)
11010     # FIXME: insert proper C++ library support
11011     ld_shlibs_CXX=no
11012     ;;
11013   mvs*)
11014     case $cc_basename in
11015       cxx*)
11016         # FIXME: insert proper C++ library support
11017         ld_shlibs_CXX=no
11018         ;;
11019       *)
11020         # FIXME: insert proper C++ library support
11021         ld_shlibs_CXX=no
11022         ;;
11023     esac
11024     ;;
11025   netbsd*)
11026     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11027       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11028       wlarc=
11029       hardcode_libdir_flag_spec_CXX='-R$libdir'
11030       hardcode_direct_CXX=yes
11031       hardcode_shlibpath_var_CXX=no
11032     fi
11033     # Workaround some broken pre-1.5 toolchains
11034     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11035     ;;
11036   openbsd2*)
11037     # C++ shared libraries are fairly broken
11038     ld_shlibs_CXX=no
11039     ;;
11040   openbsd*)
11041     hardcode_direct_CXX=yes
11042     hardcode_shlibpath_var_CXX=no
11043     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11044     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11045     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11046       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11047       export_dynamic_flag_spec_CXX='${wl}-E'
11048       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11049     fi
11050     output_verbose_link_cmd='echo'
11051     ;;
11052   osf3*)
11053     case $cc_basename in
11054       KCC*)
11055         # Kuck and Associates, Inc. (KAI) C++ Compiler
11056
11057         # KCC will only create a shared library if the output file
11058         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11059         # to its proper name (with version) after linking.
11060         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'
11061
11062         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11063         hardcode_libdir_separator_CXX=:
11064
11065         # Archives containing C++ object files must be created using
11066         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11067         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11068
11069         ;;
11070       RCC*)
11071         # Rational C++ 2.4.1
11072         # FIXME: insert proper C++ library support
11073         ld_shlibs_CXX=no
11074         ;;
11075       cxx*)
11076         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11077         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 ${output_objdir}/so_locations -o $lib'
11078
11079         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11080         hardcode_libdir_separator_CXX=:
11081
11082         # Commands to make compiler produce verbose output that lists
11083         # what "hidden" libraries, object files and flags are used when
11084         # linking a shared library.
11085         #
11086         # There doesn't appear to be a way to prevent this compiler from
11087         # explicitly linking system object files so we need to strip them
11088         # from the output so that they don't get included in the library
11089         # dependencies.
11090         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'
11091         ;;
11092       *)
11093         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11094           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11095           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}${output_objdir}/so_locations -o $lib'
11096
11097           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11098           hardcode_libdir_separator_CXX=:
11099
11100           # Commands to make compiler produce verbose output that lists
11101           # what "hidden" libraries, object files and flags are used when
11102           # linking a shared library.
11103           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11104
11105         else
11106           # FIXME: insert proper C++ library support
11107           ld_shlibs_CXX=no
11108         fi
11109         ;;
11110     esac
11111     ;;
11112   osf4* | osf5*)
11113     case $cc_basename in
11114       KCC*)
11115         # Kuck and Associates, Inc. (KAI) C++ Compiler
11116
11117         # KCC will only create a shared library if the output file
11118         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11119         # to its proper name (with version) after linking.
11120         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'
11121
11122         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11123         hardcode_libdir_separator_CXX=:
11124
11125         # Archives containing C++ object files must be created using
11126         # the KAI C++ compiler.
11127         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11128         ;;
11129       RCC*)
11130         # Rational C++ 2.4.1
11131         # FIXME: insert proper C++ library support
11132         ld_shlibs_CXX=no
11133         ;;
11134       cxx*)
11135         allow_undefined_flag_CXX=' -expect_unresolved \*'
11136         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 ${output_objdir}/so_locations -o $lib'
11137         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11138           echo "-hidden">> $lib.exp~
11139           $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 ${output_objdir}/so_locations -o $lib~
11140           $rm $lib.exp'
11141
11142         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11143         hardcode_libdir_separator_CXX=:
11144
11145         # Commands to make compiler produce verbose output that lists
11146         # what "hidden" libraries, object files and flags are used when
11147         # linking a shared library.
11148         #
11149         # There doesn't appear to be a way to prevent this compiler from
11150         # explicitly linking system object files so we need to strip them
11151         # from the output so that they don't get included in the library
11152         # dependencies.
11153         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'
11154         ;;
11155       *)
11156         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11157           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11158          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}${output_objdir}/so_locations -o $lib'
11159
11160           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11161           hardcode_libdir_separator_CXX=:
11162
11163           # Commands to make compiler produce verbose output that lists
11164           # what "hidden" libraries, object files and flags are used when
11165           # linking a shared library.
11166           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11167
11168         else
11169           # FIXME: insert proper C++ library support
11170           ld_shlibs_CXX=no
11171         fi
11172         ;;
11173     esac
11174     ;;
11175   psos*)
11176     # FIXME: insert proper C++ library support
11177     ld_shlibs_CXX=no
11178     ;;
11179   sunos4*)
11180     case $cc_basename in
11181       CC*)
11182         # Sun C++ 4.x
11183         # FIXME: insert proper C++ library support
11184         ld_shlibs_CXX=no
11185         ;;
11186       lcc*)
11187         # Lucid
11188         # FIXME: insert proper C++ library support
11189         ld_shlibs_CXX=no
11190         ;;
11191       *)
11192         # FIXME: insert proper C++ library support
11193         ld_shlibs_CXX=no
11194         ;;
11195     esac
11196     ;;
11197   solaris*)
11198     case $cc_basename in
11199       CC*)
11200         # Sun C++ 4.2, 5.x and Centerline C++
11201         archive_cmds_need_lc_CXX=yes
11202         no_undefined_flag_CXX=' -zdefs'
11203         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11204         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11205         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11206
11207         hardcode_libdir_flag_spec_CXX='-R$libdir'
11208         hardcode_shlibpath_var_CXX=no
11209         case $host_os in
11210           solaris2.[0-5] | solaris2.[0-5].*) ;;
11211           *)
11212             # The C++ compiler is used as linker so we must use $wl
11213             # flag to pass the commands to the underlying system
11214             # linker. We must also pass each convience library through
11215             # to the system linker between allextract/defaultextract.
11216             # The C++ compiler will combine linker options so we
11217             # cannot just pass the convience library names through
11218             # without $wl.
11219             # Supported since Solaris 2.6 (maybe 2.5.1?)
11220             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11221             ;;
11222         esac
11223         link_all_deplibs_CXX=yes
11224
11225         output_verbose_link_cmd='echo'
11226
11227         # Archives containing C++ object files must be created using
11228         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11229         # necessary to make sure instantiated templates are included
11230         # in the archive.
11231         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11232         ;;
11233       gcx*)
11234         # Green Hills C++ Compiler
11235         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11236
11237         # The C++ compiler must be used to create the archive.
11238         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11239         ;;
11240       *)
11241         # GNU C++ compiler with Solaris linker
11242         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11243           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11244           if $CC --version | grep -v '^2\.7' > /dev/null; then
11245             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11246             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11247                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11248
11249             # Commands to make compiler produce verbose output that lists
11250             # what "hidden" libraries, object files and flags are used when
11251             # linking a shared library.
11252             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11253           else
11254             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11255             # platform.
11256             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11257             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11258                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11259
11260             # Commands to make compiler produce verbose output that lists
11261             # what "hidden" libraries, object files and flags are used when
11262             # linking a shared library.
11263             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11264           fi
11265
11266           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11267         fi
11268         ;;
11269     esac
11270     ;;
11271   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11272     no_undefined_flag_CXX='${wl}-z,text'
11273     archive_cmds_need_lc_CXX=no
11274     hardcode_shlibpath_var_CXX=no
11275     runpath_var='LD_RUN_PATH'
11276
11277     case $cc_basename in
11278       CC*)
11279         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11280         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11281         ;;
11282       *)
11283         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11284         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11285         ;;
11286     esac
11287     ;;
11288   sysv5* | sco3.2v5* | sco5v6*)
11289     # Note: We can NOT use -z defs as we might desire, because we do not
11290     # link with -lc, and that would cause any symbols used from libc to
11291     # always be unresolved, which means just about no library would
11292     # ever link correctly.  If we're not using GNU ld we use -z text
11293     # though, which does catch some bad symbols but isn't as heavy-handed
11294     # as -z defs.
11295     # For security reasons, it is highly recommended that you always
11296     # use absolute paths for naming shared libraries, and exclude the
11297     # DT_RUNPATH tag from executables and libraries.  But doing so
11298     # requires that you compile everything twice, which is a pain.
11299     # So that behaviour is only enabled if SCOABSPATH is set to a
11300     # non-empty value in the environment.  Most likely only useful for
11301     # creating official distributions of packages.
11302     # This is a hack until libtool officially supports absolute path
11303     # names for shared libraries.
11304     no_undefined_flag_CXX='${wl}-z,text'
11305     allow_undefined_flag_CXX='${wl}-z,nodefs'
11306     archive_cmds_need_lc_CXX=no
11307     hardcode_shlibpath_var_CXX=no
11308     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11309     hardcode_libdir_separator_CXX=':'
11310     link_all_deplibs_CXX=yes
11311     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11312     runpath_var='LD_RUN_PATH'
11313
11314     case $cc_basename in
11315       CC*)
11316         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11317         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11318         ;;
11319       *)
11320         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11321         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11322         ;;
11323     esac
11324     ;;
11325   tandem*)
11326     case $cc_basename in
11327       NCC*)
11328         # NonStop-UX NCC 3.20
11329         # FIXME: insert proper C++ library support
11330         ld_shlibs_CXX=no
11331         ;;
11332       *)
11333         # FIXME: insert proper C++ library support
11334         ld_shlibs_CXX=no
11335         ;;
11336     esac
11337     ;;
11338   vxworks*)
11339     # FIXME: insert proper C++ library support
11340     ld_shlibs_CXX=no
11341     ;;
11342   *)
11343     # FIXME: insert proper C++ library support
11344     ld_shlibs_CXX=no
11345     ;;
11346 esac
11347 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11348 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11349 test "$ld_shlibs_CXX" = no && can_build_shared=no
11350
11351 GCC_CXX="$GXX"
11352 LD_CXX="$LD"
11353
11354
11355 cat > conftest.$ac_ext <<EOF
11356 class Foo
11357 {
11358 public:
11359   Foo (void) { a = 0; }
11360 private:
11361   int a;
11362 };
11363 EOF
11364
11365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11366   (eval $ac_compile) 2>&5
11367   ac_status=$?
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); }; then
11370   # Parse the compiler output and extract the necessary
11371   # objects, libraries and library flags.
11372
11373   # Sentinel used to keep track of whether or not we are before
11374   # the conftest object file.
11375   pre_test_object_deps_done=no
11376
11377   # The `*' in the case matches for architectures that use `case' in
11378   # $output_verbose_cmd can trigger glob expansion during the loop
11379   # eval without this substitution.
11380   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11381
11382   for p in `eval $output_verbose_link_cmd`; do
11383     case $p in
11384
11385     -L* | -R* | -l*)
11386        # Some compilers place space between "-{L,R}" and the path.
11387        # Remove the space.
11388        if test $p = "-L" \
11389           || test $p = "-R"; then
11390          prev=$p
11391          continue
11392        else
11393          prev=
11394        fi
11395
11396        if test "$pre_test_object_deps_done" = no; then
11397          case $p in
11398          -L* | -R*)
11399            # Internal compiler library paths should come after those
11400            # provided the user.  The postdeps already come after the
11401            # user supplied libs so there is no need to process them.
11402            if test -z "$compiler_lib_search_path_CXX"; then
11403              compiler_lib_search_path_CXX="${prev}${p}"
11404            else
11405              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11406            fi
11407            ;;
11408          # The "-l" case would never come before the object being
11409          # linked, so don't bother handling this case.
11410          esac
11411        else
11412          if test -z "$postdeps_CXX"; then
11413            postdeps_CXX="${prev}${p}"
11414          else
11415            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11416          fi
11417        fi
11418        ;;
11419
11420     *.$objext)
11421        # This assumes that the test object file only shows up
11422        # once in the compiler output.
11423        if test "$p" = "conftest.$objext"; then
11424          pre_test_object_deps_done=yes
11425          continue
11426        fi
11427
11428        if test "$pre_test_object_deps_done" = no; then
11429          if test -z "$predep_objects_CXX"; then
11430            predep_objects_CXX="$p"
11431          else
11432            predep_objects_CXX="$predep_objects_CXX $p"
11433          fi
11434        else
11435          if test -z "$postdep_objects_CXX"; then
11436            postdep_objects_CXX="$p"
11437          else
11438            postdep_objects_CXX="$postdep_objects_CXX $p"
11439          fi
11440        fi
11441        ;;
11442
11443     *) ;; # Ignore the rest.
11444
11445     esac
11446   done
11447
11448   # Clean up.
11449   rm -f a.out a.exe
11450 else
11451   echo "libtool.m4: error: problem compiling CXX test program"
11452 fi
11453
11454 $rm -f confest.$objext
11455
11456 # PORTME: override above test on systems where it is broken
11457 case $host_os in
11458 interix3*)
11459   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11460   # hack all around it, let's just trust "g++" to DTRT.
11461   predep_objects_CXX=
11462   postdep_objects_CXX=
11463   postdeps_CXX=
11464   ;;
11465
11466 solaris*)
11467   case $cc_basename in
11468   CC*)
11469     # Adding this requires a known-good setup of shared libraries for
11470     # Sun compiler versions before 5.6, else PIC objects from an old
11471     # archive will be linked into the output, leading to subtle bugs.
11472     postdeps_CXX='-lCstd -lCrun'
11473     ;;
11474   esac
11475   ;;
11476 esac
11477
11478
11479 case " $postdeps_CXX " in
11480 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11481 esac
11482
11483 lt_prog_compiler_wl_CXX=
11484 lt_prog_compiler_pic_CXX=
11485 lt_prog_compiler_static_CXX=
11486
11487 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11488 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11489
11490   # C++ specific cases for pic, static, wl, etc.
11491   if test "$GXX" = yes; then
11492     lt_prog_compiler_wl_CXX='-Wl,'
11493     lt_prog_compiler_static_CXX='-static'
11494
11495     case $host_os in
11496     aix*)
11497       # All AIX code is PIC.
11498       if test "$host_cpu" = ia64; then
11499         # AIX 5 now supports IA64 processor
11500         lt_prog_compiler_static_CXX='-Bstatic'
11501       fi
11502       ;;
11503     amigaos*)
11504       # FIXME: we need at least 68020 code to build shared libraries, but
11505       # adding the `-m68020' flag to GCC prevents building anything better,
11506       # like `-m68040'.
11507       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11508       ;;
11509     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11510       # PIC is the default for these OSes.
11511       ;;
11512     mingw* | os2* | pw32*)
11513       # This hack is so that the source file can tell whether it is being
11514       # built for inclusion in a dll (and should export symbols for example).
11515       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11516       ;;
11517     darwin* | rhapsody*)
11518       # PIC is the default on this platform
11519       # Common symbols not allowed in MH_DYLIB files
11520       lt_prog_compiler_pic_CXX='-fno-common'
11521       ;;
11522     *djgpp*)
11523       # DJGPP does not support shared libraries at all
11524       lt_prog_compiler_pic_CXX=
11525       ;;
11526     interix3*)
11527       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11528       # Instead, we relocate shared libraries at runtime.
11529       ;;
11530     sysv4*MP*)
11531       if test -d /usr/nec; then
11532         lt_prog_compiler_pic_CXX=-Kconform_pic
11533       fi
11534       ;;
11535     hpux*)
11536       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11537       # not for PA HP-UX.
11538       case $host_cpu in
11539       hppa*64*|ia64*)
11540         ;;
11541       *)
11542         lt_prog_compiler_pic_CXX='-fPIC'
11543         ;;
11544       esac
11545       ;;
11546     *)
11547       lt_prog_compiler_pic_CXX='-fPIC'
11548       ;;
11549     esac
11550   else
11551     case $host_os in
11552       aix4* | aix5*)
11553         # All AIX code is PIC.
11554         if test "$host_cpu" = ia64; then
11555           # AIX 5 now supports IA64 processor
11556           lt_prog_compiler_static_CXX='-Bstatic'
11557         else
11558           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11559         fi
11560         ;;
11561       chorus*)
11562         case $cc_basename in
11563         cxch68*)
11564           # Green Hills C++ Compiler
11565           # _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"
11566           ;;
11567         esac
11568         ;;
11569        darwin*)
11570          # PIC is the default on this platform
11571          # Common symbols not allowed in MH_DYLIB files
11572          case $cc_basename in
11573            xlc*)
11574            lt_prog_compiler_pic_CXX='-qnocommon'
11575            lt_prog_compiler_wl_CXX='-Wl,'
11576            ;;
11577          esac
11578        ;;
11579       dgux*)
11580         case $cc_basename in
11581           ec++*)
11582             lt_prog_compiler_pic_CXX='-KPIC'
11583             ;;
11584           ghcx*)
11585             # Green Hills C++ Compiler
11586             lt_prog_compiler_pic_CXX='-pic'
11587             ;;
11588           *)
11589             ;;
11590         esac
11591         ;;
11592       freebsd* | kfreebsd*-gnu | dragonfly*)
11593         # FreeBSD uses GNU C++
11594         ;;
11595       hpux9* | hpux10* | hpux11*)
11596         case $cc_basename in
11597           CC*)
11598             lt_prog_compiler_wl_CXX='-Wl,'
11599             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11600             if test "$host_cpu" != ia64; then
11601               lt_prog_compiler_pic_CXX='+Z'
11602             fi
11603             ;;
11604           aCC*)
11605             lt_prog_compiler_wl_CXX='-Wl,'
11606             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11607             case $host_cpu in
11608             hppa*64*|ia64*)
11609               # +Z the default
11610               ;;
11611             *)
11612               lt_prog_compiler_pic_CXX='+Z'
11613               ;;
11614             esac
11615             ;;
11616           *)
11617             ;;
11618         esac
11619         ;;
11620       interix*)
11621         # This is c89, which is MS Visual C++ (no shared libs)
11622         # Anyone wants to do a port?
11623         ;;
11624       irix5* | irix6* | nonstopux*)
11625         case $cc_basename in
11626           CC*)
11627             lt_prog_compiler_wl_CXX='-Wl,'
11628             lt_prog_compiler_static_CXX='-non_shared'
11629             # CC pic flag -KPIC is the default.
11630             ;;
11631           *)
11632             ;;
11633         esac
11634         ;;
11635       linux*)
11636         case $cc_basename in
11637           KCC*)
11638             # KAI C++ Compiler
11639             lt_prog_compiler_wl_CXX='--backend -Wl,'
11640             lt_prog_compiler_pic_CXX='-fPIC'
11641             ;;
11642           icpc* | ecpc*)
11643             # Intel C++
11644             lt_prog_compiler_wl_CXX='-Wl,'
11645             lt_prog_compiler_pic_CXX='-KPIC'
11646             lt_prog_compiler_static_CXX='-static'
11647             ;;
11648           pgCC*)
11649             # Portland Group C++ compiler.
11650             lt_prog_compiler_wl_CXX='-Wl,'
11651             lt_prog_compiler_pic_CXX='-fpic'
11652             lt_prog_compiler_static_CXX='-Bstatic'
11653             ;;
11654           cxx*)
11655             # Compaq C++
11656             # Make sure the PIC flag is empty.  It appears that all Alpha
11657             # Linux and Compaq Tru64 Unix objects are PIC.
11658             lt_prog_compiler_pic_CXX=
11659             lt_prog_compiler_static_CXX='-non_shared'
11660             ;;
11661           *)
11662             ;;
11663         esac
11664         ;;
11665       lynxos*)
11666         ;;
11667       m88k*)
11668         ;;
11669       mvs*)
11670         case $cc_basename in
11671           cxx*)
11672             lt_prog_compiler_pic_CXX='-W c,exportall'
11673             ;;
11674           *)
11675             ;;
11676         esac
11677         ;;
11678       netbsd*)
11679         ;;
11680       osf3* | osf4* | osf5*)
11681         case $cc_basename in
11682           KCC*)
11683             lt_prog_compiler_wl_CXX='--backend -Wl,'
11684             ;;
11685           RCC*)
11686             # Rational C++ 2.4.1
11687             lt_prog_compiler_pic_CXX='-pic'
11688             ;;
11689           cxx*)
11690             # Digital/Compaq C++
11691             lt_prog_compiler_wl_CXX='-Wl,'
11692             # Make sure the PIC flag is empty.  It appears that all Alpha
11693             # Linux and Compaq Tru64 Unix objects are PIC.
11694             lt_prog_compiler_pic_CXX=
11695             lt_prog_compiler_static_CXX='-non_shared'
11696             ;;
11697           *)
11698             ;;
11699         esac
11700         ;;
11701       psos*)
11702         ;;
11703       solaris*)
11704         case $cc_basename in
11705           CC*)
11706             # Sun C++ 4.2, 5.x and Centerline C++
11707             lt_prog_compiler_pic_CXX='-KPIC'
11708             lt_prog_compiler_static_CXX='-Bstatic'
11709             lt_prog_compiler_wl_CXX='-Qoption ld '
11710             ;;
11711           gcx*)
11712             # Green Hills C++ Compiler
11713             lt_prog_compiler_pic_CXX='-PIC'
11714             ;;
11715           *)
11716             ;;
11717         esac
11718         ;;
11719       sunos4*)
11720         case $cc_basename in
11721           CC*)
11722             # Sun C++ 4.x
11723             lt_prog_compiler_pic_CXX='-pic'
11724             lt_prog_compiler_static_CXX='-Bstatic'
11725             ;;
11726           lcc*)
11727             # Lucid
11728             lt_prog_compiler_pic_CXX='-pic'
11729             ;;
11730           *)
11731             ;;
11732         esac
11733         ;;
11734       tandem*)
11735         case $cc_basename in
11736           NCC*)
11737             # NonStop-UX NCC 3.20
11738             lt_prog_compiler_pic_CXX='-KPIC'
11739             ;;
11740           *)
11741             ;;
11742         esac
11743         ;;
11744       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11745         case $cc_basename in
11746           CC*)
11747             lt_prog_compiler_wl_CXX='-Wl,'
11748             lt_prog_compiler_pic_CXX='-KPIC'
11749             lt_prog_compiler_static_CXX='-Bstatic'
11750             ;;
11751         esac
11752         ;;
11753       vxworks*)
11754         ;;
11755       *)
11756         lt_prog_compiler_can_build_shared_CXX=no
11757         ;;
11758     esac
11759   fi
11760
11761 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11762 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11763
11764 #
11765 # Check to make sure the PIC flag actually works.
11766 #
11767 if test -n "$lt_prog_compiler_pic_CXX"; then
11768
11769 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11770 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11771 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11772   echo $ECHO_N "(cached) $ECHO_C" >&6
11773 else
11774   lt_prog_compiler_pic_works_CXX=no
11775   ac_outfile=conftest.$ac_objext
11776    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11777    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11778    # Insert the option either (1) after the last *FLAGS variable, or
11779    # (2) before a word containing "conftest.", or (3) at the end.
11780    # Note that $ac_compile itself does not contain backslashes and begins
11781    # with a dollar sign (not a hyphen), so the echo should work correctly.
11782    # The option is referenced via a variable to avoid confusing sed.
11783    lt_compile=`echo "$ac_compile" | $SED \
11784    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11785    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11786    -e 's:$: $lt_compiler_flag:'`
11787    (eval echo "\"\$as_me:11787: $lt_compile\"" >&5)
11788    (eval "$lt_compile" 2>conftest.err)
11789    ac_status=$?
11790    cat conftest.err >&5
11791    echo "$as_me:11791: \$? = $ac_status" >&5
11792    if (exit $ac_status) && test -s "$ac_outfile"; then
11793      # The compiler can only warn and ignore the option if not recognized
11794      # So say no if there are warnings other than the usual output.
11795      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11796      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11797      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11798        lt_prog_compiler_pic_works_CXX=yes
11799      fi
11800    fi
11801    $rm conftest*
11802
11803 fi
11804 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11805 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11806
11807 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11808     case $lt_prog_compiler_pic_CXX in
11809      "" | " "*) ;;
11810      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11811      esac
11812 else
11813     lt_prog_compiler_pic_CXX=
11814      lt_prog_compiler_can_build_shared_CXX=no
11815 fi
11816
11817 fi
11818 case $host_os in
11819   # For platforms which do not support PIC, -DPIC is meaningless:
11820   *djgpp*)
11821     lt_prog_compiler_pic_CXX=
11822     ;;
11823   *)
11824     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11825     ;;
11826 esac
11827
11828 #
11829 # Check to make sure the static flag actually works.
11830 #
11831 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11832 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11833 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11834 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11835   echo $ECHO_N "(cached) $ECHO_C" >&6
11836 else
11837   lt_prog_compiler_static_works_CXX=no
11838    save_LDFLAGS="$LDFLAGS"
11839    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11840    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11841    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11842      # The linker can only warn and ignore the option if not recognized
11843      # So say no if there are warnings
11844      if test -s conftest.err; then
11845        # Append any errors to the config.log.
11846        cat conftest.err 1>&5
11847        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11848        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11849        if diff conftest.exp conftest.er2 >/dev/null; then
11850          lt_prog_compiler_static_works_CXX=yes
11851        fi
11852      else
11853        lt_prog_compiler_static_works_CXX=yes
11854      fi
11855    fi
11856    $rm conftest*
11857    LDFLAGS="$save_LDFLAGS"
11858
11859 fi
11860 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11861 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11862
11863 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11864     :
11865 else
11866     lt_prog_compiler_static_CXX=
11867 fi
11868
11869
11870 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11871 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11872 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11873   echo $ECHO_N "(cached) $ECHO_C" >&6
11874 else
11875   lt_cv_prog_compiler_c_o_CXX=no
11876    $rm -r conftest 2>/dev/null
11877    mkdir conftest
11878    cd conftest
11879    mkdir out
11880    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11881
11882    lt_compiler_flag="-o out/conftest2.$ac_objext"
11883    # Insert the option either (1) after the last *FLAGS variable, or
11884    # (2) before a word containing "conftest.", or (3) at the end.
11885    # Note that $ac_compile itself does not contain backslashes and begins
11886    # with a dollar sign (not a hyphen), so the echo should work correctly.
11887    lt_compile=`echo "$ac_compile" | $SED \
11888    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11889    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11890    -e 's:$: $lt_compiler_flag:'`
11891    (eval echo "\"\$as_me:11891: $lt_compile\"" >&5)
11892    (eval "$lt_compile" 2>out/conftest.err)
11893    ac_status=$?
11894    cat out/conftest.err >&5
11895    echo "$as_me:11895: \$? = $ac_status" >&5
11896    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11897    then
11898      # The compiler can only warn and ignore the option if not recognized
11899      # So say no if there are warnings
11900      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11901      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11902      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11903        lt_cv_prog_compiler_c_o_CXX=yes
11904      fi
11905    fi
11906    chmod u+w . 2>&5
11907    $rm conftest*
11908    # SGI C++ compiler will create directory out/ii_files/ for
11909    # template instantiation
11910    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11911    $rm out/* && rmdir out
11912    cd ..
11913    rmdir conftest
11914    $rm conftest*
11915
11916 fi
11917 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11918 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11919
11920
11921 hard_links="nottested"
11922 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11923   # do not overwrite the value of need_locks provided by the user
11924   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11925 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11926   hard_links=yes
11927   $rm conftest*
11928   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11929   touch conftest.a
11930   ln conftest.a conftest.b 2>&5 || hard_links=no
11931   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11932   echo "$as_me:$LINENO: result: $hard_links" >&5
11933 echo "${ECHO_T}$hard_links" >&6
11934   if test "$hard_links" = no; then
11935     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11936 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11937     need_locks=warn
11938   fi
11939 else
11940   need_locks=no
11941 fi
11942
11943 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11944 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11945
11946   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11947   case $host_os in
11948   aix4* | aix5*)
11949     # If we're using GNU nm, then we don't want the "-C" option.
11950     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11951     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11952       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'
11953     else
11954       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'
11955     fi
11956     ;;
11957   pw32*)
11958     export_symbols_cmds_CXX="$ltdll_cmds"
11959   ;;
11960   cygwin* | mingw*)
11961     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11962   ;;
11963   *)
11964     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11965   ;;
11966   esac
11967
11968 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11969 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11970 test "$ld_shlibs_CXX" = no && can_build_shared=no
11971
11972 #
11973 # Do we need to explicitly link libc?
11974 #
11975 case "x$archive_cmds_need_lc_CXX" in
11976 x|xyes)
11977   # Assume -lc should be added
11978   archive_cmds_need_lc_CXX=yes
11979
11980   if test "$enable_shared" = yes && test "$GCC" = yes; then
11981     case $archive_cmds_CXX in
11982     *'~'*)
11983       # FIXME: we may have to deal with multi-command sequences.
11984       ;;
11985     '$CC '*)
11986       # Test whether the compiler implicitly links with -lc since on some
11987       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11988       # to ld, don't add -lc before -lgcc.
11989       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11990 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11991       $rm conftest*
11992       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11993
11994       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995   (eval $ac_compile) 2>&5
11996   ac_status=$?
11997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998   (exit $ac_status); } 2>conftest.err; then
11999         soname=conftest
12000         lib=conftest
12001         libobjs=conftest.$ac_objext
12002         deplibs=
12003         wl=$lt_prog_compiler_wl_CXX
12004         pic_flag=$lt_prog_compiler_pic_CXX
12005         compiler_flags=-v
12006         linker_flags=-v
12007         verstring=
12008         output_objdir=.
12009         libname=conftest
12010         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12011         allow_undefined_flag_CXX=
12012         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12013   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12014   ac_status=$?
12015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); }
12017         then
12018           archive_cmds_need_lc_CXX=no
12019         else
12020           archive_cmds_need_lc_CXX=yes
12021         fi
12022         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12023       else
12024         cat conftest.err 1>&5
12025       fi
12026       $rm conftest*
12027       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12028 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12029       ;;
12030     esac
12031   fi
12032   ;;
12033 esac
12034
12035 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12036 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12037 library_names_spec=
12038 libname_spec='lib$name'
12039 soname_spec=
12040 shrext_cmds=".so"
12041 postinstall_cmds=
12042 postuninstall_cmds=
12043 finish_cmds=
12044 finish_eval=
12045 shlibpath_var=
12046 shlibpath_overrides_runpath=unknown
12047 version_type=none
12048 dynamic_linker="$host_os ld.so"
12049 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12050 if test "$GCC" = yes; then
12051   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12052   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12053     # if the path contains ";" then we assume it to be the separator
12054     # otherwise default to the standard path separator (i.e. ":") - it is
12055     # assumed that no part of a normal pathname contains ";" but that should
12056     # okay in the real world where ";" in dirpaths is itself problematic.
12057     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12058   else
12059     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12060   fi
12061 else
12062   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12063 fi
12064 need_lib_prefix=unknown
12065 hardcode_into_libs=no
12066
12067 # when you set need_version to no, make sure it does not cause -set_version
12068 # flags to be left without arguments
12069 need_version=unknown
12070
12071 case $host_os in
12072 aix3*)
12073   version_type=linux
12074   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12075   shlibpath_var=LIBPATH
12076
12077   # AIX 3 has no versioning support, so we append a major version to the name.
12078   soname_spec='${libname}${release}${shared_ext}$major'
12079   ;;
12080
12081 aix4* | aix5*)
12082   version_type=linux
12083   need_lib_prefix=no
12084   need_version=no
12085   hardcode_into_libs=yes
12086   if test "$host_cpu" = ia64; then
12087     # AIX 5 supports IA64
12088     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12089     shlibpath_var=LD_LIBRARY_PATH
12090   else
12091     # With GCC up to 2.95.x, collect2 would create an import file
12092     # for dependence libraries.  The import file would start with
12093     # the line `#! .'.  This would cause the generated library to
12094     # depend on `.', always an invalid library.  This was fixed in
12095     # development snapshots of GCC prior to 3.0.
12096     case $host_os in
12097       aix4 | aix4.[01] | aix4.[01].*)
12098       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12099            echo ' yes '
12100            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12101         :
12102       else
12103         can_build_shared=no
12104       fi
12105       ;;
12106     esac
12107     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12108     # soname into executable. Probably we can add versioning support to
12109     # collect2, so additional links can be useful in future.
12110     if test "$aix_use_runtimelinking" = yes; then
12111       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12112       # instead of lib<name>.a to let people know that these are not
12113       # typical AIX shared libraries.
12114       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12115     else
12116       # We preserve .a as extension for shared libraries through AIX4.2
12117       # and later when we are not doing run time linking.
12118       library_names_spec='${libname}${release}.a $libname.a'
12119       soname_spec='${libname}${release}${shared_ext}$major'
12120     fi
12121     shlibpath_var=LIBPATH
12122   fi
12123   ;;
12124
12125 amigaos*)
12126   library_names_spec='$libname.ixlibrary $libname.a'
12127   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12128   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'
12129   ;;
12130
12131 beos*)
12132   library_names_spec='${libname}${shared_ext}'
12133   dynamic_linker="$host_os ld.so"
12134   shlibpath_var=LIBRARY_PATH
12135   ;;
12136
12137 bsdi[45]*)
12138   version_type=linux
12139   need_version=no
12140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12141   soname_spec='${libname}${release}${shared_ext}$major'
12142   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12143   shlibpath_var=LD_LIBRARY_PATH
12144   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12145   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12146   # the default ld.so.conf also contains /usr/contrib/lib and
12147   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12148   # libtool to hard-code these into programs
12149   ;;
12150
12151 cygwin* | mingw* | pw32*)
12152   version_type=windows
12153   shrext_cmds=".dll"
12154   need_version=no
12155   need_lib_prefix=no
12156
12157   case $GCC,$host_os in
12158   yes,cygwin* | yes,mingw* | yes,pw32*)
12159     library_names_spec='$libname.dll.a'
12160     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12161     postinstall_cmds='base_file=`basename \${file}`~
12162       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12163       dldir=$destdir/`dirname \$dlpath`~
12164       test -d \$dldir || mkdir -p \$dldir~
12165       $install_prog $dir/$dlname \$dldir/$dlname~
12166       chmod a+x \$dldir/$dlname'
12167     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12168       dlpath=$dir/\$dldll~
12169        $rm \$dlpath'
12170     shlibpath_overrides_runpath=yes
12171
12172     case $host_os in
12173     cygwin*)
12174       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12175       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12176       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12177       ;;
12178     mingw*)
12179       # MinGW DLLs use traditional 'lib' prefix
12180       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12181       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12182       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12183         # It is most probably a Windows format PATH printed by
12184         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12185         # path with ; separators, and with drive letters. We can handle the
12186         # drive letters (cygwin fileutils understands them), so leave them,
12187         # especially as we might pass files found there to a mingw objdump,
12188         # which wouldn't understand a cygwinified path. Ahh.
12189         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12190       else
12191         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12192       fi
12193       ;;
12194     pw32*)
12195       # pw32 DLLs use 'pw' prefix rather than 'lib'
12196       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12197       ;;
12198     esac
12199     ;;
12200
12201   *)
12202     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12203     ;;
12204   esac
12205   dynamic_linker='Win32 ld.exe'
12206   # FIXME: first we should search . and the directory the executable is in
12207   shlibpath_var=PATH
12208   ;;
12209
12210 darwin* | rhapsody*)
12211   dynamic_linker="$host_os dyld"
12212   version_type=darwin
12213   need_lib_prefix=no
12214   need_version=no
12215   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12216   soname_spec='${libname}${release}${major}$shared_ext'
12217   shlibpath_overrides_runpath=yes
12218   shlibpath_var=DYLD_LIBRARY_PATH
12219   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12220   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12221   if test "$GCC" = yes; then
12222     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"`
12223   else
12224     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12225   fi
12226   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12227   ;;
12228
12229 dgux*)
12230   version_type=linux
12231   need_lib_prefix=no
12232   need_version=no
12233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12234   soname_spec='${libname}${release}${shared_ext}$major'
12235   shlibpath_var=LD_LIBRARY_PATH
12236   ;;
12237
12238 freebsd1*)
12239   dynamic_linker=no
12240   ;;
12241
12242 kfreebsd*-gnu)
12243   version_type=linux
12244   need_lib_prefix=no
12245   need_version=no
12246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12247   soname_spec='${libname}${release}${shared_ext}$major'
12248   shlibpath_var=LD_LIBRARY_PATH
12249   shlibpath_overrides_runpath=no
12250   hardcode_into_libs=yes
12251   dynamic_linker='GNU ld.so'
12252   ;;
12253
12254 freebsd* | dragonfly*)
12255   # DragonFly does not have aout.  When/if they implement a new
12256   # versioning mechanism, adjust this.
12257   if test -x /usr/bin/objformat; then
12258     objformat=`/usr/bin/objformat`
12259   else
12260     case $host_os in
12261     freebsd[123]*) objformat=aout ;;
12262     *) objformat=elf ;;
12263     esac
12264   fi
12265   version_type=freebsd-$objformat
12266   case $version_type in
12267     freebsd-elf*)
12268       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12269       need_version=no
12270       need_lib_prefix=no
12271       ;;
12272     freebsd-*)
12273       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12274       need_version=yes
12275       ;;
12276   esac
12277   shlibpath_var=LD_LIBRARY_PATH
12278   case $host_os in
12279   freebsd2*)
12280     shlibpath_overrides_runpath=yes
12281     ;;
12282   freebsd3.[01]* | freebsdelf3.[01]*)
12283     shlibpath_overrides_runpath=yes
12284     hardcode_into_libs=yes
12285     ;;
12286   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12287   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12288     shlibpath_overrides_runpath=no
12289     hardcode_into_libs=yes
12290     ;;
12291   freebsd*) # from 4.6 on
12292     shlibpath_overrides_runpath=yes
12293     hardcode_into_libs=yes
12294     ;;
12295   esac
12296   ;;
12297
12298 gnu*)
12299   version_type=linux
12300   need_lib_prefix=no
12301   need_version=no
12302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12303   soname_spec='${libname}${release}${shared_ext}$major'
12304   shlibpath_var=LD_LIBRARY_PATH
12305   hardcode_into_libs=yes
12306   ;;
12307
12308 hpux9* | hpux10* | hpux11*)
12309   # Give a soname corresponding to the major version so that dld.sl refuses to
12310   # link against other versions.
12311   version_type=sunos
12312   need_lib_prefix=no
12313   need_version=no
12314   case $host_cpu in
12315   ia64*)
12316     shrext_cmds='.so'
12317     hardcode_into_libs=yes
12318     dynamic_linker="$host_os dld.so"
12319     shlibpath_var=LD_LIBRARY_PATH
12320     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12321     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12322     soname_spec='${libname}${release}${shared_ext}$major'
12323     if test "X$HPUX_IA64_MODE" = X32; then
12324       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12325     else
12326       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12327     fi
12328     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12329     ;;
12330    hppa*64*)
12331      shrext_cmds='.sl'
12332      hardcode_into_libs=yes
12333      dynamic_linker="$host_os dld.sl"
12334      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12335      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12336      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12337      soname_spec='${libname}${release}${shared_ext}$major'
12338      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12339      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12340      ;;
12341    *)
12342     shrext_cmds='.sl'
12343     dynamic_linker="$host_os dld.sl"
12344     shlibpath_var=SHLIB_PATH
12345     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12347     soname_spec='${libname}${release}${shared_ext}$major'
12348     ;;
12349   esac
12350   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12351   postinstall_cmds='chmod 555 $lib'
12352   ;;
12353
12354 interix3*)
12355   version_type=linux
12356   need_lib_prefix=no
12357   need_version=no
12358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12359   soname_spec='${libname}${release}${shared_ext}$major'
12360   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12361   shlibpath_var=LD_LIBRARY_PATH
12362   shlibpath_overrides_runpath=no
12363   hardcode_into_libs=yes
12364   ;;
12365
12366 irix5* | irix6* | nonstopux*)
12367   case $host_os in
12368     nonstopux*) version_type=nonstopux ;;
12369     *)
12370         if test "$lt_cv_prog_gnu_ld" = yes; then
12371                 version_type=linux
12372         else
12373                 version_type=irix
12374         fi ;;
12375   esac
12376   need_lib_prefix=no
12377   need_version=no
12378   soname_spec='${libname}${release}${shared_ext}$major'
12379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12380   case $host_os in
12381   irix5* | nonstopux*)
12382     libsuff= shlibsuff=
12383     ;;
12384   *)
12385     case $LD in # libtool.m4 will add one of these switches to LD
12386     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12387       libsuff= shlibsuff= libmagic=32-bit;;
12388     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12389       libsuff=32 shlibsuff=N32 libmagic=N32;;
12390     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12391       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12392     *) libsuff= shlibsuff= libmagic=never-match;;
12393     esac
12394     ;;
12395   esac
12396   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12397   shlibpath_overrides_runpath=no
12398   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12399   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12400   hardcode_into_libs=yes
12401   ;;
12402
12403 # No shared lib support for Linux oldld, aout, or coff.
12404 linux*oldld* | linux*aout* | linux*coff*)
12405   dynamic_linker=no
12406   ;;
12407
12408 # This must be Linux ELF.
12409 linux*)
12410   version_type=linux
12411   need_lib_prefix=no
12412   need_version=no
12413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12414   soname_spec='${libname}${release}${shared_ext}$major'
12415   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12416   shlibpath_var=LD_LIBRARY_PATH
12417   shlibpath_overrides_runpath=no
12418   # This implies no fast_install, which is unacceptable.
12419   # Some rework will be needed to allow for fast_install
12420   # before this can be enabled.
12421   hardcode_into_libs=yes
12422
12423   # find out which ABI we are using
12424   libsuff=
12425   case "$host_cpu" in
12426   x86_64*|s390x*|powerpc64*)
12427     echo '#line 12427 "configure"' > conftest.$ac_ext
12428     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12429   (eval $ac_compile) 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); }; then
12433       case `/usr/bin/file conftest.$ac_objext` in
12434       *64-bit*)
12435         libsuff=64
12436         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12437         ;;
12438       esac
12439     fi
12440     rm -rf conftest*
12441     ;;
12442   esac
12443
12444   # Append ld.so.conf contents to the search path
12445   if test -f /etc/ld.so.conf; then
12446     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12447     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12448   fi
12449
12450   # We used to test for /lib/ld.so.1 and disable shared libraries on
12451   # powerpc, because MkLinux only supported shared libraries with the
12452   # GNU dynamic linker.  Since this was broken with cross compilers,
12453   # most powerpc-linux boxes support dynamic linking these days and
12454   # people can always --disable-shared, the test was removed, and we
12455   # assume the GNU/Linux dynamic linker is in use.
12456   dynamic_linker='GNU/Linux ld.so'
12457   ;;
12458
12459 knetbsd*-gnu)
12460   version_type=linux
12461   need_lib_prefix=no
12462   need_version=no
12463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12464   soname_spec='${libname}${release}${shared_ext}$major'
12465   shlibpath_var=LD_LIBRARY_PATH
12466   shlibpath_overrides_runpath=no
12467   hardcode_into_libs=yes
12468   dynamic_linker='GNU ld.so'
12469   ;;
12470
12471 netbsd*)
12472   version_type=sunos
12473   need_lib_prefix=no
12474   need_version=no
12475   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12476     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12477     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12478     dynamic_linker='NetBSD (a.out) ld.so'
12479   else
12480     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12481     soname_spec='${libname}${release}${shared_ext}$major'
12482     dynamic_linker='NetBSD ld.elf_so'
12483   fi
12484   shlibpath_var=LD_LIBRARY_PATH
12485   shlibpath_overrides_runpath=yes
12486   hardcode_into_libs=yes
12487   ;;
12488
12489 newsos6)
12490   version_type=linux
12491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12492   shlibpath_var=LD_LIBRARY_PATH
12493   shlibpath_overrides_runpath=yes
12494   ;;
12495
12496 nto-qnx*)
12497   version_type=linux
12498   need_lib_prefix=no
12499   need_version=no
12500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12501   soname_spec='${libname}${release}${shared_ext}$major'
12502   shlibpath_var=LD_LIBRARY_PATH
12503   shlibpath_overrides_runpath=yes
12504   ;;
12505
12506 openbsd*)
12507   version_type=sunos
12508   sys_lib_dlsearch_path_spec="/usr/lib"
12509   need_lib_prefix=no
12510   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12511   case $host_os in
12512     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12513     *)                         need_version=no  ;;
12514   esac
12515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12516   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12517   shlibpath_var=LD_LIBRARY_PATH
12518   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12519     case $host_os in
12520       openbsd2.[89] | openbsd2.[89].*)
12521         shlibpath_overrides_runpath=no
12522         ;;
12523       *)
12524         shlibpath_overrides_runpath=yes
12525         ;;
12526       esac
12527   else
12528     shlibpath_overrides_runpath=yes
12529   fi
12530   ;;
12531
12532 os2*)
12533   libname_spec='$name'
12534   shrext_cmds=".dll"
12535   need_lib_prefix=no
12536   library_names_spec='$libname${shared_ext} $libname.a'
12537   dynamic_linker='OS/2 ld.exe'
12538   shlibpath_var=LIBPATH
12539   ;;
12540
12541 osf3* | osf4* | osf5*)
12542   version_type=osf
12543   need_lib_prefix=no
12544   need_version=no
12545   soname_spec='${libname}${release}${shared_ext}$major'
12546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12547   shlibpath_var=LD_LIBRARY_PATH
12548   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12549   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12550   ;;
12551
12552 solaris*)
12553   version_type=linux
12554   need_lib_prefix=no
12555   need_version=no
12556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12557   soname_spec='${libname}${release}${shared_ext}$major'
12558   shlibpath_var=LD_LIBRARY_PATH
12559   shlibpath_overrides_runpath=yes
12560   hardcode_into_libs=yes
12561   # ldd complains unless libraries are executable
12562   postinstall_cmds='chmod +x $lib'
12563   ;;
12564
12565 sunos4*)
12566   version_type=sunos
12567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12568   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12569   shlibpath_var=LD_LIBRARY_PATH
12570   shlibpath_overrides_runpath=yes
12571   if test "$with_gnu_ld" = yes; then
12572     need_lib_prefix=no
12573   fi
12574   need_version=yes
12575   ;;
12576
12577 sysv4 | sysv4.3*)
12578   version_type=linux
12579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12580   soname_spec='${libname}${release}${shared_ext}$major'
12581   shlibpath_var=LD_LIBRARY_PATH
12582   case $host_vendor in
12583     sni)
12584       shlibpath_overrides_runpath=no
12585       need_lib_prefix=no
12586       export_dynamic_flag_spec='${wl}-Blargedynsym'
12587       runpath_var=LD_RUN_PATH
12588       ;;
12589     siemens)
12590       need_lib_prefix=no
12591       ;;
12592     motorola)
12593       need_lib_prefix=no
12594       need_version=no
12595       shlibpath_overrides_runpath=no
12596       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12597       ;;
12598   esac
12599   ;;
12600
12601 sysv4*MP*)
12602   if test -d /usr/nec ;then
12603     version_type=linux
12604     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12605     soname_spec='$libname${shared_ext}.$major'
12606     shlibpath_var=LD_LIBRARY_PATH
12607   fi
12608   ;;
12609
12610 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12611   version_type=freebsd-elf
12612   need_lib_prefix=no
12613   need_version=no
12614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12615   soname_spec='${libname}${release}${shared_ext}$major'
12616   shlibpath_var=LD_LIBRARY_PATH
12617   hardcode_into_libs=yes
12618   if test "$with_gnu_ld" = yes; then
12619     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12620     shlibpath_overrides_runpath=no
12621   else
12622     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12623     shlibpath_overrides_runpath=yes
12624     case $host_os in
12625       sco3.2v5*)
12626         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12627         ;;
12628     esac
12629   fi
12630   sys_lib_dlsearch_path_spec='/usr/lib'
12631   ;;
12632
12633 uts4*)
12634   version_type=linux
12635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12636   soname_spec='${libname}${release}${shared_ext}$major'
12637   shlibpath_var=LD_LIBRARY_PATH
12638   ;;
12639
12640 *)
12641   dynamic_linker=no
12642   ;;
12643 esac
12644 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12645 echo "${ECHO_T}$dynamic_linker" >&6
12646 test "$dynamic_linker" = no && can_build_shared=no
12647
12648 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12649 if test "$GCC" = yes; then
12650   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12651 fi
12652
12653 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12654 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12655 hardcode_action_CXX=
12656 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12657    test -n "$runpath_var_CXX" || \
12658    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12659
12660   # We can hardcode non-existant directories.
12661   if test "$hardcode_direct_CXX" != no &&
12662      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12663      # have to relink, otherwise we might link with an installed library
12664      # when we should be linking with a yet-to-be-installed one
12665      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12666      test "$hardcode_minus_L_CXX" != no; then
12667     # Linking always hardcodes the temporary library directory.
12668     hardcode_action_CXX=relink
12669   else
12670     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12671     hardcode_action_CXX=immediate
12672   fi
12673 else
12674   # We cannot hardcode anything, or else we can only hardcode existing
12675   # directories.
12676   hardcode_action_CXX=unsupported
12677 fi
12678 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12679 echo "${ECHO_T}$hardcode_action_CXX" >&6
12680
12681 if test "$hardcode_action_CXX" = relink; then
12682   # Fast installation is not supported
12683   enable_fast_install=no
12684 elif test "$shlibpath_overrides_runpath" = yes ||
12685      test "$enable_shared" = no; then
12686   # Fast installation is not necessary
12687   enable_fast_install=needless
12688 fi
12689
12690
12691 # The else clause should only fire when bootstrapping the
12692 # libtool distribution, otherwise you forgot to ship ltmain.sh
12693 # with your package, and you will get complaints that there are
12694 # no rules to generate ltmain.sh.
12695 if test -f "$ltmain"; then
12696   # See if we are running on zsh, and set the options which allow our commands through
12697   # without removal of \ escapes.
12698   if test -n "${ZSH_VERSION+set}" ; then
12699     setopt NO_GLOB_SUBST
12700   fi
12701   # Now quote all the things that may contain metacharacters while being
12702   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12703   # variables and quote the copies for generation of the libtool script.
12704   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12705     SED SHELL STRIP \
12706     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12707     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12708     deplibs_check_method reload_flag reload_cmds need_locks \
12709     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12710     lt_cv_sys_global_symbol_to_c_name_address \
12711     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12712     old_postinstall_cmds old_postuninstall_cmds \
12713     compiler_CXX \
12714     CC_CXX \
12715     LD_CXX \
12716     lt_prog_compiler_wl_CXX \
12717     lt_prog_compiler_pic_CXX \
12718     lt_prog_compiler_static_CXX \
12719     lt_prog_compiler_no_builtin_flag_CXX \
12720     export_dynamic_flag_spec_CXX \
12721     thread_safe_flag_spec_CXX \
12722     whole_archive_flag_spec_CXX \
12723     enable_shared_with_static_runtimes_CXX \
12724     old_archive_cmds_CXX \
12725     old_archive_from_new_cmds_CXX \
12726     predep_objects_CXX \
12727     postdep_objects_CXX \
12728     predeps_CXX \
12729     postdeps_CXX \
12730     compiler_lib_search_path_CXX \
12731     archive_cmds_CXX \
12732     archive_expsym_cmds_CXX \
12733     postinstall_cmds_CXX \
12734     postuninstall_cmds_CXX \
12735     old_archive_from_expsyms_cmds_CXX \
12736     allow_undefined_flag_CXX \
12737     no_undefined_flag_CXX \
12738     export_symbols_cmds_CXX \
12739     hardcode_libdir_flag_spec_CXX \
12740     hardcode_libdir_flag_spec_ld_CXX \
12741     hardcode_libdir_separator_CXX \
12742     hardcode_automatic_CXX \
12743     module_cmds_CXX \
12744     module_expsym_cmds_CXX \
12745     lt_cv_prog_compiler_c_o_CXX \
12746     exclude_expsyms_CXX \
12747     include_expsyms_CXX; do
12748
12749     case $var in
12750     old_archive_cmds_CXX | \
12751     old_archive_from_new_cmds_CXX | \
12752     archive_cmds_CXX | \
12753     archive_expsym_cmds_CXX | \
12754     module_cmds_CXX | \
12755     module_expsym_cmds_CXX | \
12756     old_archive_from_expsyms_cmds_CXX | \
12757     export_symbols_cmds_CXX | \
12758     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12759     postinstall_cmds | postuninstall_cmds | \
12760     old_postinstall_cmds | old_postuninstall_cmds | \
12761     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12762       # Double-quote double-evaled strings.
12763       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12764       ;;
12765     *)
12766       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12767       ;;
12768     esac
12769   done
12770
12771   case $lt_echo in
12772   *'\$0 --fallback-echo"')
12773     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12774     ;;
12775   esac
12776
12777 cfgfile="$ofile"
12778
12779   cat <<__EOF__ >> "$cfgfile"
12780 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12781
12782 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12783
12784 # Shell to use when invoking shell scripts.
12785 SHELL=$lt_SHELL
12786
12787 # Whether or not to build shared libraries.
12788 build_libtool_libs=$enable_shared
12789
12790 # Whether or not to build static libraries.
12791 build_old_libs=$enable_static
12792
12793 # Whether or not to add -lc for building shared libraries.
12794 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12795
12796 # Whether or not to disallow shared libs when runtime libs are static
12797 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12798
12799 # Whether or not to optimize for fast installation.
12800 fast_install=$enable_fast_install
12801
12802 # The host system.
12803 host_alias=$host_alias
12804 host=$host
12805 host_os=$host_os
12806
12807 # The build system.
12808 build_alias=$build_alias
12809 build=$build
12810 build_os=$build_os
12811
12812 # An echo program that does not interpret backslashes.
12813 echo=$lt_echo
12814
12815 # The archiver.
12816 AR=$lt_AR
12817 AR_FLAGS=$lt_AR_FLAGS
12818
12819 # A C compiler.
12820 LTCC=$lt_LTCC
12821
12822 # LTCC compiler flags.
12823 LTCFLAGS=$lt_LTCFLAGS
12824
12825 # A language-specific compiler.
12826 CC=$lt_compiler_CXX
12827
12828 # Is the compiler the GNU C compiler?
12829 with_gcc=$GCC_CXX
12830
12831 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12832 gcc_ver=\`gcc -dumpversion\`
12833
12834 # An ERE matcher.
12835 EGREP=$lt_EGREP
12836
12837 # The linker used to build libraries.
12838 LD=$lt_LD_CXX
12839
12840 # Whether we need hard or soft links.
12841 LN_S=$lt_LN_S
12842
12843 # A BSD-compatible nm program.
12844 NM=$lt_NM
12845
12846 # A symbol stripping program
12847 STRIP=$lt_STRIP
12848
12849 # Used to examine libraries when file_magic_cmd begins "file"
12850 MAGIC_CMD=$MAGIC_CMD
12851
12852 # Used on cygwin: DLL creation program.
12853 DLLTOOL="$DLLTOOL"
12854
12855 # Used on cygwin: object dumper.
12856 OBJDUMP="$OBJDUMP"
12857
12858 # Used on cygwin: assembler.
12859 AS="$AS"
12860
12861 # The name of the directory that contains temporary libtool files.
12862 objdir=$objdir
12863
12864 # How to create reloadable object files.
12865 reload_flag=$lt_reload_flag
12866 reload_cmds=$lt_reload_cmds
12867
12868 # How to pass a linker flag through the compiler.
12869 wl=$lt_lt_prog_compiler_wl_CXX
12870
12871 # Object file suffix (normally "o").
12872 objext="$ac_objext"
12873
12874 # Old archive suffix (normally "a").
12875 libext="$libext"
12876
12877 # Shared library suffix (normally ".so").
12878 shrext_cmds='$shrext_cmds'
12879
12880 # Executable file suffix (normally "").
12881 exeext="$exeext"
12882
12883 # Additional compiler flags for building library objects.
12884 pic_flag=$lt_lt_prog_compiler_pic_CXX
12885 pic_mode=$pic_mode
12886
12887 # What is the maximum length of a command?
12888 max_cmd_len=$lt_cv_sys_max_cmd_len
12889
12890 # Does compiler simultaneously support -c and -o options?
12891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12892
12893 # Must we lock files when doing compilation?
12894 need_locks=$lt_need_locks
12895
12896 # Do we need the lib prefix for modules?
12897 need_lib_prefix=$need_lib_prefix
12898
12899 # Do we need a version for libraries?
12900 need_version=$need_version
12901
12902 # Whether dlopen is supported.
12903 dlopen_support=$enable_dlopen
12904
12905 # Whether dlopen of programs is supported.
12906 dlopen_self=$enable_dlopen_self
12907
12908 # Whether dlopen of statically linked programs is supported.
12909 dlopen_self_static=$enable_dlopen_self_static
12910
12911 # Compiler flag to prevent dynamic linking.
12912 link_static_flag=$lt_lt_prog_compiler_static_CXX
12913
12914 # Compiler flag to turn off builtin functions.
12915 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12916
12917 # Compiler flag to allow reflexive dlopens.
12918 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12919
12920 # Compiler flag to generate shared objects directly from archives.
12921 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12922
12923 # Compiler flag to generate thread-safe objects.
12924 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12925
12926 # Library versioning type.
12927 version_type=$version_type
12928
12929 # Format of library name prefix.
12930 libname_spec=$lt_libname_spec
12931
12932 # List of archive names.  First name is the real one, the rest are links.
12933 # The last name is the one that the linker finds with -lNAME.
12934 library_names_spec=$lt_library_names_spec
12935
12936 # The coded name of the library, if different from the real name.
12937 soname_spec=$lt_soname_spec
12938
12939 # Commands used to build and install an old-style archive.
12940 RANLIB=$lt_RANLIB
12941 old_archive_cmds=$lt_old_archive_cmds_CXX
12942 old_postinstall_cmds=$lt_old_postinstall_cmds
12943 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12944
12945 # Create an old-style archive from a shared archive.
12946 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12947
12948 # Create a temporary old-style archive to link instead of a shared archive.
12949 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12950
12951 # Commands used to build and install a shared archive.
12952 archive_cmds=$lt_archive_cmds_CXX
12953 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12954 postinstall_cmds=$lt_postinstall_cmds
12955 postuninstall_cmds=$lt_postuninstall_cmds
12956
12957 # Commands used to build a loadable module (assumed same as above if empty)
12958 module_cmds=$lt_module_cmds_CXX
12959 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12960
12961 # Commands to strip libraries.
12962 old_striplib=$lt_old_striplib
12963 striplib=$lt_striplib
12964
12965 # Dependencies to place before the objects being linked to create a
12966 # shared library.
12967 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12968
12969 # Dependencies to place after the objects being linked to create a
12970 # shared library.
12971 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12972
12973 # Dependencies to place before the objects being linked to create a
12974 # shared library.
12975 predeps=$lt_predeps_CXX
12976
12977 # Dependencies to place after the objects being linked to create a
12978 # shared library.
12979 postdeps=$lt_postdeps_CXX
12980
12981 # The library search path used internally by the compiler when linking
12982 # a shared library.
12983 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12984
12985 # Method to check whether dependent libraries are shared objects.
12986 deplibs_check_method=$lt_deplibs_check_method
12987
12988 # Command to use when deplibs_check_method == file_magic.
12989 file_magic_cmd=$lt_file_magic_cmd
12990
12991 # Flag that allows shared libraries with undefined symbols to be built.
12992 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12993
12994 # Flag that forces no undefined symbols.
12995 no_undefined_flag=$lt_no_undefined_flag_CXX
12996
12997 # Commands used to finish a libtool library installation in a directory.
12998 finish_cmds=$lt_finish_cmds
12999
13000 # Same as above, but a single script fragment to be evaled but not shown.
13001 finish_eval=$lt_finish_eval
13002
13003 # Take the output of nm and produce a listing of raw symbols and C names.
13004 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13005
13006 # Transform the output of nm in a proper C declaration
13007 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13008
13009 # Transform the output of nm in a C name address pair
13010 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13011
13012 # This is the shared library runtime path variable.
13013 runpath_var=$runpath_var
13014
13015 # This is the shared library path variable.
13016 shlibpath_var=$shlibpath_var
13017
13018 # Is shlibpath searched before the hard-coded library search path?
13019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13020
13021 # How to hardcode a shared library path into an executable.
13022 hardcode_action=$hardcode_action_CXX
13023
13024 # Whether we should hardcode library paths into libraries.
13025 hardcode_into_libs=$hardcode_into_libs
13026
13027 # Flag to hardcode \$libdir into a binary during linking.
13028 # This must work even if \$libdir does not exist.
13029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13030
13031 # If ld is used when linking, flag to hardcode \$libdir into
13032 # a binary during linking. This must work even if \$libdir does
13033 # not exist.
13034 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13035
13036 # Whether we need a single -rpath flag with a separated argument.
13037 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13038
13039 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13040 # resulting binary.
13041 hardcode_direct=$hardcode_direct_CXX
13042
13043 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13044 # resulting binary.
13045 hardcode_minus_L=$hardcode_minus_L_CXX
13046
13047 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13048 # the resulting binary.
13049 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13050
13051 # Set to yes if building a shared library automatically hardcodes DIR into the library
13052 # and all subsequent libraries and executables linked against it.
13053 hardcode_automatic=$hardcode_automatic_CXX
13054
13055 # Variables whose values should be saved in libtool wrapper scripts and
13056 # restored at relink time.
13057 variables_saved_for_relink="$variables_saved_for_relink"
13058
13059 # Whether libtool must link a program against all its dependency libraries.
13060 link_all_deplibs=$link_all_deplibs_CXX
13061
13062 # Compile-time system search path for libraries
13063 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13064
13065 # Run-time system search path for libraries
13066 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13067
13068 # Fix the shell variable \$srcfile for the compiler.
13069 fix_srcfile_path="$fix_srcfile_path_CXX"
13070
13071 # Set to yes if exported symbols are required.
13072 always_export_symbols=$always_export_symbols_CXX
13073
13074 # The commands to list exported symbols.
13075 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13076
13077 # The commands to extract the exported symbol list from a shared archive.
13078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13079
13080 # Symbols that should not be listed in the preloaded symbols.
13081 exclude_expsyms=$lt_exclude_expsyms_CXX
13082
13083 # Symbols that must always be exported.
13084 include_expsyms=$lt_include_expsyms_CXX
13085
13086 # ### END LIBTOOL TAG CONFIG: $tagname
13087
13088 __EOF__
13089
13090
13091 else
13092   # If there is no Makefile yet, we rely on a make rule to execute
13093   # `config.status --recheck' to rerun these tests and create the
13094   # libtool script then.
13095   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13096   if test -f "$ltmain_in"; then
13097     test -f Makefile && make "$ltmain"
13098   fi
13099 fi
13100
13101
13102 ac_ext=c
13103 ac_cpp='$CPP $CPPFLAGS'
13104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13107
13108 CC=$lt_save_CC
13109 LDCXX=$LD
13110 LD=$lt_save_LD
13111 GCC=$lt_save_GCC
13112 with_gnu_ldcxx=$with_gnu_ld
13113 with_gnu_ld=$lt_save_with_gnu_ld
13114 lt_cv_path_LDCXX=$lt_cv_path_LD
13115 lt_cv_path_LD=$lt_save_path_LD
13116 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13117 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13118
13119         else
13120           tagname=""
13121         fi
13122         ;;
13123
13124       F77)
13125         if test -n "$F77" && test "X$F77" != "Xno"; then
13126
13127 ac_ext=f
13128 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13129 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13130 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13131
13132
13133 archive_cmds_need_lc_F77=no
13134 allow_undefined_flag_F77=
13135 always_export_symbols_F77=no
13136 archive_expsym_cmds_F77=
13137 export_dynamic_flag_spec_F77=
13138 hardcode_direct_F77=no
13139 hardcode_libdir_flag_spec_F77=
13140 hardcode_libdir_flag_spec_ld_F77=
13141 hardcode_libdir_separator_F77=
13142 hardcode_minus_L_F77=no
13143 hardcode_automatic_F77=no
13144 module_cmds_F77=
13145 module_expsym_cmds_F77=
13146 link_all_deplibs_F77=unknown
13147 old_archive_cmds_F77=$old_archive_cmds
13148 no_undefined_flag_F77=
13149 whole_archive_flag_spec_F77=
13150 enable_shared_with_static_runtimes_F77=no
13151
13152 # Source file extension for f77 test sources.
13153 ac_ext=f
13154
13155 # Object file extension for compiled f77 test sources.
13156 objext=o
13157 objext_F77=$objext
13158
13159 # Code to be used in simple compile tests
13160 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13161
13162 # Code to be used in simple link tests
13163 lt_simple_link_test_code="      program t\n      end\n"
13164
13165 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13166
13167 # If no C compiler was specified, use CC.
13168 LTCC=${LTCC-"$CC"}
13169
13170 # If no C compiler flags were specified, use CFLAGS.
13171 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13172
13173 # Allow CC to be a program name with arguments.
13174 compiler=$CC
13175
13176
13177 # save warnings/boilerplate of simple test code
13178 ac_outfile=conftest.$ac_objext
13179 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13180 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13181 _lt_compiler_boilerplate=`cat conftest.err`
13182 $rm conftest*
13183
13184 ac_outfile=conftest.$ac_objext
13185 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13186 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13187 _lt_linker_boilerplate=`cat conftest.err`
13188 $rm conftest*
13189
13190
13191 # Allow CC to be a program name with arguments.
13192 lt_save_CC="$CC"
13193 CC=${F77-"f77"}
13194 compiler=$CC
13195 compiler_F77=$CC
13196 for cc_temp in $compiler""; do
13197   case $cc_temp in
13198     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13199     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13200     \-*) ;;
13201     *) break;;
13202   esac
13203 done
13204 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13205
13206
13207 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13208 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13209 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13210 echo "${ECHO_T}$can_build_shared" >&6
13211
13212 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13213 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13214 test "$can_build_shared" = "no" && enable_shared=no
13215
13216 # On AIX, shared libraries and static libraries use the same namespace, and
13217 # are all built from PIC.
13218 case $host_os in
13219 aix3*)
13220   test "$enable_shared" = yes && enable_static=no
13221   if test -n "$RANLIB"; then
13222     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13223     postinstall_cmds='$RANLIB $lib'
13224   fi
13225   ;;
13226 aix4* | aix5*)
13227   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13228     test "$enable_shared" = yes && enable_static=no
13229   fi
13230   ;;
13231 esac
13232 echo "$as_me:$LINENO: result: $enable_shared" >&5
13233 echo "${ECHO_T}$enable_shared" >&6
13234
13235 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13236 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13237 # Make sure either enable_shared or enable_static is yes.
13238 test "$enable_shared" = yes || enable_static=yes
13239 echo "$as_me:$LINENO: result: $enable_static" >&5
13240 echo "${ECHO_T}$enable_static" >&6
13241
13242 GCC_F77="$G77"
13243 LD_F77="$LD"
13244
13245 lt_prog_compiler_wl_F77=
13246 lt_prog_compiler_pic_F77=
13247 lt_prog_compiler_static_F77=
13248
13249 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13250 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13251
13252   if test "$GCC" = yes; then
13253     lt_prog_compiler_wl_F77='-Wl,'
13254     lt_prog_compiler_static_F77='-static'
13255
13256     case $host_os in
13257       aix*)
13258       # All AIX code is PIC.
13259       if test "$host_cpu" = ia64; then
13260         # AIX 5 now supports IA64 processor
13261         lt_prog_compiler_static_F77='-Bstatic'
13262       fi
13263       ;;
13264
13265     amigaos*)
13266       # FIXME: we need at least 68020 code to build shared libraries, but
13267       # adding the `-m68020' flag to GCC prevents building anything better,
13268       # like `-m68040'.
13269       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13270       ;;
13271
13272     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13273       # PIC is the default for these OSes.
13274       ;;
13275
13276     mingw* | pw32* | os2*)
13277       # This hack is so that the source file can tell whether it is being
13278       # built for inclusion in a dll (and should export symbols for example).
13279       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13280       ;;
13281
13282     darwin* | rhapsody*)
13283       # PIC is the default on this platform
13284       # Common symbols not allowed in MH_DYLIB files
13285       lt_prog_compiler_pic_F77='-fno-common'
13286       ;;
13287
13288     interix3*)
13289       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13290       # Instead, we relocate shared libraries at runtime.
13291       ;;
13292
13293     msdosdjgpp*)
13294       # Just because we use GCC doesn't mean we suddenly get shared libraries
13295       # on systems that don't support them.
13296       lt_prog_compiler_can_build_shared_F77=no
13297       enable_shared=no
13298       ;;
13299
13300     sysv4*MP*)
13301       if test -d /usr/nec; then
13302         lt_prog_compiler_pic_F77=-Kconform_pic
13303       fi
13304       ;;
13305
13306     hpux*)
13307       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13308       # not for PA HP-UX.
13309       case $host_cpu in
13310       hppa*64*|ia64*)
13311         # +Z the default
13312         ;;
13313       *)
13314         lt_prog_compiler_pic_F77='-fPIC'
13315         ;;
13316       esac
13317       ;;
13318
13319     *)
13320       lt_prog_compiler_pic_F77='-fPIC'
13321       ;;
13322     esac
13323   else
13324     # PORTME Check for flag to pass linker flags through the system compiler.
13325     case $host_os in
13326     aix*)
13327       lt_prog_compiler_wl_F77='-Wl,'
13328       if test "$host_cpu" = ia64; then
13329         # AIX 5 now supports IA64 processor
13330         lt_prog_compiler_static_F77='-Bstatic'
13331       else
13332         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13333       fi
13334       ;;
13335       darwin*)
13336         # PIC is the default on this platform
13337         # Common symbols not allowed in MH_DYLIB files
13338        case $cc_basename in
13339          xlc*)
13340          lt_prog_compiler_pic_F77='-qnocommon'
13341          lt_prog_compiler_wl_F77='-Wl,'
13342          ;;
13343        esac
13344        ;;
13345
13346     mingw* | pw32* | os2*)
13347       # This hack is so that the source file can tell whether it is being
13348       # built for inclusion in a dll (and should export symbols for example).
13349       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13350       ;;
13351
13352     hpux9* | hpux10* | hpux11*)
13353       lt_prog_compiler_wl_F77='-Wl,'
13354       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13355       # not for PA HP-UX.
13356       case $host_cpu in
13357       hppa*64*|ia64*)
13358         # +Z the default
13359         ;;
13360       *)
13361         lt_prog_compiler_pic_F77='+Z'
13362         ;;
13363       esac
13364       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13365       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13366       ;;
13367
13368     irix5* | irix6* | nonstopux*)
13369       lt_prog_compiler_wl_F77='-Wl,'
13370       # PIC (with -KPIC) is the default.
13371       lt_prog_compiler_static_F77='-non_shared'
13372       ;;
13373
13374     newsos6)
13375       lt_prog_compiler_pic_F77='-KPIC'
13376       lt_prog_compiler_static_F77='-Bstatic'
13377       ;;
13378
13379     linux*)
13380       case $cc_basename in
13381       icc* | ecc*)
13382         lt_prog_compiler_wl_F77='-Wl,'
13383         lt_prog_compiler_pic_F77='-KPIC'
13384         lt_prog_compiler_static_F77='-static'
13385         ;;
13386       pgcc* | pgf77* | pgf90* | pgf95*)
13387         # Portland Group compilers (*not* the Pentium gcc compiler,
13388         # which looks to be a dead project)
13389         lt_prog_compiler_wl_F77='-Wl,'
13390         lt_prog_compiler_pic_F77='-fpic'
13391         lt_prog_compiler_static_F77='-Bstatic'
13392         ;;
13393       ccc*)
13394         lt_prog_compiler_wl_F77='-Wl,'
13395         # All Alpha code is PIC.
13396         lt_prog_compiler_static_F77='-non_shared'
13397         ;;
13398       esac
13399       ;;
13400
13401     osf3* | osf4* | osf5*)
13402       lt_prog_compiler_wl_F77='-Wl,'
13403       # All OSF/1 code is PIC.
13404       lt_prog_compiler_static_F77='-non_shared'
13405       ;;
13406
13407     solaris*)
13408       lt_prog_compiler_pic_F77='-KPIC'
13409       lt_prog_compiler_static_F77='-Bstatic'
13410       case $cc_basename in
13411       f77* | f90* | f95*)
13412         lt_prog_compiler_wl_F77='-Qoption ld ';;
13413       *)
13414         lt_prog_compiler_wl_F77='-Wl,';;
13415       esac
13416       ;;
13417
13418     sunos4*)
13419       lt_prog_compiler_wl_F77='-Qoption ld '
13420       lt_prog_compiler_pic_F77='-PIC'
13421       lt_prog_compiler_static_F77='-Bstatic'
13422       ;;
13423
13424     sysv4 | sysv4.2uw2* | sysv4.3*)
13425       lt_prog_compiler_wl_F77='-Wl,'
13426       lt_prog_compiler_pic_F77='-KPIC'
13427       lt_prog_compiler_static_F77='-Bstatic'
13428       ;;
13429
13430     sysv4*MP*)
13431       if test -d /usr/nec ;then
13432         lt_prog_compiler_pic_F77='-Kconform_pic'
13433         lt_prog_compiler_static_F77='-Bstatic'
13434       fi
13435       ;;
13436
13437     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13438       lt_prog_compiler_wl_F77='-Wl,'
13439       lt_prog_compiler_pic_F77='-KPIC'
13440       lt_prog_compiler_static_F77='-Bstatic'
13441       ;;
13442
13443     unicos*)
13444       lt_prog_compiler_wl_F77='-Wl,'
13445       lt_prog_compiler_can_build_shared_F77=no
13446       ;;
13447
13448     uts4*)
13449       lt_prog_compiler_pic_F77='-pic'
13450       lt_prog_compiler_static_F77='-Bstatic'
13451       ;;
13452
13453     *)
13454       lt_prog_compiler_can_build_shared_F77=no
13455       ;;
13456     esac
13457   fi
13458
13459 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13460 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13461
13462 #
13463 # Check to make sure the PIC flag actually works.
13464 #
13465 if test -n "$lt_prog_compiler_pic_F77"; then
13466
13467 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13468 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13469 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13470   echo $ECHO_N "(cached) $ECHO_C" >&6
13471 else
13472   lt_prog_compiler_pic_works_F77=no
13473   ac_outfile=conftest.$ac_objext
13474    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13475    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13476    # Insert the option either (1) after the last *FLAGS variable, or
13477    # (2) before a word containing "conftest.", or (3) at the end.
13478    # Note that $ac_compile itself does not contain backslashes and begins
13479    # with a dollar sign (not a hyphen), so the echo should work correctly.
13480    # The option is referenced via a variable to avoid confusing sed.
13481    lt_compile=`echo "$ac_compile" | $SED \
13482    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13483    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13484    -e 's:$: $lt_compiler_flag:'`
13485    (eval echo "\"\$as_me:13485: $lt_compile\"" >&5)
13486    (eval "$lt_compile" 2>conftest.err)
13487    ac_status=$?
13488    cat conftest.err >&5
13489    echo "$as_me:13489: \$? = $ac_status" >&5
13490    if (exit $ac_status) && test -s "$ac_outfile"; then
13491      # The compiler can only warn and ignore the option if not recognized
13492      # So say no if there are warnings other than the usual output.
13493      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13494      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13495      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13496        lt_prog_compiler_pic_works_F77=yes
13497      fi
13498    fi
13499    $rm conftest*
13500
13501 fi
13502 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13503 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13504
13505 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13506     case $lt_prog_compiler_pic_F77 in
13507      "" | " "*) ;;
13508      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13509      esac
13510 else
13511     lt_prog_compiler_pic_F77=
13512      lt_prog_compiler_can_build_shared_F77=no
13513 fi
13514
13515 fi
13516 case $host_os in
13517   # For platforms which do not support PIC, -DPIC is meaningless:
13518   *djgpp*)
13519     lt_prog_compiler_pic_F77=
13520     ;;
13521   *)
13522     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13523     ;;
13524 esac
13525
13526 #
13527 # Check to make sure the static flag actually works.
13528 #
13529 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13530 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13531 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13532 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13533   echo $ECHO_N "(cached) $ECHO_C" >&6
13534 else
13535   lt_prog_compiler_static_works_F77=no
13536    save_LDFLAGS="$LDFLAGS"
13537    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13538    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13539    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13540      # The linker can only warn and ignore the option if not recognized
13541      # So say no if there are warnings
13542      if test -s conftest.err; then
13543        # Append any errors to the config.log.
13544        cat conftest.err 1>&5
13545        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13546        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13547        if diff conftest.exp conftest.er2 >/dev/null; then
13548          lt_prog_compiler_static_works_F77=yes
13549        fi
13550      else
13551        lt_prog_compiler_static_works_F77=yes
13552      fi
13553    fi
13554    $rm conftest*
13555    LDFLAGS="$save_LDFLAGS"
13556
13557 fi
13558 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13559 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13560
13561 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13562     :
13563 else
13564     lt_prog_compiler_static_F77=
13565 fi
13566
13567
13568 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13569 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13570 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13571   echo $ECHO_N "(cached) $ECHO_C" >&6
13572 else
13573   lt_cv_prog_compiler_c_o_F77=no
13574    $rm -r conftest 2>/dev/null
13575    mkdir conftest
13576    cd conftest
13577    mkdir out
13578    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13579
13580    lt_compiler_flag="-o out/conftest2.$ac_objext"
13581    # Insert the option either (1) after the last *FLAGS variable, or
13582    # (2) before a word containing "conftest.", or (3) at the end.
13583    # Note that $ac_compile itself does not contain backslashes and begins
13584    # with a dollar sign (not a hyphen), so the echo should work correctly.
13585    lt_compile=`echo "$ac_compile" | $SED \
13586    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13587    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13588    -e 's:$: $lt_compiler_flag:'`
13589    (eval echo "\"\$as_me:13589: $lt_compile\"" >&5)
13590    (eval "$lt_compile" 2>out/conftest.err)
13591    ac_status=$?
13592    cat out/conftest.err >&5
13593    echo "$as_me:13593: \$? = $ac_status" >&5
13594    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13595    then
13596      # The compiler can only warn and ignore the option if not recognized
13597      # So say no if there are warnings
13598      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13599      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13600      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13601        lt_cv_prog_compiler_c_o_F77=yes
13602      fi
13603    fi
13604    chmod u+w . 2>&5
13605    $rm conftest*
13606    # SGI C++ compiler will create directory out/ii_files/ for
13607    # template instantiation
13608    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13609    $rm out/* && rmdir out
13610    cd ..
13611    rmdir conftest
13612    $rm conftest*
13613
13614 fi
13615 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13616 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13617
13618
13619 hard_links="nottested"
13620 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13621   # do not overwrite the value of need_locks provided by the user
13622   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13623 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13624   hard_links=yes
13625   $rm conftest*
13626   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13627   touch conftest.a
13628   ln conftest.a conftest.b 2>&5 || hard_links=no
13629   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13630   echo "$as_me:$LINENO: result: $hard_links" >&5
13631 echo "${ECHO_T}$hard_links" >&6
13632   if test "$hard_links" = no; then
13633     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13634 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13635     need_locks=warn
13636   fi
13637 else
13638   need_locks=no
13639 fi
13640
13641 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13642 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13643
13644   runpath_var=
13645   allow_undefined_flag_F77=
13646   enable_shared_with_static_runtimes_F77=no
13647   archive_cmds_F77=
13648   archive_expsym_cmds_F77=
13649   old_archive_From_new_cmds_F77=
13650   old_archive_from_expsyms_cmds_F77=
13651   export_dynamic_flag_spec_F77=
13652   whole_archive_flag_spec_F77=
13653   thread_safe_flag_spec_F77=
13654   hardcode_libdir_flag_spec_F77=
13655   hardcode_libdir_flag_spec_ld_F77=
13656   hardcode_libdir_separator_F77=
13657   hardcode_direct_F77=no
13658   hardcode_minus_L_F77=no
13659   hardcode_shlibpath_var_F77=unsupported
13660   link_all_deplibs_F77=unknown
13661   hardcode_automatic_F77=no
13662   module_cmds_F77=
13663   module_expsym_cmds_F77=
13664   always_export_symbols_F77=no
13665   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13666   # include_expsyms should be a list of space-separated symbols to be *always*
13667   # included in the symbol list
13668   include_expsyms_F77=
13669   # exclude_expsyms can be an extended regexp of symbols to exclude
13670   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13671   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13672   # as well as any symbol that contains `d'.
13673   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13674   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13675   # platforms (ab)use it in PIC code, but their linkers get confused if
13676   # the symbol is explicitly referenced.  Since portable code cannot
13677   # rely on this symbol name, it's probably fine to never include it in
13678   # preloaded symbol tables.
13679   extract_expsyms_cmds=
13680   # Just being paranoid about ensuring that cc_basename is set.
13681   for cc_temp in $compiler""; do
13682   case $cc_temp in
13683     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13684     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13685     \-*) ;;
13686     *) break;;
13687   esac
13688 done
13689 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13690
13691   case $host_os in
13692   cygwin* | mingw* | pw32*)
13693     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13694     # When not using gcc, we currently assume that we are using
13695     # Microsoft Visual C++.
13696     if test "$GCC" != yes; then
13697       with_gnu_ld=no
13698     fi
13699     ;;
13700   interix*)
13701     # we just hope/assume this is gcc and not c89 (= MSVC++)
13702     with_gnu_ld=yes
13703     ;;
13704   openbsd*)
13705     with_gnu_ld=no
13706     ;;
13707   esac
13708
13709   ld_shlibs_F77=yes
13710   if test "$with_gnu_ld" = yes; then
13711     # If archive_cmds runs LD, not CC, wlarc should be empty
13712     wlarc='${wl}'
13713
13714     # Set some defaults for GNU ld with shared library support. These
13715     # are reset later if shared libraries are not supported. Putting them
13716     # here allows them to be overridden if necessary.
13717     runpath_var=LD_RUN_PATH
13718     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13719     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13720     # ancient GNU ld didn't support --whole-archive et. al.
13721     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13722         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13723       else
13724         whole_archive_flag_spec_F77=
13725     fi
13726     supports_anon_versioning=no
13727     case `$LD -v 2>/dev/null` in
13728       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13729       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13730       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13731       *\ 2.11.*) ;; # other 2.11 versions
13732       *) supports_anon_versioning=yes ;;
13733     esac
13734
13735     # See if GNU ld supports shared libraries.
13736     case $host_os in
13737     aix3* | aix4* | aix5*)
13738       # On AIX/PPC, the GNU linker is very broken
13739       if test "$host_cpu" != ia64; then
13740         ld_shlibs_F77=no
13741         cat <<EOF 1>&2
13742
13743 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13744 *** to be unable to reliably create shared libraries on AIX.
13745 *** Therefore, libtool is disabling shared libraries support.  If you
13746 *** really care for shared libraries, you may want to modify your PATH
13747 *** so that a non-GNU linker is found, and then restart.
13748
13749 EOF
13750       fi
13751       ;;
13752
13753     amigaos*)
13754       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)'
13755       hardcode_libdir_flag_spec_F77='-L$libdir'
13756       hardcode_minus_L_F77=yes
13757
13758       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13759       # that the semantics of dynamic libraries on AmigaOS, at least up
13760       # to version 4, is to share data among multiple programs linked
13761       # with the same dynamic library.  Since this doesn't match the
13762       # behavior of shared libraries on other platforms, we can't use
13763       # them.
13764       ld_shlibs_F77=no
13765       ;;
13766
13767     beos*)
13768       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13769         allow_undefined_flag_F77=unsupported
13770         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13771         # support --undefined.  This deserves some investigation.  FIXME
13772         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13773       else
13774         ld_shlibs_F77=no
13775       fi
13776       ;;
13777
13778     cygwin* | mingw* | pw32*)
13779       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13780       # as there is no search path for DLLs.
13781       hardcode_libdir_flag_spec_F77='-L$libdir'
13782       allow_undefined_flag_F77=unsupported
13783       always_export_symbols_F77=no
13784       enable_shared_with_static_runtimes_F77=yes
13785       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13786
13787       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13788         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13789         # If the export-symbols file already is a .def file (1st line
13790         # is EXPORTS), use it as is; otherwise, prepend...
13791         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13792           cp $export_symbols $output_objdir/$soname.def;
13793         else
13794           echo EXPORTS > $output_objdir/$soname.def;
13795           cat $export_symbols >> $output_objdir/$soname.def;
13796         fi~
13797         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13798       else
13799         ld_shlibs_F77=no
13800       fi
13801       ;;
13802
13803     interix3*)
13804       hardcode_direct_F77=no
13805       hardcode_shlibpath_var_F77=no
13806       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13807       export_dynamic_flag_spec_F77='${wl}-E'
13808       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13809       # Instead, shared libraries are loaded at an image base (0x10000000 by
13810       # default) and relocated if they conflict, which is a slow very memory
13811       # consuming and fragmenting process.  To avoid this, we pick a random,
13812       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13813       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13814       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13815       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13816       ;;
13817
13818     linux*)
13819       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13820         tmp_addflag=
13821         case $cc_basename,$host_cpu in
13822         pgcc*)                          # Portland Group C compiler
13823           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13824           tmp_addflag=' $pic_flag'
13825           ;;
13826         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13827           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13828           tmp_addflag=' $pic_flag -Mnomain' ;;
13829         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13830           tmp_addflag=' -i_dynamic' ;;
13831         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13832           tmp_addflag=' -i_dynamic -nofor_main' ;;
13833         ifc* | ifort*)                  # Intel Fortran compiler
13834           tmp_addflag=' -nofor_main' ;;
13835         esac
13836         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13837
13838         if test $supports_anon_versioning = yes; then
13839           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13840   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13841   $echo "local: *; };" >> $output_objdir/$libname.ver~
13842           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13843         fi
13844       else
13845         ld_shlibs_F77=no
13846       fi
13847       ;;
13848
13849     netbsd*)
13850       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13851         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13852         wlarc=
13853       else
13854         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13855         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13856       fi
13857       ;;
13858
13859     solaris*)
13860       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13861         ld_shlibs_F77=no
13862         cat <<EOF 1>&2
13863
13864 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13865 *** create shared libraries on Solaris systems.  Therefore, libtool
13866 *** is disabling shared libraries support.  We urge you to upgrade GNU
13867 *** binutils to release 2.9.1 or newer.  Another option is to modify
13868 *** your PATH or compiler configuration so that the native linker is
13869 *** used, and then restart.
13870
13871 EOF
13872       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13873         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13874         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13875       else
13876         ld_shlibs_F77=no
13877       fi
13878       ;;
13879
13880     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13881       case `$LD -v 2>&1` in
13882         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13883         ld_shlibs_F77=no
13884         cat <<_LT_EOF 1>&2
13885
13886 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13887 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13888 *** is disabling shared libraries support.  We urge you to upgrade GNU
13889 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13890 *** your PATH or compiler configuration so that the native linker is
13891 *** used, and then restart.
13892
13893 _LT_EOF
13894         ;;
13895         *)
13896           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13897             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13898             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13899             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13900           else
13901             ld_shlibs_F77=no
13902           fi
13903         ;;
13904       esac
13905       ;;
13906
13907     sunos4*)
13908       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13909       wlarc=
13910       hardcode_direct_F77=yes
13911       hardcode_shlibpath_var_F77=no
13912       ;;
13913
13914     *)
13915       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13916         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13917         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13918       else
13919         ld_shlibs_F77=no
13920       fi
13921       ;;
13922     esac
13923
13924     if test "$ld_shlibs_F77" = no; then
13925       runpath_var=
13926       hardcode_libdir_flag_spec_F77=
13927       export_dynamic_flag_spec_F77=
13928       whole_archive_flag_spec_F77=
13929     fi
13930   else
13931     # PORTME fill in a description of your system's linker (not GNU ld)
13932     case $host_os in
13933     aix3*)
13934       allow_undefined_flag_F77=unsupported
13935       always_export_symbols_F77=yes
13936       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'
13937       # Note: this linker hardcodes the directories in LIBPATH if there
13938       # are no directories specified by -L.
13939       hardcode_minus_L_F77=yes
13940       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13941         # Neither direct hardcoding nor static linking is supported with a
13942         # broken collect2.
13943         hardcode_direct_F77=unsupported
13944       fi
13945       ;;
13946
13947     aix4* | aix5*)
13948       if test "$host_cpu" = ia64; then
13949         # On IA64, the linker does run time linking by default, so we don't
13950         # have to do anything special.
13951         aix_use_runtimelinking=no
13952         exp_sym_flag='-Bexport'
13953         no_entry_flag=""
13954       else
13955         # If we're using GNU nm, then we don't want the "-C" option.
13956         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13957         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13958           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'
13959         else
13960           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'
13961         fi
13962         aix_use_runtimelinking=no
13963
13964         # Test if we are trying to use run time linking or normal
13965         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13966         # need to do runtime linking.
13967         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13968           for ld_flag in $LDFLAGS; do
13969           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13970             aix_use_runtimelinking=yes
13971             break
13972           fi
13973           done
13974           ;;
13975         esac
13976
13977         exp_sym_flag='-bexport'
13978         no_entry_flag='-bnoentry'
13979       fi
13980
13981       # When large executables or shared objects are built, AIX ld can
13982       # have problems creating the table of contents.  If linking a library
13983       # or program results in "error TOC overflow" add -mminimal-toc to
13984       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13985       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13986
13987       archive_cmds_F77=''
13988       hardcode_direct_F77=yes
13989       hardcode_libdir_separator_F77=':'
13990       link_all_deplibs_F77=yes
13991
13992       if test "$GCC" = yes; then
13993         case $host_os in aix4.[012]|aix4.[012].*)
13994         # We only want to do this on AIX 4.2 and lower, the check
13995         # below for broken collect2 doesn't work under 4.3+
13996           collect2name=`${CC} -print-prog-name=collect2`
13997           if test -f "$collect2name" && \
13998            strings "$collect2name" | grep resolve_lib_name >/dev/null
13999           then
14000           # We have reworked collect2
14001           hardcode_direct_F77=yes
14002           else
14003           # We have old collect2
14004           hardcode_direct_F77=unsupported
14005           # It fails to find uninstalled libraries when the uninstalled
14006           # path is not listed in the libpath.  Setting hardcode_minus_L
14007           # to unsupported forces relinking
14008           hardcode_minus_L_F77=yes
14009           hardcode_libdir_flag_spec_F77='-L$libdir'
14010           hardcode_libdir_separator_F77=
14011           fi
14012           ;;
14013         esac
14014         shared_flag='-shared'
14015         if test "$aix_use_runtimelinking" = yes; then
14016           shared_flag="$shared_flag "'${wl}-G'
14017         fi
14018       else
14019         # not using gcc
14020         if test "$host_cpu" = ia64; then
14021         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14022         # chokes on -Wl,-G. The following line is correct:
14023           shared_flag='-G'
14024         else
14025           if test "$aix_use_runtimelinking" = yes; then
14026             shared_flag='${wl}-G'
14027           else
14028             shared_flag='${wl}-bM:SRE'
14029           fi
14030         fi
14031       fi
14032
14033       # It seems that -bexpall does not export symbols beginning with
14034       # underscore (_), so it is better to generate a list of symbols to export.
14035       always_export_symbols_F77=yes
14036       if test "$aix_use_runtimelinking" = yes; then
14037         # Warning - without using the other runtime loading flags (-brtl),
14038         # -berok will link without error, but may produce a broken library.
14039         allow_undefined_flag_F77='-berok'
14040        # Determine the default libpath from the value encoded in an empty executable.
14041        cat >conftest.$ac_ext <<_ACEOF
14042       program main
14043
14044       end
14045 _ACEOF
14046 rm -f conftest.$ac_objext conftest$ac_exeext
14047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14048   (eval $ac_link) 2>conftest.er1
14049   ac_status=$?
14050   grep -v '^ *+' conftest.er1 >conftest.err
14051   rm -f conftest.er1
14052   cat conftest.err >&5
14053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054   (exit $ac_status); } &&
14055          { ac_try='test -z "$ac_f77_werror_flag"
14056                          || test ! -s conftest.err'
14057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058   (eval $ac_try) 2>&5
14059   ac_status=$?
14060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061   (exit $ac_status); }; } &&
14062          { ac_try='test -s conftest$ac_exeext'
14063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064   (eval $ac_try) 2>&5
14065   ac_status=$?
14066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); }; }; then
14068
14069 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14070 }'`
14071 # Check for a 64-bit object if we didn't find anything.
14072 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; }
14073 }'`; fi
14074 else
14075   echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14077
14078 fi
14079 rm -f conftest.err conftest.$ac_objext \
14080       conftest$ac_exeext conftest.$ac_ext
14081 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14082
14083        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14084         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14085        else
14086         if test "$host_cpu" = ia64; then
14087           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14088           allow_undefined_flag_F77="-z nodefs"
14089           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14090         else
14091          # Determine the default libpath from the value encoded in an empty executable.
14092          cat >conftest.$ac_ext <<_ACEOF
14093       program main
14094
14095       end
14096 _ACEOF
14097 rm -f conftest.$ac_objext conftest$ac_exeext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14099   (eval $ac_link) 2>conftest.er1
14100   ac_status=$?
14101   grep -v '^ *+' conftest.er1 >conftest.err
14102   rm -f conftest.er1
14103   cat conftest.err >&5
14104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105   (exit $ac_status); } &&
14106          { ac_try='test -z "$ac_f77_werror_flag"
14107                          || test ! -s conftest.err'
14108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109   (eval $ac_try) 2>&5
14110   ac_status=$?
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); }; } &&
14113          { ac_try='test -s conftest$ac_exeext'
14114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115   (eval $ac_try) 2>&5
14116   ac_status=$?
14117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118   (exit $ac_status); }; }; then
14119
14120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14121 }'`
14122 # Check for a 64-bit object if we didn't find anything.
14123 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; }
14124 }'`; fi
14125 else
14126   echo "$as_me: failed program was:" >&5
14127 sed 's/^/| /' conftest.$ac_ext >&5
14128
14129 fi
14130 rm -f conftest.err conftest.$ac_objext \
14131       conftest$ac_exeext conftest.$ac_ext
14132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14133
14134          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14135           # Warning - without using the other run time loading flags,
14136           # -berok will link without error, but may produce a broken library.
14137           no_undefined_flag_F77=' ${wl}-bernotok'
14138           allow_undefined_flag_F77=' ${wl}-berok'
14139           # Exported symbols can be pulled into shared objects from archives
14140           whole_archive_flag_spec_F77='$convenience'
14141           archive_cmds_need_lc_F77=yes
14142           # This is similar to how AIX traditionally builds its shared libraries.
14143           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14144         fi
14145       fi
14146       ;;
14147
14148     amigaos*)
14149       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)'
14150       hardcode_libdir_flag_spec_F77='-L$libdir'
14151       hardcode_minus_L_F77=yes
14152       # see comment about different semantics on the GNU ld section
14153       ld_shlibs_F77=no
14154       ;;
14155
14156     bsdi[45]*)
14157       export_dynamic_flag_spec_F77=-rdynamic
14158       ;;
14159
14160     cygwin* | mingw* | pw32*)
14161       # When not using gcc, we currently assume that we are using
14162       # Microsoft Visual C++.
14163       # hardcode_libdir_flag_spec is actually meaningless, as there is
14164       # no search path for DLLs.
14165       hardcode_libdir_flag_spec_F77=' '
14166       allow_undefined_flag_F77=unsupported
14167       # Tell ltmain to make .lib files, not .a files.
14168       libext=lib
14169       # Tell ltmain to make .dll files, not .so files.
14170       shrext_cmds=".dll"
14171       # FIXME: Setting linknames here is a bad hack.
14172       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14173       # The linker will automatically build a .lib file if we build a DLL.
14174       old_archive_From_new_cmds_F77='true'
14175       # FIXME: Should let the user specify the lib program.
14176       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14177       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14178       enable_shared_with_static_runtimes_F77=yes
14179       ;;
14180
14181     darwin* | rhapsody*)
14182       case $host_os in
14183         rhapsody* | darwin1.[012])
14184          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14185          ;;
14186        *) # Darwin 1.3 on
14187          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14188            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14189          else
14190            case ${MACOSX_DEPLOYMENT_TARGET} in
14191              10.[012])
14192                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14193                ;;
14194              10.*)
14195                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14196                ;;
14197            esac
14198          fi
14199          ;;
14200       esac
14201       archive_cmds_need_lc_F77=no
14202       hardcode_direct_F77=no
14203       hardcode_automatic_F77=yes
14204       hardcode_shlibpath_var_F77=unsupported
14205       whole_archive_flag_spec_F77=''
14206       link_all_deplibs_F77=yes
14207     if test "$GCC" = yes ; then
14208         output_verbose_link_cmd='echo'
14209         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14210       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14211       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14212       archive_expsym_cmds_F77='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}'
14213       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}'
14214     else
14215       case $cc_basename in
14216         xlc*)
14217          output_verbose_link_cmd='echo'
14218          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14219          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14220           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14221          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14222           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}'
14223           ;;
14224        *)
14225          ld_shlibs_F77=no
14226           ;;
14227       esac
14228     fi
14229       ;;
14230
14231     dgux*)
14232       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14233       hardcode_libdir_flag_spec_F77='-L$libdir'
14234       hardcode_shlibpath_var_F77=no
14235       ;;
14236
14237     freebsd1*)
14238       ld_shlibs_F77=no
14239       ;;
14240
14241     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14242     # support.  Future versions do this automatically, but an explicit c++rt0.o
14243     # does not break anything, and helps significantly (at the cost of a little
14244     # extra space).
14245     freebsd2.2*)
14246       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14247       hardcode_libdir_flag_spec_F77='-R$libdir'
14248       hardcode_direct_F77=yes
14249       hardcode_shlibpath_var_F77=no
14250       ;;
14251
14252     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14253     freebsd2*)
14254       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14255       hardcode_direct_F77=yes
14256       hardcode_minus_L_F77=yes
14257       hardcode_shlibpath_var_F77=no
14258       ;;
14259
14260     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14261     freebsd* | kfreebsd*-gnu | dragonfly*)
14262       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14263       hardcode_libdir_flag_spec_F77='-R$libdir'
14264       hardcode_direct_F77=yes
14265       hardcode_shlibpath_var_F77=no
14266       ;;
14267
14268     hpux9*)
14269       if test "$GCC" = yes; then
14270         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'
14271       else
14272         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'
14273       fi
14274       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14275       hardcode_libdir_separator_F77=:
14276       hardcode_direct_F77=yes
14277
14278       # hardcode_minus_L: Not really in the search PATH,
14279       # but as the default location of the library.
14280       hardcode_minus_L_F77=yes
14281       export_dynamic_flag_spec_F77='${wl}-E'
14282       ;;
14283
14284     hpux10*)
14285       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14286         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14287       else
14288         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14289       fi
14290       if test "$with_gnu_ld" = no; then
14291         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14292         hardcode_libdir_separator_F77=:
14293
14294         hardcode_direct_F77=yes
14295         export_dynamic_flag_spec_F77='${wl}-E'
14296
14297         # hardcode_minus_L: Not really in the search PATH,
14298         # but as the default location of the library.
14299         hardcode_minus_L_F77=yes
14300       fi
14301       ;;
14302
14303     hpux11*)
14304       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14305         case $host_cpu in
14306         hppa*64*)
14307           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14308           ;;
14309         ia64*)
14310           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14311           ;;
14312         *)
14313           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14314           ;;
14315         esac
14316       else
14317         case $host_cpu in
14318         hppa*64*)
14319           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14320           ;;
14321         ia64*)
14322           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14323           ;;
14324         *)
14325           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14326           ;;
14327         esac
14328       fi
14329       if test "$with_gnu_ld" = no; then
14330         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14331         hardcode_libdir_separator_F77=:
14332
14333         case $host_cpu in
14334         hppa*64*|ia64*)
14335           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14336           hardcode_direct_F77=no
14337           hardcode_shlibpath_var_F77=no
14338           ;;
14339         *)
14340           hardcode_direct_F77=yes
14341           export_dynamic_flag_spec_F77='${wl}-E'
14342
14343           # hardcode_minus_L: Not really in the search PATH,
14344           # but as the default location of the library.
14345           hardcode_minus_L_F77=yes
14346           ;;
14347         esac
14348       fi
14349       ;;
14350
14351     irix5* | irix6* | nonstopux*)
14352       if test "$GCC" = yes; then
14353         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'
14354       else
14355         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'
14356         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14357       fi
14358       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14359       hardcode_libdir_separator_F77=:
14360       link_all_deplibs_F77=yes
14361       ;;
14362
14363     netbsd*)
14364       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14365         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14366       else
14367         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14368       fi
14369       hardcode_libdir_flag_spec_F77='-R$libdir'
14370       hardcode_direct_F77=yes
14371       hardcode_shlibpath_var_F77=no
14372       ;;
14373
14374     newsos6)
14375       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14376       hardcode_direct_F77=yes
14377       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14378       hardcode_libdir_separator_F77=:
14379       hardcode_shlibpath_var_F77=no
14380       ;;
14381
14382     openbsd*)
14383       hardcode_direct_F77=yes
14384       hardcode_shlibpath_var_F77=no
14385       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14386         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14387         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14388         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14389         export_dynamic_flag_spec_F77='${wl}-E'
14390       else
14391        case $host_os in
14392          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14393            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14394            hardcode_libdir_flag_spec_F77='-R$libdir'
14395            ;;
14396          *)
14397            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14398            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14399            ;;
14400        esac
14401       fi
14402       ;;
14403
14404     os2*)
14405       hardcode_libdir_flag_spec_F77='-L$libdir'
14406       hardcode_minus_L_F77=yes
14407       allow_undefined_flag_F77=unsupported
14408       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'
14409       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14410       ;;
14411
14412     osf3*)
14413       if test "$GCC" = yes; then
14414         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14415         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'
14416       else
14417         allow_undefined_flag_F77=' -expect_unresolved \*'
14418         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'
14419       fi
14420       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14421       hardcode_libdir_separator_F77=:
14422       ;;
14423
14424     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14425       if test "$GCC" = yes; then
14426         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14427         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'
14428         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14429       else
14430         allow_undefined_flag_F77=' -expect_unresolved \*'
14431         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'
14432         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~
14433         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14434
14435         # Both c and cxx compiler support -rpath directly
14436         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14437       fi
14438       hardcode_libdir_separator_F77=:
14439       ;;
14440
14441     solaris*)
14442       no_undefined_flag_F77=' -z text'
14443       if test "$GCC" = yes; then
14444         wlarc='${wl}'
14445         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14446         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14447           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14448       else
14449         wlarc=''
14450         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14451         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14452         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14453       fi
14454       hardcode_libdir_flag_spec_F77='-R$libdir'
14455       hardcode_shlibpath_var_F77=no
14456       case $host_os in
14457       solaris2.[0-5] | solaris2.[0-5].*) ;;
14458       *)
14459         # The compiler driver will combine linker options so we
14460         # cannot just pass the convience library names through
14461         # without $wl, iff we do not link with $LD.
14462         # Luckily, gcc supports the same syntax we need for Sun Studio.
14463         # Supported since Solaris 2.6 (maybe 2.5.1?)
14464         case $wlarc in
14465         '')
14466           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14467         *)
14468           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14469         esac ;;
14470       esac
14471       link_all_deplibs_F77=yes
14472       ;;
14473
14474     sunos4*)
14475       if test "x$host_vendor" = xsequent; then
14476         # Use $CC to link under sequent, because it throws in some extra .o
14477         # files that make .init and .fini sections work.
14478         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14479       else
14480         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14481       fi
14482       hardcode_libdir_flag_spec_F77='-L$libdir'
14483       hardcode_direct_F77=yes
14484       hardcode_minus_L_F77=yes
14485       hardcode_shlibpath_var_F77=no
14486       ;;
14487
14488     sysv4)
14489       case $host_vendor in
14490         sni)
14491           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14492           hardcode_direct_F77=yes # is this really true???
14493         ;;
14494         siemens)
14495           ## LD is ld it makes a PLAMLIB
14496           ## CC just makes a GrossModule.
14497           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14498           reload_cmds_F77='$CC -r -o $output$reload_objs'
14499           hardcode_direct_F77=no
14500         ;;
14501         motorola)
14502           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14503           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14504         ;;
14505       esac
14506       runpath_var='LD_RUN_PATH'
14507       hardcode_shlibpath_var_F77=no
14508       ;;
14509
14510     sysv4.3*)
14511       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14512       hardcode_shlibpath_var_F77=no
14513       export_dynamic_flag_spec_F77='-Bexport'
14514       ;;
14515
14516     sysv4*MP*)
14517       if test -d /usr/nec; then
14518         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14519         hardcode_shlibpath_var_F77=no
14520         runpath_var=LD_RUN_PATH
14521         hardcode_runpath_var=yes
14522         ld_shlibs_F77=yes
14523       fi
14524       ;;
14525
14526     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14527       no_undefined_flag_F77='${wl}-z,text'
14528       archive_cmds_need_lc_F77=no
14529       hardcode_shlibpath_var_F77=no
14530       runpath_var='LD_RUN_PATH'
14531
14532       if test "$GCC" = yes; then
14533         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14534         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14535       else
14536         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14537         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14538       fi
14539       ;;
14540
14541     sysv5* | sco3.2v5* | sco5v6*)
14542       # Note: We can NOT use -z defs as we might desire, because we do not
14543       # link with -lc, and that would cause any symbols used from libc to
14544       # always be unresolved, which means just about no library would
14545       # ever link correctly.  If we're not using GNU ld we use -z text
14546       # though, which does catch some bad symbols but isn't as heavy-handed
14547       # as -z defs.
14548       no_undefined_flag_F77='${wl}-z,text'
14549       allow_undefined_flag_F77='${wl}-z,nodefs'
14550       archive_cmds_need_lc_F77=no
14551       hardcode_shlibpath_var_F77=no
14552       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14553       hardcode_libdir_separator_F77=':'
14554       link_all_deplibs_F77=yes
14555       export_dynamic_flag_spec_F77='${wl}-Bexport'
14556       runpath_var='LD_RUN_PATH'
14557
14558       if test "$GCC" = yes; then
14559         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14560         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14561       else
14562         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14563         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14564       fi
14565       ;;
14566
14567     uts4*)
14568       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14569       hardcode_libdir_flag_spec_F77='-L$libdir'
14570       hardcode_shlibpath_var_F77=no
14571       ;;
14572
14573     *)
14574       ld_shlibs_F77=no
14575       ;;
14576     esac
14577   fi
14578
14579 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14580 echo "${ECHO_T}$ld_shlibs_F77" >&6
14581 test "$ld_shlibs_F77" = no && can_build_shared=no
14582
14583 #
14584 # Do we need to explicitly link libc?
14585 #
14586 case "x$archive_cmds_need_lc_F77" in
14587 x|xyes)
14588   # Assume -lc should be added
14589   archive_cmds_need_lc_F77=yes
14590
14591   if test "$enable_shared" = yes && test "$GCC" = yes; then
14592     case $archive_cmds_F77 in
14593     *'~'*)
14594       # FIXME: we may have to deal with multi-command sequences.
14595       ;;
14596     '$CC '*)
14597       # Test whether the compiler implicitly links with -lc since on some
14598       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14599       # to ld, don't add -lc before -lgcc.
14600       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14601 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14602       $rm conftest*
14603       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14604
14605       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14606   (eval $ac_compile) 2>&5
14607   ac_status=$?
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); } 2>conftest.err; then
14610         soname=conftest
14611         lib=conftest
14612         libobjs=conftest.$ac_objext
14613         deplibs=
14614         wl=$lt_prog_compiler_wl_F77
14615         pic_flag=$lt_prog_compiler_pic_F77
14616         compiler_flags=-v
14617         linker_flags=-v
14618         verstring=
14619         output_objdir=.
14620         libname=conftest
14621         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14622         allow_undefined_flag_F77=
14623         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14624   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14625   ac_status=$?
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); }
14628         then
14629           archive_cmds_need_lc_F77=no
14630         else
14631           archive_cmds_need_lc_F77=yes
14632         fi
14633         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14634       else
14635         cat conftest.err 1>&5
14636       fi
14637       $rm conftest*
14638       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14639 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14640       ;;
14641     esac
14642   fi
14643   ;;
14644 esac
14645
14646 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14647 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14648 library_names_spec=
14649 libname_spec='lib$name'
14650 soname_spec=
14651 shrext_cmds=".so"
14652 postinstall_cmds=
14653 postuninstall_cmds=
14654 finish_cmds=
14655 finish_eval=
14656 shlibpath_var=
14657 shlibpath_overrides_runpath=unknown
14658 version_type=none
14659 dynamic_linker="$host_os ld.so"
14660 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14661 if test "$GCC" = yes; then
14662   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14663   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14664     # if the path contains ";" then we assume it to be the separator
14665     # otherwise default to the standard path separator (i.e. ":") - it is
14666     # assumed that no part of a normal pathname contains ";" but that should
14667     # okay in the real world where ";" in dirpaths is itself problematic.
14668     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14669   else
14670     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14671   fi
14672 else
14673   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14674 fi
14675 need_lib_prefix=unknown
14676 hardcode_into_libs=no
14677
14678 # when you set need_version to no, make sure it does not cause -set_version
14679 # flags to be left without arguments
14680 need_version=unknown
14681
14682 case $host_os in
14683 aix3*)
14684   version_type=linux
14685   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14686   shlibpath_var=LIBPATH
14687
14688   # AIX 3 has no versioning support, so we append a major version to the name.
14689   soname_spec='${libname}${release}${shared_ext}$major'
14690   ;;
14691
14692 aix4* | aix5*)
14693   version_type=linux
14694   need_lib_prefix=no
14695   need_version=no
14696   hardcode_into_libs=yes
14697   if test "$host_cpu" = ia64; then
14698     # AIX 5 supports IA64
14699     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14700     shlibpath_var=LD_LIBRARY_PATH
14701   else
14702     # With GCC up to 2.95.x, collect2 would create an import file
14703     # for dependence libraries.  The import file would start with
14704     # the line `#! .'.  This would cause the generated library to
14705     # depend on `.', always an invalid library.  This was fixed in
14706     # development snapshots of GCC prior to 3.0.
14707     case $host_os in
14708       aix4 | aix4.[01] | aix4.[01].*)
14709       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14710            echo ' yes '
14711            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14712         :
14713       else
14714         can_build_shared=no
14715       fi
14716       ;;
14717     esac
14718     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14719     # soname into executable. Probably we can add versioning support to
14720     # collect2, so additional links can be useful in future.
14721     if test "$aix_use_runtimelinking" = yes; then
14722       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14723       # instead of lib<name>.a to let people know that these are not
14724       # typical AIX shared libraries.
14725       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726     else
14727       # We preserve .a as extension for shared libraries through AIX4.2
14728       # and later when we are not doing run time linking.
14729       library_names_spec='${libname}${release}.a $libname.a'
14730       soname_spec='${libname}${release}${shared_ext}$major'
14731     fi
14732     shlibpath_var=LIBPATH
14733   fi
14734   ;;
14735
14736 amigaos*)
14737   library_names_spec='$libname.ixlibrary $libname.a'
14738   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14739   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'
14740   ;;
14741
14742 beos*)
14743   library_names_spec='${libname}${shared_ext}'
14744   dynamic_linker="$host_os ld.so"
14745   shlibpath_var=LIBRARY_PATH
14746   ;;
14747
14748 bsdi[45]*)
14749   version_type=linux
14750   need_version=no
14751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14752   soname_spec='${libname}${release}${shared_ext}$major'
14753   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14754   shlibpath_var=LD_LIBRARY_PATH
14755   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14756   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14757   # the default ld.so.conf also contains /usr/contrib/lib and
14758   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14759   # libtool to hard-code these into programs
14760   ;;
14761
14762 cygwin* | mingw* | pw32*)
14763   version_type=windows
14764   shrext_cmds=".dll"
14765   need_version=no
14766   need_lib_prefix=no
14767
14768   case $GCC,$host_os in
14769   yes,cygwin* | yes,mingw* | yes,pw32*)
14770     library_names_spec='$libname.dll.a'
14771     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14772     postinstall_cmds='base_file=`basename \${file}`~
14773       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14774       dldir=$destdir/`dirname \$dlpath`~
14775       test -d \$dldir || mkdir -p \$dldir~
14776       $install_prog $dir/$dlname \$dldir/$dlname~
14777       chmod a+x \$dldir/$dlname'
14778     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14779       dlpath=$dir/\$dldll~
14780        $rm \$dlpath'
14781     shlibpath_overrides_runpath=yes
14782
14783     case $host_os in
14784     cygwin*)
14785       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14786       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14787       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14788       ;;
14789     mingw*)
14790       # MinGW DLLs use traditional 'lib' prefix
14791       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14792       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14793       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14794         # It is most probably a Windows format PATH printed by
14795         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14796         # path with ; separators, and with drive letters. We can handle the
14797         # drive letters (cygwin fileutils understands them), so leave them,
14798         # especially as we might pass files found there to a mingw objdump,
14799         # which wouldn't understand a cygwinified path. Ahh.
14800         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14801       else
14802         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14803       fi
14804       ;;
14805     pw32*)
14806       # pw32 DLLs use 'pw' prefix rather than 'lib'
14807       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14808       ;;
14809     esac
14810     ;;
14811
14812   *)
14813     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14814     ;;
14815   esac
14816   dynamic_linker='Win32 ld.exe'
14817   # FIXME: first we should search . and the directory the executable is in
14818   shlibpath_var=PATH
14819   ;;
14820
14821 darwin* | rhapsody*)
14822   dynamic_linker="$host_os dyld"
14823   version_type=darwin
14824   need_lib_prefix=no
14825   need_version=no
14826   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14827   soname_spec='${libname}${release}${major}$shared_ext'
14828   shlibpath_overrides_runpath=yes
14829   shlibpath_var=DYLD_LIBRARY_PATH
14830   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14831   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14832   if test "$GCC" = yes; then
14833     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"`
14834   else
14835     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14836   fi
14837   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14838   ;;
14839
14840 dgux*)
14841   version_type=linux
14842   need_lib_prefix=no
14843   need_version=no
14844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14845   soname_spec='${libname}${release}${shared_ext}$major'
14846   shlibpath_var=LD_LIBRARY_PATH
14847   ;;
14848
14849 freebsd1*)
14850   dynamic_linker=no
14851   ;;
14852
14853 kfreebsd*-gnu)
14854   version_type=linux
14855   need_lib_prefix=no
14856   need_version=no
14857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14858   soname_spec='${libname}${release}${shared_ext}$major'
14859   shlibpath_var=LD_LIBRARY_PATH
14860   shlibpath_overrides_runpath=no
14861   hardcode_into_libs=yes
14862   dynamic_linker='GNU ld.so'
14863   ;;
14864
14865 freebsd* | dragonfly*)
14866   # DragonFly does not have aout.  When/if they implement a new
14867   # versioning mechanism, adjust this.
14868   if test -x /usr/bin/objformat; then
14869     objformat=`/usr/bin/objformat`
14870   else
14871     case $host_os in
14872     freebsd[123]*) objformat=aout ;;
14873     *) objformat=elf ;;
14874     esac
14875   fi
14876   version_type=freebsd-$objformat
14877   case $version_type in
14878     freebsd-elf*)
14879       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14880       need_version=no
14881       need_lib_prefix=no
14882       ;;
14883     freebsd-*)
14884       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14885       need_version=yes
14886       ;;
14887   esac
14888   shlibpath_var=LD_LIBRARY_PATH
14889   case $host_os in
14890   freebsd2*)
14891     shlibpath_overrides_runpath=yes
14892     ;;
14893   freebsd3.[01]* | freebsdelf3.[01]*)
14894     shlibpath_overrides_runpath=yes
14895     hardcode_into_libs=yes
14896     ;;
14897   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14898   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14899     shlibpath_overrides_runpath=no
14900     hardcode_into_libs=yes
14901     ;;
14902   freebsd*) # from 4.6 on
14903     shlibpath_overrides_runpath=yes
14904     hardcode_into_libs=yes
14905     ;;
14906   esac
14907   ;;
14908
14909 gnu*)
14910   version_type=linux
14911   need_lib_prefix=no
14912   need_version=no
14913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14914   soname_spec='${libname}${release}${shared_ext}$major'
14915   shlibpath_var=LD_LIBRARY_PATH
14916   hardcode_into_libs=yes
14917   ;;
14918
14919 hpux9* | hpux10* | hpux11*)
14920   # Give a soname corresponding to the major version so that dld.sl refuses to
14921   # link against other versions.
14922   version_type=sunos
14923   need_lib_prefix=no
14924   need_version=no
14925   case $host_cpu in
14926   ia64*)
14927     shrext_cmds='.so'
14928     hardcode_into_libs=yes
14929     dynamic_linker="$host_os dld.so"
14930     shlibpath_var=LD_LIBRARY_PATH
14931     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14932     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933     soname_spec='${libname}${release}${shared_ext}$major'
14934     if test "X$HPUX_IA64_MODE" = X32; then
14935       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14936     else
14937       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14938     fi
14939     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14940     ;;
14941    hppa*64*)
14942      shrext_cmds='.sl'
14943      hardcode_into_libs=yes
14944      dynamic_linker="$host_os dld.sl"
14945      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14946      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14947      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948      soname_spec='${libname}${release}${shared_ext}$major'
14949      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14950      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14951      ;;
14952    *)
14953     shrext_cmds='.sl'
14954     dynamic_linker="$host_os dld.sl"
14955     shlibpath_var=SHLIB_PATH
14956     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14957     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958     soname_spec='${libname}${release}${shared_ext}$major'
14959     ;;
14960   esac
14961   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14962   postinstall_cmds='chmod 555 $lib'
14963   ;;
14964
14965 interix3*)
14966   version_type=linux
14967   need_lib_prefix=no
14968   need_version=no
14969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14970   soname_spec='${libname}${release}${shared_ext}$major'
14971   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14972   shlibpath_var=LD_LIBRARY_PATH
14973   shlibpath_overrides_runpath=no
14974   hardcode_into_libs=yes
14975   ;;
14976
14977 irix5* | irix6* | nonstopux*)
14978   case $host_os in
14979     nonstopux*) version_type=nonstopux ;;
14980     *)
14981         if test "$lt_cv_prog_gnu_ld" = yes; then
14982                 version_type=linux
14983         else
14984                 version_type=irix
14985         fi ;;
14986   esac
14987   need_lib_prefix=no
14988   need_version=no
14989   soname_spec='${libname}${release}${shared_ext}$major'
14990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14991   case $host_os in
14992   irix5* | nonstopux*)
14993     libsuff= shlibsuff=
14994     ;;
14995   *)
14996     case $LD in # libtool.m4 will add one of these switches to LD
14997     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14998       libsuff= shlibsuff= libmagic=32-bit;;
14999     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15000       libsuff=32 shlibsuff=N32 libmagic=N32;;
15001     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15002       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15003     *) libsuff= shlibsuff= libmagic=never-match;;
15004     esac
15005     ;;
15006   esac
15007   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15008   shlibpath_overrides_runpath=no
15009   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15010   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15011   hardcode_into_libs=yes
15012   ;;
15013
15014 # No shared lib support for Linux oldld, aout, or coff.
15015 linux*oldld* | linux*aout* | linux*coff*)
15016   dynamic_linker=no
15017   ;;
15018
15019 # This must be Linux ELF.
15020 linux*)
15021   version_type=linux
15022   need_lib_prefix=no
15023   need_version=no
15024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025   soname_spec='${libname}${release}${shared_ext}$major'
15026   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15027   shlibpath_var=LD_LIBRARY_PATH
15028   shlibpath_overrides_runpath=no
15029   # This implies no fast_install, which is unacceptable.
15030   # Some rework will be needed to allow for fast_install
15031   # before this can be enabled.
15032   hardcode_into_libs=yes
15033
15034   # find out which ABI we are using
15035   libsuff=
15036   case "$host_cpu" in
15037   x86_64*|s390x*|powerpc64*)
15038     echo '#line 15038 "configure"' > conftest.$ac_ext
15039     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15040   (eval $ac_compile) 2>&5
15041   ac_status=$?
15042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); }; then
15044       case `/usr/bin/file conftest.$ac_objext` in
15045       *64-bit*)
15046         libsuff=64
15047         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15048         ;;
15049       esac
15050     fi
15051     rm -rf conftest*
15052     ;;
15053   esac
15054
15055   # Append ld.so.conf contents to the search path
15056   if test -f /etc/ld.so.conf; then
15057     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15058     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15059   fi
15060
15061   # We used to test for /lib/ld.so.1 and disable shared libraries on
15062   # powerpc, because MkLinux only supported shared libraries with the
15063   # GNU dynamic linker.  Since this was broken with cross compilers,
15064   # most powerpc-linux boxes support dynamic linking these days and
15065   # people can always --disable-shared, the test was removed, and we
15066   # assume the GNU/Linux dynamic linker is in use.
15067   dynamic_linker='GNU/Linux ld.so'
15068   ;;
15069
15070 knetbsd*-gnu)
15071   version_type=linux
15072   need_lib_prefix=no
15073   need_version=no
15074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15075   soname_spec='${libname}${release}${shared_ext}$major'
15076   shlibpath_var=LD_LIBRARY_PATH
15077   shlibpath_overrides_runpath=no
15078   hardcode_into_libs=yes
15079   dynamic_linker='GNU ld.so'
15080   ;;
15081
15082 netbsd*)
15083   version_type=sunos
15084   need_lib_prefix=no
15085   need_version=no
15086   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15087     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15088     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15089     dynamic_linker='NetBSD (a.out) ld.so'
15090   else
15091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15092     soname_spec='${libname}${release}${shared_ext}$major'
15093     dynamic_linker='NetBSD ld.elf_so'
15094   fi
15095   shlibpath_var=LD_LIBRARY_PATH
15096   shlibpath_overrides_runpath=yes
15097   hardcode_into_libs=yes
15098   ;;
15099
15100 newsos6)
15101   version_type=linux
15102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15103   shlibpath_var=LD_LIBRARY_PATH
15104   shlibpath_overrides_runpath=yes
15105   ;;
15106
15107 nto-qnx*)
15108   version_type=linux
15109   need_lib_prefix=no
15110   need_version=no
15111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15112   soname_spec='${libname}${release}${shared_ext}$major'
15113   shlibpath_var=LD_LIBRARY_PATH
15114   shlibpath_overrides_runpath=yes
15115   ;;
15116
15117 openbsd*)
15118   version_type=sunos
15119   sys_lib_dlsearch_path_spec="/usr/lib"
15120   need_lib_prefix=no
15121   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15122   case $host_os in
15123     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15124     *)                         need_version=no  ;;
15125   esac
15126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15127   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15128   shlibpath_var=LD_LIBRARY_PATH
15129   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15130     case $host_os in
15131       openbsd2.[89] | openbsd2.[89].*)
15132         shlibpath_overrides_runpath=no
15133         ;;
15134       *)
15135         shlibpath_overrides_runpath=yes
15136         ;;
15137       esac
15138   else
15139     shlibpath_overrides_runpath=yes
15140   fi
15141   ;;
15142
15143 os2*)
15144   libname_spec='$name'
15145   shrext_cmds=".dll"
15146   need_lib_prefix=no
15147   library_names_spec='$libname${shared_ext} $libname.a'
15148   dynamic_linker='OS/2 ld.exe'
15149   shlibpath_var=LIBPATH
15150   ;;
15151
15152 osf3* | osf4* | osf5*)
15153   version_type=osf
15154   need_lib_prefix=no
15155   need_version=no
15156   soname_spec='${libname}${release}${shared_ext}$major'
15157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15158   shlibpath_var=LD_LIBRARY_PATH
15159   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15160   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15161   ;;
15162
15163 solaris*)
15164   version_type=linux
15165   need_lib_prefix=no
15166   need_version=no
15167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15168   soname_spec='${libname}${release}${shared_ext}$major'
15169   shlibpath_var=LD_LIBRARY_PATH
15170   shlibpath_overrides_runpath=yes
15171   hardcode_into_libs=yes
15172   # ldd complains unless libraries are executable
15173   postinstall_cmds='chmod +x $lib'
15174   ;;
15175
15176 sunos4*)
15177   version_type=sunos
15178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15179   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15180   shlibpath_var=LD_LIBRARY_PATH
15181   shlibpath_overrides_runpath=yes
15182   if test "$with_gnu_ld" = yes; then
15183     need_lib_prefix=no
15184   fi
15185   need_version=yes
15186   ;;
15187
15188 sysv4 | sysv4.3*)
15189   version_type=linux
15190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15191   soname_spec='${libname}${release}${shared_ext}$major'
15192   shlibpath_var=LD_LIBRARY_PATH
15193   case $host_vendor in
15194     sni)
15195       shlibpath_overrides_runpath=no
15196       need_lib_prefix=no
15197       export_dynamic_flag_spec='${wl}-Blargedynsym'
15198       runpath_var=LD_RUN_PATH
15199       ;;
15200     siemens)
15201       need_lib_prefix=no
15202       ;;
15203     motorola)
15204       need_lib_prefix=no
15205       need_version=no
15206       shlibpath_overrides_runpath=no
15207       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15208       ;;
15209   esac
15210   ;;
15211
15212 sysv4*MP*)
15213   if test -d /usr/nec ;then
15214     version_type=linux
15215     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15216     soname_spec='$libname${shared_ext}.$major'
15217     shlibpath_var=LD_LIBRARY_PATH
15218   fi
15219   ;;
15220
15221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15222   version_type=freebsd-elf
15223   need_lib_prefix=no
15224   need_version=no
15225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15226   soname_spec='${libname}${release}${shared_ext}$major'
15227   shlibpath_var=LD_LIBRARY_PATH
15228   hardcode_into_libs=yes
15229   if test "$with_gnu_ld" = yes; then
15230     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15231     shlibpath_overrides_runpath=no
15232   else
15233     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15234     shlibpath_overrides_runpath=yes
15235     case $host_os in
15236       sco3.2v5*)
15237         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15238         ;;
15239     esac
15240   fi
15241   sys_lib_dlsearch_path_spec='/usr/lib'
15242   ;;
15243
15244 uts4*)
15245   version_type=linux
15246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15247   soname_spec='${libname}${release}${shared_ext}$major'
15248   shlibpath_var=LD_LIBRARY_PATH
15249   ;;
15250
15251 *)
15252   dynamic_linker=no
15253   ;;
15254 esac
15255 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15256 echo "${ECHO_T}$dynamic_linker" >&6
15257 test "$dynamic_linker" = no && can_build_shared=no
15258
15259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15260 if test "$GCC" = yes; then
15261   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15262 fi
15263
15264 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15265 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15266 hardcode_action_F77=
15267 if test -n "$hardcode_libdir_flag_spec_F77" || \
15268    test -n "$runpath_var_F77" || \
15269    test "X$hardcode_automatic_F77" = "Xyes" ; then
15270
15271   # We can hardcode non-existant directories.
15272   if test "$hardcode_direct_F77" != no &&
15273      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15274      # have to relink, otherwise we might link with an installed library
15275      # when we should be linking with a yet-to-be-installed one
15276      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15277      test "$hardcode_minus_L_F77" != no; then
15278     # Linking always hardcodes the temporary library directory.
15279     hardcode_action_F77=relink
15280   else
15281     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15282     hardcode_action_F77=immediate
15283   fi
15284 else
15285   # We cannot hardcode anything, or else we can only hardcode existing
15286   # directories.
15287   hardcode_action_F77=unsupported
15288 fi
15289 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15290 echo "${ECHO_T}$hardcode_action_F77" >&6
15291
15292 if test "$hardcode_action_F77" = relink; then
15293   # Fast installation is not supported
15294   enable_fast_install=no
15295 elif test "$shlibpath_overrides_runpath" = yes ||
15296      test "$enable_shared" = no; then
15297   # Fast installation is not necessary
15298   enable_fast_install=needless
15299 fi
15300
15301
15302 # The else clause should only fire when bootstrapping the
15303 # libtool distribution, otherwise you forgot to ship ltmain.sh
15304 # with your package, and you will get complaints that there are
15305 # no rules to generate ltmain.sh.
15306 if test -f "$ltmain"; then
15307   # See if we are running on zsh, and set the options which allow our commands through
15308   # without removal of \ escapes.
15309   if test -n "${ZSH_VERSION+set}" ; then
15310     setopt NO_GLOB_SUBST
15311   fi
15312   # Now quote all the things that may contain metacharacters while being
15313   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15314   # variables and quote the copies for generation of the libtool script.
15315   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15316     SED SHELL STRIP \
15317     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15318     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15319     deplibs_check_method reload_flag reload_cmds need_locks \
15320     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15321     lt_cv_sys_global_symbol_to_c_name_address \
15322     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15323     old_postinstall_cmds old_postuninstall_cmds \
15324     compiler_F77 \
15325     CC_F77 \
15326     LD_F77 \
15327     lt_prog_compiler_wl_F77 \
15328     lt_prog_compiler_pic_F77 \
15329     lt_prog_compiler_static_F77 \
15330     lt_prog_compiler_no_builtin_flag_F77 \
15331     export_dynamic_flag_spec_F77 \
15332     thread_safe_flag_spec_F77 \
15333     whole_archive_flag_spec_F77 \
15334     enable_shared_with_static_runtimes_F77 \
15335     old_archive_cmds_F77 \
15336     old_archive_from_new_cmds_F77 \
15337     predep_objects_F77 \
15338     postdep_objects_F77 \
15339     predeps_F77 \
15340     postdeps_F77 \
15341     compiler_lib_search_path_F77 \
15342     archive_cmds_F77 \
15343     archive_expsym_cmds_F77 \
15344     postinstall_cmds_F77 \
15345     postuninstall_cmds_F77 \
15346     old_archive_from_expsyms_cmds_F77 \
15347     allow_undefined_flag_F77 \
15348     no_undefined_flag_F77 \
15349     export_symbols_cmds_F77 \
15350     hardcode_libdir_flag_spec_F77 \
15351     hardcode_libdir_flag_spec_ld_F77 \
15352     hardcode_libdir_separator_F77 \
15353     hardcode_automatic_F77 \
15354     module_cmds_F77 \
15355     module_expsym_cmds_F77 \
15356     lt_cv_prog_compiler_c_o_F77 \
15357     exclude_expsyms_F77 \
15358     include_expsyms_F77; do
15359
15360     case $var in
15361     old_archive_cmds_F77 | \
15362     old_archive_from_new_cmds_F77 | \
15363     archive_cmds_F77 | \
15364     archive_expsym_cmds_F77 | \
15365     module_cmds_F77 | \
15366     module_expsym_cmds_F77 | \
15367     old_archive_from_expsyms_cmds_F77 | \
15368     export_symbols_cmds_F77 | \
15369     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15370     postinstall_cmds | postuninstall_cmds | \
15371     old_postinstall_cmds | old_postuninstall_cmds | \
15372     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15373       # Double-quote double-evaled strings.
15374       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15375       ;;
15376     *)
15377       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15378       ;;
15379     esac
15380   done
15381
15382   case $lt_echo in
15383   *'\$0 --fallback-echo"')
15384     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15385     ;;
15386   esac
15387
15388 cfgfile="$ofile"
15389
15390   cat <<__EOF__ >> "$cfgfile"
15391 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15392
15393 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15394
15395 # Shell to use when invoking shell scripts.
15396 SHELL=$lt_SHELL
15397
15398 # Whether or not to build shared libraries.
15399 build_libtool_libs=$enable_shared
15400
15401 # Whether or not to build static libraries.
15402 build_old_libs=$enable_static
15403
15404 # Whether or not to add -lc for building shared libraries.
15405 build_libtool_need_lc=$archive_cmds_need_lc_F77
15406
15407 # Whether or not to disallow shared libs when runtime libs are static
15408 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15409
15410 # Whether or not to optimize for fast installation.
15411 fast_install=$enable_fast_install
15412
15413 # The host system.
15414 host_alias=$host_alias
15415 host=$host
15416 host_os=$host_os
15417
15418 # The build system.
15419 build_alias=$build_alias
15420 build=$build
15421 build_os=$build_os
15422
15423 # An echo program that does not interpret backslashes.
15424 echo=$lt_echo
15425
15426 # The archiver.
15427 AR=$lt_AR
15428 AR_FLAGS=$lt_AR_FLAGS
15429
15430 # A C compiler.
15431 LTCC=$lt_LTCC
15432
15433 # LTCC compiler flags.
15434 LTCFLAGS=$lt_LTCFLAGS
15435
15436 # A language-specific compiler.
15437 CC=$lt_compiler_F77
15438
15439 # Is the compiler the GNU C compiler?
15440 with_gcc=$GCC_F77
15441
15442 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15443 gcc_ver=\`gcc -dumpversion\`
15444
15445 # An ERE matcher.
15446 EGREP=$lt_EGREP
15447
15448 # The linker used to build libraries.
15449 LD=$lt_LD_F77
15450
15451 # Whether we need hard or soft links.
15452 LN_S=$lt_LN_S
15453
15454 # A BSD-compatible nm program.
15455 NM=$lt_NM
15456
15457 # A symbol stripping program
15458 STRIP=$lt_STRIP
15459
15460 # Used to examine libraries when file_magic_cmd begins "file"
15461 MAGIC_CMD=$MAGIC_CMD
15462
15463 # Used on cygwin: DLL creation program.
15464 DLLTOOL="$DLLTOOL"
15465
15466 # Used on cygwin: object dumper.
15467 OBJDUMP="$OBJDUMP"
15468
15469 # Used on cygwin: assembler.
15470 AS="$AS"
15471
15472 # The name of the directory that contains temporary libtool files.
15473 objdir=$objdir
15474
15475 # How to create reloadable object files.
15476 reload_flag=$lt_reload_flag
15477 reload_cmds=$lt_reload_cmds
15478
15479 # How to pass a linker flag through the compiler.
15480 wl=$lt_lt_prog_compiler_wl_F77
15481
15482 # Object file suffix (normally "o").
15483 objext="$ac_objext"
15484
15485 # Old archive suffix (normally "a").
15486 libext="$libext"
15487
15488 # Shared library suffix (normally ".so").
15489 shrext_cmds='$shrext_cmds'
15490
15491 # Executable file suffix (normally "").
15492 exeext="$exeext"
15493
15494 # Additional compiler flags for building library objects.
15495 pic_flag=$lt_lt_prog_compiler_pic_F77
15496 pic_mode=$pic_mode
15497
15498 # What is the maximum length of a command?
15499 max_cmd_len=$lt_cv_sys_max_cmd_len
15500
15501 # Does compiler simultaneously support -c and -o options?
15502 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15503
15504 # Must we lock files when doing compilation?
15505 need_locks=$lt_need_locks
15506
15507 # Do we need the lib prefix for modules?
15508 need_lib_prefix=$need_lib_prefix
15509
15510 # Do we need a version for libraries?
15511 need_version=$need_version
15512
15513 # Whether dlopen is supported.
15514 dlopen_support=$enable_dlopen
15515
15516 # Whether dlopen of programs is supported.
15517 dlopen_self=$enable_dlopen_self
15518
15519 # Whether dlopen of statically linked programs is supported.
15520 dlopen_self_static=$enable_dlopen_self_static
15521
15522 # Compiler flag to prevent dynamic linking.
15523 link_static_flag=$lt_lt_prog_compiler_static_F77
15524
15525 # Compiler flag to turn off builtin functions.
15526 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15527
15528 # Compiler flag to allow reflexive dlopens.
15529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15530
15531 # Compiler flag to generate shared objects directly from archives.
15532 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15533
15534 # Compiler flag to generate thread-safe objects.
15535 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15536
15537 # Library versioning type.
15538 version_type=$version_type
15539
15540 # Format of library name prefix.
15541 libname_spec=$lt_libname_spec
15542
15543 # List of archive names.  First name is the real one, the rest are links.
15544 # The last name is the one that the linker finds with -lNAME.
15545 library_names_spec=$lt_library_names_spec
15546
15547 # The coded name of the library, if different from the real name.
15548 soname_spec=$lt_soname_spec
15549
15550 # Commands used to build and install an old-style archive.
15551 RANLIB=$lt_RANLIB
15552 old_archive_cmds=$lt_old_archive_cmds_F77
15553 old_postinstall_cmds=$lt_old_postinstall_cmds
15554 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15555
15556 # Create an old-style archive from a shared archive.
15557 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15558
15559 # Create a temporary old-style archive to link instead of a shared archive.
15560 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15561
15562 # Commands used to build and install a shared archive.
15563 archive_cmds=$lt_archive_cmds_F77
15564 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15565 postinstall_cmds=$lt_postinstall_cmds
15566 postuninstall_cmds=$lt_postuninstall_cmds
15567
15568 # Commands used to build a loadable module (assumed same as above if empty)
15569 module_cmds=$lt_module_cmds_F77
15570 module_expsym_cmds=$lt_module_expsym_cmds_F77
15571
15572 # Commands to strip libraries.
15573 old_striplib=$lt_old_striplib
15574 striplib=$lt_striplib
15575
15576 # Dependencies to place before the objects being linked to create a
15577 # shared library.
15578 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15579
15580 # Dependencies to place after the objects being linked to create a
15581 # shared library.
15582 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15583
15584 # Dependencies to place before the objects being linked to create a
15585 # shared library.
15586 predeps=$lt_predeps_F77
15587
15588 # Dependencies to place after the objects being linked to create a
15589 # shared library.
15590 postdeps=$lt_postdeps_F77
15591
15592 # The library search path used internally by the compiler when linking
15593 # a shared library.
15594 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15595
15596 # Method to check whether dependent libraries are shared objects.
15597 deplibs_check_method=$lt_deplibs_check_method
15598
15599 # Command to use when deplibs_check_method == file_magic.
15600 file_magic_cmd=$lt_file_magic_cmd
15601
15602 # Flag that allows shared libraries with undefined symbols to be built.
15603 allow_undefined_flag=$lt_allow_undefined_flag_F77
15604
15605 # Flag that forces no undefined symbols.
15606 no_undefined_flag=$lt_no_undefined_flag_F77
15607
15608 # Commands used to finish a libtool library installation in a directory.
15609 finish_cmds=$lt_finish_cmds
15610
15611 # Same as above, but a single script fragment to be evaled but not shown.
15612 finish_eval=$lt_finish_eval
15613
15614 # Take the output of nm and produce a listing of raw symbols and C names.
15615 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15616
15617 # Transform the output of nm in a proper C declaration
15618 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15619
15620 # Transform the output of nm in a C name address pair
15621 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15622
15623 # This is the shared library runtime path variable.
15624 runpath_var=$runpath_var
15625
15626 # This is the shared library path variable.
15627 shlibpath_var=$shlibpath_var
15628
15629 # Is shlibpath searched before the hard-coded library search path?
15630 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15631
15632 # How to hardcode a shared library path into an executable.
15633 hardcode_action=$hardcode_action_F77
15634
15635 # Whether we should hardcode library paths into libraries.
15636 hardcode_into_libs=$hardcode_into_libs
15637
15638 # Flag to hardcode \$libdir into a binary during linking.
15639 # This must work even if \$libdir does not exist.
15640 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15641
15642 # If ld is used when linking, flag to hardcode \$libdir into
15643 # a binary during linking. This must work even if \$libdir does
15644 # not exist.
15645 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15646
15647 # Whether we need a single -rpath flag with a separated argument.
15648 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15649
15650 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15651 # resulting binary.
15652 hardcode_direct=$hardcode_direct_F77
15653
15654 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15655 # resulting binary.
15656 hardcode_minus_L=$hardcode_minus_L_F77
15657
15658 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15659 # the resulting binary.
15660 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15661
15662 # Set to yes if building a shared library automatically hardcodes DIR into the library
15663 # and all subsequent libraries and executables linked against it.
15664 hardcode_automatic=$hardcode_automatic_F77
15665
15666 # Variables whose values should be saved in libtool wrapper scripts and
15667 # restored at relink time.
15668 variables_saved_for_relink="$variables_saved_for_relink"
15669
15670 # Whether libtool must link a program against all its dependency libraries.
15671 link_all_deplibs=$link_all_deplibs_F77
15672
15673 # Compile-time system search path for libraries
15674 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15675
15676 # Run-time system search path for libraries
15677 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15678
15679 # Fix the shell variable \$srcfile for the compiler.
15680 fix_srcfile_path="$fix_srcfile_path_F77"
15681
15682 # Set to yes if exported symbols are required.
15683 always_export_symbols=$always_export_symbols_F77
15684
15685 # The commands to list exported symbols.
15686 export_symbols_cmds=$lt_export_symbols_cmds_F77
15687
15688 # The commands to extract the exported symbol list from a shared archive.
15689 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15690
15691 # Symbols that should not be listed in the preloaded symbols.
15692 exclude_expsyms=$lt_exclude_expsyms_F77
15693
15694 # Symbols that must always be exported.
15695 include_expsyms=$lt_include_expsyms_F77
15696
15697 # ### END LIBTOOL TAG CONFIG: $tagname
15698
15699 __EOF__
15700
15701
15702 else
15703   # If there is no Makefile yet, we rely on a make rule to execute
15704   # `config.status --recheck' to rerun these tests and create the
15705   # libtool script then.
15706   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15707   if test -f "$ltmain_in"; then
15708     test -f Makefile && make "$ltmain"
15709   fi
15710 fi
15711
15712
15713 ac_ext=c
15714 ac_cpp='$CPP $CPPFLAGS'
15715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15718
15719 CC="$lt_save_CC"
15720
15721         else
15722           tagname=""
15723         fi
15724         ;;
15725
15726       GCJ)
15727         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15728
15729
15730
15731 # Source file extension for Java test sources.
15732 ac_ext=java
15733
15734 # Object file extension for compiled Java test sources.
15735 objext=o
15736 objext_GCJ=$objext
15737
15738 # Code to be used in simple compile tests
15739 lt_simple_compile_test_code="class foo {}\n"
15740
15741 # Code to be used in simple link tests
15742 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15743
15744 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15745
15746 # If no C compiler was specified, use CC.
15747 LTCC=${LTCC-"$CC"}
15748
15749 # If no C compiler flags were specified, use CFLAGS.
15750 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15751
15752 # Allow CC to be a program name with arguments.
15753 compiler=$CC
15754
15755
15756 # save warnings/boilerplate of simple test code
15757 ac_outfile=conftest.$ac_objext
15758 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15759 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15760 _lt_compiler_boilerplate=`cat conftest.err`
15761 $rm conftest*
15762
15763 ac_outfile=conftest.$ac_objext
15764 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15765 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15766 _lt_linker_boilerplate=`cat conftest.err`
15767 $rm conftest*
15768
15769
15770 # Allow CC to be a program name with arguments.
15771 lt_save_CC="$CC"
15772 CC=${GCJ-"gcj"}
15773 compiler=$CC
15774 compiler_GCJ=$CC
15775 for cc_temp in $compiler""; do
15776   case $cc_temp in
15777     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15778     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15779     \-*) ;;
15780     *) break;;
15781   esac
15782 done
15783 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15784
15785
15786 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15787 archive_cmds_need_lc_GCJ=no
15788
15789 old_archive_cmds_GCJ=$old_archive_cmds
15790
15791
15792 lt_prog_compiler_no_builtin_flag_GCJ=
15793
15794 if test "$GCC" = yes; then
15795   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15796
15797
15798 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15799 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15800 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15801   echo $ECHO_N "(cached) $ECHO_C" >&6
15802 else
15803   lt_cv_prog_compiler_rtti_exceptions=no
15804   ac_outfile=conftest.$ac_objext
15805    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15806    lt_compiler_flag="-fno-rtti -fno-exceptions"
15807    # Insert the option either (1) after the last *FLAGS variable, or
15808    # (2) before a word containing "conftest.", or (3) at the end.
15809    # Note that $ac_compile itself does not contain backslashes and begins
15810    # with a dollar sign (not a hyphen), so the echo should work correctly.
15811    # The option is referenced via a variable to avoid confusing sed.
15812    lt_compile=`echo "$ac_compile" | $SED \
15813    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15814    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15815    -e 's:$: $lt_compiler_flag:'`
15816    (eval echo "\"\$as_me:15816: $lt_compile\"" >&5)
15817    (eval "$lt_compile" 2>conftest.err)
15818    ac_status=$?
15819    cat conftest.err >&5
15820    echo "$as_me:15820: \$? = $ac_status" >&5
15821    if (exit $ac_status) && test -s "$ac_outfile"; then
15822      # The compiler can only warn and ignore the option if not recognized
15823      # So say no if there are warnings other than the usual output.
15824      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15825      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15826      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15827        lt_cv_prog_compiler_rtti_exceptions=yes
15828      fi
15829    fi
15830    $rm conftest*
15831
15832 fi
15833 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15834 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15835
15836 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15837     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15838 else
15839     :
15840 fi
15841
15842 fi
15843
15844 lt_prog_compiler_wl_GCJ=
15845 lt_prog_compiler_pic_GCJ=
15846 lt_prog_compiler_static_GCJ=
15847
15848 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15849 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15850
15851   if test "$GCC" = yes; then
15852     lt_prog_compiler_wl_GCJ='-Wl,'
15853     lt_prog_compiler_static_GCJ='-static'
15854
15855     case $host_os in
15856       aix*)
15857       # All AIX code is PIC.
15858       if test "$host_cpu" = ia64; then
15859         # AIX 5 now supports IA64 processor
15860         lt_prog_compiler_static_GCJ='-Bstatic'
15861       fi
15862       ;;
15863
15864     amigaos*)
15865       # FIXME: we need at least 68020 code to build shared libraries, but
15866       # adding the `-m68020' flag to GCC prevents building anything better,
15867       # like `-m68040'.
15868       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15869       ;;
15870
15871     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15872       # PIC is the default for these OSes.
15873       ;;
15874
15875     mingw* | pw32* | os2*)
15876       # This hack is so that the source file can tell whether it is being
15877       # built for inclusion in a dll (and should export symbols for example).
15878       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15879       ;;
15880
15881     darwin* | rhapsody*)
15882       # PIC is the default on this platform
15883       # Common symbols not allowed in MH_DYLIB files
15884       lt_prog_compiler_pic_GCJ='-fno-common'
15885       ;;
15886
15887     interix3*)
15888       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15889       # Instead, we relocate shared libraries at runtime.
15890       ;;
15891
15892     msdosdjgpp*)
15893       # Just because we use GCC doesn't mean we suddenly get shared libraries
15894       # on systems that don't support them.
15895       lt_prog_compiler_can_build_shared_GCJ=no
15896       enable_shared=no
15897       ;;
15898
15899     sysv4*MP*)
15900       if test -d /usr/nec; then
15901         lt_prog_compiler_pic_GCJ=-Kconform_pic
15902       fi
15903       ;;
15904
15905     hpux*)
15906       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15907       # not for PA HP-UX.
15908       case $host_cpu in
15909       hppa*64*|ia64*)
15910         # +Z the default
15911         ;;
15912       *)
15913         lt_prog_compiler_pic_GCJ='-fPIC'
15914         ;;
15915       esac
15916       ;;
15917
15918     *)
15919       lt_prog_compiler_pic_GCJ='-fPIC'
15920       ;;
15921     esac
15922   else
15923     # PORTME Check for flag to pass linker flags through the system compiler.
15924     case $host_os in
15925     aix*)
15926       lt_prog_compiler_wl_GCJ='-Wl,'
15927       if test "$host_cpu" = ia64; then
15928         # AIX 5 now supports IA64 processor
15929         lt_prog_compiler_static_GCJ='-Bstatic'
15930       else
15931         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15932       fi
15933       ;;
15934       darwin*)
15935         # PIC is the default on this platform
15936         # Common symbols not allowed in MH_DYLIB files
15937        case $cc_basename in
15938          xlc*)
15939          lt_prog_compiler_pic_GCJ='-qnocommon'
15940          lt_prog_compiler_wl_GCJ='-Wl,'
15941          ;;
15942        esac
15943        ;;
15944
15945     mingw* | pw32* | os2*)
15946       # This hack is so that the source file can tell whether it is being
15947       # built for inclusion in a dll (and should export symbols for example).
15948       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15949       ;;
15950
15951     hpux9* | hpux10* | hpux11*)
15952       lt_prog_compiler_wl_GCJ='-Wl,'
15953       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15954       # not for PA HP-UX.
15955       case $host_cpu in
15956       hppa*64*|ia64*)
15957         # +Z the default
15958         ;;
15959       *)
15960         lt_prog_compiler_pic_GCJ='+Z'
15961         ;;
15962       esac
15963       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15964       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15965       ;;
15966
15967     irix5* | irix6* | nonstopux*)
15968       lt_prog_compiler_wl_GCJ='-Wl,'
15969       # PIC (with -KPIC) is the default.
15970       lt_prog_compiler_static_GCJ='-non_shared'
15971       ;;
15972
15973     newsos6)
15974       lt_prog_compiler_pic_GCJ='-KPIC'
15975       lt_prog_compiler_static_GCJ='-Bstatic'
15976       ;;
15977
15978     linux*)
15979       case $cc_basename in
15980       icc* | ecc*)
15981         lt_prog_compiler_wl_GCJ='-Wl,'
15982         lt_prog_compiler_pic_GCJ='-KPIC'
15983         lt_prog_compiler_static_GCJ='-static'
15984         ;;
15985       pgcc* | pgf77* | pgf90* | pgf95*)
15986         # Portland Group compilers (*not* the Pentium gcc compiler,
15987         # which looks to be a dead project)
15988         lt_prog_compiler_wl_GCJ='-Wl,'
15989         lt_prog_compiler_pic_GCJ='-fpic'
15990         lt_prog_compiler_static_GCJ='-Bstatic'
15991         ;;
15992       ccc*)
15993         lt_prog_compiler_wl_GCJ='-Wl,'
15994         # All Alpha code is PIC.
15995         lt_prog_compiler_static_GCJ='-non_shared'
15996         ;;
15997       esac
15998       ;;
15999
16000     osf3* | osf4* | osf5*)
16001       lt_prog_compiler_wl_GCJ='-Wl,'
16002       # All OSF/1 code is PIC.
16003       lt_prog_compiler_static_GCJ='-non_shared'
16004       ;;
16005
16006     solaris*)
16007       lt_prog_compiler_pic_GCJ='-KPIC'
16008       lt_prog_compiler_static_GCJ='-Bstatic'
16009       case $cc_basename in
16010       f77* | f90* | f95*)
16011         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16012       *)
16013         lt_prog_compiler_wl_GCJ='-Wl,';;
16014       esac
16015       ;;
16016
16017     sunos4*)
16018       lt_prog_compiler_wl_GCJ='-Qoption ld '
16019       lt_prog_compiler_pic_GCJ='-PIC'
16020       lt_prog_compiler_static_GCJ='-Bstatic'
16021       ;;
16022
16023     sysv4 | sysv4.2uw2* | sysv4.3*)
16024       lt_prog_compiler_wl_GCJ='-Wl,'
16025       lt_prog_compiler_pic_GCJ='-KPIC'
16026       lt_prog_compiler_static_GCJ='-Bstatic'
16027       ;;
16028
16029     sysv4*MP*)
16030       if test -d /usr/nec ;then
16031         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16032         lt_prog_compiler_static_GCJ='-Bstatic'
16033       fi
16034       ;;
16035
16036     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16037       lt_prog_compiler_wl_GCJ='-Wl,'
16038       lt_prog_compiler_pic_GCJ='-KPIC'
16039       lt_prog_compiler_static_GCJ='-Bstatic'
16040       ;;
16041
16042     unicos*)
16043       lt_prog_compiler_wl_GCJ='-Wl,'
16044       lt_prog_compiler_can_build_shared_GCJ=no
16045       ;;
16046
16047     uts4*)
16048       lt_prog_compiler_pic_GCJ='-pic'
16049       lt_prog_compiler_static_GCJ='-Bstatic'
16050       ;;
16051
16052     *)
16053       lt_prog_compiler_can_build_shared_GCJ=no
16054       ;;
16055     esac
16056   fi
16057
16058 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16059 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16060
16061 #
16062 # Check to make sure the PIC flag actually works.
16063 #
16064 if test -n "$lt_prog_compiler_pic_GCJ"; then
16065
16066 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16067 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16068 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16069   echo $ECHO_N "(cached) $ECHO_C" >&6
16070 else
16071   lt_prog_compiler_pic_works_GCJ=no
16072   ac_outfile=conftest.$ac_objext
16073    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16074    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16075    # Insert the option either (1) after the last *FLAGS variable, or
16076    # (2) before a word containing "conftest.", or (3) at the end.
16077    # Note that $ac_compile itself does not contain backslashes and begins
16078    # with a dollar sign (not a hyphen), so the echo should work correctly.
16079    # The option is referenced via a variable to avoid confusing sed.
16080    lt_compile=`echo "$ac_compile" | $SED \
16081    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16082    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16083    -e 's:$: $lt_compiler_flag:'`
16084    (eval echo "\"\$as_me:16084: $lt_compile\"" >&5)
16085    (eval "$lt_compile" 2>conftest.err)
16086    ac_status=$?
16087    cat conftest.err >&5
16088    echo "$as_me:16088: \$? = $ac_status" >&5
16089    if (exit $ac_status) && test -s "$ac_outfile"; then
16090      # The compiler can only warn and ignore the option if not recognized
16091      # So say no if there are warnings other than the usual output.
16092      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16093      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16094      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16095        lt_prog_compiler_pic_works_GCJ=yes
16096      fi
16097    fi
16098    $rm conftest*
16099
16100 fi
16101 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16102 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16103
16104 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16105     case $lt_prog_compiler_pic_GCJ in
16106      "" | " "*) ;;
16107      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16108      esac
16109 else
16110     lt_prog_compiler_pic_GCJ=
16111      lt_prog_compiler_can_build_shared_GCJ=no
16112 fi
16113
16114 fi
16115 case $host_os in
16116   # For platforms which do not support PIC, -DPIC is meaningless:
16117   *djgpp*)
16118     lt_prog_compiler_pic_GCJ=
16119     ;;
16120   *)
16121     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16122     ;;
16123 esac
16124
16125 #
16126 # Check to make sure the static flag actually works.
16127 #
16128 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16129 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16130 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16131 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16132   echo $ECHO_N "(cached) $ECHO_C" >&6
16133 else
16134   lt_prog_compiler_static_works_GCJ=no
16135    save_LDFLAGS="$LDFLAGS"
16136    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16137    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16138    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16139      # The linker can only warn and ignore the option if not recognized
16140      # So say no if there are warnings
16141      if test -s conftest.err; then
16142        # Append any errors to the config.log.
16143        cat conftest.err 1>&5
16144        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16145        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16146        if diff conftest.exp conftest.er2 >/dev/null; then
16147          lt_prog_compiler_static_works_GCJ=yes
16148        fi
16149      else
16150        lt_prog_compiler_static_works_GCJ=yes
16151      fi
16152    fi
16153    $rm conftest*
16154    LDFLAGS="$save_LDFLAGS"
16155
16156 fi
16157 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16158 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16159
16160 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16161     :
16162 else
16163     lt_prog_compiler_static_GCJ=
16164 fi
16165
16166
16167 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16168 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16169 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16170   echo $ECHO_N "(cached) $ECHO_C" >&6
16171 else
16172   lt_cv_prog_compiler_c_o_GCJ=no
16173    $rm -r conftest 2>/dev/null
16174    mkdir conftest
16175    cd conftest
16176    mkdir out
16177    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16178
16179    lt_compiler_flag="-o out/conftest2.$ac_objext"
16180    # Insert the option either (1) after the last *FLAGS variable, or
16181    # (2) before a word containing "conftest.", or (3) at the end.
16182    # Note that $ac_compile itself does not contain backslashes and begins
16183    # with a dollar sign (not a hyphen), so the echo should work correctly.
16184    lt_compile=`echo "$ac_compile" | $SED \
16185    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16186    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16187    -e 's:$: $lt_compiler_flag:'`
16188    (eval echo "\"\$as_me:16188: $lt_compile\"" >&5)
16189    (eval "$lt_compile" 2>out/conftest.err)
16190    ac_status=$?
16191    cat out/conftest.err >&5
16192    echo "$as_me:16192: \$? = $ac_status" >&5
16193    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16194    then
16195      # The compiler can only warn and ignore the option if not recognized
16196      # So say no if there are warnings
16197      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16198      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16199      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16200        lt_cv_prog_compiler_c_o_GCJ=yes
16201      fi
16202    fi
16203    chmod u+w . 2>&5
16204    $rm conftest*
16205    # SGI C++ compiler will create directory out/ii_files/ for
16206    # template instantiation
16207    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16208    $rm out/* && rmdir out
16209    cd ..
16210    rmdir conftest
16211    $rm conftest*
16212
16213 fi
16214 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16215 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16216
16217
16218 hard_links="nottested"
16219 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16220   # do not overwrite the value of need_locks provided by the user
16221   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16222 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16223   hard_links=yes
16224   $rm conftest*
16225   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16226   touch conftest.a
16227   ln conftest.a conftest.b 2>&5 || hard_links=no
16228   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16229   echo "$as_me:$LINENO: result: $hard_links" >&5
16230 echo "${ECHO_T}$hard_links" >&6
16231   if test "$hard_links" = no; then
16232     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16233 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16234     need_locks=warn
16235   fi
16236 else
16237   need_locks=no
16238 fi
16239
16240 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16241 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16242
16243   runpath_var=
16244   allow_undefined_flag_GCJ=
16245   enable_shared_with_static_runtimes_GCJ=no
16246   archive_cmds_GCJ=
16247   archive_expsym_cmds_GCJ=
16248   old_archive_From_new_cmds_GCJ=
16249   old_archive_from_expsyms_cmds_GCJ=
16250   export_dynamic_flag_spec_GCJ=
16251   whole_archive_flag_spec_GCJ=
16252   thread_safe_flag_spec_GCJ=
16253   hardcode_libdir_flag_spec_GCJ=
16254   hardcode_libdir_flag_spec_ld_GCJ=
16255   hardcode_libdir_separator_GCJ=
16256   hardcode_direct_GCJ=no
16257   hardcode_minus_L_GCJ=no
16258   hardcode_shlibpath_var_GCJ=unsupported
16259   link_all_deplibs_GCJ=unknown
16260   hardcode_automatic_GCJ=no
16261   module_cmds_GCJ=
16262   module_expsym_cmds_GCJ=
16263   always_export_symbols_GCJ=no
16264   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16265   # include_expsyms should be a list of space-separated symbols to be *always*
16266   # included in the symbol list
16267   include_expsyms_GCJ=
16268   # exclude_expsyms can be an extended regexp of symbols to exclude
16269   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16270   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16271   # as well as any symbol that contains `d'.
16272   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16273   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16274   # platforms (ab)use it in PIC code, but their linkers get confused if
16275   # the symbol is explicitly referenced.  Since portable code cannot
16276   # rely on this symbol name, it's probably fine to never include it in
16277   # preloaded symbol tables.
16278   extract_expsyms_cmds=
16279   # Just being paranoid about ensuring that cc_basename is set.
16280   for cc_temp in $compiler""; do
16281   case $cc_temp in
16282     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16283     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16284     \-*) ;;
16285     *) break;;
16286   esac
16287 done
16288 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16289
16290   case $host_os in
16291   cygwin* | mingw* | pw32*)
16292     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16293     # When not using gcc, we currently assume that we are using
16294     # Microsoft Visual C++.
16295     if test "$GCC" != yes; then
16296       with_gnu_ld=no
16297     fi
16298     ;;
16299   interix*)
16300     # we just hope/assume this is gcc and not c89 (= MSVC++)
16301     with_gnu_ld=yes
16302     ;;
16303   openbsd*)
16304     with_gnu_ld=no
16305     ;;
16306   esac
16307
16308   ld_shlibs_GCJ=yes
16309   if test "$with_gnu_ld" = yes; then
16310     # If archive_cmds runs LD, not CC, wlarc should be empty
16311     wlarc='${wl}'
16312
16313     # Set some defaults for GNU ld with shared library support. These
16314     # are reset later if shared libraries are not supported. Putting them
16315     # here allows them to be overridden if necessary.
16316     runpath_var=LD_RUN_PATH
16317     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16318     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16319     # ancient GNU ld didn't support --whole-archive et. al.
16320     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16321         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16322       else
16323         whole_archive_flag_spec_GCJ=
16324     fi
16325     supports_anon_versioning=no
16326     case `$LD -v 2>/dev/null` in
16327       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16328       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16329       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16330       *\ 2.11.*) ;; # other 2.11 versions
16331       *) supports_anon_versioning=yes ;;
16332     esac
16333
16334     # See if GNU ld supports shared libraries.
16335     case $host_os in
16336     aix3* | aix4* | aix5*)
16337       # On AIX/PPC, the GNU linker is very broken
16338       if test "$host_cpu" != ia64; then
16339         ld_shlibs_GCJ=no
16340         cat <<EOF 1>&2
16341
16342 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16343 *** to be unable to reliably create shared libraries on AIX.
16344 *** Therefore, libtool is disabling shared libraries support.  If you
16345 *** really care for shared libraries, you may want to modify your PATH
16346 *** so that a non-GNU linker is found, and then restart.
16347
16348 EOF
16349       fi
16350       ;;
16351
16352     amigaos*)
16353       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)'
16354       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16355       hardcode_minus_L_GCJ=yes
16356
16357       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16358       # that the semantics of dynamic libraries on AmigaOS, at least up
16359       # to version 4, is to share data among multiple programs linked
16360       # with the same dynamic library.  Since this doesn't match the
16361       # behavior of shared libraries on other platforms, we can't use
16362       # them.
16363       ld_shlibs_GCJ=no
16364       ;;
16365
16366     beos*)
16367       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16368         allow_undefined_flag_GCJ=unsupported
16369         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16370         # support --undefined.  This deserves some investigation.  FIXME
16371         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16372       else
16373         ld_shlibs_GCJ=no
16374       fi
16375       ;;
16376
16377     cygwin* | mingw* | pw32*)
16378       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16379       # as there is no search path for DLLs.
16380       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16381       allow_undefined_flag_GCJ=unsupported
16382       always_export_symbols_GCJ=no
16383       enable_shared_with_static_runtimes_GCJ=yes
16384       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16385
16386       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16387         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16388         # If the export-symbols file already is a .def file (1st line
16389         # is EXPORTS), use it as is; otherwise, prepend...
16390         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16391           cp $export_symbols $output_objdir/$soname.def;
16392         else
16393           echo EXPORTS > $output_objdir/$soname.def;
16394           cat $export_symbols >> $output_objdir/$soname.def;
16395         fi~
16396         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16397       else
16398         ld_shlibs_GCJ=no
16399       fi
16400       ;;
16401
16402     interix3*)
16403       hardcode_direct_GCJ=no
16404       hardcode_shlibpath_var_GCJ=no
16405       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16406       export_dynamic_flag_spec_GCJ='${wl}-E'
16407       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16408       # Instead, shared libraries are loaded at an image base (0x10000000 by
16409       # default) and relocated if they conflict, which is a slow very memory
16410       # consuming and fragmenting process.  To avoid this, we pick a random,
16411       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16412       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16413       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16414       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16415       ;;
16416
16417     linux*)
16418       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16419         tmp_addflag=
16420         case $cc_basename,$host_cpu in
16421         pgcc*)                          # Portland Group C compiler
16422           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16423           tmp_addflag=' $pic_flag'
16424           ;;
16425         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16426           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16427           tmp_addflag=' $pic_flag -Mnomain' ;;
16428         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16429           tmp_addflag=' -i_dynamic' ;;
16430         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16431           tmp_addflag=' -i_dynamic -nofor_main' ;;
16432         ifc* | ifort*)                  # Intel Fortran compiler
16433           tmp_addflag=' -nofor_main' ;;
16434         esac
16435         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16436
16437         if test $supports_anon_versioning = yes; then
16438           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16439   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16440   $echo "local: *; };" >> $output_objdir/$libname.ver~
16441           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16442         fi
16443       else
16444         ld_shlibs_GCJ=no
16445       fi
16446       ;;
16447
16448     netbsd*)
16449       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16450         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16451         wlarc=
16452       else
16453         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16454         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16455       fi
16456       ;;
16457
16458     solaris*)
16459       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16460         ld_shlibs_GCJ=no
16461         cat <<EOF 1>&2
16462
16463 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16464 *** create shared libraries on Solaris systems.  Therefore, libtool
16465 *** is disabling shared libraries support.  We urge you to upgrade GNU
16466 *** binutils to release 2.9.1 or newer.  Another option is to modify
16467 *** your PATH or compiler configuration so that the native linker is
16468 *** used, and then restart.
16469
16470 EOF
16471       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16472         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16473         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16474       else
16475         ld_shlibs_GCJ=no
16476       fi
16477       ;;
16478
16479     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16480       case `$LD -v 2>&1` in
16481         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16482         ld_shlibs_GCJ=no
16483         cat <<_LT_EOF 1>&2
16484
16485 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16486 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16487 *** is disabling shared libraries support.  We urge you to upgrade GNU
16488 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16489 *** your PATH or compiler configuration so that the native linker is
16490 *** used, and then restart.
16491
16492 _LT_EOF
16493         ;;
16494         *)
16495           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16496             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16497             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16498             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16499           else
16500             ld_shlibs_GCJ=no
16501           fi
16502         ;;
16503       esac
16504       ;;
16505
16506     sunos4*)
16507       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16508       wlarc=
16509       hardcode_direct_GCJ=yes
16510       hardcode_shlibpath_var_GCJ=no
16511       ;;
16512
16513     *)
16514       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16515         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16516         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16517       else
16518         ld_shlibs_GCJ=no
16519       fi
16520       ;;
16521     esac
16522
16523     if test "$ld_shlibs_GCJ" = no; then
16524       runpath_var=
16525       hardcode_libdir_flag_spec_GCJ=
16526       export_dynamic_flag_spec_GCJ=
16527       whole_archive_flag_spec_GCJ=
16528     fi
16529   else
16530     # PORTME fill in a description of your system's linker (not GNU ld)
16531     case $host_os in
16532     aix3*)
16533       allow_undefined_flag_GCJ=unsupported
16534       always_export_symbols_GCJ=yes
16535       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'
16536       # Note: this linker hardcodes the directories in LIBPATH if there
16537       # are no directories specified by -L.
16538       hardcode_minus_L_GCJ=yes
16539       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16540         # Neither direct hardcoding nor static linking is supported with a
16541         # broken collect2.
16542         hardcode_direct_GCJ=unsupported
16543       fi
16544       ;;
16545
16546     aix4* | aix5*)
16547       if test "$host_cpu" = ia64; then
16548         # On IA64, the linker does run time linking by default, so we don't
16549         # have to do anything special.
16550         aix_use_runtimelinking=no
16551         exp_sym_flag='-Bexport'
16552         no_entry_flag=""
16553       else
16554         # If we're using GNU nm, then we don't want the "-C" option.
16555         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16556         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16557           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'
16558         else
16559           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'
16560         fi
16561         aix_use_runtimelinking=no
16562
16563         # Test if we are trying to use run time linking or normal
16564         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16565         # need to do runtime linking.
16566         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16567           for ld_flag in $LDFLAGS; do
16568           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16569             aix_use_runtimelinking=yes
16570             break
16571           fi
16572           done
16573           ;;
16574         esac
16575
16576         exp_sym_flag='-bexport'
16577         no_entry_flag='-bnoentry'
16578       fi
16579
16580       # When large executables or shared objects are built, AIX ld can
16581       # have problems creating the table of contents.  If linking a library
16582       # or program results in "error TOC overflow" add -mminimal-toc to
16583       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16584       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16585
16586       archive_cmds_GCJ=''
16587       hardcode_direct_GCJ=yes
16588       hardcode_libdir_separator_GCJ=':'
16589       link_all_deplibs_GCJ=yes
16590
16591       if test "$GCC" = yes; then
16592         case $host_os in aix4.[012]|aix4.[012].*)
16593         # We only want to do this on AIX 4.2 and lower, the check
16594         # below for broken collect2 doesn't work under 4.3+
16595           collect2name=`${CC} -print-prog-name=collect2`
16596           if test -f "$collect2name" && \
16597            strings "$collect2name" | grep resolve_lib_name >/dev/null
16598           then
16599           # We have reworked collect2
16600           hardcode_direct_GCJ=yes
16601           else
16602           # We have old collect2
16603           hardcode_direct_GCJ=unsupported
16604           # It fails to find uninstalled libraries when the uninstalled
16605           # path is not listed in the libpath.  Setting hardcode_minus_L
16606           # to unsupported forces relinking
16607           hardcode_minus_L_GCJ=yes
16608           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16609           hardcode_libdir_separator_GCJ=
16610           fi
16611           ;;
16612         esac
16613         shared_flag='-shared'
16614         if test "$aix_use_runtimelinking" = yes; then
16615           shared_flag="$shared_flag "'${wl}-G'
16616         fi
16617       else
16618         # not using gcc
16619         if test "$host_cpu" = ia64; then
16620         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16621         # chokes on -Wl,-G. The following line is correct:
16622           shared_flag='-G'
16623         else
16624           if test "$aix_use_runtimelinking" = yes; then
16625             shared_flag='${wl}-G'
16626           else
16627             shared_flag='${wl}-bM:SRE'
16628           fi
16629         fi
16630       fi
16631
16632       # It seems that -bexpall does not export symbols beginning with
16633       # underscore (_), so it is better to generate a list of symbols to export.
16634       always_export_symbols_GCJ=yes
16635       if test "$aix_use_runtimelinking" = yes; then
16636         # Warning - without using the other runtime loading flags (-brtl),
16637         # -berok will link without error, but may produce a broken library.
16638         allow_undefined_flag_GCJ='-berok'
16639        # Determine the default libpath from the value encoded in an empty executable.
16640        cat >conftest.$ac_ext <<_ACEOF
16641 /* confdefs.h.  */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h.  */
16646
16647 int
16648 main ()
16649 {
16650
16651   ;
16652   return 0;
16653 }
16654 _ACEOF
16655 rm -f conftest.$ac_objext conftest$ac_exeext
16656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16657   (eval $ac_link) 2>conftest.er1
16658   ac_status=$?
16659   grep -v '^ *+' conftest.er1 >conftest.err
16660   rm -f conftest.er1
16661   cat conftest.err >&5
16662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); } &&
16664          { ac_try='test -z "$ac_c_werror_flag"
16665                          || test ! -s conftest.err'
16666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667   (eval $ac_try) 2>&5
16668   ac_status=$?
16669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670   (exit $ac_status); }; } &&
16671          { ac_try='test -s conftest$ac_exeext'
16672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673   (eval $ac_try) 2>&5
16674   ac_status=$?
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); }; }; then
16677
16678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16679 }'`
16680 # Check for a 64-bit object if we didn't find anything.
16681 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; }
16682 }'`; fi
16683 else
16684   echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16686
16687 fi
16688 rm -f conftest.err conftest.$ac_objext \
16689       conftest$ac_exeext conftest.$ac_ext
16690 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16691
16692        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16693         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16694        else
16695         if test "$host_cpu" = ia64; then
16696           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16697           allow_undefined_flag_GCJ="-z nodefs"
16698           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16699         else
16700          # Determine the default libpath from the value encoded in an empty executable.
16701          cat >conftest.$ac_ext <<_ACEOF
16702 /* confdefs.h.  */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h.  */
16707
16708 int
16709 main ()
16710 {
16711
16712   ;
16713   return 0;
16714 }
16715 _ACEOF
16716 rm -f conftest.$ac_objext conftest$ac_exeext
16717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16718   (eval $ac_link) 2>conftest.er1
16719   ac_status=$?
16720   grep -v '^ *+' conftest.er1 >conftest.err
16721   rm -f conftest.er1
16722   cat conftest.err >&5
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); } &&
16725          { ac_try='test -z "$ac_c_werror_flag"
16726                          || test ! -s conftest.err'
16727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728   (eval $ac_try) 2>&5
16729   ac_status=$?
16730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); }; } &&
16732          { ac_try='test -s conftest$ac_exeext'
16733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734   (eval $ac_try) 2>&5
16735   ac_status=$?
16736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737   (exit $ac_status); }; }; then
16738
16739 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16740 }'`
16741 # Check for a 64-bit object if we didn't find anything.
16742 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; }
16743 }'`; fi
16744 else
16745   echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16747
16748 fi
16749 rm -f conftest.err conftest.$ac_objext \
16750       conftest$ac_exeext conftest.$ac_ext
16751 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16752
16753          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16754           # Warning - without using the other run time loading flags,
16755           # -berok will link without error, but may produce a broken library.
16756           no_undefined_flag_GCJ=' ${wl}-bernotok'
16757           allow_undefined_flag_GCJ=' ${wl}-berok'
16758           # Exported symbols can be pulled into shared objects from archives
16759           whole_archive_flag_spec_GCJ='$convenience'
16760           archive_cmds_need_lc_GCJ=yes
16761           # This is similar to how AIX traditionally builds its shared libraries.
16762           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16763         fi
16764       fi
16765       ;;
16766
16767     amigaos*)
16768       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)'
16769       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16770       hardcode_minus_L_GCJ=yes
16771       # see comment about different semantics on the GNU ld section
16772       ld_shlibs_GCJ=no
16773       ;;
16774
16775     bsdi[45]*)
16776       export_dynamic_flag_spec_GCJ=-rdynamic
16777       ;;
16778
16779     cygwin* | mingw* | pw32*)
16780       # When not using gcc, we currently assume that we are using
16781       # Microsoft Visual C++.
16782       # hardcode_libdir_flag_spec is actually meaningless, as there is
16783       # no search path for DLLs.
16784       hardcode_libdir_flag_spec_GCJ=' '
16785       allow_undefined_flag_GCJ=unsupported
16786       # Tell ltmain to make .lib files, not .a files.
16787       libext=lib
16788       # Tell ltmain to make .dll files, not .so files.
16789       shrext_cmds=".dll"
16790       # FIXME: Setting linknames here is a bad hack.
16791       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16792       # The linker will automatically build a .lib file if we build a DLL.
16793       old_archive_From_new_cmds_GCJ='true'
16794       # FIXME: Should let the user specify the lib program.
16795       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16796       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16797       enable_shared_with_static_runtimes_GCJ=yes
16798       ;;
16799
16800     darwin* | rhapsody*)
16801       case $host_os in
16802         rhapsody* | darwin1.[012])
16803          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16804          ;;
16805        *) # Darwin 1.3 on
16806          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16807            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16808          else
16809            case ${MACOSX_DEPLOYMENT_TARGET} in
16810              10.[012])
16811                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16812                ;;
16813              10.*)
16814                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16815                ;;
16816            esac
16817          fi
16818          ;;
16819       esac
16820       archive_cmds_need_lc_GCJ=no
16821       hardcode_direct_GCJ=no
16822       hardcode_automatic_GCJ=yes
16823       hardcode_shlibpath_var_GCJ=unsupported
16824       whole_archive_flag_spec_GCJ=''
16825       link_all_deplibs_GCJ=yes
16826     if test "$GCC" = yes ; then
16827         output_verbose_link_cmd='echo'
16828         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16829       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16830       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16831       archive_expsym_cmds_GCJ='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}'
16832       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}'
16833     else
16834       case $cc_basename in
16835         xlc*)
16836          output_verbose_link_cmd='echo'
16837          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16838          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16839           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16840          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16841           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}'
16842           ;;
16843        *)
16844          ld_shlibs_GCJ=no
16845           ;;
16846       esac
16847     fi
16848       ;;
16849
16850     dgux*)
16851       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16852       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16853       hardcode_shlibpath_var_GCJ=no
16854       ;;
16855
16856     freebsd1*)
16857       ld_shlibs_GCJ=no
16858       ;;
16859
16860     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16861     # support.  Future versions do this automatically, but an explicit c++rt0.o
16862     # does not break anything, and helps significantly (at the cost of a little
16863     # extra space).
16864     freebsd2.2*)
16865       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16866       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16867       hardcode_direct_GCJ=yes
16868       hardcode_shlibpath_var_GCJ=no
16869       ;;
16870
16871     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16872     freebsd2*)
16873       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16874       hardcode_direct_GCJ=yes
16875       hardcode_minus_L_GCJ=yes
16876       hardcode_shlibpath_var_GCJ=no
16877       ;;
16878
16879     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16880     freebsd* | kfreebsd*-gnu | dragonfly*)
16881       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16882       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16883       hardcode_direct_GCJ=yes
16884       hardcode_shlibpath_var_GCJ=no
16885       ;;
16886
16887     hpux9*)
16888       if test "$GCC" = yes; then
16889         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'
16890       else
16891         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'
16892       fi
16893       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16894       hardcode_libdir_separator_GCJ=:
16895       hardcode_direct_GCJ=yes
16896
16897       # hardcode_minus_L: Not really in the search PATH,
16898       # but as the default location of the library.
16899       hardcode_minus_L_GCJ=yes
16900       export_dynamic_flag_spec_GCJ='${wl}-E'
16901       ;;
16902
16903     hpux10*)
16904       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16905         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16906       else
16907         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16908       fi
16909       if test "$with_gnu_ld" = no; then
16910         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16911         hardcode_libdir_separator_GCJ=:
16912
16913         hardcode_direct_GCJ=yes
16914         export_dynamic_flag_spec_GCJ='${wl}-E'
16915
16916         # hardcode_minus_L: Not really in the search PATH,
16917         # but as the default location of the library.
16918         hardcode_minus_L_GCJ=yes
16919       fi
16920       ;;
16921
16922     hpux11*)
16923       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16924         case $host_cpu in
16925         hppa*64*)
16926           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16927           ;;
16928         ia64*)
16929           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16930           ;;
16931         *)
16932           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16933           ;;
16934         esac
16935       else
16936         case $host_cpu in
16937         hppa*64*)
16938           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16939           ;;
16940         ia64*)
16941           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16942           ;;
16943         *)
16944           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16945           ;;
16946         esac
16947       fi
16948       if test "$with_gnu_ld" = no; then
16949         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16950         hardcode_libdir_separator_GCJ=:
16951
16952         case $host_cpu in
16953         hppa*64*|ia64*)
16954           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16955           hardcode_direct_GCJ=no
16956           hardcode_shlibpath_var_GCJ=no
16957           ;;
16958         *)
16959           hardcode_direct_GCJ=yes
16960           export_dynamic_flag_spec_GCJ='${wl}-E'
16961
16962           # hardcode_minus_L: Not really in the search PATH,
16963           # but as the default location of the library.
16964           hardcode_minus_L_GCJ=yes
16965           ;;
16966         esac
16967       fi
16968       ;;
16969
16970     irix5* | irix6* | nonstopux*)
16971       if test "$GCC" = yes; then
16972         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'
16973       else
16974         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'
16975         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16976       fi
16977       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16978       hardcode_libdir_separator_GCJ=:
16979       link_all_deplibs_GCJ=yes
16980       ;;
16981
16982     netbsd*)
16983       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16984         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16985       else
16986         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16987       fi
16988       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16989       hardcode_direct_GCJ=yes
16990       hardcode_shlibpath_var_GCJ=no
16991       ;;
16992
16993     newsos6)
16994       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16995       hardcode_direct_GCJ=yes
16996       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16997       hardcode_libdir_separator_GCJ=:
16998       hardcode_shlibpath_var_GCJ=no
16999       ;;
17000
17001     openbsd*)
17002       hardcode_direct_GCJ=yes
17003       hardcode_shlibpath_var_GCJ=no
17004       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17005         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17006         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17007         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17008         export_dynamic_flag_spec_GCJ='${wl}-E'
17009       else
17010        case $host_os in
17011          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17012            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17013            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17014            ;;
17015          *)
17016            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17017            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17018            ;;
17019        esac
17020       fi
17021       ;;
17022
17023     os2*)
17024       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17025       hardcode_minus_L_GCJ=yes
17026       allow_undefined_flag_GCJ=unsupported
17027       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'
17028       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17029       ;;
17030
17031     osf3*)
17032       if test "$GCC" = yes; then
17033         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17034         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'
17035       else
17036         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17037         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'
17038       fi
17039       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17040       hardcode_libdir_separator_GCJ=:
17041       ;;
17042
17043     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17044       if test "$GCC" = yes; then
17045         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17046         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'
17047         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17048       else
17049         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17050         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'
17051         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~
17052         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17053
17054         # Both c and cxx compiler support -rpath directly
17055         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17056       fi
17057       hardcode_libdir_separator_GCJ=:
17058       ;;
17059
17060     solaris*)
17061       no_undefined_flag_GCJ=' -z text'
17062       if test "$GCC" = yes; then
17063         wlarc='${wl}'
17064         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17065         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17066           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17067       else
17068         wlarc=''
17069         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17070         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17071         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17072       fi
17073       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17074       hardcode_shlibpath_var_GCJ=no
17075       case $host_os in
17076       solaris2.[0-5] | solaris2.[0-5].*) ;;
17077       *)
17078         # The compiler driver will combine linker options so we
17079         # cannot just pass the convience library names through
17080         # without $wl, iff we do not link with $LD.
17081         # Luckily, gcc supports the same syntax we need for Sun Studio.
17082         # Supported since Solaris 2.6 (maybe 2.5.1?)
17083         case $wlarc in
17084         '')
17085           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17086         *)
17087           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17088         esac ;;
17089       esac
17090       link_all_deplibs_GCJ=yes
17091       ;;
17092
17093     sunos4*)
17094       if test "x$host_vendor" = xsequent; then
17095         # Use $CC to link under sequent, because it throws in some extra .o
17096         # files that make .init and .fini sections work.
17097         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17098       else
17099         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17100       fi
17101       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17102       hardcode_direct_GCJ=yes
17103       hardcode_minus_L_GCJ=yes
17104       hardcode_shlibpath_var_GCJ=no
17105       ;;
17106
17107     sysv4)
17108       case $host_vendor in
17109         sni)
17110           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17111           hardcode_direct_GCJ=yes # is this really true???
17112         ;;
17113         siemens)
17114           ## LD is ld it makes a PLAMLIB
17115           ## CC just makes a GrossModule.
17116           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17117           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17118           hardcode_direct_GCJ=no
17119         ;;
17120         motorola)
17121           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17122           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17123         ;;
17124       esac
17125       runpath_var='LD_RUN_PATH'
17126       hardcode_shlibpath_var_GCJ=no
17127       ;;
17128
17129     sysv4.3*)
17130       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17131       hardcode_shlibpath_var_GCJ=no
17132       export_dynamic_flag_spec_GCJ='-Bexport'
17133       ;;
17134
17135     sysv4*MP*)
17136       if test -d /usr/nec; then
17137         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17138         hardcode_shlibpath_var_GCJ=no
17139         runpath_var=LD_RUN_PATH
17140         hardcode_runpath_var=yes
17141         ld_shlibs_GCJ=yes
17142       fi
17143       ;;
17144
17145     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17146       no_undefined_flag_GCJ='${wl}-z,text'
17147       archive_cmds_need_lc_GCJ=no
17148       hardcode_shlibpath_var_GCJ=no
17149       runpath_var='LD_RUN_PATH'
17150
17151       if test "$GCC" = yes; then
17152         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17153         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17154       else
17155         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17156         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17157       fi
17158       ;;
17159
17160     sysv5* | sco3.2v5* | sco5v6*)
17161       # Note: We can NOT use -z defs as we might desire, because we do not
17162       # link with -lc, and that would cause any symbols used from libc to
17163       # always be unresolved, which means just about no library would
17164       # ever link correctly.  If we're not using GNU ld we use -z text
17165       # though, which does catch some bad symbols but isn't as heavy-handed
17166       # as -z defs.
17167       no_undefined_flag_GCJ='${wl}-z,text'
17168       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17169       archive_cmds_need_lc_GCJ=no
17170       hardcode_shlibpath_var_GCJ=no
17171       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17172       hardcode_libdir_separator_GCJ=':'
17173       link_all_deplibs_GCJ=yes
17174       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17175       runpath_var='LD_RUN_PATH'
17176
17177       if test "$GCC" = yes; then
17178         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17179         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17180       else
17181         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17182         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17183       fi
17184       ;;
17185
17186     uts4*)
17187       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17188       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17189       hardcode_shlibpath_var_GCJ=no
17190       ;;
17191
17192     *)
17193       ld_shlibs_GCJ=no
17194       ;;
17195     esac
17196   fi
17197
17198 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17199 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17200 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17201
17202 #
17203 # Do we need to explicitly link libc?
17204 #
17205 case "x$archive_cmds_need_lc_GCJ" in
17206 x|xyes)
17207   # Assume -lc should be added
17208   archive_cmds_need_lc_GCJ=yes
17209
17210   if test "$enable_shared" = yes && test "$GCC" = yes; then
17211     case $archive_cmds_GCJ in
17212     *'~'*)
17213       # FIXME: we may have to deal with multi-command sequences.
17214       ;;
17215     '$CC '*)
17216       # Test whether the compiler implicitly links with -lc since on some
17217       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17218       # to ld, don't add -lc before -lgcc.
17219       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17220 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17221       $rm conftest*
17222       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17223
17224       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17225   (eval $ac_compile) 2>&5
17226   ac_status=$?
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); } 2>conftest.err; then
17229         soname=conftest
17230         lib=conftest
17231         libobjs=conftest.$ac_objext
17232         deplibs=
17233         wl=$lt_prog_compiler_wl_GCJ
17234         pic_flag=$lt_prog_compiler_pic_GCJ
17235         compiler_flags=-v
17236         linker_flags=-v
17237         verstring=
17238         output_objdir=.
17239         libname=conftest
17240         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17241         allow_undefined_flag_GCJ=
17242         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17243   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17244   ac_status=$?
17245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246   (exit $ac_status); }
17247         then
17248           archive_cmds_need_lc_GCJ=no
17249         else
17250           archive_cmds_need_lc_GCJ=yes
17251         fi
17252         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17253       else
17254         cat conftest.err 1>&5
17255       fi
17256       $rm conftest*
17257       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17258 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17259       ;;
17260     esac
17261   fi
17262   ;;
17263 esac
17264
17265 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17266 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17267 library_names_spec=
17268 libname_spec='lib$name'
17269 soname_spec=
17270 shrext_cmds=".so"
17271 postinstall_cmds=
17272 postuninstall_cmds=
17273 finish_cmds=
17274 finish_eval=
17275 shlibpath_var=
17276 shlibpath_overrides_runpath=unknown
17277 version_type=none
17278 dynamic_linker="$host_os ld.so"
17279 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17280 if test "$GCC" = yes; then
17281   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17282   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17283     # if the path contains ";" then we assume it to be the separator
17284     # otherwise default to the standard path separator (i.e. ":") - it is
17285     # assumed that no part of a normal pathname contains ";" but that should
17286     # okay in the real world where ";" in dirpaths is itself problematic.
17287     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17288   else
17289     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17290   fi
17291 else
17292   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17293 fi
17294 need_lib_prefix=unknown
17295 hardcode_into_libs=no
17296
17297 # when you set need_version to no, make sure it does not cause -set_version
17298 # flags to be left without arguments
17299 need_version=unknown
17300
17301 case $host_os in
17302 aix3*)
17303   version_type=linux
17304   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17305   shlibpath_var=LIBPATH
17306
17307   # AIX 3 has no versioning support, so we append a major version to the name.
17308   soname_spec='${libname}${release}${shared_ext}$major'
17309   ;;
17310
17311 aix4* | aix5*)
17312   version_type=linux
17313   need_lib_prefix=no
17314   need_version=no
17315   hardcode_into_libs=yes
17316   if test "$host_cpu" = ia64; then
17317     # AIX 5 supports IA64
17318     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17319     shlibpath_var=LD_LIBRARY_PATH
17320   else
17321     # With GCC up to 2.95.x, collect2 would create an import file
17322     # for dependence libraries.  The import file would start with
17323     # the line `#! .'.  This would cause the generated library to
17324     # depend on `.', always an invalid library.  This was fixed in
17325     # development snapshots of GCC prior to 3.0.
17326     case $host_os in
17327       aix4 | aix4.[01] | aix4.[01].*)
17328       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17329            echo ' yes '
17330            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17331         :
17332       else
17333         can_build_shared=no
17334       fi
17335       ;;
17336     esac
17337     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17338     # soname into executable. Probably we can add versioning support to
17339     # collect2, so additional links can be useful in future.
17340     if test "$aix_use_runtimelinking" = yes; then
17341       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17342       # instead of lib<name>.a to let people know that these are not
17343       # typical AIX shared libraries.
17344       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17345     else
17346       # We preserve .a as extension for shared libraries through AIX4.2
17347       # and later when we are not doing run time linking.
17348       library_names_spec='${libname}${release}.a $libname.a'
17349       soname_spec='${libname}${release}${shared_ext}$major'
17350     fi
17351     shlibpath_var=LIBPATH
17352   fi
17353   ;;
17354
17355 amigaos*)
17356   library_names_spec='$libname.ixlibrary $libname.a'
17357   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17358   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'
17359   ;;
17360
17361 beos*)
17362   library_names_spec='${libname}${shared_ext}'
17363   dynamic_linker="$host_os ld.so"
17364   shlibpath_var=LIBRARY_PATH
17365   ;;
17366
17367 bsdi[45]*)
17368   version_type=linux
17369   need_version=no
17370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17371   soname_spec='${libname}${release}${shared_ext}$major'
17372   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17373   shlibpath_var=LD_LIBRARY_PATH
17374   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17375   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17376   # the default ld.so.conf also contains /usr/contrib/lib and
17377   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17378   # libtool to hard-code these into programs
17379   ;;
17380
17381 cygwin* | mingw* | pw32*)
17382   version_type=windows
17383   shrext_cmds=".dll"
17384   need_version=no
17385   need_lib_prefix=no
17386
17387   case $GCC,$host_os in
17388   yes,cygwin* | yes,mingw* | yes,pw32*)
17389     library_names_spec='$libname.dll.a'
17390     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17391     postinstall_cmds='base_file=`basename \${file}`~
17392       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17393       dldir=$destdir/`dirname \$dlpath`~
17394       test -d \$dldir || mkdir -p \$dldir~
17395       $install_prog $dir/$dlname \$dldir/$dlname~
17396       chmod a+x \$dldir/$dlname'
17397     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17398       dlpath=$dir/\$dldll~
17399        $rm \$dlpath'
17400     shlibpath_overrides_runpath=yes
17401
17402     case $host_os in
17403     cygwin*)
17404       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17405       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17406       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17407       ;;
17408     mingw*)
17409       # MinGW DLLs use traditional 'lib' prefix
17410       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17411       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17412       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17413         # It is most probably a Windows format PATH printed by
17414         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17415         # path with ; separators, and with drive letters. We can handle the
17416         # drive letters (cygwin fileutils understands them), so leave them,
17417         # especially as we might pass files found there to a mingw objdump,
17418         # which wouldn't understand a cygwinified path. Ahh.
17419         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17420       else
17421         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17422       fi
17423       ;;
17424     pw32*)
17425       # pw32 DLLs use 'pw' prefix rather than 'lib'
17426       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17427       ;;
17428     esac
17429     ;;
17430
17431   *)
17432     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17433     ;;
17434   esac
17435   dynamic_linker='Win32 ld.exe'
17436   # FIXME: first we should search . and the directory the executable is in
17437   shlibpath_var=PATH
17438   ;;
17439
17440 darwin* | rhapsody*)
17441   dynamic_linker="$host_os dyld"
17442   version_type=darwin
17443   need_lib_prefix=no
17444   need_version=no
17445   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17446   soname_spec='${libname}${release}${major}$shared_ext'
17447   shlibpath_overrides_runpath=yes
17448   shlibpath_var=DYLD_LIBRARY_PATH
17449   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17450   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17451   if test "$GCC" = yes; then
17452     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"`
17453   else
17454     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17455   fi
17456   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17457   ;;
17458
17459 dgux*)
17460   version_type=linux
17461   need_lib_prefix=no
17462   need_version=no
17463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17464   soname_spec='${libname}${release}${shared_ext}$major'
17465   shlibpath_var=LD_LIBRARY_PATH
17466   ;;
17467
17468 freebsd1*)
17469   dynamic_linker=no
17470   ;;
17471
17472 kfreebsd*-gnu)
17473   version_type=linux
17474   need_lib_prefix=no
17475   need_version=no
17476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17477   soname_spec='${libname}${release}${shared_ext}$major'
17478   shlibpath_var=LD_LIBRARY_PATH
17479   shlibpath_overrides_runpath=no
17480   hardcode_into_libs=yes
17481   dynamic_linker='GNU ld.so'
17482   ;;
17483
17484 freebsd* | dragonfly*)
17485   # DragonFly does not have aout.  When/if they implement a new
17486   # versioning mechanism, adjust this.
17487   if test -x /usr/bin/objformat; then
17488     objformat=`/usr/bin/objformat`
17489   else
17490     case $host_os in
17491     freebsd[123]*) objformat=aout ;;
17492     *) objformat=elf ;;
17493     esac
17494   fi
17495   version_type=freebsd-$objformat
17496   case $version_type in
17497     freebsd-elf*)
17498       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17499       need_version=no
17500       need_lib_prefix=no
17501       ;;
17502     freebsd-*)
17503       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17504       need_version=yes
17505       ;;
17506   esac
17507   shlibpath_var=LD_LIBRARY_PATH
17508   case $host_os in
17509   freebsd2*)
17510     shlibpath_overrides_runpath=yes
17511     ;;
17512   freebsd3.[01]* | freebsdelf3.[01]*)
17513     shlibpath_overrides_runpath=yes
17514     hardcode_into_libs=yes
17515     ;;
17516   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17517   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17518     shlibpath_overrides_runpath=no
17519     hardcode_into_libs=yes
17520     ;;
17521   freebsd*) # from 4.6 on
17522     shlibpath_overrides_runpath=yes
17523     hardcode_into_libs=yes
17524     ;;
17525   esac
17526   ;;
17527
17528 gnu*)
17529   version_type=linux
17530   need_lib_prefix=no
17531   need_version=no
17532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17533   soname_spec='${libname}${release}${shared_ext}$major'
17534   shlibpath_var=LD_LIBRARY_PATH
17535   hardcode_into_libs=yes
17536   ;;
17537
17538 hpux9* | hpux10* | hpux11*)
17539   # Give a soname corresponding to the major version so that dld.sl refuses to
17540   # link against other versions.
17541   version_type=sunos
17542   need_lib_prefix=no
17543   need_version=no
17544   case $host_cpu in
17545   ia64*)
17546     shrext_cmds='.so'
17547     hardcode_into_libs=yes
17548     dynamic_linker="$host_os dld.so"
17549     shlibpath_var=LD_LIBRARY_PATH
17550     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17551     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552     soname_spec='${libname}${release}${shared_ext}$major'
17553     if test "X$HPUX_IA64_MODE" = X32; then
17554       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17555     else
17556       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17557     fi
17558     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17559     ;;
17560    hppa*64*)
17561      shrext_cmds='.sl'
17562      hardcode_into_libs=yes
17563      dynamic_linker="$host_os dld.sl"
17564      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17565      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17566      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17567      soname_spec='${libname}${release}${shared_ext}$major'
17568      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17569      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17570      ;;
17571    *)
17572     shrext_cmds='.sl'
17573     dynamic_linker="$host_os dld.sl"
17574     shlibpath_var=SHLIB_PATH
17575     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17577     soname_spec='${libname}${release}${shared_ext}$major'
17578     ;;
17579   esac
17580   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17581   postinstall_cmds='chmod 555 $lib'
17582   ;;
17583
17584 interix3*)
17585   version_type=linux
17586   need_lib_prefix=no
17587   need_version=no
17588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17589   soname_spec='${libname}${release}${shared_ext}$major'
17590   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17591   shlibpath_var=LD_LIBRARY_PATH
17592   shlibpath_overrides_runpath=no
17593   hardcode_into_libs=yes
17594   ;;
17595
17596 irix5* | irix6* | nonstopux*)
17597   case $host_os in
17598     nonstopux*) version_type=nonstopux ;;
17599     *)
17600         if test "$lt_cv_prog_gnu_ld" = yes; then
17601                 version_type=linux
17602         else
17603                 version_type=irix
17604         fi ;;
17605   esac
17606   need_lib_prefix=no
17607   need_version=no
17608   soname_spec='${libname}${release}${shared_ext}$major'
17609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17610   case $host_os in
17611   irix5* | nonstopux*)
17612     libsuff= shlibsuff=
17613     ;;
17614   *)
17615     case $LD in # libtool.m4 will add one of these switches to LD
17616     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17617       libsuff= shlibsuff= libmagic=32-bit;;
17618     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17619       libsuff=32 shlibsuff=N32 libmagic=N32;;
17620     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17621       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17622     *) libsuff= shlibsuff= libmagic=never-match;;
17623     esac
17624     ;;
17625   esac
17626   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17627   shlibpath_overrides_runpath=no
17628   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17629   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17630   hardcode_into_libs=yes
17631   ;;
17632
17633 # No shared lib support for Linux oldld, aout, or coff.
17634 linux*oldld* | linux*aout* | linux*coff*)
17635   dynamic_linker=no
17636   ;;
17637
17638 # This must be Linux ELF.
17639 linux*)
17640   version_type=linux
17641   need_lib_prefix=no
17642   need_version=no
17643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17644   soname_spec='${libname}${release}${shared_ext}$major'
17645   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17646   shlibpath_var=LD_LIBRARY_PATH
17647   shlibpath_overrides_runpath=no
17648   # This implies no fast_install, which is unacceptable.
17649   # Some rework will be needed to allow for fast_install
17650   # before this can be enabled.
17651   hardcode_into_libs=yes
17652
17653   # find out which ABI we are using
17654   libsuff=
17655   case "$host_cpu" in
17656   x86_64*|s390x*|powerpc64*)
17657     echo '#line 17657 "configure"' > conftest.$ac_ext
17658     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17659   (eval $ac_compile) 2>&5
17660   ac_status=$?
17661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662   (exit $ac_status); }; then
17663       case `/usr/bin/file conftest.$ac_objext` in
17664       *64-bit*)
17665         libsuff=64
17666         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17667         ;;
17668       esac
17669     fi
17670     rm -rf conftest*
17671     ;;
17672   esac
17673
17674   # Append ld.so.conf contents to the search path
17675   if test -f /etc/ld.so.conf; then
17676     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17677     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17678   fi
17679
17680   # We used to test for /lib/ld.so.1 and disable shared libraries on
17681   # powerpc, because MkLinux only supported shared libraries with the
17682   # GNU dynamic linker.  Since this was broken with cross compilers,
17683   # most powerpc-linux boxes support dynamic linking these days and
17684   # people can always --disable-shared, the test was removed, and we
17685   # assume the GNU/Linux dynamic linker is in use.
17686   dynamic_linker='GNU/Linux ld.so'
17687   ;;
17688
17689 knetbsd*-gnu)
17690   version_type=linux
17691   need_lib_prefix=no
17692   need_version=no
17693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17694   soname_spec='${libname}${release}${shared_ext}$major'
17695   shlibpath_var=LD_LIBRARY_PATH
17696   shlibpath_overrides_runpath=no
17697   hardcode_into_libs=yes
17698   dynamic_linker='GNU ld.so'
17699   ;;
17700
17701 netbsd*)
17702   version_type=sunos
17703   need_lib_prefix=no
17704   need_version=no
17705   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17707     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17708     dynamic_linker='NetBSD (a.out) ld.so'
17709   else
17710     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17711     soname_spec='${libname}${release}${shared_ext}$major'
17712     dynamic_linker='NetBSD ld.elf_so'
17713   fi
17714   shlibpath_var=LD_LIBRARY_PATH
17715   shlibpath_overrides_runpath=yes
17716   hardcode_into_libs=yes
17717   ;;
17718
17719 newsos6)
17720   version_type=linux
17721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17722   shlibpath_var=LD_LIBRARY_PATH
17723   shlibpath_overrides_runpath=yes
17724   ;;
17725
17726 nto-qnx*)
17727   version_type=linux
17728   need_lib_prefix=no
17729   need_version=no
17730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17731   soname_spec='${libname}${release}${shared_ext}$major'
17732   shlibpath_var=LD_LIBRARY_PATH
17733   shlibpath_overrides_runpath=yes
17734   ;;
17735
17736 openbsd*)
17737   version_type=sunos
17738   sys_lib_dlsearch_path_spec="/usr/lib"
17739   need_lib_prefix=no
17740   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17741   case $host_os in
17742     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17743     *)                         need_version=no  ;;
17744   esac
17745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17746   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17747   shlibpath_var=LD_LIBRARY_PATH
17748   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17749     case $host_os in
17750       openbsd2.[89] | openbsd2.[89].*)
17751         shlibpath_overrides_runpath=no
17752         ;;
17753       *)
17754         shlibpath_overrides_runpath=yes
17755         ;;
17756       esac
17757   else
17758     shlibpath_overrides_runpath=yes
17759   fi
17760   ;;
17761
17762 os2*)
17763   libname_spec='$name'
17764   shrext_cmds=".dll"
17765   need_lib_prefix=no
17766   library_names_spec='$libname${shared_ext} $libname.a'
17767   dynamic_linker='OS/2 ld.exe'
17768   shlibpath_var=LIBPATH
17769   ;;
17770
17771 osf3* | osf4* | osf5*)
17772   version_type=osf
17773   need_lib_prefix=no
17774   need_version=no
17775   soname_spec='${libname}${release}${shared_ext}$major'
17776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17777   shlibpath_var=LD_LIBRARY_PATH
17778   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17779   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17780   ;;
17781
17782 solaris*)
17783   version_type=linux
17784   need_lib_prefix=no
17785   need_version=no
17786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17787   soname_spec='${libname}${release}${shared_ext}$major'
17788   shlibpath_var=LD_LIBRARY_PATH
17789   shlibpath_overrides_runpath=yes
17790   hardcode_into_libs=yes
17791   # ldd complains unless libraries are executable
17792   postinstall_cmds='chmod +x $lib'
17793   ;;
17794
17795 sunos4*)
17796   version_type=sunos
17797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17798   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17799   shlibpath_var=LD_LIBRARY_PATH
17800   shlibpath_overrides_runpath=yes
17801   if test "$with_gnu_ld" = yes; then
17802     need_lib_prefix=no
17803   fi
17804   need_version=yes
17805   ;;
17806
17807 sysv4 | sysv4.3*)
17808   version_type=linux
17809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17810   soname_spec='${libname}${release}${shared_ext}$major'
17811   shlibpath_var=LD_LIBRARY_PATH
17812   case $host_vendor in
17813     sni)
17814       shlibpath_overrides_runpath=no
17815       need_lib_prefix=no
17816       export_dynamic_flag_spec='${wl}-Blargedynsym'
17817       runpath_var=LD_RUN_PATH
17818       ;;
17819     siemens)
17820       need_lib_prefix=no
17821       ;;
17822     motorola)
17823       need_lib_prefix=no
17824       need_version=no
17825       shlibpath_overrides_runpath=no
17826       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17827       ;;
17828   esac
17829   ;;
17830
17831 sysv4*MP*)
17832   if test -d /usr/nec ;then
17833     version_type=linux
17834     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17835     soname_spec='$libname${shared_ext}.$major'
17836     shlibpath_var=LD_LIBRARY_PATH
17837   fi
17838   ;;
17839
17840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17841   version_type=freebsd-elf
17842   need_lib_prefix=no
17843   need_version=no
17844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17845   soname_spec='${libname}${release}${shared_ext}$major'
17846   shlibpath_var=LD_LIBRARY_PATH
17847   hardcode_into_libs=yes
17848   if test "$with_gnu_ld" = yes; then
17849     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17850     shlibpath_overrides_runpath=no
17851   else
17852     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17853     shlibpath_overrides_runpath=yes
17854     case $host_os in
17855       sco3.2v5*)
17856         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17857         ;;
17858     esac
17859   fi
17860   sys_lib_dlsearch_path_spec='/usr/lib'
17861   ;;
17862
17863 uts4*)
17864   version_type=linux
17865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17866   soname_spec='${libname}${release}${shared_ext}$major'
17867   shlibpath_var=LD_LIBRARY_PATH
17868   ;;
17869
17870 *)
17871   dynamic_linker=no
17872   ;;
17873 esac
17874 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17875 echo "${ECHO_T}$dynamic_linker" >&6
17876 test "$dynamic_linker" = no && can_build_shared=no
17877
17878 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17879 if test "$GCC" = yes; then
17880   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17881 fi
17882
17883 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17884 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17885 hardcode_action_GCJ=
17886 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17887    test -n "$runpath_var_GCJ" || \
17888    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17889
17890   # We can hardcode non-existant directories.
17891   if test "$hardcode_direct_GCJ" != no &&
17892      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17893      # have to relink, otherwise we might link with an installed library
17894      # when we should be linking with a yet-to-be-installed one
17895      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17896      test "$hardcode_minus_L_GCJ" != no; then
17897     # Linking always hardcodes the temporary library directory.
17898     hardcode_action_GCJ=relink
17899   else
17900     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17901     hardcode_action_GCJ=immediate
17902   fi
17903 else
17904   # We cannot hardcode anything, or else we can only hardcode existing
17905   # directories.
17906   hardcode_action_GCJ=unsupported
17907 fi
17908 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17909 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17910
17911 if test "$hardcode_action_GCJ" = relink; then
17912   # Fast installation is not supported
17913   enable_fast_install=no
17914 elif test "$shlibpath_overrides_runpath" = yes ||
17915      test "$enable_shared" = no; then
17916   # Fast installation is not necessary
17917   enable_fast_install=needless
17918 fi
17919
17920
17921 # The else clause should only fire when bootstrapping the
17922 # libtool distribution, otherwise you forgot to ship ltmain.sh
17923 # with your package, and you will get complaints that there are
17924 # no rules to generate ltmain.sh.
17925 if test -f "$ltmain"; then
17926   # See if we are running on zsh, and set the options which allow our commands through
17927   # without removal of \ escapes.
17928   if test -n "${ZSH_VERSION+set}" ; then
17929     setopt NO_GLOB_SUBST
17930   fi
17931   # Now quote all the things that may contain metacharacters while being
17932   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17933   # variables and quote the copies for generation of the libtool script.
17934   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17935     SED SHELL STRIP \
17936     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17937     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17938     deplibs_check_method reload_flag reload_cmds need_locks \
17939     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17940     lt_cv_sys_global_symbol_to_c_name_address \
17941     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17942     old_postinstall_cmds old_postuninstall_cmds \
17943     compiler_GCJ \
17944     CC_GCJ \
17945     LD_GCJ \
17946     lt_prog_compiler_wl_GCJ \
17947     lt_prog_compiler_pic_GCJ \
17948     lt_prog_compiler_static_GCJ \
17949     lt_prog_compiler_no_builtin_flag_GCJ \
17950     export_dynamic_flag_spec_GCJ \
17951     thread_safe_flag_spec_GCJ \
17952     whole_archive_flag_spec_GCJ \
17953     enable_shared_with_static_runtimes_GCJ \
17954     old_archive_cmds_GCJ \
17955     old_archive_from_new_cmds_GCJ \
17956     predep_objects_GCJ \
17957     postdep_objects_GCJ \
17958     predeps_GCJ \
17959     postdeps_GCJ \
17960     compiler_lib_search_path_GCJ \
17961     archive_cmds_GCJ \
17962     archive_expsym_cmds_GCJ \
17963     postinstall_cmds_GCJ \
17964     postuninstall_cmds_GCJ \
17965     old_archive_from_expsyms_cmds_GCJ \
17966     allow_undefined_flag_GCJ \
17967     no_undefined_flag_GCJ \
17968     export_symbols_cmds_GCJ \
17969     hardcode_libdir_flag_spec_GCJ \
17970     hardcode_libdir_flag_spec_ld_GCJ \
17971     hardcode_libdir_separator_GCJ \
17972     hardcode_automatic_GCJ \
17973     module_cmds_GCJ \
17974     module_expsym_cmds_GCJ \
17975     lt_cv_prog_compiler_c_o_GCJ \
17976     exclude_expsyms_GCJ \
17977     include_expsyms_GCJ; do
17978
17979     case $var in
17980     old_archive_cmds_GCJ | \
17981     old_archive_from_new_cmds_GCJ | \
17982     archive_cmds_GCJ | \
17983     archive_expsym_cmds_GCJ | \
17984     module_cmds_GCJ | \
17985     module_expsym_cmds_GCJ | \
17986     old_archive_from_expsyms_cmds_GCJ | \
17987     export_symbols_cmds_GCJ | \
17988     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17989     postinstall_cmds | postuninstall_cmds | \
17990     old_postinstall_cmds | old_postuninstall_cmds | \
17991     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17992       # Double-quote double-evaled strings.
17993       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17994       ;;
17995     *)
17996       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17997       ;;
17998     esac
17999   done
18000
18001   case $lt_echo in
18002   *'\$0 --fallback-echo"')
18003     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18004     ;;
18005   esac
18006
18007 cfgfile="$ofile"
18008
18009   cat <<__EOF__ >> "$cfgfile"
18010 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18011
18012 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18013
18014 # Shell to use when invoking shell scripts.
18015 SHELL=$lt_SHELL
18016
18017 # Whether or not to build shared libraries.
18018 build_libtool_libs=$enable_shared
18019
18020 # Whether or not to build static libraries.
18021 build_old_libs=$enable_static
18022
18023 # Whether or not to add -lc for building shared libraries.
18024 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18025
18026 # Whether or not to disallow shared libs when runtime libs are static
18027 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18028
18029 # Whether or not to optimize for fast installation.
18030 fast_install=$enable_fast_install
18031
18032 # The host system.
18033 host_alias=$host_alias
18034 host=$host
18035 host_os=$host_os
18036
18037 # The build system.
18038 build_alias=$build_alias
18039 build=$build
18040 build_os=$build_os
18041
18042 # An echo program that does not interpret backslashes.
18043 echo=$lt_echo
18044
18045 # The archiver.
18046 AR=$lt_AR
18047 AR_FLAGS=$lt_AR_FLAGS
18048
18049 # A C compiler.
18050 LTCC=$lt_LTCC
18051
18052 # LTCC compiler flags.
18053 LTCFLAGS=$lt_LTCFLAGS
18054
18055 # A language-specific compiler.
18056 CC=$lt_compiler_GCJ
18057
18058 # Is the compiler the GNU C compiler?
18059 with_gcc=$GCC_GCJ
18060
18061 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18062 gcc_ver=\`gcc -dumpversion\`
18063
18064 # An ERE matcher.
18065 EGREP=$lt_EGREP
18066
18067 # The linker used to build libraries.
18068 LD=$lt_LD_GCJ
18069
18070 # Whether we need hard or soft links.
18071 LN_S=$lt_LN_S
18072
18073 # A BSD-compatible nm program.
18074 NM=$lt_NM
18075
18076 # A symbol stripping program
18077 STRIP=$lt_STRIP
18078
18079 # Used to examine libraries when file_magic_cmd begins "file"
18080 MAGIC_CMD=$MAGIC_CMD
18081
18082 # Used on cygwin: DLL creation program.
18083 DLLTOOL="$DLLTOOL"
18084
18085 # Used on cygwin: object dumper.
18086 OBJDUMP="$OBJDUMP"
18087
18088 # Used on cygwin: assembler.
18089 AS="$AS"
18090
18091 # The name of the directory that contains temporary libtool files.
18092 objdir=$objdir
18093
18094 # How to create reloadable object files.
18095 reload_flag=$lt_reload_flag
18096 reload_cmds=$lt_reload_cmds
18097
18098 # How to pass a linker flag through the compiler.
18099 wl=$lt_lt_prog_compiler_wl_GCJ
18100
18101 # Object file suffix (normally "o").
18102 objext="$ac_objext"
18103
18104 # Old archive suffix (normally "a").
18105 libext="$libext"
18106
18107 # Shared library suffix (normally ".so").
18108 shrext_cmds='$shrext_cmds'
18109
18110 # Executable file suffix (normally "").
18111 exeext="$exeext"
18112
18113 # Additional compiler flags for building library objects.
18114 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18115 pic_mode=$pic_mode
18116
18117 # What is the maximum length of a command?
18118 max_cmd_len=$lt_cv_sys_max_cmd_len
18119
18120 # Does compiler simultaneously support -c and -o options?
18121 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18122
18123 # Must we lock files when doing compilation?
18124 need_locks=$lt_need_locks
18125
18126 # Do we need the lib prefix for modules?
18127 need_lib_prefix=$need_lib_prefix
18128
18129 # Do we need a version for libraries?
18130 need_version=$need_version
18131
18132 # Whether dlopen is supported.
18133 dlopen_support=$enable_dlopen
18134
18135 # Whether dlopen of programs is supported.
18136 dlopen_self=$enable_dlopen_self
18137
18138 # Whether dlopen of statically linked programs is supported.
18139 dlopen_self_static=$enable_dlopen_self_static
18140
18141 # Compiler flag to prevent dynamic linking.
18142 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18143
18144 # Compiler flag to turn off builtin functions.
18145 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18146
18147 # Compiler flag to allow reflexive dlopens.
18148 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18149
18150 # Compiler flag to generate shared objects directly from archives.
18151 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18152
18153 # Compiler flag to generate thread-safe objects.
18154 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18155
18156 # Library versioning type.
18157 version_type=$version_type
18158
18159 # Format of library name prefix.
18160 libname_spec=$lt_libname_spec
18161
18162 # List of archive names.  First name is the real one, the rest are links.
18163 # The last name is the one that the linker finds with -lNAME.
18164 library_names_spec=$lt_library_names_spec
18165
18166 # The coded name of the library, if different from the real name.
18167 soname_spec=$lt_soname_spec
18168
18169 # Commands used to build and install an old-style archive.
18170 RANLIB=$lt_RANLIB
18171 old_archive_cmds=$lt_old_archive_cmds_GCJ
18172 old_postinstall_cmds=$lt_old_postinstall_cmds
18173 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18174
18175 # Create an old-style archive from a shared archive.
18176 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18177
18178 # Create a temporary old-style archive to link instead of a shared archive.
18179 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18180
18181 # Commands used to build and install a shared archive.
18182 archive_cmds=$lt_archive_cmds_GCJ
18183 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18184 postinstall_cmds=$lt_postinstall_cmds
18185 postuninstall_cmds=$lt_postuninstall_cmds
18186
18187 # Commands used to build a loadable module (assumed same as above if empty)
18188 module_cmds=$lt_module_cmds_GCJ
18189 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18190
18191 # Commands to strip libraries.
18192 old_striplib=$lt_old_striplib
18193 striplib=$lt_striplib
18194
18195 # Dependencies to place before the objects being linked to create a
18196 # shared library.
18197 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18198
18199 # Dependencies to place after the objects being linked to create a
18200 # shared library.
18201 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18202
18203 # Dependencies to place before the objects being linked to create a
18204 # shared library.
18205 predeps=$lt_predeps_GCJ
18206
18207 # Dependencies to place after the objects being linked to create a
18208 # shared library.
18209 postdeps=$lt_postdeps_GCJ
18210
18211 # The library search path used internally by the compiler when linking
18212 # a shared library.
18213 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18214
18215 # Method to check whether dependent libraries are shared objects.
18216 deplibs_check_method=$lt_deplibs_check_method
18217
18218 # Command to use when deplibs_check_method == file_magic.
18219 file_magic_cmd=$lt_file_magic_cmd
18220
18221 # Flag that allows shared libraries with undefined symbols to be built.
18222 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18223
18224 # Flag that forces no undefined symbols.
18225 no_undefined_flag=$lt_no_undefined_flag_GCJ
18226
18227 # Commands used to finish a libtool library installation in a directory.
18228 finish_cmds=$lt_finish_cmds
18229
18230 # Same as above, but a single script fragment to be evaled but not shown.
18231 finish_eval=$lt_finish_eval
18232
18233 # Take the output of nm and produce a listing of raw symbols and C names.
18234 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18235
18236 # Transform the output of nm in a proper C declaration
18237 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18238
18239 # Transform the output of nm in a C name address pair
18240 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18241
18242 # This is the shared library runtime path variable.
18243 runpath_var=$runpath_var
18244
18245 # This is the shared library path variable.
18246 shlibpath_var=$shlibpath_var
18247
18248 # Is shlibpath searched before the hard-coded library search path?
18249 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18250
18251 # How to hardcode a shared library path into an executable.
18252 hardcode_action=$hardcode_action_GCJ
18253
18254 # Whether we should hardcode library paths into libraries.
18255 hardcode_into_libs=$hardcode_into_libs
18256
18257 # Flag to hardcode \$libdir into a binary during linking.
18258 # This must work even if \$libdir does not exist.
18259 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18260
18261 # If ld is used when linking, flag to hardcode \$libdir into
18262 # a binary during linking. This must work even if \$libdir does
18263 # not exist.
18264 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18265
18266 # Whether we need a single -rpath flag with a separated argument.
18267 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18268
18269 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18270 # resulting binary.
18271 hardcode_direct=$hardcode_direct_GCJ
18272
18273 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18274 # resulting binary.
18275 hardcode_minus_L=$hardcode_minus_L_GCJ
18276
18277 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18278 # the resulting binary.
18279 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18280
18281 # Set to yes if building a shared library automatically hardcodes DIR into the library
18282 # and all subsequent libraries and executables linked against it.
18283 hardcode_automatic=$hardcode_automatic_GCJ
18284
18285 # Variables whose values should be saved in libtool wrapper scripts and
18286 # restored at relink time.
18287 variables_saved_for_relink="$variables_saved_for_relink"
18288
18289 # Whether libtool must link a program against all its dependency libraries.
18290 link_all_deplibs=$link_all_deplibs_GCJ
18291
18292 # Compile-time system search path for libraries
18293 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18294
18295 # Run-time system search path for libraries
18296 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18297
18298 # Fix the shell variable \$srcfile for the compiler.
18299 fix_srcfile_path="$fix_srcfile_path_GCJ"
18300
18301 # Set to yes if exported symbols are required.
18302 always_export_symbols=$always_export_symbols_GCJ
18303
18304 # The commands to list exported symbols.
18305 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18306
18307 # The commands to extract the exported symbol list from a shared archive.
18308 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18309
18310 # Symbols that should not be listed in the preloaded symbols.
18311 exclude_expsyms=$lt_exclude_expsyms_GCJ
18312
18313 # Symbols that must always be exported.
18314 include_expsyms=$lt_include_expsyms_GCJ
18315
18316 # ### END LIBTOOL TAG CONFIG: $tagname
18317
18318 __EOF__
18319
18320
18321 else
18322   # If there is no Makefile yet, we rely on a make rule to execute
18323   # `config.status --recheck' to rerun these tests and create the
18324   # libtool script then.
18325   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18326   if test -f "$ltmain_in"; then
18327     test -f Makefile && make "$ltmain"
18328   fi
18329 fi
18330
18331
18332 ac_ext=c
18333 ac_cpp='$CPP $CPPFLAGS'
18334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18337
18338 CC="$lt_save_CC"
18339
18340         else
18341           tagname=""
18342         fi
18343         ;;
18344
18345       RC)
18346
18347
18348
18349 # Source file extension for RC test sources.
18350 ac_ext=rc
18351
18352 # Object file extension for compiled RC test sources.
18353 objext=o
18354 objext_RC=$objext
18355
18356 # Code to be used in simple compile tests
18357 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18358
18359 # Code to be used in simple link tests
18360 lt_simple_link_test_code="$lt_simple_compile_test_code"
18361
18362 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18363
18364 # If no C compiler was specified, use CC.
18365 LTCC=${LTCC-"$CC"}
18366
18367 # If no C compiler flags were specified, use CFLAGS.
18368 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18369
18370 # Allow CC to be a program name with arguments.
18371 compiler=$CC
18372
18373
18374 # save warnings/boilerplate of simple test code
18375 ac_outfile=conftest.$ac_objext
18376 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18377 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18378 _lt_compiler_boilerplate=`cat conftest.err`
18379 $rm conftest*
18380
18381 ac_outfile=conftest.$ac_objext
18382 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18383 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18384 _lt_linker_boilerplate=`cat conftest.err`
18385 $rm conftest*
18386
18387
18388 # Allow CC to be a program name with arguments.
18389 lt_save_CC="$CC"
18390 CC=${RC-"windres"}
18391 compiler=$CC
18392 compiler_RC=$CC
18393 for cc_temp in $compiler""; do
18394   case $cc_temp in
18395     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18396     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18397     \-*) ;;
18398     *) break;;
18399   esac
18400 done
18401 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18402
18403 lt_cv_prog_compiler_c_o_RC=yes
18404
18405 # The else clause should only fire when bootstrapping the
18406 # libtool distribution, otherwise you forgot to ship ltmain.sh
18407 # with your package, and you will get complaints that there are
18408 # no rules to generate ltmain.sh.
18409 if test -f "$ltmain"; then
18410   # See if we are running on zsh, and set the options which allow our commands through
18411   # without removal of \ escapes.
18412   if test -n "${ZSH_VERSION+set}" ; then
18413     setopt NO_GLOB_SUBST
18414   fi
18415   # Now quote all the things that may contain metacharacters while being
18416   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18417   # variables and quote the copies for generation of the libtool script.
18418   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18419     SED SHELL STRIP \
18420     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18421     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18422     deplibs_check_method reload_flag reload_cmds need_locks \
18423     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18424     lt_cv_sys_global_symbol_to_c_name_address \
18425     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18426     old_postinstall_cmds old_postuninstall_cmds \
18427     compiler_RC \
18428     CC_RC \
18429     LD_RC \
18430     lt_prog_compiler_wl_RC \
18431     lt_prog_compiler_pic_RC \
18432     lt_prog_compiler_static_RC \
18433     lt_prog_compiler_no_builtin_flag_RC \
18434     export_dynamic_flag_spec_RC \
18435     thread_safe_flag_spec_RC \
18436     whole_archive_flag_spec_RC \
18437     enable_shared_with_static_runtimes_RC \
18438     old_archive_cmds_RC \
18439     old_archive_from_new_cmds_RC \
18440     predep_objects_RC \
18441     postdep_objects_RC \
18442     predeps_RC \
18443     postdeps_RC \
18444     compiler_lib_search_path_RC \
18445     archive_cmds_RC \
18446     archive_expsym_cmds_RC \
18447     postinstall_cmds_RC \
18448     postuninstall_cmds_RC \
18449     old_archive_from_expsyms_cmds_RC \
18450     allow_undefined_flag_RC \
18451     no_undefined_flag_RC \
18452     export_symbols_cmds_RC \
18453     hardcode_libdir_flag_spec_RC \
18454     hardcode_libdir_flag_spec_ld_RC \
18455     hardcode_libdir_separator_RC \
18456     hardcode_automatic_RC \
18457     module_cmds_RC \
18458     module_expsym_cmds_RC \
18459     lt_cv_prog_compiler_c_o_RC \
18460     exclude_expsyms_RC \
18461     include_expsyms_RC; do
18462
18463     case $var in
18464     old_archive_cmds_RC | \
18465     old_archive_from_new_cmds_RC | \
18466     archive_cmds_RC | \
18467     archive_expsym_cmds_RC | \
18468     module_cmds_RC | \
18469     module_expsym_cmds_RC | \
18470     old_archive_from_expsyms_cmds_RC | \
18471     export_symbols_cmds_RC | \
18472     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18473     postinstall_cmds | postuninstall_cmds | \
18474     old_postinstall_cmds | old_postuninstall_cmds | \
18475     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18476       # Double-quote double-evaled strings.
18477       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18478       ;;
18479     *)
18480       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18481       ;;
18482     esac
18483   done
18484
18485   case $lt_echo in
18486   *'\$0 --fallback-echo"')
18487     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18488     ;;
18489   esac
18490
18491 cfgfile="$ofile"
18492
18493   cat <<__EOF__ >> "$cfgfile"
18494 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18495
18496 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18497
18498 # Shell to use when invoking shell scripts.
18499 SHELL=$lt_SHELL
18500
18501 # Whether or not to build shared libraries.
18502 build_libtool_libs=$enable_shared
18503
18504 # Whether or not to build static libraries.
18505 build_old_libs=$enable_static
18506
18507 # Whether or not to add -lc for building shared libraries.
18508 build_libtool_need_lc=$archive_cmds_need_lc_RC
18509
18510 # Whether or not to disallow shared libs when runtime libs are static
18511 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18512
18513 # Whether or not to optimize for fast installation.
18514 fast_install=$enable_fast_install
18515
18516 # The host system.
18517 host_alias=$host_alias
18518 host=$host
18519 host_os=$host_os
18520
18521 # The build system.
18522 build_alias=$build_alias
18523 build=$build
18524 build_os=$build_os
18525
18526 # An echo program that does not interpret backslashes.
18527 echo=$lt_echo
18528
18529 # The archiver.
18530 AR=$lt_AR
18531 AR_FLAGS=$lt_AR_FLAGS
18532
18533 # A C compiler.
18534 LTCC=$lt_LTCC
18535
18536 # LTCC compiler flags.
18537 LTCFLAGS=$lt_LTCFLAGS
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 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18546 gcc_ver=\`gcc -dumpversion\`
18547
18548 # An ERE matcher.
18549 EGREP=$lt_EGREP
18550
18551 # The linker used to build libraries.
18552 LD=$lt_LD_RC
18553
18554 # Whether we need hard or soft links.
18555 LN_S=$lt_LN_S
18556
18557 # A BSD-compatible nm program.
18558 NM=$lt_NM
18559
18560 # A symbol stripping program
18561 STRIP=$lt_STRIP
18562
18563 # Used to examine libraries when file_magic_cmd begins "file"
18564 MAGIC_CMD=$MAGIC_CMD
18565
18566 # Used on cygwin: DLL creation program.
18567 DLLTOOL="$DLLTOOL"
18568
18569 # Used on cygwin: object dumper.
18570 OBJDUMP="$OBJDUMP"
18571
18572 # Used on cygwin: assembler.
18573 AS="$AS"
18574
18575 # The name of the directory that contains temporary libtool files.
18576 objdir=$objdir
18577
18578 # How to create reloadable object files.
18579 reload_flag=$lt_reload_flag
18580 reload_cmds=$lt_reload_cmds
18581
18582 # How to pass a linker flag through the compiler.
18583 wl=$lt_lt_prog_compiler_wl_RC
18584
18585 # Object file suffix (normally "o").
18586 objext="$ac_objext"
18587
18588 # Old archive suffix (normally "a").
18589 libext="$libext"
18590
18591 # Shared library suffix (normally ".so").
18592 shrext_cmds='$shrext_cmds'
18593
18594 # Executable file suffix (normally "").
18595 exeext="$exeext"
18596
18597 # Additional compiler flags for building library objects.
18598 pic_flag=$lt_lt_prog_compiler_pic_RC
18599 pic_mode=$pic_mode
18600
18601 # What is the maximum length of a command?
18602 max_cmd_len=$lt_cv_sys_max_cmd_len
18603
18604 # Does compiler simultaneously support -c and -o options?
18605 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18606
18607 # Must we lock files when doing compilation?
18608 need_locks=$lt_need_locks
18609
18610 # Do we need the lib prefix for modules?
18611 need_lib_prefix=$need_lib_prefix
18612
18613 # Do we need a version for libraries?
18614 need_version=$need_version
18615
18616 # Whether dlopen is supported.
18617 dlopen_support=$enable_dlopen
18618
18619 # Whether dlopen of programs is supported.
18620 dlopen_self=$enable_dlopen_self
18621
18622 # Whether dlopen of statically linked programs is supported.
18623 dlopen_self_static=$enable_dlopen_self_static
18624
18625 # Compiler flag to prevent dynamic linking.
18626 link_static_flag=$lt_lt_prog_compiler_static_RC
18627
18628 # Compiler flag to turn off builtin functions.
18629 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18630
18631 # Compiler flag to allow reflexive dlopens.
18632 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18633
18634 # Compiler flag to generate shared objects directly from archives.
18635 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18636
18637 # Compiler flag to generate thread-safe objects.
18638 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18639
18640 # Library versioning type.
18641 version_type=$version_type
18642
18643 # Format of library name prefix.
18644 libname_spec=$lt_libname_spec
18645
18646 # List of archive names.  First name is the real one, the rest are links.
18647 # The last name is the one that the linker finds with -lNAME.
18648 library_names_spec=$lt_library_names_spec
18649
18650 # The coded name of the library, if different from the real name.
18651 soname_spec=$lt_soname_spec
18652
18653 # Commands used to build and install an old-style archive.
18654 RANLIB=$lt_RANLIB
18655 old_archive_cmds=$lt_old_archive_cmds_RC
18656 old_postinstall_cmds=$lt_old_postinstall_cmds
18657 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18658
18659 # Create an old-style archive from a shared archive.
18660 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18661
18662 # Create a temporary old-style archive to link instead of a shared archive.
18663 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18664
18665 # Commands used to build and install a shared archive.
18666 archive_cmds=$lt_archive_cmds_RC
18667 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18668 postinstall_cmds=$lt_postinstall_cmds
18669 postuninstall_cmds=$lt_postuninstall_cmds
18670
18671 # Commands used to build a loadable module (assumed same as above if empty)
18672 module_cmds=$lt_module_cmds_RC
18673 module_expsym_cmds=$lt_module_expsym_cmds_RC
18674
18675 # Commands to strip libraries.
18676 old_striplib=$lt_old_striplib
18677 striplib=$lt_striplib
18678
18679 # Dependencies to place before the objects being linked to create a
18680 # shared library.
18681 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18682
18683 # Dependencies to place after the objects being linked to create a
18684 # shared library.
18685 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18686
18687 # Dependencies to place before the objects being linked to create a
18688 # shared library.
18689 predeps=$lt_predeps_RC
18690
18691 # Dependencies to place after the objects being linked to create a
18692 # shared library.
18693 postdeps=$lt_postdeps_RC
18694
18695 # The library search path used internally by the compiler when linking
18696 # a shared library.
18697 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18698
18699 # Method to check whether dependent libraries are shared objects.
18700 deplibs_check_method=$lt_deplibs_check_method
18701
18702 # Command to use when deplibs_check_method == file_magic.
18703 file_magic_cmd=$lt_file_magic_cmd
18704
18705 # Flag that allows shared libraries with undefined symbols to be built.
18706 allow_undefined_flag=$lt_allow_undefined_flag_RC
18707
18708 # Flag that forces no undefined symbols.
18709 no_undefined_flag=$lt_no_undefined_flag_RC
18710
18711 # Commands used to finish a libtool library installation in a directory.
18712 finish_cmds=$lt_finish_cmds
18713
18714 # Same as above, but a single script fragment to be evaled but not shown.
18715 finish_eval=$lt_finish_eval
18716
18717 # Take the output of nm and produce a listing of raw symbols and C names.
18718 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18719
18720 # Transform the output of nm in a proper C declaration
18721 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18722
18723 # Transform the output of nm in a C name address pair
18724 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18725
18726 # This is the shared library runtime path variable.
18727 runpath_var=$runpath_var
18728
18729 # This is the shared library path variable.
18730 shlibpath_var=$shlibpath_var
18731
18732 # Is shlibpath searched before the hard-coded library search path?
18733 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18734
18735 # How to hardcode a shared library path into an executable.
18736 hardcode_action=$hardcode_action_RC
18737
18738 # Whether we should hardcode library paths into libraries.
18739 hardcode_into_libs=$hardcode_into_libs
18740
18741 # Flag to hardcode \$libdir into a binary during linking.
18742 # This must work even if \$libdir does not exist.
18743 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18744
18745 # If ld is used when linking, flag to hardcode \$libdir into
18746 # a binary during linking. This must work even if \$libdir does
18747 # not exist.
18748 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18749
18750 # Whether we need a single -rpath flag with a separated argument.
18751 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18752
18753 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18754 # resulting binary.
18755 hardcode_direct=$hardcode_direct_RC
18756
18757 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18758 # resulting binary.
18759 hardcode_minus_L=$hardcode_minus_L_RC
18760
18761 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18762 # the resulting binary.
18763 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18764
18765 # Set to yes if building a shared library automatically hardcodes DIR into the library
18766 # and all subsequent libraries and executables linked against it.
18767 hardcode_automatic=$hardcode_automatic_RC
18768
18769 # Variables whose values should be saved in libtool wrapper scripts and
18770 # restored at relink time.
18771 variables_saved_for_relink="$variables_saved_for_relink"
18772
18773 # Whether libtool must link a program against all its dependency libraries.
18774 link_all_deplibs=$link_all_deplibs_RC
18775
18776 # Compile-time system search path for libraries
18777 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18778
18779 # Run-time system search path for libraries
18780 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18781
18782 # Fix the shell variable \$srcfile for the compiler.
18783 fix_srcfile_path="$fix_srcfile_path_RC"
18784
18785 # Set to yes if exported symbols are required.
18786 always_export_symbols=$always_export_symbols_RC
18787
18788 # The commands to list exported symbols.
18789 export_symbols_cmds=$lt_export_symbols_cmds_RC
18790
18791 # The commands to extract the exported symbol list from a shared archive.
18792 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18793
18794 # Symbols that should not be listed in the preloaded symbols.
18795 exclude_expsyms=$lt_exclude_expsyms_RC
18796
18797 # Symbols that must always be exported.
18798 include_expsyms=$lt_include_expsyms_RC
18799
18800 # ### END LIBTOOL TAG CONFIG: $tagname
18801
18802 __EOF__
18803
18804
18805 else
18806   # If there is no Makefile yet, we rely on a make rule to execute
18807   # `config.status --recheck' to rerun these tests and create the
18808   # libtool script then.
18809   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18810   if test -f "$ltmain_in"; then
18811     test -f Makefile && make "$ltmain"
18812   fi
18813 fi
18814
18815
18816 ac_ext=c
18817 ac_cpp='$CPP $CPPFLAGS'
18818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18821
18822 CC="$lt_save_CC"
18823
18824         ;;
18825
18826       *)
18827         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18828 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18829    { (exit 1); exit 1; }; }
18830         ;;
18831       esac
18832
18833       # Append the new tag name to the list of available tags.
18834       if test -n "$tagname" ; then
18835       available_tags="$available_tags $tagname"
18836     fi
18837     fi
18838   done
18839   IFS="$lt_save_ifs"
18840
18841   # Now substitute the updated list of available tags.
18842   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18843     mv "${ofile}T" "$ofile"
18844     chmod +x "$ofile"
18845   else
18846     rm -f "${ofile}T"
18847     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18848 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18849    { (exit 1); exit 1; }; }
18850   fi
18851 fi
18852
18853
18854
18855 # This can be used to rebuild libtool when needed
18856 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18857
18858 # Always use our own libtool.
18859 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18860
18861 # Prevent multiple expansion
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883 echo "$as_me:$LINENO: checking for X" >&5
18884 echo $ECHO_N "checking for X... $ECHO_C" >&6
18885
18886
18887 # Check whether --with-x or --without-x was given.
18888 if test "${with_x+set}" = set; then
18889   withval="$with_x"
18890
18891 fi;
18892 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18893 if test "x$with_x" = xno; then
18894   # The user explicitly disabled X.
18895   have_x=disabled
18896 else
18897   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
18898     # Both variables are already set.
18899     have_x=yes
18900   else
18901     if test "${ac_cv_have_x+set}" = set; then
18902   echo $ECHO_N "(cached) $ECHO_C" >&6
18903 else
18904   # One or both of the vars are not set, and there is no cached value.
18905 ac_x_includes=no ac_x_libraries=no
18906 rm -fr conftest.dir
18907 if mkdir conftest.dir; then
18908   cd conftest.dir
18909   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
18910   cat >Imakefile <<'_ACEOF'
18911 acfindx:
18912         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
18913 _ACEOF
18914   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
18915     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18916     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
18917     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18918     for ac_extension in a so sl; do
18919       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
18920          test -f $ac_im_libdir/libX11.$ac_extension; then
18921         ac_im_usrlibdir=$ac_im_libdir; break
18922       fi
18923     done
18924     # Screen out bogus values from the imake configuration.  They are
18925     # bogus both because they are the default anyway, and because
18926     # using them would break gcc on systems where it needs fixed includes.
18927     case $ac_im_incroot in
18928         /usr/include) ;;
18929         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18930     esac
18931     case $ac_im_usrlibdir in
18932         /usr/lib | /lib) ;;
18933         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18934     esac
18935   fi
18936   cd ..
18937   rm -fr conftest.dir
18938 fi
18939
18940 # Standard set of common directories for X headers.
18941 # Check X11 before X11Rn because it is often a symlink to the current release.
18942 ac_x_header_dirs='
18943 /usr/X11/include
18944 /usr/X11R6/include
18945 /usr/X11R5/include
18946 /usr/X11R4/include
18947
18948 /usr/include/X11
18949 /usr/include/X11R6
18950 /usr/include/X11R5
18951 /usr/include/X11R4
18952
18953 /usr/local/X11/include
18954 /usr/local/X11R6/include
18955 /usr/local/X11R5/include
18956 /usr/local/X11R4/include
18957
18958 /usr/local/include/X11
18959 /usr/local/include/X11R6
18960 /usr/local/include/X11R5
18961 /usr/local/include/X11R4
18962
18963 /usr/X386/include
18964 /usr/x386/include
18965 /usr/XFree86/include/X11
18966
18967 /usr/include
18968 /usr/local/include
18969 /usr/unsupported/include
18970 /usr/athena/include
18971 /usr/local/x11r5/include
18972 /usr/lpp/Xamples/include
18973
18974 /usr/openwin/include
18975 /usr/openwin/share/include'
18976
18977 if test "$ac_x_includes" = no; then
18978   # Guess where to find include files, by looking for Xlib.h.
18979   # First, try using that file with no special directory specified.
18980   cat >conftest.$ac_ext <<_ACEOF
18981 /* confdefs.h.  */
18982 _ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h.  */
18986 #include <X11/Xlib.h>
18987 _ACEOF
18988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18989   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18990   ac_status=$?
18991   grep -v '^ *+' conftest.er1 >conftest.err
18992   rm -f conftest.er1
18993   cat conftest.err >&5
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); } >/dev/null; then
18996   if test -s conftest.err; then
18997     ac_cpp_err=$ac_c_preproc_warn_flag
18998     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18999   else
19000     ac_cpp_err=
19001   fi
19002 else
19003   ac_cpp_err=yes
19004 fi
19005 if test -z "$ac_cpp_err"; then
19006   # We can compile using X headers with no special include directory.
19007 ac_x_includes=
19008 else
19009   echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19011
19012   for ac_dir in $ac_x_header_dirs; do
19013   if test -r "$ac_dir/X11/Xlib.h"; then
19014     ac_x_includes=$ac_dir
19015     break
19016   fi
19017 done
19018 fi
19019 rm -f conftest.err conftest.$ac_ext
19020 fi # $ac_x_includes = no
19021
19022 if test "$ac_x_libraries" = no; then
19023   # Check for the libraries.
19024   # See if we find them without any special options.
19025   # Don't add to $LIBS permanently.
19026   ac_save_LIBS=$LIBS
19027   LIBS="-lX11 $LIBS"
19028   cat >conftest.$ac_ext <<_ACEOF
19029 /* confdefs.h.  */
19030 _ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h.  */
19034 #include <X11/Xlib.h>
19035 int
19036 main ()
19037 {
19038 XrmInitialize ()
19039   ;
19040   return 0;
19041 }
19042 _ACEOF
19043 rm -f conftest.$ac_objext conftest$ac_exeext
19044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19045   (eval $ac_link) 2>conftest.er1
19046   ac_status=$?
19047   grep -v '^ *+' conftest.er1 >conftest.err
19048   rm -f conftest.er1
19049   cat conftest.err >&5
19050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051   (exit $ac_status); } &&
19052          { ac_try='test -z "$ac_c_werror_flag"
19053                          || test ! -s conftest.err'
19054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055   (eval $ac_try) 2>&5
19056   ac_status=$?
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); }; } &&
19059          { ac_try='test -s conftest$ac_exeext'
19060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061   (eval $ac_try) 2>&5
19062   ac_status=$?
19063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064   (exit $ac_status); }; }; then
19065   LIBS=$ac_save_LIBS
19066 # We can link X programs with no special library path.
19067 ac_x_libraries=
19068 else
19069   echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19071
19072 LIBS=$ac_save_LIBS
19073 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19074 do
19075   # Don't even attempt the hair of trying to link an X program!
19076   for ac_extension in a so sl; do
19077     if test -r $ac_dir/libXt.$ac_extension; then
19078       ac_x_libraries=$ac_dir
19079       break 2
19080     fi
19081   done
19082 done
19083 fi
19084 rm -f conftest.err conftest.$ac_objext \
19085       conftest$ac_exeext conftest.$ac_ext
19086 fi # $ac_x_libraries = no
19087
19088 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19089   # Didn't find X anywhere.  Cache the known absence of X.
19090   ac_cv_have_x="have_x=no"
19091 else
19092   # Record where we found X for the cache.
19093   ac_cv_have_x="have_x=yes \
19094                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19095 fi
19096 fi
19097
19098   fi
19099   eval "$ac_cv_have_x"
19100 fi # $with_x != no
19101
19102 if test "$have_x" != yes; then
19103   echo "$as_me:$LINENO: result: $have_x" >&5
19104 echo "${ECHO_T}$have_x" >&6
19105   no_x=yes
19106 else
19107   # If each of the values was on the command line, it overrides each guess.
19108   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19109   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19110   # Update the cache value to reflect the command line values.
19111   ac_cv_have_x="have_x=yes \
19112                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19113   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19114 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19115 fi
19116
19117 if test "$no_x" = yes; then
19118   # Not all programs may use this symbol, but it does not hurt to define it.
19119
19120 cat >>confdefs.h <<\_ACEOF
19121 #define X_DISPLAY_MISSING 1
19122 _ACEOF
19123
19124   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19125 else
19126   if test -n "$x_includes"; then
19127     X_CFLAGS="$X_CFLAGS -I$x_includes"
19128   fi
19129
19130   # It would also be nice to do this for all -L options, not just this one.
19131   if test -n "$x_libraries"; then
19132     X_LIBS="$X_LIBS -L$x_libraries"
19133     # For Solaris; some versions of Sun CC require a space after -R and
19134     # others require no space.  Words are not sufficient . . . .
19135     case `(uname -sr) 2>/dev/null` in
19136     "SunOS 5"*)
19137       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19138 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19139       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19140       cat >conftest.$ac_ext <<_ACEOF
19141 /* confdefs.h.  */
19142 _ACEOF
19143 cat confdefs.h >>conftest.$ac_ext
19144 cat >>conftest.$ac_ext <<_ACEOF
19145 /* end confdefs.h.  */
19146
19147 int
19148 main ()
19149 {
19150
19151   ;
19152   return 0;
19153 }
19154 _ACEOF
19155 rm -f conftest.$ac_objext conftest$ac_exeext
19156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19157   (eval $ac_link) 2>conftest.er1
19158   ac_status=$?
19159   grep -v '^ *+' conftest.er1 >conftest.err
19160   rm -f conftest.er1
19161   cat conftest.err >&5
19162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163   (exit $ac_status); } &&
19164          { ac_try='test -z "$ac_c_werror_flag"
19165                          || test ! -s conftest.err'
19166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167   (eval $ac_try) 2>&5
19168   ac_status=$?
19169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170   (exit $ac_status); }; } &&
19171          { ac_try='test -s conftest$ac_exeext'
19172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19173   (eval $ac_try) 2>&5
19174   ac_status=$?
19175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176   (exit $ac_status); }; }; then
19177   ac_R_nospace=yes
19178 else
19179   echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19181
19182 ac_R_nospace=no
19183 fi
19184 rm -f conftest.err conftest.$ac_objext \
19185       conftest$ac_exeext conftest.$ac_ext
19186       if test $ac_R_nospace = yes; then
19187         echo "$as_me:$LINENO: result: no" >&5
19188 echo "${ECHO_T}no" >&6
19189         X_LIBS="$X_LIBS -R$x_libraries"
19190       else
19191         LIBS="$ac_xsave_LIBS -R $x_libraries"
19192         cat >conftest.$ac_ext <<_ACEOF
19193 /* confdefs.h.  */
19194 _ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h.  */
19198
19199 int
19200 main ()
19201 {
19202
19203   ;
19204   return 0;
19205 }
19206 _ACEOF
19207 rm -f conftest.$ac_objext conftest$ac_exeext
19208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19209   (eval $ac_link) 2>conftest.er1
19210   ac_status=$?
19211   grep -v '^ *+' conftest.er1 >conftest.err
19212   rm -f conftest.er1
19213   cat conftest.err >&5
19214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215   (exit $ac_status); } &&
19216          { ac_try='test -z "$ac_c_werror_flag"
19217                          || test ! -s conftest.err'
19218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219   (eval $ac_try) 2>&5
19220   ac_status=$?
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); }; } &&
19223          { ac_try='test -s conftest$ac_exeext'
19224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225   (eval $ac_try) 2>&5
19226   ac_status=$?
19227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); }; }; then
19229   ac_R_space=yes
19230 else
19231   echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19233
19234 ac_R_space=no
19235 fi
19236 rm -f conftest.err conftest.$ac_objext \
19237       conftest$ac_exeext conftest.$ac_ext
19238         if test $ac_R_space = yes; then
19239           echo "$as_me:$LINENO: result: yes" >&5
19240 echo "${ECHO_T}yes" >&6
19241           X_LIBS="$X_LIBS -R $x_libraries"
19242         else
19243           echo "$as_me:$LINENO: result: neither works" >&5
19244 echo "${ECHO_T}neither works" >&6
19245         fi
19246       fi
19247       LIBS=$ac_xsave_LIBS
19248     esac
19249   fi
19250
19251   # Check for system-dependent libraries X programs must link with.
19252   # Do this before checking for the system-independent R6 libraries
19253   # (-lICE), since we may need -lsocket or whatever for X linking.
19254
19255   if test "$ISC" = yes; then
19256     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19257   else
19258     # Martyn Johnson says this is needed for Ultrix, if the X
19259     # libraries were built with DECnet support.  And Karl Berry says
19260     # the Alpha needs dnet_stub (dnet does not exist).
19261     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19262     cat >conftest.$ac_ext <<_ACEOF
19263 /* confdefs.h.  */
19264 _ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h.  */
19268
19269 /* Override any gcc2 internal prototype to avoid an error.  */
19270 #ifdef __cplusplus
19271 extern "C"
19272 #endif
19273 /* We use char because int might match the return type of a gcc2
19274    builtin and then its argument prototype would still apply.  */
19275 char XOpenDisplay ();
19276 int
19277 main ()
19278 {
19279 XOpenDisplay ();
19280   ;
19281   return 0;
19282 }
19283 _ACEOF
19284 rm -f conftest.$ac_objext conftest$ac_exeext
19285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19286   (eval $ac_link) 2>conftest.er1
19287   ac_status=$?
19288   grep -v '^ *+' conftest.er1 >conftest.err
19289   rm -f conftest.er1
19290   cat conftest.err >&5
19291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292   (exit $ac_status); } &&
19293          { ac_try='test -z "$ac_c_werror_flag"
19294                          || test ! -s conftest.err'
19295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296   (eval $ac_try) 2>&5
19297   ac_status=$?
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); }; } &&
19300          { ac_try='test -s conftest$ac_exeext'
19301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302   (eval $ac_try) 2>&5
19303   ac_status=$?
19304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305   (exit $ac_status); }; }; then
19306   :
19307 else
19308   echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19310
19311 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19312 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19313 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19314   echo $ECHO_N "(cached) $ECHO_C" >&6
19315 else
19316   ac_check_lib_save_LIBS=$LIBS
19317 LIBS="-ldnet  $LIBS"
19318 cat >conftest.$ac_ext <<_ACEOF
19319 /* confdefs.h.  */
19320 _ACEOF
19321 cat confdefs.h >>conftest.$ac_ext
19322 cat >>conftest.$ac_ext <<_ACEOF
19323 /* end confdefs.h.  */
19324
19325 /* Override any gcc2 internal prototype to avoid an error.  */
19326 #ifdef __cplusplus
19327 extern "C"
19328 #endif
19329 /* We use char because int might match the return type of a gcc2
19330    builtin and then its argument prototype would still apply.  */
19331 char dnet_ntoa ();
19332 int
19333 main ()
19334 {
19335 dnet_ntoa ();
19336   ;
19337   return 0;
19338 }
19339 _ACEOF
19340 rm -f conftest.$ac_objext conftest$ac_exeext
19341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19342   (eval $ac_link) 2>conftest.er1
19343   ac_status=$?
19344   grep -v '^ *+' conftest.er1 >conftest.err
19345   rm -f conftest.er1
19346   cat conftest.err >&5
19347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348   (exit $ac_status); } &&
19349          { ac_try='test -z "$ac_c_werror_flag"
19350                          || test ! -s conftest.err'
19351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352   (eval $ac_try) 2>&5
19353   ac_status=$?
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); }; } &&
19356          { ac_try='test -s conftest$ac_exeext'
19357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358   (eval $ac_try) 2>&5
19359   ac_status=$?
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); }; }; then
19362   ac_cv_lib_dnet_dnet_ntoa=yes
19363 else
19364   echo "$as_me: failed program was:" >&5
19365 sed 's/^/| /' conftest.$ac_ext >&5
19366
19367 ac_cv_lib_dnet_dnet_ntoa=no
19368 fi
19369 rm -f conftest.err conftest.$ac_objext \
19370       conftest$ac_exeext conftest.$ac_ext
19371 LIBS=$ac_check_lib_save_LIBS
19372 fi
19373 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19374 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19375 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19376   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19377 fi
19378
19379     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19380       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19381 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19382 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19383   echo $ECHO_N "(cached) $ECHO_C" >&6
19384 else
19385   ac_check_lib_save_LIBS=$LIBS
19386 LIBS="-ldnet_stub  $LIBS"
19387 cat >conftest.$ac_ext <<_ACEOF
19388 /* confdefs.h.  */
19389 _ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h.  */
19393
19394 /* Override any gcc2 internal prototype to avoid an error.  */
19395 #ifdef __cplusplus
19396 extern "C"
19397 #endif
19398 /* We use char because int might match the return type of a gcc2
19399    builtin and then its argument prototype would still apply.  */
19400 char dnet_ntoa ();
19401 int
19402 main ()
19403 {
19404 dnet_ntoa ();
19405   ;
19406   return 0;
19407 }
19408 _ACEOF
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19411   (eval $ac_link) 2>conftest.er1
19412   ac_status=$?
19413   grep -v '^ *+' conftest.er1 >conftest.err
19414   rm -f conftest.er1
19415   cat conftest.err >&5
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); } &&
19418          { ac_try='test -z "$ac_c_werror_flag"
19419                          || test ! -s conftest.err'
19420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421   (eval $ac_try) 2>&5
19422   ac_status=$?
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); }; } &&
19425          { ac_try='test -s conftest$ac_exeext'
19426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427   (eval $ac_try) 2>&5
19428   ac_status=$?
19429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430   (exit $ac_status); }; }; then
19431   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19432 else
19433   echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19435
19436 ac_cv_lib_dnet_stub_dnet_ntoa=no
19437 fi
19438 rm -f conftest.err conftest.$ac_objext \
19439       conftest$ac_exeext conftest.$ac_ext
19440 LIBS=$ac_check_lib_save_LIBS
19441 fi
19442 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19443 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19444 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19445   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19446 fi
19447
19448     fi
19449 fi
19450 rm -f conftest.err conftest.$ac_objext \
19451       conftest$ac_exeext conftest.$ac_ext
19452     LIBS="$ac_xsave_LIBS"
19453
19454     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19455     # to get the SysV transport functions.
19456     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19457     # needs -lnsl.
19458     # The nsl library prevents programs from opening the X display
19459     # on Irix 5.2, according to T.E. Dickey.
19460     # The functions gethostbyname, getservbyname, and inet_addr are
19461     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19462     echo "$as_me:$LINENO: checking for gethostbyname" >&5
19463 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19464 if test "${ac_cv_func_gethostbyname+set}" = set; then
19465   echo $ECHO_N "(cached) $ECHO_C" >&6
19466 else
19467   cat >conftest.$ac_ext <<_ACEOF
19468 /* confdefs.h.  */
19469 _ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h.  */
19473 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19474    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19475 #define gethostbyname innocuous_gethostbyname
19476
19477 /* System header to define __stub macros and hopefully few prototypes,
19478     which can conflict with char gethostbyname (); below.
19479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19480     <limits.h> exists even on freestanding compilers.  */
19481
19482 #ifdef __STDC__
19483 # include <limits.h>
19484 #else
19485 # include <assert.h>
19486 #endif
19487
19488 #undef gethostbyname
19489
19490 /* Override any gcc2 internal prototype to avoid an error.  */
19491 #ifdef __cplusplus
19492 extern "C"
19493 {
19494 #endif
19495 /* We use char because int might match the return type of a gcc2
19496    builtin and then its argument prototype would still apply.  */
19497 char gethostbyname ();
19498 /* The GNU C library defines this for functions which it implements
19499     to always fail with ENOSYS.  Some functions are actually named
19500     something starting with __ and the normal name is an alias.  */
19501 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19502 choke me
19503 #else
19504 char (*f) () = gethostbyname;
19505 #endif
19506 #ifdef __cplusplus
19507 }
19508 #endif
19509
19510 int
19511 main ()
19512 {
19513 return f != gethostbyname;
19514   ;
19515   return 0;
19516 }
19517 _ACEOF
19518 rm -f conftest.$ac_objext conftest$ac_exeext
19519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19520   (eval $ac_link) 2>conftest.er1
19521   ac_status=$?
19522   grep -v '^ *+' conftest.er1 >conftest.err
19523   rm -f conftest.er1
19524   cat conftest.err >&5
19525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526   (exit $ac_status); } &&
19527          { ac_try='test -z "$ac_c_werror_flag"
19528                          || test ! -s conftest.err'
19529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530   (eval $ac_try) 2>&5
19531   ac_status=$?
19532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533   (exit $ac_status); }; } &&
19534          { ac_try='test -s conftest$ac_exeext'
19535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536   (eval $ac_try) 2>&5
19537   ac_status=$?
19538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539   (exit $ac_status); }; }; then
19540   ac_cv_func_gethostbyname=yes
19541 else
19542   echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19544
19545 ac_cv_func_gethostbyname=no
19546 fi
19547 rm -f conftest.err conftest.$ac_objext \
19548       conftest$ac_exeext conftest.$ac_ext
19549 fi
19550 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19551 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19552
19553     if test $ac_cv_func_gethostbyname = no; then
19554       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19555 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19556 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19557   echo $ECHO_N "(cached) $ECHO_C" >&6
19558 else
19559   ac_check_lib_save_LIBS=$LIBS
19560 LIBS="-lnsl  $LIBS"
19561 cat >conftest.$ac_ext <<_ACEOF
19562 /* confdefs.h.  */
19563 _ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h.  */
19567
19568 /* Override any gcc2 internal prototype to avoid an error.  */
19569 #ifdef __cplusplus
19570 extern "C"
19571 #endif
19572 /* We use char because int might match the return type of a gcc2
19573    builtin and then its argument prototype would still apply.  */
19574 char gethostbyname ();
19575 int
19576 main ()
19577 {
19578 gethostbyname ();
19579   ;
19580   return 0;
19581 }
19582 _ACEOF
19583 rm -f conftest.$ac_objext conftest$ac_exeext
19584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19585   (eval $ac_link) 2>conftest.er1
19586   ac_status=$?
19587   grep -v '^ *+' conftest.er1 >conftest.err
19588   rm -f conftest.er1
19589   cat conftest.err >&5
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); } &&
19592          { ac_try='test -z "$ac_c_werror_flag"
19593                          || test ! -s conftest.err'
19594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19595   (eval $ac_try) 2>&5
19596   ac_status=$?
19597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598   (exit $ac_status); }; } &&
19599          { ac_try='test -s conftest$ac_exeext'
19600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19601   (eval $ac_try) 2>&5
19602   ac_status=$?
19603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604   (exit $ac_status); }; }; then
19605   ac_cv_lib_nsl_gethostbyname=yes
19606 else
19607   echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19609
19610 ac_cv_lib_nsl_gethostbyname=no
19611 fi
19612 rm -f conftest.err conftest.$ac_objext \
19613       conftest$ac_exeext conftest.$ac_ext
19614 LIBS=$ac_check_lib_save_LIBS
19615 fi
19616 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19617 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19618 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19619   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19620 fi
19621
19622       if test $ac_cv_lib_nsl_gethostbyname = no; then
19623         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19624 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19625 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19626   echo $ECHO_N "(cached) $ECHO_C" >&6
19627 else
19628   ac_check_lib_save_LIBS=$LIBS
19629 LIBS="-lbsd  $LIBS"
19630 cat >conftest.$ac_ext <<_ACEOF
19631 /* confdefs.h.  */
19632 _ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h.  */
19636
19637 /* Override any gcc2 internal prototype to avoid an error.  */
19638 #ifdef __cplusplus
19639 extern "C"
19640 #endif
19641 /* We use char because int might match the return type of a gcc2
19642    builtin and then its argument prototype would still apply.  */
19643 char gethostbyname ();
19644 int
19645 main ()
19646 {
19647 gethostbyname ();
19648   ;
19649   return 0;
19650 }
19651 _ACEOF
19652 rm -f conftest.$ac_objext conftest$ac_exeext
19653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19654   (eval $ac_link) 2>conftest.er1
19655   ac_status=$?
19656   grep -v '^ *+' conftest.er1 >conftest.err
19657   rm -f conftest.er1
19658   cat conftest.err >&5
19659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); } &&
19661          { ac_try='test -z "$ac_c_werror_flag"
19662                          || test ! -s conftest.err'
19663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664   (eval $ac_try) 2>&5
19665   ac_status=$?
19666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667   (exit $ac_status); }; } &&
19668          { ac_try='test -s conftest$ac_exeext'
19669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670   (eval $ac_try) 2>&5
19671   ac_status=$?
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); }; }; then
19674   ac_cv_lib_bsd_gethostbyname=yes
19675 else
19676   echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19678
19679 ac_cv_lib_bsd_gethostbyname=no
19680 fi
19681 rm -f conftest.err conftest.$ac_objext \
19682       conftest$ac_exeext conftest.$ac_ext
19683 LIBS=$ac_check_lib_save_LIBS
19684 fi
19685 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19686 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19687 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19688   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19689 fi
19690
19691       fi
19692     fi
19693
19694     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19695     # socket/setsockopt and other routines are undefined under SCO ODT
19696     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19697     # on later versions), says Simon Leinen: it contains gethostby*
19698     # variants that don't use the name server (or something).  -lsocket
19699     # must be given before -lnsl if both are needed.  We assume that
19700     # if connect needs -lnsl, so does gethostbyname.
19701     echo "$as_me:$LINENO: checking for connect" >&5
19702 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19703 if test "${ac_cv_func_connect+set}" = set; then
19704   echo $ECHO_N "(cached) $ECHO_C" >&6
19705 else
19706   cat >conftest.$ac_ext <<_ACEOF
19707 /* confdefs.h.  */
19708 _ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h.  */
19712 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19713    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19714 #define connect innocuous_connect
19715
19716 /* System header to define __stub macros and hopefully few prototypes,
19717     which can conflict with char connect (); below.
19718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19719     <limits.h> exists even on freestanding compilers.  */
19720
19721 #ifdef __STDC__
19722 # include <limits.h>
19723 #else
19724 # include <assert.h>
19725 #endif
19726
19727 #undef connect
19728
19729 /* Override any gcc2 internal prototype to avoid an error.  */
19730 #ifdef __cplusplus
19731 extern "C"
19732 {
19733 #endif
19734 /* We use char because int might match the return type of a gcc2
19735    builtin and then its argument prototype would still apply.  */
19736 char connect ();
19737 /* The GNU C library defines this for functions which it implements
19738     to always fail with ENOSYS.  Some functions are actually named
19739     something starting with __ and the normal name is an alias.  */
19740 #if defined (__stub_connect) || defined (__stub___connect)
19741 choke me
19742 #else
19743 char (*f) () = connect;
19744 #endif
19745 #ifdef __cplusplus
19746 }
19747 #endif
19748
19749 int
19750 main ()
19751 {
19752 return f != connect;
19753   ;
19754   return 0;
19755 }
19756 _ACEOF
19757 rm -f conftest.$ac_objext conftest$ac_exeext
19758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19759   (eval $ac_link) 2>conftest.er1
19760   ac_status=$?
19761   grep -v '^ *+' conftest.er1 >conftest.err
19762   rm -f conftest.er1
19763   cat conftest.err >&5
19764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765   (exit $ac_status); } &&
19766          { ac_try='test -z "$ac_c_werror_flag"
19767                          || test ! -s conftest.err'
19768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19769   (eval $ac_try) 2>&5
19770   ac_status=$?
19771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772   (exit $ac_status); }; } &&
19773          { ac_try='test -s conftest$ac_exeext'
19774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775   (eval $ac_try) 2>&5
19776   ac_status=$?
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); }; }; then
19779   ac_cv_func_connect=yes
19780 else
19781   echo "$as_me: failed program was:" >&5
19782 sed 's/^/| /' conftest.$ac_ext >&5
19783
19784 ac_cv_func_connect=no
19785 fi
19786 rm -f conftest.err conftest.$ac_objext \
19787       conftest$ac_exeext conftest.$ac_ext
19788 fi
19789 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19790 echo "${ECHO_T}$ac_cv_func_connect" >&6
19791
19792     if test $ac_cv_func_connect = no; then
19793       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19794 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
19795 if test "${ac_cv_lib_socket_connect+set}" = set; then
19796   echo $ECHO_N "(cached) $ECHO_C" >&6
19797 else
19798   ac_check_lib_save_LIBS=$LIBS
19799 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19800 cat >conftest.$ac_ext <<_ACEOF
19801 /* confdefs.h.  */
19802 _ACEOF
19803 cat confdefs.h >>conftest.$ac_ext
19804 cat >>conftest.$ac_ext <<_ACEOF
19805 /* end confdefs.h.  */
19806
19807 /* Override any gcc2 internal prototype to avoid an error.  */
19808 #ifdef __cplusplus
19809 extern "C"
19810 #endif
19811 /* We use char because int might match the return type of a gcc2
19812    builtin and then its argument prototype would still apply.  */
19813 char connect ();
19814 int
19815 main ()
19816 {
19817 connect ();
19818   ;
19819   return 0;
19820 }
19821 _ACEOF
19822 rm -f conftest.$ac_objext conftest$ac_exeext
19823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19824   (eval $ac_link) 2>conftest.er1
19825   ac_status=$?
19826   grep -v '^ *+' conftest.er1 >conftest.err
19827   rm -f conftest.er1
19828   cat conftest.err >&5
19829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830   (exit $ac_status); } &&
19831          { ac_try='test -z "$ac_c_werror_flag"
19832                          || test ! -s conftest.err'
19833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834   (eval $ac_try) 2>&5
19835   ac_status=$?
19836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837   (exit $ac_status); }; } &&
19838          { ac_try='test -s conftest$ac_exeext'
19839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840   (eval $ac_try) 2>&5
19841   ac_status=$?
19842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843   (exit $ac_status); }; }; then
19844   ac_cv_lib_socket_connect=yes
19845 else
19846   echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19848
19849 ac_cv_lib_socket_connect=no
19850 fi
19851 rm -f conftest.err conftest.$ac_objext \
19852       conftest$ac_exeext conftest.$ac_ext
19853 LIBS=$ac_check_lib_save_LIBS
19854 fi
19855 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19856 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
19857 if test $ac_cv_lib_socket_connect = yes; then
19858   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19859 fi
19860
19861     fi
19862
19863     # Guillermo Gomez says -lposix is necessary on A/UX.
19864     echo "$as_me:$LINENO: checking for remove" >&5
19865 echo $ECHO_N "checking for remove... $ECHO_C" >&6
19866 if test "${ac_cv_func_remove+set}" = set; then
19867   echo $ECHO_N "(cached) $ECHO_C" >&6
19868 else
19869   cat >conftest.$ac_ext <<_ACEOF
19870 /* confdefs.h.  */
19871 _ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h.  */
19875 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19877 #define remove innocuous_remove
19878
19879 /* System header to define __stub macros and hopefully few prototypes,
19880     which can conflict with char remove (); below.
19881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19882     <limits.h> exists even on freestanding compilers.  */
19883
19884 #ifdef __STDC__
19885 # include <limits.h>
19886 #else
19887 # include <assert.h>
19888 #endif
19889
19890 #undef remove
19891
19892 /* Override any gcc2 internal prototype to avoid an error.  */
19893 #ifdef __cplusplus
19894 extern "C"
19895 {
19896 #endif
19897 /* We use char because int might match the return type of a gcc2
19898    builtin and then its argument prototype would still apply.  */
19899 char remove ();
19900 /* The GNU C library defines this for functions which it implements
19901     to always fail with ENOSYS.  Some functions are actually named
19902     something starting with __ and the normal name is an alias.  */
19903 #if defined (__stub_remove) || defined (__stub___remove)
19904 choke me
19905 #else
19906 char (*f) () = remove;
19907 #endif
19908 #ifdef __cplusplus
19909 }
19910 #endif
19911
19912 int
19913 main ()
19914 {
19915 return f != remove;
19916   ;
19917   return 0;
19918 }
19919 _ACEOF
19920 rm -f conftest.$ac_objext conftest$ac_exeext
19921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19922   (eval $ac_link) 2>conftest.er1
19923   ac_status=$?
19924   grep -v '^ *+' conftest.er1 >conftest.err
19925   rm -f conftest.er1
19926   cat conftest.err >&5
19927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928   (exit $ac_status); } &&
19929          { ac_try='test -z "$ac_c_werror_flag"
19930                          || test ! -s conftest.err'
19931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932   (eval $ac_try) 2>&5
19933   ac_status=$?
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); }; } &&
19936          { ac_try='test -s conftest$ac_exeext'
19937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19938   (eval $ac_try) 2>&5
19939   ac_status=$?
19940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941   (exit $ac_status); }; }; then
19942   ac_cv_func_remove=yes
19943 else
19944   echo "$as_me: failed program was:" >&5
19945 sed 's/^/| /' conftest.$ac_ext >&5
19946
19947 ac_cv_func_remove=no
19948 fi
19949 rm -f conftest.err conftest.$ac_objext \
19950       conftest$ac_exeext conftest.$ac_ext
19951 fi
19952 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19953 echo "${ECHO_T}$ac_cv_func_remove" >&6
19954
19955     if test $ac_cv_func_remove = no; then
19956       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19957 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
19958 if test "${ac_cv_lib_posix_remove+set}" = set; then
19959   echo $ECHO_N "(cached) $ECHO_C" >&6
19960 else
19961   ac_check_lib_save_LIBS=$LIBS
19962 LIBS="-lposix  $LIBS"
19963 cat >conftest.$ac_ext <<_ACEOF
19964 /* confdefs.h.  */
19965 _ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h.  */
19969
19970 /* Override any gcc2 internal prototype to avoid an error.  */
19971 #ifdef __cplusplus
19972 extern "C"
19973 #endif
19974 /* We use char because int might match the return type of a gcc2
19975    builtin and then its argument prototype would still apply.  */
19976 char remove ();
19977 int
19978 main ()
19979 {
19980 remove ();
19981   ;
19982   return 0;
19983 }
19984 _ACEOF
19985 rm -f conftest.$ac_objext conftest$ac_exeext
19986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19987   (eval $ac_link) 2>conftest.er1
19988   ac_status=$?
19989   grep -v '^ *+' conftest.er1 >conftest.err
19990   rm -f conftest.er1
19991   cat conftest.err >&5
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); } &&
19994          { ac_try='test -z "$ac_c_werror_flag"
19995                          || test ! -s conftest.err'
19996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997   (eval $ac_try) 2>&5
19998   ac_status=$?
19999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000   (exit $ac_status); }; } &&
20001          { ac_try='test -s conftest$ac_exeext'
20002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003   (eval $ac_try) 2>&5
20004   ac_status=$?
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); }; }; then
20007   ac_cv_lib_posix_remove=yes
20008 else
20009   echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20011
20012 ac_cv_lib_posix_remove=no
20013 fi
20014 rm -f conftest.err conftest.$ac_objext \
20015       conftest$ac_exeext conftest.$ac_ext
20016 LIBS=$ac_check_lib_save_LIBS
20017 fi
20018 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20019 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20020 if test $ac_cv_lib_posix_remove = yes; then
20021   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20022 fi
20023
20024     fi
20025
20026     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20027     echo "$as_me:$LINENO: checking for shmat" >&5
20028 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20029 if test "${ac_cv_func_shmat+set}" = set; then
20030   echo $ECHO_N "(cached) $ECHO_C" >&6
20031 else
20032   cat >conftest.$ac_ext <<_ACEOF
20033 /* confdefs.h.  */
20034 _ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h.  */
20038 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20040 #define shmat innocuous_shmat
20041
20042 /* System header to define __stub macros and hopefully few prototypes,
20043     which can conflict with char shmat (); below.
20044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20045     <limits.h> exists even on freestanding compilers.  */
20046
20047 #ifdef __STDC__
20048 # include <limits.h>
20049 #else
20050 # include <assert.h>
20051 #endif
20052
20053 #undef shmat
20054
20055 /* Override any gcc2 internal prototype to avoid an error.  */
20056 #ifdef __cplusplus
20057 extern "C"
20058 {
20059 #endif
20060 /* We use char because int might match the return type of a gcc2
20061    builtin and then its argument prototype would still apply.  */
20062 char shmat ();
20063 /* The GNU C library defines this for functions which it implements
20064     to always fail with ENOSYS.  Some functions are actually named
20065     something starting with __ and the normal name is an alias.  */
20066 #if defined (__stub_shmat) || defined (__stub___shmat)
20067 choke me
20068 #else
20069 char (*f) () = shmat;
20070 #endif
20071 #ifdef __cplusplus
20072 }
20073 #endif
20074
20075 int
20076 main ()
20077 {
20078 return f != shmat;
20079   ;
20080   return 0;
20081 }
20082 _ACEOF
20083 rm -f conftest.$ac_objext conftest$ac_exeext
20084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20085   (eval $ac_link) 2>conftest.er1
20086   ac_status=$?
20087   grep -v '^ *+' conftest.er1 >conftest.err
20088   rm -f conftest.er1
20089   cat conftest.err >&5
20090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091   (exit $ac_status); } &&
20092          { ac_try='test -z "$ac_c_werror_flag"
20093                          || test ! -s conftest.err'
20094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095   (eval $ac_try) 2>&5
20096   ac_status=$?
20097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098   (exit $ac_status); }; } &&
20099          { ac_try='test -s conftest$ac_exeext'
20100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101   (eval $ac_try) 2>&5
20102   ac_status=$?
20103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104   (exit $ac_status); }; }; then
20105   ac_cv_func_shmat=yes
20106 else
20107   echo "$as_me: failed program was:" >&5
20108 sed 's/^/| /' conftest.$ac_ext >&5
20109
20110 ac_cv_func_shmat=no
20111 fi
20112 rm -f conftest.err conftest.$ac_objext \
20113       conftest$ac_exeext conftest.$ac_ext
20114 fi
20115 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20116 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20117
20118     if test $ac_cv_func_shmat = no; then
20119       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20120 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20121 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20122   echo $ECHO_N "(cached) $ECHO_C" >&6
20123 else
20124   ac_check_lib_save_LIBS=$LIBS
20125 LIBS="-lipc  $LIBS"
20126 cat >conftest.$ac_ext <<_ACEOF
20127 /* confdefs.h.  */
20128 _ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h.  */
20132
20133 /* Override any gcc2 internal prototype to avoid an error.  */
20134 #ifdef __cplusplus
20135 extern "C"
20136 #endif
20137 /* We use char because int might match the return type of a gcc2
20138    builtin and then its argument prototype would still apply.  */
20139 char shmat ();
20140 int
20141 main ()
20142 {
20143 shmat ();
20144   ;
20145   return 0;
20146 }
20147 _ACEOF
20148 rm -f conftest.$ac_objext conftest$ac_exeext
20149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20150   (eval $ac_link) 2>conftest.er1
20151   ac_status=$?
20152   grep -v '^ *+' conftest.er1 >conftest.err
20153   rm -f conftest.er1
20154   cat conftest.err >&5
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); } &&
20157          { ac_try='test -z "$ac_c_werror_flag"
20158                          || test ! -s conftest.err'
20159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160   (eval $ac_try) 2>&5
20161   ac_status=$?
20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); }; } &&
20164          { ac_try='test -s conftest$ac_exeext'
20165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166   (eval $ac_try) 2>&5
20167   ac_status=$?
20168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169   (exit $ac_status); }; }; then
20170   ac_cv_lib_ipc_shmat=yes
20171 else
20172   echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20174
20175 ac_cv_lib_ipc_shmat=no
20176 fi
20177 rm -f conftest.err conftest.$ac_objext \
20178       conftest$ac_exeext conftest.$ac_ext
20179 LIBS=$ac_check_lib_save_LIBS
20180 fi
20181 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20182 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20183 if test $ac_cv_lib_ipc_shmat = yes; then
20184   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20185 fi
20186
20187     fi
20188   fi
20189
20190   # Check for libraries that X11R6 Xt/Xaw programs need.
20191   ac_save_LDFLAGS=$LDFLAGS
20192   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20193   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20194   # check for ICE first), but we must link in the order -lSM -lICE or
20195   # we get undefined symbols.  So assume we have SM if we have ICE.
20196   # These have to be linked with before -lX11, unlike the other
20197   # libraries we check for below, so use a different variable.
20198   # John Interrante, Karl Berry
20199   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20200 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20201 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20202   echo $ECHO_N "(cached) $ECHO_C" >&6
20203 else
20204   ac_check_lib_save_LIBS=$LIBS
20205 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20206 cat >conftest.$ac_ext <<_ACEOF
20207 /* confdefs.h.  */
20208 _ACEOF
20209 cat confdefs.h >>conftest.$ac_ext
20210 cat >>conftest.$ac_ext <<_ACEOF
20211 /* end confdefs.h.  */
20212
20213 /* Override any gcc2 internal prototype to avoid an error.  */
20214 #ifdef __cplusplus
20215 extern "C"
20216 #endif
20217 /* We use char because int might match the return type of a gcc2
20218    builtin and then its argument prototype would still apply.  */
20219 char IceConnectionNumber ();
20220 int
20221 main ()
20222 {
20223 IceConnectionNumber ();
20224   ;
20225   return 0;
20226 }
20227 _ACEOF
20228 rm -f conftest.$ac_objext conftest$ac_exeext
20229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20230   (eval $ac_link) 2>conftest.er1
20231   ac_status=$?
20232   grep -v '^ *+' conftest.er1 >conftest.err
20233   rm -f conftest.er1
20234   cat conftest.err >&5
20235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236   (exit $ac_status); } &&
20237          { ac_try='test -z "$ac_c_werror_flag"
20238                          || test ! -s conftest.err'
20239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240   (eval $ac_try) 2>&5
20241   ac_status=$?
20242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243   (exit $ac_status); }; } &&
20244          { ac_try='test -s conftest$ac_exeext'
20245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246   (eval $ac_try) 2>&5
20247   ac_status=$?
20248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249   (exit $ac_status); }; }; then
20250   ac_cv_lib_ICE_IceConnectionNumber=yes
20251 else
20252   echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20254
20255 ac_cv_lib_ICE_IceConnectionNumber=no
20256 fi
20257 rm -f conftest.err conftest.$ac_objext \
20258       conftest$ac_exeext conftest.$ac_ext
20259 LIBS=$ac_check_lib_save_LIBS
20260 fi
20261 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20262 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20263 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20264   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20265 fi
20266
20267   LDFLAGS=$ac_save_LDFLAGS
20268
20269 fi
20270
20271
20272 echo "$as_me:$LINENO: checking whether variable-length arrays are supported" >&5
20273 echo $ECHO_N "checking whether variable-length arrays are supported... $ECHO_C" >&6
20274 cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h.  */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h.  */
20280
20281 int
20282 main ()
20283 {
20284
20285         int n; int foo[n];
20286
20287   ;
20288   return 0;
20289 }
20290 _ACEOF
20291 rm -f conftest.$ac_objext
20292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20293   (eval $ac_compile) 2>conftest.er1
20294   ac_status=$?
20295   grep -v '^ *+' conftest.er1 >conftest.err
20296   rm -f conftest.er1
20297   cat conftest.err >&5
20298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299   (exit $ac_status); } &&
20300          { ac_try='test -z "$ac_c_werror_flag"
20301                          || test ! -s conftest.err'
20302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303   (eval $ac_try) 2>&5
20304   ac_status=$?
20305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306   (exit $ac_status); }; } &&
20307          { ac_try='test -s conftest.$ac_objext'
20308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309   (eval $ac_try) 2>&5
20310   ac_status=$?
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); }; }; then
20313   echo "$as_me:$LINENO: result: yes" >&5
20314 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
20315 #define HAVE_VLA 1
20316 _ACEOF
20317
20318 else
20319   echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20321
20322 echo "$as_me:$LINENO: result: no" >&5
20323 echo "${ECHO_T}no" >&6
20324 fi
20325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20326
20327
20328 ############################################################
20329 # Check for the IJG JPEG library.
20330 ############################################################
20331
20332 # Allow the user to explicitly specify whether the JPEG library is present.
20333 # Check whether --enable-libjpeg or --disable-libjpeg was given.
20334 if test "${enable_libjpeg+set}" = set; then
20335   enableval="$enable_libjpeg"
20336
20337 case "${enableval}" in
20338 yes)
20339         ENABLE_LIBJPEG=yes;;
20340 no)
20341         ENABLE_LIBJPEG=no;;
20342 *)
20343         { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-libjpeg" >&5
20344 echo "$as_me: error: bad value ${enableval} for --disable-libjpeg" >&2;}
20345    { (exit 1); exit 1; }; }
20346         ;;
20347 esac
20348
20349 else
20350   ENABLE_LIBJPEG=yes
20351 fi;
20352
20353 HAVE_LIBJPEG=no
20354 if test $ENABLE_LIBJPEG = yes; then
20355         # Check for the JPEG library.
20356         echo "$as_me:$LINENO: checking for jpeg_destroy in -ljpeg" >&5
20357 echo $ECHO_N "checking for jpeg_destroy in -ljpeg... $ECHO_C" >&6
20358 if test "${ac_cv_lib_jpeg_jpeg_destroy+set}" = set; then
20359   echo $ECHO_N "(cached) $ECHO_C" >&6
20360 else
20361   ac_check_lib_save_LIBS=$LIBS
20362 LIBS="-ljpeg  $LIBS"
20363 cat >conftest.$ac_ext <<_ACEOF
20364 /* confdefs.h.  */
20365 _ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h.  */
20369
20370 /* Override any gcc2 internal prototype to avoid an error.  */
20371 #ifdef __cplusplus
20372 extern "C"
20373 #endif
20374 /* We use char because int might match the return type of a gcc2
20375    builtin and then its argument prototype would still apply.  */
20376 char jpeg_destroy ();
20377 int
20378 main ()
20379 {
20380 jpeg_destroy ();
20381   ;
20382   return 0;
20383 }
20384 _ACEOF
20385 rm -f conftest.$ac_objext conftest$ac_exeext
20386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20387   (eval $ac_link) 2>conftest.er1
20388   ac_status=$?
20389   grep -v '^ *+' conftest.er1 >conftest.err
20390   rm -f conftest.er1
20391   cat conftest.err >&5
20392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393   (exit $ac_status); } &&
20394          { ac_try='test -z "$ac_c_werror_flag"
20395                          || test ! -s conftest.err'
20396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397   (eval $ac_try) 2>&5
20398   ac_status=$?
20399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400   (exit $ac_status); }; } &&
20401          { ac_try='test -s conftest$ac_exeext'
20402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403   (eval $ac_try) 2>&5
20404   ac_status=$?
20405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406   (exit $ac_status); }; }; then
20407   ac_cv_lib_jpeg_jpeg_destroy=yes
20408 else
20409   echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20411
20412 ac_cv_lib_jpeg_jpeg_destroy=no
20413 fi
20414 rm -f conftest.err conftest.$ac_objext \
20415       conftest$ac_exeext conftest.$ac_ext
20416 LIBS=$ac_check_lib_save_LIBS
20417 fi
20418 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy" >&5
20419 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy" >&6
20420 if test $ac_cv_lib_jpeg_jpeg_destroy = yes; then
20421   HAVE_LIBJPEG=yes
20422 else
20423   HAVE_LIBJPEG=no
20424 fi
20425
20426         if test $HAVE_LIBJPEG = yes; then
20427                 LIBS="$LIBS -ljpeg"
20428         fi
20429 fi
20430
20431
20432 if test $HAVE_LIBJPEG = yes; then
20433   HAVE_LIBJPEG_TRUE=
20434   HAVE_LIBJPEG_FALSE='#'
20435 else
20436   HAVE_LIBJPEG_TRUE='#'
20437   HAVE_LIBJPEG_FALSE=
20438 fi
20439
20440
20441 ############################################################
20442 # Check for OpenGL libraries.
20443 ############################################################
20444
20445
20446 # Check whether --with-glut-include-dir or --without-glut-include-dir was given.
20447 if test "${with_glut_include_dir+set}" = set; then
20448   withval="$with_glut_include_dir"
20449
20450         case "$withval" in
20451         /*)
20452                 CFLAGS="$CFLAGS -I$withval"
20453                 CPPFLAGS="$CPPFLAGS -I$withval";;
20454         *)
20455                 { { echo "$as_me:$LINENO: error: --with-glut-include-dir requires absolute path" >&5
20456 echo "$as_me: error: --with-glut-include-dir requires absolute path" >&2;}
20457    { (exit 1); exit 1; }; }
20458                 ;;
20459         esac
20460
20461 fi;
20462
20463 # Check whether --with-glut-lib-dir or --without-glut-lib-dir was given.
20464 if test "${with_glut_lib_dir+set}" = set; then
20465   withval="$with_glut_lib_dir"
20466
20467         case "$withval" in
20468         /*)
20469                 LIBS="$LIBS -L$withval";;
20470         *)
20471                 { { echo "$as_me:$LINENO: error: --with-glut-lib-dir requires absolute path" >&5
20472 echo "$as_me: error: --with-glut-lib-dir requires absolute path" >&2;}
20473    { (exit 1); exit 1; }; }
20474                 ;;
20475         esac
20476
20477 fi;
20478
20479 # Check whether --enable-opengl or --disable-opengl was given.
20480 if test "${enable_opengl+set}" = set; then
20481   enableval="$enable_opengl"
20482
20483         case "$enableval" in
20484         yes)
20485                 ENABLE_OPENGL=yes;;
20486         no)
20487                 ENABLE_OPENGL=no;;
20488         *)
20489                 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-libjpeg" >&5
20490 echo "$as_me: error: bad value ${enableval} for --disable-libjpeg" >&2;}
20491    { (exit 1); exit 1; }; }
20492                 ;;
20493         esac
20494
20495 else
20496   ENABLE_OPENGL=yes
20497 fi;
20498
20499 HAVE_OPENGL=no
20500 OPENGL_LIBS=""
20501 if test $ENABLE_OPENGL = yes; then
20502         if test $HAVE_OPENGL = no; then
20503                 TMPLIBS="-lglut -lGL -lGLU $X_PRE_LIBS -lX11 -lXmu -lXi -lXext -lXt $X_EXTRA_LIBS $X_LIBS"
20504                 echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
20505 echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6
20506 if test "${ac_cv_lib_glut_glutInit+set}" = set; then
20507   echo $ECHO_N "(cached) $ECHO_C" >&6
20508 else
20509   ac_check_lib_save_LIBS=$LIBS
20510 LIBS="-lglut $TMPLIBS $LIBS"
20511 cat >conftest.$ac_ext <<_ACEOF
20512 /* confdefs.h.  */
20513 _ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h.  */
20517
20518 /* Override any gcc2 internal prototype to avoid an error.  */
20519 #ifdef __cplusplus
20520 extern "C"
20521 #endif
20522 /* We use char because int might match the return type of a gcc2
20523    builtin and then its argument prototype would still apply.  */
20524 char glutInit ();
20525 int
20526 main ()
20527 {
20528 glutInit ();
20529   ;
20530   return 0;
20531 }
20532 _ACEOF
20533 rm -f conftest.$ac_objext conftest$ac_exeext
20534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20535   (eval $ac_link) 2>conftest.er1
20536   ac_status=$?
20537   grep -v '^ *+' conftest.er1 >conftest.err
20538   rm -f conftest.er1
20539   cat conftest.err >&5
20540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541   (exit $ac_status); } &&
20542          { ac_try='test -z "$ac_c_werror_flag"
20543                          || test ! -s conftest.err'
20544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545   (eval $ac_try) 2>&5
20546   ac_status=$?
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); }; } &&
20549          { ac_try='test -s conftest$ac_exeext'
20550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551   (eval $ac_try) 2>&5
20552   ac_status=$?
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); }; }; then
20555   ac_cv_lib_glut_glutInit=yes
20556 else
20557   echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20559
20560 ac_cv_lib_glut_glutInit=no
20561 fi
20562 rm -f conftest.err conftest.$ac_objext \
20563       conftest$ac_exeext conftest.$ac_ext
20564 LIBS=$ac_check_lib_save_LIBS
20565 fi
20566 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5
20567 echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&6
20568 if test $ac_cv_lib_glut_glutInit = yes; then
20569   HAVE_OPENGL=yes;
20570                   OPENGL_LIBS=$TMPLIBS
20571 else
20572   HAVE_OPENGL=no
20573 fi
20574
20575         fi
20576         if test "${ac_cv_header_GL_glut_h+set}" = set; then
20577   echo "$as_me:$LINENO: checking for GL/glut.h" >&5
20578 echo $ECHO_N "checking for GL/glut.h... $ECHO_C" >&6
20579 if test "${ac_cv_header_GL_glut_h+set}" = set; then
20580   echo $ECHO_N "(cached) $ECHO_C" >&6
20581 fi
20582 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
20583 echo "${ECHO_T}$ac_cv_header_GL_glut_h" >&6
20584 else
20585   # Is the header compilable?
20586 echo "$as_me:$LINENO: checking GL/glut.h usability" >&5
20587 echo $ECHO_N "checking GL/glut.h usability... $ECHO_C" >&6
20588 cat >conftest.$ac_ext <<_ACEOF
20589 /* confdefs.h.  */
20590 _ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h.  */
20594 $ac_includes_default
20595 #include <GL/glut.h>
20596 _ACEOF
20597 rm -f conftest.$ac_objext
20598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20599   (eval $ac_compile) 2>conftest.er1
20600   ac_status=$?
20601   grep -v '^ *+' conftest.er1 >conftest.err
20602   rm -f conftest.er1
20603   cat conftest.err >&5
20604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605   (exit $ac_status); } &&
20606          { ac_try='test -z "$ac_c_werror_flag"
20607                          || test ! -s conftest.err'
20608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20609   (eval $ac_try) 2>&5
20610   ac_status=$?
20611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612   (exit $ac_status); }; } &&
20613          { ac_try='test -s conftest.$ac_objext'
20614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615   (eval $ac_try) 2>&5
20616   ac_status=$?
20617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618   (exit $ac_status); }; }; then
20619   ac_header_compiler=yes
20620 else
20621   echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20623
20624 ac_header_compiler=no
20625 fi
20626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20628 echo "${ECHO_T}$ac_header_compiler" >&6
20629
20630 # Is the header present?
20631 echo "$as_me:$LINENO: checking GL/glut.h presence" >&5
20632 echo $ECHO_N "checking GL/glut.h presence... $ECHO_C" >&6
20633 cat >conftest.$ac_ext <<_ACEOF
20634 /* confdefs.h.  */
20635 _ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h.  */
20639 #include <GL/glut.h>
20640 _ACEOF
20641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20642   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20643   ac_status=$?
20644   grep -v '^ *+' conftest.er1 >conftest.err
20645   rm -f conftest.er1
20646   cat conftest.err >&5
20647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648   (exit $ac_status); } >/dev/null; then
20649   if test -s conftest.err; then
20650     ac_cpp_err=$ac_c_preproc_warn_flag
20651     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20652   else
20653     ac_cpp_err=
20654   fi
20655 else
20656   ac_cpp_err=yes
20657 fi
20658 if test -z "$ac_cpp_err"; then
20659   ac_header_preproc=yes
20660 else
20661   echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20663
20664   ac_header_preproc=no
20665 fi
20666 rm -f conftest.err conftest.$ac_ext
20667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20668 echo "${ECHO_T}$ac_header_preproc" >&6
20669
20670 # So?  What about this header?
20671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20672   yes:no: )
20673     { echo "$as_me:$LINENO: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&5
20674 echo "$as_me: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20675     { echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the compiler's result" >&5
20676 echo "$as_me: WARNING: GL/glut.h: proceeding with the compiler's result" >&2;}
20677     ac_header_preproc=yes
20678     ;;
20679   no:yes:* )
20680     { echo "$as_me:$LINENO: WARNING: GL/glut.h: present but cannot be compiled" >&5
20681 echo "$as_me: WARNING: GL/glut.h: present but cannot be compiled" >&2;}
20682     { echo "$as_me:$LINENO: WARNING: GL/glut.h:     check for missing prerequisite headers?" >&5
20683 echo "$as_me: WARNING: GL/glut.h:     check for missing prerequisite headers?" >&2;}
20684     { echo "$as_me:$LINENO: WARNING: GL/glut.h: see the Autoconf documentation" >&5
20685 echo "$as_me: WARNING: GL/glut.h: see the Autoconf documentation" >&2;}
20686     { echo "$as_me:$LINENO: WARNING: GL/glut.h:     section \"Present But Cannot Be Compiled\"" >&5
20687 echo "$as_me: WARNING: GL/glut.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20688     { echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&5
20689 echo "$as_me: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&2;}
20690     { echo "$as_me:$LINENO: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&5
20691 echo "$as_me: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&2;}
20692     (
20693       cat <<\_ASBOX
20694 ## --------------------------------- ##
20695 ## Report this to the jasper lists.  ##
20696 ## --------------------------------- ##
20697 _ASBOX
20698     ) |
20699       sed "s/^/$as_me: WARNING:     /" >&2
20700     ;;
20701 esac
20702 echo "$as_me:$LINENO: checking for GL/glut.h" >&5
20703 echo $ECHO_N "checking for GL/glut.h... $ECHO_C" >&6
20704 if test "${ac_cv_header_GL_glut_h+set}" = set; then
20705   echo $ECHO_N "(cached) $ECHO_C" >&6
20706 else
20707   ac_cv_header_GL_glut_h=$ac_header_preproc
20708 fi
20709 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
20710 echo "${ECHO_T}$ac_cv_header_GL_glut_h" >&6
20711
20712 fi
20713 if test $ac_cv_header_GL_glut_h = yes; then
20714   :
20715 else
20716   HAVE_OPENGL=no; OPENGL_LIBS="";
20717 fi
20718
20719
20720 fi
20721
20722
20723
20724 if test $HAVE_OPENGL = yes; then
20725   HAVE_OPENGL_TRUE=
20726   HAVE_OPENGL_FALSE='#'
20727 else
20728   HAVE_OPENGL_TRUE='#'
20729   HAVE_OPENGL_FALSE=
20730 fi
20731
20732
20733 echo "$as_me:$LINENO: checking whether OpenGL libraries and headers were detected" >&5
20734 echo $ECHO_N "checking whether OpenGL libraries and headers were detected... $ECHO_C" >&6
20735 echo "$as_me:$LINENO: result: $HAVE_OPENGL" >&5
20736 echo "${ECHO_T}$HAVE_OPENGL" >&6
20737
20738 ############################################################
20739 # Check for other libraries.
20740 ############################################################
20741
20742 # Check for the math library.
20743
20744 echo "$as_me:$LINENO: checking for main in -lm" >&5
20745 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
20746 if test "${ac_cv_lib_m_main+set}" = set; then
20747   echo $ECHO_N "(cached) $ECHO_C" >&6
20748 else
20749   ac_check_lib_save_LIBS=$LIBS
20750 LIBS="-lm  $LIBS"
20751 cat >conftest.$ac_ext <<_ACEOF
20752 /* confdefs.h.  */
20753 _ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h.  */
20757
20758
20759 int
20760 main ()
20761 {
20762 main ();
20763   ;
20764   return 0;
20765 }
20766 _ACEOF
20767 rm -f conftest.$ac_objext conftest$ac_exeext
20768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20769   (eval $ac_link) 2>conftest.er1
20770   ac_status=$?
20771   grep -v '^ *+' conftest.er1 >conftest.err
20772   rm -f conftest.er1
20773   cat conftest.err >&5
20774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775   (exit $ac_status); } &&
20776          { ac_try='test -z "$ac_c_werror_flag"
20777                          || test ! -s conftest.err'
20778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779   (eval $ac_try) 2>&5
20780   ac_status=$?
20781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782   (exit $ac_status); }; } &&
20783          { ac_try='test -s conftest$ac_exeext'
20784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20785   (eval $ac_try) 2>&5
20786   ac_status=$?
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); }; }; then
20789   ac_cv_lib_m_main=yes
20790 else
20791   echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20793
20794 ac_cv_lib_m_main=no
20795 fi
20796 rm -f conftest.err conftest.$ac_objext \
20797       conftest$ac_exeext conftest.$ac_ext
20798 LIBS=$ac_check_lib_save_LIBS
20799 fi
20800 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
20801 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
20802 if test $ac_cv_lib_m_main = yes; then
20803   cat >>confdefs.h <<_ACEOF
20804 #define HAVE_LIBM 1
20805 _ACEOF
20806
20807   LIBS="-lm $LIBS"
20808
20809 fi
20810
20811
20812 ############################################################
20813 # Check for header files.
20814 ############################################################
20815
20816 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20817 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20818 if test "${ac_cv_header_stdc+set}" = set; then
20819   echo $ECHO_N "(cached) $ECHO_C" >&6
20820 else
20821   cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h.  */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h.  */
20827 #include <stdlib.h>
20828 #include <stdarg.h>
20829 #include <string.h>
20830 #include <float.h>
20831
20832 int
20833 main ()
20834 {
20835
20836   ;
20837   return 0;
20838 }
20839 _ACEOF
20840 rm -f conftest.$ac_objext
20841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20842   (eval $ac_compile) 2>conftest.er1
20843   ac_status=$?
20844   grep -v '^ *+' conftest.er1 >conftest.err
20845   rm -f conftest.er1
20846   cat conftest.err >&5
20847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848   (exit $ac_status); } &&
20849          { ac_try='test -z "$ac_c_werror_flag"
20850                          || test ! -s conftest.err'
20851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852   (eval $ac_try) 2>&5
20853   ac_status=$?
20854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855   (exit $ac_status); }; } &&
20856          { ac_try='test -s conftest.$ac_objext'
20857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20858   (eval $ac_try) 2>&5
20859   ac_status=$?
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); }; }; then
20862   ac_cv_header_stdc=yes
20863 else
20864   echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20866
20867 ac_cv_header_stdc=no
20868 fi
20869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20870
20871 if test $ac_cv_header_stdc = yes; then
20872   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20873   cat >conftest.$ac_ext <<_ACEOF
20874 /* confdefs.h.  */
20875 _ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h.  */
20879 #include <string.h>
20880
20881 _ACEOF
20882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20883   $EGREP "memchr" >/dev/null 2>&1; then
20884   :
20885 else
20886   ac_cv_header_stdc=no
20887 fi
20888 rm -f conftest*
20889
20890 fi
20891
20892 if test $ac_cv_header_stdc = yes; then
20893   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20894   cat >conftest.$ac_ext <<_ACEOF
20895 /* confdefs.h.  */
20896 _ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h.  */
20900 #include <stdlib.h>
20901
20902 _ACEOF
20903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20904   $EGREP "free" >/dev/null 2>&1; then
20905   :
20906 else
20907   ac_cv_header_stdc=no
20908 fi
20909 rm -f conftest*
20910
20911 fi
20912
20913 if test $ac_cv_header_stdc = yes; then
20914   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20915   if test "$cross_compiling" = yes; then
20916   :
20917 else
20918   cat >conftest.$ac_ext <<_ACEOF
20919 /* confdefs.h.  */
20920 _ACEOF
20921 cat confdefs.h >>conftest.$ac_ext
20922 cat >>conftest.$ac_ext <<_ACEOF
20923 /* end confdefs.h.  */
20924 #include <ctype.h>
20925 #if ((' ' & 0x0FF) == 0x020)
20926 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20927 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20928 #else
20929 # define ISLOWER(c) \
20930                    (('a' <= (c) && (c) <= 'i') \
20931                      || ('j' <= (c) && (c) <= 'r') \
20932                      || ('s' <= (c) && (c) <= 'z'))
20933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20934 #endif
20935
20936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20937 int
20938 main ()
20939 {
20940   int i;
20941   for (i = 0; i < 256; i++)
20942     if (XOR (islower (i), ISLOWER (i))
20943         || toupper (i) != TOUPPER (i))
20944       exit(2);
20945   exit (0);
20946 }
20947 _ACEOF
20948 rm -f conftest$ac_exeext
20949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20950   (eval $ac_link) 2>&5
20951   ac_status=$?
20952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20955   (eval $ac_try) 2>&5
20956   ac_status=$?
20957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958   (exit $ac_status); }; }; then
20959   :
20960 else
20961   echo "$as_me: program exited with status $ac_status" >&5
20962 echo "$as_me: failed program was:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20964
20965 ( exit $ac_status )
20966 ac_cv_header_stdc=no
20967 fi
20968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20969 fi
20970 fi
20971 fi
20972 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20973 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20974 if test $ac_cv_header_stdc = yes; then
20975
20976 cat >>confdefs.h <<\_ACEOF
20977 #define STDC_HEADERS 1
20978 _ACEOF
20979
20980 fi
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993 for ac_header in fcntl.h limits.h unistd.h stdint.h stdbool.h io.h windows.h sys/types.h sys/time.h stdlib.h stddef.h
20994 do
20995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20997   echo "$as_me:$LINENO: checking for $ac_header" >&5
20998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21000   echo $ECHO_N "(cached) $ECHO_C" >&6
21001 fi
21002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21004 else
21005   # Is the header compilable?
21006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21008 cat >conftest.$ac_ext <<_ACEOF
21009 /* confdefs.h.  */
21010 _ACEOF
21011 cat confdefs.h >>conftest.$ac_ext
21012 cat >>conftest.$ac_ext <<_ACEOF
21013 /* end confdefs.h.  */
21014 $ac_includes_default
21015 #include <$ac_header>
21016 _ACEOF
21017 rm -f conftest.$ac_objext
21018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21019   (eval $ac_compile) 2>conftest.er1
21020   ac_status=$?
21021   grep -v '^ *+' conftest.er1 >conftest.err
21022   rm -f conftest.er1
21023   cat conftest.err >&5
21024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025   (exit $ac_status); } &&
21026          { ac_try='test -z "$ac_c_werror_flag"
21027                          || test ! -s conftest.err'
21028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029   (eval $ac_try) 2>&5
21030   ac_status=$?
21031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032   (exit $ac_status); }; } &&
21033          { ac_try='test -s conftest.$ac_objext'
21034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035   (eval $ac_try) 2>&5
21036   ac_status=$?
21037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038   (exit $ac_status); }; }; then
21039   ac_header_compiler=yes
21040 else
21041   echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21043
21044 ac_header_compiler=no
21045 fi
21046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21048 echo "${ECHO_T}$ac_header_compiler" >&6
21049
21050 # Is the header present?
21051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21053 cat >conftest.$ac_ext <<_ACEOF
21054 /* confdefs.h.  */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h.  */
21059 #include <$ac_header>
21060 _ACEOF
21061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21063   ac_status=$?
21064   grep -v '^ *+' conftest.er1 >conftest.err
21065   rm -f conftest.er1
21066   cat conftest.err >&5
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); } >/dev/null; then
21069   if test -s conftest.err; then
21070     ac_cpp_err=$ac_c_preproc_warn_flag
21071     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21072   else
21073     ac_cpp_err=
21074   fi
21075 else
21076   ac_cpp_err=yes
21077 fi
21078 if test -z "$ac_cpp_err"; then
21079   ac_header_preproc=yes
21080 else
21081   echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21083
21084   ac_header_preproc=no
21085 fi
21086 rm -f conftest.err conftest.$ac_ext
21087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21088 echo "${ECHO_T}$ac_header_preproc" >&6
21089
21090 # So?  What about this header?
21091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21092   yes:no: )
21093     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21097     ac_header_preproc=yes
21098     ;;
21099   no:yes:* )
21100     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21102     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21103 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21104     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21106     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21107 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21110     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21112     (
21113       cat <<\_ASBOX
21114 ## --------------------------------- ##
21115 ## Report this to the jasper lists.  ##
21116 ## --------------------------------- ##
21117 _ASBOX
21118     ) |
21119       sed "s/^/$as_me: WARNING:     /" >&2
21120     ;;
21121 esac
21122 echo "$as_me:$LINENO: checking for $ac_header" >&5
21123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21125   echo $ECHO_N "(cached) $ECHO_C" >&6
21126 else
21127   eval "$as_ac_Header=\$ac_header_preproc"
21128 fi
21129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21131
21132 fi
21133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21134   cat >>confdefs.h <<_ACEOF
21135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21136 _ACEOF
21137
21138 fi
21139
21140 done
21141
21142
21143 ############################################################
21144 # Check for typedefs, structures, and compiler characteristics.
21145 ############################################################
21146
21147 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21148 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21149 if test "${ac_cv_c_const+set}" = set; then
21150   echo $ECHO_N "(cached) $ECHO_C" >&6
21151 else
21152   cat >conftest.$ac_ext <<_ACEOF
21153 /* confdefs.h.  */
21154 _ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h.  */
21158
21159 int
21160 main ()
21161 {
21162 /* FIXME: Include the comments suggested by Paul. */
21163 #ifndef __cplusplus
21164   /* Ultrix mips cc rejects this.  */
21165   typedef int charset[2];
21166   const charset x;
21167   /* SunOS 4.1.1 cc rejects this.  */
21168   char const *const *ccp;
21169   char **p;
21170   /* NEC SVR4.0.2 mips cc rejects this.  */
21171   struct point {int x, y;};
21172   static struct point const zero = {0,0};
21173   /* AIX XL C 1.02.0.0 rejects this.
21174      It does not let you subtract one const X* pointer from another in
21175      an arm of an if-expression whose if-part is not a constant
21176      expression */
21177   const char *g = "string";
21178   ccp = &g + (g ? g-g : 0);
21179   /* HPUX 7.0 cc rejects these. */
21180   ++ccp;
21181   p = (char**) ccp;
21182   ccp = (char const *const *) p;
21183   { /* SCO 3.2v4 cc rejects this.  */
21184     char *t;
21185     char const *s = 0 ? (char *) 0 : (char const *) 0;
21186
21187     *t++ = 0;
21188   }
21189   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21190     int x[] = {25, 17};
21191     const int *foo = &x[0];
21192     ++foo;
21193   }
21194   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21195     typedef const int *iptr;
21196     iptr p = 0;
21197     ++p;
21198   }
21199   { /* AIX XL C 1.02.0.0 rejects this saying
21200        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21201     struct s { int j; const int *ap[3]; };
21202     struct s *b; b->j = 5;
21203   }
21204   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21205     const int foo = 10;
21206   }
21207 #endif
21208
21209   ;
21210   return 0;
21211 }
21212 _ACEOF
21213 rm -f conftest.$ac_objext
21214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21215   (eval $ac_compile) 2>conftest.er1
21216   ac_status=$?
21217   grep -v '^ *+' conftest.er1 >conftest.err
21218   rm -f conftest.er1
21219   cat conftest.err >&5
21220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221   (exit $ac_status); } &&
21222          { ac_try='test -z "$ac_c_werror_flag"
21223                          || test ! -s conftest.err'
21224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225   (eval $ac_try) 2>&5
21226   ac_status=$?
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); }; } &&
21229          { ac_try='test -s conftest.$ac_objext'
21230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231   (eval $ac_try) 2>&5
21232   ac_status=$?
21233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); }; }; then
21235   ac_cv_c_const=yes
21236 else
21237   echo "$as_me: failed program was:" >&5
21238 sed 's/^/| /' conftest.$ac_ext >&5
21239
21240 ac_cv_c_const=no
21241 fi
21242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21243 fi
21244 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21245 echo "${ECHO_T}$ac_cv_c_const" >&6
21246 if test $ac_cv_c_const = no; then
21247
21248 cat >>confdefs.h <<\_ACEOF
21249 #define const
21250 _ACEOF
21251
21252 fi
21253
21254 echo "$as_me:$LINENO: checking for inline" >&5
21255 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21256 if test "${ac_cv_c_inline+set}" = set; then
21257   echo $ECHO_N "(cached) $ECHO_C" >&6
21258 else
21259   ac_cv_c_inline=no
21260 for ac_kw in inline __inline__ __inline; do
21261   cat >conftest.$ac_ext <<_ACEOF
21262 /* confdefs.h.  */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h.  */
21267 #ifndef __cplusplus
21268 typedef int foo_t;
21269 static $ac_kw foo_t static_foo () {return 0; }
21270 $ac_kw foo_t foo () {return 0; }
21271 #endif
21272
21273 _ACEOF
21274 rm -f conftest.$ac_objext
21275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21276   (eval $ac_compile) 2>conftest.er1
21277   ac_status=$?
21278   grep -v '^ *+' conftest.er1 >conftest.err
21279   rm -f conftest.er1
21280   cat conftest.err >&5
21281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282   (exit $ac_status); } &&
21283          { ac_try='test -z "$ac_c_werror_flag"
21284                          || test ! -s conftest.err'
21285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286   (eval $ac_try) 2>&5
21287   ac_status=$?
21288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289   (exit $ac_status); }; } &&
21290          { ac_try='test -s conftest.$ac_objext'
21291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21292   (eval $ac_try) 2>&5
21293   ac_status=$?
21294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295   (exit $ac_status); }; }; then
21296   ac_cv_c_inline=$ac_kw; break
21297 else
21298   echo "$as_me: failed program was:" >&5
21299 sed 's/^/| /' conftest.$ac_ext >&5
21300
21301 fi
21302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21303 done
21304
21305 fi
21306 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21307 echo "${ECHO_T}$ac_cv_c_inline" >&6
21308
21309
21310 case $ac_cv_c_inline in
21311   inline | yes) ;;
21312   *)
21313     case $ac_cv_c_inline in
21314       no) ac_val=;;
21315       *) ac_val=$ac_cv_c_inline;;
21316     esac
21317     cat >>confdefs.h <<_ACEOF
21318 #ifndef __cplusplus
21319 #define inline $ac_val
21320 #endif
21321 _ACEOF
21322     ;;
21323 esac
21324
21325 echo "$as_me:$LINENO: checking for size_t" >&5
21326 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21327 if test "${ac_cv_type_size_t+set}" = set; then
21328   echo $ECHO_N "(cached) $ECHO_C" >&6
21329 else
21330   cat >conftest.$ac_ext <<_ACEOF
21331 /* confdefs.h.  */
21332 _ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h.  */
21336 $ac_includes_default
21337 int
21338 main ()
21339 {
21340 if ((size_t *) 0)
21341   return 0;
21342 if (sizeof (size_t))
21343   return 0;
21344   ;
21345   return 0;
21346 }
21347 _ACEOF
21348 rm -f conftest.$ac_objext
21349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21350   (eval $ac_compile) 2>conftest.er1
21351   ac_status=$?
21352   grep -v '^ *+' conftest.er1 >conftest.err
21353   rm -f conftest.er1
21354   cat conftest.err >&5
21355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356   (exit $ac_status); } &&
21357          { ac_try='test -z "$ac_c_werror_flag"
21358                          || test ! -s conftest.err'
21359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360   (eval $ac_try) 2>&5
21361   ac_status=$?
21362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); }; } &&
21364          { ac_try='test -s conftest.$ac_objext'
21365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366   (eval $ac_try) 2>&5
21367   ac_status=$?
21368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369   (exit $ac_status); }; }; then
21370   ac_cv_type_size_t=yes
21371 else
21372   echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21374
21375 ac_cv_type_size_t=no
21376 fi
21377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21378 fi
21379 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21380 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21381 if test $ac_cv_type_size_t = yes; then
21382   :
21383 else
21384
21385 cat >>confdefs.h <<_ACEOF
21386 #define size_t unsigned
21387 _ACEOF
21388
21389 fi
21390
21391 echo "$as_me:$LINENO: checking for uchar" >&5
21392 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
21393 if test "${ac_cv_type_uchar+set}" = set; then
21394   echo $ECHO_N "(cached) $ECHO_C" >&6
21395 else
21396   cat >conftest.$ac_ext <<_ACEOF
21397 /* confdefs.h.  */
21398 _ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h.  */
21402 $ac_includes_default
21403 int
21404 main ()
21405 {
21406 if ((uchar *) 0)
21407   return 0;
21408 if (sizeof (uchar))
21409   return 0;
21410   ;
21411   return 0;
21412 }
21413 _ACEOF
21414 rm -f conftest.$ac_objext
21415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21416   (eval $ac_compile) 2>conftest.er1
21417   ac_status=$?
21418   grep -v '^ *+' conftest.er1 >conftest.err
21419   rm -f conftest.er1
21420   cat conftest.err >&5
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); } &&
21423          { ac_try='test -z "$ac_c_werror_flag"
21424                          || test ! -s conftest.err'
21425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426   (eval $ac_try) 2>&5
21427   ac_status=$?
21428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429   (exit $ac_status); }; } &&
21430          { ac_try='test -s conftest.$ac_objext'
21431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432   (eval $ac_try) 2>&5
21433   ac_status=$?
21434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435   (exit $ac_status); }; }; then
21436   ac_cv_type_uchar=yes
21437 else
21438   echo "$as_me: failed program was:" >&5
21439 sed 's/^/| /' conftest.$ac_ext >&5
21440
21441 ac_cv_type_uchar=no
21442 fi
21443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21444 fi
21445 echo "$as_me:$LINENO: result: $ac_cv_type_uchar" >&5
21446 echo "${ECHO_T}$ac_cv_type_uchar" >&6
21447 if test $ac_cv_type_uchar = yes; then
21448   :
21449 else
21450
21451 cat >>confdefs.h <<_ACEOF
21452 #define uchar unsigned char
21453 _ACEOF
21454
21455 fi
21456
21457 echo "$as_me:$LINENO: checking for ushort" >&5
21458 echo $ECHO_N "checking for ushort... $ECHO_C" >&6
21459 if test "${ac_cv_type_ushort+set}" = set; then
21460   echo $ECHO_N "(cached) $ECHO_C" >&6
21461 else
21462   cat >conftest.$ac_ext <<_ACEOF
21463 /* confdefs.h.  */
21464 _ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h.  */
21468 $ac_includes_default
21469 int
21470 main ()
21471 {
21472 if ((ushort *) 0)
21473   return 0;
21474 if (sizeof (ushort))
21475   return 0;
21476   ;
21477   return 0;
21478 }
21479 _ACEOF
21480 rm -f conftest.$ac_objext
21481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21482   (eval $ac_compile) 2>conftest.er1
21483   ac_status=$?
21484   grep -v '^ *+' conftest.er1 >conftest.err
21485   rm -f conftest.er1
21486   cat conftest.err >&5
21487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488   (exit $ac_status); } &&
21489          { ac_try='test -z "$ac_c_werror_flag"
21490                          || test ! -s conftest.err'
21491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492   (eval $ac_try) 2>&5
21493   ac_status=$?
21494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495   (exit $ac_status); }; } &&
21496          { ac_try='test -s conftest.$ac_objext'
21497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498   (eval $ac_try) 2>&5
21499   ac_status=$?
21500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501   (exit $ac_status); }; }; then
21502   ac_cv_type_ushort=yes
21503 else
21504   echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507 ac_cv_type_ushort=no
21508 fi
21509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21510 fi
21511 echo "$as_me:$LINENO: result: $ac_cv_type_ushort" >&5
21512 echo "${ECHO_T}$ac_cv_type_ushort" >&6
21513 if test $ac_cv_type_ushort = yes; then
21514   :
21515 else
21516
21517 cat >>confdefs.h <<_ACEOF
21518 #define ushort unsigned short
21519 _ACEOF
21520
21521 fi
21522
21523 echo "$as_me:$LINENO: checking for uint" >&5
21524 echo $ECHO_N "checking for uint... $ECHO_C" >&6
21525 if test "${ac_cv_type_uint+set}" = set; then
21526   echo $ECHO_N "(cached) $ECHO_C" >&6
21527 else
21528   cat >conftest.$ac_ext <<_ACEOF
21529 /* confdefs.h.  */
21530 _ACEOF
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h.  */
21534 $ac_includes_default
21535 int
21536 main ()
21537 {
21538 if ((uint *) 0)
21539   return 0;
21540 if (sizeof (uint))
21541   return 0;
21542   ;
21543   return 0;
21544 }
21545 _ACEOF
21546 rm -f conftest.$ac_objext
21547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21548   (eval $ac_compile) 2>conftest.er1
21549   ac_status=$?
21550   grep -v '^ *+' conftest.er1 >conftest.err
21551   rm -f conftest.er1
21552   cat conftest.err >&5
21553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554   (exit $ac_status); } &&
21555          { ac_try='test -z "$ac_c_werror_flag"
21556                          || test ! -s conftest.err'
21557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558   (eval $ac_try) 2>&5
21559   ac_status=$?
21560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561   (exit $ac_status); }; } &&
21562          { ac_try='test -s conftest.$ac_objext'
21563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564   (eval $ac_try) 2>&5
21565   ac_status=$?
21566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567   (exit $ac_status); }; }; then
21568   ac_cv_type_uint=yes
21569 else
21570   echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21572
21573 ac_cv_type_uint=no
21574 fi
21575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21576 fi
21577 echo "$as_me:$LINENO: result: $ac_cv_type_uint" >&5
21578 echo "${ECHO_T}$ac_cv_type_uint" >&6
21579 if test $ac_cv_type_uint = yes; then
21580   :
21581 else
21582
21583 cat >>confdefs.h <<_ACEOF
21584 #define uint unsigned int
21585 _ACEOF
21586
21587 fi
21588
21589 echo "$as_me:$LINENO: checking for ulong" >&5
21590 echo $ECHO_N "checking for ulong... $ECHO_C" >&6
21591 if test "${ac_cv_type_ulong+set}" = set; then
21592   echo $ECHO_N "(cached) $ECHO_C" >&6
21593 else
21594   cat >conftest.$ac_ext <<_ACEOF
21595 /* confdefs.h.  */
21596 _ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h.  */
21600 $ac_includes_default
21601 int
21602 main ()
21603 {
21604 if ((ulong *) 0)
21605   return 0;
21606 if (sizeof (ulong))
21607   return 0;
21608   ;
21609   return 0;
21610 }
21611 _ACEOF
21612 rm -f conftest.$ac_objext
21613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21614   (eval $ac_compile) 2>conftest.er1
21615   ac_status=$?
21616   grep -v '^ *+' conftest.er1 >conftest.err
21617   rm -f conftest.er1
21618   cat conftest.err >&5
21619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620   (exit $ac_status); } &&
21621          { ac_try='test -z "$ac_c_werror_flag"
21622                          || test ! -s conftest.err'
21623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624   (eval $ac_try) 2>&5
21625   ac_status=$?
21626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627   (exit $ac_status); }; } &&
21628          { ac_try='test -s conftest.$ac_objext'
21629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630   (eval $ac_try) 2>&5
21631   ac_status=$?
21632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633   (exit $ac_status); }; }; then
21634   ac_cv_type_ulong=yes
21635 else
21636   echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21638
21639 ac_cv_type_ulong=no
21640 fi
21641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21642 fi
21643 echo "$as_me:$LINENO: result: $ac_cv_type_ulong" >&5
21644 echo "${ECHO_T}$ac_cv_type_ulong" >&6
21645 if test $ac_cv_type_ulong = yes; then
21646   :
21647 else
21648
21649 cat >>confdefs.h <<_ACEOF
21650 #define ulong unsigned long
21651 _ACEOF
21652
21653 fi
21654
21655 echo "$as_me:$LINENO: checking for longlong" >&5
21656 echo $ECHO_N "checking for longlong... $ECHO_C" >&6
21657 if test "${ac_cv_type_longlong+set}" = set; then
21658   echo $ECHO_N "(cached) $ECHO_C" >&6
21659 else
21660   cat >conftest.$ac_ext <<_ACEOF
21661 /* confdefs.h.  */
21662 _ACEOF
21663 cat confdefs.h >>conftest.$ac_ext
21664 cat >>conftest.$ac_ext <<_ACEOF
21665 /* end confdefs.h.  */
21666 $ac_includes_default
21667 int
21668 main ()
21669 {
21670 if ((longlong *) 0)
21671   return 0;
21672 if (sizeof (longlong))
21673   return 0;
21674   ;
21675   return 0;
21676 }
21677 _ACEOF
21678 rm -f conftest.$ac_objext
21679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21680   (eval $ac_compile) 2>conftest.er1
21681   ac_status=$?
21682   grep -v '^ *+' conftest.er1 >conftest.err
21683   rm -f conftest.er1
21684   cat conftest.err >&5
21685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686   (exit $ac_status); } &&
21687          { ac_try='test -z "$ac_c_werror_flag"
21688                          || test ! -s conftest.err'
21689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690   (eval $ac_try) 2>&5
21691   ac_status=$?
21692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693   (exit $ac_status); }; } &&
21694          { ac_try='test -s conftest.$ac_objext'
21695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696   (eval $ac_try) 2>&5
21697   ac_status=$?
21698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699   (exit $ac_status); }; }; then
21700   ac_cv_type_longlong=yes
21701 else
21702   echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21704
21705 ac_cv_type_longlong=no
21706 fi
21707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21708 fi
21709 echo "$as_me:$LINENO: result: $ac_cv_type_longlong" >&5
21710 echo "${ECHO_T}$ac_cv_type_longlong" >&6
21711 if test $ac_cv_type_longlong = yes; then
21712   :
21713 else
21714
21715 cat >>confdefs.h <<_ACEOF
21716 #define longlong long long
21717 _ACEOF
21718
21719 fi
21720
21721 echo "$as_me:$LINENO: checking for ulonglong" >&5
21722 echo $ECHO_N "checking for ulonglong... $ECHO_C" >&6
21723 if test "${ac_cv_type_ulonglong+set}" = set; then
21724   echo $ECHO_N "(cached) $ECHO_C" >&6
21725 else
21726   cat >conftest.$ac_ext <<_ACEOF
21727 /* confdefs.h.  */
21728 _ACEOF
21729 cat confdefs.h >>conftest.$ac_ext
21730 cat >>conftest.$ac_ext <<_ACEOF
21731 /* end confdefs.h.  */
21732 $ac_includes_default
21733 int
21734 main ()
21735 {
21736 if ((ulonglong *) 0)
21737   return 0;
21738 if (sizeof (ulonglong))
21739   return 0;
21740   ;
21741   return 0;
21742 }
21743 _ACEOF
21744 rm -f conftest.$ac_objext
21745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21746   (eval $ac_compile) 2>conftest.er1
21747   ac_status=$?
21748   grep -v '^ *+' conftest.er1 >conftest.err
21749   rm -f conftest.er1
21750   cat conftest.err >&5
21751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752   (exit $ac_status); } &&
21753          { ac_try='test -z "$ac_c_werror_flag"
21754                          || test ! -s conftest.err'
21755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21756   (eval $ac_try) 2>&5
21757   ac_status=$?
21758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759   (exit $ac_status); }; } &&
21760          { ac_try='test -s conftest.$ac_objext'
21761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21762   (eval $ac_try) 2>&5
21763   ac_status=$?
21764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765   (exit $ac_status); }; }; then
21766   ac_cv_type_ulonglong=yes
21767 else
21768   echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21770
21771 ac_cv_type_ulonglong=no
21772 fi
21773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21774 fi
21775 echo "$as_me:$LINENO: result: $ac_cv_type_ulonglong" >&5
21776 echo "${ECHO_T}$ac_cv_type_ulonglong" >&6
21777 if test $ac_cv_type_ulonglong = yes; then
21778   :
21779 else
21780
21781 cat >>confdefs.h <<_ACEOF
21782 #define ulonglong unsigned long long
21783 _ACEOF
21784
21785 fi
21786
21787 echo "$as_me:$LINENO: checking for ssize_t" >&5
21788 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
21789 if test "${ac_cv_type_ssize_t+set}" = set; then
21790   echo $ECHO_N "(cached) $ECHO_C" >&6
21791 else
21792   cat >conftest.$ac_ext <<_ACEOF
21793 /* confdefs.h.  */
21794 _ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h.  */
21798 $ac_includes_default
21799 int
21800 main ()
21801 {
21802 if ((ssize_t *) 0)
21803   return 0;
21804 if (sizeof (ssize_t))
21805   return 0;
21806   ;
21807   return 0;
21808 }
21809 _ACEOF
21810 rm -f conftest.$ac_objext
21811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21812   (eval $ac_compile) 2>conftest.er1
21813   ac_status=$?
21814   grep -v '^ *+' conftest.er1 >conftest.err
21815   rm -f conftest.er1
21816   cat conftest.err >&5
21817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818   (exit $ac_status); } &&
21819          { ac_try='test -z "$ac_c_werror_flag"
21820                          || test ! -s conftest.err'
21821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822   (eval $ac_try) 2>&5
21823   ac_status=$?
21824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825   (exit $ac_status); }; } &&
21826          { ac_try='test -s conftest.$ac_objext'
21827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828   (eval $ac_try) 2>&5
21829   ac_status=$?
21830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831   (exit $ac_status); }; }; then
21832   ac_cv_type_ssize_t=yes
21833 else
21834   echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21836
21837 ac_cv_type_ssize_t=no
21838 fi
21839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21840 fi
21841 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
21842 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
21843 if test $ac_cv_type_ssize_t = yes; then
21844   :
21845 else
21846
21847 cat >>confdefs.h <<_ACEOF
21848 #define ssize_t int
21849 _ACEOF
21850
21851 fi
21852
21853
21854 for ac_func in gettimeofday
21855 do
21856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21857 echo "$as_me:$LINENO: checking for $ac_func" >&5
21858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21859 if eval "test \"\${$as_ac_var+set}\" = set"; then
21860   echo $ECHO_N "(cached) $ECHO_C" >&6
21861 else
21862   cat >conftest.$ac_ext <<_ACEOF
21863 /* confdefs.h.  */
21864 _ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h.  */
21868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21870 #define $ac_func innocuous_$ac_func
21871
21872 /* System header to define __stub macros and hopefully few prototypes,
21873     which can conflict with char $ac_func (); below.
21874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21875     <limits.h> exists even on freestanding compilers.  */
21876
21877 #ifdef __STDC__
21878 # include <limits.h>
21879 #else
21880 # include <assert.h>
21881 #endif
21882
21883 #undef $ac_func
21884
21885 /* Override any gcc2 internal prototype to avoid an error.  */
21886 #ifdef __cplusplus
21887 extern "C"
21888 {
21889 #endif
21890 /* We use char because int might match the return type of a gcc2
21891    builtin and then its argument prototype would still apply.  */
21892 char $ac_func ();
21893 /* The GNU C library defines this for functions which it implements
21894     to always fail with ENOSYS.  Some functions are actually named
21895     something starting with __ and the normal name is an alias.  */
21896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21897 choke me
21898 #else
21899 char (*f) () = $ac_func;
21900 #endif
21901 #ifdef __cplusplus
21902 }
21903 #endif
21904
21905 int
21906 main ()
21907 {
21908 return f != $ac_func;
21909   ;
21910   return 0;
21911 }
21912 _ACEOF
21913 rm -f conftest.$ac_objext conftest$ac_exeext
21914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21915   (eval $ac_link) 2>conftest.er1
21916   ac_status=$?
21917   grep -v '^ *+' conftest.er1 >conftest.err
21918   rm -f conftest.er1
21919   cat conftest.err >&5
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); } &&
21922          { ac_try='test -z "$ac_c_werror_flag"
21923                          || test ! -s conftest.err'
21924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925   (eval $ac_try) 2>&5
21926   ac_status=$?
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); }; } &&
21929          { ac_try='test -s conftest$ac_exeext'
21930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21931   (eval $ac_try) 2>&5
21932   ac_status=$?
21933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934   (exit $ac_status); }; }; then
21935   eval "$as_ac_var=yes"
21936 else
21937   echo "$as_me: failed program was:" >&5
21938 sed 's/^/| /' conftest.$ac_ext >&5
21939
21940 eval "$as_ac_var=no"
21941 fi
21942 rm -f conftest.err conftest.$ac_objext \
21943       conftest$ac_exeext conftest.$ac_ext
21944 fi
21945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21947 if test `eval echo '${'$as_ac_var'}'` = yes; then
21948   cat >>confdefs.h <<_ACEOF
21949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21950 _ACEOF
21951
21952 fi
21953 done
21954
21955
21956 for ac_func in getrusage
21957 do
21958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21959 echo "$as_me:$LINENO: checking for $ac_func" >&5
21960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21961 if eval "test \"\${$as_ac_var+set}\" = set"; then
21962   echo $ECHO_N "(cached) $ECHO_C" >&6
21963 else
21964   cat >conftest.$ac_ext <<_ACEOF
21965 /* confdefs.h.  */
21966 _ACEOF
21967 cat confdefs.h >>conftest.$ac_ext
21968 cat >>conftest.$ac_ext <<_ACEOF
21969 /* end confdefs.h.  */
21970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21972 #define $ac_func innocuous_$ac_func
21973
21974 /* System header to define __stub macros and hopefully few prototypes,
21975     which can conflict with char $ac_func (); below.
21976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21977     <limits.h> exists even on freestanding compilers.  */
21978
21979 #ifdef __STDC__
21980 # include <limits.h>
21981 #else
21982 # include <assert.h>
21983 #endif
21984
21985 #undef $ac_func
21986
21987 /* Override any gcc2 internal prototype to avoid an error.  */
21988 #ifdef __cplusplus
21989 extern "C"
21990 {
21991 #endif
21992 /* We use char because int might match the return type of a gcc2
21993    builtin and then its argument prototype would still apply.  */
21994 char $ac_func ();
21995 /* The GNU C library defines this for functions which it implements
21996     to always fail with ENOSYS.  Some functions are actually named
21997     something starting with __ and the normal name is an alias.  */
21998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21999 choke me
22000 #else
22001 char (*f) () = $ac_func;
22002 #endif
22003 #ifdef __cplusplus
22004 }
22005 #endif
22006
22007 int
22008 main ()
22009 {
22010 return f != $ac_func;
22011   ;
22012   return 0;
22013 }
22014 _ACEOF
22015 rm -f conftest.$ac_objext conftest$ac_exeext
22016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22017   (eval $ac_link) 2>conftest.er1
22018   ac_status=$?
22019   grep -v '^ *+' conftest.er1 >conftest.err
22020   rm -f conftest.er1
22021   cat conftest.err >&5
22022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023   (exit $ac_status); } &&
22024          { ac_try='test -z "$ac_c_werror_flag"
22025                          || test ! -s conftest.err'
22026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027   (eval $ac_try) 2>&5
22028   ac_status=$?
22029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030   (exit $ac_status); }; } &&
22031          { ac_try='test -s conftest$ac_exeext'
22032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22033   (eval $ac_try) 2>&5
22034   ac_status=$?
22035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036   (exit $ac_status); }; }; then
22037   eval "$as_ac_var=yes"
22038 else
22039   echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22041
22042 eval "$as_ac_var=no"
22043 fi
22044 rm -f conftest.err conftest.$ac_objext \
22045       conftest$ac_exeext conftest.$ac_ext
22046 fi
22047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22049 if test `eval echo '${'$as_ac_var'}'` = yes; then
22050   cat >>confdefs.h <<_ACEOF
22051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22052 _ACEOF
22053
22054 fi
22055 done
22056
22057
22058 ############################################################
22059 # Checks for library functions.
22060 ############################################################
22061
22062
22063 for ac_func in vprintf
22064 do
22065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22066 echo "$as_me:$LINENO: checking for $ac_func" >&5
22067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22068 if eval "test \"\${$as_ac_var+set}\" = set"; then
22069   echo $ECHO_N "(cached) $ECHO_C" >&6
22070 else
22071   cat >conftest.$ac_ext <<_ACEOF
22072 /* confdefs.h.  */
22073 _ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h.  */
22077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22079 #define $ac_func innocuous_$ac_func
22080
22081 /* System header to define __stub macros and hopefully few prototypes,
22082     which can conflict with char $ac_func (); below.
22083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22084     <limits.h> exists even on freestanding compilers.  */
22085
22086 #ifdef __STDC__
22087 # include <limits.h>
22088 #else
22089 # include <assert.h>
22090 #endif
22091
22092 #undef $ac_func
22093
22094 /* Override any gcc2 internal prototype to avoid an error.  */
22095 #ifdef __cplusplus
22096 extern "C"
22097 {
22098 #endif
22099 /* We use char because int might match the return type of a gcc2
22100    builtin and then its argument prototype would still apply.  */
22101 char $ac_func ();
22102 /* The GNU C library defines this for functions which it implements
22103     to always fail with ENOSYS.  Some functions are actually named
22104     something starting with __ and the normal name is an alias.  */
22105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22106 choke me
22107 #else
22108 char (*f) () = $ac_func;
22109 #endif
22110 #ifdef __cplusplus
22111 }
22112 #endif
22113
22114 int
22115 main ()
22116 {
22117 return f != $ac_func;
22118   ;
22119   return 0;
22120 }
22121 _ACEOF
22122 rm -f conftest.$ac_objext conftest$ac_exeext
22123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22124   (eval $ac_link) 2>conftest.er1
22125   ac_status=$?
22126   grep -v '^ *+' conftest.er1 >conftest.err
22127   rm -f conftest.er1
22128   cat conftest.err >&5
22129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130   (exit $ac_status); } &&
22131          { ac_try='test -z "$ac_c_werror_flag"
22132                          || test ! -s conftest.err'
22133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134   (eval $ac_try) 2>&5
22135   ac_status=$?
22136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137   (exit $ac_status); }; } &&
22138          { ac_try='test -s conftest$ac_exeext'
22139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22140   (eval $ac_try) 2>&5
22141   ac_status=$?
22142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143   (exit $ac_status); }; }; then
22144   eval "$as_ac_var=yes"
22145 else
22146   echo "$as_me: failed program was:" >&5
22147 sed 's/^/| /' conftest.$ac_ext >&5
22148
22149 eval "$as_ac_var=no"
22150 fi
22151 rm -f conftest.err conftest.$ac_objext \
22152       conftest$ac_exeext conftest.$ac_ext
22153 fi
22154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22156 if test `eval echo '${'$as_ac_var'}'` = yes; then
22157   cat >>confdefs.h <<_ACEOF
22158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22159 _ACEOF
22160
22161 echo "$as_me:$LINENO: checking for _doprnt" >&5
22162 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
22163 if test "${ac_cv_func__doprnt+set}" = set; then
22164   echo $ECHO_N "(cached) $ECHO_C" >&6
22165 else
22166   cat >conftest.$ac_ext <<_ACEOF
22167 /* confdefs.h.  */
22168 _ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h.  */
22172 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
22173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22174 #define _doprnt innocuous__doprnt
22175
22176 /* System header to define __stub macros and hopefully few prototypes,
22177     which can conflict with char _doprnt (); below.
22178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22179     <limits.h> exists even on freestanding compilers.  */
22180
22181 #ifdef __STDC__
22182 # include <limits.h>
22183 #else
22184 # include <assert.h>
22185 #endif
22186
22187 #undef _doprnt
22188
22189 /* Override any gcc2 internal prototype to avoid an error.  */
22190 #ifdef __cplusplus
22191 extern "C"
22192 {
22193 #endif
22194 /* We use char because int might match the return type of a gcc2
22195    builtin and then its argument prototype would still apply.  */
22196 char _doprnt ();
22197 /* The GNU C library defines this for functions which it implements
22198     to always fail with ENOSYS.  Some functions are actually named
22199     something starting with __ and the normal name is an alias.  */
22200 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22201 choke me
22202 #else
22203 char (*f) () = _doprnt;
22204 #endif
22205 #ifdef __cplusplus
22206 }
22207 #endif
22208
22209 int
22210 main ()
22211 {
22212 return f != _doprnt;
22213   ;
22214   return 0;
22215 }
22216 _ACEOF
22217 rm -f conftest.$ac_objext conftest$ac_exeext
22218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22219   (eval $ac_link) 2>conftest.er1
22220   ac_status=$?
22221   grep -v '^ *+' conftest.er1 >conftest.err
22222   rm -f conftest.er1
22223   cat conftest.err >&5
22224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225   (exit $ac_status); } &&
22226          { ac_try='test -z "$ac_c_werror_flag"
22227                          || test ! -s conftest.err'
22228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22229   (eval $ac_try) 2>&5
22230   ac_status=$?
22231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232   (exit $ac_status); }; } &&
22233          { ac_try='test -s conftest$ac_exeext'
22234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22235   (eval $ac_try) 2>&5
22236   ac_status=$?
22237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238   (exit $ac_status); }; }; then
22239   ac_cv_func__doprnt=yes
22240 else
22241   echo "$as_me: failed program was:" >&5
22242 sed 's/^/| /' conftest.$ac_ext >&5
22243
22244 ac_cv_func__doprnt=no
22245 fi
22246 rm -f conftest.err conftest.$ac_objext \
22247       conftest$ac_exeext conftest.$ac_ext
22248 fi
22249 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
22250 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
22251 if test $ac_cv_func__doprnt = yes; then
22252
22253 cat >>confdefs.h <<\_ACEOF
22254 #define HAVE_DOPRNT 1
22255 _ACEOF
22256
22257 fi
22258
22259 fi
22260 done
22261
22262
22263
22264 ############################################################
22265 # Enable/disable special memory allocator for debugging.
22266 ############################################################
22267
22268 # Check whether --enable-dmalloc or --disable-dmalloc was given.
22269 if test "${enable_dmalloc+set}" = set; then
22270   enableval="$enable_dmalloc"
22271
22272 case "${enableval}" in
22273 yes)
22274         cat >>confdefs.h <<\_ACEOF
22275 #define DEBUG_MEMALLOC 1
22276 _ACEOF
22277
22278         ;;
22279 no)
22280         ;;
22281 *)
22282         { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dmalloc" >&5
22283 echo "$as_me: error: bad value ${enableval} for --enable-dmalloc" >&2;}
22284    { (exit 1); exit 1; }; }
22285         ;;
22286 esac
22287
22288 fi;
22289
22290 ############################################################
22291 # Enable/disable extra code for debugging.
22292 ############################################################
22293
22294 # Check whether --enable-debug or --disable-debug was given.
22295 if test "${enable_debug+set}" = set; then
22296   enableval="$enable_debug"
22297
22298 case "${enableval}" in
22299 yes)
22300         debug=yes
22301         cat >>confdefs.h <<\_ACEOF
22302 #define DEBUG 1
22303 _ACEOF
22304
22305         cat >>confdefs.h <<\_ACEOF
22306 #define DEBUG_OVERFLOW 1
22307 _ACEOF
22308
22309         if test "$GCC" = yes; then
22310                 CFLAGS="-g -O0"
22311         fi
22312         ;;
22313 no)
22314         debug=no
22315         ;;
22316 *)
22317         { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
22318 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
22319    { (exit 1); exit 1; }; }
22320         ;;
22321 esac
22322
22323 else
22324   debug=no
22325 fi;
22326
22327 if test "$GCC" = yes; then
22328         CFLAGS="$CFLAGS"
22329         #CFLAGS="$CFLAGS -std=c99"
22330         #CFLAGS="$CFLAGS -pedantic"
22331         #CFLAGS="$CFLAGS -pedantic-errors"
22332         #CFLAGS="$CFLAGS -W -Wall -Wno-long-long -Wformat -Wmissing-prototypes -Wstrict-prototypes"
22333 fi
22334
22335 ############################################################
22336 # Extra stuff for research purposes.
22337 ############################################################
22338
22339 # Check whether --enable-special0 or --disable-special0 was given.
22340 if test "${enable_special0+set}" = set; then
22341   enableval="$enable_special0"
22342
22343 case "${enableval}" in
22344 yes)
22345         if test "$GCC" = yes; then
22346                 CFLAGS="-g -O0"
22347         fi
22348         ;;
22349 no)
22350         ;;
22351 *)
22352         { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-special0" >&5
22353 echo "$as_me: error: bad value ${enableval} for --enable-special0" >&2;}
22354    { (exit 1); exit 1; }; }
22355         ;;
22356 esac
22357
22358 fi;
22359
22360 if test -n "$EXTRACFLAGS"; then
22361         CFLAGS="$CFLAGS $EXTRACFLAGS"
22362 fi
22363
22364 ############################################################
22365 # Generate the configuration header file.
22366 ############################################################
22367
22368           ac_config_headers="$ac_config_headers src/libjasper/include/jasper/jas_config.h"
22369
22370
22371 ############################################################
22372 # Generate the makefiles.
22373 ############################################################
22374
22375                                                                                                                                                                           ac_config_files="$ac_config_files Makefile src/Makefile src/appl/Makefile src/libjasper/Makefile src/libjasper/base/Makefile src/libjasper/bmp/Makefile src/libjasper/include/Makefile src/libjasper/include/jasper/Makefile src/libjasper/jp2/Makefile src/libjasper/jpc/Makefile src/libjasper/jpg/Makefile src/libjasper/mif/Makefile src/libjasper/pgx/Makefile src/libjasper/pnm/Makefile src/libjasper/ras/Makefile src/msvc/Makefile jasper.spec"
22376
22377 cat >confcache <<\_ACEOF
22378 # This file is a shell script that caches the results of configure
22379 # tests run on this system so they can be shared between configure
22380 # scripts and configure runs, see configure's option --config-cache.
22381 # It is not useful on other systems.  If it contains results you don't
22382 # want to keep, you may remove or edit it.
22383 #
22384 # config.status only pays attention to the cache file if you give it
22385 # the --recheck option to rerun configure.
22386 #
22387 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22388 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22389 # following values.
22390
22391 _ACEOF
22392
22393 # The following way of writing the cache mishandles newlines in values,
22394 # but we know of no workaround that is simple, portable, and efficient.
22395 # So, don't put newlines in cache variables' values.
22396 # Ultrix sh set writes to stderr and can't be redirected directly,
22397 # and sets the high bit in the cache file unless we assign to the vars.
22398 {
22399   (set) 2>&1 |
22400     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22401     *ac_space=\ *)
22402       # `set' does not quote correctly, so add quotes (double-quote
22403       # substitution turns \\\\ into \\, and sed turns \\ into \).
22404       sed -n \
22405         "s/'/'\\\\''/g;
22406           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22407       ;;
22408     *)
22409       # `set' quotes correctly as required by POSIX, so do not add quotes.
22410       sed -n \
22411         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22412       ;;
22413     esac;
22414 } |
22415   sed '
22416      t clear
22417      : clear
22418      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22419      t end
22420      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22421      : end' >>confcache
22422 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22423   if test -w $cache_file; then
22424     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22425     cat confcache >$cache_file
22426   else
22427     echo "not updating unwritable cache $cache_file"
22428   fi
22429 fi
22430 rm -f confcache
22431
22432 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22433 # Let make expand exec_prefix.
22434 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22435
22436 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22437 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22438 # trailing colons and then remove the whole line if VPATH becomes empty
22439 # (actually we leave an empty line to preserve line numbers).
22440 if test "x$srcdir" = x.; then
22441   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22442 s/:*\$(srcdir):*/:/;
22443 s/:*\${srcdir}:*/:/;
22444 s/:*@srcdir@:*/:/;
22445 s/^\([^=]*=[     ]*\):*/\1/;
22446 s/:*$//;
22447 s/^[^=]*=[       ]*$//;
22448 }'
22449 fi
22450
22451 DEFS=-DHAVE_CONFIG_H
22452
22453 ac_libobjs=
22454 ac_ltlibobjs=
22455 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22456   # 1. Remove the extension, and $U if already installed.
22457   ac_i=`echo "$ac_i" |
22458          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22459   # 2. Add them.
22460   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22461   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22462 done
22463 LIBOBJS=$ac_libobjs
22464
22465 LTLIBOBJS=$ac_ltlibobjs
22466
22467
22468 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22469   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22470 Usually this means the macro was only invoked conditionally." >&5
22471 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22472 Usually this means the macro was only invoked conditionally." >&2;}
22473    { (exit 1); exit 1; }; }
22474 fi
22475 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22476   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22477 Usually this means the macro was only invoked conditionally." >&5
22478 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22479 Usually this means the macro was only invoked conditionally." >&2;}
22480    { (exit 1); exit 1; }; }
22481 fi
22482 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22483   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22484 Usually this means the macro was only invoked conditionally." >&5
22485 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22486 Usually this means the macro was only invoked conditionally." >&2;}
22487    { (exit 1); exit 1; }; }
22488 fi
22489 if test -z "${HAVE_LIBJPEG_TRUE}" && test -z "${HAVE_LIBJPEG_FALSE}"; then
22490   { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBJPEG\" was never defined.
22491 Usually this means the macro was only invoked conditionally." >&5
22492 echo "$as_me: error: conditional \"HAVE_LIBJPEG\" was never defined.
22493 Usually this means the macro was only invoked conditionally." >&2;}
22494    { (exit 1); exit 1; }; }
22495 fi
22496 if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
22497   { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENGL\" was never defined.
22498 Usually this means the macro was only invoked conditionally." >&5
22499 echo "$as_me: error: conditional \"HAVE_OPENGL\" was never defined.
22500 Usually this means the macro was only invoked conditionally." >&2;}
22501    { (exit 1); exit 1; }; }
22502 fi
22503
22504 : ${CONFIG_STATUS=./config.status}
22505 ac_clean_files_save=$ac_clean_files
22506 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22507 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22508 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22509 cat >$CONFIG_STATUS <<_ACEOF
22510 #! $SHELL
22511 # Generated by $as_me.
22512 # Run this file to recreate the current configuration.
22513 # Compiler output produced by configure, useful for debugging
22514 # configure, is in config.log if it exists.
22515
22516 debug=false
22517 ac_cs_recheck=false
22518 ac_cs_silent=false
22519 SHELL=\${CONFIG_SHELL-$SHELL}
22520 _ACEOF
22521
22522 cat >>$CONFIG_STATUS <<\_ACEOF
22523 ## --------------------- ##
22524 ## M4sh Initialization.  ##
22525 ## --------------------- ##
22526
22527 # Be Bourne compatible
22528 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22529   emulate sh
22530   NULLCMD=:
22531   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22532   # is contrary to our usage.  Disable this feature.
22533   alias -g '${1+"$@"}'='"$@"'
22534 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22535   set -o posix
22536 fi
22537 DUALCASE=1; export DUALCASE # for MKS sh
22538
22539 # Support unset when possible.
22540 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22541   as_unset=unset
22542 else
22543   as_unset=false
22544 fi
22545
22546
22547 # Work around bugs in pre-3.0 UWIN ksh.
22548 $as_unset ENV MAIL MAILPATH
22549 PS1='$ '
22550 PS2='> '
22551 PS4='+ '
22552
22553 # NLS nuisances.
22554 for as_var in \
22555   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22556   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22557   LC_TELEPHONE LC_TIME
22558 do
22559   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22560     eval $as_var=C; export $as_var
22561   else
22562     $as_unset $as_var
22563   fi
22564 done
22565
22566 # Required to use basename.
22567 if expr a : '\(a\)' >/dev/null 2>&1; then
22568   as_expr=expr
22569 else
22570   as_expr=false
22571 fi
22572
22573 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22574   as_basename=basename
22575 else
22576   as_basename=false
22577 fi
22578
22579
22580 # Name of the executable.
22581 as_me=`$as_basename "$0" ||
22582 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22583          X"$0" : 'X\(//\)$' \| \
22584          X"$0" : 'X\(/\)$' \| \
22585          .     : '\(.\)' 2>/dev/null ||
22586 echo X/"$0" |
22587     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22588           /^X\/\(\/\/\)$/{ s//\1/; q; }
22589           /^X\/\(\/\).*/{ s//\1/; q; }
22590           s/.*/./; q'`
22591
22592
22593 # PATH needs CR, and LINENO needs CR and PATH.
22594 # Avoid depending upon Character Ranges.
22595 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22596 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22597 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22598 as_cr_digits='0123456789'
22599 as_cr_alnum=$as_cr_Letters$as_cr_digits
22600
22601 # The user is always right.
22602 if test "${PATH_SEPARATOR+set}" != set; then
22603   echo "#! /bin/sh" >conf$$.sh
22604   echo  "exit 0"   >>conf$$.sh
22605   chmod +x conf$$.sh
22606   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22607     PATH_SEPARATOR=';'
22608   else
22609     PATH_SEPARATOR=:
22610   fi
22611   rm -f conf$$.sh
22612 fi
22613
22614
22615   as_lineno_1=$LINENO
22616   as_lineno_2=$LINENO
22617   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22618   test "x$as_lineno_1" != "x$as_lineno_2" &&
22619   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22620   # Find who we are.  Look in the path if we contain no path at all
22621   # relative or not.
22622   case $0 in
22623     *[\\/]* ) as_myself=$0 ;;
22624     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22625 for as_dir in $PATH
22626 do
22627   IFS=$as_save_IFS
22628   test -z "$as_dir" && as_dir=.
22629   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22630 done
22631
22632        ;;
22633   esac
22634   # We did not find ourselves, most probably we were run as `sh COMMAND'
22635   # in which case we are not to be found in the path.
22636   if test "x$as_myself" = x; then
22637     as_myself=$0
22638   fi
22639   if test ! -f "$as_myself"; then
22640     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22641 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22642    { (exit 1); exit 1; }; }
22643   fi
22644   case $CONFIG_SHELL in
22645   '')
22646     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22647 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22648 do
22649   IFS=$as_save_IFS
22650   test -z "$as_dir" && as_dir=.
22651   for as_base in sh bash ksh sh5; do
22652          case $as_dir in
22653          /*)
22654            if ("$as_dir/$as_base" -c '
22655   as_lineno_1=$LINENO
22656   as_lineno_2=$LINENO
22657   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22658   test "x$as_lineno_1" != "x$as_lineno_2" &&
22659   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22660              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22661              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22662              CONFIG_SHELL=$as_dir/$as_base
22663              export CONFIG_SHELL
22664              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22665            fi;;
22666          esac
22667        done
22668 done
22669 ;;
22670   esac
22671
22672   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22673   # uniformly replaced by the line number.  The first 'sed' inserts a
22674   # line-number line before each line; the second 'sed' does the real
22675   # work.  The second script uses 'N' to pair each line-number line
22676   # with the numbered line, and appends trailing '-' during
22677   # substitution so that $LINENO is not a special case at line end.
22678   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22679   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22680   sed '=' <$as_myself |
22681     sed '
22682       N
22683       s,$,-,
22684       : loop
22685       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22686       t loop
22687       s,-$,,
22688       s,^['$as_cr_digits']*\n,,
22689     ' >$as_me.lineno &&
22690   chmod +x $as_me.lineno ||
22691     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22692 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22693    { (exit 1); exit 1; }; }
22694
22695   # Don't try to exec as it changes $[0], causing all sort of problems
22696   # (the dirname of $[0] is not the place where we might find the
22697   # original and so on.  Autoconf is especially sensible to this).
22698   . ./$as_me.lineno
22699   # Exit status is that of the last command.
22700   exit
22701 }
22702
22703
22704 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22705   *c*,-n*) ECHO_N= ECHO_C='
22706 ' ECHO_T='      ' ;;
22707   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22708   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22709 esac
22710
22711 if expr a : '\(a\)' >/dev/null 2>&1; then
22712   as_expr=expr
22713 else
22714   as_expr=false
22715 fi
22716
22717 rm -f conf$$ conf$$.exe conf$$.file
22718 echo >conf$$.file
22719 if ln -s conf$$.file conf$$ 2>/dev/null; then
22720   # We could just check for DJGPP; but this test a) works b) is more generic
22721   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22722   if test -f conf$$.exe; then
22723     # Don't use ln at all; we don't have any links
22724     as_ln_s='cp -p'
22725   else
22726     as_ln_s='ln -s'
22727   fi
22728 elif ln conf$$.file conf$$ 2>/dev/null; then
22729   as_ln_s=ln
22730 else
22731   as_ln_s='cp -p'
22732 fi
22733 rm -f conf$$ conf$$.exe conf$$.file
22734
22735 if mkdir -p . 2>/dev/null; then
22736   as_mkdir_p=:
22737 else
22738   test -d ./-p && rmdir ./-p
22739   as_mkdir_p=false
22740 fi
22741
22742 as_executable_p="test -f"
22743
22744 # Sed expression to map a string onto a valid CPP name.
22745 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22746
22747 # Sed expression to map a string onto a valid variable name.
22748 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22749
22750
22751 # IFS
22752 # We need space, tab and new line, in precisely that order.
22753 as_nl='
22754 '
22755 IFS="   $as_nl"
22756
22757 # CDPATH.
22758 $as_unset CDPATH
22759
22760 exec 6>&1
22761
22762 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22763 # report actual input values of CONFIG_FILES etc. instead of their
22764 # values after options handling.  Logging --version etc. is OK.
22765 exec 5>>config.log
22766 {
22767   echo
22768   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22769 ## Running $as_me. ##
22770 _ASBOX
22771 } >&5
22772 cat >&5 <<_CSEOF
22773
22774 This file was extended by jasper $as_me 1.900.1, which was
22775 generated by GNU Autoconf 2.59.  Invocation command line was
22776
22777   CONFIG_FILES    = $CONFIG_FILES
22778   CONFIG_HEADERS  = $CONFIG_HEADERS
22779   CONFIG_LINKS    = $CONFIG_LINKS
22780   CONFIG_COMMANDS = $CONFIG_COMMANDS
22781   $ $0 $@
22782
22783 _CSEOF
22784 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22785 echo >&5
22786 _ACEOF
22787
22788 # Files that config.status was made for.
22789 if test -n "$ac_config_files"; then
22790   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22791 fi
22792
22793 if test -n "$ac_config_headers"; then
22794   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22795 fi
22796
22797 if test -n "$ac_config_links"; then
22798   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22799 fi
22800
22801 if test -n "$ac_config_commands"; then
22802   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22803 fi
22804
22805 cat >>$CONFIG_STATUS <<\_ACEOF
22806
22807 ac_cs_usage="\
22808 \`$as_me' instantiates files from templates according to the
22809 current configuration.
22810
22811 Usage: $0 [OPTIONS] [FILE]...
22812
22813   -h, --help       print this help, then exit
22814   -V, --version    print version number, then exit
22815   -q, --quiet      do not print progress messages
22816   -d, --debug      don't remove temporary files
22817       --recheck    update $as_me by reconfiguring in the same conditions
22818   --file=FILE[:TEMPLATE]
22819                    instantiate the configuration file FILE
22820   --header=FILE[:TEMPLATE]
22821                    instantiate the configuration header FILE
22822
22823 Configuration files:
22824 $config_files
22825
22826 Configuration headers:
22827 $config_headers
22828
22829 Configuration commands:
22830 $config_commands
22831
22832 Report bugs to <bug-autoconf@gnu.org>."
22833 _ACEOF
22834
22835 cat >>$CONFIG_STATUS <<_ACEOF
22836 ac_cs_version="\\
22837 jasper config.status 1.900.1
22838 configured by $0, generated by GNU Autoconf 2.59,
22839   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22840
22841 Copyright (C) 2003 Free Software Foundation, Inc.
22842 This config.status script is free software; the Free Software Foundation
22843 gives unlimited permission to copy, distribute and modify it."
22844 srcdir=$srcdir
22845 INSTALL="$INSTALL"
22846 _ACEOF
22847
22848 cat >>$CONFIG_STATUS <<\_ACEOF
22849 # If no file are specified by the user, then we need to provide default
22850 # value.  By we need to know if files were specified by the user.
22851 ac_need_defaults=:
22852 while test $# != 0
22853 do
22854   case $1 in
22855   --*=*)
22856     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22857     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22858     ac_shift=:
22859     ;;
22860   -*)
22861     ac_option=$1
22862     ac_optarg=$2
22863     ac_shift=shift
22864     ;;
22865   *) # This is not an option, so the user has probably given explicit
22866      # arguments.
22867      ac_option=$1
22868      ac_need_defaults=false;;
22869   esac
22870
22871   case $ac_option in
22872   # Handling of the options.
22873 _ACEOF
22874 cat >>$CONFIG_STATUS <<\_ACEOF
22875   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22876     ac_cs_recheck=: ;;
22877   --version | --vers* | -V )
22878     echo "$ac_cs_version"; exit 0 ;;
22879   --he | --h)
22880     # Conflict between --help and --header
22881     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22882 Try \`$0 --help' for more information." >&5
22883 echo "$as_me: error: ambiguous option: $1
22884 Try \`$0 --help' for more information." >&2;}
22885    { (exit 1); exit 1; }; };;
22886   --help | --hel | -h )
22887     echo "$ac_cs_usage"; exit 0 ;;
22888   --debug | --d* | -d )
22889     debug=: ;;
22890   --file | --fil | --fi | --f )
22891     $ac_shift
22892     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22893     ac_need_defaults=false;;
22894   --header | --heade | --head | --hea )
22895     $ac_shift
22896     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22897     ac_need_defaults=false;;
22898   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22899   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22900     ac_cs_silent=: ;;
22901
22902   # This is an error.
22903   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22904 Try \`$0 --help' for more information." >&5
22905 echo "$as_me: error: unrecognized option: $1
22906 Try \`$0 --help' for more information." >&2;}
22907    { (exit 1); exit 1; }; } ;;
22908
22909   *) ac_config_targets="$ac_config_targets $1" ;;
22910
22911   esac
22912   shift
22913 done
22914
22915 ac_configure_extra_args=
22916
22917 if $ac_cs_silent; then
22918   exec 6>/dev/null
22919   ac_configure_extra_args="$ac_configure_extra_args --silent"
22920 fi
22921
22922 _ACEOF
22923 cat >>$CONFIG_STATUS <<_ACEOF
22924 if \$ac_cs_recheck; then
22925   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22926   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22927 fi
22928
22929 _ACEOF
22930
22931 cat >>$CONFIG_STATUS <<_ACEOF
22932 #
22933 # INIT-COMMANDS section.
22934 #
22935
22936 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22937
22938 _ACEOF
22939
22940
22941
22942 cat >>$CONFIG_STATUS <<\_ACEOF
22943 for ac_config_target in $ac_config_targets
22944 do
22945   case "$ac_config_target" in
22946   # Handling of arguments.
22947   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22948   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22949   "src/appl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/appl/Makefile" ;;
22950   "src/libjasper/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/Makefile" ;;
22951   "src/libjasper/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/base/Makefile" ;;
22952   "src/libjasper/bmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/bmp/Makefile" ;;
22953   "src/libjasper/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/include/Makefile" ;;
22954   "src/libjasper/include/jasper/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/include/jasper/Makefile" ;;
22955   "src/libjasper/jp2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/jp2/Makefile" ;;
22956   "src/libjasper/jpc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/jpc/Makefile" ;;
22957   "src/libjasper/jpg/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/jpg/Makefile" ;;
22958   "src/libjasper/mif/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/mif/Makefile" ;;
22959   "src/libjasper/pgx/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/pgx/Makefile" ;;
22960   "src/libjasper/pnm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/pnm/Makefile" ;;
22961   "src/libjasper/ras/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libjasper/ras/Makefile" ;;
22962   "src/msvc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/msvc/Makefile" ;;
22963   "jasper.spec" ) CONFIG_FILES="$CONFIG_FILES jasper.spec" ;;
22964   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22965   "src/libjasper/include/jasper/jas_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/libjasper/include/jasper/jas_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   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22980 fi
22981
22982 # Have a temporary directory for convenience.  Make it in the build tree
22983 # simply because there is no reason to put it here, and in addition,
22984 # creating and moving files from /tmp can sometimes cause problems.
22985 # Create a temporary directory, and hook for its removal unless debugging.
22986 $debug ||
22987 {
22988   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22989   trap '{ (exit 1); exit 1; }' 1 2 13 15
22990 }
22991
22992 # Create a (secure) tmp directory for tmp files.
22993
22994 {
22995   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22996   test -n "$tmp" && test -d "$tmp"
22997 }  ||
22998 {
22999   tmp=./confstat$$-$RANDOM
23000   (umask 077 && mkdir $tmp)
23001 } ||
23002 {
23003    echo "$me: cannot create a temporary directory in ." >&2
23004    { (exit 1); exit 1; }
23005 }
23006
23007 _ACEOF
23008
23009 cat >>$CONFIG_STATUS <<_ACEOF
23010
23011 #
23012 # CONFIG_FILES section.
23013 #
23014
23015 # No need to generate the scripts if there are no CONFIG_FILES.
23016 # This happens for instance when ./config.status config.h
23017 if test -n "\$CONFIG_FILES"; then
23018   # Protect against being on the right side of a sed subst in config.status.
23019   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23020    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23021 s,@SHELL@,$SHELL,;t t
23022 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23023 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23024 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23025 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23026 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23027 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23028 s,@exec_prefix@,$exec_prefix,;t t
23029 s,@prefix@,$prefix,;t t
23030 s,@program_transform_name@,$program_transform_name,;t t
23031 s,@bindir@,$bindir,;t t
23032 s,@sbindir@,$sbindir,;t t
23033 s,@libexecdir@,$libexecdir,;t t
23034 s,@datadir@,$datadir,;t t
23035 s,@sysconfdir@,$sysconfdir,;t t
23036 s,@sharedstatedir@,$sharedstatedir,;t t
23037 s,@localstatedir@,$localstatedir,;t t
23038 s,@libdir@,$libdir,;t t
23039 s,@includedir@,$includedir,;t t
23040 s,@oldincludedir@,$oldincludedir,;t t
23041 s,@infodir@,$infodir,;t t
23042 s,@mandir@,$mandir,;t t
23043 s,@build_alias@,$build_alias,;t t
23044 s,@host_alias@,$host_alias,;t t
23045 s,@target_alias@,$target_alias,;t t
23046 s,@DEFS@,$DEFS,;t t
23047 s,@ECHO_C@,$ECHO_C,;t t
23048 s,@ECHO_N@,$ECHO_N,;t t
23049 s,@ECHO_T@,$ECHO_T,;t t
23050 s,@LIBS@,$LIBS,;t t
23051 s,@build@,$build,;t t
23052 s,@build_cpu@,$build_cpu,;t t
23053 s,@build_vendor@,$build_vendor,;t t
23054 s,@build_os@,$build_os,;t t
23055 s,@host@,$host,;t t
23056 s,@host_cpu@,$host_cpu,;t t
23057 s,@host_vendor@,$host_vendor,;t t
23058 s,@host_os@,$host_os,;t t
23059 s,@target@,$target,;t t
23060 s,@target_cpu@,$target_cpu,;t t
23061 s,@target_vendor@,$target_vendor,;t t
23062 s,@target_os@,$target_os,;t t
23063 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23064 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23065 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23066 s,@CYGPATH_W@,$CYGPATH_W,;t t
23067 s,@PACKAGE@,$PACKAGE,;t t
23068 s,@VERSION@,$VERSION,;t t
23069 s,@ACLOCAL@,$ACLOCAL,;t t
23070 s,@AUTOCONF@,$AUTOCONF,;t t
23071 s,@AUTOMAKE@,$AUTOMAKE,;t t
23072 s,@AUTOHEADER@,$AUTOHEADER,;t t
23073 s,@MAKEINFO@,$MAKEINFO,;t t
23074 s,@install_sh@,$install_sh,;t t
23075 s,@STRIP@,$STRIP,;t t
23076 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23077 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23078 s,@mkdir_p@,$mkdir_p,;t t
23079 s,@AWK@,$AWK,;t t
23080 s,@SET_MAKE@,$SET_MAKE,;t t
23081 s,@am__leading_dot@,$am__leading_dot,;t t
23082 s,@AMTAR@,$AMTAR,;t t
23083 s,@am__tar@,$am__tar,;t t
23084 s,@am__untar@,$am__untar,;t t
23085 s,@JAS_MAJOR_VERSION@,$JAS_MAJOR_VERSION,;t t
23086 s,@JAS_MINOR_VERSION@,$JAS_MINOR_VERSION,;t t
23087 s,@JAS_MICRO_VERSION@,$JAS_MICRO_VERSION,;t t
23088 s,@JAS_VERSION@,$JAS_VERSION,;t t
23089 s,@JAS_RPM_RELEASE@,$JAS_RPM_RELEASE,;t t
23090 s,@LT_RELEASE@,$LT_RELEASE,;t t
23091 s,@LT_CURRENT@,$LT_CURRENT,;t t
23092 s,@LT_REVISION@,$LT_REVISION,;t t
23093 s,@LT_AGE@,$LT_AGE,;t t
23094 s,@CC@,$CC,;t t
23095 s,@CFLAGS@,$CFLAGS,;t t
23096 s,@LDFLAGS@,$LDFLAGS,;t t
23097 s,@CPPFLAGS@,$CPPFLAGS,;t t
23098 s,@ac_ct_CC@,$ac_ct_CC,;t t
23099 s,@EXEEXT@,$EXEEXT,;t t
23100 s,@OBJEXT@,$OBJEXT,;t t
23101 s,@DEPDIR@,$DEPDIR,;t t
23102 s,@am__include@,$am__include,;t t
23103 s,@am__quote@,$am__quote,;t t
23104 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23105 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23106 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23107 s,@CCDEPMODE@,$CCDEPMODE,;t t
23108 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23109 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23110 s,@RANLIB@,$RANLIB,;t t
23111 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23112 s,@SED@,$SED,;t t
23113 s,@EGREP@,$EGREP,;t t
23114 s,@LN_S@,$LN_S,;t t
23115 s,@ECHO@,$ECHO,;t t
23116 s,@AR@,$AR,;t t
23117 s,@ac_ct_AR@,$ac_ct_AR,;t t
23118 s,@CPP@,$CPP,;t t
23119 s,@CXX@,$CXX,;t t
23120 s,@CXXFLAGS@,$CXXFLAGS,;t t
23121 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23122 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23123 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23124 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23125 s,@CXXCPP@,$CXXCPP,;t t
23126 s,@F77@,$F77,;t t
23127 s,@FFLAGS@,$FFLAGS,;t t
23128 s,@ac_ct_F77@,$ac_ct_F77,;t t
23129 s,@LIBTOOL@,$LIBTOOL,;t t
23130 s,@X_CFLAGS@,$X_CFLAGS,;t t
23131 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
23132 s,@X_LIBS@,$X_LIBS,;t t
23133 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
23134 s,@HAVE_LIBJPEG_TRUE@,$HAVE_LIBJPEG_TRUE,;t t
23135 s,@HAVE_LIBJPEG_FALSE@,$HAVE_LIBJPEG_FALSE,;t t
23136 s,@HAVE_OPENGL_TRUE@,$HAVE_OPENGL_TRUE,;t t
23137 s,@HAVE_OPENGL_FALSE@,$HAVE_OPENGL_FALSE,;t t
23138 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
23139 s,@LIBOBJS@,$LIBOBJS,;t t
23140 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23141 CEOF
23142
23143 _ACEOF
23144
23145   cat >>$CONFIG_STATUS <<\_ACEOF
23146   # Split the substitutions into bite-sized pieces for seds with
23147   # small command number limits, like on Digital OSF/1 and HP-UX.
23148   ac_max_sed_lines=48
23149   ac_sed_frag=1 # Number of current file.
23150   ac_beg=1 # First line for current file.
23151   ac_end=$ac_max_sed_lines # Line after last line for current file.
23152   ac_more_lines=:
23153   ac_sed_cmds=
23154   while $ac_more_lines; do
23155     if test $ac_beg -gt 1; then
23156       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23157     else
23158       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23159     fi
23160     if test ! -s $tmp/subs.frag; then
23161       ac_more_lines=false
23162     else
23163       # The purpose of the label and of the branching condition is to
23164       # speed up the sed processing (if there are no `@' at all, there
23165       # is no need to browse any of the substitutions).
23166       # These are the two extra sed commands mentioned above.
23167       (echo ':t
23168   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23169       if test -z "$ac_sed_cmds"; then
23170         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23171       else
23172         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23173       fi
23174       ac_sed_frag=`expr $ac_sed_frag + 1`
23175       ac_beg=$ac_end
23176       ac_end=`expr $ac_end + $ac_max_sed_lines`
23177     fi
23178   done
23179   if test -z "$ac_sed_cmds"; then
23180     ac_sed_cmds=cat
23181   fi
23182 fi # test -n "$CONFIG_FILES"
23183
23184 _ACEOF
23185 cat >>$CONFIG_STATUS <<\_ACEOF
23186 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23187   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23188   case $ac_file in
23189   - | *:- | *:-:* ) # input from stdin
23190         cat >$tmp/stdin
23191         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23192         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23193   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23194         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23195   * )   ac_file_in=$ac_file.in ;;
23196   esac
23197
23198   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23199   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23200 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23201          X"$ac_file" : 'X\(//\)[^/]' \| \
23202          X"$ac_file" : 'X\(//\)$' \| \
23203          X"$ac_file" : 'X\(/\)' \| \
23204          .     : '\(.\)' 2>/dev/null ||
23205 echo X"$ac_file" |
23206     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23207           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23208           /^X\(\/\/\)$/{ s//\1/; q; }
23209           /^X\(\/\).*/{ s//\1/; q; }
23210           s/.*/./; q'`
23211   { if $as_mkdir_p; then
23212     mkdir -p "$ac_dir"
23213   else
23214     as_dir="$ac_dir"
23215     as_dirs=
23216     while test ! -d "$as_dir"; do
23217       as_dirs="$as_dir $as_dirs"
23218       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23220          X"$as_dir" : 'X\(//\)[^/]' \| \
23221          X"$as_dir" : 'X\(//\)$' \| \
23222          X"$as_dir" : 'X\(/\)' \| \
23223          .     : '\(.\)' 2>/dev/null ||
23224 echo X"$as_dir" |
23225     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23226           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23227           /^X\(\/\/\)$/{ s//\1/; q; }
23228           /^X\(\/\).*/{ s//\1/; q; }
23229           s/.*/./; q'`
23230     done
23231     test ! -n "$as_dirs" || mkdir $as_dirs
23232   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23233 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23234    { (exit 1); exit 1; }; }; }
23235
23236   ac_builddir=.
23237
23238 if test "$ac_dir" != .; then
23239   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23240   # A "../" for each directory in $ac_dir_suffix.
23241   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23242 else
23243   ac_dir_suffix= ac_top_builddir=
23244 fi
23245
23246 case $srcdir in
23247   .)  # No --srcdir option.  We are building in place.
23248     ac_srcdir=.
23249     if test -z "$ac_top_builddir"; then
23250        ac_top_srcdir=.
23251     else
23252        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23253     fi ;;
23254   [\\/]* | ?:[\\/]* )  # Absolute path.
23255     ac_srcdir=$srcdir$ac_dir_suffix;
23256     ac_top_srcdir=$srcdir ;;
23257   *) # Relative path.
23258     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23259     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23260 esac
23261
23262 # Do not use `cd foo && pwd` to compute absolute paths, because
23263 # the directories may not exist.
23264 case `pwd` in
23265 .) ac_abs_builddir="$ac_dir";;
23266 *)
23267   case "$ac_dir" in
23268   .) ac_abs_builddir=`pwd`;;
23269   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23270   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23271   esac;;
23272 esac
23273 case $ac_abs_builddir in
23274 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23275 *)
23276   case ${ac_top_builddir}. in
23277   .) ac_abs_top_builddir=$ac_abs_builddir;;
23278   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23279   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23280   esac;;
23281 esac
23282 case $ac_abs_builddir in
23283 .) ac_abs_srcdir=$ac_srcdir;;
23284 *)
23285   case $ac_srcdir in
23286   .) ac_abs_srcdir=$ac_abs_builddir;;
23287   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23288   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23289   esac;;
23290 esac
23291 case $ac_abs_builddir in
23292 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23293 *)
23294   case $ac_top_srcdir in
23295   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23296   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23297   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23298   esac;;
23299 esac
23300
23301
23302   case $INSTALL in
23303   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23304   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23305   esac
23306
23307   if test x"$ac_file" != x-; then
23308     { echo "$as_me:$LINENO: creating $ac_file" >&5
23309 echo "$as_me: creating $ac_file" >&6;}
23310     rm -f "$ac_file"
23311   fi
23312   # Let's still pretend it is `configure' which instantiates (i.e., don't
23313   # use $as_me), people would be surprised to read:
23314   #    /* config.h.  Generated by config.status.  */
23315   if test x"$ac_file" = x-; then
23316     configure_input=
23317   else
23318     configure_input="$ac_file.  "
23319   fi
23320   configure_input=$configure_input"Generated from `echo $ac_file_in |
23321                                      sed 's,.*/,,'` by configure."
23322
23323   # First look for the input files in the build tree, otherwise in the
23324   # src tree.
23325   ac_file_inputs=`IFS=:
23326     for f in $ac_file_in; do
23327       case $f in
23328       -) echo $tmp/stdin ;;
23329       [\\/$]*)
23330          # Absolute (can't be DOS-style, as IFS=:)
23331          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23332 echo "$as_me: error: cannot find input file: $f" >&2;}
23333    { (exit 1); exit 1; }; }
23334          echo "$f";;
23335       *) # Relative
23336          if test -f "$f"; then
23337            # Build tree
23338            echo "$f"
23339          elif test -f "$srcdir/$f"; then
23340            # Source tree
23341            echo "$srcdir/$f"
23342          else
23343            # /dev/null tree
23344            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23345 echo "$as_me: error: cannot find input file: $f" >&2;}
23346    { (exit 1); exit 1; }; }
23347          fi;;
23348       esac
23349     done` || { (exit 1); exit 1; }
23350 _ACEOF
23351 cat >>$CONFIG_STATUS <<_ACEOF
23352   sed "$ac_vpsub
23353 $extrasub
23354 _ACEOF
23355 cat >>$CONFIG_STATUS <<\_ACEOF
23356 :t
23357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23358 s,@configure_input@,$configure_input,;t t
23359 s,@srcdir@,$ac_srcdir,;t t
23360 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23361 s,@top_srcdir@,$ac_top_srcdir,;t t
23362 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23363 s,@builddir@,$ac_builddir,;t t
23364 s,@abs_builddir@,$ac_abs_builddir,;t t
23365 s,@top_builddir@,$ac_top_builddir,;t t
23366 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23367 s,@INSTALL@,$ac_INSTALL,;t t
23368 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23369   rm -f $tmp/stdin
23370   if test x"$ac_file" != x-; then
23371     mv $tmp/out $ac_file
23372   else
23373     cat $tmp/out
23374     rm -f $tmp/out
23375   fi
23376
23377 done
23378 _ACEOF
23379 cat >>$CONFIG_STATUS <<\_ACEOF
23380
23381 #
23382 # CONFIG_HEADER section.
23383 #
23384
23385 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23386 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23387 #
23388 # ac_d sets the value in "#define NAME VALUE" lines.
23389 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
23390 ac_dB='[         ].*$,\1#\2'
23391 ac_dC=' '
23392 ac_dD=',;t'
23393 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23394 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23395 ac_uB='$,\1#\2define\3'
23396 ac_uC=' '
23397 ac_uD=',;t'
23398
23399 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23400   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23401   case $ac_file in
23402   - | *:- | *:-:* ) # input from stdin
23403         cat >$tmp/stdin
23404         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23405         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23406   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23407         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23408   * )   ac_file_in=$ac_file.in ;;
23409   esac
23410
23411   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23412 echo "$as_me: creating $ac_file" >&6;}
23413
23414   # First look for the input files in the build tree, otherwise in the
23415   # src tree.
23416   ac_file_inputs=`IFS=:
23417     for f in $ac_file_in; do
23418       case $f in
23419       -) echo $tmp/stdin ;;
23420       [\\/$]*)
23421          # Absolute (can't be DOS-style, as IFS=:)
23422          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23423 echo "$as_me: error: cannot find input file: $f" >&2;}
23424    { (exit 1); exit 1; }; }
23425          # Do quote $f, to prevent DOS paths from being IFS'd.
23426          echo "$f";;
23427       *) # Relative
23428          if test -f "$f"; then
23429            # Build tree
23430            echo "$f"
23431          elif test -f "$srcdir/$f"; then
23432            # Source tree
23433            echo "$srcdir/$f"
23434          else
23435            # /dev/null tree
23436            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23437 echo "$as_me: error: cannot find input file: $f" >&2;}
23438    { (exit 1); exit 1; }; }
23439          fi;;
23440       esac
23441     done` || { (exit 1); exit 1; }
23442   # Remove the trailing spaces.
23443   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23444
23445 _ACEOF
23446
23447 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23448 # `conftest.undefs', that substitutes the proper values into
23449 # config.h.in to produce config.h.  The first handles `#define'
23450 # templates, and the second `#undef' templates.
23451 # And first: Protect against being on the right side of a sed subst in
23452 # config.status.  Protect against being in an unquoted here document
23453 # in config.status.
23454 rm -f conftest.defines conftest.undefs
23455 # Using a here document instead of a string reduces the quoting nightmare.
23456 # Putting comments in sed scripts is not portable.
23457 #
23458 # `end' is used to avoid that the second main sed command (meant for
23459 # 0-ary CPP macros) applies to n-ary macro definitions.
23460 # See the Autoconf documentation for `clear'.
23461 cat >confdef2sed.sed <<\_ACEOF
23462 s/[\\&,]/\\&/g
23463 s,[\\$`],\\&,g
23464 t clear
23465 : clear
23466 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23467 t end
23468 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23469 : end
23470 _ACEOF
23471 # If some macros were called several times there might be several times
23472 # the same #defines, which is useless.  Nevertheless, we may not want to
23473 # sort them, since we want the *last* AC-DEFINE to be honored.
23474 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23475 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23476 rm -f confdef2sed.sed
23477
23478 # This sed command replaces #undef with comments.  This is necessary, for
23479 # example, in the case of _POSIX_SOURCE, which is predefined and required
23480 # on some systems where configure will not decide to define it.
23481 cat >>conftest.undefs <<\_ACEOF
23482 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23483 _ACEOF
23484
23485 # Break up conftest.defines because some shells have a limit on the size
23486 # of here documents, and old seds have small limits too (100 cmds).
23487 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23488 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23489 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23490 echo '  :' >>$CONFIG_STATUS
23491 rm -f conftest.tail
23492 while grep . conftest.defines >/dev/null
23493 do
23494   # Write a limited-size here document to $tmp/defines.sed.
23495   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23496   # Speed up: don't consider the non `#define' lines.
23497   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
23498   # Work around the forget-to-reset-the-flag bug.
23499   echo 't clr' >>$CONFIG_STATUS
23500   echo ': clr' >>$CONFIG_STATUS
23501   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23502   echo 'CEOF
23503   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23504   rm -f $tmp/in
23505   mv $tmp/out $tmp/in
23506 ' >>$CONFIG_STATUS
23507   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23508   rm -f conftest.defines
23509   mv conftest.tail conftest.defines
23510 done
23511 rm -f conftest.defines
23512 echo '  fi # grep' >>$CONFIG_STATUS
23513 echo >>$CONFIG_STATUS
23514
23515 # Break up conftest.undefs because some shells have a limit on the size
23516 # of here documents, and old seds have small limits too (100 cmds).
23517 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23518 rm -f conftest.tail
23519 while grep . conftest.undefs >/dev/null
23520 do
23521   # Write a limited-size here document to $tmp/undefs.sed.
23522   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23523   # Speed up: don't consider the non `#undef'
23524   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23525   # Work around the forget-to-reset-the-flag bug.
23526   echo 't clr' >>$CONFIG_STATUS
23527   echo ': clr' >>$CONFIG_STATUS
23528   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23529   echo 'CEOF
23530   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23531   rm -f $tmp/in
23532   mv $tmp/out $tmp/in
23533 ' >>$CONFIG_STATUS
23534   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23535   rm -f conftest.undefs
23536   mv conftest.tail conftest.undefs
23537 done
23538 rm -f conftest.undefs
23539
23540 cat >>$CONFIG_STATUS <<\_ACEOF
23541   # Let's still pretend it is `configure' which instantiates (i.e., don't
23542   # use $as_me), people would be surprised to read:
23543   #    /* config.h.  Generated by config.status.  */
23544   if test x"$ac_file" = x-; then
23545     echo "/* Generated by configure.  */" >$tmp/config.h
23546   else
23547     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23548   fi
23549   cat $tmp/in >>$tmp/config.h
23550   rm -f $tmp/in
23551   if test x"$ac_file" != x-; then
23552     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23553       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23554 echo "$as_me: $ac_file is unchanged" >&6;}
23555     else
23556       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23557 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23558          X"$ac_file" : 'X\(//\)[^/]' \| \
23559          X"$ac_file" : 'X\(//\)$' \| \
23560          X"$ac_file" : 'X\(/\)' \| \
23561          .     : '\(.\)' 2>/dev/null ||
23562 echo X"$ac_file" |
23563     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23564           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23565           /^X\(\/\/\)$/{ s//\1/; q; }
23566           /^X\(\/\).*/{ s//\1/; q; }
23567           s/.*/./; q'`
23568       { if $as_mkdir_p; then
23569     mkdir -p "$ac_dir"
23570   else
23571     as_dir="$ac_dir"
23572     as_dirs=
23573     while test ! -d "$as_dir"; do
23574       as_dirs="$as_dir $as_dirs"
23575       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23577          X"$as_dir" : 'X\(//\)[^/]' \| \
23578          X"$as_dir" : 'X\(//\)$' \| \
23579          X"$as_dir" : 'X\(/\)' \| \
23580          .     : '\(.\)' 2>/dev/null ||
23581 echo X"$as_dir" |
23582     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23583           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23584           /^X\(\/\/\)$/{ s//\1/; q; }
23585           /^X\(\/\).*/{ s//\1/; q; }
23586           s/.*/./; q'`
23587     done
23588     test ! -n "$as_dirs" || mkdir $as_dirs
23589   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23590 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23591    { (exit 1); exit 1; }; }; }
23592
23593       rm -f $ac_file
23594       mv $tmp/config.h $ac_file
23595     fi
23596   else
23597     cat $tmp/config.h
23598     rm -f $tmp/config.h
23599   fi
23600 # Compute $ac_file's index in $config_headers.
23601 _am_stamp_count=1
23602 for _am_header in $config_headers :; do
23603   case $_am_header in
23604     $ac_file | $ac_file:* )
23605       break ;;
23606     * )
23607       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23608   esac
23609 done
23610 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23611 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23612          X$ac_file : 'X\(//\)[^/]' \| \
23613          X$ac_file : 'X\(//\)$' \| \
23614          X$ac_file : 'X\(/\)' \| \
23615          .     : '\(.\)' 2>/dev/null ||
23616 echo X$ac_file |
23617     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23618           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23619           /^X\(\/\/\)$/{ s//\1/; q; }
23620           /^X\(\/\).*/{ s//\1/; q; }
23621           s/.*/./; q'`/stamp-h$_am_stamp_count
23622 done
23623 _ACEOF
23624 cat >>$CONFIG_STATUS <<\_ACEOF
23625
23626 #
23627 # CONFIG_COMMANDS section.
23628 #
23629 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23630   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23631   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23632   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23633 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23634          X"$ac_dest" : 'X\(//\)[^/]' \| \
23635          X"$ac_dest" : 'X\(//\)$' \| \
23636          X"$ac_dest" : 'X\(/\)' \| \
23637          .     : '\(.\)' 2>/dev/null ||
23638 echo X"$ac_dest" |
23639     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23640           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23641           /^X\(\/\/\)$/{ s//\1/; q; }
23642           /^X\(\/\).*/{ s//\1/; q; }
23643           s/.*/./; q'`
23644   { if $as_mkdir_p; then
23645     mkdir -p "$ac_dir"
23646   else
23647     as_dir="$ac_dir"
23648     as_dirs=
23649     while test ! -d "$as_dir"; do
23650       as_dirs="$as_dir $as_dirs"
23651       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23652 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23653          X"$as_dir" : 'X\(//\)[^/]' \| \
23654          X"$as_dir" : 'X\(//\)$' \| \
23655          X"$as_dir" : 'X\(/\)' \| \
23656          .     : '\(.\)' 2>/dev/null ||
23657 echo X"$as_dir" |
23658     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23659           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23660           /^X\(\/\/\)$/{ s//\1/; q; }
23661           /^X\(\/\).*/{ s//\1/; q; }
23662           s/.*/./; q'`
23663     done
23664     test ! -n "$as_dirs" || mkdir $as_dirs
23665   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23666 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23667    { (exit 1); exit 1; }; }; }
23668
23669   ac_builddir=.
23670
23671 if test "$ac_dir" != .; then
23672   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23673   # A "../" for each directory in $ac_dir_suffix.
23674   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23675 else
23676   ac_dir_suffix= ac_top_builddir=
23677 fi
23678
23679 case $srcdir in
23680   .)  # No --srcdir option.  We are building in place.
23681     ac_srcdir=.
23682     if test -z "$ac_top_builddir"; then
23683        ac_top_srcdir=.
23684     else
23685        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23686     fi ;;
23687   [\\/]* | ?:[\\/]* )  # Absolute path.
23688     ac_srcdir=$srcdir$ac_dir_suffix;
23689     ac_top_srcdir=$srcdir ;;
23690   *) # Relative path.
23691     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23692     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23693 esac
23694
23695 # Do not use `cd foo && pwd` to compute absolute paths, because
23696 # the directories may not exist.
23697 case `pwd` in
23698 .) ac_abs_builddir="$ac_dir";;
23699 *)
23700   case "$ac_dir" in
23701   .) ac_abs_builddir=`pwd`;;
23702   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23703   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23704   esac;;
23705 esac
23706 case $ac_abs_builddir in
23707 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23708 *)
23709   case ${ac_top_builddir}. in
23710   .) ac_abs_top_builddir=$ac_abs_builddir;;
23711   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23712   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23713   esac;;
23714 esac
23715 case $ac_abs_builddir in
23716 .) ac_abs_srcdir=$ac_srcdir;;
23717 *)
23718   case $ac_srcdir in
23719   .) ac_abs_srcdir=$ac_abs_builddir;;
23720   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23721   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23722   esac;;
23723 esac
23724 case $ac_abs_builddir in
23725 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23726 *)
23727   case $ac_top_srcdir in
23728   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23729   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23730   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23731   esac;;
23732 esac
23733
23734
23735   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23736 echo "$as_me: executing $ac_dest commands" >&6;}
23737   case $ac_dest in
23738     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23739   # Strip MF so we end up with the name of the file.
23740   mf=`echo "$mf" | sed -e 's/:.*$//'`
23741   # Check whether this is an Automake generated Makefile or not.
23742   # We used to match only the files named `Makefile.in', but
23743   # some people rename them; so instead we look at the file content.
23744   # Grep'ing the first line is not enough: some people post-process
23745   # each Makefile.in and add a new line on top of each file to say so.
23746   # So let's grep whole file.
23747   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23748     dirpart=`(dirname "$mf") 2>/dev/null ||
23749 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23750          X"$mf" : 'X\(//\)[^/]' \| \
23751          X"$mf" : 'X\(//\)$' \| \
23752          X"$mf" : 'X\(/\)' \| \
23753          .     : '\(.\)' 2>/dev/null ||
23754 echo X"$mf" |
23755     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23756           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23757           /^X\(\/\/\)$/{ s//\1/; q; }
23758           /^X\(\/\).*/{ s//\1/; q; }
23759           s/.*/./; q'`
23760   else
23761     continue
23762   fi
23763   # Extract the definition of DEPDIR, am__include, and am__quote
23764   # from the Makefile without running `make'.
23765   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23766   test -z "$DEPDIR" && continue
23767   am__include=`sed -n 's/^am__include = //p' < "$mf"`
23768   test -z "am__include" && continue
23769   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23770   # When using ansi2knr, U may be empty or an underscore; expand it
23771   U=`sed -n 's/^U = //p' < "$mf"`
23772   # Find all dependency output files, they are included files with
23773   # $(DEPDIR) in their names.  We invoke sed twice because it is the
23774   # simplest approach to changing $(DEPDIR) to its actual value in the
23775   # expansion.
23776   for file in `sed -n "
23777     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23778        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23779     # Make sure the directory exists.
23780     test -f "$dirpart/$file" && continue
23781     fdir=`(dirname "$file") 2>/dev/null ||
23782 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23783          X"$file" : 'X\(//\)[^/]' \| \
23784          X"$file" : 'X\(//\)$' \| \
23785          X"$file" : 'X\(/\)' \| \
23786          .     : '\(.\)' 2>/dev/null ||
23787 echo X"$file" |
23788     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23789           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23790           /^X\(\/\/\)$/{ s//\1/; q; }
23791           /^X\(\/\).*/{ s//\1/; q; }
23792           s/.*/./; q'`
23793     { if $as_mkdir_p; then
23794     mkdir -p $dirpart/$fdir
23795   else
23796     as_dir=$dirpart/$fdir
23797     as_dirs=
23798     while test ! -d "$as_dir"; do
23799       as_dirs="$as_dir $as_dirs"
23800       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23801 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23802          X"$as_dir" : 'X\(//\)[^/]' \| \
23803          X"$as_dir" : 'X\(//\)$' \| \
23804          X"$as_dir" : 'X\(/\)' \| \
23805          .     : '\(.\)' 2>/dev/null ||
23806 echo X"$as_dir" |
23807     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23808           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23809           /^X\(\/\/\)$/{ s//\1/; q; }
23810           /^X\(\/\).*/{ s//\1/; q; }
23811           s/.*/./; q'`
23812     done
23813     test ! -n "$as_dirs" || mkdir $as_dirs
23814   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23815 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23816    { (exit 1); exit 1; }; }; }
23817
23818     # echo "creating $dirpart/$file"
23819     echo '# dummy' > "$dirpart/$file"
23820   done
23821 done
23822  ;;
23823   esac
23824 done
23825 _ACEOF
23826
23827 cat >>$CONFIG_STATUS <<\_ACEOF
23828
23829 { (exit 0); exit 0; }
23830 _ACEOF
23831 chmod +x $CONFIG_STATUS
23832 ac_clean_files=$ac_clean_files_save
23833
23834
23835 # configure is writing to config.log, and then calls config.status.
23836 # config.status does its own redirection, appending to config.log.
23837 # Unfortunately, on DOS this fails, as config.log is still kept open
23838 # by configure, so config.status won't be able to write to it; its
23839 # output is simply discarded.  So we exec the FD to /dev/null,
23840 # effectively closing config.log, so it can be properly (re)opened and
23841 # appended to by config.status.  When coming back to configure, we
23842 # need to make the FD available again.
23843 if test "$no_create" != yes; then
23844   ac_cs_success=:
23845   ac_config_status_args=
23846   test "$silent" = yes &&
23847     ac_config_status_args="$ac_config_status_args --quiet"
23848   exec 5>/dev/null
23849   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23850   exec 5>>config.log
23851   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23852   # would make configure fail if this is the last instruction.
23853   $ac_cs_success || { (exit 1); exit 1; }
23854 fi
23855
23856