Imported Upstream version 1.3.1
[platform/upstream/libjpeg-turbo.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjpeg-turbo 1.3.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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289        echo_test_string="`eval $cmd`" &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME='libjpeg-turbo'
423 PACKAGE_TARNAME='libjpeg-turbo'
424 PACKAGE_VERSION='1.3.1'
425 PACKAGE_STRING='libjpeg-turbo 1.3.1'
426 PACKAGE_BUGREPORT=''
427
428 ac_default_prefix=/opt/libjpeg-turbo
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 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 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 CPP CCAS CCASFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL JPEG_LIB_VERSION JPEG_LIB_VERSION_DECIMAL SO_MAJOR_VERSION SO_MINOR_VERSION LIBTOOL_CURRENT SO_AGE MEM_SRCDST_FUNCTIONS VERSION_SCRIPT_TRUE VERSION_SCRIPT_FALSE VERSION_SCRIPT_FLAG WITH_ARITH_ENC_TRUE WITH_ARITH_ENC_FALSE WITH_ARITH_DEC_TRUE WITH_ARITH_DEC_FALSE WITH_ARITH_TRUE WITH_ARITH_FALSE JAVAC JAVACFLAGS JAR JAVA JNI_CFLAGS WITH_JAVA_TRUE WITH_JAVA_FALSE WITH_JAVA JAVA_RPM_CONTENTS_1 JAVA_RPM_CONTENTS_2 NASM NAFLAGS WITH_SIMD_TRUE WITH_SIMD_FALSE WITH_SSE_FLOAT_DCT_TRUE WITH_SSE_FLOAT_DCT_FALSE SIMD_I386_TRUE SIMD_I386_FALSE SIMD_X86_64_TRUE SIMD_X86_64_FALSE SIMD_ARM_TRUE SIMD_ARM_FALSE X86_64_TRUE X86_64_FALSE WITH_TURBOJPEG_TRUE WITH_TURBOJPEG_FALSE PKGNAME RPMARCH RPM_CONFIG_ARGS DEBARCH BUILD 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_CCAS_set=${CCAS+set}
928 ac_env_CCAS_value=$CCAS
929 ac_cv_env_CCAS_set=${CCAS+set}
930 ac_cv_env_CCAS_value=$CCAS
931 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
932 ac_env_CCASFLAGS_value=$CCASFLAGS
933 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
934 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
935 ac_env_CXX_set=${CXX+set}
936 ac_env_CXX_value=$CXX
937 ac_cv_env_CXX_set=${CXX+set}
938 ac_cv_env_CXX_value=$CXX
939 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
940 ac_env_CXXFLAGS_value=$CXXFLAGS
941 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
942 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
943 ac_env_CXXCPP_set=${CXXCPP+set}
944 ac_env_CXXCPP_value=$CXXCPP
945 ac_cv_env_CXXCPP_set=${CXXCPP+set}
946 ac_cv_env_CXXCPP_value=$CXXCPP
947 ac_env_F77_set=${F77+set}
948 ac_env_F77_value=$F77
949 ac_cv_env_F77_set=${F77+set}
950 ac_cv_env_F77_value=$F77
951 ac_env_FFLAGS_set=${FFLAGS+set}
952 ac_env_FFLAGS_value=$FFLAGS
953 ac_cv_env_FFLAGS_set=${FFLAGS+set}
954 ac_cv_env_FFLAGS_value=$FFLAGS
955 ac_env_JPEG_LIB_VERSION_set=${JPEG_LIB_VERSION+set}
956 ac_env_JPEG_LIB_VERSION_value=$JPEG_LIB_VERSION
957 ac_cv_env_JPEG_LIB_VERSION_set=${JPEG_LIB_VERSION+set}
958 ac_cv_env_JPEG_LIB_VERSION_value=$JPEG_LIB_VERSION
959 ac_env_SO_MAJOR_VERSION_set=${SO_MAJOR_VERSION+set}
960 ac_env_SO_MAJOR_VERSION_value=$SO_MAJOR_VERSION
961 ac_cv_env_SO_MAJOR_VERSION_set=${SO_MAJOR_VERSION+set}
962 ac_cv_env_SO_MAJOR_VERSION_value=$SO_MAJOR_VERSION
963 ac_env_SO_MINOR_VERSION_set=${SO_MINOR_VERSION+set}
964 ac_env_SO_MINOR_VERSION_value=$SO_MINOR_VERSION
965 ac_cv_env_SO_MINOR_VERSION_set=${SO_MINOR_VERSION+set}
966 ac_cv_env_SO_MINOR_VERSION_value=$SO_MINOR_VERSION
967 ac_env_JAVAC_set=${JAVAC+set}
968 ac_env_JAVAC_value=$JAVAC
969 ac_cv_env_JAVAC_set=${JAVAC+set}
970 ac_cv_env_JAVAC_value=$JAVAC
971 ac_env_JAVACFLAGS_set=${JAVACFLAGS+set}
972 ac_env_JAVACFLAGS_value=$JAVACFLAGS
973 ac_cv_env_JAVACFLAGS_set=${JAVACFLAGS+set}
974 ac_cv_env_JAVACFLAGS_value=$JAVACFLAGS
975 ac_env_JAR_set=${JAR+set}
976 ac_env_JAR_value=$JAR
977 ac_cv_env_JAR_set=${JAR+set}
978 ac_cv_env_JAR_value=$JAR
979 ac_env_JAVA_set=${JAVA+set}
980 ac_env_JAVA_value=$JAVA
981 ac_cv_env_JAVA_set=${JAVA+set}
982 ac_cv_env_JAVA_value=$JAVA
983 ac_env_JNI_CFLAGS_set=${JNI_CFLAGS+set}
984 ac_env_JNI_CFLAGS_value=$JNI_CFLAGS
985 ac_cv_env_JNI_CFLAGS_set=${JNI_CFLAGS+set}
986 ac_cv_env_JNI_CFLAGS_value=$JNI_CFLAGS
987 ac_env_PKGNAME_set=${PKGNAME+set}
988 ac_env_PKGNAME_value=$PKGNAME
989 ac_cv_env_PKGNAME_set=${PKGNAME+set}
990 ac_cv_env_PKGNAME_value=$PKGNAME
991
992 #
993 # Report the --help message.
994 #
995 if test "$ac_init_help" = "long"; then
996   # Omit some internal or obsolete options to make the list less imposing.
997   # This message is too long to be a string in the A/UX 3.1 sh.
998   cat <<_ACEOF
999 \`configure' configures libjpeg-turbo 1.3.1 to adapt to many kinds of systems.
1000
1001 Usage: $0 [OPTION]... [VAR=VALUE]...
1002
1003 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1004 VAR=VALUE.  See below for descriptions of some of the useful variables.
1005
1006 Defaults for the options are specified in brackets.
1007
1008 Configuration:
1009   -h, --help              display this help and exit
1010       --help=short        display options specific to this package
1011       --help=recursive    display the short help of all the included packages
1012   -V, --version           display version information and exit
1013   -q, --quiet, --silent   do not print \`checking...' messages
1014       --cache-file=FILE   cache test results in FILE [disabled]
1015   -C, --config-cache      alias for \`--cache-file=config.cache'
1016   -n, --no-create         do not create output files
1017       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1018
1019 _ACEOF
1020
1021   cat <<_ACEOF
1022 Installation directories:
1023   --prefix=PREFIX         install architecture-independent files in PREFIX
1024                           [$ac_default_prefix]
1025   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1026                           [PREFIX]
1027
1028 By default, \`make install' will install all the files in
1029 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1030 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1031 for instance \`--prefix=\$HOME'.
1032
1033 For better control, use the options below.
1034
1035 Fine tuning of the installation directories:
1036   --bindir=DIR           user executables [EPREFIX/bin]
1037   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1038   --libexecdir=DIR       program executables [EPREFIX/libexec]
1039   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1040   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1041   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1042   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1043   --libdir=DIR           object code libraries [EPREFIX/lib]
1044   --includedir=DIR       C header files [PREFIX/include]
1045   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1046   --infodir=DIR          info documentation [PREFIX/info]
1047   --mandir=DIR           man documentation [PREFIX/man]
1048 _ACEOF
1049
1050   cat <<\_ACEOF
1051
1052 Program names:
1053   --program-prefix=PREFIX            prepend PREFIX to installed program names
1054   --program-suffix=SUFFIX            append SUFFIX to installed program names
1055   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1056
1057 System types:
1058   --build=BUILD     configure for building on BUILD [guessed]
1059   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1060 _ACEOF
1061 fi
1062
1063 if test -n "$ac_init_help"; then
1064   case $ac_init_help in
1065      short | recursive ) echo "Configuration of libjpeg-turbo 1.3.1:";;
1066    esac
1067   cat <<\_ACEOF
1068
1069 Optional Features:
1070   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1071   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1072   --disable-dependency-tracking  speeds up one-time build
1073   --enable-dependency-tracking   do not reject slow dependency extractors
1074   --enable-shared[=PKGS]
1075                           build shared libraries [default=yes]
1076   --enable-static[=PKGS]
1077                           build static libraries [default=yes]
1078   --enable-fast-install[=PKGS]
1079                           optimize for fast installation [default=yes]
1080   --disable-libtool-lock  avoid locking (might break parallel builds)
1081   --disable-ld-version-script
1082                           Disable linker version script for libjpeg-turbo
1083                           (default is to use linker version script if the
1084                           linker supports it)
1085
1086 Optional Packages:
1087   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1088   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1089   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1090   --with-pic              try to use only PIC/non-PIC objects [default=use
1091                           both]
1092   --with-tags[=TAGS]
1093                           include additional configurations [automatic]
1094   --with-jpeg7            Emulate libjpeg v7 API/ABI (this makes libjpeg-turbo
1095                           backward incompatible with libjpeg v6b.)
1096   --with-jpeg8            Emulate libjpeg v8 API/ABI (this makes libjpeg-turbo
1097                           backward incompatible with libjpeg v6b.)
1098   --without-mem-srcdst    Do not include in-memory source/destination manager
1099                           functions when emulating the libjpeg v6b or v7
1100                           API/ABI
1101   --without-arith-enc     Do not include arithmetic encoding support
1102   --without-arith-dec     Do not include arithmetic decoding support
1103   --without-turbojpeg     Do not include the TurboJPEG wrapper library and
1104                           associated test programs
1105   --with-java             Build Java wrapper for the TurboJPEG library
1106   --with-gas-preprocessor Force using gas-preprocessor.pl on ARM.
1107   --without-simd          Do not include SIMD extensions
1108
1109 Some influential environment variables:
1110   CC          C compiler command
1111   CFLAGS      C compiler flags
1112   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1113               nonstandard directory <lib dir>
1114   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1115               headers in a nonstandard directory <include dir>
1116   CPP         C preprocessor
1117   CCAS        assembler compiler command (defaults to CC)
1118   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1119   CXX         C++ compiler command
1120   CXXFLAGS    C++ compiler flags
1121   CXXCPP      C++ preprocessor
1122   F77         Fortran 77 compiler command
1123   FFLAGS      Fortran 77 compiler flags
1124   JPEG_LIB_VERSION
1125               libjpeg API version (62, 70, or 80)
1126   SO_MAJOR_VERSION
1127               Major version of the libjpeg-turbo shared library (default is
1128               determined by the API version)
1129   SO_MINOR_VERSION
1130               Minor version of the libjpeg-turbo shared library (default is
1131               determined by the API version)
1132   JAVAC       Java compiler command (default: javac)
1133   JAVACFLAGS  Java compiler flags
1134   JAR         Java archive command (default: jar)
1135   JAVA        Java runtime command (default: java)
1136   JNI_CFLAGS  C compiler flags needed to include jni.h (default:
1137               -I/System/Library/Frameworks/JavaVM.framework/Headers on OS X,
1138               '-I/usr/java/include -I/usr/java/include/solaris' on Solaris,
1139               and '-I/usr/java/default/include
1140               -I/usr/java/default/include/linux' on Linux)
1141   PKGNAME     distribution package name (default: libjpeg-turbo)
1142
1143 Use these variables to override the choices made by `configure' or to help
1144 it to find libraries and programs with nonstandard names/locations.
1145
1146 _ACEOF
1147 fi
1148
1149 if test "$ac_init_help" = "recursive"; then
1150   # If there are subdirs, report their specific --help.
1151   ac_popdir=`pwd`
1152   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1153     test -d $ac_dir || continue
1154     ac_builddir=.
1155
1156 if test "$ac_dir" != .; then
1157   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1158   # A "../" for each directory in $ac_dir_suffix.
1159   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1160 else
1161   ac_dir_suffix= ac_top_builddir=
1162 fi
1163
1164 case $srcdir in
1165   .)  # No --srcdir option.  We are building in place.
1166     ac_srcdir=.
1167     if test -z "$ac_top_builddir"; then
1168        ac_top_srcdir=.
1169     else
1170        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1171     fi ;;
1172   [\\/]* | ?:[\\/]* )  # Absolute path.
1173     ac_srcdir=$srcdir$ac_dir_suffix;
1174     ac_top_srcdir=$srcdir ;;
1175   *) # Relative path.
1176     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1177     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1178 esac
1179
1180 # Do not use `cd foo && pwd` to compute absolute paths, because
1181 # the directories may not exist.
1182 case `pwd` in
1183 .) ac_abs_builddir="$ac_dir";;
1184 *)
1185   case "$ac_dir" in
1186   .) ac_abs_builddir=`pwd`;;
1187   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1188   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1189   esac;;
1190 esac
1191 case $ac_abs_builddir in
1192 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1193 *)
1194   case ${ac_top_builddir}. in
1195   .) ac_abs_top_builddir=$ac_abs_builddir;;
1196   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1197   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1198   esac;;
1199 esac
1200 case $ac_abs_builddir in
1201 .) ac_abs_srcdir=$ac_srcdir;;
1202 *)
1203   case $ac_srcdir in
1204   .) ac_abs_srcdir=$ac_abs_builddir;;
1205   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1206   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1207   esac;;
1208 esac
1209 case $ac_abs_builddir in
1210 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1211 *)
1212   case $ac_top_srcdir in
1213   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1214   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1215   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1216   esac;;
1217 esac
1218
1219     cd $ac_dir
1220     # Check for guested configure; otherwise get Cygnus style configure.
1221     if test -f $ac_srcdir/configure.gnu; then
1222       echo
1223       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1224     elif test -f $ac_srcdir/configure; then
1225       echo
1226       $SHELL $ac_srcdir/configure  --help=recursive
1227     elif test -f $ac_srcdir/configure.ac ||
1228            test -f $ac_srcdir/configure.in; then
1229       echo
1230       $ac_configure --help
1231     else
1232       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1233     fi
1234     cd $ac_popdir
1235   done
1236 fi
1237
1238 test -n "$ac_init_help" && exit 0
1239 if $ac_init_version; then
1240   cat <<\_ACEOF
1241 libjpeg-turbo configure 1.3.1
1242 generated by GNU Autoconf 2.59
1243
1244 Copyright (C) 2003 Free Software Foundation, Inc.
1245 This configure script is free software; the Free Software Foundation
1246 gives unlimited permission to copy, distribute and modify it.
1247 _ACEOF
1248   exit 0
1249 fi
1250 exec 5>config.log
1251 cat >&5 <<_ACEOF
1252 This file contains any messages produced by compilers while
1253 running configure, to aid debugging if configure makes a mistake.
1254
1255 It was created by libjpeg-turbo $as_me 1.3.1, which was
1256 generated by GNU Autoconf 2.59.  Invocation command line was
1257
1258   $ $0 $@
1259
1260 _ACEOF
1261 {
1262 cat <<_ASUNAME
1263 ## --------- ##
1264 ## Platform. ##
1265 ## --------- ##
1266
1267 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1268 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1269 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1270 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1271 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1272
1273 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1274 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1275
1276 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1277 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1278 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1279 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1280 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1281 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1282 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1283
1284 _ASUNAME
1285
1286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1287 for as_dir in $PATH
1288 do
1289   IFS=$as_save_IFS
1290   test -z "$as_dir" && as_dir=.
1291   echo "PATH: $as_dir"
1292 done
1293
1294 } >&5
1295
1296 cat >&5 <<_ACEOF
1297
1298
1299 ## ----------- ##
1300 ## Core tests. ##
1301 ## ----------- ##
1302
1303 _ACEOF
1304
1305
1306 # Keep a trace of the command line.
1307 # Strip out --no-create and --no-recursion so they do not pile up.
1308 # Strip out --silent because we don't want to record it for future runs.
1309 # Also quote any args containing shell meta-characters.
1310 # Make two passes to allow for proper duplicate-argument suppression.
1311 ac_configure_args=
1312 ac_configure_args0=
1313 ac_configure_args1=
1314 ac_sep=
1315 ac_must_keep_next=false
1316 for ac_pass in 1 2
1317 do
1318   for ac_arg
1319   do
1320     case $ac_arg in
1321     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1322     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323     | -silent | --silent | --silen | --sile | --sil)
1324       continue ;;
1325     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1326       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1327     esac
1328     case $ac_pass in
1329     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1330     2)
1331       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1332       if test $ac_must_keep_next = true; then
1333         ac_must_keep_next=false # Got value, back to normal.
1334       else
1335         case $ac_arg in
1336           *=* | --config-cache | -C | -disable-* | --disable-* \
1337           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1338           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1339           | -with-* | --with-* | -without-* | --without-* | --x)
1340             case "$ac_configure_args0 " in
1341               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1342             esac
1343             ;;
1344           -* ) ac_must_keep_next=true ;;
1345         esac
1346       fi
1347       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1348       # Get rid of the leading space.
1349       ac_sep=" "
1350       ;;
1351     esac
1352   done
1353 done
1354 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1355 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1356
1357 # When interrupted or exit'd, cleanup temporary files, and complete
1358 # config.log.  We remove comments because anyway the quotes in there
1359 # would cause problems or look ugly.
1360 # WARNING: Be sure not to use single quotes in there, as some shells,
1361 # such as our DU 5.0 friend, will then `close' the trap.
1362 trap 'exit_status=$?
1363   # Save into config.log some information that might help in debugging.
1364   {
1365     echo
1366
1367     cat <<\_ASBOX
1368 ## ---------------- ##
1369 ## Cache variables. ##
1370 ## ---------------- ##
1371 _ASBOX
1372     echo
1373     # The following way of writing the cache mishandles newlines in values,
1374 {
1375   (set) 2>&1 |
1376     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1377     *ac_space=\ *)
1378       sed -n \
1379         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1380           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1381       ;;
1382     *)
1383       sed -n \
1384         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1385       ;;
1386     esac;
1387 }
1388     echo
1389
1390     cat <<\_ASBOX
1391 ## ----------------- ##
1392 ## Output variables. ##
1393 ## ----------------- ##
1394 _ASBOX
1395     echo
1396     for ac_var in $ac_subst_vars
1397     do
1398       eval ac_val=$`echo $ac_var`
1399       echo "$ac_var='"'"'$ac_val'"'"'"
1400     done | sort
1401     echo
1402
1403     if test -n "$ac_subst_files"; then
1404       cat <<\_ASBOX
1405 ## ------------- ##
1406 ## Output files. ##
1407 ## ------------- ##
1408 _ASBOX
1409       echo
1410       for ac_var in $ac_subst_files
1411       do
1412         eval ac_val=$`echo $ac_var`
1413         echo "$ac_var='"'"'$ac_val'"'"'"
1414       done | sort
1415       echo
1416     fi
1417
1418     if test -s confdefs.h; then
1419       cat <<\_ASBOX
1420 ## ----------- ##
1421 ## confdefs.h. ##
1422 ## ----------- ##
1423 _ASBOX
1424       echo
1425       sed "/^$/d" confdefs.h | sort
1426       echo
1427     fi
1428     test "$ac_signal" != 0 &&
1429       echo "$as_me: caught signal $ac_signal"
1430     echo "$as_me: exit $exit_status"
1431   } >&5
1432   rm -f core *.core &&
1433   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1434     exit $exit_status
1435      ' 0
1436 for ac_signal in 1 2 13 15; do
1437   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1438 done
1439 ac_signal=0
1440
1441 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1442 rm -rf conftest* confdefs.h
1443 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1444 echo >confdefs.h
1445
1446 # Predefined preprocessor variables.
1447
1448 cat >>confdefs.h <<_ACEOF
1449 #define PACKAGE_NAME "$PACKAGE_NAME"
1450 _ACEOF
1451
1452
1453 cat >>confdefs.h <<_ACEOF
1454 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1455 _ACEOF
1456
1457
1458 cat >>confdefs.h <<_ACEOF
1459 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1460 _ACEOF
1461
1462
1463 cat >>confdefs.h <<_ACEOF
1464 #define PACKAGE_STRING "$PACKAGE_STRING"
1465 _ACEOF
1466
1467
1468 cat >>confdefs.h <<_ACEOF
1469 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1470 _ACEOF
1471
1472
1473 # Let the site file select an alternate cache file if it wants to.
1474 # Prefer explicitly selected file to automatically selected ones.
1475 if test -z "$CONFIG_SITE"; then
1476   if test "x$prefix" != xNONE; then
1477     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1478   else
1479     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1480   fi
1481 fi
1482 for ac_site_file in $CONFIG_SITE; do
1483   if test -r "$ac_site_file"; then
1484     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1485 echo "$as_me: loading site script $ac_site_file" >&6;}
1486     sed 's/^/| /' "$ac_site_file" >&5
1487     . "$ac_site_file"
1488   fi
1489 done
1490
1491 if test -r "$cache_file"; then
1492   # Some versions of bash will fail to source /dev/null (special
1493   # files actually), so we avoid doing that.
1494   if test -f "$cache_file"; then
1495     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1496 echo "$as_me: loading cache $cache_file" >&6;}
1497     case $cache_file in
1498       [\\/]* | ?:[\\/]* ) . $cache_file;;
1499       *)                      . ./$cache_file;;
1500     esac
1501   fi
1502 else
1503   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1504 echo "$as_me: creating cache $cache_file" >&6;}
1505   >$cache_file
1506 fi
1507
1508 # Check that the precious variables saved in the cache have kept the same
1509 # value.
1510 ac_cache_corrupted=false
1511 for ac_var in `(set) 2>&1 |
1512                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1513   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1514   eval ac_new_set=\$ac_env_${ac_var}_set
1515   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1516   eval ac_new_val="\$ac_env_${ac_var}_value"
1517   case $ac_old_set,$ac_new_set in
1518     set,)
1519       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1520 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1521       ac_cache_corrupted=: ;;
1522     ,set)
1523       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1524 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1525       ac_cache_corrupted=: ;;
1526     ,);;
1527     *)
1528       if test "x$ac_old_val" != "x$ac_new_val"; then
1529         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1530 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1531         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1532 echo "$as_me:   former value:  $ac_old_val" >&2;}
1533         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1534 echo "$as_me:   current value: $ac_new_val" >&2;}
1535         ac_cache_corrupted=:
1536       fi;;
1537   esac
1538   # Pass precious variables to config.status.
1539   if test "$ac_new_set" = set; then
1540     case $ac_new_val in
1541     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1542       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1543     *) ac_arg=$ac_var=$ac_new_val ;;
1544     esac
1545     case " $ac_configure_args " in
1546       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1547       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1548     esac
1549   fi
1550 done
1551 if $ac_cache_corrupted; then
1552   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1553 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1554   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1555 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1556    { (exit 1); exit 1; }; }
1557 fi
1558
1559 ac_ext=c
1560 ac_cpp='$CPP $CPPFLAGS'
1561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591 BUILD=`date +%Y%m%d`
1592
1593 am__api_version="1.9"
1594 ac_aux_dir=
1595 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1596   if test -f $ac_dir/install-sh; then
1597     ac_aux_dir=$ac_dir
1598     ac_install_sh="$ac_aux_dir/install-sh -c"
1599     break
1600   elif test -f $ac_dir/install.sh; then
1601     ac_aux_dir=$ac_dir
1602     ac_install_sh="$ac_aux_dir/install.sh -c"
1603     break
1604   elif test -f $ac_dir/shtool; then
1605     ac_aux_dir=$ac_dir
1606     ac_install_sh="$ac_aux_dir/shtool install -c"
1607     break
1608   fi
1609 done
1610 if test -z "$ac_aux_dir"; then
1611   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1612 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1613    { (exit 1); exit 1; }; }
1614 fi
1615 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1616 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1617 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1618
1619 # Find a good install program.  We prefer a C program (faster),
1620 # so one script is as good as another.  But avoid the broken or
1621 # incompatible versions:
1622 # SysV /etc/install, /usr/sbin/install
1623 # SunOS /usr/etc/install
1624 # IRIX /sbin/install
1625 # AIX /bin/install
1626 # AmigaOS /C/install, which installs bootblocks on floppy discs
1627 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1628 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1629 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1630 # OS/2's system install, which has a completely different semantic
1631 # ./install, which can be erroneously created by make from ./install.sh.
1632 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1633 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1634 if test -z "$INSTALL"; then
1635 if test "${ac_cv_path_install+set}" = set; then
1636   echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 for as_dir in $PATH
1640 do
1641   IFS=$as_save_IFS
1642   test -z "$as_dir" && as_dir=.
1643   # Account for people who put trailing slashes in PATH elements.
1644 case $as_dir/ in
1645   ./ | .// | /cC/* | \
1646   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1647   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1648   /usr/ucb/* ) ;;
1649   *)
1650     # OSF1 and SCO ODT 3.0 have their own names for install.
1651     # Don't use installbsd from OSF since it installs stuff as root
1652     # by default.
1653     for ac_prog in ginstall scoinst install; do
1654       for ac_exec_ext in '' $ac_executable_extensions; do
1655         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1656           if test $ac_prog = install &&
1657             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1658             # AIX install.  It has an incompatible calling convention.
1659             :
1660           elif test $ac_prog = install &&
1661             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1662             # program-specific install script used by HP pwplus--don't use.
1663             :
1664           else
1665             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1666             break 3
1667           fi
1668         fi
1669       done
1670     done
1671     ;;
1672 esac
1673 done
1674
1675
1676 fi
1677   if test "${ac_cv_path_install+set}" = set; then
1678     INSTALL=$ac_cv_path_install
1679   else
1680     # As a last resort, use the slow shell script.  We don't cache a
1681     # path for INSTALL within a source directory, because that will
1682     # break other packages using the cache if that directory is
1683     # removed, or if the path is relative.
1684     INSTALL=$ac_install_sh
1685   fi
1686 fi
1687 echo "$as_me:$LINENO: result: $INSTALL" >&5
1688 echo "${ECHO_T}$INSTALL" >&6
1689
1690 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1691 # It thinks the first close brace ends the variable substitution.
1692 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1693
1694 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1695
1696 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1697
1698 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1699 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1700 # Just in case
1701 sleep 1
1702 echo timestamp > conftest.file
1703 # Do `set' in a subshell so we don't clobber the current shell's
1704 # arguments.  Must try -L first in case configure is actually a
1705 # symlink; some systems play weird games with the mod time of symlinks
1706 # (eg FreeBSD returns the mod time of the symlink's containing
1707 # directory).
1708 if (
1709    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1710    if test "$*" = "X"; then
1711       # -L didn't work.
1712       set X `ls -t $srcdir/configure conftest.file`
1713    fi
1714    rm -f conftest.file
1715    if test "$*" != "X $srcdir/configure conftest.file" \
1716       && test "$*" != "X conftest.file $srcdir/configure"; then
1717
1718       # If neither matched, then we have a broken ls.  This can happen
1719       # if, for instance, CONFIG_SHELL is bash and it inherits a
1720       # broken ls alias from the environment.  This has actually
1721       # happened.  Such a system could not be considered "sane".
1722       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1723 alias in your environment" >&5
1724 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1725 alias in your environment" >&2;}
1726    { (exit 1); exit 1; }; }
1727    fi
1728
1729    test "$2" = conftest.file
1730    )
1731 then
1732    # Ok.
1733    :
1734 else
1735    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1736 Check your system clock" >&5
1737 echo "$as_me: error: newly created file is older than distributed files!
1738 Check your system clock" >&2;}
1739    { (exit 1); exit 1; }; }
1740 fi
1741 echo "$as_me:$LINENO: result: yes" >&5
1742 echo "${ECHO_T}yes" >&6
1743 test "$program_prefix" != NONE &&
1744   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1745 # Use a double $ so make ignores it.
1746 test "$program_suffix" != NONE &&
1747   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1748 # Double any \ or $.  echo might interpret backslashes.
1749 # By default was `s,x,x', remove it if useless.
1750 cat <<\_ACEOF >conftest.sed
1751 s/[\\$]/&&/g;s/;s,x,x,$//
1752 _ACEOF
1753 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1754 rm conftest.sed
1755
1756 # expand $ac_aux_dir to an absolute path
1757 am_aux_dir=`cd $ac_aux_dir && pwd`
1758
1759 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1760 # Use eval to expand $SHELL
1761 if eval "$MISSING --run true"; then
1762   am_missing_run="$MISSING --run "
1763 else
1764   am_missing_run=
1765   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1766 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1767 fi
1768
1769 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1770   # We used to keeping the `.' as first argument, in order to
1771   # allow $(mkdir_p) to be used without argument.  As in
1772   #   $(mkdir_p) $(somedir)
1773   # where $(somedir) is conditionally defined.  However this is wrong
1774   # for two reasons:
1775   #  1. if the package is installed by a user who cannot write `.'
1776   #     make install will fail,
1777   #  2. the above comment should most certainly read
1778   #     $(mkdir_p) $(DESTDIR)$(somedir)
1779   #     so it does not work when $(somedir) is undefined and
1780   #     $(DESTDIR) is not.
1781   #  To support the latter case, we have to write
1782   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1783   #  so the `.' trick is pointless.
1784   mkdir_p='mkdir -p --'
1785 else
1786   # On NextStep and OpenStep, the `mkdir' command does not
1787   # recognize any option.  It will interpret all options as
1788   # directories to create, and then abort because `.' already
1789   # exists.
1790   for d in ./-p ./--version;
1791   do
1792     test -d $d && rmdir $d
1793   done
1794   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1795   if test -f "$ac_aux_dir/mkinstalldirs"; then
1796     mkdir_p='$(mkinstalldirs)'
1797   else
1798     mkdir_p='$(install_sh) -d'
1799   fi
1800 fi
1801
1802 for ac_prog in gawk mawk nawk awk
1803 do
1804   # Extract the first word of "$ac_prog", so it can be a program name with args.
1805 set dummy $ac_prog; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_AWK+set}" = set; then
1809   echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811   if test -n "$AWK"; then
1812   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1816 do
1817   IFS=$as_save_IFS
1818   test -z "$as_dir" && as_dir=.
1819   for ac_exec_ext in '' $ac_executable_extensions; do
1820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821     ac_cv_prog_AWK="$ac_prog"
1822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823     break 2
1824   fi
1825 done
1826 done
1827
1828 fi
1829 fi
1830 AWK=$ac_cv_prog_AWK
1831 if test -n "$AWK"; then
1832   echo "$as_me:$LINENO: result: $AWK" >&5
1833 echo "${ECHO_T}$AWK" >&6
1834 else
1835   echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1837 fi
1838
1839   test -n "$AWK" && break
1840 done
1841
1842 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1843 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1844 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1845 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1846   echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848   cat >conftest.make <<\_ACEOF
1849 all:
1850         @echo 'ac_maketemp="$(MAKE)"'
1851 _ACEOF
1852 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1853 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1854 if test -n "$ac_maketemp"; then
1855   eval ac_cv_prog_make_${ac_make}_set=yes
1856 else
1857   eval ac_cv_prog_make_${ac_make}_set=no
1858 fi
1859 rm -f conftest.make
1860 fi
1861 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1862   echo "$as_me:$LINENO: result: yes" >&5
1863 echo "${ECHO_T}yes" >&6
1864   SET_MAKE=
1865 else
1866   echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1868   SET_MAKE="MAKE=${MAKE-make}"
1869 fi
1870
1871 rm -rf .tst 2>/dev/null
1872 mkdir .tst 2>/dev/null
1873 if test -d .tst; then
1874   am__leading_dot=.
1875 else
1876   am__leading_dot=_
1877 fi
1878 rmdir .tst 2>/dev/null
1879
1880 # test to see if srcdir already configured
1881 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1882    test -f $srcdir/config.status; then
1883   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1884 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1885    { (exit 1); exit 1; }; }
1886 fi
1887
1888 # test whether we have cygpath
1889 if test -z "$CYGPATH_W"; then
1890   if (cygpath --version) >/dev/null 2>/dev/null; then
1891     CYGPATH_W='cygpath -w'
1892   else
1893     CYGPATH_W=echo
1894   fi
1895 fi
1896
1897
1898 # Define the identity of the package.
1899  PACKAGE='libjpeg-turbo'
1900  VERSION='1.3.1'
1901
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE "$PACKAGE"
1905 _ACEOF
1906
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define VERSION "$VERSION"
1910 _ACEOF
1911
1912 # Some tools Automake needs.
1913
1914 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1915
1916
1917 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1918
1919
1920 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1921
1922
1923 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1924
1925
1926 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1927
1928 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1929
1930 # Installed binaries are usually stripped using `strip' when the user
1931 # run `make install-strip'.  However `strip' might not be the right
1932 # tool to use in cross-compilation environments, therefore Automake
1933 # will honor the `STRIP' environment variable to overrule this program.
1934 if test "$cross_compiling" != no; then
1935   if test -n "$ac_tool_prefix"; then
1936   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1937 set dummy ${ac_tool_prefix}strip; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_STRIP+set}" = set; then
1941   echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943   if test -n "$STRIP"; then
1944   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1945 else
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1948 do
1949   IFS=$as_save_IFS
1950   test -z "$as_dir" && as_dir=.
1951   for ac_exec_ext in '' $ac_executable_extensions; do
1952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955     break 2
1956   fi
1957 done
1958 done
1959
1960 fi
1961 fi
1962 STRIP=$ac_cv_prog_STRIP
1963 if test -n "$STRIP"; then
1964   echo "$as_me:$LINENO: result: $STRIP" >&5
1965 echo "${ECHO_T}$STRIP" >&6
1966 else
1967   echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1969 fi
1970
1971 fi
1972 if test -z "$ac_cv_prog_STRIP"; then
1973   ac_ct_STRIP=$STRIP
1974   # Extract the first word of "strip", so it can be a program name with args.
1975 set dummy strip; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1979   echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981   if test -n "$ac_ct_STRIP"; then
1982   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1983 else
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 for as_dir in $PATH
1986 do
1987   IFS=$as_save_IFS
1988   test -z "$as_dir" && as_dir=.
1989   for ac_exec_ext in '' $ac_executable_extensions; do
1990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991     ac_cv_prog_ac_ct_STRIP="strip"
1992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993     break 2
1994   fi
1995 done
1996 done
1997
1998   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1999 fi
2000 fi
2001 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2002 if test -n "$ac_ct_STRIP"; then
2003   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2004 echo "${ECHO_T}$ac_ct_STRIP" >&6
2005 else
2006   echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2008 fi
2009
2010   STRIP=$ac_ct_STRIP
2011 else
2012   STRIP="$ac_cv_prog_STRIP"
2013 fi
2014
2015 fi
2016 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2017
2018 # We need awk for the "check" target.  The system "awk" is bad on
2019 # some platforms.
2020 # Always define AMTAR for backward compatibility.
2021
2022 AMTAR=${AMTAR-"${am_missing_run}tar"}
2023
2024 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2025
2026
2027
2028
2029
2030
2031
2032 # Always build with prototypes
2033
2034 cat >>confdefs.h <<\_ACEOF
2035 #define HAVE_PROTOTYPES 1
2036 _ACEOF
2037
2038
2039
2040
2041 # Checks for programs.
2042 SAVED_CFLAGS=${CFLAGS}
2043 SAVED_CPPFLAGS=${CPPFLAGS}
2044 DEPDIR="${am__leading_dot}deps"
2045
2046           ac_config_commands="$ac_config_commands depfiles"
2047
2048
2049 am_make=${MAKE-make}
2050 cat > confinc << 'END'
2051 am__doit:
2052         @echo done
2053 .PHONY: am__doit
2054 END
2055 # If we don't find an include directive, just comment out the code.
2056 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2057 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2058 am__include="#"
2059 am__quote=
2060 _am_result=none
2061 # First try GNU make style include.
2062 echo "include confinc" > confmf
2063 # We grep out `Entering directory' and `Leaving directory'
2064 # messages which can occur if `w' ends up in MAKEFLAGS.
2065 # In particular we don't look at `^make:' because GNU make might
2066 # be invoked under some other name (usually "gmake"), in which
2067 # case it prints its new name instead of `make'.
2068 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2069    am__include=include
2070    am__quote=
2071    _am_result=GNU
2072 fi
2073 # Now try BSD make style include.
2074 if test "$am__include" = "#"; then
2075    echo '.include "confinc"' > confmf
2076    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2077       am__include=.include
2078       am__quote="\""
2079       _am_result=BSD
2080    fi
2081 fi
2082
2083
2084 echo "$as_me:$LINENO: result: $_am_result" >&5
2085 echo "${ECHO_T}$_am_result" >&6
2086 rm -f confinc confmf
2087
2088 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2089 if test "${enable_dependency_tracking+set}" = set; then
2090   enableval="$enable_dependency_tracking"
2091
2092 fi;
2093 if test "x$enable_dependency_tracking" != xno; then
2094   am_depcomp="$ac_aux_dir/depcomp"
2095   AMDEPBACKSLASH='\'
2096 fi
2097
2098
2099 if test "x$enable_dependency_tracking" != xno; then
2100   AMDEP_TRUE=
2101   AMDEP_FALSE='#'
2102 else
2103   AMDEP_TRUE='#'
2104   AMDEP_FALSE=
2105 fi
2106
2107
2108
2109 ac_ext=c
2110 ac_cpp='$CPP $CPPFLAGS'
2111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2114 if test -n "$ac_tool_prefix"; then
2115   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2116 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2117 echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_CC+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   if test -n "$CC"; then
2123   ac_cv_prog_CC="$CC" # Let the user override the test.
2124 else
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH
2127 do
2128   IFS=$as_save_IFS
2129   test -z "$as_dir" && as_dir=.
2130   for ac_exec_ext in '' $ac_executable_extensions; do
2131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134     break 2
2135   fi
2136 done
2137 done
2138
2139 fi
2140 fi
2141 CC=$ac_cv_prog_CC
2142 if test -n "$CC"; then
2143   echo "$as_me:$LINENO: result: $CC" >&5
2144 echo "${ECHO_T}$CC" >&6
2145 else
2146   echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2148 fi
2149
2150 fi
2151 if test -z "$ac_cv_prog_CC"; then
2152   ac_ct_CC=$CC
2153   # Extract the first word of "gcc", so it can be a program name with args.
2154 set dummy gcc; ac_word=$2
2155 echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158   echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160   if test -n "$ac_ct_CC"; then
2161   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2165 do
2166   IFS=$as_save_IFS
2167   test -z "$as_dir" && as_dir=.
2168   for ac_exec_ext in '' $ac_executable_extensions; do
2169   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170     ac_cv_prog_ac_ct_CC="gcc"
2171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172     break 2
2173   fi
2174 done
2175 done
2176
2177 fi
2178 fi
2179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2180 if test -n "$ac_ct_CC"; then
2181   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2182 echo "${ECHO_T}$ac_ct_CC" >&6
2183 else
2184   echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6
2186 fi
2187
2188   CC=$ac_ct_CC
2189 else
2190   CC="$ac_cv_prog_CC"
2191 fi
2192
2193 if test -z "$CC"; then
2194   if test -n "$ac_tool_prefix"; then
2195   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2196 set dummy ${ac_tool_prefix}cc; ac_word=$2
2197 echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2199 if test "${ac_cv_prog_CC+set}" = set; then
2200   echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202   if test -n "$CC"; then
2203   ac_cv_prog_CC="$CC" # Let the user override the test.
2204 else
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2207 do
2208   IFS=$as_save_IFS
2209   test -z "$as_dir" && as_dir=.
2210   for ac_exec_ext in '' $ac_executable_extensions; do
2211   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2212     ac_cv_prog_CC="${ac_tool_prefix}cc"
2213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214     break 2
2215   fi
2216 done
2217 done
2218
2219 fi
2220 fi
2221 CC=$ac_cv_prog_CC
2222 if test -n "$CC"; then
2223   echo "$as_me:$LINENO: result: $CC" >&5
2224 echo "${ECHO_T}$CC" >&6
2225 else
2226   echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6
2228 fi
2229
2230 fi
2231 if test -z "$ac_cv_prog_CC"; then
2232   ac_ct_CC=$CC
2233   # Extract the first word of "cc", so it can be a program name with args.
2234 set dummy cc; ac_word=$2
2235 echo "$as_me:$LINENO: checking for $ac_word" >&5
2236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2237 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2238   echo $ECHO_N "(cached) $ECHO_C" >&6
2239 else
2240   if test -n "$ac_ct_CC"; then
2241   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2242 else
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 for as_dir in $PATH
2245 do
2246   IFS=$as_save_IFS
2247   test -z "$as_dir" && as_dir=.
2248   for ac_exec_ext in '' $ac_executable_extensions; do
2249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2250     ac_cv_prog_ac_ct_CC="cc"
2251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252     break 2
2253   fi
2254 done
2255 done
2256
2257 fi
2258 fi
2259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2260 if test -n "$ac_ct_CC"; then
2261   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2262 echo "${ECHO_T}$ac_ct_CC" >&6
2263 else
2264   echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6
2266 fi
2267
2268   CC=$ac_ct_CC
2269 else
2270   CC="$ac_cv_prog_CC"
2271 fi
2272
2273 fi
2274 if test -z "$CC"; then
2275   # Extract the first word of "cc", so it can be a program name with args.
2276 set dummy cc; ac_word=$2
2277 echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2279 if test "${ac_cv_prog_CC+set}" = set; then
2280   echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282   if test -n "$CC"; then
2283   ac_cv_prog_CC="$CC" # Let the user override the test.
2284 else
2285   ac_prog_rejected=no
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2288 do
2289   IFS=$as_save_IFS
2290   test -z "$as_dir" && as_dir=.
2291   for ac_exec_ext in '' $ac_executable_extensions; do
2292   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2293     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2294        ac_prog_rejected=yes
2295        continue
2296      fi
2297     ac_cv_prog_CC="cc"
2298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299     break 2
2300   fi
2301 done
2302 done
2303
2304 if test $ac_prog_rejected = yes; then
2305   # We found a bogon in the path, so make sure we never use it.
2306   set dummy $ac_cv_prog_CC
2307   shift
2308   if test $# != 0; then
2309     # We chose a different compiler from the bogus one.
2310     # However, it has the same basename, so the bogon will be chosen
2311     # first if we set CC to just the basename; use the full file name.
2312     shift
2313     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2314   fi
2315 fi
2316 fi
2317 fi
2318 CC=$ac_cv_prog_CC
2319 if test -n "$CC"; then
2320   echo "$as_me:$LINENO: result: $CC" >&5
2321 echo "${ECHO_T}$CC" >&6
2322 else
2323   echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6
2325 fi
2326
2327 fi
2328 if test -z "$CC"; then
2329   if test -n "$ac_tool_prefix"; then
2330   for ac_prog in cl
2331   do
2332     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2334 echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2336 if test "${ac_cv_prog_CC+set}" = set; then
2337   echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339   if test -n "$CC"; then
2340   ac_cv_prog_CC="$CC" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345   IFS=$as_save_IFS
2346   test -z "$as_dir" && as_dir=.
2347   for ac_exec_ext in '' $ac_executable_extensions; do
2348   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2349     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351     break 2
2352   fi
2353 done
2354 done
2355
2356 fi
2357 fi
2358 CC=$ac_cv_prog_CC
2359 if test -n "$CC"; then
2360   echo "$as_me:$LINENO: result: $CC" >&5
2361 echo "${ECHO_T}$CC" >&6
2362 else
2363   echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6
2365 fi
2366
2367     test -n "$CC" && break
2368   done
2369 fi
2370 if test -z "$CC"; then
2371   ac_ct_CC=$CC
2372   for ac_prog in cl
2373 do
2374   # Extract the first word of "$ac_prog", so it can be a program name with args.
2375 set dummy $ac_prog; ac_word=$2
2376 echo "$as_me:$LINENO: checking for $ac_word" >&5
2377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2378 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2379   echo $ECHO_N "(cached) $ECHO_C" >&6
2380 else
2381   if test -n "$ac_ct_CC"; then
2382   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2383 else
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2386 do
2387   IFS=$as_save_IFS
2388   test -z "$as_dir" && as_dir=.
2389   for ac_exec_ext in '' $ac_executable_extensions; do
2390   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2391     ac_cv_prog_ac_ct_CC="$ac_prog"
2392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2393     break 2
2394   fi
2395 done
2396 done
2397
2398 fi
2399 fi
2400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2401 if test -n "$ac_ct_CC"; then
2402   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2403 echo "${ECHO_T}$ac_ct_CC" >&6
2404 else
2405   echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6
2407 fi
2408
2409   test -n "$ac_ct_CC" && break
2410 done
2411
2412   CC=$ac_ct_CC
2413 fi
2414
2415 fi
2416
2417
2418 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2419 See \`config.log' for more details." >&5
2420 echo "$as_me: error: no acceptable C compiler found in \$PATH
2421 See \`config.log' for more details." >&2;}
2422    { (exit 1); exit 1; }; }
2423
2424 # Provide some information about the compiler.
2425 echo "$as_me:$LINENO:" \
2426      "checking for C compiler version" >&5
2427 ac_compiler=`set X $ac_compile; echo $2`
2428 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2429   (eval $ac_compiler --version </dev/null >&5) 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }
2433 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2434   (eval $ac_compiler -v </dev/null >&5) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }
2438 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2439   (eval $ac_compiler -V </dev/null >&5) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }
2443
2444 cat >conftest.$ac_ext <<_ACEOF
2445 /* confdefs.h.  */
2446 _ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h.  */
2450
2451 int
2452 main ()
2453 {
2454
2455   ;
2456   return 0;
2457 }
2458 _ACEOF
2459 ac_clean_files_save=$ac_clean_files
2460 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2461 # Try to create an executable without -o first, disregard a.out.
2462 # It will help us diagnose broken compilers, and finding out an intuition
2463 # of exeext.
2464 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2465 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2466 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2467 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2468   (eval $ac_link_default) 2>&5
2469   ac_status=$?
2470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471   (exit $ac_status); }; then
2472   # Find the output, starting from the most likely.  This scheme is
2473 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2474 # resort.
2475
2476 # Be careful to initialize this variable, since it used to be cached.
2477 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2478 ac_cv_exeext=
2479 # b.out is created by i960 compilers.
2480 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2481 do
2482   test -f "$ac_file" || continue
2483   case $ac_file in
2484     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2485         ;;
2486     conftest.$ac_ext )
2487         # This is the source file.
2488         ;;
2489     [ab].out )
2490         # We found the default executable, but exeext='' is most
2491         # certainly right.
2492         break;;
2493     *.* )
2494         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2495         # FIXME: I believe we export ac_cv_exeext for Libtool,
2496         # but it would be cool to find out if it's true.  Does anybody
2497         # maintain Libtool? --akim.
2498         export ac_cv_exeext
2499         break;;
2500     * )
2501         break;;
2502   esac
2503 done
2504 else
2505   echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2507
2508 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2509 See \`config.log' for more details." >&5
2510 echo "$as_me: error: C compiler cannot create executables
2511 See \`config.log' for more details." >&2;}
2512    { (exit 77); exit 77; }; }
2513 fi
2514
2515 ac_exeext=$ac_cv_exeext
2516 echo "$as_me:$LINENO: result: $ac_file" >&5
2517 echo "${ECHO_T}$ac_file" >&6
2518
2519 # Check the compiler produces executables we can run.  If not, either
2520 # the compiler is broken, or we cross compile.
2521 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2522 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2523 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2524 # If not cross compiling, check that we can run a simple program.
2525 if test "$cross_compiling" != yes; then
2526   if { ac_try='./$ac_file'
2527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528   (eval $ac_try) 2>&5
2529   ac_status=$?
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); }; }; then
2532     cross_compiling=no
2533   else
2534     if test "$cross_compiling" = maybe; then
2535         cross_compiling=yes
2536     else
2537         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2538 If you meant to cross compile, use \`--host'.
2539 See \`config.log' for more details." >&5
2540 echo "$as_me: error: cannot run C compiled programs.
2541 If you meant to cross compile, use \`--host'.
2542 See \`config.log' for more details." >&2;}
2543    { (exit 1); exit 1; }; }
2544     fi
2545   fi
2546 fi
2547 echo "$as_me:$LINENO: result: yes" >&5
2548 echo "${ECHO_T}yes" >&6
2549
2550 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2551 ac_clean_files=$ac_clean_files_save
2552 # Check the compiler produces executables we can run.  If not, either
2553 # the compiler is broken, or we cross compile.
2554 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2555 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2556 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2557 echo "${ECHO_T}$cross_compiling" >&6
2558
2559 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2560 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2562   (eval $ac_link) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; then
2566   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2567 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2568 # work properly (i.e., refer to `conftest.exe'), while it won't with
2569 # `rm'.
2570 for ac_file in conftest.exe conftest conftest.*; do
2571   test -f "$ac_file" || continue
2572   case $ac_file in
2573     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2574     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2575           export ac_cv_exeext
2576           break;;
2577     * ) break;;
2578   esac
2579 done
2580 else
2581   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2582 See \`config.log' for more details." >&5
2583 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2584 See \`config.log' for more details." >&2;}
2585    { (exit 1); exit 1; }; }
2586 fi
2587
2588 rm -f conftest$ac_cv_exeext
2589 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2590 echo "${ECHO_T}$ac_cv_exeext" >&6
2591
2592 rm -f conftest.$ac_ext
2593 EXEEXT=$ac_cv_exeext
2594 ac_exeext=$EXEEXT
2595 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2596 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2597 if test "${ac_cv_objext+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h.  */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h.  */
2606
2607 int
2608 main ()
2609 {
2610
2611   ;
2612   return 0;
2613 }
2614 _ACEOF
2615 rm -f conftest.o conftest.obj
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617   (eval $ac_compile) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); }; then
2621   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2622   case $ac_file in
2623     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2624     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2625        break;;
2626   esac
2627 done
2628 else
2629   echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2633 See \`config.log' for more details." >&5
2634 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2635 See \`config.log' for more details." >&2;}
2636    { (exit 1); exit 1; }; }
2637 fi
2638
2639 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2640 fi
2641 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2642 echo "${ECHO_T}$ac_cv_objext" >&6
2643 OBJEXT=$ac_cv_objext
2644 ac_objext=$OBJEXT
2645 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2646 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2647 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2648   echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650   cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h.  */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h.  */
2656
2657 int
2658 main ()
2659 {
2660 #ifndef __GNUC__
2661        choke me
2662 #endif
2663
2664   ;
2665   return 0;
2666 }
2667 _ACEOF
2668 rm -f conftest.$ac_objext
2669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2670   (eval $ac_compile) 2>conftest.er1
2671   ac_status=$?
2672   grep -v '^ *+' conftest.er1 >conftest.err
2673   rm -f conftest.er1
2674   cat conftest.err >&5
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); } &&
2677          { ac_try='test -z "$ac_c_werror_flag"
2678                          || test ! -s conftest.err'
2679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680   (eval $ac_try) 2>&5
2681   ac_status=$?
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); }; } &&
2684          { ac_try='test -s conftest.$ac_objext'
2685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686   (eval $ac_try) 2>&5
2687   ac_status=$?
2688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689   (exit $ac_status); }; }; then
2690   ac_compiler_gnu=yes
2691 else
2692   echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2694
2695 ac_compiler_gnu=no
2696 fi
2697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2698 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2699
2700 fi
2701 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2702 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2703 GCC=`test $ac_compiler_gnu = yes && echo yes`
2704 ac_test_CFLAGS=${CFLAGS+set}
2705 ac_save_CFLAGS=$CFLAGS
2706 CFLAGS="-g"
2707 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2708 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2709 if test "${ac_cv_prog_cc_g+set}" = set; then
2710   echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712   cat >conftest.$ac_ext <<_ACEOF
2713 /* confdefs.h.  */
2714 _ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h.  */
2718
2719 int
2720 main ()
2721 {
2722
2723   ;
2724   return 0;
2725 }
2726 _ACEOF
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729   (eval $ac_compile) 2>conftest.er1
2730   ac_status=$?
2731   grep -v '^ *+' conftest.er1 >conftest.err
2732   rm -f conftest.er1
2733   cat conftest.err >&5
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); } &&
2736          { ac_try='test -z "$ac_c_werror_flag"
2737                          || test ! -s conftest.err'
2738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739   (eval $ac_try) 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }; } &&
2743          { ac_try='test -s conftest.$ac_objext'
2744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745   (eval $ac_try) 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }; }; then
2749   ac_cv_prog_cc_g=yes
2750 else
2751   echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2753
2754 ac_cv_prog_cc_g=no
2755 fi
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757 fi
2758 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2759 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2760 if test "$ac_test_CFLAGS" = set; then
2761   CFLAGS=$ac_save_CFLAGS
2762 elif test $ac_cv_prog_cc_g = yes; then
2763   if test "$GCC" = yes; then
2764     CFLAGS="-g -O2"
2765   else
2766     CFLAGS="-g"
2767   fi
2768 else
2769   if test "$GCC" = yes; then
2770     CFLAGS="-O2"
2771   else
2772     CFLAGS=
2773   fi
2774 fi
2775 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2776 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2777 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2778   echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780   ac_cv_prog_cc_stdc=no
2781 ac_save_CC=$CC
2782 cat >conftest.$ac_ext <<_ACEOF
2783 /* confdefs.h.  */
2784 _ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h.  */
2788 #include <stdarg.h>
2789 #include <stdio.h>
2790 #include <sys/types.h>
2791 #include <sys/stat.h>
2792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2793 struct buf { int x; };
2794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2795 static char *e (p, i)
2796      char **p;
2797      int i;
2798 {
2799   return p[i];
2800 }
2801 static char *f (char * (*g) (char **, int), char **p, ...)
2802 {
2803   char *s;
2804   va_list v;
2805   va_start (v,p);
2806   s = g (p, va_arg (v,int));
2807   va_end (v);
2808   return s;
2809 }
2810
2811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2812    function prototypes and stuff, but not '\xHH' hex character constants.
2813    These don't provoke an error unfortunately, instead are silently treated
2814    as 'x'.  The following induces an error, until -std1 is added to get
2815    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2816    array size at least.  It's necessary to write '\x00'==0 to get something
2817    that's true only with -std1.  */
2818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2819
2820 int test (int i, double x);
2821 struct s1 {int (*f) (int a);};
2822 struct s2 {int (*f) (double a);};
2823 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2824 int argc;
2825 char **argv;
2826 int
2827 main ()
2828 {
2829 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2830   ;
2831   return 0;
2832 }
2833 _ACEOF
2834 # Don't try gcc -ansi; that turns off useful extensions and
2835 # breaks some systems' header files.
2836 # AIX                   -qlanglvl=ansi
2837 # Ultrix and OSF/1      -std1
2838 # HP-UX 10.20 and later -Ae
2839 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2840 # SVR4                  -Xc -D__EXTENSIONS__
2841 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2842 do
2843   CC="$ac_save_CC $ac_arg"
2844   rm -f conftest.$ac_objext
2845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2846   (eval $ac_compile) 2>conftest.er1
2847   ac_status=$?
2848   grep -v '^ *+' conftest.er1 >conftest.err
2849   rm -f conftest.er1
2850   cat conftest.err >&5
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); } &&
2853          { ac_try='test -z "$ac_c_werror_flag"
2854                          || test ! -s conftest.err'
2855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856   (eval $ac_try) 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); }; } &&
2860          { ac_try='test -s conftest.$ac_objext'
2861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862   (eval $ac_try) 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); }; }; then
2866   ac_cv_prog_cc_stdc=$ac_arg
2867 break
2868 else
2869   echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2871
2872 fi
2873 rm -f conftest.err conftest.$ac_objext
2874 done
2875 rm -f conftest.$ac_ext conftest.$ac_objext
2876 CC=$ac_save_CC
2877
2878 fi
2879
2880 case "x$ac_cv_prog_cc_stdc" in
2881   x|xno)
2882     echo "$as_me:$LINENO: result: none needed" >&5
2883 echo "${ECHO_T}none needed" >&6 ;;
2884   *)
2885     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2886 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2887     CC="$CC $ac_cv_prog_cc_stdc" ;;
2888 esac
2889
2890 # Some people use a C++ compiler to compile C.  Since we use `exit',
2891 # in C++ we need to declare it.  In case someone uses the same compiler
2892 # for both compiling C and C++ we need to have the C++ compiler decide
2893 # the declaration of exit, since it's the most demanding environment.
2894 cat >conftest.$ac_ext <<_ACEOF
2895 #ifndef __cplusplus
2896   choke me
2897 #endif
2898 _ACEOF
2899 rm -f conftest.$ac_objext
2900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2901   (eval $ac_compile) 2>conftest.er1
2902   ac_status=$?
2903   grep -v '^ *+' conftest.er1 >conftest.err
2904   rm -f conftest.er1
2905   cat conftest.err >&5
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); } &&
2908          { ac_try='test -z "$ac_c_werror_flag"
2909                          || test ! -s conftest.err'
2910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911   (eval $ac_try) 2>&5
2912   ac_status=$?
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); }; } &&
2915          { ac_try='test -s conftest.$ac_objext'
2916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917   (eval $ac_try) 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }; }; then
2921   for ac_declaration in \
2922    '' \
2923    'extern "C" void std::exit (int) throw (); using std::exit;' \
2924    'extern "C" void std::exit (int); using std::exit;' \
2925    'extern "C" void exit (int) throw ();' \
2926    'extern "C" void exit (int);' \
2927    'void exit (int);'
2928 do
2929   cat >conftest.$ac_ext <<_ACEOF
2930 /* confdefs.h.  */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h.  */
2935 $ac_declaration
2936 #include <stdlib.h>
2937 int
2938 main ()
2939 {
2940 exit (42);
2941   ;
2942   return 0;
2943 }
2944 _ACEOF
2945 rm -f conftest.$ac_objext
2946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2947   (eval $ac_compile) 2>conftest.er1
2948   ac_status=$?
2949   grep -v '^ *+' conftest.er1 >conftest.err
2950   rm -f conftest.er1
2951   cat conftest.err >&5
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); } &&
2954          { ac_try='test -z "$ac_c_werror_flag"
2955                          || test ! -s conftest.err'
2956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957   (eval $ac_try) 2>&5
2958   ac_status=$?
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); }; } &&
2961          { ac_try='test -s conftest.$ac_objext'
2962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963   (eval $ac_try) 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }; }; then
2967   :
2968 else
2969   echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971
2972 continue
2973 fi
2974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2975   cat >conftest.$ac_ext <<_ACEOF
2976 /* confdefs.h.  */
2977 _ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h.  */
2981 $ac_declaration
2982 int
2983 main ()
2984 {
2985 exit (42);
2986   ;
2987   return 0;
2988 }
2989 _ACEOF
2990 rm -f conftest.$ac_objext
2991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2992   (eval $ac_compile) 2>conftest.er1
2993   ac_status=$?
2994   grep -v '^ *+' conftest.er1 >conftest.err
2995   rm -f conftest.er1
2996   cat conftest.err >&5
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); } &&
2999          { ac_try='test -z "$ac_c_werror_flag"
3000                          || test ! -s conftest.err'
3001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002   (eval $ac_try) 2>&5
3003   ac_status=$?
3004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005   (exit $ac_status); }; } &&
3006          { ac_try='test -s conftest.$ac_objext'
3007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008   (eval $ac_try) 2>&5
3009   ac_status=$?
3010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); }; }; then
3012   break
3013 else
3014   echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3016
3017 fi
3018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3019 done
3020 rm -f conftest*
3021 if test -n "$ac_declaration"; then
3022   echo '#ifdef __cplusplus' >>confdefs.h
3023   echo $ac_declaration      >>confdefs.h
3024   echo '#endif'             >>confdefs.h
3025 fi
3026
3027 else
3028   echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3030
3031 fi
3032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3033 ac_ext=c
3034 ac_cpp='$CPP $CPPFLAGS'
3035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038
3039 depcc="$CC"   am_compiler_list=
3040
3041 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3042 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3043 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3044   echo $ECHO_N "(cached) $ECHO_C" >&6
3045 else
3046   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3047   # We make a subdir and do the tests there.  Otherwise we can end up
3048   # making bogus files that we don't know about and never remove.  For
3049   # instance it was reported that on HP-UX the gcc test will end up
3050   # making a dummy file named `D' -- because `-MD' means `put the output
3051   # in D'.
3052   mkdir conftest.dir
3053   # Copy depcomp to subdir because otherwise we won't find it if we're
3054   # using a relative directory.
3055   cp "$am_depcomp" conftest.dir
3056   cd conftest.dir
3057   # We will build objects and dependencies in a subdirectory because
3058   # it helps to detect inapplicable dependency modes.  For instance
3059   # both Tru64's cc and ICC support -MD to output dependencies as a
3060   # side effect of compilation, but ICC will put the dependencies in
3061   # the current directory while Tru64 will put them in the object
3062   # directory.
3063   mkdir sub
3064
3065   am_cv_CC_dependencies_compiler_type=none
3066   if test "$am_compiler_list" = ""; then
3067      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3068   fi
3069   for depmode in $am_compiler_list; do
3070     # Setup a source with many dependencies, because some compilers
3071     # like to wrap large dependency lists on column 80 (with \), and
3072     # we should not choose a depcomp mode which is confused by this.
3073     #
3074     # We need to recreate these files for each test, as the compiler may
3075     # overwrite some of them when testing with obscure command lines.
3076     # This happens at least with the AIX C compiler.
3077     : > sub/conftest.c
3078     for i in 1 2 3 4 5 6; do
3079       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3080       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3081       # Solaris 8's {/usr,}/bin/sh.
3082       touch sub/conftst$i.h
3083     done
3084     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3085
3086     case $depmode in
3087     nosideeffect)
3088       # after this tag, mechanisms are not by side-effect, so they'll
3089       # only be used when explicitly requested
3090       if test "x$enable_dependency_tracking" = xyes; then
3091         continue
3092       else
3093         break
3094       fi
3095       ;;
3096     none) break ;;
3097     esac
3098     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3099     # mode.  It turns out that the SunPro C++ compiler does not properly
3100     # handle `-M -o', and we need to detect this.
3101     if depmode=$depmode \
3102        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3103        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3104        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3105          >/dev/null 2>conftest.err &&
3106        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3107        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3108        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3109       # icc doesn't choke on unknown options, it will just issue warnings
3110       # or remarks (even with -Werror).  So we grep stderr for any message
3111       # that says an option was ignored or not supported.
3112       # When given -MP, icc 7.0 and 7.1 complain thusly:
3113       #   icc: Command line warning: ignoring option '-M'; no argument required
3114       # The diagnosis changed in icc 8.0:
3115       #   icc: Command line remark: option '-MP' not supported
3116       if (grep 'ignoring option' conftest.err ||
3117           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3118         am_cv_CC_dependencies_compiler_type=$depmode
3119         break
3120       fi
3121     fi
3122   done
3123
3124   cd ..
3125   rm -rf conftest.dir
3126 else
3127   am_cv_CC_dependencies_compiler_type=none
3128 fi
3129
3130 fi
3131 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3132 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3133 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3134
3135
3136
3137 if
3138   test "x$enable_dependency_tracking" != xno \
3139   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3140   am__fastdepCC_TRUE=
3141   am__fastdepCC_FALSE='#'
3142 else
3143   am__fastdepCC_TRUE='#'
3144   am__fastdepCC_FALSE=
3145 fi
3146
3147
3148 ac_ext=c
3149 ac_cpp='$CPP $CPPFLAGS'
3150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3153 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3154 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3155 # On Suns, sometimes $CPP names a directory.
3156 if test -n "$CPP" && test -d "$CPP"; then
3157   CPP=
3158 fi
3159 if test -z "$CPP"; then
3160   if test "${ac_cv_prog_CPP+set}" = set; then
3161   echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163       # Double quotes because CPP needs to be expanded
3164     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3165     do
3166       ac_preproc_ok=false
3167 for ac_c_preproc_warn_flag in '' yes
3168 do
3169   # Use a header file that comes with gcc, so configuring glibc
3170   # with a fresh cross-compiler works.
3171   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3172   # <limits.h> exists even on freestanding compilers.
3173   # On the NeXT, cc -E runs the code through the compiler's parser,
3174   # not just through cpp. "Syntax error" is here to catch this case.
3175   cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h.  */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h.  */
3181 #ifdef __STDC__
3182 # include <limits.h>
3183 #else
3184 # include <assert.h>
3185 #endif
3186                      Syntax error
3187 _ACEOF
3188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3189   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3190   ac_status=$?
3191   grep -v '^ *+' conftest.er1 >conftest.err
3192   rm -f conftest.er1
3193   cat conftest.err >&5
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); } >/dev/null; then
3196   if test -s conftest.err; then
3197     ac_cpp_err=$ac_c_preproc_warn_flag
3198     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3199   else
3200     ac_cpp_err=
3201   fi
3202 else
3203   ac_cpp_err=yes
3204 fi
3205 if test -z "$ac_cpp_err"; then
3206   :
3207 else
3208   echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3210
3211   # Broken: fails on valid input.
3212 continue
3213 fi
3214 rm -f conftest.err conftest.$ac_ext
3215
3216   # OK, works on sane cases.  Now check whether non-existent headers
3217   # can be detected and how.
3218   cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h.  */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h.  */
3224 #include <ac_nonexistent.h>
3225 _ACEOF
3226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3227   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3228   ac_status=$?
3229   grep -v '^ *+' conftest.er1 >conftest.err
3230   rm -f conftest.er1
3231   cat conftest.err >&5
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); } >/dev/null; then
3234   if test -s conftest.err; then
3235     ac_cpp_err=$ac_c_preproc_warn_flag
3236     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3237   else
3238     ac_cpp_err=
3239   fi
3240 else
3241   ac_cpp_err=yes
3242 fi
3243 if test -z "$ac_cpp_err"; then
3244   # Broken: success on invalid input.
3245 continue
3246 else
3247   echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3249
3250   # Passes both tests.
3251 ac_preproc_ok=:
3252 break
3253 fi
3254 rm -f conftest.err conftest.$ac_ext
3255
3256 done
3257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3258 rm -f conftest.err conftest.$ac_ext
3259 if $ac_preproc_ok; then
3260   break
3261 fi
3262
3263     done
3264     ac_cv_prog_CPP=$CPP
3265
3266 fi
3267   CPP=$ac_cv_prog_CPP
3268 else
3269   ac_cv_prog_CPP=$CPP
3270 fi
3271 echo "$as_me:$LINENO: result: $CPP" >&5
3272 echo "${ECHO_T}$CPP" >&6
3273 ac_preproc_ok=false
3274 for ac_c_preproc_warn_flag in '' yes
3275 do
3276   # Use a header file that comes with gcc, so configuring glibc
3277   # with a fresh cross-compiler works.
3278   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3279   # <limits.h> exists even on freestanding compilers.
3280   # On the NeXT, cc -E runs the code through the compiler's parser,
3281   # not just through cpp. "Syntax error" is here to catch this case.
3282   cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h.  */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h.  */
3288 #ifdef __STDC__
3289 # include <limits.h>
3290 #else
3291 # include <assert.h>
3292 #endif
3293                      Syntax error
3294 _ACEOF
3295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3296   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3297   ac_status=$?
3298   grep -v '^ *+' conftest.er1 >conftest.err
3299   rm -f conftest.er1
3300   cat conftest.err >&5
3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); } >/dev/null; then
3303   if test -s conftest.err; then
3304     ac_cpp_err=$ac_c_preproc_warn_flag
3305     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306   else
3307     ac_cpp_err=
3308   fi
3309 else
3310   ac_cpp_err=yes
3311 fi
3312 if test -z "$ac_cpp_err"; then
3313   :
3314 else
3315   echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
3318   # Broken: fails on valid input.
3319 continue
3320 fi
3321 rm -f conftest.err conftest.$ac_ext
3322
3323   # OK, works on sane cases.  Now check whether non-existent headers
3324   # can be detected and how.
3325   cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h.  */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h.  */
3331 #include <ac_nonexistent.h>
3332 _ACEOF
3333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3334   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3335   ac_status=$?
3336   grep -v '^ *+' conftest.er1 >conftest.err
3337   rm -f conftest.er1
3338   cat conftest.err >&5
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); } >/dev/null; then
3341   if test -s conftest.err; then
3342     ac_cpp_err=$ac_c_preproc_warn_flag
3343     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3344   else
3345     ac_cpp_err=
3346   fi
3347 else
3348   ac_cpp_err=yes
3349 fi
3350 if test -z "$ac_cpp_err"; then
3351   # Broken: success on invalid input.
3352 continue
3353 else
3354   echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3356
3357   # Passes both tests.
3358 ac_preproc_ok=:
3359 break
3360 fi
3361 rm -f conftest.err conftest.$ac_ext
3362
3363 done
3364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3365 rm -f conftest.err conftest.$ac_ext
3366 if $ac_preproc_ok; then
3367   :
3368 else
3369   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3370 See \`config.log' for more details." >&5
3371 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3372 See \`config.log' for more details." >&2;}
3373    { (exit 1); exit 1; }; }
3374 fi
3375
3376 ac_ext=c
3377 ac_cpp='$CPP $CPPFLAGS'
3378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3381
3382 ac_ext=c
3383 ac_cpp='$CPP $CPPFLAGS'
3384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 if test -n "$ac_tool_prefix"; then
3388   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3389 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_prog_CC+set}" = set; then
3393   echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395   if test -n "$CC"; then
3396   ac_cv_prog_CC="$CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401   IFS=$as_save_IFS
3402   test -z "$as_dir" && as_dir=.
3403   for ac_exec_ext in '' $ac_executable_extensions; do
3404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3407     break 2
3408   fi
3409 done
3410 done
3411
3412 fi
3413 fi
3414 CC=$ac_cv_prog_CC
3415 if test -n "$CC"; then
3416   echo "$as_me:$LINENO: result: $CC" >&5
3417 echo "${ECHO_T}$CC" >&6
3418 else
3419   echo "$as_me:$LINENO: result: no" >&5
3420 echo "${ECHO_T}no" >&6
3421 fi
3422
3423 fi
3424 if test -z "$ac_cv_prog_CC"; then
3425   ac_ct_CC=$CC
3426   # Extract the first word of "gcc", so it can be a program name with args.
3427 set dummy gcc; ac_word=$2
3428 echo "$as_me:$LINENO: checking for $ac_word" >&5
3429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3431   echo $ECHO_N "(cached) $ECHO_C" >&6
3432 else
3433   if test -n "$ac_ct_CC"; then
3434   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3435 else
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439   IFS=$as_save_IFS
3440   test -z "$as_dir" && as_dir=.
3441   for ac_exec_ext in '' $ac_executable_extensions; do
3442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443     ac_cv_prog_ac_ct_CC="gcc"
3444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3445     break 2
3446   fi
3447 done
3448 done
3449
3450 fi
3451 fi
3452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3453 if test -n "$ac_ct_CC"; then
3454   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3455 echo "${ECHO_T}$ac_ct_CC" >&6
3456 else
3457   echo "$as_me:$LINENO: result: no" >&5
3458 echo "${ECHO_T}no" >&6
3459 fi
3460
3461   CC=$ac_ct_CC
3462 else
3463   CC="$ac_cv_prog_CC"
3464 fi
3465
3466 if test -z "$CC"; then
3467   if test -n "$ac_tool_prefix"; then
3468   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3469 set dummy ${ac_tool_prefix}cc; ac_word=$2
3470 echo "$as_me:$LINENO: checking for $ac_word" >&5
3471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3472 if test "${ac_cv_prog_CC+set}" = set; then
3473   echo $ECHO_N "(cached) $ECHO_C" >&6
3474 else
3475   if test -n "$CC"; then
3476   ac_cv_prog_CC="$CC" # Let the user override the test.
3477 else
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3480 do
3481   IFS=$as_save_IFS
3482   test -z "$as_dir" && as_dir=.
3483   for ac_exec_ext in '' $ac_executable_extensions; do
3484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3485     ac_cv_prog_CC="${ac_tool_prefix}cc"
3486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3487     break 2
3488   fi
3489 done
3490 done
3491
3492 fi
3493 fi
3494 CC=$ac_cv_prog_CC
3495 if test -n "$CC"; then
3496   echo "$as_me:$LINENO: result: $CC" >&5
3497 echo "${ECHO_T}$CC" >&6
3498 else
3499   echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3501 fi
3502
3503 fi
3504 if test -z "$ac_cv_prog_CC"; then
3505   ac_ct_CC=$CC
3506   # Extract the first word of "cc", so it can be a program name with args.
3507 set dummy cc; ac_word=$2
3508 echo "$as_me:$LINENO: checking for $ac_word" >&5
3509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3510 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3511   echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513   if test -n "$ac_ct_CC"; then
3514   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519   IFS=$as_save_IFS
3520   test -z "$as_dir" && as_dir=.
3521   for ac_exec_ext in '' $ac_executable_extensions; do
3522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523     ac_cv_prog_ac_ct_CC="cc"
3524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3525     break 2
3526   fi
3527 done
3528 done
3529
3530 fi
3531 fi
3532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3533 if test -n "$ac_ct_CC"; then
3534   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3535 echo "${ECHO_T}$ac_ct_CC" >&6
3536 else
3537   echo "$as_me:$LINENO: result: no" >&5
3538 echo "${ECHO_T}no" >&6
3539 fi
3540
3541   CC=$ac_ct_CC
3542 else
3543   CC="$ac_cv_prog_CC"
3544 fi
3545
3546 fi
3547 if test -z "$CC"; then
3548   # Extract the first word of "cc", so it can be a program name with args.
3549 set dummy cc; ac_word=$2
3550 echo "$as_me:$LINENO: checking for $ac_word" >&5
3551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552 if test "${ac_cv_prog_CC+set}" = set; then
3553   echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555   if test -n "$CC"; then
3556   ac_cv_prog_CC="$CC" # Let the user override the test.
3557 else
3558   ac_prog_rejected=no
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH
3561 do
3562   IFS=$as_save_IFS
3563   test -z "$as_dir" && as_dir=.
3564   for ac_exec_ext in '' $ac_executable_extensions; do
3565   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3566     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3567        ac_prog_rejected=yes
3568        continue
3569      fi
3570     ac_cv_prog_CC="cc"
3571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3572     break 2
3573   fi
3574 done
3575 done
3576
3577 if test $ac_prog_rejected = yes; then
3578   # We found a bogon in the path, so make sure we never use it.
3579   set dummy $ac_cv_prog_CC
3580   shift
3581   if test $# != 0; then
3582     # We chose a different compiler from the bogus one.
3583     # However, it has the same basename, so the bogon will be chosen
3584     # first if we set CC to just the basename; use the full file name.
3585     shift
3586     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3587   fi
3588 fi
3589 fi
3590 fi
3591 CC=$ac_cv_prog_CC
3592 if test -n "$CC"; then
3593   echo "$as_me:$LINENO: result: $CC" >&5
3594 echo "${ECHO_T}$CC" >&6
3595 else
3596   echo "$as_me:$LINENO: result: no" >&5
3597 echo "${ECHO_T}no" >&6
3598 fi
3599
3600 fi
3601 if test -z "$CC"; then
3602   if test -n "$ac_tool_prefix"; then
3603   for ac_prog in cl
3604   do
3605     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3607 echo "$as_me:$LINENO: checking for $ac_word" >&5
3608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3609 if test "${ac_cv_prog_CC+set}" = set; then
3610   echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612   if test -n "$CC"; then
3613   ac_cv_prog_CC="$CC" # Let the user override the test.
3614 else
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3617 do
3618   IFS=$as_save_IFS
3619   test -z "$as_dir" && as_dir=.
3620   for ac_exec_ext in '' $ac_executable_extensions; do
3621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3622     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3624     break 2
3625   fi
3626 done
3627 done
3628
3629 fi
3630 fi
3631 CC=$ac_cv_prog_CC
3632 if test -n "$CC"; then
3633   echo "$as_me:$LINENO: result: $CC" >&5
3634 echo "${ECHO_T}$CC" >&6
3635 else
3636   echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6
3638 fi
3639
3640     test -n "$CC" && break
3641   done
3642 fi
3643 if test -z "$CC"; then
3644   ac_ct_CC=$CC
3645   for ac_prog in cl
3646 do
3647   # Extract the first word of "$ac_prog", so it can be a program name with args.
3648 set dummy $ac_prog; ac_word=$2
3649 echo "$as_me:$LINENO: checking for $ac_word" >&5
3650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3652   echo $ECHO_N "(cached) $ECHO_C" >&6
3653 else
3654   if test -n "$ac_ct_CC"; then
3655   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3656 else
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3659 do
3660   IFS=$as_save_IFS
3661   test -z "$as_dir" && as_dir=.
3662   for ac_exec_ext in '' $ac_executable_extensions; do
3663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664     ac_cv_prog_ac_ct_CC="$ac_prog"
3665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3666     break 2
3667   fi
3668 done
3669 done
3670
3671 fi
3672 fi
3673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3674 if test -n "$ac_ct_CC"; then
3675   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3676 echo "${ECHO_T}$ac_ct_CC" >&6
3677 else
3678   echo "$as_me:$LINENO: result: no" >&5
3679 echo "${ECHO_T}no" >&6
3680 fi
3681
3682   test -n "$ac_ct_CC" && break
3683 done
3684
3685   CC=$ac_ct_CC
3686 fi
3687
3688 fi
3689
3690
3691 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3692 See \`config.log' for more details." >&5
3693 echo "$as_me: error: no acceptable C compiler found in \$PATH
3694 See \`config.log' for more details." >&2;}
3695    { (exit 1); exit 1; }; }
3696
3697 # Provide some information about the compiler.
3698 echo "$as_me:$LINENO:" \
3699      "checking for C compiler version" >&5
3700 ac_compiler=`set X $ac_compile; echo $2`
3701 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3702   (eval $ac_compiler --version </dev/null >&5) 2>&5
3703   ac_status=$?
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); }
3706 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3707   (eval $ac_compiler -v </dev/null >&5) 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); }
3711 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3712   (eval $ac_compiler -V </dev/null >&5) 2>&5
3713   ac_status=$?
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); }
3716
3717 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3718 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3719 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   cat >conftest.$ac_ext <<_ACEOF
3723 /* confdefs.h.  */
3724 _ACEOF
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h.  */
3728
3729 int
3730 main ()
3731 {
3732 #ifndef __GNUC__
3733        choke me
3734 #endif
3735
3736   ;
3737   return 0;
3738 }
3739 _ACEOF
3740 rm -f conftest.$ac_objext
3741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3742   (eval $ac_compile) 2>conftest.er1
3743   ac_status=$?
3744   grep -v '^ *+' conftest.er1 >conftest.err
3745   rm -f conftest.er1
3746   cat conftest.err >&5
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); } &&
3749          { ac_try='test -z "$ac_c_werror_flag"
3750                          || test ! -s conftest.err'
3751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752   (eval $ac_try) 2>&5
3753   ac_status=$?
3754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755   (exit $ac_status); }; } &&
3756          { ac_try='test -s conftest.$ac_objext'
3757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758   (eval $ac_try) 2>&5
3759   ac_status=$?
3760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761   (exit $ac_status); }; }; then
3762   ac_compiler_gnu=yes
3763 else
3764   echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3766
3767 ac_compiler_gnu=no
3768 fi
3769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3770 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3771
3772 fi
3773 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3774 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3775 GCC=`test $ac_compiler_gnu = yes && echo yes`
3776 ac_test_CFLAGS=${CFLAGS+set}
3777 ac_save_CFLAGS=$CFLAGS
3778 CFLAGS="-g"
3779 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3780 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3781 if test "${ac_cv_prog_cc_g+set}" = set; then
3782   echo $ECHO_N "(cached) $ECHO_C" >&6
3783 else
3784   cat >conftest.$ac_ext <<_ACEOF
3785 /* confdefs.h.  */
3786 _ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h.  */
3790
3791 int
3792 main ()
3793 {
3794
3795   ;
3796   return 0;
3797 }
3798 _ACEOF
3799 rm -f conftest.$ac_objext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3801   (eval $ac_compile) 2>conftest.er1
3802   ac_status=$?
3803   grep -v '^ *+' conftest.er1 >conftest.err
3804   rm -f conftest.er1
3805   cat conftest.err >&5
3806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); } &&
3808          { ac_try='test -z "$ac_c_werror_flag"
3809                          || test ! -s conftest.err'
3810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811   (eval $ac_try) 2>&5
3812   ac_status=$?
3813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814   (exit $ac_status); }; } &&
3815          { ac_try='test -s conftest.$ac_objext'
3816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817   (eval $ac_try) 2>&5
3818   ac_status=$?
3819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820   (exit $ac_status); }; }; then
3821   ac_cv_prog_cc_g=yes
3822 else
3823   echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 ac_cv_prog_cc_g=no
3827 fi
3828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3829 fi
3830 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3831 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3832 if test "$ac_test_CFLAGS" = set; then
3833   CFLAGS=$ac_save_CFLAGS
3834 elif test $ac_cv_prog_cc_g = yes; then
3835   if test "$GCC" = yes; then
3836     CFLAGS="-g -O2"
3837   else
3838     CFLAGS="-g"
3839   fi
3840 else
3841   if test "$GCC" = yes; then
3842     CFLAGS="-O2"
3843   else
3844     CFLAGS=
3845   fi
3846 fi
3847 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3848 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3849 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3850   echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852   ac_cv_prog_cc_stdc=no
3853 ac_save_CC=$CC
3854 cat >conftest.$ac_ext <<_ACEOF
3855 /* confdefs.h.  */
3856 _ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h.  */
3860 #include <stdarg.h>
3861 #include <stdio.h>
3862 #include <sys/types.h>
3863 #include <sys/stat.h>
3864 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3865 struct buf { int x; };
3866 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3867 static char *e (p, i)
3868      char **p;
3869      int i;
3870 {
3871   return p[i];
3872 }
3873 static char *f (char * (*g) (char **, int), char **p, ...)
3874 {
3875   char *s;
3876   va_list v;
3877   va_start (v,p);
3878   s = g (p, va_arg (v,int));
3879   va_end (v);
3880   return s;
3881 }
3882
3883 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3884    function prototypes and stuff, but not '\xHH' hex character constants.
3885    These don't provoke an error unfortunately, instead are silently treated
3886    as 'x'.  The following induces an error, until -std1 is added to get
3887    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3888    array size at least.  It's necessary to write '\x00'==0 to get something
3889    that's true only with -std1.  */
3890 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3891
3892 int test (int i, double x);
3893 struct s1 {int (*f) (int a);};
3894 struct s2 {int (*f) (double a);};
3895 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3896 int argc;
3897 char **argv;
3898 int
3899 main ()
3900 {
3901 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3902   ;
3903   return 0;
3904 }
3905 _ACEOF
3906 # Don't try gcc -ansi; that turns off useful extensions and
3907 # breaks some systems' header files.
3908 # AIX                   -qlanglvl=ansi
3909 # Ultrix and OSF/1      -std1
3910 # HP-UX 10.20 and later -Ae
3911 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3912 # SVR4                  -Xc -D__EXTENSIONS__
3913 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3914 do
3915   CC="$ac_save_CC $ac_arg"
3916   rm -f conftest.$ac_objext
3917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3918   (eval $ac_compile) 2>conftest.er1
3919   ac_status=$?
3920   grep -v '^ *+' conftest.er1 >conftest.err
3921   rm -f conftest.er1
3922   cat conftest.err >&5
3923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924   (exit $ac_status); } &&
3925          { ac_try='test -z "$ac_c_werror_flag"
3926                          || test ! -s conftest.err'
3927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928   (eval $ac_try) 2>&5
3929   ac_status=$?
3930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931   (exit $ac_status); }; } &&
3932          { ac_try='test -s conftest.$ac_objext'
3933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934   (eval $ac_try) 2>&5
3935   ac_status=$?
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); }; }; then
3938   ac_cv_prog_cc_stdc=$ac_arg
3939 break
3940 else
3941   echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3943
3944 fi
3945 rm -f conftest.err conftest.$ac_objext
3946 done
3947 rm -f conftest.$ac_ext conftest.$ac_objext
3948 CC=$ac_save_CC
3949
3950 fi
3951
3952 case "x$ac_cv_prog_cc_stdc" in
3953   x|xno)
3954     echo "$as_me:$LINENO: result: none needed" >&5
3955 echo "${ECHO_T}none needed" >&6 ;;
3956   *)
3957     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3958 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3959     CC="$CC $ac_cv_prog_cc_stdc" ;;
3960 esac
3961
3962 # Some people use a C++ compiler to compile C.  Since we use `exit',
3963 # in C++ we need to declare it.  In case someone uses the same compiler
3964 # for both compiling C and C++ we need to have the C++ compiler decide
3965 # the declaration of exit, since it's the most demanding environment.
3966 cat >conftest.$ac_ext <<_ACEOF
3967 #ifndef __cplusplus
3968   choke me
3969 #endif
3970 _ACEOF
3971 rm -f conftest.$ac_objext
3972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973   (eval $ac_compile) 2>conftest.er1
3974   ac_status=$?
3975   grep -v '^ *+' conftest.er1 >conftest.err
3976   rm -f conftest.er1
3977   cat conftest.err >&5
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); } &&
3980          { ac_try='test -z "$ac_c_werror_flag"
3981                          || test ! -s conftest.err'
3982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983   (eval $ac_try) 2>&5
3984   ac_status=$?
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); }; } &&
3987          { ac_try='test -s conftest.$ac_objext'
3988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989   (eval $ac_try) 2>&5
3990   ac_status=$?
3991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992   (exit $ac_status); }; }; then
3993   for ac_declaration in \
3994    '' \
3995    'extern "C" void std::exit (int) throw (); using std::exit;' \
3996    'extern "C" void std::exit (int); using std::exit;' \
3997    'extern "C" void exit (int) throw ();' \
3998    'extern "C" void exit (int);' \
3999    'void exit (int);'
4000 do
4001   cat >conftest.$ac_ext <<_ACEOF
4002 /* confdefs.h.  */
4003 _ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h.  */
4007 $ac_declaration
4008 #include <stdlib.h>
4009 int
4010 main ()
4011 {
4012 exit (42);
4013   ;
4014   return 0;
4015 }
4016 _ACEOF
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019   (eval $ac_compile) 2>conftest.er1
4020   ac_status=$?
4021   grep -v '^ *+' conftest.er1 >conftest.err
4022   rm -f conftest.er1
4023   cat conftest.err >&5
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); } &&
4026          { ac_try='test -z "$ac_c_werror_flag"
4027                          || test ! -s conftest.err'
4028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029   (eval $ac_try) 2>&5
4030   ac_status=$?
4031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); }; } &&
4033          { ac_try='test -s conftest.$ac_objext'
4034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035   (eval $ac_try) 2>&5
4036   ac_status=$?
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); }; }; then
4039   :
4040 else
4041   echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044 continue
4045 fi
4046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4047   cat >conftest.$ac_ext <<_ACEOF
4048 /* confdefs.h.  */
4049 _ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h.  */
4053 $ac_declaration
4054 int
4055 main ()
4056 {
4057 exit (42);
4058   ;
4059   return 0;
4060 }
4061 _ACEOF
4062 rm -f conftest.$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064   (eval $ac_compile) 2>conftest.er1
4065   ac_status=$?
4066   grep -v '^ *+' conftest.er1 >conftest.err
4067   rm -f conftest.er1
4068   cat conftest.err >&5
4069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070   (exit $ac_status); } &&
4071          { ac_try='test -z "$ac_c_werror_flag"
4072                          || test ! -s conftest.err'
4073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074   (eval $ac_try) 2>&5
4075   ac_status=$?
4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); }; } &&
4078          { ac_try='test -s conftest.$ac_objext'
4079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080   (eval $ac_try) 2>&5
4081   ac_status=$?
4082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083   (exit $ac_status); }; }; then
4084   break
4085 else
4086   echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4088
4089 fi
4090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4091 done
4092 rm -f conftest*
4093 if test -n "$ac_declaration"; then
4094   echo '#ifdef __cplusplus' >>confdefs.h
4095   echo $ac_declaration      >>confdefs.h
4096   echo '#endif'             >>confdefs.h
4097 fi
4098
4099 else
4100   echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4102
4103 fi
4104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4105 ac_ext=c
4106 ac_cpp='$CPP $CPPFLAGS'
4107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110
4111 depcc="$CC"   am_compiler_list=
4112
4113 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4114 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4115 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4116   echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4119   # We make a subdir and do the tests there.  Otherwise we can end up
4120   # making bogus files that we don't know about and never remove.  For
4121   # instance it was reported that on HP-UX the gcc test will end up
4122   # making a dummy file named `D' -- because `-MD' means `put the output
4123   # in D'.
4124   mkdir conftest.dir
4125   # Copy depcomp to subdir because otherwise we won't find it if we're
4126   # using a relative directory.
4127   cp "$am_depcomp" conftest.dir
4128   cd conftest.dir
4129   # We will build objects and dependencies in a subdirectory because
4130   # it helps to detect inapplicable dependency modes.  For instance
4131   # both Tru64's cc and ICC support -MD to output dependencies as a
4132   # side effect of compilation, but ICC will put the dependencies in
4133   # the current directory while Tru64 will put them in the object
4134   # directory.
4135   mkdir sub
4136
4137   am_cv_CC_dependencies_compiler_type=none
4138   if test "$am_compiler_list" = ""; then
4139      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4140   fi
4141   for depmode in $am_compiler_list; do
4142     # Setup a source with many dependencies, because some compilers
4143     # like to wrap large dependency lists on column 80 (with \), and
4144     # we should not choose a depcomp mode which is confused by this.
4145     #
4146     # We need to recreate these files for each test, as the compiler may
4147     # overwrite some of them when testing with obscure command lines.
4148     # This happens at least with the AIX C compiler.
4149     : > sub/conftest.c
4150     for i in 1 2 3 4 5 6; do
4151       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4152       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4153       # Solaris 8's {/usr,}/bin/sh.
4154       touch sub/conftst$i.h
4155     done
4156     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4157
4158     case $depmode in
4159     nosideeffect)
4160       # after this tag, mechanisms are not by side-effect, so they'll
4161       # only be used when explicitly requested
4162       if test "x$enable_dependency_tracking" = xyes; then
4163         continue
4164       else
4165         break
4166       fi
4167       ;;
4168     none) break ;;
4169     esac
4170     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4171     # mode.  It turns out that the SunPro C++ compiler does not properly
4172     # handle `-M -o', and we need to detect this.
4173     if depmode=$depmode \
4174        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4175        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4176        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4177          >/dev/null 2>conftest.err &&
4178        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4179        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4180        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4181       # icc doesn't choke on unknown options, it will just issue warnings
4182       # or remarks (even with -Werror).  So we grep stderr for any message
4183       # that says an option was ignored or not supported.
4184       # When given -MP, icc 7.0 and 7.1 complain thusly:
4185       #   icc: Command line warning: ignoring option '-M'; no argument required
4186       # The diagnosis changed in icc 8.0:
4187       #   icc: Command line remark: option '-MP' not supported
4188       if (grep 'ignoring option' conftest.err ||
4189           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4190         am_cv_CC_dependencies_compiler_type=$depmode
4191         break
4192       fi
4193     fi
4194   done
4195
4196   cd ..
4197   rm -rf conftest.dir
4198 else
4199   am_cv_CC_dependencies_compiler_type=none
4200 fi
4201
4202 fi
4203 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4204 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4205 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4206
4207
4208
4209 if
4210   test "x$enable_dependency_tracking" != xno \
4211   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4212   am__fastdepCC_TRUE=
4213   am__fastdepCC_FALSE='#'
4214 else
4215   am__fastdepCC_TRUE='#'
4216   am__fastdepCC_FALSE=
4217 fi
4218
4219
4220
4221 # By default we simply use the C compiler to build assembly code.
4222
4223 test "${CCAS+set}" = set || CCAS=$CC
4224 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4225
4226
4227
4228 if test "x$CC" != xcc; then
4229   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4230 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
4231 else
4232   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4233 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
4234 fi
4235 set dummy $CC; ac_cc=`echo $2 |
4236                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4237 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
4238   echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240   cat >conftest.$ac_ext <<_ACEOF
4241 /* confdefs.h.  */
4242 _ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h.  */
4246
4247 int
4248 main ()
4249 {
4250
4251   ;
4252   return 0;
4253 }
4254 _ACEOF
4255 # Make sure it works both with $CC and with simple cc.
4256 # We do the test twice because some compilers refuse to overwrite an
4257 # existing .o file with -o, though they will create one.
4258 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4259 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260   (eval $ac_try) 2>&5
4261   ac_status=$?
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); } &&
4264    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265   (eval $ac_try) 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); };
4269 then
4270   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4271   if test "x$CC" != xcc; then
4272     # Test first that cc exists at all.
4273     if { ac_try='cc -c conftest.$ac_ext >&5'
4274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275   (eval $ac_try) 2>&5
4276   ac_status=$?
4277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278   (exit $ac_status); }; }; then
4279       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4280       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281   (eval $ac_try) 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); } &&
4285          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286   (eval $ac_try) 2>&5
4287   ac_status=$?
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); };
4290       then
4291         # cc works too.
4292         :
4293       else
4294         # cc exists but doesn't like -o.
4295         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4296       fi
4297     fi
4298   fi
4299 else
4300   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4301 fi
4302 rm -f conftest*
4303
4304 fi
4305 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4306   echo "$as_me:$LINENO: result: yes" >&5
4307 echo "${ECHO_T}yes" >&6
4308 else
4309   echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6
4311
4312 cat >>confdefs.h <<\_ACEOF
4313 #define NO_MINUS_C_MINUS_O 1
4314 _ACEOF
4315
4316 fi
4317
4318 # FIXME: we rely on the cache variable name because
4319 # there is no other way.
4320 set dummy $CC
4321 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4322 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4323    # Losing compiler, so override with the script.
4324    # FIXME: It is wrong to rewrite CC.
4325    # But if we don't then we get into trouble of one sort or another.
4326    # A longer-term fix would be to have automake use am__CC in this case,
4327    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4328    CC="$am_aux_dir/compile $CC"
4329 fi
4330
4331 # Find a good install program.  We prefer a C program (faster),
4332 # so one script is as good as another.  But avoid the broken or
4333 # incompatible versions:
4334 # SysV /etc/install, /usr/sbin/install
4335 # SunOS /usr/etc/install
4336 # IRIX /sbin/install
4337 # AIX /bin/install
4338 # AmigaOS /C/install, which installs bootblocks on floppy discs
4339 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4340 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4341 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4342 # OS/2's system install, which has a completely different semantic
4343 # ./install, which can be erroneously created by make from ./install.sh.
4344 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4345 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4346 if test -z "$INSTALL"; then
4347 if test "${ac_cv_path_install+set}" = set; then
4348   echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH
4352 do
4353   IFS=$as_save_IFS
4354   test -z "$as_dir" && as_dir=.
4355   # Account for people who put trailing slashes in PATH elements.
4356 case $as_dir/ in
4357   ./ | .// | /cC/* | \
4358   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4359   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4360   /usr/ucb/* ) ;;
4361   *)
4362     # OSF1 and SCO ODT 3.0 have their own names for install.
4363     # Don't use installbsd from OSF since it installs stuff as root
4364     # by default.
4365     for ac_prog in ginstall scoinst install; do
4366       for ac_exec_ext in '' $ac_executable_extensions; do
4367         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4368           if test $ac_prog = install &&
4369             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4370             # AIX install.  It has an incompatible calling convention.
4371             :
4372           elif test $ac_prog = install &&
4373             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4374             # program-specific install script used by HP pwplus--don't use.
4375             :
4376           else
4377             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4378             break 3
4379           fi
4380         fi
4381       done
4382     done
4383     ;;
4384 esac
4385 done
4386
4387
4388 fi
4389   if test "${ac_cv_path_install+set}" = set; then
4390     INSTALL=$ac_cv_path_install
4391   else
4392     # As a last resort, use the slow shell script.  We don't cache a
4393     # path for INSTALL within a source directory, because that will
4394     # break other packages using the cache if that directory is
4395     # removed, or if the path is relative.
4396     INSTALL=$ac_install_sh
4397   fi
4398 fi
4399 echo "$as_me:$LINENO: result: $INSTALL" >&5
4400 echo "${ECHO_T}$INSTALL" >&6
4401
4402 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4403 # It thinks the first close brace ends the variable substitution.
4404 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4405
4406 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4407
4408 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4409
4410 # Check whether --enable-shared or --disable-shared was given.
4411 if test "${enable_shared+set}" = set; then
4412   enableval="$enable_shared"
4413   p=${PACKAGE-default}
4414     case $enableval in
4415     yes) enable_shared=yes ;;
4416     no) enable_shared=no ;;
4417     *)
4418       enable_shared=no
4419       # Look at the argument we got.  We use all the common list separators.
4420       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4421       for pkg in $enableval; do
4422         IFS="$lt_save_ifs"
4423         if test "X$pkg" = "X$p"; then
4424           enable_shared=yes
4425         fi
4426       done
4427       IFS="$lt_save_ifs"
4428       ;;
4429     esac
4430 else
4431   enable_shared=yes
4432 fi;
4433
4434 # Check whether --enable-static or --disable-static was given.
4435 if test "${enable_static+set}" = set; then
4436   enableval="$enable_static"
4437   p=${PACKAGE-default}
4438     case $enableval in
4439     yes) enable_static=yes ;;
4440     no) enable_static=no ;;
4441     *)
4442      enable_static=no
4443       # Look at the argument we got.  We use all the common list separators.
4444       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4445       for pkg in $enableval; do
4446         IFS="$lt_save_ifs"
4447         if test "X$pkg" = "X$p"; then
4448           enable_static=yes
4449         fi
4450       done
4451       IFS="$lt_save_ifs"
4452       ;;
4453     esac
4454 else
4455   enable_static=yes
4456 fi;
4457
4458 # Check whether --enable-fast-install or --disable-fast-install was given.
4459 if test "${enable_fast_install+set}" = set; then
4460   enableval="$enable_fast_install"
4461   p=${PACKAGE-default}
4462     case $enableval in
4463     yes) enable_fast_install=yes ;;
4464     no) enable_fast_install=no ;;
4465     *)
4466       enable_fast_install=no
4467       # Look at the argument we got.  We use all the common list separators.
4468       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4469       for pkg in $enableval; do
4470         IFS="$lt_save_ifs"
4471         if test "X$pkg" = "X$p"; then
4472           enable_fast_install=yes
4473         fi
4474       done
4475       IFS="$lt_save_ifs"
4476       ;;
4477     esac
4478 else
4479   enable_fast_install=yes
4480 fi;
4481
4482 # Make sure we can run config.sub.
4483 $ac_config_sub sun4 >/dev/null 2>&1 ||
4484   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4485 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4486    { (exit 1); exit 1; }; }
4487
4488 echo "$as_me:$LINENO: checking build system type" >&5
4489 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4490 if test "${ac_cv_build+set}" = set; then
4491   echo $ECHO_N "(cached) $ECHO_C" >&6
4492 else
4493   ac_cv_build_alias=$build_alias
4494 test -z "$ac_cv_build_alias" &&
4495   ac_cv_build_alias=`$ac_config_guess`
4496 test -z "$ac_cv_build_alias" &&
4497   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4498 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4499    { (exit 1); exit 1; }; }
4500 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4501   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4502 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4503    { (exit 1); exit 1; }; }
4504
4505 fi
4506 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4507 echo "${ECHO_T}$ac_cv_build" >&6
4508 build=$ac_cv_build
4509 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4510 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4511 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4512
4513
4514 echo "$as_me:$LINENO: checking host system type" >&5
4515 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4516 if test "${ac_cv_host+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   ac_cv_host_alias=$host_alias
4520 test -z "$ac_cv_host_alias" &&
4521   ac_cv_host_alias=$ac_cv_build_alias
4522 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4523   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4524 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4525    { (exit 1); exit 1; }; }
4526
4527 fi
4528 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4529 echo "${ECHO_T}$ac_cv_host" >&6
4530 host=$ac_cv_host
4531 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4532 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4533 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4534
4535
4536 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4537 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4538 if test "${lt_cv_path_SED+set}" = set; then
4539   echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541   # Loop through the user's path and test for sed and gsed.
4542 # Then use that list of sed's as ones to test for truncation.
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4545 do
4546   IFS=$as_save_IFS
4547   test -z "$as_dir" && as_dir=.
4548   for lt_ac_prog in sed gsed; do
4549     for ac_exec_ext in '' $ac_executable_extensions; do
4550       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4551         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4552       fi
4553     done
4554   done
4555 done
4556 lt_ac_max=0
4557 lt_ac_count=0
4558 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4559 # along with /bin/sed that truncates output.
4560 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4561   test ! -f $lt_ac_sed && break
4562   cat /dev/null > conftest.in
4563   lt_ac_count=0
4564   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4565   # Check for GNU sed and select it if it is found.
4566   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4567     lt_cv_path_SED=$lt_ac_sed
4568     break
4569   fi
4570   while true; do
4571     cat conftest.in conftest.in >conftest.tmp
4572     mv conftest.tmp conftest.in
4573     cp conftest.in conftest.nl
4574     echo >>conftest.nl
4575     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4576     cmp -s conftest.out conftest.nl || break
4577     # 10000 chars as input seems more than enough
4578     test $lt_ac_count -gt 10 && break
4579     lt_ac_count=`expr $lt_ac_count + 1`
4580     if test $lt_ac_count -gt $lt_ac_max; then
4581       lt_ac_max=$lt_ac_count
4582       lt_cv_path_SED=$lt_ac_sed
4583     fi
4584   done
4585 done
4586 SED=$lt_cv_path_SED
4587
4588 fi
4589
4590 echo "$as_me:$LINENO: result: $SED" >&5
4591 echo "${ECHO_T}$SED" >&6
4592
4593 echo "$as_me:$LINENO: checking for egrep" >&5
4594 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4595 if test "${ac_cv_prog_egrep+set}" = set; then
4596   echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4599     then ac_cv_prog_egrep='grep -E'
4600     else ac_cv_prog_egrep='egrep'
4601     fi
4602 fi
4603 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4604 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4605  EGREP=$ac_cv_prog_egrep
4606
4607
4608
4609 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4610 if test "${with_gnu_ld+set}" = set; then
4611   withval="$with_gnu_ld"
4612   test "$withval" = no || with_gnu_ld=yes
4613 else
4614   with_gnu_ld=no
4615 fi;
4616 ac_prog=ld
4617 if test "$GCC" = yes; then
4618   # Check if gcc -print-prog-name=ld gives a path.
4619   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4620 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4621   case $host in
4622   *-*-mingw*)
4623     # gcc leaves a trailing carriage return which upsets mingw
4624     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4625   *)
4626     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4627   esac
4628   case $ac_prog in
4629     # Accept absolute paths.
4630     [\\/]* | ?:[\\/]*)
4631       re_direlt='/[^/][^/]*/\.\./'
4632       # Canonicalize the pathname of ld
4633       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4634       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4635         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4636       done
4637       test -z "$LD" && LD="$ac_prog"
4638       ;;
4639   "")
4640     # If it fails, then pretend we aren't using GCC.
4641     ac_prog=ld
4642     ;;
4643   *)
4644     # If it is relative, then search for the first ld in PATH.
4645     with_gnu_ld=unknown
4646     ;;
4647   esac
4648 elif test "$with_gnu_ld" = yes; then
4649   echo "$as_me:$LINENO: checking for GNU ld" >&5
4650 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4651 else
4652   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4653 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4654 fi
4655 if test "${lt_cv_path_LD+set}" = set; then
4656   echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658   if test -z "$LD"; then
4659   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4660   for ac_dir in $PATH; do
4661     IFS="$lt_save_ifs"
4662     test -z "$ac_dir" && ac_dir=.
4663     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4664       lt_cv_path_LD="$ac_dir/$ac_prog"
4665       # Check to see if the program is GNU ld.  I'd rather use --version,
4666       # but apparently some GNU ld's only accept -v.
4667       # Break only if it was the GNU/non-GNU ld that we prefer.
4668       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4669       *GNU* | *'with BFD'*)
4670         test "$with_gnu_ld" != no && break
4671         ;;
4672       *)
4673         test "$with_gnu_ld" != yes && break
4674         ;;
4675       esac
4676     fi
4677   done
4678   IFS="$lt_save_ifs"
4679 else
4680   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4681 fi
4682 fi
4683
4684 LD="$lt_cv_path_LD"
4685 if test -n "$LD"; then
4686   echo "$as_me:$LINENO: result: $LD" >&5
4687 echo "${ECHO_T}$LD" >&6
4688 else
4689   echo "$as_me:$LINENO: result: no" >&5
4690 echo "${ECHO_T}no" >&6
4691 fi
4692 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4693 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4694    { (exit 1); exit 1; }; }
4695 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4696 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4697 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4701 case `$LD -v 2>&1 </dev/null` in
4702 *GNU* | *'with BFD'*)
4703   lt_cv_prog_gnu_ld=yes
4704   ;;
4705 *)
4706   lt_cv_prog_gnu_ld=no
4707   ;;
4708 esac
4709 fi
4710 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4711 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4712 with_gnu_ld=$lt_cv_prog_gnu_ld
4713
4714
4715 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4716 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4717 if test "${lt_cv_ld_reload_flag+set}" = set; then
4718   echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720   lt_cv_ld_reload_flag='-r'
4721 fi
4722 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4723 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4724 reload_flag=$lt_cv_ld_reload_flag
4725 case $reload_flag in
4726 "" | " "*) ;;
4727 *) reload_flag=" $reload_flag" ;;
4728 esac
4729 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4730
4731 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4732 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4733 if test "${lt_cv_path_NM+set}" = set; then
4734   echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736   if test -n "$NM"; then
4737   # Let the user override the test.
4738   lt_cv_path_NM="$NM"
4739 else
4740   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4741   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4742     IFS="$lt_save_ifs"
4743     test -z "$ac_dir" && ac_dir=.
4744     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4745     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4746       # Check to see if the nm accepts a BSD-compat flag.
4747       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4748       #   nm: unknown option "B" ignored
4749       # Tru64's nm complains that /dev/null is an invalid object file
4750       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4751       */dev/null* | *'Invalid file or object type'*)
4752         lt_cv_path_NM="$tmp_nm -B"
4753         break
4754         ;;
4755       *)
4756         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4757         */dev/null*)
4758           lt_cv_path_NM="$tmp_nm -p"
4759           break
4760           ;;
4761         *)
4762           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4763           continue # so that we can try to find one that supports BSD flags
4764           ;;
4765         esac
4766       esac
4767     fi
4768   done
4769   IFS="$lt_save_ifs"
4770   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4771 fi
4772 fi
4773 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4774 echo "${ECHO_T}$lt_cv_path_NM" >&6
4775 NM="$lt_cv_path_NM"
4776
4777 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4778 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4779 LN_S=$as_ln_s
4780 if test "$LN_S" = "ln -s"; then
4781   echo "$as_me:$LINENO: result: yes" >&5
4782 echo "${ECHO_T}yes" >&6
4783 else
4784   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4785 echo "${ECHO_T}no, using $LN_S" >&6
4786 fi
4787
4788 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4789 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4790 if test "${lt_cv_deplibs_check_method+set}" = set; then
4791   echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793   lt_cv_file_magic_cmd='$MAGIC_CMD'
4794 lt_cv_file_magic_test_file=
4795 lt_cv_deplibs_check_method='unknown'
4796 # Need to set the preceding variable on all platforms that support
4797 # interlibrary dependencies.
4798 # 'none' -- dependencies not supported.
4799 # `unknown' -- same as none, but documents that we really don't know.
4800 # 'pass_all' -- all dependencies passed with no checks.
4801 # 'test_compile' -- check by making test program.
4802 # 'file_magic [[regex]]' -- check by looking for files in library path
4803 # which responds to the $file_magic_cmd with a given extended regex.
4804 # If you have `file' or equivalent on your system and you're not sure
4805 # whether `pass_all' will *always* work, you probably want this one.
4806
4807 case $host_os in
4808 aix4* | aix5*)
4809   lt_cv_deplibs_check_method=pass_all
4810   ;;
4811
4812 beos*)
4813   lt_cv_deplibs_check_method=pass_all
4814   ;;
4815
4816 bsdi4*)
4817   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4818   lt_cv_file_magic_cmd='/usr/bin/file -L'
4819   lt_cv_file_magic_test_file=/shlib/libc.so
4820   ;;
4821
4822 cygwin*)
4823   # func_win32_libid is a shell function defined in ltmain.sh
4824   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4825   lt_cv_file_magic_cmd='func_win32_libid'
4826   ;;
4827
4828 mingw* | pw32*)
4829   # Base MSYS/MinGW do not provide the 'file' command needed by
4830   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4831   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4832   lt_cv_file_magic_cmd='$OBJDUMP -f'
4833   ;;
4834
4835 darwin* | rhapsody*)
4836   lt_cv_deplibs_check_method=pass_all
4837   ;;
4838
4839 freebsd* | kfreebsd*-gnu)
4840   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4841     case $host_cpu in
4842     i*86 )
4843       # Not sure whether the presence of OpenBSD here was a mistake.
4844       # Let's accept both of them until this is cleared up.
4845       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4846       lt_cv_file_magic_cmd=/usr/bin/file
4847       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4848       ;;
4849     esac
4850   else
4851     lt_cv_deplibs_check_method=pass_all
4852   fi
4853   ;;
4854
4855 gnu*)
4856   lt_cv_deplibs_check_method=pass_all
4857   ;;
4858
4859 hpux10.20* | hpux11*)
4860   lt_cv_file_magic_cmd=/usr/bin/file
4861   case "$host_cpu" in
4862   ia64*)
4863     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4864     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4865     ;;
4866   hppa*64*)
4867     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]'
4868     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4869     ;;
4870   *)
4871     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4872     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4873     ;;
4874   esac
4875   ;;
4876
4877 irix5* | irix6* | nonstopux*)
4878   case $LD in
4879   *-32|*"-32 ") libmagic=32-bit;;
4880   *-n32|*"-n32 ") libmagic=N32;;
4881   *-64|*"-64 ") libmagic=64-bit;;
4882   *) libmagic=never-match;;
4883   esac
4884   lt_cv_deplibs_check_method=pass_all
4885   ;;
4886
4887 # This must be Linux ELF.
4888 linux*)
4889   case $host_cpu in
4890   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
4891     lt_cv_deplibs_check_method=pass_all ;;
4892   *)
4893     # glibc up to 2.1.1 does not perform some relocations on ARM
4894     # this will be overridden with pass_all, but let us keep it just in case
4895     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4896   esac
4897   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4898   lt_cv_deplibs_check_method=pass_all
4899   ;;
4900
4901 netbsd*)
4902   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4903     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4904   else
4905     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4906   fi
4907   ;;
4908
4909 newos6*)
4910   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4911   lt_cv_file_magic_cmd=/usr/bin/file
4912   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4913   ;;
4914
4915 nto-qnx*)
4916   lt_cv_deplibs_check_method=unknown
4917   ;;
4918
4919 openbsd*)
4920   lt_cv_file_magic_cmd=/usr/bin/file
4921   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4922   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4923     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4924   else
4925     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4926   fi
4927   ;;
4928
4929 osf3* | osf4* | osf5*)
4930   lt_cv_deplibs_check_method=pass_all
4931   ;;
4932
4933 sco3.2v5*)
4934   lt_cv_deplibs_check_method=pass_all
4935   ;;
4936
4937 solaris*)
4938   lt_cv_deplibs_check_method=pass_all
4939   ;;
4940
4941 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4942   case $host_vendor in
4943   motorola)
4944     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]'
4945     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4946     ;;
4947   ncr)
4948     lt_cv_deplibs_check_method=pass_all
4949     ;;
4950   sequent)
4951     lt_cv_file_magic_cmd='/bin/file'
4952     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4953     ;;
4954   sni)
4955     lt_cv_file_magic_cmd='/bin/file'
4956     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4957     lt_cv_file_magic_test_file=/lib/libc.so
4958     ;;
4959   siemens)
4960     lt_cv_deplibs_check_method=pass_all
4961     ;;
4962   esac
4963   ;;
4964
4965 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4966   lt_cv_deplibs_check_method=pass_all
4967   ;;
4968 esac
4969
4970 fi
4971 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4972 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4973 file_magic_cmd=$lt_cv_file_magic_cmd
4974 deplibs_check_method=$lt_cv_deplibs_check_method
4975 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4976
4977
4978
4979
4980 # If no C compiler was specified, use CC.
4981 LTCC=${LTCC-"$CC"}
4982
4983 # Allow CC to be a program name with arguments.
4984 compiler=$CC
4985
4986
4987 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4988 if test "${enable_libtool_lock+set}" = set; then
4989   enableval="$enable_libtool_lock"
4990
4991 fi;
4992 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4993
4994 # Some flags need to be propagated to the compiler or linker for good
4995 # libtool support.
4996 case $host in
4997 ia64-*-hpux*)
4998   # Find out which ABI we are using.
4999   echo 'int i;' > conftest.$ac_ext
5000   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5001   (eval $ac_compile) 2>&5
5002   ac_status=$?
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); }; then
5005     case `/usr/bin/file conftest.$ac_objext` in
5006     *ELF-32*)
5007       HPUX_IA64_MODE="32"
5008       ;;
5009     *ELF-64*)
5010       HPUX_IA64_MODE="64"
5011       ;;
5012     esac
5013   fi
5014   rm -rf conftest*
5015   ;;
5016 *-*-irix6*)
5017   # Find out which ABI we are using.
5018   echo '#line 5018 "configure"' > conftest.$ac_ext
5019   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5020   (eval $ac_compile) 2>&5
5021   ac_status=$?
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); }; then
5024    if test "$lt_cv_prog_gnu_ld" = yes; then
5025     case `/usr/bin/file conftest.$ac_objext` in
5026     *32-bit*)
5027       LD="${LD-ld} -melf32bsmip"
5028       ;;
5029     *N32*)
5030       LD="${LD-ld} -melf32bmipn32"
5031       ;;
5032     *64-bit*)
5033       LD="${LD-ld} -melf64bmip"
5034       ;;
5035     esac
5036    else
5037     case `/usr/bin/file conftest.$ac_objext` in
5038     *32-bit*)
5039       LD="${LD-ld} -32"
5040       ;;
5041     *N32*)
5042       LD="${LD-ld} -n32"
5043       ;;
5044     *64-bit*)
5045       LD="${LD-ld} -64"
5046       ;;
5047     esac
5048    fi
5049   fi
5050   rm -rf conftest*
5051   ;;
5052
5053 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5054   # Find out which ABI we are using.
5055   echo 'int i;' > conftest.$ac_ext
5056   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057   (eval $ac_compile) 2>&5
5058   ac_status=$?
5059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); }; then
5061     case "`/usr/bin/file conftest.o`" in
5062     *32-bit*)
5063       case $host in
5064         x86_64-*linux*)
5065           LD="${LD-ld} -m elf_i386"
5066           ;;
5067         ppc64-*linux*|powerpc64-*linux*)
5068           LD="${LD-ld} -m elf32ppclinux"
5069           ;;
5070         s390x-*linux*)
5071           LD="${LD-ld} -m elf_s390"
5072           ;;
5073         sparc64-*linux*)
5074           LD="${LD-ld} -m elf32_sparc"
5075           ;;
5076       esac
5077       ;;
5078     *64-bit*)
5079       case $host in
5080         x86_64-*linux*)
5081           LD="${LD-ld} -m elf_x86_64"
5082           ;;
5083         ppc*-*linux*|powerpc*-*linux*)
5084           LD="${LD-ld} -m elf64ppc"
5085           ;;
5086         s390*-*linux*)
5087           LD="${LD-ld} -m elf64_s390"
5088           ;;
5089         sparc*-*linux*)
5090           LD="${LD-ld} -m elf64_sparc"
5091           ;;
5092       esac
5093       ;;
5094     esac
5095   fi
5096   rm -rf conftest*
5097   ;;
5098
5099 *-*-sco3.2v5*)
5100   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5101   SAVE_CFLAGS="$CFLAGS"
5102   CFLAGS="$CFLAGS -belf"
5103   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5104 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5105 if test "${lt_cv_cc_needs_belf+set}" = set; then
5106   echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108   ac_ext=c
5109 ac_cpp='$CPP $CPPFLAGS'
5110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5113
5114      cat >conftest.$ac_ext <<_ACEOF
5115 /* confdefs.h.  */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h.  */
5120
5121 int
5122 main ()
5123 {
5124
5125   ;
5126   return 0;
5127 }
5128 _ACEOF
5129 rm -f conftest.$ac_objext conftest$ac_exeext
5130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5131   (eval $ac_link) 2>conftest.er1
5132   ac_status=$?
5133   grep -v '^ *+' conftest.er1 >conftest.err
5134   rm -f conftest.er1
5135   cat conftest.err >&5
5136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137   (exit $ac_status); } &&
5138          { ac_try='test -z "$ac_c_werror_flag"
5139                          || test ! -s conftest.err'
5140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141   (eval $ac_try) 2>&5
5142   ac_status=$?
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); }; } &&
5145          { ac_try='test -s conftest$ac_exeext'
5146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147   (eval $ac_try) 2>&5
5148   ac_status=$?
5149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150   (exit $ac_status); }; }; then
5151   lt_cv_cc_needs_belf=yes
5152 else
5153   echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5155
5156 lt_cv_cc_needs_belf=no
5157 fi
5158 rm -f conftest.err conftest.$ac_objext \
5159       conftest$ac_exeext conftest.$ac_ext
5160      ac_ext=c
5161 ac_cpp='$CPP $CPPFLAGS'
5162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5165
5166 fi
5167 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5168 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5169   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5170     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5171     CFLAGS="$SAVE_CFLAGS"
5172   fi
5173   ;;
5174
5175 esac
5176
5177 need_locks="$enable_libtool_lock"
5178
5179
5180
5181 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5182 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5183 if test "${ac_cv_header_stdc+set}" = set; then
5184   echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186   cat >conftest.$ac_ext <<_ACEOF
5187 /* confdefs.h.  */
5188 _ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h.  */
5192 #include <stdlib.h>
5193 #include <stdarg.h>
5194 #include <string.h>
5195 #include <float.h>
5196
5197 int
5198 main ()
5199 {
5200
5201   ;
5202   return 0;
5203 }
5204 _ACEOF
5205 rm -f conftest.$ac_objext
5206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5207   (eval $ac_compile) 2>conftest.er1
5208   ac_status=$?
5209   grep -v '^ *+' conftest.er1 >conftest.err
5210   rm -f conftest.er1
5211   cat conftest.err >&5
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); } &&
5214          { ac_try='test -z "$ac_c_werror_flag"
5215                          || test ! -s conftest.err'
5216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217   (eval $ac_try) 2>&5
5218   ac_status=$?
5219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220   (exit $ac_status); }; } &&
5221          { ac_try='test -s conftest.$ac_objext'
5222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223   (eval $ac_try) 2>&5
5224   ac_status=$?
5225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226   (exit $ac_status); }; }; then
5227   ac_cv_header_stdc=yes
5228 else
5229   echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5231
5232 ac_cv_header_stdc=no
5233 fi
5234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5235
5236 if test $ac_cv_header_stdc = yes; then
5237   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5238   cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h.  */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h.  */
5244 #include <string.h>
5245
5246 _ACEOF
5247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5248   $EGREP "memchr" >/dev/null 2>&1; then
5249   :
5250 else
5251   ac_cv_header_stdc=no
5252 fi
5253 rm -f conftest*
5254
5255 fi
5256
5257 if test $ac_cv_header_stdc = yes; then
5258   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5259   cat >conftest.$ac_ext <<_ACEOF
5260 /* confdefs.h.  */
5261 _ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h.  */
5265 #include <stdlib.h>
5266
5267 _ACEOF
5268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5269   $EGREP "free" >/dev/null 2>&1; then
5270   :
5271 else
5272   ac_cv_header_stdc=no
5273 fi
5274 rm -f conftest*
5275
5276 fi
5277
5278 if test $ac_cv_header_stdc = yes; then
5279   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5280   if test "$cross_compiling" = yes; then
5281   :
5282 else
5283   cat >conftest.$ac_ext <<_ACEOF
5284 /* confdefs.h.  */
5285 _ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h.  */
5289 #include <ctype.h>
5290 #if ((' ' & 0x0FF) == 0x020)
5291 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5292 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5293 #else
5294 # define ISLOWER(c) \
5295                    (('a' <= (c) && (c) <= 'i') \
5296                      || ('j' <= (c) && (c) <= 'r') \
5297                      || ('s' <= (c) && (c) <= 'z'))
5298 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5299 #endif
5300
5301 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5302 int
5303 main ()
5304 {
5305   int i;
5306   for (i = 0; i < 256; i++)
5307     if (XOR (islower (i), ISLOWER (i))
5308         || toupper (i) != TOUPPER (i))
5309       exit(2);
5310   exit (0);
5311 }
5312 _ACEOF
5313 rm -f conftest$ac_exeext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5315   (eval $ac_link) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320   (eval $ac_try) 2>&5
5321   ac_status=$?
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); }; }; then
5324   :
5325 else
5326   echo "$as_me: program exited with status $ac_status" >&5
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330 ( exit $ac_status )
5331 ac_cv_header_stdc=no
5332 fi
5333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5334 fi
5335 fi
5336 fi
5337 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5338 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5339 if test $ac_cv_header_stdc = yes; then
5340
5341 cat >>confdefs.h <<\_ACEOF
5342 #define STDC_HEADERS 1
5343 _ACEOF
5344
5345 fi
5346
5347 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5358                   inttypes.h stdint.h unistd.h
5359 do
5360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5361 echo "$as_me:$LINENO: checking for $ac_header" >&5
5362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5364   echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366   cat >conftest.$ac_ext <<_ACEOF
5367 /* confdefs.h.  */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h.  */
5372 $ac_includes_default
5373
5374 #include <$ac_header>
5375 _ACEOF
5376 rm -f conftest.$ac_objext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5378   (eval $ac_compile) 2>conftest.er1
5379   ac_status=$?
5380   grep -v '^ *+' conftest.er1 >conftest.err
5381   rm -f conftest.er1
5382   cat conftest.err >&5
5383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384   (exit $ac_status); } &&
5385          { ac_try='test -z "$ac_c_werror_flag"
5386                          || test ! -s conftest.err'
5387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388   (eval $ac_try) 2>&5
5389   ac_status=$?
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); }; } &&
5392          { ac_try='test -s conftest.$ac_objext'
5393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394   (eval $ac_try) 2>&5
5395   ac_status=$?
5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397   (exit $ac_status); }; }; then
5398   eval "$as_ac_Header=yes"
5399 else
5400   echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5402
5403 eval "$as_ac_Header=no"
5404 fi
5405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5406 fi
5407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5410   cat >>confdefs.h <<_ACEOF
5411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5412 _ACEOF
5413
5414 fi
5415
5416 done
5417
5418
5419
5420 for ac_header in dlfcn.h
5421 do
5422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5424   echo "$as_me:$LINENO: checking for $ac_header" >&5
5425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5427   echo $ECHO_N "(cached) $ECHO_C" >&6
5428 fi
5429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5431 else
5432   # Is the header compilable?
5433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5435 cat >conftest.$ac_ext <<_ACEOF
5436 /* confdefs.h.  */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h.  */
5441 $ac_includes_default
5442 #include <$ac_header>
5443 _ACEOF
5444 rm -f conftest.$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446   (eval $ac_compile) 2>conftest.er1
5447   ac_status=$?
5448   grep -v '^ *+' conftest.er1 >conftest.err
5449   rm -f conftest.er1
5450   cat conftest.err >&5
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); } &&
5453          { ac_try='test -z "$ac_c_werror_flag"
5454                          || test ! -s conftest.err'
5455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456   (eval $ac_try) 2>&5
5457   ac_status=$?
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); }; } &&
5460          { ac_try='test -s conftest.$ac_objext'
5461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462   (eval $ac_try) 2>&5
5463   ac_status=$?
5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); }; }; then
5466   ac_header_compiler=yes
5467 else
5468   echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5470
5471 ac_header_compiler=no
5472 fi
5473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5475 echo "${ECHO_T}$ac_header_compiler" >&6
5476
5477 # Is the header present?
5478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5480 cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h.  */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h.  */
5486 #include <$ac_header>
5487 _ACEOF
5488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5489   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5490   ac_status=$?
5491   grep -v '^ *+' conftest.er1 >conftest.err
5492   rm -f conftest.er1
5493   cat conftest.err >&5
5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); } >/dev/null; then
5496   if test -s conftest.err; then
5497     ac_cpp_err=$ac_c_preproc_warn_flag
5498     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5499   else
5500     ac_cpp_err=
5501   fi
5502 else
5503   ac_cpp_err=yes
5504 fi
5505 if test -z "$ac_cpp_err"; then
5506   ac_header_preproc=yes
5507 else
5508   echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5510
5511   ac_header_preproc=no
5512 fi
5513 rm -f conftest.err conftest.$ac_ext
5514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5515 echo "${ECHO_T}$ac_header_preproc" >&6
5516
5517 # So?  What about this header?
5518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5519   yes:no: )
5520     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5524     ac_header_preproc=yes
5525     ;;
5526   no:yes:* )
5527     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5529     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5530 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5531     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5533     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5534 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5537     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5539     (
5540       cat <<\_ASBOX
5541 ## ---------------------------------------- ##
5542 ## Report this to the libjpeg-turbo lists.  ##
5543 ## ---------------------------------------- ##
5544 _ASBOX
5545     ) |
5546       sed "s/^/$as_me: WARNING:     /" >&2
5547     ;;
5548 esac
5549 echo "$as_me:$LINENO: checking for $ac_header" >&5
5550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5552   echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554   eval "$as_ac_Header=\$ac_header_preproc"
5555 fi
5556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5558
5559 fi
5560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5561   cat >>confdefs.h <<_ACEOF
5562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5563 _ACEOF
5564
5565 fi
5566
5567 done
5568
5569 ac_ext=cc
5570 ac_cpp='$CXXCPP $CPPFLAGS'
5571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5574 if test -n "$ac_tool_prefix"; then
5575   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5576   do
5577     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5579 echo "$as_me:$LINENO: checking for $ac_word" >&5
5580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5581 if test "${ac_cv_prog_CXX+set}" = set; then
5582   echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584   if test -n "$CXX"; then
5585   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5586 else
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 for as_dir in $PATH
5589 do
5590   IFS=$as_save_IFS
5591   test -z "$as_dir" && as_dir=.
5592   for ac_exec_ext in '' $ac_executable_extensions; do
5593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5596     break 2
5597   fi
5598 done
5599 done
5600
5601 fi
5602 fi
5603 CXX=$ac_cv_prog_CXX
5604 if test -n "$CXX"; then
5605   echo "$as_me:$LINENO: result: $CXX" >&5
5606 echo "${ECHO_T}$CXX" >&6
5607 else
5608   echo "$as_me:$LINENO: result: no" >&5
5609 echo "${ECHO_T}no" >&6
5610 fi
5611
5612     test -n "$CXX" && break
5613   done
5614 fi
5615 if test -z "$CXX"; then
5616   ac_ct_CXX=$CXX
5617   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5618 do
5619   # Extract the first word of "$ac_prog", so it can be a program name with args.
5620 set dummy $ac_prog; ac_word=$2
5621 echo "$as_me:$LINENO: checking for $ac_word" >&5
5622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5623 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5624   echo $ECHO_N "(cached) $ECHO_C" >&6
5625 else
5626   if test -n "$ac_ct_CXX"; then
5627   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5628 else
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5631 do
5632   IFS=$as_save_IFS
5633   test -z "$as_dir" && as_dir=.
5634   for ac_exec_ext in '' $ac_executable_extensions; do
5635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636     ac_cv_prog_ac_ct_CXX="$ac_prog"
5637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5638     break 2
5639   fi
5640 done
5641 done
5642
5643 fi
5644 fi
5645 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5646 if test -n "$ac_ct_CXX"; then
5647   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5648 echo "${ECHO_T}$ac_ct_CXX" >&6
5649 else
5650   echo "$as_me:$LINENO: result: no" >&5
5651 echo "${ECHO_T}no" >&6
5652 fi
5653
5654   test -n "$ac_ct_CXX" && break
5655 done
5656 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5657
5658   CXX=$ac_ct_CXX
5659 fi
5660
5661
5662 # Provide some information about the compiler.
5663 echo "$as_me:$LINENO:" \
5664      "checking for C++ compiler version" >&5
5665 ac_compiler=`set X $ac_compile; echo $2`
5666 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5667   (eval $ac_compiler --version </dev/null >&5) 2>&5
5668   ac_status=$?
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); }
5671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5672   (eval $ac_compiler -v </dev/null >&5) 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); }
5676 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5677   (eval $ac_compiler -V </dev/null >&5) 2>&5
5678   ac_status=$?
5679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680   (exit $ac_status); }
5681
5682 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5683 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5684 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5685   echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687   cat >conftest.$ac_ext <<_ACEOF
5688 /* confdefs.h.  */
5689 _ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h.  */
5693
5694 int
5695 main ()
5696 {
5697 #ifndef __GNUC__
5698        choke me
5699 #endif
5700
5701   ;
5702   return 0;
5703 }
5704 _ACEOF
5705 rm -f conftest.$ac_objext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707   (eval $ac_compile) 2>conftest.er1
5708   ac_status=$?
5709   grep -v '^ *+' conftest.er1 >conftest.err
5710   rm -f conftest.er1
5711   cat conftest.err >&5
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); } &&
5714          { ac_try='test -z "$ac_cxx_werror_flag"
5715                          || test ! -s conftest.err'
5716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717   (eval $ac_try) 2>&5
5718   ac_status=$?
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); }; } &&
5721          { ac_try='test -s conftest.$ac_objext'
5722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723   (eval $ac_try) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); }; }; then
5727   ac_compiler_gnu=yes
5728 else
5729   echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5731
5732 ac_compiler_gnu=no
5733 fi
5734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5735 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5736
5737 fi
5738 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5739 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5740 GXX=`test $ac_compiler_gnu = yes && echo yes`
5741 ac_test_CXXFLAGS=${CXXFLAGS+set}
5742 ac_save_CXXFLAGS=$CXXFLAGS
5743 CXXFLAGS="-g"
5744 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5745 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5746 if test "${ac_cv_prog_cxx_g+set}" = set; then
5747   echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749   cat >conftest.$ac_ext <<_ACEOF
5750 /* confdefs.h.  */
5751 _ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h.  */
5755
5756 int
5757 main ()
5758 {
5759
5760   ;
5761   return 0;
5762 }
5763 _ACEOF
5764 rm -f conftest.$ac_objext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766   (eval $ac_compile) 2>conftest.er1
5767   ac_status=$?
5768   grep -v '^ *+' conftest.er1 >conftest.err
5769   rm -f conftest.er1
5770   cat conftest.err >&5
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } &&
5773          { ac_try='test -z "$ac_cxx_werror_flag"
5774                          || test ! -s conftest.err'
5775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776   (eval $ac_try) 2>&5
5777   ac_status=$?
5778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779   (exit $ac_status); }; } &&
5780          { ac_try='test -s conftest.$ac_objext'
5781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782   (eval $ac_try) 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); }; }; then
5786   ac_cv_prog_cxx_g=yes
5787 else
5788   echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791 ac_cv_prog_cxx_g=no
5792 fi
5793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5794 fi
5795 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5796 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5797 if test "$ac_test_CXXFLAGS" = set; then
5798   CXXFLAGS=$ac_save_CXXFLAGS
5799 elif test $ac_cv_prog_cxx_g = yes; then
5800   if test "$GXX" = yes; then
5801     CXXFLAGS="-g -O2"
5802   else
5803     CXXFLAGS="-g"
5804   fi
5805 else
5806   if test "$GXX" = yes; then
5807     CXXFLAGS="-O2"
5808   else
5809     CXXFLAGS=
5810   fi
5811 fi
5812 for ac_declaration in \
5813    '' \
5814    'extern "C" void std::exit (int) throw (); using std::exit;' \
5815    'extern "C" void std::exit (int); using std::exit;' \
5816    'extern "C" void exit (int) throw ();' \
5817    'extern "C" void exit (int);' \
5818    'void exit (int);'
5819 do
5820   cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h.  */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h.  */
5826 $ac_declaration
5827 #include <stdlib.h>
5828 int
5829 main ()
5830 {
5831 exit (42);
5832   ;
5833   return 0;
5834 }
5835 _ACEOF
5836 rm -f conftest.$ac_objext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838   (eval $ac_compile) 2>conftest.er1
5839   ac_status=$?
5840   grep -v '^ *+' conftest.er1 >conftest.err
5841   rm -f conftest.er1
5842   cat conftest.err >&5
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); } &&
5845          { ac_try='test -z "$ac_cxx_werror_flag"
5846                          || test ! -s conftest.err'
5847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848   (eval $ac_try) 2>&5
5849   ac_status=$?
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); }; } &&
5852          { ac_try='test -s conftest.$ac_objext'
5853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854   (eval $ac_try) 2>&5
5855   ac_status=$?
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); }; }; then
5858   :
5859 else
5860   echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5862
5863 continue
5864 fi
5865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5866   cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h.  */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h.  */
5872 $ac_declaration
5873 int
5874 main ()
5875 {
5876 exit (42);
5877   ;
5878   return 0;
5879 }
5880 _ACEOF
5881 rm -f conftest.$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883   (eval $ac_compile) 2>conftest.er1
5884   ac_status=$?
5885   grep -v '^ *+' conftest.er1 >conftest.err
5886   rm -f conftest.er1
5887   cat conftest.err >&5
5888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889   (exit $ac_status); } &&
5890          { ac_try='test -z "$ac_cxx_werror_flag"
5891                          || test ! -s conftest.err'
5892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893   (eval $ac_try) 2>&5
5894   ac_status=$?
5895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896   (exit $ac_status); }; } &&
5897          { ac_try='test -s conftest.$ac_objext'
5898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899   (eval $ac_try) 2>&5
5900   ac_status=$?
5901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902   (exit $ac_status); }; }; then
5903   break
5904 else
5905   echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5907
5908 fi
5909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5910 done
5911 rm -f conftest*
5912 if test -n "$ac_declaration"; then
5913   echo '#ifdef __cplusplus' >>confdefs.h
5914   echo $ac_declaration      >>confdefs.h
5915   echo '#endif'             >>confdefs.h
5916 fi
5917
5918 ac_ext=cc
5919 ac_cpp='$CXXCPP $CPPFLAGS'
5920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5923
5924 depcc="$CXX"  am_compiler_list=
5925
5926 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5927 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5928 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5929   echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5932   # We make a subdir and do the tests there.  Otherwise we can end up
5933   # making bogus files that we don't know about and never remove.  For
5934   # instance it was reported that on HP-UX the gcc test will end up
5935   # making a dummy file named `D' -- because `-MD' means `put the output
5936   # in D'.
5937   mkdir conftest.dir
5938   # Copy depcomp to subdir because otherwise we won't find it if we're
5939   # using a relative directory.
5940   cp "$am_depcomp" conftest.dir
5941   cd conftest.dir
5942   # We will build objects and dependencies in a subdirectory because
5943   # it helps to detect inapplicable dependency modes.  For instance
5944   # both Tru64's cc and ICC support -MD to output dependencies as a
5945   # side effect of compilation, but ICC will put the dependencies in
5946   # the current directory while Tru64 will put them in the object
5947   # directory.
5948   mkdir sub
5949
5950   am_cv_CXX_dependencies_compiler_type=none
5951   if test "$am_compiler_list" = ""; then
5952      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5953   fi
5954   for depmode in $am_compiler_list; do
5955     # Setup a source with many dependencies, because some compilers
5956     # like to wrap large dependency lists on column 80 (with \), and
5957     # we should not choose a depcomp mode which is confused by this.
5958     #
5959     # We need to recreate these files for each test, as the compiler may
5960     # overwrite some of them when testing with obscure command lines.
5961     # This happens at least with the AIX C compiler.
5962     : > sub/conftest.c
5963     for i in 1 2 3 4 5 6; do
5964       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5965       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5966       # Solaris 8's {/usr,}/bin/sh.
5967       touch sub/conftst$i.h
5968     done
5969     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5970
5971     case $depmode in
5972     nosideeffect)
5973       # after this tag, mechanisms are not by side-effect, so they'll
5974       # only be used when explicitly requested
5975       if test "x$enable_dependency_tracking" = xyes; then
5976         continue
5977       else
5978         break
5979       fi
5980       ;;
5981     none) break ;;
5982     esac
5983     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5984     # mode.  It turns out that the SunPro C++ compiler does not properly
5985     # handle `-M -o', and we need to detect this.
5986     if depmode=$depmode \
5987        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5988        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5989        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5990          >/dev/null 2>conftest.err &&
5991        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5992        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5993        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5994       # icc doesn't choke on unknown options, it will just issue warnings
5995       # or remarks (even with -Werror).  So we grep stderr for any message
5996       # that says an option was ignored or not supported.
5997       # When given -MP, icc 7.0 and 7.1 complain thusly:
5998       #   icc: Command line warning: ignoring option '-M'; no argument required
5999       # The diagnosis changed in icc 8.0:
6000       #   icc: Command line remark: option '-MP' not supported
6001       if (grep 'ignoring option' conftest.err ||
6002           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6003         am_cv_CXX_dependencies_compiler_type=$depmode
6004         break
6005       fi
6006     fi
6007   done
6008
6009   cd ..
6010   rm -rf conftest.dir
6011 else
6012   am_cv_CXX_dependencies_compiler_type=none
6013 fi
6014
6015 fi
6016 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6017 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6018 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6019
6020
6021
6022 if
6023   test "x$enable_dependency_tracking" != xno \
6024   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6025   am__fastdepCXX_TRUE=
6026   am__fastdepCXX_FALSE='#'
6027 else
6028   am__fastdepCXX_TRUE='#'
6029   am__fastdepCXX_FALSE=
6030 fi
6031
6032
6033 ac_ext=cc
6034 ac_cpp='$CXXCPP $CPPFLAGS'
6035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6038 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6039 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6040 if test -z "$CXXCPP"; then
6041   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6042   echo $ECHO_N "(cached) $ECHO_C" >&6
6043 else
6044       # Double quotes because CXXCPP needs to be expanded
6045     for CXXCPP in "$CXX -E" "/lib/cpp"
6046     do
6047       ac_preproc_ok=false
6048 for ac_cxx_preproc_warn_flag in '' yes
6049 do
6050   # Use a header file that comes with gcc, so configuring glibc
6051   # with a fresh cross-compiler works.
6052   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6053   # <limits.h> exists even on freestanding compilers.
6054   # On the NeXT, cc -E runs the code through the compiler's parser,
6055   # not just through cpp. "Syntax error" is here to catch this case.
6056   cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h.  */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h.  */
6062 #ifdef __STDC__
6063 # include <limits.h>
6064 #else
6065 # include <assert.h>
6066 #endif
6067                      Syntax error
6068 _ACEOF
6069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6070   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6071   ac_status=$?
6072   grep -v '^ *+' conftest.er1 >conftest.err
6073   rm -f conftest.er1
6074   cat conftest.err >&5
6075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076   (exit $ac_status); } >/dev/null; then
6077   if test -s conftest.err; then
6078     ac_cpp_err=$ac_cxx_preproc_warn_flag
6079     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6080   else
6081     ac_cpp_err=
6082   fi
6083 else
6084   ac_cpp_err=yes
6085 fi
6086 if test -z "$ac_cpp_err"; then
6087   :
6088 else
6089   echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6091
6092   # Broken: fails on valid input.
6093 continue
6094 fi
6095 rm -f conftest.err conftest.$ac_ext
6096
6097   # OK, works on sane cases.  Now check whether non-existent headers
6098   # can be detected and how.
6099   cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h.  */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h.  */
6105 #include <ac_nonexistent.h>
6106 _ACEOF
6107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6109   ac_status=$?
6110   grep -v '^ *+' conftest.er1 >conftest.err
6111   rm -f conftest.er1
6112   cat conftest.err >&5
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); } >/dev/null; then
6115   if test -s conftest.err; then
6116     ac_cpp_err=$ac_cxx_preproc_warn_flag
6117     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6118   else
6119     ac_cpp_err=
6120   fi
6121 else
6122   ac_cpp_err=yes
6123 fi
6124 if test -z "$ac_cpp_err"; then
6125   # Broken: success on invalid input.
6126 continue
6127 else
6128   echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6130
6131   # Passes both tests.
6132 ac_preproc_ok=:
6133 break
6134 fi
6135 rm -f conftest.err conftest.$ac_ext
6136
6137 done
6138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6139 rm -f conftest.err conftest.$ac_ext
6140 if $ac_preproc_ok; then
6141   break
6142 fi
6143
6144     done
6145     ac_cv_prog_CXXCPP=$CXXCPP
6146
6147 fi
6148   CXXCPP=$ac_cv_prog_CXXCPP
6149 else
6150   ac_cv_prog_CXXCPP=$CXXCPP
6151 fi
6152 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6153 echo "${ECHO_T}$CXXCPP" >&6
6154 ac_preproc_ok=false
6155 for ac_cxx_preproc_warn_flag in '' yes
6156 do
6157   # Use a header file that comes with gcc, so configuring glibc
6158   # with a fresh cross-compiler works.
6159   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6160   # <limits.h> exists even on freestanding compilers.
6161   # On the NeXT, cc -E runs the code through the compiler's parser,
6162   # not just through cpp. "Syntax error" is here to catch this case.
6163   cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h.  */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h.  */
6169 #ifdef __STDC__
6170 # include <limits.h>
6171 #else
6172 # include <assert.h>
6173 #endif
6174                      Syntax error
6175 _ACEOF
6176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6177   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6178   ac_status=$?
6179   grep -v '^ *+' conftest.er1 >conftest.err
6180   rm -f conftest.er1
6181   cat conftest.err >&5
6182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183   (exit $ac_status); } >/dev/null; then
6184   if test -s conftest.err; then
6185     ac_cpp_err=$ac_cxx_preproc_warn_flag
6186     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6187   else
6188     ac_cpp_err=
6189   fi
6190 else
6191   ac_cpp_err=yes
6192 fi
6193 if test -z "$ac_cpp_err"; then
6194   :
6195 else
6196   echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6198
6199   # Broken: fails on valid input.
6200 continue
6201 fi
6202 rm -f conftest.err conftest.$ac_ext
6203
6204   # OK, works on sane cases.  Now check whether non-existent headers
6205   # can be detected and how.
6206   cat >conftest.$ac_ext <<_ACEOF
6207 /* confdefs.h.  */
6208 _ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h.  */
6212 #include <ac_nonexistent.h>
6213 _ACEOF
6214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6215   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6216   ac_status=$?
6217   grep -v '^ *+' conftest.er1 >conftest.err
6218   rm -f conftest.er1
6219   cat conftest.err >&5
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); } >/dev/null; then
6222   if test -s conftest.err; then
6223     ac_cpp_err=$ac_cxx_preproc_warn_flag
6224     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6225   else
6226     ac_cpp_err=
6227   fi
6228 else
6229   ac_cpp_err=yes
6230 fi
6231 if test -z "$ac_cpp_err"; then
6232   # Broken: success on invalid input.
6233 continue
6234 else
6235   echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6237
6238   # Passes both tests.
6239 ac_preproc_ok=:
6240 break
6241 fi
6242 rm -f conftest.err conftest.$ac_ext
6243
6244 done
6245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6246 rm -f conftest.err conftest.$ac_ext
6247 if $ac_preproc_ok; then
6248   :
6249 else
6250   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6251 See \`config.log' for more details." >&5
6252 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6253 See \`config.log' for more details." >&2;}
6254    { (exit 1); exit 1; }; }
6255 fi
6256
6257 ac_ext=cc
6258 ac_cpp='$CXXCPP $CPPFLAGS'
6259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6262
6263
6264 ac_ext=f
6265 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6266 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6267 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6268 if test -n "$ac_tool_prefix"; then
6269   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6270   do
6271     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6273 echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6275 if test "${ac_cv_prog_F77+set}" = set; then
6276   echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278   if test -n "$F77"; then
6279   ac_cv_prog_F77="$F77" # Let the user override the test.
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284   IFS=$as_save_IFS
6285   test -z "$as_dir" && as_dir=.
6286   for ac_exec_ext in '' $ac_executable_extensions; do
6287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6288     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290     break 2
6291   fi
6292 done
6293 done
6294
6295 fi
6296 fi
6297 F77=$ac_cv_prog_F77
6298 if test -n "$F77"; then
6299   echo "$as_me:$LINENO: result: $F77" >&5
6300 echo "${ECHO_T}$F77" >&6
6301 else
6302   echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6
6304 fi
6305
6306     test -n "$F77" && break
6307   done
6308 fi
6309 if test -z "$F77"; then
6310   ac_ct_F77=$F77
6311   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6312 do
6313   # Extract the first word of "$ac_prog", so it can be a program name with args.
6314 set dummy $ac_prog; ac_word=$2
6315 echo "$as_me:$LINENO: checking for $ac_word" >&5
6316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6317 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6318   echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320   if test -n "$ac_ct_F77"; then
6321   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6322 else
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326   IFS=$as_save_IFS
6327   test -z "$as_dir" && as_dir=.
6328   for ac_exec_ext in '' $ac_executable_extensions; do
6329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6330     ac_cv_prog_ac_ct_F77="$ac_prog"
6331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332     break 2
6333   fi
6334 done
6335 done
6336
6337 fi
6338 fi
6339 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6340 if test -n "$ac_ct_F77"; then
6341   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6342 echo "${ECHO_T}$ac_ct_F77" >&6
6343 else
6344   echo "$as_me:$LINENO: result: no" >&5
6345 echo "${ECHO_T}no" >&6
6346 fi
6347
6348   test -n "$ac_ct_F77" && break
6349 done
6350
6351   F77=$ac_ct_F77
6352 fi
6353
6354
6355 # Provide some information about the compiler.
6356 echo "$as_me:6356:" \
6357      "checking for Fortran 77 compiler version" >&5
6358 ac_compiler=`set X $ac_compile; echo $2`
6359 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6360   (eval $ac_compiler --version </dev/null >&5) 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); }
6364 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6365   (eval $ac_compiler -v </dev/null >&5) 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); }
6369 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6370   (eval $ac_compiler -V </dev/null >&5) 2>&5
6371   ac_status=$?
6372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373   (exit $ac_status); }
6374 rm -f a.out
6375
6376 # If we don't use `.F' as extension, the preprocessor is not run on the
6377 # input file.  (Note that this only needs to work for GNU compilers.)
6378 ac_save_ext=$ac_ext
6379 ac_ext=F
6380 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6381 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6382 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6383   echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385   cat >conftest.$ac_ext <<_ACEOF
6386       program main
6387 #ifndef __GNUC__
6388        choke me
6389 #endif
6390
6391       end
6392 _ACEOF
6393 rm -f conftest.$ac_objext
6394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6395   (eval $ac_compile) 2>conftest.er1
6396   ac_status=$?
6397   grep -v '^ *+' conftest.er1 >conftest.err
6398   rm -f conftest.er1
6399   cat conftest.err >&5
6400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401   (exit $ac_status); } &&
6402          { ac_try='test -z "$ac_f77_werror_flag"
6403                          || test ! -s conftest.err'
6404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405   (eval $ac_try) 2>&5
6406   ac_status=$?
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); }; } &&
6409          { ac_try='test -s conftest.$ac_objext'
6410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411   (eval $ac_try) 2>&5
6412   ac_status=$?
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); }; }; then
6415   ac_compiler_gnu=yes
6416 else
6417   echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6419
6420 ac_compiler_gnu=no
6421 fi
6422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6423 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6424
6425 fi
6426 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6427 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6428 ac_ext=$ac_save_ext
6429 ac_test_FFLAGS=${FFLAGS+set}
6430 ac_save_FFLAGS=$FFLAGS
6431 FFLAGS=
6432 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6433 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6434 if test "${ac_cv_prog_f77_g+set}" = set; then
6435   echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437   FFLAGS=-g
6438 cat >conftest.$ac_ext <<_ACEOF
6439       program main
6440
6441       end
6442 _ACEOF
6443 rm -f conftest.$ac_objext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6445   (eval $ac_compile) 2>conftest.er1
6446   ac_status=$?
6447   grep -v '^ *+' conftest.er1 >conftest.err
6448   rm -f conftest.er1
6449   cat conftest.err >&5
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); } &&
6452          { ac_try='test -z "$ac_f77_werror_flag"
6453                          || test ! -s conftest.err'
6454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455   (eval $ac_try) 2>&5
6456   ac_status=$?
6457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458   (exit $ac_status); }; } &&
6459          { ac_try='test -s conftest.$ac_objext'
6460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461   (eval $ac_try) 2>&5
6462   ac_status=$?
6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464   (exit $ac_status); }; }; then
6465   ac_cv_prog_f77_g=yes
6466 else
6467   echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6469
6470 ac_cv_prog_f77_g=no
6471 fi
6472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6473
6474 fi
6475 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6476 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6477 if test "$ac_test_FFLAGS" = set; then
6478   FFLAGS=$ac_save_FFLAGS
6479 elif test $ac_cv_prog_f77_g = yes; then
6480   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6481     FFLAGS="-g -O2"
6482   else
6483     FFLAGS="-g"
6484   fi
6485 else
6486   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6487     FFLAGS="-O2"
6488   else
6489     FFLAGS=
6490   fi
6491 fi
6492
6493 G77=`test $ac_compiler_gnu = yes && echo yes`
6494 ac_ext=c
6495 ac_cpp='$CPP $CPPFLAGS'
6496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6499
6500
6501
6502 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6503
6504 # find the maximum length of command line arguments
6505 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6506 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6507 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6508   echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510     i=0
6511   teststring="ABCD"
6512
6513   case $build_os in
6514   msdosdjgpp*)
6515     # On DJGPP, this test can blow up pretty badly due to problems in libc
6516     # (any single argument exceeding 2000 bytes causes a buffer overrun
6517     # during glob expansion).  Even if it were fixed, the result of this
6518     # check would be larger than it should be.
6519     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6520     ;;
6521
6522   gnu*)
6523     # Under GNU Hurd, this test is not required because there is
6524     # no limit to the length of command line arguments.
6525     # Libtool will interpret -1 as no limit whatsoever
6526     lt_cv_sys_max_cmd_len=-1;
6527     ;;
6528
6529   cygwin* | mingw*)
6530     # On Win9x/ME, this test blows up -- it succeeds, but takes
6531     # about 5 minutes as the teststring grows exponentially.
6532     # Worse, since 9x/ME are not pre-emptively multitasking,
6533     # you end up with a "frozen" computer, even though with patience
6534     # the test eventually succeeds (with a max line length of 256k).
6535     # Instead, let's just punt: use the minimum linelength reported by
6536     # all of the supported platforms: 8192 (on NT/2K/XP).
6537     lt_cv_sys_max_cmd_len=8192;
6538     ;;
6539
6540   amigaos*)
6541     # On AmigaOS with pdksh, this test takes hours, literally.
6542     # So we just punt and use a minimum line length of 8192.
6543     lt_cv_sys_max_cmd_len=8192;
6544     ;;
6545
6546  *)
6547     # If test is not a shell built-in, we'll probably end up computing a
6548     # maximum length that is only half of the actual maximum length, but
6549     # we can't tell.
6550     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6551                = "XX$teststring") >/dev/null 2>&1 &&
6552             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6553             lt_cv_sys_max_cmd_len=$new_result &&
6554             test $i != 17 # 1/2 MB should be enough
6555     do
6556       i=`expr $i + 1`
6557       teststring=$teststring$teststring
6558     done
6559     teststring=
6560     # Add a significant safety factor because C++ compilers can tack on massive
6561     # amounts of additional arguments before passing them to the linker.
6562     # It appears as though 1/2 is a usable value.
6563     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6564     ;;
6565   esac
6566
6567 fi
6568
6569 if test -n $lt_cv_sys_max_cmd_len ; then
6570   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6571 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6572 else
6573   echo "$as_me:$LINENO: result: none" >&5
6574 echo "${ECHO_T}none" >&6
6575 fi
6576
6577
6578
6579
6580 # Check for command to grab the raw symbol name followed by C symbol from nm.
6581 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6582 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6583 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6584   echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586
6587 # These are sane defaults that work on at least a few old systems.
6588 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6589
6590 # Character class describing NM global symbol codes.
6591 symcode='[BCDEGRST]'
6592
6593 # Regexp to match symbols that can be accessed directly from C.
6594 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6595
6596 # Transform the above into a raw symbol and a C symbol.
6597 symxfrm='\1 \2\3 \3'
6598
6599 # Transform an extracted symbol line into a proper C declaration
6600 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6601
6602 # Transform an extracted symbol line into symbol name and symbol address
6603 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'"
6604
6605 # Define system-specific variables.
6606 case $host_os in
6607 aix*)
6608   symcode='[BCDT]'
6609   ;;
6610 cygwin* | mingw* | pw32*)
6611   symcode='[ABCDGISTW]'
6612   ;;
6613 hpux*) # Its linker distinguishes data from code symbols
6614   if test "$host_cpu" = ia64; then
6615     symcode='[ABCDEGRST]'
6616   fi
6617   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6618   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'"
6619   ;;
6620 irix* | nonstopux*)
6621   symcode='[BCDEGRST]'
6622   ;;
6623 osf*)
6624   symcode='[BCDEGQRST]'
6625   ;;
6626 solaris* | sysv5*)
6627   symcode='[BDRT]'
6628   ;;
6629 sysv4)
6630   symcode='[DFNSTU]'
6631   ;;
6632 esac
6633
6634 # Handle CRLF in mingw tool chain
6635 opt_cr=
6636 case $build_os in
6637 mingw*)
6638   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6639   ;;
6640 esac
6641
6642 # If we're using GNU nm, then use its standard symbol codes.
6643 case `$NM -V 2>&1` in
6644 *GNU* | *'with BFD'*)
6645   symcode='[ABCDGIRSTW]' ;;
6646 esac
6647
6648 # Try without a prefix undercore, then with it.
6649 for ac_symprfx in "" "_"; do
6650
6651   # Write the raw and C identifiers.
6652   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6653
6654   # Check to see that the pipe works correctly.
6655   pipe_works=no
6656
6657   rm -f conftest*
6658   cat > conftest.$ac_ext <<EOF
6659 #ifdef __cplusplus
6660 extern "C" {
6661 #endif
6662 char nm_test_var;
6663 void nm_test_func(){}
6664 #ifdef __cplusplus
6665 }
6666 #endif
6667 int main(){nm_test_var='a';nm_test_func();return(0);}
6668 EOF
6669
6670   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6671   (eval $ac_compile) 2>&5
6672   ac_status=$?
6673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674   (exit $ac_status); }; then
6675     # Now try to grab the symbols.
6676     nlist=conftest.nm
6677     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6678   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6679   ac_status=$?
6680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681   (exit $ac_status); } && test -s "$nlist"; then
6682       # Try sorting and uniquifying the output.
6683       if sort "$nlist" | uniq > "$nlist"T; then
6684         mv -f "$nlist"T "$nlist"
6685       else
6686         rm -f "$nlist"T
6687       fi
6688
6689       # Make sure that we snagged all the symbols we need.
6690       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6691         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6692           cat <<EOF > conftest.$ac_ext
6693 #ifdef __cplusplus
6694 extern "C" {
6695 #endif
6696
6697 EOF
6698           # Now generate the symbol file.
6699           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6700
6701           cat <<EOF >> conftest.$ac_ext
6702 #if defined (__STDC__) && __STDC__
6703 # define lt_ptr_t void *
6704 #else
6705 # define lt_ptr_t char *
6706 # define const
6707 #endif
6708
6709 /* The mapping between symbol names and symbols. */
6710 const struct {
6711   const char *name;
6712   lt_ptr_t address;
6713 }
6714 lt_preloaded_symbols[] =
6715 {
6716 EOF
6717           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6718           cat <<\EOF >> conftest.$ac_ext
6719   {0, (lt_ptr_t) 0}
6720 };
6721
6722 #ifdef __cplusplus
6723 }
6724 #endif
6725 EOF
6726           # Now try linking the two files.
6727           mv conftest.$ac_objext conftstm.$ac_objext
6728           lt_save_LIBS="$LIBS"
6729           lt_save_CFLAGS="$CFLAGS"
6730           LIBS="conftstm.$ac_objext"
6731           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6732           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6733   (eval $ac_link) 2>&5
6734   ac_status=$?
6735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6737             pipe_works=yes
6738           fi
6739           LIBS="$lt_save_LIBS"
6740           CFLAGS="$lt_save_CFLAGS"
6741         else
6742           echo "cannot find nm_test_func in $nlist" >&5
6743         fi
6744       else
6745         echo "cannot find nm_test_var in $nlist" >&5
6746       fi
6747     else
6748       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6749     fi
6750   else
6751     echo "$progname: failed program was:" >&5
6752     cat conftest.$ac_ext >&5
6753   fi
6754   rm -f conftest* conftst*
6755
6756   # Do not use the global_symbol_pipe unless it works.
6757   if test "$pipe_works" = yes; then
6758     break
6759   else
6760     lt_cv_sys_global_symbol_pipe=
6761   fi
6762 done
6763
6764 fi
6765
6766 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6767   lt_cv_sys_global_symbol_to_cdecl=
6768 fi
6769 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6770   echo "$as_me:$LINENO: result: failed" >&5
6771 echo "${ECHO_T}failed" >&6
6772 else
6773   echo "$as_me:$LINENO: result: ok" >&5
6774 echo "${ECHO_T}ok" >&6
6775 fi
6776
6777 echo "$as_me:$LINENO: checking for objdir" >&5
6778 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6779 if test "${lt_cv_objdir+set}" = set; then
6780   echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782   rm -f .libs 2>/dev/null
6783 mkdir .libs 2>/dev/null
6784 if test -d .libs; then
6785   lt_cv_objdir=.libs
6786 else
6787   # MS-DOS does not allow filenames that begin with a dot.
6788   lt_cv_objdir=_libs
6789 fi
6790 rmdir .libs 2>/dev/null
6791 fi
6792 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6793 echo "${ECHO_T}$lt_cv_objdir" >&6
6794 objdir=$lt_cv_objdir
6795
6796
6797
6798
6799
6800 case $host_os in
6801 aix3*)
6802   # AIX sometimes has problems with the GCC collect2 program.  For some
6803   # reason, if we set the COLLECT_NAMES environment variable, the problems
6804   # vanish in a puff of smoke.
6805   if test "X${COLLECT_NAMES+set}" != Xset; then
6806     COLLECT_NAMES=
6807     export COLLECT_NAMES
6808   fi
6809   ;;
6810 esac
6811
6812 # Sed substitution that helps us do robust quoting.  It backslashifies
6813 # metacharacters that are still active within double-quoted strings.
6814 Xsed='sed -e s/^X//'
6815 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6816
6817 # Same as above, but do not quote variable references.
6818 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6819
6820 # Sed substitution to delay expansion of an escaped shell variable in a
6821 # double_quote_subst'ed string.
6822 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6823
6824 # Sed substitution to avoid accidental globbing in evaled expressions
6825 no_glob_subst='s/\*/\\\*/g'
6826
6827 # Constants:
6828 rm="rm -f"
6829
6830 # Global variables:
6831 default_ofile=libtool
6832 can_build_shared=yes
6833
6834 # All known linkers require a `.a' archive for static linking (except M$VC,
6835 # which needs '.lib').
6836 libext=a
6837 ltmain="$ac_aux_dir/ltmain.sh"
6838 ofile="$default_ofile"
6839 with_gnu_ld="$lt_cv_prog_gnu_ld"
6840
6841 if test -n "$ac_tool_prefix"; then
6842   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6843 set dummy ${ac_tool_prefix}ar; ac_word=$2
6844 echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6846 if test "${ac_cv_prog_AR+set}" = set; then
6847   echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849   if test -n "$AR"; then
6850   ac_cv_prog_AR="$AR" # Let the user override the test.
6851 else
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 for as_dir in $PATH
6854 do
6855   IFS=$as_save_IFS
6856   test -z "$as_dir" && as_dir=.
6857   for ac_exec_ext in '' $ac_executable_extensions; do
6858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6859     ac_cv_prog_AR="${ac_tool_prefix}ar"
6860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861     break 2
6862   fi
6863 done
6864 done
6865
6866 fi
6867 fi
6868 AR=$ac_cv_prog_AR
6869 if test -n "$AR"; then
6870   echo "$as_me:$LINENO: result: $AR" >&5
6871 echo "${ECHO_T}$AR" >&6
6872 else
6873   echo "$as_me:$LINENO: result: no" >&5
6874 echo "${ECHO_T}no" >&6
6875 fi
6876
6877 fi
6878 if test -z "$ac_cv_prog_AR"; then
6879   ac_ct_AR=$AR
6880   # Extract the first word of "ar", so it can be a program name with args.
6881 set dummy ar; ac_word=$2
6882 echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6884 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887   if test -n "$ac_ct_AR"; then
6888   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6889 else
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6892 do
6893   IFS=$as_save_IFS
6894   test -z "$as_dir" && as_dir=.
6895   for ac_exec_ext in '' $ac_executable_extensions; do
6896   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6897     ac_cv_prog_ac_ct_AR="ar"
6898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899     break 2
6900   fi
6901 done
6902 done
6903
6904   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6905 fi
6906 fi
6907 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6908 if test -n "$ac_ct_AR"; then
6909   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6910 echo "${ECHO_T}$ac_ct_AR" >&6
6911 else
6912   echo "$as_me:$LINENO: result: no" >&5
6913 echo "${ECHO_T}no" >&6
6914 fi
6915
6916   AR=$ac_ct_AR
6917 else
6918   AR="$ac_cv_prog_AR"
6919 fi
6920
6921 if test -n "$ac_tool_prefix"; then
6922   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6924 echo "$as_me:$LINENO: checking for $ac_word" >&5
6925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6926 if test "${ac_cv_prog_RANLIB+set}" = set; then
6927   echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929   if test -n "$RANLIB"; then
6930   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6931 else
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in $PATH
6934 do
6935   IFS=$as_save_IFS
6936   test -z "$as_dir" && as_dir=.
6937   for ac_exec_ext in '' $ac_executable_extensions; do
6938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6939     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6941     break 2
6942   fi
6943 done
6944 done
6945
6946 fi
6947 fi
6948 RANLIB=$ac_cv_prog_RANLIB
6949 if test -n "$RANLIB"; then
6950   echo "$as_me:$LINENO: result: $RANLIB" >&5
6951 echo "${ECHO_T}$RANLIB" >&6
6952 else
6953   echo "$as_me:$LINENO: result: no" >&5
6954 echo "${ECHO_T}no" >&6
6955 fi
6956
6957 fi
6958 if test -z "$ac_cv_prog_RANLIB"; then
6959   ac_ct_RANLIB=$RANLIB
6960   # Extract the first word of "ranlib", so it can be a program name with args.
6961 set dummy ranlib; ac_word=$2
6962 echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6964 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967   if test -n "$ac_ct_RANLIB"; then
6968   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6969 else
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973   IFS=$as_save_IFS
6974   test -z "$as_dir" && as_dir=.
6975   for ac_exec_ext in '' $ac_executable_extensions; do
6976   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977     ac_cv_prog_ac_ct_RANLIB="ranlib"
6978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979     break 2
6980   fi
6981 done
6982 done
6983
6984   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6985 fi
6986 fi
6987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6988 if test -n "$ac_ct_RANLIB"; then
6989   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6990 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6991 else
6992   echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6
6994 fi
6995
6996   RANLIB=$ac_ct_RANLIB
6997 else
6998   RANLIB="$ac_cv_prog_RANLIB"
6999 fi
7000
7001 if test -n "$ac_tool_prefix"; then
7002   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7003 set dummy ${ac_tool_prefix}strip; ac_word=$2
7004 echo "$as_me:$LINENO: checking for $ac_word" >&5
7005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7006 if test "${ac_cv_prog_STRIP+set}" = set; then
7007   echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009   if test -n "$STRIP"; then
7010   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7014 do
7015   IFS=$as_save_IFS
7016   test -z "$as_dir" && as_dir=.
7017   for ac_exec_ext in '' $ac_executable_extensions; do
7018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7019     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021     break 2
7022   fi
7023 done
7024 done
7025
7026 fi
7027 fi
7028 STRIP=$ac_cv_prog_STRIP
7029 if test -n "$STRIP"; then
7030   echo "$as_me:$LINENO: result: $STRIP" >&5
7031 echo "${ECHO_T}$STRIP" >&6
7032 else
7033   echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6
7035 fi
7036
7037 fi
7038 if test -z "$ac_cv_prog_STRIP"; then
7039   ac_ct_STRIP=$STRIP
7040   # Extract the first word of "strip", so it can be a program name with args.
7041 set dummy strip; ac_word=$2
7042 echo "$as_me:$LINENO: checking for $ac_word" >&5
7043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7045   echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047   if test -n "$ac_ct_STRIP"; then
7048   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7049 else
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 for as_dir in $PATH
7052 do
7053   IFS=$as_save_IFS
7054   test -z "$as_dir" && as_dir=.
7055   for ac_exec_ext in '' $ac_executable_extensions; do
7056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7057     ac_cv_prog_ac_ct_STRIP="strip"
7058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059     break 2
7060   fi
7061 done
7062 done
7063
7064   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7065 fi
7066 fi
7067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7068 if test -n "$ac_ct_STRIP"; then
7069   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7070 echo "${ECHO_T}$ac_ct_STRIP" >&6
7071 else
7072   echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6
7074 fi
7075
7076   STRIP=$ac_ct_STRIP
7077 else
7078   STRIP="$ac_cv_prog_STRIP"
7079 fi
7080
7081
7082 old_CC="$CC"
7083 old_CFLAGS="$CFLAGS"
7084
7085 # Set sane defaults for various variables
7086 test -z "$AR" && AR=ar
7087 test -z "$AR_FLAGS" && AR_FLAGS=cru
7088 test -z "$AS" && AS=as
7089 test -z "$CC" && CC=cc
7090 test -z "$LTCC" && LTCC=$CC
7091 test -z "$DLLTOOL" && DLLTOOL=dlltool
7092 test -z "$LD" && LD=ld
7093 test -z "$LN_S" && LN_S="ln -s"
7094 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7095 test -z "$NM" && NM=nm
7096 test -z "$SED" && SED=sed
7097 test -z "$OBJDUMP" && OBJDUMP=objdump
7098 test -z "$RANLIB" && RANLIB=:
7099 test -z "$STRIP" && STRIP=:
7100 test -z "$ac_objext" && ac_objext=o
7101
7102 # Determine commands to create old-style static archives.
7103 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7104 old_postinstall_cmds='chmod 644 $oldlib'
7105 old_postuninstall_cmds=
7106
7107 if test -n "$RANLIB"; then
7108   case $host_os in
7109   openbsd*)
7110     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7111     ;;
7112   *)
7113     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7114     ;;
7115   esac
7116   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7117 fi
7118
7119 # Only perform the check for file, if the check method requires it
7120 case $deplibs_check_method in
7121 file_magic*)
7122   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7123     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7124 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7125 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7126   echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128   case $MAGIC_CMD in
7129 [\\/*] |  ?:[\\/]*)
7130   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7131   ;;
7132 *)
7133   lt_save_MAGIC_CMD="$MAGIC_CMD"
7134   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7135   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7136   for ac_dir in $ac_dummy; do
7137     IFS="$lt_save_ifs"
7138     test -z "$ac_dir" && ac_dir=.
7139     if test -f $ac_dir/${ac_tool_prefix}file; then
7140       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7141       if test -n "$file_magic_test_file"; then
7142         case $deplibs_check_method in
7143         "file_magic "*)
7144           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7145           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7146           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7147             $EGREP "$file_magic_regex" > /dev/null; then
7148             :
7149           else
7150             cat <<EOF 1>&2
7151
7152 *** Warning: the command libtool uses to detect shared libraries,
7153 *** $file_magic_cmd, produces output that libtool cannot recognize.
7154 *** The result is that libtool may fail to recognize shared libraries
7155 *** as such.  This will affect the creation of libtool libraries that
7156 *** depend on shared libraries, but programs linked with such libtool
7157 *** libraries will work regardless of this problem.  Nevertheless, you
7158 *** may want to report the problem to your system manager and/or to
7159 *** bug-libtool@gnu.org
7160
7161 EOF
7162           fi ;;
7163         esac
7164       fi
7165       break
7166     fi
7167   done
7168   IFS="$lt_save_ifs"
7169   MAGIC_CMD="$lt_save_MAGIC_CMD"
7170   ;;
7171 esac
7172 fi
7173
7174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7175 if test -n "$MAGIC_CMD"; then
7176   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7177 echo "${ECHO_T}$MAGIC_CMD" >&6
7178 else
7179   echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6
7181 fi
7182
7183 if test -z "$lt_cv_path_MAGIC_CMD"; then
7184   if test -n "$ac_tool_prefix"; then
7185     echo "$as_me:$LINENO: checking for file" >&5
7186 echo $ECHO_N "checking for file... $ECHO_C" >&6
7187 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7188   echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190   case $MAGIC_CMD in
7191 [\\/*] |  ?:[\\/]*)
7192   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7193   ;;
7194 *)
7195   lt_save_MAGIC_CMD="$MAGIC_CMD"
7196   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7197   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7198   for ac_dir in $ac_dummy; do
7199     IFS="$lt_save_ifs"
7200     test -z "$ac_dir" && ac_dir=.
7201     if test -f $ac_dir/file; then
7202       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7203       if test -n "$file_magic_test_file"; then
7204         case $deplibs_check_method in
7205         "file_magic "*)
7206           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7207           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7208           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7209             $EGREP "$file_magic_regex" > /dev/null; then
7210             :
7211           else
7212             cat <<EOF 1>&2
7213
7214 *** Warning: the command libtool uses to detect shared libraries,
7215 *** $file_magic_cmd, produces output that libtool cannot recognize.
7216 *** The result is that libtool may fail to recognize shared libraries
7217 *** as such.  This will affect the creation of libtool libraries that
7218 *** depend on shared libraries, but programs linked with such libtool
7219 *** libraries will work regardless of this problem.  Nevertheless, you
7220 *** may want to report the problem to your system manager and/or to
7221 *** bug-libtool@gnu.org
7222
7223 EOF
7224           fi ;;
7225         esac
7226       fi
7227       break
7228     fi
7229   done
7230   IFS="$lt_save_ifs"
7231   MAGIC_CMD="$lt_save_MAGIC_CMD"
7232   ;;
7233 esac
7234 fi
7235
7236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7237 if test -n "$MAGIC_CMD"; then
7238   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7239 echo "${ECHO_T}$MAGIC_CMD" >&6
7240 else
7241   echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6
7243 fi
7244
7245   else
7246     MAGIC_CMD=:
7247   fi
7248 fi
7249
7250   fi
7251   ;;
7252 esac
7253
7254 enable_dlopen=no
7255 enable_win32_dll=no
7256
7257 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7258 if test "${enable_libtool_lock+set}" = set; then
7259   enableval="$enable_libtool_lock"
7260
7261 fi;
7262 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7263
7264
7265 # Check whether --with-pic or --without-pic was given.
7266 if test "${with_pic+set}" = set; then
7267   withval="$with_pic"
7268   pic_mode="$withval"
7269 else
7270   pic_mode=default
7271 fi;
7272 test -z "$pic_mode" && pic_mode=default
7273
7274 # Use C for the default configuration in the libtool script
7275 tagname=
7276 lt_save_CC="$CC"
7277 ac_ext=c
7278 ac_cpp='$CPP $CPPFLAGS'
7279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7282
7283
7284 # Source file extension for C test sources.
7285 ac_ext=c
7286
7287 # Object file extension for compiled C test sources.
7288 objext=o
7289 objext=$objext
7290
7291 # Code to be used in simple compile tests
7292 lt_simple_compile_test_code="int some_variable = 0;\n"
7293
7294 # Code to be used in simple link tests
7295 lt_simple_link_test_code='int main(){return(0);}\n'
7296
7297
7298 # If no C compiler was specified, use CC.
7299 LTCC=${LTCC-"$CC"}
7300
7301 # Allow CC to be a program name with arguments.
7302 compiler=$CC
7303
7304
7305 #
7306 # Check for any special shared library compilation flags.
7307 #
7308 lt_prog_cc_shlib=
7309 if test "$GCC" = no; then
7310   case $host_os in
7311   sco3.2v5*)
7312     lt_prog_cc_shlib='-belf'
7313     ;;
7314   esac
7315 fi
7316 if test -n "$lt_prog_cc_shlib"; then
7317   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7318 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7319   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7320   else
7321     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7322 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7323     lt_cv_prog_cc_can_build_shared=no
7324   fi
7325 fi
7326
7327
7328 #
7329 # Check to make sure the static flag actually works.
7330 #
7331 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7332 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7333 if test "${lt_prog_compiler_static_works+set}" = set; then
7334   echo $ECHO_N "(cached) $ECHO_C" >&6
7335 else
7336   lt_prog_compiler_static_works=no
7337    save_LDFLAGS="$LDFLAGS"
7338    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7339    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7340    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7341      # The compiler can only warn and ignore the option if not recognized
7342      # So say no if there are warnings
7343      if test -s conftest.err; then
7344        # Append any errors to the config.log.
7345        cat conftest.err 1>&5
7346      else
7347        lt_prog_compiler_static_works=yes
7348      fi
7349    fi
7350    $rm conftest*
7351    LDFLAGS="$save_LDFLAGS"
7352
7353 fi
7354 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7355 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7356
7357 if test x"$lt_prog_compiler_static_works" = xyes; then
7358     :
7359 else
7360     lt_prog_compiler_static=
7361 fi
7362
7363
7364
7365
7366 lt_prog_compiler_no_builtin_flag=
7367
7368 if test "$GCC" = yes; then
7369   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7370
7371
7372 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7373 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7374 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7375   echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377   lt_cv_prog_compiler_rtti_exceptions=no
7378   ac_outfile=conftest.$ac_objext
7379    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7380    lt_compiler_flag="-fno-rtti -fno-exceptions"
7381    # Insert the option either (1) after the last *FLAGS variable, or
7382    # (2) before a word containing "conftest.", or (3) at the end.
7383    # Note that $ac_compile itself does not contain backslashes and begins
7384    # with a dollar sign (not a hyphen), so the echo should work correctly.
7385    # The option is referenced via a variable to avoid confusing sed.
7386    lt_compile=`echo "$ac_compile" | $SED \
7387    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7388    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7389    -e 's:$: $lt_compiler_flag:'`
7390    (eval echo "\"\$as_me:7390: $lt_compile\"" >&5)
7391    (eval "$lt_compile" 2>conftest.err)
7392    ac_status=$?
7393    cat conftest.err >&5
7394    echo "$as_me:7394: \$? = $ac_status" >&5
7395    if (exit $ac_status) && test -s "$ac_outfile"; then
7396      # The compiler can only warn and ignore the option if not recognized
7397      # So say no if there are warnings
7398      if test ! -s conftest.err; then
7399        lt_cv_prog_compiler_rtti_exceptions=yes
7400      fi
7401    fi
7402    $rm conftest*
7403
7404 fi
7405 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7406 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7407
7408 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7409     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7410 else
7411     :
7412 fi
7413
7414 fi
7415
7416 lt_prog_compiler_wl=
7417 lt_prog_compiler_pic=
7418 lt_prog_compiler_static=
7419
7420 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7421 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7422
7423   if test "$GCC" = yes; then
7424     lt_prog_compiler_wl='-Wl,'
7425     lt_prog_compiler_static='-static'
7426
7427     case $host_os in
7428       aix*)
7429       # All AIX code is PIC.
7430       if test "$host_cpu" = ia64; then
7431         # AIX 5 now supports IA64 processor
7432         lt_prog_compiler_static='-Bstatic'
7433       fi
7434       ;;
7435
7436     amigaos*)
7437       # FIXME: we need at least 68020 code to build shared libraries, but
7438       # adding the `-m68020' flag to GCC prevents building anything better,
7439       # like `-m68040'.
7440       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7441       ;;
7442
7443     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7444       # PIC is the default for these OSes.
7445       ;;
7446
7447     mingw* | pw32* | os2*)
7448       # This hack is so that the source file can tell whether it is being
7449       # built for inclusion in a dll (and should export symbols for example).
7450       lt_prog_compiler_pic='-DDLL_EXPORT'
7451       ;;
7452
7453     darwin* | rhapsody*)
7454       # PIC is the default on this platform
7455       # Common symbols not allowed in MH_DYLIB files
7456       lt_prog_compiler_pic='-fno-common'
7457       ;;
7458
7459     msdosdjgpp*)
7460       # Just because we use GCC doesn't mean we suddenly get shared libraries
7461       # on systems that don't support them.
7462       lt_prog_compiler_can_build_shared=no
7463       enable_shared=no
7464       ;;
7465
7466     sysv4*MP*)
7467       if test -d /usr/nec; then
7468         lt_prog_compiler_pic=-Kconform_pic
7469       fi
7470       ;;
7471
7472     hpux*)
7473       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7474       # not for PA HP-UX.
7475       case "$host_cpu" in
7476       hppa*64*|ia64*)
7477         # +Z the default
7478         ;;
7479       *)
7480         lt_prog_compiler_pic='-fPIC'
7481         ;;
7482       esac
7483       ;;
7484
7485     *)
7486       lt_prog_compiler_pic='-fPIC'
7487       ;;
7488     esac
7489   else
7490     # PORTME Check for flag to pass linker flags through the system compiler.
7491     case $host_os in
7492     aix*)
7493       lt_prog_compiler_wl='-Wl,'
7494       if test "$host_cpu" = ia64; then
7495         # AIX 5 now supports IA64 processor
7496         lt_prog_compiler_static='-Bstatic'
7497       else
7498         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7499       fi
7500       ;;
7501
7502     mingw* | pw32* | os2*)
7503       # This hack is so that the source file can tell whether it is being
7504       # built for inclusion in a dll (and should export symbols for example).
7505       lt_prog_compiler_pic='-DDLL_EXPORT'
7506       ;;
7507
7508     hpux9* | hpux10* | hpux11*)
7509       lt_prog_compiler_wl='-Wl,'
7510       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7511       # not for PA HP-UX.
7512       case "$host_cpu" in
7513       hppa*64*|ia64*)
7514         # +Z the default
7515         ;;
7516       *)
7517         lt_prog_compiler_pic='+Z'
7518         ;;
7519       esac
7520       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7521       lt_prog_compiler_static='${wl}-a ${wl}archive'
7522       ;;
7523
7524     irix5* | irix6* | nonstopux*)
7525       lt_prog_compiler_wl='-Wl,'
7526       # PIC (with -KPIC) is the default.
7527       lt_prog_compiler_static='-non_shared'
7528       ;;
7529
7530     newsos6)
7531       lt_prog_compiler_pic='-KPIC'
7532       lt_prog_compiler_static='-Bstatic'
7533       ;;
7534
7535     linux*)
7536       case $CC in
7537       icc* | ecc*)
7538         lt_prog_compiler_wl='-Wl,'
7539         lt_prog_compiler_pic='-KPIC'
7540         lt_prog_compiler_static='-static'
7541         ;;
7542       ccc*)
7543         lt_prog_compiler_wl='-Wl,'
7544         # All Alpha code is PIC.
7545         lt_prog_compiler_static='-non_shared'
7546         ;;
7547       esac
7548       ;;
7549
7550     osf3* | osf4* | osf5*)
7551       lt_prog_compiler_wl='-Wl,'
7552       # All OSF/1 code is PIC.
7553       lt_prog_compiler_static='-non_shared'
7554       ;;
7555
7556     sco3.2v5*)
7557       lt_prog_compiler_pic='-Kpic'
7558       lt_prog_compiler_static='-dn'
7559       ;;
7560
7561     solaris*)
7562       lt_prog_compiler_wl='-Wl,'
7563       lt_prog_compiler_pic='-KPIC'
7564       lt_prog_compiler_static='-Bstatic'
7565       ;;
7566
7567     sunos4*)
7568       lt_prog_compiler_wl='-Qoption ld '
7569       lt_prog_compiler_pic='-PIC'
7570       lt_prog_compiler_static='-Bstatic'
7571       ;;
7572
7573     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7574       lt_prog_compiler_wl='-Wl,'
7575       lt_prog_compiler_pic='-KPIC'
7576       lt_prog_compiler_static='-Bstatic'
7577       ;;
7578
7579     sysv4*MP*)
7580       if test -d /usr/nec ;then
7581         lt_prog_compiler_pic='-Kconform_pic'
7582         lt_prog_compiler_static='-Bstatic'
7583       fi
7584       ;;
7585
7586     uts4*)
7587       lt_prog_compiler_pic='-pic'
7588       lt_prog_compiler_static='-Bstatic'
7589       ;;
7590
7591     *)
7592       lt_prog_compiler_can_build_shared=no
7593       ;;
7594     esac
7595   fi
7596
7597 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7598 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7599
7600 #
7601 # Check to make sure the PIC flag actually works.
7602 #
7603 if test -n "$lt_prog_compiler_pic"; then
7604
7605 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7606 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7607 if test "${lt_prog_compiler_pic_works+set}" = set; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   lt_prog_compiler_pic_works=no
7611   ac_outfile=conftest.$ac_objext
7612    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7613    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7614    # Insert the option either (1) after the last *FLAGS variable, or
7615    # (2) before a word containing "conftest.", or (3) at the end.
7616    # Note that $ac_compile itself does not contain backslashes and begins
7617    # with a dollar sign (not a hyphen), so the echo should work correctly.
7618    # The option is referenced via a variable to avoid confusing sed.
7619    lt_compile=`echo "$ac_compile" | $SED \
7620    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7621    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7622    -e 's:$: $lt_compiler_flag:'`
7623    (eval echo "\"\$as_me:7623: $lt_compile\"" >&5)
7624    (eval "$lt_compile" 2>conftest.err)
7625    ac_status=$?
7626    cat conftest.err >&5
7627    echo "$as_me:7627: \$? = $ac_status" >&5
7628    if (exit $ac_status) && test -s "$ac_outfile"; then
7629      # The compiler can only warn and ignore the option if not recognized
7630      # So say no if there are warnings
7631      if test ! -s conftest.err; then
7632        lt_prog_compiler_pic_works=yes
7633      fi
7634    fi
7635    $rm conftest*
7636
7637 fi
7638 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7639 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7640
7641 if test x"$lt_prog_compiler_pic_works" = xyes; then
7642     case $lt_prog_compiler_pic in
7643      "" | " "*) ;;
7644      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7645      esac
7646 else
7647     lt_prog_compiler_pic=
7648      lt_prog_compiler_can_build_shared=no
7649 fi
7650
7651 fi
7652 case "$host_os" in
7653   # For platforms which do not support PIC, -DPIC is meaningless:
7654   *djgpp*)
7655     lt_prog_compiler_pic=
7656     ;;
7657   *)
7658     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7659     ;;
7660 esac
7661
7662 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7663 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7664 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7665   echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667   lt_cv_prog_compiler_c_o=no
7668    $rm -r conftest 2>/dev/null
7669    mkdir conftest
7670    cd conftest
7671    mkdir out
7672    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7673
7674    lt_compiler_flag="-o out/conftest2.$ac_objext"
7675    # Insert the option either (1) after the last *FLAGS variable, or
7676    # (2) before a word containing "conftest.", or (3) at the end.
7677    # Note that $ac_compile itself does not contain backslashes and begins
7678    # with a dollar sign (not a hyphen), so the echo should work correctly.
7679    lt_compile=`echo "$ac_compile" | $SED \
7680    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7681    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7682    -e 's:$: $lt_compiler_flag:'`
7683    (eval echo "\"\$as_me:7683: $lt_compile\"" >&5)
7684    (eval "$lt_compile" 2>out/conftest.err)
7685    ac_status=$?
7686    cat out/conftest.err >&5
7687    echo "$as_me:7687: \$? = $ac_status" >&5
7688    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7689    then
7690      # The compiler can only warn and ignore the option if not recognized
7691      # So say no if there are warnings
7692      if test ! -s out/conftest.err; then
7693        lt_cv_prog_compiler_c_o=yes
7694      fi
7695    fi
7696    chmod u+w .
7697    $rm conftest*
7698    # SGI C++ compiler will create directory out/ii_files/ for
7699    # template instantiation
7700    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7701    $rm out/* && rmdir out
7702    cd ..
7703    rmdir conftest
7704    $rm conftest*
7705
7706 fi
7707 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7708 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7709
7710
7711 hard_links="nottested"
7712 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7713   # do not overwrite the value of need_locks provided by the user
7714   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7715 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7716   hard_links=yes
7717   $rm conftest*
7718   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7719   touch conftest.a
7720   ln conftest.a conftest.b 2>&5 || hard_links=no
7721   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7722   echo "$as_me:$LINENO: result: $hard_links" >&5
7723 echo "${ECHO_T}$hard_links" >&6
7724   if test "$hard_links" = no; then
7725     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7726 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7727     need_locks=warn
7728   fi
7729 else
7730   need_locks=no
7731 fi
7732
7733 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7734 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7735
7736   runpath_var=
7737   allow_undefined_flag=
7738   enable_shared_with_static_runtimes=no
7739   archive_cmds=
7740   archive_expsym_cmds=
7741   old_archive_From_new_cmds=
7742   old_archive_from_expsyms_cmds=
7743   export_dynamic_flag_spec=
7744   whole_archive_flag_spec=
7745   thread_safe_flag_spec=
7746   hardcode_libdir_flag_spec=
7747   hardcode_libdir_flag_spec_ld=
7748   hardcode_libdir_separator=
7749   hardcode_direct=no
7750   hardcode_minus_L=no
7751   hardcode_shlibpath_var=unsupported
7752   link_all_deplibs=unknown
7753   hardcode_automatic=no
7754   module_cmds=
7755   module_expsym_cmds=
7756   always_export_symbols=no
7757   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7758   # include_expsyms should be a list of space-separated symbols to be *always*
7759   # included in the symbol list
7760   include_expsyms=
7761   # exclude_expsyms can be an extended regexp of symbols to exclude
7762   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7763   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7764   # as well as any symbol that contains `d'.
7765   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7766   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7767   # platforms (ab)use it in PIC code, but their linkers get confused if
7768   # the symbol is explicitly referenced.  Since portable code cannot
7769   # rely on this symbol name, it's probably fine to never include it in
7770   # preloaded symbol tables.
7771   extract_expsyms_cmds=
7772
7773   case $host_os in
7774   cygwin* | mingw* | pw32*)
7775     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7776     # When not using gcc, we currently assume that we are using
7777     # Microsoft Visual C++.
7778     if test "$GCC" != yes; then
7779       with_gnu_ld=no
7780     fi
7781     ;;
7782   openbsd*)
7783     with_gnu_ld=no
7784     ;;
7785   esac
7786
7787   ld_shlibs=yes
7788   if test "$with_gnu_ld" = yes; then
7789     # If archive_cmds runs LD, not CC, wlarc should be empty
7790     wlarc='${wl}'
7791
7792     # See if GNU ld supports shared libraries.
7793     case $host_os in
7794     aix3* | aix4* | aix5*)
7795       # On AIX/PPC, the GNU linker is very broken
7796       if test "$host_cpu" != ia64; then
7797         ld_shlibs=no
7798         cat <<EOF 1>&2
7799
7800 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7801 *** to be unable to reliably create shared libraries on AIX.
7802 *** Therefore, libtool is disabling shared libraries support.  If you
7803 *** really care for shared libraries, you may want to modify your PATH
7804 *** so that a non-GNU linker is found, and then restart.
7805
7806 EOF
7807       fi
7808       ;;
7809
7810     amigaos*)
7811       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)'
7812       hardcode_libdir_flag_spec='-L$libdir'
7813       hardcode_minus_L=yes
7814
7815       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7816       # that the semantics of dynamic libraries on AmigaOS, at least up
7817       # to version 4, is to share data among multiple programs linked
7818       # with the same dynamic library.  Since this doesn't match the
7819       # behavior of shared libraries on other platforms, we can't use
7820       # them.
7821       ld_shlibs=no
7822       ;;
7823
7824     beos*)
7825       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7826         allow_undefined_flag=unsupported
7827         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7828         # support --undefined.  This deserves some investigation.  FIXME
7829         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7830       else
7831         ld_shlibs=no
7832       fi
7833       ;;
7834
7835     cygwin* | mingw* | pw32*)
7836       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7837       # as there is no search path for DLLs.
7838       hardcode_libdir_flag_spec='-L$libdir'
7839       allow_undefined_flag=unsupported
7840       always_export_symbols=no
7841       enable_shared_with_static_runtimes=yes
7842       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7843
7844       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7845         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7846         # If the export-symbols file already is a .def file (1st line
7847         # is EXPORTS), use it as is; otherwise, prepend...
7848         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7849           cp $export_symbols $output_objdir/$soname.def;
7850         else
7851           echo EXPORTS > $output_objdir/$soname.def;
7852           cat $export_symbols >> $output_objdir/$soname.def;
7853         fi~
7854         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7855       else
7856         ld_shlibs=no
7857       fi
7858       ;;
7859
7860     netbsd*)
7861       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7862         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7863         wlarc=
7864       else
7865         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7866         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7867       fi
7868       ;;
7869
7870     solaris* | sysv5*)
7871       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7872         ld_shlibs=no
7873         cat <<EOF 1>&2
7874
7875 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7876 *** create shared libraries on Solaris systems.  Therefore, libtool
7877 *** is disabling shared libraries support.  We urge you to upgrade GNU
7878 *** binutils to release 2.9.1 or newer.  Another option is to modify
7879 *** your PATH or compiler configuration so that the native linker is
7880 *** used, and then restart.
7881
7882 EOF
7883       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7884         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7885         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7886       else
7887         ld_shlibs=no
7888       fi
7889       ;;
7890
7891     sunos4*)
7892       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7893       wlarc=
7894       hardcode_direct=yes
7895       hardcode_shlibpath_var=no
7896       ;;
7897
7898   linux*)
7899     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7900         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7901         archive_cmds="$tmp_archive_cmds"
7902       supports_anon_versioning=no
7903       case `$LD -v 2>/dev/null` in
7904         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7905         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7906         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7907         *\ 2.11.*) ;; # other 2.11 versions
7908         *) supports_anon_versioning=yes ;;
7909       esac
7910       if test $supports_anon_versioning = yes; then
7911         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7912 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7913 $echo "local: *; };" >> $output_objdir/$libname.ver~
7914         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7915       else
7916         archive_expsym_cmds="$tmp_archive_cmds"
7917       fi
7918     else
7919       ld_shlibs=no
7920     fi
7921     ;;
7922
7923     *)
7924       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7925         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7926         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7927       else
7928         ld_shlibs=no
7929       fi
7930       ;;
7931     esac
7932
7933     if test "$ld_shlibs" = yes; then
7934       runpath_var=LD_RUN_PATH
7935       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7936       export_dynamic_flag_spec='${wl}--export-dynamic'
7937       # ancient GNU ld didn't support --whole-archive et. al.
7938       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7939         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7940       else
7941         whole_archive_flag_spec=
7942       fi
7943     fi
7944   else
7945     # PORTME fill in a description of your system's linker (not GNU ld)
7946     case $host_os in
7947     aix3*)
7948       allow_undefined_flag=unsupported
7949       always_export_symbols=yes
7950       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'
7951       # Note: this linker hardcodes the directories in LIBPATH if there
7952       # are no directories specified by -L.
7953       hardcode_minus_L=yes
7954       if test "$GCC" = yes && test -z "$link_static_flag"; then
7955         # Neither direct hardcoding nor static linking is supported with a
7956         # broken collect2.
7957         hardcode_direct=unsupported
7958       fi
7959       ;;
7960
7961     aix4* | aix5*)
7962       if test "$host_cpu" = ia64; then
7963         # On IA64, the linker does run time linking by default, so we don't
7964         # have to do anything special.
7965         aix_use_runtimelinking=no
7966         exp_sym_flag='-Bexport'
7967         no_entry_flag=""
7968       else
7969         # If we're using GNU nm, then we don't want the "-C" option.
7970         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7971         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7972           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'
7973         else
7974           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'
7975         fi
7976         aix_use_runtimelinking=no
7977
7978         # Test if we are trying to use run time linking or normal
7979         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7980         # need to do runtime linking.
7981         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7982           for ld_flag in $LDFLAGS; do
7983           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7984             aix_use_runtimelinking=yes
7985             break
7986           fi
7987           done
7988         esac
7989
7990         exp_sym_flag='-bexport'
7991         no_entry_flag='-bnoentry'
7992       fi
7993
7994       # When large executables or shared objects are built, AIX ld can
7995       # have problems creating the table of contents.  If linking a library
7996       # or program results in "error TOC overflow" add -mminimal-toc to
7997       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7998       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7999
8000       archive_cmds=''
8001       hardcode_direct=yes
8002       hardcode_libdir_separator=':'
8003       link_all_deplibs=yes
8004
8005       if test "$GCC" = yes; then
8006         case $host_os in aix4.012|aix4.012.*)
8007         # We only want to do this on AIX 4.2 and lower, the check
8008         # below for broken collect2 doesn't work under 4.3+
8009           collect2name=`${CC} -print-prog-name=collect2`
8010           if test -f "$collect2name" && \
8011            strings "$collect2name" | grep resolve_lib_name >/dev/null
8012           then
8013           # We have reworked collect2
8014           hardcode_direct=yes
8015           else
8016           # We have old collect2
8017           hardcode_direct=unsupported
8018           # It fails to find uninstalled libraries when the uninstalled
8019           # path is not listed in the libpath.  Setting hardcode_minus_L
8020           # to unsupported forces relinking
8021           hardcode_minus_L=yes
8022           hardcode_libdir_flag_spec='-L$libdir'
8023           hardcode_libdir_separator=
8024           fi
8025         esac
8026         shared_flag='-shared'
8027       else
8028         # not using gcc
8029         if test "$host_cpu" = ia64; then
8030         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8031         # chokes on -Wl,-G. The following line is correct:
8032           shared_flag='-G'
8033         else
8034         if test "$aix_use_runtimelinking" = yes; then
8035             shared_flag='${wl}-G'
8036           else
8037             shared_flag='${wl}-bM:SRE'
8038         fi
8039         fi
8040       fi
8041
8042       # It seems that -bexpall does not export symbols beginning with
8043       # underscore (_), so it is better to generate a list of symbols to export.
8044       always_export_symbols=yes
8045       if test "$aix_use_runtimelinking" = yes; then
8046         # Warning - without using the other runtime loading flags (-brtl),
8047         # -berok will link without error, but may produce a broken library.
8048         allow_undefined_flag='-berok'
8049        # Determine the default libpath from the value encoded in an empty executable.
8050        cat >conftest.$ac_ext <<_ACEOF
8051 /* confdefs.h.  */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h.  */
8056
8057 int
8058 main ()
8059 {
8060
8061   ;
8062   return 0;
8063 }
8064 _ACEOF
8065 rm -f conftest.$ac_objext conftest$ac_exeext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8067   (eval $ac_link) 2>conftest.er1
8068   ac_status=$?
8069   grep -v '^ *+' conftest.er1 >conftest.err
8070   rm -f conftest.er1
8071   cat conftest.err >&5
8072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073   (exit $ac_status); } &&
8074          { ac_try='test -z "$ac_c_werror_flag"
8075                          || test ! -s conftest.err'
8076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077   (eval $ac_try) 2>&5
8078   ac_status=$?
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); }; } &&
8081          { ac_try='test -s conftest$ac_exeext'
8082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083   (eval $ac_try) 2>&5
8084   ac_status=$?
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); }; }; then
8087
8088 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8089 }'`
8090 # Check for a 64-bit object if we didn't find anything.
8091 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; }
8092 }'`; fi
8093 else
8094   echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8096
8097 fi
8098 rm -f conftest.err conftest.$ac_objext \
8099       conftest$ac_exeext conftest.$ac_ext
8100 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8101
8102        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8103         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8104        else
8105         if test "$host_cpu" = ia64; then
8106           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8107           allow_undefined_flag="-z nodefs"
8108           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8109         else
8110          # Determine the default libpath from the value encoded in an empty executable.
8111          cat >conftest.$ac_ext <<_ACEOF
8112 /* confdefs.h.  */
8113 _ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h.  */
8117
8118 int
8119 main ()
8120 {
8121
8122   ;
8123   return 0;
8124 }
8125 _ACEOF
8126 rm -f conftest.$ac_objext conftest$ac_exeext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8128   (eval $ac_link) 2>conftest.er1
8129   ac_status=$?
8130   grep -v '^ *+' conftest.er1 >conftest.err
8131   rm -f conftest.er1
8132   cat conftest.err >&5
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); } &&
8135          { ac_try='test -z "$ac_c_werror_flag"
8136                          || test ! -s conftest.err'
8137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138   (eval $ac_try) 2>&5
8139   ac_status=$?
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); }; } &&
8142          { ac_try='test -s conftest$ac_exeext'
8143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144   (eval $ac_try) 2>&5
8145   ac_status=$?
8146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); }; }; then
8148
8149 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8150 }'`
8151 # Check for a 64-bit object if we didn't find anything.
8152 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; }
8153 }'`; fi
8154 else
8155   echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8157
8158 fi
8159 rm -f conftest.err conftest.$ac_objext \
8160       conftest$ac_exeext conftest.$ac_ext
8161 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8162
8163          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8164           # Warning - without using the other run time loading flags,
8165           # -berok will link without error, but may produce a broken library.
8166           no_undefined_flag=' ${wl}-bernotok'
8167           allow_undefined_flag=' ${wl}-berok'
8168           # -bexpall does not export symbols beginning with underscore (_)
8169           always_export_symbols=yes
8170           # Exported symbols can be pulled into shared objects from archives
8171           whole_archive_flag_spec=' '
8172           archive_cmds_need_lc=yes
8173           # This is similar to how AIX traditionally builds it's shared libraries.
8174           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8175         fi
8176       fi
8177       ;;
8178
8179     amigaos*)
8180       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)'
8181       hardcode_libdir_flag_spec='-L$libdir'
8182       hardcode_minus_L=yes
8183       # see comment about different semantics on the GNU ld section
8184       ld_shlibs=no
8185       ;;
8186
8187     bsdi4*)
8188       export_dynamic_flag_spec=-rdynamic
8189       ;;
8190
8191     cygwin* | mingw* | pw32*)
8192       # When not using gcc, we currently assume that we are using
8193       # Microsoft Visual C++.
8194       # hardcode_libdir_flag_spec is actually meaningless, as there is
8195       # no search path for DLLs.
8196       hardcode_libdir_flag_spec=' '
8197       allow_undefined_flag=unsupported
8198       # Tell ltmain to make .lib files, not .a files.
8199       libext=lib
8200       # Tell ltmain to make .dll files, not .so files.
8201       shrext_cmds=".dll"
8202       # FIXME: Setting linknames here is a bad hack.
8203       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8204       # The linker will automatically build a .lib file if we build a DLL.
8205       old_archive_From_new_cmds='true'
8206       # FIXME: Should let the user specify the lib program.
8207       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8208       fix_srcfile_path='`cygpath -w "$srcfile"`'
8209       enable_shared_with_static_runtimes=yes
8210       ;;
8211
8212     darwin* | rhapsody*)
8213     if test "$GXX" = yes ; then
8214       archive_cmds_need_lc=no
8215       case "$host_os" in
8216       rhapsody* | darwin1.[012])
8217         allow_undefined_flag='-undefined suppress'
8218         ;;
8219       *) # Darwin 1.3 on
8220       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8221         allow_undefined_flag='-flat_namespace -undefined suppress'
8222       else
8223         case ${MACOSX_DEPLOYMENT_TARGET} in
8224           10.[012])
8225             allow_undefined_flag='-flat_namespace -undefined suppress'
8226             ;;
8227           10.*)
8228             allow_undefined_flag='-undefined dynamic_lookup'
8229             ;;
8230         esac
8231       fi
8232         ;;
8233       esac
8234         lt_int_apple_cc_single_mod=no
8235         output_verbose_link_cmd='echo'
8236         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8237           lt_int_apple_cc_single_mod=yes
8238         fi
8239         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8240           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8241         else
8242         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8243       fi
8244       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8245       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8246         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8247           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8248         else
8249           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8250         fi
8251           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}'
8252       hardcode_direct=no
8253       hardcode_automatic=yes
8254       hardcode_shlibpath_var=unsupported
8255       whole_archive_flag_spec='-all_load $convenience'
8256       link_all_deplibs=yes
8257     else
8258       ld_shlibs=no
8259     fi
8260       ;;
8261
8262     dgux*)
8263       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8264       hardcode_libdir_flag_spec='-L$libdir'
8265       hardcode_shlibpath_var=no
8266       ;;
8267
8268     freebsd1*)
8269       ld_shlibs=no
8270       ;;
8271
8272     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8273     # support.  Future versions do this automatically, but an explicit c++rt0.o
8274     # does not break anything, and helps significantly (at the cost of a little
8275     # extra space).
8276     freebsd2.2*)
8277       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8278       hardcode_libdir_flag_spec='-R$libdir'
8279       hardcode_direct=yes
8280       hardcode_shlibpath_var=no
8281       ;;
8282
8283     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8284     freebsd2*)
8285       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8286       hardcode_direct=yes
8287       hardcode_minus_L=yes
8288       hardcode_shlibpath_var=no
8289       ;;
8290
8291     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8292     freebsd* | kfreebsd*-gnu)
8293       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8294       hardcode_libdir_flag_spec='-R$libdir'
8295       hardcode_direct=yes
8296       hardcode_shlibpath_var=no
8297       ;;
8298
8299     hpux9*)
8300       if test "$GCC" = yes; then
8301         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'
8302       else
8303         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'
8304       fi
8305       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8306       hardcode_libdir_separator=:
8307       hardcode_direct=yes
8308
8309       # hardcode_minus_L: Not really in the search PATH,
8310       # but as the default location of the library.
8311       hardcode_minus_L=yes
8312       export_dynamic_flag_spec='${wl}-E'
8313       ;;
8314
8315     hpux10* | hpux11*)
8316       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8317         case "$host_cpu" in
8318         hppa*64*|ia64*)
8319           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8320           ;;
8321         *)
8322           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8323           ;;
8324         esac
8325       else
8326         case "$host_cpu" in
8327         hppa*64*|ia64*)
8328           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8329           ;;
8330         *)
8331           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8332           ;;
8333         esac
8334       fi
8335       if test "$with_gnu_ld" = no; then
8336         case "$host_cpu" in
8337         hppa*64*)
8338           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8339           hardcode_libdir_flag_spec_ld='+b $libdir'
8340           hardcode_libdir_separator=:
8341           hardcode_direct=no
8342           hardcode_shlibpath_var=no
8343           ;;
8344         ia64*)
8345           hardcode_libdir_flag_spec='-L$libdir'
8346           hardcode_direct=no
8347           hardcode_shlibpath_var=no
8348
8349           # hardcode_minus_L: Not really in the search PATH,
8350           # but as the default location of the library.
8351           hardcode_minus_L=yes
8352           ;;
8353         *)
8354           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8355           hardcode_libdir_separator=:
8356           hardcode_direct=yes
8357           export_dynamic_flag_spec='${wl}-E'
8358
8359           # hardcode_minus_L: Not really in the search PATH,
8360           # but as the default location of the library.
8361           hardcode_minus_L=yes
8362           ;;
8363         esac
8364       fi
8365       ;;
8366
8367     irix5* | irix6* | nonstopux*)
8368       if test "$GCC" = yes; then
8369         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'
8370       else
8371         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'
8372         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8373       fi
8374       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8375       hardcode_libdir_separator=:
8376       link_all_deplibs=yes
8377       ;;
8378
8379     netbsd*)
8380       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8381         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8382       else
8383         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8384       fi
8385       hardcode_libdir_flag_spec='-R$libdir'
8386       hardcode_direct=yes
8387       hardcode_shlibpath_var=no
8388       ;;
8389
8390     newsos6)
8391       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8392       hardcode_direct=yes
8393       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8394       hardcode_libdir_separator=:
8395       hardcode_shlibpath_var=no
8396       ;;
8397
8398     openbsd*)
8399       hardcode_direct=yes
8400       hardcode_shlibpath_var=no
8401       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8402         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8403         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8404         export_dynamic_flag_spec='${wl}-E'
8405       else
8406        case $host_os in
8407          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8408            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8409            hardcode_libdir_flag_spec='-R$libdir'
8410            ;;
8411          *)
8412            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8413            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8414            ;;
8415        esac
8416       fi
8417       ;;
8418
8419     os2*)
8420       hardcode_libdir_flag_spec='-L$libdir'
8421       hardcode_minus_L=yes
8422       allow_undefined_flag=unsupported
8423       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'
8424       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8425       ;;
8426
8427     osf3*)
8428       if test "$GCC" = yes; then
8429         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8430         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'
8431       else
8432         allow_undefined_flag=' -expect_unresolved \*'
8433         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'
8434       fi
8435       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8436       hardcode_libdir_separator=:
8437       ;;
8438
8439     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8440       if test "$GCC" = yes; then
8441         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8442         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'
8443         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8444       else
8445         allow_undefined_flag=' -expect_unresolved \*'
8446         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'
8447         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8448         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8449
8450         # Both c and cxx compiler support -rpath directly
8451         hardcode_libdir_flag_spec='-rpath $libdir'
8452       fi
8453       hardcode_libdir_separator=:
8454       ;;
8455
8456     sco3.2v5*)
8457       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8458       hardcode_shlibpath_var=no
8459       export_dynamic_flag_spec='${wl}-Bexport'
8460       runpath_var=LD_RUN_PATH
8461       hardcode_runpath_var=yes
8462       ;;
8463
8464     solaris*)
8465       no_undefined_flag=' -z text'
8466       if test "$GCC" = yes; then
8467         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8468         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8469           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8470       else
8471         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8472         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8473         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8474       fi
8475       hardcode_libdir_flag_spec='-R$libdir'
8476       hardcode_shlibpath_var=no
8477       case $host_os in
8478       solaris2.[0-5] | solaris2.[0-5].*) ;;
8479       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8480         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8481       esac
8482       link_all_deplibs=yes
8483       ;;
8484
8485     sunos4*)
8486       if test "x$host_vendor" = xsequent; then
8487         # Use $CC to link under sequent, because it throws in some extra .o
8488         # files that make .init and .fini sections work.
8489         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8490       else
8491         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8492       fi
8493       hardcode_libdir_flag_spec='-L$libdir'
8494       hardcode_direct=yes
8495       hardcode_minus_L=yes
8496       hardcode_shlibpath_var=no
8497       ;;
8498
8499     sysv4)
8500       case $host_vendor in
8501         sni)
8502           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8503           hardcode_direct=yes # is this really true???
8504         ;;
8505         siemens)
8506           ## LD is ld it makes a PLAMLIB
8507           ## CC just makes a GrossModule.
8508           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8509           reload_cmds='$CC -r -o $output$reload_objs'
8510           hardcode_direct=no
8511         ;;
8512         motorola)
8513           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8514           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8515         ;;
8516       esac
8517       runpath_var='LD_RUN_PATH'
8518       hardcode_shlibpath_var=no
8519       ;;
8520
8521     sysv4.3*)
8522       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8523       hardcode_shlibpath_var=no
8524       export_dynamic_flag_spec='-Bexport'
8525       ;;
8526
8527     sysv4*MP*)
8528       if test -d /usr/nec; then
8529         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8530         hardcode_shlibpath_var=no
8531         runpath_var=LD_RUN_PATH
8532         hardcode_runpath_var=yes
8533         ld_shlibs=yes
8534       fi
8535       ;;
8536
8537     sysv4.2uw2*)
8538       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8539       hardcode_direct=yes
8540       hardcode_minus_L=no
8541       hardcode_shlibpath_var=no
8542       hardcode_runpath_var=yes
8543       runpath_var=LD_RUN_PATH
8544       ;;
8545
8546    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8547       no_undefined_flag='${wl}-z ${wl}text'
8548       if test "$GCC" = yes; then
8549         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8550       else
8551         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8552       fi
8553       runpath_var='LD_RUN_PATH'
8554       hardcode_shlibpath_var=no
8555       ;;
8556
8557     sysv5*)
8558       no_undefined_flag=' -z text'
8559       # $CC -shared without GNU ld will not create a library from C++
8560       # object files and a static libstdc++, better avoid it by now
8561       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8562       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8563                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8564       hardcode_libdir_flag_spec=
8565       hardcode_shlibpath_var=no
8566       runpath_var='LD_RUN_PATH'
8567       ;;
8568
8569     uts4*)
8570       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8571       hardcode_libdir_flag_spec='-L$libdir'
8572       hardcode_shlibpath_var=no
8573       ;;
8574
8575     *)
8576       ld_shlibs=no
8577       ;;
8578     esac
8579   fi
8580
8581 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8582 echo "${ECHO_T}$ld_shlibs" >&6
8583 test "$ld_shlibs" = no && can_build_shared=no
8584
8585 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8586 if test "$GCC" = yes; then
8587   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8588 fi
8589
8590 #
8591 # Do we need to explicitly link libc?
8592 #
8593 case "x$archive_cmds_need_lc" in
8594 x|xyes)
8595   # Assume -lc should be added
8596   archive_cmds_need_lc=yes
8597
8598   if test "$enable_shared" = yes && test "$GCC" = yes; then
8599     case $archive_cmds in
8600     *'~'*)
8601       # FIXME: we may have to deal with multi-command sequences.
8602       ;;
8603     '$CC '*)
8604       # Test whether the compiler implicitly links with -lc since on some
8605       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8606       # to ld, don't add -lc before -lgcc.
8607       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8608 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8609       $rm conftest*
8610       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8611
8612       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8613   (eval $ac_compile) 2>&5
8614   ac_status=$?
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); } 2>conftest.err; then
8617         soname=conftest
8618         lib=conftest
8619         libobjs=conftest.$ac_objext
8620         deplibs=
8621         wl=$lt_prog_compiler_wl
8622         compiler_flags=-v
8623         linker_flags=-v
8624         verstring=
8625         output_objdir=.
8626         libname=conftest
8627         lt_save_allow_undefined_flag=$allow_undefined_flag
8628         allow_undefined_flag=
8629         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8630   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); }
8634         then
8635           archive_cmds_need_lc=no
8636         else
8637           archive_cmds_need_lc=yes
8638         fi
8639         allow_undefined_flag=$lt_save_allow_undefined_flag
8640       else
8641         cat conftest.err 1>&5
8642       fi
8643       $rm conftest*
8644       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8645 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8646       ;;
8647     esac
8648   fi
8649   ;;
8650 esac
8651
8652 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8653 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8654 library_names_spec=
8655 libname_spec='lib$name'
8656 soname_spec=
8657 shrext_cmds=".so"
8658 postinstall_cmds=
8659 postuninstall_cmds=
8660 finish_cmds=
8661 finish_eval=
8662 shlibpath_var=
8663 shlibpath_overrides_runpath=unknown
8664 version_type=none
8665 dynamic_linker="$host_os ld.so"
8666 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8667 if test "$GCC" = yes; then
8668   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8669   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8670     # if the path contains ";" then we assume it to be the separator
8671     # otherwise default to the standard path separator (i.e. ":") - it is
8672     # assumed that no part of a normal pathname contains ";" but that should
8673     # okay in the real world where ";" in dirpaths is itself problematic.
8674     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8675   else
8676     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8677   fi
8678 else
8679   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8680 fi
8681 need_lib_prefix=unknown
8682 hardcode_into_libs=no
8683
8684 # when you set need_version to no, make sure it does not cause -set_version
8685 # flags to be left without arguments
8686 need_version=unknown
8687
8688 case $host_os in
8689 aix3*)
8690   version_type=linux
8691   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8692   shlibpath_var=LIBPATH
8693
8694   # AIX 3 has no versioning support, so we append a major version to the name.
8695   soname_spec='${libname}${release}${shared_ext}$major'
8696   ;;
8697
8698 aix4* | aix5*)
8699   version_type=linux
8700   need_lib_prefix=no
8701   need_version=no
8702   hardcode_into_libs=yes
8703   if test "$host_cpu" = ia64; then
8704     # AIX 5 supports IA64
8705     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8706     shlibpath_var=LD_LIBRARY_PATH
8707   else
8708     # With GCC up to 2.95.x, collect2 would create an import file
8709     # for dependence libraries.  The import file would start with
8710     # the line `#! .'.  This would cause the generated library to
8711     # depend on `.', always an invalid library.  This was fixed in
8712     # development snapshots of GCC prior to 3.0.
8713     case $host_os in
8714       aix4 | aix4.[01] | aix4.[01].*)
8715       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8716            echo ' yes '
8717            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8718         :
8719       else
8720         can_build_shared=no
8721       fi
8722       ;;
8723     esac
8724     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8725     # soname into executable. Probably we can add versioning support to
8726     # collect2, so additional links can be useful in future.
8727     if test "$aix_use_runtimelinking" = yes; then
8728       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8729       # instead of lib<name>.a to let people know that these are not
8730       # typical AIX shared libraries.
8731       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8732     else
8733       # We preserve .a as extension for shared libraries through AIX4.2
8734       # and later when we are not doing run time linking.
8735       library_names_spec='${libname}${release}.a $libname.a'
8736       soname_spec='${libname}${release}${shared_ext}$major'
8737     fi
8738     shlibpath_var=LIBPATH
8739   fi
8740   ;;
8741
8742 amigaos*)
8743   library_names_spec='$libname.ixlibrary $libname.a'
8744   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8745   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'
8746   ;;
8747
8748 beos*)
8749   library_names_spec='${libname}${shared_ext}'
8750   dynamic_linker="$host_os ld.so"
8751   shlibpath_var=LIBRARY_PATH
8752   ;;
8753
8754 bsdi4*)
8755   version_type=linux
8756   need_version=no
8757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8758   soname_spec='${libname}${release}${shared_ext}$major'
8759   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8760   shlibpath_var=LD_LIBRARY_PATH
8761   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8762   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8763   # the default ld.so.conf also contains /usr/contrib/lib and
8764   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8765   # libtool to hard-code these into programs
8766   ;;
8767
8768 cygwin* | mingw* | pw32*)
8769   version_type=windows
8770   shrext_cmds=".dll"
8771   need_version=no
8772   need_lib_prefix=no
8773
8774   case $GCC,$host_os in
8775   yes,cygwin* | yes,mingw* | yes,pw32*)
8776     library_names_spec='$libname.dll.a'
8777     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8778     postinstall_cmds='base_file=`basename \${file}`~
8779       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8780       dldir=$destdir/`dirname \$dlpath`~
8781       test -d \$dldir || mkdir -p \$dldir~
8782       $install_prog $dir/$dlname \$dldir/$dlname'
8783     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8784       dlpath=$dir/\$dldll~
8785        $rm \$dlpath'
8786     shlibpath_overrides_runpath=yes
8787
8788     case $host_os in
8789     cygwin*)
8790       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8791       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8792       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8793       ;;
8794     mingw*)
8795       # MinGW DLLs use traditional 'lib' prefix
8796       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8797       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8798       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8799         # It is most probably a Windows format PATH printed by
8800         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8801         # path with ; separators, and with drive letters. We can handle the
8802         # drive letters (cygwin fileutils understands them), so leave them,
8803         # especially as we might pass files found there to a mingw objdump,
8804         # which wouldn't understand a cygwinified path. Ahh.
8805         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8806       else
8807         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8808       fi
8809       ;;
8810     pw32*)
8811       # pw32 DLLs use 'pw' prefix rather than 'lib'
8812       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8813       ;;
8814     esac
8815     ;;
8816
8817   *)
8818     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8819     ;;
8820   esac
8821   dynamic_linker='Win32 ld.exe'
8822   # FIXME: first we should search . and the directory the executable is in
8823   shlibpath_var=PATH
8824   ;;
8825
8826 darwin* | rhapsody*)
8827   dynamic_linker="$host_os dyld"
8828   version_type=darwin
8829   need_lib_prefix=no
8830   need_version=no
8831   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8832   soname_spec='${libname}${release}${major}$shared_ext'
8833   shlibpath_overrides_runpath=yes
8834   shlibpath_var=DYLD_LIBRARY_PATH
8835   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8836   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8837   if test "$GCC" = yes; then
8838     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"`
8839   else
8840     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8841   fi
8842   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8843   ;;
8844
8845 dgux*)
8846   version_type=linux
8847   need_lib_prefix=no
8848   need_version=no
8849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8850   soname_spec='${libname}${release}${shared_ext}$major'
8851   shlibpath_var=LD_LIBRARY_PATH
8852   ;;
8853
8854 freebsd1*)
8855   dynamic_linker=no
8856   ;;
8857
8858 kfreebsd*-gnu)
8859   version_type=linux
8860   need_lib_prefix=no
8861   need_version=no
8862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8863   soname_spec='${libname}${release}${shared_ext}$major'
8864   shlibpath_var=LD_LIBRARY_PATH
8865   shlibpath_overrides_runpath=no
8866   hardcode_into_libs=yes
8867   dynamic_linker='GNU ld.so'
8868   ;;
8869
8870 freebsd*)
8871   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8872   version_type=freebsd-$objformat
8873   case $version_type in
8874     freebsd-elf*)
8875       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8876       need_version=no
8877       need_lib_prefix=no
8878       ;;
8879     freebsd-*)
8880       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8881       need_version=yes
8882       ;;
8883   esac
8884   shlibpath_var=LD_LIBRARY_PATH
8885   case $host_os in
8886   freebsd2*)
8887     shlibpath_overrides_runpath=yes
8888     ;;
8889   freebsd3.01* | freebsdelf3.01*)
8890     shlibpath_overrides_runpath=yes
8891     hardcode_into_libs=yes
8892     ;;
8893   *) # from 3.2 on
8894     shlibpath_overrides_runpath=no
8895     hardcode_into_libs=yes
8896     ;;
8897   esac
8898   ;;
8899
8900 gnu*)
8901   version_type=linux
8902   need_lib_prefix=no
8903   need_version=no
8904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8905   soname_spec='${libname}${release}${shared_ext}$major'
8906   shlibpath_var=LD_LIBRARY_PATH
8907   hardcode_into_libs=yes
8908   ;;
8909
8910 hpux9* | hpux10* | hpux11*)
8911   # Give a soname corresponding to the major version so that dld.sl refuses to
8912   # link against other versions.
8913   version_type=sunos
8914   need_lib_prefix=no
8915   need_version=no
8916   case "$host_cpu" in
8917   ia64*)
8918     shrext_cmds='.so'
8919     hardcode_into_libs=yes
8920     dynamic_linker="$host_os dld.so"
8921     shlibpath_var=LD_LIBRARY_PATH
8922     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8923     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924     soname_spec='${libname}${release}${shared_ext}$major'
8925     if test "X$HPUX_IA64_MODE" = X32; then
8926       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8927     else
8928       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8929     fi
8930     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8931     ;;
8932    hppa*64*)
8933      shrext_cmds='.sl'
8934      hardcode_into_libs=yes
8935      dynamic_linker="$host_os dld.sl"
8936      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8937      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8938      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8939      soname_spec='${libname}${release}${shared_ext}$major'
8940      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8941      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8942      ;;
8943    *)
8944     shrext_cmds='.sl'
8945     dynamic_linker="$host_os dld.sl"
8946     shlibpath_var=SHLIB_PATH
8947     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8948     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949     soname_spec='${libname}${release}${shared_ext}$major'
8950     ;;
8951   esac
8952   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8953   postinstall_cmds='chmod 555 $lib'
8954   ;;
8955
8956 irix5* | irix6* | nonstopux*)
8957   case $host_os in
8958     nonstopux*) version_type=nonstopux ;;
8959     *)
8960         if test "$lt_cv_prog_gnu_ld" = yes; then
8961                 version_type=linux
8962         else
8963                 version_type=irix
8964         fi ;;
8965   esac
8966   need_lib_prefix=no
8967   need_version=no
8968   soname_spec='${libname}${release}${shared_ext}$major'
8969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8970   case $host_os in
8971   irix5* | nonstopux*)
8972     libsuff= shlibsuff=
8973     ;;
8974   *)
8975     case $LD in # libtool.m4 will add one of these switches to LD
8976     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8977       libsuff= shlibsuff= libmagic=32-bit;;
8978     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8979       libsuff=32 shlibsuff=N32 libmagic=N32;;
8980     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8981       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8982     *) libsuff= shlibsuff= libmagic=never-match;;
8983     esac
8984     ;;
8985   esac
8986   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8987   shlibpath_overrides_runpath=no
8988   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8989   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8990   hardcode_into_libs=yes
8991   ;;
8992
8993 # No shared lib support for Linux oldld, aout, or coff.
8994 linux*oldld* | linux*aout* | linux*coff*)
8995   dynamic_linker=no
8996   ;;
8997
8998 # This must be Linux ELF.
8999 linux*)
9000   version_type=linux
9001   need_lib_prefix=no
9002   need_version=no
9003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9004   soname_spec='${libname}${release}${shared_ext}$major'
9005   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9006   shlibpath_var=LD_LIBRARY_PATH
9007   shlibpath_overrides_runpath=no
9008   # This implies no fast_install, which is unacceptable.
9009   # Some rework will be needed to allow for fast_install
9010   # before this can be enabled.
9011   hardcode_into_libs=yes
9012
9013   # find out which ABI we are using
9014   libsuff=
9015   case "$host_cpu" in
9016   x86_64*|s390x*|powerpc64*)
9017     echo '#line 9017 "configure"' > conftest.$ac_ext
9018     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9019   (eval $ac_compile) 2>&5
9020   ac_status=$?
9021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022   (exit $ac_status); }; then
9023       case `/usr/bin/file conftest.$ac_objext` in
9024       *64-bit*)
9025         libsuff=64
9026         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9027         ;;
9028       esac
9029     fi
9030     rm -rf conftest*
9031     ;;
9032   esac
9033
9034   # Append ld.so.conf contents to the search path
9035   if test -f /etc/ld.so.conf; then
9036     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9037     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9038   fi
9039
9040   # We used to test for /lib/ld.so.1 and disable shared libraries on
9041   # powerpc, because MkLinux only supported shared libraries with the
9042   # GNU dynamic linker.  Since this was broken with cross compilers,
9043   # most powerpc-linux boxes support dynamic linking these days and
9044   # people can always --disable-shared, the test was removed, and we
9045   # assume the GNU/Linux dynamic linker is in use.
9046   dynamic_linker='GNU/Linux ld.so'
9047   ;;
9048
9049 knetbsd*-gnu)
9050   version_type=linux
9051   need_lib_prefix=no
9052   need_version=no
9053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9054   soname_spec='${libname}${release}${shared_ext}$major'
9055   shlibpath_var=LD_LIBRARY_PATH
9056   shlibpath_overrides_runpath=no
9057   hardcode_into_libs=yes
9058   dynamic_linker='GNU ld.so'
9059   ;;
9060
9061 netbsd*)
9062   version_type=sunos
9063   need_lib_prefix=no
9064   need_version=no
9065   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9066     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9067     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9068     dynamic_linker='NetBSD (a.out) ld.so'
9069   else
9070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9071     soname_spec='${libname}${release}${shared_ext}$major'
9072     dynamic_linker='NetBSD ld.elf_so'
9073   fi
9074   shlibpath_var=LD_LIBRARY_PATH
9075   shlibpath_overrides_runpath=yes
9076   hardcode_into_libs=yes
9077   ;;
9078
9079 newsos6)
9080   version_type=linux
9081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082   shlibpath_var=LD_LIBRARY_PATH
9083   shlibpath_overrides_runpath=yes
9084   ;;
9085
9086 nto-qnx*)
9087   version_type=linux
9088   need_lib_prefix=no
9089   need_version=no
9090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091   soname_spec='${libname}${release}${shared_ext}$major'
9092   shlibpath_var=LD_LIBRARY_PATH
9093   shlibpath_overrides_runpath=yes
9094   ;;
9095
9096 openbsd*)
9097   version_type=sunos
9098   need_lib_prefix=no
9099   need_version=yes
9100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9101   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9102   shlibpath_var=LD_LIBRARY_PATH
9103   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9104     case $host_os in
9105       openbsd2.[89] | openbsd2.[89].*)
9106         shlibpath_overrides_runpath=no
9107         ;;
9108       *)
9109         shlibpath_overrides_runpath=yes
9110         ;;
9111       esac
9112   else
9113     shlibpath_overrides_runpath=yes
9114   fi
9115   ;;
9116
9117 os2*)
9118   libname_spec='$name'
9119   shrext_cmds=".dll"
9120   need_lib_prefix=no
9121   library_names_spec='$libname${shared_ext} $libname.a'
9122   dynamic_linker='OS/2 ld.exe'
9123   shlibpath_var=LIBPATH
9124   ;;
9125
9126 osf3* | osf4* | osf5*)
9127   version_type=osf
9128   need_lib_prefix=no
9129   need_version=no
9130   soname_spec='${libname}${release}${shared_ext}$major'
9131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132   shlibpath_var=LD_LIBRARY_PATH
9133   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9134   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9135   ;;
9136
9137 sco3.2v5*)
9138   version_type=osf
9139   soname_spec='${libname}${release}${shared_ext}$major'
9140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141   shlibpath_var=LD_LIBRARY_PATH
9142   ;;
9143
9144 solaris*)
9145   version_type=linux
9146   need_lib_prefix=no
9147   need_version=no
9148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9149   soname_spec='${libname}${release}${shared_ext}$major'
9150   shlibpath_var=LD_LIBRARY_PATH
9151   shlibpath_overrides_runpath=yes
9152   hardcode_into_libs=yes
9153   # ldd complains unless libraries are executable
9154   postinstall_cmds='chmod +x $lib'
9155   ;;
9156
9157 sunos4*)
9158   version_type=sunos
9159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9160   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9161   shlibpath_var=LD_LIBRARY_PATH
9162   shlibpath_overrides_runpath=yes
9163   if test "$with_gnu_ld" = yes; then
9164     need_lib_prefix=no
9165   fi
9166   need_version=yes
9167   ;;
9168
9169 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9170   version_type=linux
9171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9172   soname_spec='${libname}${release}${shared_ext}$major'
9173   shlibpath_var=LD_LIBRARY_PATH
9174   case $host_vendor in
9175     sni)
9176       shlibpath_overrides_runpath=no
9177       need_lib_prefix=no
9178       export_dynamic_flag_spec='${wl}-Blargedynsym'
9179       runpath_var=LD_RUN_PATH
9180       ;;
9181     siemens)
9182       need_lib_prefix=no
9183       ;;
9184     motorola)
9185       need_lib_prefix=no
9186       need_version=no
9187       shlibpath_overrides_runpath=no
9188       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9189       ;;
9190   esac
9191   ;;
9192
9193 sysv4*MP*)
9194   if test -d /usr/nec ;then
9195     version_type=linux
9196     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9197     soname_spec='$libname${shared_ext}.$major'
9198     shlibpath_var=LD_LIBRARY_PATH
9199   fi
9200   ;;
9201
9202 uts4*)
9203   version_type=linux
9204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9205   soname_spec='${libname}${release}${shared_ext}$major'
9206   shlibpath_var=LD_LIBRARY_PATH
9207   ;;
9208
9209 *)
9210   dynamic_linker=no
9211   ;;
9212 esac
9213 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9214 echo "${ECHO_T}$dynamic_linker" >&6
9215 test "$dynamic_linker" = no && can_build_shared=no
9216
9217 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9218 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9219 hardcode_action=
9220 if test -n "$hardcode_libdir_flag_spec" || \
9221    test -n "$runpath_var " || \
9222    test "X$hardcode_automatic"="Xyes" ; then
9223
9224   # We can hardcode non-existant directories.
9225   if test "$hardcode_direct" != no &&
9226      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9227      # have to relink, otherwise we might link with an installed library
9228      # when we should be linking with a yet-to-be-installed one
9229      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9230      test "$hardcode_minus_L" != no; then
9231     # Linking always hardcodes the temporary library directory.
9232     hardcode_action=relink
9233   else
9234     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9235     hardcode_action=immediate
9236   fi
9237 else
9238   # We cannot hardcode anything, or else we can only hardcode existing
9239   # directories.
9240   hardcode_action=unsupported
9241 fi
9242 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9243 echo "${ECHO_T}$hardcode_action" >&6
9244
9245 if test "$hardcode_action" = relink; then
9246   # Fast installation is not supported
9247   enable_fast_install=no
9248 elif test "$shlibpath_overrides_runpath" = yes ||
9249      test "$enable_shared" = no; then
9250   # Fast installation is not necessary
9251   enable_fast_install=needless
9252 fi
9253
9254 striplib=
9255 old_striplib=
9256 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9257 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9258 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9259   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9260   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9261   echo "$as_me:$LINENO: result: yes" >&5
9262 echo "${ECHO_T}yes" >&6
9263 else
9264 # FIXME - insert some real tests, host_os isn't really good enough
9265   case $host_os in
9266    darwin*)
9267        if test -n "$STRIP" ; then
9268          striplib="$STRIP -x"
9269          echo "$as_me:$LINENO: result: yes" >&5
9270 echo "${ECHO_T}yes" >&6
9271        else
9272   echo "$as_me:$LINENO: result: no" >&5
9273 echo "${ECHO_T}no" >&6
9274 fi
9275        ;;
9276    *)
9277   echo "$as_me:$LINENO: result: no" >&5
9278 echo "${ECHO_T}no" >&6
9279     ;;
9280   esac
9281 fi
9282
9283 if test "x$enable_dlopen" != xyes; then
9284   enable_dlopen=unknown
9285   enable_dlopen_self=unknown
9286   enable_dlopen_self_static=unknown
9287 else
9288   lt_cv_dlopen=no
9289   lt_cv_dlopen_libs=
9290
9291   case $host_os in
9292   beos*)
9293     lt_cv_dlopen="load_add_on"
9294     lt_cv_dlopen_libs=
9295     lt_cv_dlopen_self=yes
9296     ;;
9297
9298   mingw* | pw32*)
9299     lt_cv_dlopen="LoadLibrary"
9300     lt_cv_dlopen_libs=
9301    ;;
9302
9303   cygwin*)
9304     lt_cv_dlopen="dlopen"
9305     lt_cv_dlopen_libs=
9306    ;;
9307
9308   darwin*)
9309   # if libdl is installed we need to link against it
9310     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9311 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9312 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9313   echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315   ac_check_lib_save_LIBS=$LIBS
9316 LIBS="-ldl  $LIBS"
9317 cat >conftest.$ac_ext <<_ACEOF
9318 /* confdefs.h.  */
9319 _ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h.  */
9323
9324 /* Override any gcc2 internal prototype to avoid an error.  */
9325 #ifdef __cplusplus
9326 extern "C"
9327 #endif
9328 /* We use char because int might match the return type of a gcc2
9329    builtin and then its argument prototype would still apply.  */
9330 char dlopen ();
9331 int
9332 main ()
9333 {
9334 dlopen ();
9335   ;
9336   return 0;
9337 }
9338 _ACEOF
9339 rm -f conftest.$ac_objext conftest$ac_exeext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9341   (eval $ac_link) 2>conftest.er1
9342   ac_status=$?
9343   grep -v '^ *+' conftest.er1 >conftest.err
9344   rm -f conftest.er1
9345   cat conftest.err >&5
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); } &&
9348          { ac_try='test -z "$ac_c_werror_flag"
9349                          || test ! -s conftest.err'
9350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351   (eval $ac_try) 2>&5
9352   ac_status=$?
9353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); }; } &&
9355          { ac_try='test -s conftest$ac_exeext'
9356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357   (eval $ac_try) 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); }; }; then
9361   ac_cv_lib_dl_dlopen=yes
9362 else
9363   echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9365
9366 ac_cv_lib_dl_dlopen=no
9367 fi
9368 rm -f conftest.err conftest.$ac_objext \
9369       conftest$ac_exeext conftest.$ac_ext
9370 LIBS=$ac_check_lib_save_LIBS
9371 fi
9372 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9373 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9374 if test $ac_cv_lib_dl_dlopen = yes; then
9375   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9376 else
9377
9378     lt_cv_dlopen="dyld"
9379     lt_cv_dlopen_libs=
9380     lt_cv_dlopen_self=yes
9381
9382 fi
9383
9384    ;;
9385
9386   *)
9387     echo "$as_me:$LINENO: checking for shl_load" >&5
9388 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9389 if test "${ac_cv_func_shl_load+set}" = set; then
9390   echo $ECHO_N "(cached) $ECHO_C" >&6
9391 else
9392   cat >conftest.$ac_ext <<_ACEOF
9393 /* confdefs.h.  */
9394 _ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h.  */
9398 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9400 #define shl_load innocuous_shl_load
9401
9402 /* System header to define __stub macros and hopefully few prototypes,
9403     which can conflict with char shl_load (); below.
9404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9405     <limits.h> exists even on freestanding compilers.  */
9406
9407 #ifdef __STDC__
9408 # include <limits.h>
9409 #else
9410 # include <assert.h>
9411 #endif
9412
9413 #undef shl_load
9414
9415 /* Override any gcc2 internal prototype to avoid an error.  */
9416 #ifdef __cplusplus
9417 extern "C"
9418 {
9419 #endif
9420 /* We use char because int might match the return type of a gcc2
9421    builtin and then its argument prototype would still apply.  */
9422 char shl_load ();
9423 /* The GNU C library defines this for functions which it implements
9424     to always fail with ENOSYS.  Some functions are actually named
9425     something starting with __ and the normal name is an alias.  */
9426 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9427 choke me
9428 #else
9429 char (*f) () = shl_load;
9430 #endif
9431 #ifdef __cplusplus
9432 }
9433 #endif
9434
9435 int
9436 main ()
9437 {
9438 return f != shl_load;
9439   ;
9440   return 0;
9441 }
9442 _ACEOF
9443 rm -f conftest.$ac_objext conftest$ac_exeext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9445   (eval $ac_link) 2>conftest.er1
9446   ac_status=$?
9447   grep -v '^ *+' conftest.er1 >conftest.err
9448   rm -f conftest.er1
9449   cat conftest.err >&5
9450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451   (exit $ac_status); } &&
9452          { ac_try='test -z "$ac_c_werror_flag"
9453                          || test ! -s conftest.err'
9454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455   (eval $ac_try) 2>&5
9456   ac_status=$?
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); }; } &&
9459          { ac_try='test -s conftest$ac_exeext'
9460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461   (eval $ac_try) 2>&5
9462   ac_status=$?
9463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464   (exit $ac_status); }; }; then
9465   ac_cv_func_shl_load=yes
9466 else
9467   echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9469
9470 ac_cv_func_shl_load=no
9471 fi
9472 rm -f conftest.err conftest.$ac_objext \
9473       conftest$ac_exeext conftest.$ac_ext
9474 fi
9475 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9476 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9477 if test $ac_cv_func_shl_load = yes; then
9478   lt_cv_dlopen="shl_load"
9479 else
9480   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9481 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9482 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9483   echo $ECHO_N "(cached) $ECHO_C" >&6
9484 else
9485   ac_check_lib_save_LIBS=$LIBS
9486 LIBS="-ldld  $LIBS"
9487 cat >conftest.$ac_ext <<_ACEOF
9488 /* confdefs.h.  */
9489 _ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h.  */
9493
9494 /* Override any gcc2 internal prototype to avoid an error.  */
9495 #ifdef __cplusplus
9496 extern "C"
9497 #endif
9498 /* We use char because int might match the return type of a gcc2
9499    builtin and then its argument prototype would still apply.  */
9500 char shl_load ();
9501 int
9502 main ()
9503 {
9504 shl_load ();
9505   ;
9506   return 0;
9507 }
9508 _ACEOF
9509 rm -f conftest.$ac_objext conftest$ac_exeext
9510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9511   (eval $ac_link) 2>conftest.er1
9512   ac_status=$?
9513   grep -v '^ *+' conftest.er1 >conftest.err
9514   rm -f conftest.er1
9515   cat conftest.err >&5
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); } &&
9518          { ac_try='test -z "$ac_c_werror_flag"
9519                          || test ! -s conftest.err'
9520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521   (eval $ac_try) 2>&5
9522   ac_status=$?
9523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524   (exit $ac_status); }; } &&
9525          { ac_try='test -s conftest$ac_exeext'
9526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527   (eval $ac_try) 2>&5
9528   ac_status=$?
9529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530   (exit $ac_status); }; }; then
9531   ac_cv_lib_dld_shl_load=yes
9532 else
9533   echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9535
9536 ac_cv_lib_dld_shl_load=no
9537 fi
9538 rm -f conftest.err conftest.$ac_objext \
9539       conftest$ac_exeext conftest.$ac_ext
9540 LIBS=$ac_check_lib_save_LIBS
9541 fi
9542 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9543 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9544 if test $ac_cv_lib_dld_shl_load = yes; then
9545   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9546 else
9547   echo "$as_me:$LINENO: checking for dlopen" >&5
9548 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9549 if test "${ac_cv_func_dlopen+set}" = set; then
9550   echo $ECHO_N "(cached) $ECHO_C" >&6
9551 else
9552   cat >conftest.$ac_ext <<_ACEOF
9553 /* confdefs.h.  */
9554 _ACEOF
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h.  */
9558 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9560 #define dlopen innocuous_dlopen
9561
9562 /* System header to define __stub macros and hopefully few prototypes,
9563     which can conflict with char dlopen (); below.
9564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9565     <limits.h> exists even on freestanding compilers.  */
9566
9567 #ifdef __STDC__
9568 # include <limits.h>
9569 #else
9570 # include <assert.h>
9571 #endif
9572
9573 #undef dlopen
9574
9575 /* Override any gcc2 internal prototype to avoid an error.  */
9576 #ifdef __cplusplus
9577 extern "C"
9578 {
9579 #endif
9580 /* We use char because int might match the return type of a gcc2
9581    builtin and then its argument prototype would still apply.  */
9582 char dlopen ();
9583 /* The GNU C library defines this for functions which it implements
9584     to always fail with ENOSYS.  Some functions are actually named
9585     something starting with __ and the normal name is an alias.  */
9586 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9587 choke me
9588 #else
9589 char (*f) () = dlopen;
9590 #endif
9591 #ifdef __cplusplus
9592 }
9593 #endif
9594
9595 int
9596 main ()
9597 {
9598 return f != dlopen;
9599   ;
9600   return 0;
9601 }
9602 _ACEOF
9603 rm -f conftest.$ac_objext conftest$ac_exeext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9605   (eval $ac_link) 2>conftest.er1
9606   ac_status=$?
9607   grep -v '^ *+' conftest.er1 >conftest.err
9608   rm -f conftest.er1
9609   cat conftest.err >&5
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); } &&
9612          { ac_try='test -z "$ac_c_werror_flag"
9613                          || test ! -s conftest.err'
9614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615   (eval $ac_try) 2>&5
9616   ac_status=$?
9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618   (exit $ac_status); }; } &&
9619          { ac_try='test -s conftest$ac_exeext'
9620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621   (eval $ac_try) 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); }; }; then
9625   ac_cv_func_dlopen=yes
9626 else
9627   echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9629
9630 ac_cv_func_dlopen=no
9631 fi
9632 rm -f conftest.err conftest.$ac_objext \
9633       conftest$ac_exeext conftest.$ac_ext
9634 fi
9635 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9636 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9637 if test $ac_cv_func_dlopen = yes; then
9638   lt_cv_dlopen="dlopen"
9639 else
9640   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9641 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9642 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9643   echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645   ac_check_lib_save_LIBS=$LIBS
9646 LIBS="-ldl  $LIBS"
9647 cat >conftest.$ac_ext <<_ACEOF
9648 /* confdefs.h.  */
9649 _ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h.  */
9653
9654 /* Override any gcc2 internal prototype to avoid an error.  */
9655 #ifdef __cplusplus
9656 extern "C"
9657 #endif
9658 /* We use char because int might match the return type of a gcc2
9659    builtin and then its argument prototype would still apply.  */
9660 char dlopen ();
9661 int
9662 main ()
9663 {
9664 dlopen ();
9665   ;
9666   return 0;
9667 }
9668 _ACEOF
9669 rm -f conftest.$ac_objext conftest$ac_exeext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9671   (eval $ac_link) 2>conftest.er1
9672   ac_status=$?
9673   grep -v '^ *+' conftest.er1 >conftest.err
9674   rm -f conftest.er1
9675   cat conftest.err >&5
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); } &&
9678          { ac_try='test -z "$ac_c_werror_flag"
9679                          || test ! -s conftest.err'
9680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681   (eval $ac_try) 2>&5
9682   ac_status=$?
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); }; } &&
9685          { ac_try='test -s conftest$ac_exeext'
9686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687   (eval $ac_try) 2>&5
9688   ac_status=$?
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); }; }; then
9691   ac_cv_lib_dl_dlopen=yes
9692 else
9693   echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9695
9696 ac_cv_lib_dl_dlopen=no
9697 fi
9698 rm -f conftest.err conftest.$ac_objext \
9699       conftest$ac_exeext conftest.$ac_ext
9700 LIBS=$ac_check_lib_save_LIBS
9701 fi
9702 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9703 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9704 if test $ac_cv_lib_dl_dlopen = yes; then
9705   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9706 else
9707   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9708 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9709 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9710   echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712   ac_check_lib_save_LIBS=$LIBS
9713 LIBS="-lsvld  $LIBS"
9714 cat >conftest.$ac_ext <<_ACEOF
9715 /* confdefs.h.  */
9716 _ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h.  */
9720
9721 /* Override any gcc2 internal prototype to avoid an error.  */
9722 #ifdef __cplusplus
9723 extern "C"
9724 #endif
9725 /* We use char because int might match the return type of a gcc2
9726    builtin and then its argument prototype would still apply.  */
9727 char dlopen ();
9728 int
9729 main ()
9730 {
9731 dlopen ();
9732   ;
9733   return 0;
9734 }
9735 _ACEOF
9736 rm -f conftest.$ac_objext conftest$ac_exeext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9738   (eval $ac_link) 2>conftest.er1
9739   ac_status=$?
9740   grep -v '^ *+' conftest.er1 >conftest.err
9741   rm -f conftest.er1
9742   cat conftest.err >&5
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); } &&
9745          { ac_try='test -z "$ac_c_werror_flag"
9746                          || test ! -s conftest.err'
9747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748   (eval $ac_try) 2>&5
9749   ac_status=$?
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); }; } &&
9752          { ac_try='test -s conftest$ac_exeext'
9753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754   (eval $ac_try) 2>&5
9755   ac_status=$?
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); }; }; then
9758   ac_cv_lib_svld_dlopen=yes
9759 else
9760   echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9762
9763 ac_cv_lib_svld_dlopen=no
9764 fi
9765 rm -f conftest.err conftest.$ac_objext \
9766       conftest$ac_exeext conftest.$ac_ext
9767 LIBS=$ac_check_lib_save_LIBS
9768 fi
9769 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9770 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9771 if test $ac_cv_lib_svld_dlopen = yes; then
9772   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9773 else
9774   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9775 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9776 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9777   echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779   ac_check_lib_save_LIBS=$LIBS
9780 LIBS="-ldld  $LIBS"
9781 cat >conftest.$ac_ext <<_ACEOF
9782 /* confdefs.h.  */
9783 _ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h.  */
9787
9788 /* Override any gcc2 internal prototype to avoid an error.  */
9789 #ifdef __cplusplus
9790 extern "C"
9791 #endif
9792 /* We use char because int might match the return type of a gcc2
9793    builtin and then its argument prototype would still apply.  */
9794 char dld_link ();
9795 int
9796 main ()
9797 {
9798 dld_link ();
9799   ;
9800   return 0;
9801 }
9802 _ACEOF
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9805   (eval $ac_link) 2>conftest.er1
9806   ac_status=$?
9807   grep -v '^ *+' conftest.er1 >conftest.err
9808   rm -f conftest.er1
9809   cat conftest.err >&5
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); } &&
9812          { ac_try='test -z "$ac_c_werror_flag"
9813                          || test ! -s conftest.err'
9814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815   (eval $ac_try) 2>&5
9816   ac_status=$?
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); }; } &&
9819          { ac_try='test -s conftest$ac_exeext'
9820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821   (eval $ac_try) 2>&5
9822   ac_status=$?
9823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824   (exit $ac_status); }; }; then
9825   ac_cv_lib_dld_dld_link=yes
9826 else
9827   echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9829
9830 ac_cv_lib_dld_dld_link=no
9831 fi
9832 rm -f conftest.err conftest.$ac_objext \
9833       conftest$ac_exeext conftest.$ac_ext
9834 LIBS=$ac_check_lib_save_LIBS
9835 fi
9836 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9837 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9838 if test $ac_cv_lib_dld_dld_link = yes; then
9839   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9840 fi
9841
9842
9843 fi
9844
9845
9846 fi
9847
9848
9849 fi
9850
9851
9852 fi
9853
9854
9855 fi
9856
9857     ;;
9858   esac
9859
9860   if test "x$lt_cv_dlopen" != xno; then
9861     enable_dlopen=yes
9862   else
9863     enable_dlopen=no
9864   fi
9865
9866   case $lt_cv_dlopen in
9867   dlopen)
9868     save_CPPFLAGS="$CPPFLAGS"
9869     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9870
9871     save_LDFLAGS="$LDFLAGS"
9872     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9873
9874     save_LIBS="$LIBS"
9875     LIBS="$lt_cv_dlopen_libs $LIBS"
9876
9877     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9878 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9879 if test "${lt_cv_dlopen_self+set}" = set; then
9880   echo $ECHO_N "(cached) $ECHO_C" >&6
9881 else
9882           if test "$cross_compiling" = yes; then :
9883   lt_cv_dlopen_self=cross
9884 else
9885   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9886   lt_status=$lt_dlunknown
9887   cat > conftest.$ac_ext <<EOF
9888 #line 9888 "configure"
9889 #include "confdefs.h"
9890
9891 #if HAVE_DLFCN_H
9892 #include <dlfcn.h>
9893 #endif
9894
9895 #include <stdio.h>
9896
9897 #ifdef RTLD_GLOBAL
9898 #  define LT_DLGLOBAL           RTLD_GLOBAL
9899 #else
9900 #  ifdef DL_GLOBAL
9901 #    define LT_DLGLOBAL         DL_GLOBAL
9902 #  else
9903 #    define LT_DLGLOBAL         0
9904 #  endif
9905 #endif
9906
9907 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9908    find out it does not work in some platform. */
9909 #ifndef LT_DLLAZY_OR_NOW
9910 #  ifdef RTLD_LAZY
9911 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9912 #  else
9913 #    ifdef DL_LAZY
9914 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9915 #    else
9916 #      ifdef RTLD_NOW
9917 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9918 #      else
9919 #        ifdef DL_NOW
9920 #          define LT_DLLAZY_OR_NOW      DL_NOW
9921 #        else
9922 #          define LT_DLLAZY_OR_NOW      0
9923 #        endif
9924 #      endif
9925 #    endif
9926 #  endif
9927 #endif
9928
9929 #ifdef __cplusplus
9930 extern "C" void exit (int);
9931 #endif
9932
9933 void fnord() { int i=42;}
9934 int main ()
9935 {
9936   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9937   int status = $lt_dlunknown;
9938
9939   if (self)
9940     {
9941       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9942       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9943       /* dlclose (self); */
9944     }
9945
9946     exit (status);
9947 }
9948 EOF
9949   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9950   (eval $ac_link) 2>&5
9951   ac_status=$?
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9954     (./conftest; exit; ) 2>/dev/null
9955     lt_status=$?
9956     case x$lt_status in
9957       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9958       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9959       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9960     esac
9961   else :
9962     # compilation failed
9963     lt_cv_dlopen_self=no
9964   fi
9965 fi
9966 rm -fr conftest*
9967
9968
9969 fi
9970 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9971 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9972
9973     if test "x$lt_cv_dlopen_self" = xyes; then
9974       LDFLAGS="$LDFLAGS $link_static_flag"
9975       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9976 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9977 if test "${lt_cv_dlopen_self_static+set}" = set; then
9978   echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980           if test "$cross_compiling" = yes; then :
9981   lt_cv_dlopen_self_static=cross
9982 else
9983   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9984   lt_status=$lt_dlunknown
9985   cat > conftest.$ac_ext <<EOF
9986 #line 9986 "configure"
9987 #include "confdefs.h"
9988
9989 #if HAVE_DLFCN_H
9990 #include <dlfcn.h>
9991 #endif
9992
9993 #include <stdio.h>
9994
9995 #ifdef RTLD_GLOBAL
9996 #  define LT_DLGLOBAL           RTLD_GLOBAL
9997 #else
9998 #  ifdef DL_GLOBAL
9999 #    define LT_DLGLOBAL         DL_GLOBAL
10000 #  else
10001 #    define LT_DLGLOBAL         0
10002 #  endif
10003 #endif
10004
10005 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10006    find out it does not work in some platform. */
10007 #ifndef LT_DLLAZY_OR_NOW
10008 #  ifdef RTLD_LAZY
10009 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10010 #  else
10011 #    ifdef DL_LAZY
10012 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10013 #    else
10014 #      ifdef RTLD_NOW
10015 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10016 #      else
10017 #        ifdef DL_NOW
10018 #          define LT_DLLAZY_OR_NOW      DL_NOW
10019 #        else
10020 #          define LT_DLLAZY_OR_NOW      0
10021 #        endif
10022 #      endif
10023 #    endif
10024 #  endif
10025 #endif
10026
10027 #ifdef __cplusplus
10028 extern "C" void exit (int);
10029 #endif
10030
10031 void fnord() { int i=42;}
10032 int main ()
10033 {
10034   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10035   int status = $lt_dlunknown;
10036
10037   if (self)
10038     {
10039       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10040       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10041       /* dlclose (self); */
10042     }
10043
10044     exit (status);
10045 }
10046 EOF
10047   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10048   (eval $ac_link) 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10052     (./conftest; exit; ) 2>/dev/null
10053     lt_status=$?
10054     case x$lt_status in
10055       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10056       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10057       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10058     esac
10059   else :
10060     # compilation failed
10061     lt_cv_dlopen_self_static=no
10062   fi
10063 fi
10064 rm -fr conftest*
10065
10066
10067 fi
10068 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10069 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10070     fi
10071
10072     CPPFLAGS="$save_CPPFLAGS"
10073     LDFLAGS="$save_LDFLAGS"
10074     LIBS="$save_LIBS"
10075     ;;
10076   esac
10077
10078   case $lt_cv_dlopen_self in
10079   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10080   *) enable_dlopen_self=unknown ;;
10081   esac
10082
10083   case $lt_cv_dlopen_self_static in
10084   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10085   *) enable_dlopen_self_static=unknown ;;
10086   esac
10087 fi
10088
10089
10090 # Report which librarie types wil actually be built
10091 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10092 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10093 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10094 echo "${ECHO_T}$can_build_shared" >&6
10095
10096 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10097 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10098 test "$can_build_shared" = "no" && enable_shared=no
10099
10100 # On AIX, shared libraries and static libraries use the same namespace, and
10101 # are all built from PIC.
10102 case "$host_os" in
10103 aix3*)
10104   test "$enable_shared" = yes && enable_static=no
10105   if test -n "$RANLIB"; then
10106     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10107     postinstall_cmds='$RANLIB $lib'
10108   fi
10109   ;;
10110
10111 aix4* | aix5*)
10112   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10113     test "$enable_shared" = yes && enable_static=no
10114   fi
10115   ;;
10116   darwin* | rhapsody*)
10117   if test "$GCC" = yes; then
10118     archive_cmds_need_lc=no
10119     case "$host_os" in
10120     rhapsody* | darwin1.[012])
10121       allow_undefined_flag='-undefined suppress'
10122       ;;
10123     *) # Darwin 1.3 on
10124       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10125         allow_undefined_flag='-flat_namespace -undefined suppress'
10126       else
10127         case ${MACOSX_DEPLOYMENT_TARGET} in
10128           10.[012])
10129             allow_undefined_flag='-flat_namespace -undefined suppress'
10130             ;;
10131           10.*)
10132             allow_undefined_flag='-undefined dynamic_lookup'
10133             ;;
10134         esac
10135       fi
10136       ;;
10137     esac
10138     output_verbose_link_cmd='echo'
10139     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10140     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10141     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10142     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}'
10143     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}'
10144     hardcode_direct=no
10145     hardcode_automatic=yes
10146     hardcode_shlibpath_var=unsupported
10147     whole_archive_flag_spec='-all_load $convenience'
10148     link_all_deplibs=yes
10149   else
10150     ld_shlibs=no
10151   fi
10152     ;;
10153 esac
10154 echo "$as_me:$LINENO: result: $enable_shared" >&5
10155 echo "${ECHO_T}$enable_shared" >&6
10156
10157 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10158 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10159 # Make sure either enable_shared or enable_static is yes.
10160 test "$enable_shared" = yes || enable_static=yes
10161 echo "$as_me:$LINENO: result: $enable_static" >&5
10162 echo "${ECHO_T}$enable_static" >&6
10163
10164 # The else clause should only fire when bootstrapping the
10165 # libtool distribution, otherwise you forgot to ship ltmain.sh
10166 # with your package, and you will get complaints that there are
10167 # no rules to generate ltmain.sh.
10168 if test -f "$ltmain"; then
10169   # See if we are running on zsh, and set the options which allow our commands through
10170   # without removal of \ escapes.
10171   if test -n "${ZSH_VERSION+set}" ; then
10172     setopt NO_GLOB_SUBST
10173   fi
10174   # Now quote all the things that may contain metacharacters while being
10175   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10176   # variables and quote the copies for generation of the libtool script.
10177   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10178     SED SHELL STRIP \
10179     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10180     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10181     deplibs_check_method reload_flag reload_cmds need_locks \
10182     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10183     lt_cv_sys_global_symbol_to_c_name_address \
10184     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10185     old_postinstall_cmds old_postuninstall_cmds \
10186     compiler \
10187     CC \
10188     LD \
10189     lt_prog_compiler_wl \
10190     lt_prog_compiler_pic \
10191     lt_prog_compiler_static \
10192     lt_prog_compiler_no_builtin_flag \
10193     export_dynamic_flag_spec \
10194     thread_safe_flag_spec \
10195     whole_archive_flag_spec \
10196     enable_shared_with_static_runtimes \
10197     old_archive_cmds \
10198     old_archive_from_new_cmds \
10199     predep_objects \
10200     postdep_objects \
10201     predeps \
10202     postdeps \
10203     compiler_lib_search_path \
10204     archive_cmds \
10205     archive_expsym_cmds \
10206     postinstall_cmds \
10207     postuninstall_cmds \
10208     old_archive_from_expsyms_cmds \
10209     allow_undefined_flag \
10210     no_undefined_flag \
10211     export_symbols_cmds \
10212     hardcode_libdir_flag_spec \
10213     hardcode_libdir_flag_spec_ld \
10214     hardcode_libdir_separator \
10215     hardcode_automatic \
10216     module_cmds \
10217     module_expsym_cmds \
10218     lt_cv_prog_compiler_c_o \
10219     exclude_expsyms \
10220     include_expsyms; do
10221
10222     case $var in
10223     old_archive_cmds | \
10224     old_archive_from_new_cmds | \
10225     archive_cmds | \
10226     archive_expsym_cmds | \
10227     module_cmds | \
10228     module_expsym_cmds | \
10229     old_archive_from_expsyms_cmds | \
10230     export_symbols_cmds | \
10231     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10232     postinstall_cmds | postuninstall_cmds | \
10233     old_postinstall_cmds | old_postuninstall_cmds | \
10234     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10235       # Double-quote double-evaled strings.
10236       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10237       ;;
10238     *)
10239       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10240       ;;
10241     esac
10242   done
10243
10244   case $lt_echo in
10245   *'\$0 --fallback-echo"')
10246     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10247     ;;
10248   esac
10249
10250 cfgfile="${ofile}T"
10251   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10252   $rm -f "$cfgfile"
10253   { echo "$as_me:$LINENO: creating $ofile" >&5
10254 echo "$as_me: creating $ofile" >&6;}
10255
10256   cat <<__EOF__ >> "$cfgfile"
10257 #! $SHELL
10258
10259 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10260 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10261 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10262 #
10263 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10264 # Free Software Foundation, Inc.
10265 #
10266 # This file is part of GNU Libtool:
10267 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10268 #
10269 # This program is free software; you can redistribute it and/or modify
10270 # it under the terms of the GNU General Public License as published by
10271 # the Free Software Foundation; either version 2 of the License, or
10272 # (at your option) any later version.
10273 #
10274 # This program is distributed in the hope that it will be useful, but
10275 # WITHOUT ANY WARRANTY; without even the implied warranty of
10276 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10277 # General Public License for more details.
10278 #
10279 # You should have received a copy of the GNU General Public License
10280 # along with this program; if not, write to the Free Software
10281 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10282 #
10283 # As a special exception to the GNU General Public License, if you
10284 # distribute this file as part of a program that contains a
10285 # configuration script generated by Autoconf, you may include it under
10286 # the same distribution terms that you use for the rest of that program.
10287
10288 # A sed program that does not truncate output.
10289 SED=$lt_SED
10290
10291 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10292 Xsed="$SED -e s/^X//"
10293
10294 # The HP-UX ksh and POSIX shell print the target directory to stdout
10295 # if CDPATH is set.
10296 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10297
10298 # The names of the tagged configurations supported by this script.
10299 available_tags=
10300
10301 # ### BEGIN LIBTOOL CONFIG
10302
10303 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10304
10305 # Shell to use when invoking shell scripts.
10306 SHELL=$lt_SHELL
10307
10308 # Whether or not to build shared libraries.
10309 build_libtool_libs=$enable_shared
10310
10311 # Whether or not to build static libraries.
10312 build_old_libs=$enable_static
10313
10314 # Whether or not to add -lc for building shared libraries.
10315 build_libtool_need_lc=$archive_cmds_need_lc
10316
10317 # Whether or not to disallow shared libs when runtime libs are static
10318 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10319
10320 # Whether or not to optimize for fast installation.
10321 fast_install=$enable_fast_install
10322
10323 # The host system.
10324 host_alias=$host_alias
10325 host=$host
10326
10327 # An echo program that does not interpret backslashes.
10328 echo=$lt_echo
10329
10330 # The archiver.
10331 AR=$lt_AR
10332 AR_FLAGS=$lt_AR_FLAGS
10333
10334 # A C compiler.
10335 LTCC=$lt_LTCC
10336
10337 # A language-specific compiler.
10338 CC=$lt_compiler
10339
10340 # Is the compiler the GNU C compiler?
10341 with_gcc=$GCC
10342
10343 # An ERE matcher.
10344 EGREP=$lt_EGREP
10345
10346 # The linker used to build libraries.
10347 LD=$lt_LD
10348
10349 # Whether we need hard or soft links.
10350 LN_S=$lt_LN_S
10351
10352 # A BSD-compatible nm program.
10353 NM=$lt_NM
10354
10355 # A symbol stripping program
10356 STRIP=$lt_STRIP
10357
10358 # Used to examine libraries when file_magic_cmd begins "file"
10359 MAGIC_CMD=$MAGIC_CMD
10360
10361 # Used on cygwin: DLL creation program.
10362 DLLTOOL="$DLLTOOL"
10363
10364 # Used on cygwin: object dumper.
10365 OBJDUMP="$OBJDUMP"
10366
10367 # Used on cygwin: assembler.
10368 AS="$AS"
10369
10370 # The name of the directory that contains temporary libtool files.
10371 objdir=$objdir
10372
10373 # How to create reloadable object files.
10374 reload_flag=$lt_reload_flag
10375 reload_cmds=$lt_reload_cmds
10376
10377 # How to pass a linker flag through the compiler.
10378 wl=$lt_lt_prog_compiler_wl
10379
10380 # Object file suffix (normally "o").
10381 objext="$ac_objext"
10382
10383 # Old archive suffix (normally "a").
10384 libext="$libext"
10385
10386 # Shared library suffix (normally ".so").
10387 shrext_cmds='$shrext_cmds'
10388
10389 # Executable file suffix (normally "").
10390 exeext="$exeext"
10391
10392 # Additional compiler flags for building library objects.
10393 pic_flag=$lt_lt_prog_compiler_pic
10394 pic_mode=$pic_mode
10395
10396 # What is the maximum length of a command?
10397 max_cmd_len=$lt_cv_sys_max_cmd_len
10398
10399 # Does compiler simultaneously support -c and -o options?
10400 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10401
10402 # Must we lock files when doing compilation ?
10403 need_locks=$lt_need_locks
10404
10405 # Do we need the lib prefix for modules?
10406 need_lib_prefix=$need_lib_prefix
10407
10408 # Do we need a version for libraries?
10409 need_version=$need_version
10410
10411 # Whether dlopen is supported.
10412 dlopen_support=$enable_dlopen
10413
10414 # Whether dlopen of programs is supported.
10415 dlopen_self=$enable_dlopen_self
10416
10417 # Whether dlopen of statically linked programs is supported.
10418 dlopen_self_static=$enable_dlopen_self_static
10419
10420 # Compiler flag to prevent dynamic linking.
10421 link_static_flag=$lt_lt_prog_compiler_static
10422
10423 # Compiler flag to turn off builtin functions.
10424 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10425
10426 # Compiler flag to allow reflexive dlopens.
10427 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10428
10429 # Compiler flag to generate shared objects directly from archives.
10430 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10431
10432 # Compiler flag to generate thread-safe objects.
10433 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10434
10435 # Library versioning type.
10436 version_type=$version_type
10437
10438 # Format of library name prefix.
10439 libname_spec=$lt_libname_spec
10440
10441 # List of archive names.  First name is the real one, the rest are links.
10442 # The last name is the one that the linker finds with -lNAME.
10443 library_names_spec=$lt_library_names_spec
10444
10445 # The coded name of the library, if different from the real name.
10446 soname_spec=$lt_soname_spec
10447
10448 # Commands used to build and install an old-style archive.
10449 RANLIB=$lt_RANLIB
10450 old_archive_cmds=$lt_old_archive_cmds
10451 old_postinstall_cmds=$lt_old_postinstall_cmds
10452 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10453
10454 # Create an old-style archive from a shared archive.
10455 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10456
10457 # Create a temporary old-style archive to link instead of a shared archive.
10458 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10459
10460 # Commands used to build and install a shared archive.
10461 archive_cmds=$lt_archive_cmds
10462 archive_expsym_cmds=$lt_archive_expsym_cmds
10463 postinstall_cmds=$lt_postinstall_cmds
10464 postuninstall_cmds=$lt_postuninstall_cmds
10465
10466 # Commands used to build a loadable module (assumed same as above if empty)
10467 module_cmds=$lt_module_cmds
10468 module_expsym_cmds=$lt_module_expsym_cmds
10469
10470 # Commands to strip libraries.
10471 old_striplib=$lt_old_striplib
10472 striplib=$lt_striplib
10473
10474 # Dependencies to place before the objects being linked to create a
10475 # shared library.
10476 predep_objects=$lt_predep_objects
10477
10478 # Dependencies to place after the objects being linked to create a
10479 # shared library.
10480 postdep_objects=$lt_postdep_objects
10481
10482 # Dependencies to place before the objects being linked to create a
10483 # shared library.
10484 predeps=$lt_predeps
10485
10486 # Dependencies to place after the objects being linked to create a
10487 # shared library.
10488 postdeps=$lt_postdeps
10489
10490 # The library search path used internally by the compiler when linking
10491 # a shared library.
10492 compiler_lib_search_path=$lt_compiler_lib_search_path
10493
10494 # Method to check whether dependent libraries are shared objects.
10495 deplibs_check_method=$lt_deplibs_check_method
10496
10497 # Command to use when deplibs_check_method == file_magic.
10498 file_magic_cmd=$lt_file_magic_cmd
10499
10500 # Flag that allows shared libraries with undefined symbols to be built.
10501 allow_undefined_flag=$lt_allow_undefined_flag
10502
10503 # Flag that forces no undefined symbols.
10504 no_undefined_flag=$lt_no_undefined_flag
10505
10506 # Commands used to finish a libtool library installation in a directory.
10507 finish_cmds=$lt_finish_cmds
10508
10509 # Same as above, but a single script fragment to be evaled but not shown.
10510 finish_eval=$lt_finish_eval
10511
10512 # Take the output of nm and produce a listing of raw symbols and C names.
10513 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10514
10515 # Transform the output of nm in a proper C declaration
10516 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10517
10518 # Transform the output of nm in a C name address pair
10519 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10520
10521 # This is the shared library runtime path variable.
10522 runpath_var=$runpath_var
10523
10524 # This is the shared library path variable.
10525 shlibpath_var=$shlibpath_var
10526
10527 # Is shlibpath searched before the hard-coded library search path?
10528 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10529
10530 # How to hardcode a shared library path into an executable.
10531 hardcode_action=$hardcode_action
10532
10533 # Whether we should hardcode library paths into libraries.
10534 hardcode_into_libs=$hardcode_into_libs
10535
10536 # Flag to hardcode \$libdir into a binary during linking.
10537 # This must work even if \$libdir does not exist.
10538 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10539
10540 # If ld is used when linking, flag to hardcode \$libdir into
10541 # a binary during linking. This must work even if \$libdir does
10542 # not exist.
10543 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10544
10545 # Whether we need a single -rpath flag with a separated argument.
10546 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10547
10548 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10549 # resulting binary.
10550 hardcode_direct=$hardcode_direct
10551
10552 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10553 # resulting binary.
10554 hardcode_minus_L=$hardcode_minus_L
10555
10556 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10557 # the resulting binary.
10558 hardcode_shlibpath_var=$hardcode_shlibpath_var
10559
10560 # Set to yes if building a shared library automatically hardcodes DIR into the library
10561 # and all subsequent libraries and executables linked against it.
10562 hardcode_automatic=$hardcode_automatic
10563
10564 # Variables whose values should be saved in libtool wrapper scripts and
10565 # restored at relink time.
10566 variables_saved_for_relink="$variables_saved_for_relink"
10567
10568 # Whether libtool must link a program against all its dependency libraries.
10569 link_all_deplibs=$link_all_deplibs
10570
10571 # Compile-time system search path for libraries
10572 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10573
10574 # Run-time system search path for libraries
10575 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10576
10577 # Fix the shell variable \$srcfile for the compiler.
10578 fix_srcfile_path="$fix_srcfile_path"
10579
10580 # Set to yes if exported symbols are required.
10581 always_export_symbols=$always_export_symbols
10582
10583 # The commands to list exported symbols.
10584 export_symbols_cmds=$lt_export_symbols_cmds
10585
10586 # The commands to extract the exported symbol list from a shared archive.
10587 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10588
10589 # Symbols that should not be listed in the preloaded symbols.
10590 exclude_expsyms=$lt_exclude_expsyms
10591
10592 # Symbols that must always be exported.
10593 include_expsyms=$lt_include_expsyms
10594
10595 # ### END LIBTOOL CONFIG
10596
10597 __EOF__
10598
10599
10600   case $host_os in
10601   aix3*)
10602     cat <<\EOF >> "$cfgfile"
10603
10604 # AIX sometimes has problems with the GCC collect2 program.  For some
10605 # reason, if we set the COLLECT_NAMES environment variable, the problems
10606 # vanish in a puff of smoke.
10607 if test "X${COLLECT_NAMES+set}" != Xset; then
10608   COLLECT_NAMES=
10609   export COLLECT_NAMES
10610 fi
10611 EOF
10612     ;;
10613   esac
10614
10615   # We use sed instead of cat because bash on DJGPP gets confused if
10616   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10617   # text mode, it properly converts lines to CR/LF.  This bash problem
10618   # is reportedly fixed, but why not run on old versions too?
10619   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10620
10621   mv -f "$cfgfile" "$ofile" || \
10622     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10623   chmod +x "$ofile"
10624
10625 else
10626   # If there is no Makefile yet, we rely on a make rule to execute
10627   # `config.status --recheck' to rerun these tests and create the
10628   # libtool script then.
10629   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10630   if test -f "$ltmain_in"; then
10631     test -f Makefile && make "$ltmain"
10632   fi
10633 fi
10634
10635
10636 ac_ext=c
10637 ac_cpp='$CPP $CPPFLAGS'
10638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10641
10642 CC="$lt_save_CC"
10643
10644
10645 # Check whether --with-tags or --without-tags was given.
10646 if test "${with_tags+set}" = set; then
10647   withval="$with_tags"
10648   tagnames="$withval"
10649 fi;
10650
10651 if test -f "$ltmain" && test -n "$tagnames"; then
10652   if test ! -f "${ofile}"; then
10653     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10654 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10655   fi
10656
10657   if test -z "$LTCC"; then
10658     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10659     if test -z "$LTCC"; then
10660       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10661 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10662     else
10663       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10664 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10665     fi
10666   fi
10667
10668   # Extract list of available tagged configurations in $ofile.
10669   # Note that this assumes the entire list is on one line.
10670   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10671
10672   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10673   for tagname in $tagnames; do
10674     IFS="$lt_save_ifs"
10675     # Check whether tagname contains only valid characters
10676     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10677     "") ;;
10678     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10679 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10680    { (exit 1); exit 1; }; }
10681         ;;
10682     esac
10683
10684     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10685     then
10686       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10687 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10688    { (exit 1); exit 1; }; }
10689     fi
10690
10691     # Update the list of available tags.
10692     if test -n "$tagname"; then
10693       echo appending configuration tag \"$tagname\" to $ofile
10694
10695       case $tagname in
10696       CXX)
10697         if test -n "$CXX" && test "X$CXX" != "Xno"; then
10698           ac_ext=cc
10699 ac_cpp='$CXXCPP $CPPFLAGS'
10700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10703
10704
10705
10706
10707 archive_cmds_need_lc_CXX=no
10708 allow_undefined_flag_CXX=
10709 always_export_symbols_CXX=no
10710 archive_expsym_cmds_CXX=
10711 export_dynamic_flag_spec_CXX=
10712 hardcode_direct_CXX=no
10713 hardcode_libdir_flag_spec_CXX=
10714 hardcode_libdir_flag_spec_ld_CXX=
10715 hardcode_libdir_separator_CXX=
10716 hardcode_minus_L_CXX=no
10717 hardcode_automatic_CXX=no
10718 module_cmds_CXX=
10719 module_expsym_cmds_CXX=
10720 link_all_deplibs_CXX=unknown
10721 old_archive_cmds_CXX=$old_archive_cmds
10722 no_undefined_flag_CXX=
10723 whole_archive_flag_spec_CXX=
10724 enable_shared_with_static_runtimes_CXX=no
10725
10726 # Dependencies to place before and after the object being linked:
10727 predep_objects_CXX=
10728 postdep_objects_CXX=
10729 predeps_CXX=
10730 postdeps_CXX=
10731 compiler_lib_search_path_CXX=
10732
10733 # Source file extension for C++ test sources.
10734 ac_ext=cc
10735
10736 # Object file extension for compiled C++ test sources.
10737 objext=o
10738 objext_CXX=$objext
10739
10740 # Code to be used in simple compile tests
10741 lt_simple_compile_test_code="int some_variable = 0;\n"
10742
10743 # Code to be used in simple link tests
10744 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10745
10746 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10747
10748 # If no C compiler was specified, use CC.
10749 LTCC=${LTCC-"$CC"}
10750
10751 # Allow CC to be a program name with arguments.
10752 compiler=$CC
10753
10754
10755 # Allow CC to be a program name with arguments.
10756 lt_save_CC=$CC
10757 lt_save_LD=$LD
10758 lt_save_GCC=$GCC
10759 GCC=$GXX
10760 lt_save_with_gnu_ld=$with_gnu_ld
10761 lt_save_path_LD=$lt_cv_path_LD
10762 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10763   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10764 else
10765   unset lt_cv_prog_gnu_ld
10766 fi
10767 if test -n "${lt_cv_path_LDCXX+set}"; then
10768   lt_cv_path_LD=$lt_cv_path_LDCXX
10769 else
10770   unset lt_cv_path_LD
10771 fi
10772 test -z "${LDCXX+set}" || LD=$LDCXX
10773 CC=${CXX-"c++"}
10774 compiler=$CC
10775 compiler_CXX=$CC
10776 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10777
10778 # We don't want -fno-exception wen compiling C++ code, so set the
10779 # no_builtin_flag separately
10780 if test "$GXX" = yes; then
10781   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10782 else
10783   lt_prog_compiler_no_builtin_flag_CXX=
10784 fi
10785
10786 if test "$GXX" = yes; then
10787   # Set up default GNU C++ configuration
10788
10789
10790 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10791 if test "${with_gnu_ld+set}" = set; then
10792   withval="$with_gnu_ld"
10793   test "$withval" = no || with_gnu_ld=yes
10794 else
10795   with_gnu_ld=no
10796 fi;
10797 ac_prog=ld
10798 if test "$GCC" = yes; then
10799   # Check if gcc -print-prog-name=ld gives a path.
10800   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10801 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10802   case $host in
10803   *-*-mingw*)
10804     # gcc leaves a trailing carriage return which upsets mingw
10805     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10806   *)
10807     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10808   esac
10809   case $ac_prog in
10810     # Accept absolute paths.
10811     [\\/]* | ?:[\\/]*)
10812       re_direlt='/[^/][^/]*/\.\./'
10813       # Canonicalize the pathname of ld
10814       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10815       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10816         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10817       done
10818       test -z "$LD" && LD="$ac_prog"
10819       ;;
10820   "")
10821     # If it fails, then pretend we aren't using GCC.
10822     ac_prog=ld
10823     ;;
10824   *)
10825     # If it is relative, then search for the first ld in PATH.
10826     with_gnu_ld=unknown
10827     ;;
10828   esac
10829 elif test "$with_gnu_ld" = yes; then
10830   echo "$as_me:$LINENO: checking for GNU ld" >&5
10831 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10832 else
10833   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10834 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10835 fi
10836 if test "${lt_cv_path_LD+set}" = set; then
10837   echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839   if test -z "$LD"; then
10840   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10841   for ac_dir in $PATH; do
10842     IFS="$lt_save_ifs"
10843     test -z "$ac_dir" && ac_dir=.
10844     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10845       lt_cv_path_LD="$ac_dir/$ac_prog"
10846       # Check to see if the program is GNU ld.  I'd rather use --version,
10847       # but apparently some GNU ld's only accept -v.
10848       # Break only if it was the GNU/non-GNU ld that we prefer.
10849       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10850       *GNU* | *'with BFD'*)
10851         test "$with_gnu_ld" != no && break
10852         ;;
10853       *)
10854         test "$with_gnu_ld" != yes && break
10855         ;;
10856       esac
10857     fi
10858   done
10859   IFS="$lt_save_ifs"
10860 else
10861   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10862 fi
10863 fi
10864
10865 LD="$lt_cv_path_LD"
10866 if test -n "$LD"; then
10867   echo "$as_me:$LINENO: result: $LD" >&5
10868 echo "${ECHO_T}$LD" >&6
10869 else
10870   echo "$as_me:$LINENO: result: no" >&5
10871 echo "${ECHO_T}no" >&6
10872 fi
10873 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10874 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10875    { (exit 1); exit 1; }; }
10876 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10877 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10878 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10879   echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10882 case `$LD -v 2>&1 </dev/null` in
10883 *GNU* | *'with BFD'*)
10884   lt_cv_prog_gnu_ld=yes
10885   ;;
10886 *)
10887   lt_cv_prog_gnu_ld=no
10888   ;;
10889 esac
10890 fi
10891 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10892 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10893 with_gnu_ld=$lt_cv_prog_gnu_ld
10894
10895
10896
10897   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10898   # archiving commands below assume that GNU ld is being used.
10899   if test "$with_gnu_ld" = yes; then
10900     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10901     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'
10902
10903     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10904     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10905
10906     # If archive_cmds runs LD, not CC, wlarc should be empty
10907     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10908     #     investigate it a little bit more. (MM)
10909     wlarc='${wl}'
10910
10911     # ancient GNU ld didn't support --whole-archive et. al.
10912     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10913         grep 'no-whole-archive' > /dev/null; then
10914       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10915     else
10916       whole_archive_flag_spec_CXX=
10917     fi
10918   else
10919     with_gnu_ld=no
10920     wlarc=
10921
10922     # A generic and very simple default shared library creation
10923     # command for GNU C++ for the case where it uses the native
10924     # linker, instead of GNU ld.  If possible, this setting should
10925     # overridden to take advantage of the native linker features on
10926     # the platform it is being used on.
10927     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10928   fi
10929
10930   # Commands to make compiler produce verbose output that lists
10931   # what "hidden" libraries, object files and flags are used when
10932   # linking a shared library.
10933   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10934
10935 else
10936   GXX=no
10937   with_gnu_ld=no
10938   wlarc=
10939 fi
10940
10941 # PORTME: fill in a description of your system's C++ link characteristics
10942 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10943 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10944 ld_shlibs_CXX=yes
10945 case $host_os in
10946   aix3*)
10947     # FIXME: insert proper C++ library support
10948     ld_shlibs_CXX=no
10949     ;;
10950   aix4* | aix5*)
10951     if test "$host_cpu" = ia64; then
10952       # On IA64, the linker does run time linking by default, so we don't
10953       # have to do anything special.
10954       aix_use_runtimelinking=no
10955       exp_sym_flag='-Bexport'
10956       no_entry_flag=""
10957     else
10958       aix_use_runtimelinking=no
10959
10960       # Test if we are trying to use run time linking or normal
10961       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10962       # need to do runtime linking.
10963       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10964         for ld_flag in $LDFLAGS; do
10965           case $ld_flag in
10966           *-brtl*)
10967             aix_use_runtimelinking=yes
10968             break
10969             ;;
10970           esac
10971         done
10972       esac
10973
10974       exp_sym_flag='-bexport'
10975       no_entry_flag='-bnoentry'
10976     fi
10977
10978     # When large executables or shared objects are built, AIX ld can
10979     # have problems creating the table of contents.  If linking a library
10980     # or program results in "error TOC overflow" add -mminimal-toc to
10981     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10982     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10983
10984     archive_cmds_CXX=''
10985     hardcode_direct_CXX=yes
10986     hardcode_libdir_separator_CXX=':'
10987     link_all_deplibs_CXX=yes
10988
10989     if test "$GXX" = yes; then
10990       case $host_os in aix4.012|aix4.012.*)
10991       # We only want to do this on AIX 4.2 and lower, the check
10992       # below for broken collect2 doesn't work under 4.3+
10993         collect2name=`${CC} -print-prog-name=collect2`
10994         if test -f "$collect2name" && \
10995            strings "$collect2name" | grep resolve_lib_name >/dev/null
10996         then
10997           # We have reworked collect2
10998           hardcode_direct_CXX=yes
10999         else
11000           # We have old collect2
11001           hardcode_direct_CXX=unsupported
11002           # It fails to find uninstalled libraries when the uninstalled
11003           # path is not listed in the libpath.  Setting hardcode_minus_L
11004           # to unsupported forces relinking
11005           hardcode_minus_L_CXX=yes
11006           hardcode_libdir_flag_spec_CXX='-L$libdir'
11007           hardcode_libdir_separator_CXX=
11008         fi
11009       esac
11010       shared_flag='-shared'
11011     else
11012       # not using gcc
11013       if test "$host_cpu" = ia64; then
11014         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11015         # chokes on -Wl,-G. The following line is correct:
11016         shared_flag='-G'
11017       else
11018         if test "$aix_use_runtimelinking" = yes; then
11019           shared_flag='${wl}-G'
11020         else
11021           shared_flag='${wl}-bM:SRE'
11022         fi
11023       fi
11024     fi
11025
11026     # It seems that -bexpall does not export symbols beginning with
11027     # underscore (_), so it is better to generate a list of symbols to export.
11028     always_export_symbols_CXX=yes
11029     if test "$aix_use_runtimelinking" = yes; then
11030       # Warning - without using the other runtime loading flags (-brtl),
11031       # -berok will link without error, but may produce a broken library.
11032       allow_undefined_flag_CXX='-berok'
11033       # Determine the default libpath from the value encoded in an empty executable.
11034       cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h.  */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h.  */
11040
11041 int
11042 main ()
11043 {
11044
11045   ;
11046   return 0;
11047 }
11048 _ACEOF
11049 rm -f conftest.$ac_objext conftest$ac_exeext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11051   (eval $ac_link) 2>conftest.er1
11052   ac_status=$?
11053   grep -v '^ *+' conftest.er1 >conftest.err
11054   rm -f conftest.er1
11055   cat conftest.err >&5
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); } &&
11058          { ac_try='test -z "$ac_cxx_werror_flag"
11059                          || test ! -s conftest.err'
11060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061   (eval $ac_try) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); }; } &&
11065          { ac_try='test -s conftest$ac_exeext'
11066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067   (eval $ac_try) 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); }; }; then
11071
11072 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11073 }'`
11074 # Check for a 64-bit object if we didn't find anything.
11075 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; }
11076 }'`; fi
11077 else
11078   echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11080
11081 fi
11082 rm -f conftest.err conftest.$ac_objext \
11083       conftest$ac_exeext conftest.$ac_ext
11084 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11085
11086       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11087
11088       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11089      else
11090       if test "$host_cpu" = ia64; then
11091         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11092         allow_undefined_flag_CXX="-z nodefs"
11093         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11094       else
11095         # Determine the default libpath from the value encoded in an empty executable.
11096         cat >conftest.$ac_ext <<_ACEOF
11097 /* confdefs.h.  */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h.  */
11102
11103 int
11104 main ()
11105 {
11106
11107   ;
11108   return 0;
11109 }
11110 _ACEOF
11111 rm -f conftest.$ac_objext conftest$ac_exeext
11112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11113   (eval $ac_link) 2>conftest.er1
11114   ac_status=$?
11115   grep -v '^ *+' conftest.er1 >conftest.err
11116   rm -f conftest.er1
11117   cat conftest.err >&5
11118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119   (exit $ac_status); } &&
11120          { ac_try='test -z "$ac_cxx_werror_flag"
11121                          || test ! -s conftest.err'
11122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123   (eval $ac_try) 2>&5
11124   ac_status=$?
11125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126   (exit $ac_status); }; } &&
11127          { ac_try='test -s conftest$ac_exeext'
11128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129   (eval $ac_try) 2>&5
11130   ac_status=$?
11131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132   (exit $ac_status); }; }; then
11133
11134 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11135 }'`
11136 # Check for a 64-bit object if we didn't find anything.
11137 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; }
11138 }'`; fi
11139 else
11140   echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11142
11143 fi
11144 rm -f conftest.err conftest.$ac_objext \
11145       conftest$ac_exeext conftest.$ac_ext
11146 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11147
11148         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11149         # Warning - without using the other run time loading flags,
11150         # -berok will link without error, but may produce a broken library.
11151         no_undefined_flag_CXX=' ${wl}-bernotok'
11152         allow_undefined_flag_CXX=' ${wl}-berok'
11153         # -bexpall does not export symbols beginning with underscore (_)
11154         always_export_symbols_CXX=yes
11155         # Exported symbols can be pulled into shared objects from archives
11156         whole_archive_flag_spec_CXX=' '
11157         archive_cmds_need_lc_CXX=yes
11158         # This is similar to how AIX traditionally builds it's shared libraries.
11159         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11160       fi
11161     fi
11162     ;;
11163   chorus*)
11164     case $cc_basename in
11165       *)
11166         # FIXME: insert proper C++ library support
11167         ld_shlibs_CXX=no
11168         ;;
11169     esac
11170     ;;
11171
11172   cygwin* | mingw* | pw32*)
11173     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11174     # as there is no search path for DLLs.
11175     hardcode_libdir_flag_spec_CXX='-L$libdir'
11176     allow_undefined_flag_CXX=unsupported
11177     always_export_symbols_CXX=no
11178     enable_shared_with_static_runtimes_CXX=yes
11179
11180     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11181       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11182       # If the export-symbols file already is a .def file (1st line
11183       # is EXPORTS), use it as is; otherwise, prepend...
11184       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11185         cp $export_symbols $output_objdir/$soname.def;
11186       else
11187         echo EXPORTS > $output_objdir/$soname.def;
11188         cat $export_symbols >> $output_objdir/$soname.def;
11189       fi~
11190       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11191     else
11192       ld_shlibs_CXX=no
11193     fi
11194   ;;
11195
11196   darwin* | rhapsody*)
11197   if test "$GXX" = yes; then
11198     archive_cmds_need_lc_CXX=no
11199     case "$host_os" in
11200     rhapsody* | darwin1.[012])
11201       allow_undefined_flag_CXX='-undefined suppress'
11202       ;;
11203     *) # Darwin 1.3 on
11204       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11205         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11206       else
11207         case ${MACOSX_DEPLOYMENT_TARGET} in
11208           10.[012])
11209             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11210             ;;
11211           10.*)
11212             allow_undefined_flag_CXX='-undefined dynamic_lookup'
11213             ;;
11214         esac
11215       fi
11216       ;;
11217     esac
11218     lt_int_apple_cc_single_mod=no
11219     output_verbose_link_cmd='echo'
11220     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11221       lt_int_apple_cc_single_mod=yes
11222     fi
11223     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11224       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11225     else
11226       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11227     fi
11228     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11229
11230     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11231     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11232       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}'
11233     else
11234       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11235     fi
11236     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}'
11237     hardcode_direct_CXX=no
11238     hardcode_automatic_CXX=yes
11239     hardcode_shlibpath_var_CXX=unsupported
11240     whole_archive_flag_spec_CXX='-all_load $convenience'
11241     link_all_deplibs_CXX=yes
11242   else
11243     ld_shlibs_CXX=no
11244   fi
11245     ;;
11246
11247   dgux*)
11248     case $cc_basename in
11249       ec++)
11250         # FIXME: insert proper C++ library support
11251         ld_shlibs_CXX=no
11252         ;;
11253       ghcx)
11254         # Green Hills C++ Compiler
11255         # FIXME: insert proper C++ library support
11256         ld_shlibs_CXX=no
11257         ;;
11258       *)
11259         # FIXME: insert proper C++ library support
11260         ld_shlibs_CXX=no
11261         ;;
11262     esac
11263     ;;
11264   freebsd12*)
11265     # C++ shared libraries reported to be fairly broken before switch to ELF
11266     ld_shlibs_CXX=no
11267     ;;
11268   freebsd-elf*)
11269     archive_cmds_need_lc_CXX=no
11270     ;;
11271   freebsd* | kfreebsd*-gnu)
11272     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11273     # conventions
11274     ld_shlibs_CXX=yes
11275     ;;
11276   gnu*)
11277     ;;
11278   hpux9*)
11279     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11280     hardcode_libdir_separator_CXX=:
11281     export_dynamic_flag_spec_CXX='${wl}-E'
11282     hardcode_direct_CXX=yes
11283     hardcode_minus_L_CXX=yes # Not in the search PATH,
11284                                 # but as the default
11285                                 # location of the library.
11286
11287     case $cc_basename in
11288     CC)
11289       # FIXME: insert proper C++ library support
11290       ld_shlibs_CXX=no
11291       ;;
11292     aCC)
11293       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'
11294       # Commands to make compiler produce verbose output that lists
11295       # what "hidden" libraries, object files and flags are used when
11296       # linking a shared library.
11297       #
11298       # There doesn't appear to be a way to prevent this compiler from
11299       # explicitly linking system object files so we need to strip them
11300       # from the output so that they don't get included in the library
11301       # dependencies.
11302       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'
11303       ;;
11304     *)
11305       if test "$GXX" = yes; then
11306         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'
11307       else
11308         # FIXME: insert proper C++ library support
11309         ld_shlibs_CXX=no
11310       fi
11311       ;;
11312     esac
11313     ;;
11314   hpux10*|hpux11*)
11315     if test $with_gnu_ld = no; then
11316       case "$host_cpu" in
11317       hppa*64*)
11318         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11319         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11320         hardcode_libdir_separator_CXX=:
11321         ;;
11322       ia64*)
11323         hardcode_libdir_flag_spec_CXX='-L$libdir'
11324         ;;
11325       *)
11326         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11327         hardcode_libdir_separator_CXX=:
11328         export_dynamic_flag_spec_CXX='${wl}-E'
11329         ;;
11330       esac
11331     fi
11332     case "$host_cpu" in
11333     hppa*64*)
11334       hardcode_direct_CXX=no
11335       hardcode_shlibpath_var_CXX=no
11336       ;;
11337     ia64*)
11338       hardcode_direct_CXX=no
11339       hardcode_shlibpath_var_CXX=no
11340       hardcode_minus_L_CXX=yes # Not in the search PATH,
11341                                               # but as the default
11342                                               # location of the library.
11343       ;;
11344     *)
11345       hardcode_direct_CXX=yes
11346       hardcode_minus_L_CXX=yes # Not in the search PATH,
11347                                               # but as the default
11348                                               # location of the library.
11349       ;;
11350     esac
11351
11352     case $cc_basename in
11353       CC)
11354         # FIXME: insert proper C++ library support
11355         ld_shlibs_CXX=no
11356         ;;
11357       aCC)
11358         case "$host_cpu" in
11359         hppa*64*|ia64*)
11360           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11361           ;;
11362         *)
11363           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11364           ;;
11365         esac
11366         # Commands to make compiler produce verbose output that lists
11367         # what "hidden" libraries, object files and flags are used when
11368         # linking a shared library.
11369         #
11370         # There doesn't appear to be a way to prevent this compiler from
11371         # explicitly linking system object files so we need to strip them
11372         # from the output so that they don't get included in the library
11373         # dependencies.
11374         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'
11375         ;;
11376       *)
11377         if test "$GXX" = yes; then
11378           if test $with_gnu_ld = no; then
11379             case "$host_cpu" in
11380             ia64*|hppa*64*)
11381               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11382               ;;
11383             *)
11384               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'
11385               ;;
11386             esac
11387           fi
11388         else
11389           # FIXME: insert proper C++ library support
11390           ld_shlibs_CXX=no
11391         fi
11392         ;;
11393     esac
11394     ;;
11395   irix5* | irix6*)
11396     case $cc_basename in
11397       CC)
11398         # SGI C++
11399         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11400
11401         # Archives containing C++ object files must be created using
11402         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11403         # necessary to make sure instantiated templates are included
11404         # in the archive.
11405         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11406         ;;
11407       *)
11408         if test "$GXX" = yes; then
11409           if test "$with_gnu_ld" = no; then
11410             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11411           else
11412             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'
11413           fi
11414         fi
11415         link_all_deplibs_CXX=yes
11416         ;;
11417     esac
11418     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11419     hardcode_libdir_separator_CXX=:
11420     ;;
11421   linux*)
11422     case $cc_basename in
11423       KCC)
11424         # Kuck and Associates, Inc. (KAI) C++ Compiler
11425
11426         # KCC will only create a shared library if the output file
11427         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11428         # to its proper name (with version) after linking.
11429         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'
11430         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'
11431         # Commands to make compiler produce verbose output that lists
11432         # what "hidden" libraries, object files and flags are used when
11433         # linking a shared library.
11434         #
11435         # There doesn't appear to be a way to prevent this compiler from
11436         # explicitly linking system object files so we need to strip them
11437         # from the output so that they don't get included in the library
11438         # dependencies.
11439         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'
11440
11441         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11442         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11443
11444         # Archives containing C++ object files must be created using
11445         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11446         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11447         ;;
11448       icpc)
11449         # Intel C++
11450         with_gnu_ld=yes
11451         archive_cmds_need_lc_CXX=no
11452         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11453         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'
11454         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11455         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11456         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11457         ;;
11458       cxx)
11459         # Compaq C++
11460         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11461         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'
11462
11463         runpath_var=LD_RUN_PATH
11464         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11465         hardcode_libdir_separator_CXX=:
11466
11467         # Commands to make compiler produce verbose output that lists
11468         # what "hidden" libraries, object files and flags are used when
11469         # linking a shared library.
11470         #
11471         # There doesn't appear to be a way to prevent this compiler from
11472         # explicitly linking system object files so we need to strip them
11473         # from the output so that they don't get included in the library
11474         # dependencies.
11475         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'
11476         ;;
11477     esac
11478     ;;
11479   lynxos*)
11480     # FIXME: insert proper C++ library support
11481     ld_shlibs_CXX=no
11482     ;;
11483   m88k*)
11484     # FIXME: insert proper C++ library support
11485     ld_shlibs_CXX=no
11486     ;;
11487   mvs*)
11488     case $cc_basename in
11489       cxx)
11490         # FIXME: insert proper C++ library support
11491         ld_shlibs_CXX=no
11492         ;;
11493       *)
11494         # FIXME: insert proper C++ library support
11495         ld_shlibs_CXX=no
11496         ;;
11497     esac
11498     ;;
11499   netbsd*)
11500     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11501       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11502       wlarc=
11503       hardcode_libdir_flag_spec_CXX='-R$libdir'
11504       hardcode_direct_CXX=yes
11505       hardcode_shlibpath_var_CXX=no
11506     fi
11507     # Workaround some broken pre-1.5 toolchains
11508     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11509     ;;
11510   osf3*)
11511     case $cc_basename in
11512       KCC)
11513         # Kuck and Associates, Inc. (KAI) C++ Compiler
11514
11515         # KCC will only create a shared library if the output file
11516         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11517         # to its proper name (with version) after linking.
11518         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'
11519
11520         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11521         hardcode_libdir_separator_CXX=:
11522
11523         # Archives containing C++ object files must be created using
11524         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11525         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11526
11527         ;;
11528       RCC)
11529         # Rational C++ 2.4.1
11530         # FIXME: insert proper C++ library support
11531         ld_shlibs_CXX=no
11532         ;;
11533       cxx)
11534         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11535         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11536
11537         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11538         hardcode_libdir_separator_CXX=:
11539
11540         # Commands to make compiler produce verbose output that lists
11541         # what "hidden" libraries, object files and flags are used when
11542         # linking a shared library.
11543         #
11544         # There doesn't appear to be a way to prevent this compiler from
11545         # explicitly linking system object files so we need to strip them
11546         # from the output so that they don't get included in the library
11547         # dependencies.
11548         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'
11549         ;;
11550       *)
11551         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11552           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11553           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11554
11555           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11556           hardcode_libdir_separator_CXX=:
11557
11558           # Commands to make compiler produce verbose output that lists
11559           # what "hidden" libraries, object files and flags are used when
11560           # linking a shared library.
11561           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11562
11563         else
11564           # FIXME: insert proper C++ library support
11565           ld_shlibs_CXX=no
11566         fi
11567         ;;
11568     esac
11569     ;;
11570   osf4* | osf5*)
11571     case $cc_basename in
11572       KCC)
11573         # Kuck and Associates, Inc. (KAI) C++ Compiler
11574
11575         # KCC will only create a shared library if the output file
11576         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11577         # to its proper name (with version) after linking.
11578         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'
11579
11580         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11581         hardcode_libdir_separator_CXX=:
11582
11583         # Archives containing C++ object files must be created using
11584         # the KAI C++ compiler.
11585         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11586         ;;
11587       RCC)
11588         # Rational C++ 2.4.1
11589         # FIXME: insert proper C++ library support
11590         ld_shlibs_CXX=no
11591         ;;
11592       cxx)
11593         allow_undefined_flag_CXX=' -expect_unresolved \*'
11594         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11595         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11596           echo "-hidden">> $lib.exp~
11597           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
11598           $rm $lib.exp'
11599
11600         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11601         hardcode_libdir_separator_CXX=:
11602
11603         # Commands to make compiler produce verbose output that lists
11604         # what "hidden" libraries, object files and flags are used when
11605         # linking a shared library.
11606         #
11607         # There doesn't appear to be a way to prevent this compiler from
11608         # explicitly linking system object files so we need to strip them
11609         # from the output so that they don't get included in the library
11610         # dependencies.
11611         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'
11612         ;;
11613       *)
11614         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11615           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11616          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11617
11618           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11619           hardcode_libdir_separator_CXX=:
11620
11621           # Commands to make compiler produce verbose output that lists
11622           # what "hidden" libraries, object files and flags are used when
11623           # linking a shared library.
11624           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11625
11626         else
11627           # FIXME: insert proper C++ library support
11628           ld_shlibs_CXX=no
11629         fi
11630         ;;
11631     esac
11632     ;;
11633   psos*)
11634     # FIXME: insert proper C++ library support
11635     ld_shlibs_CXX=no
11636     ;;
11637   sco*)
11638     archive_cmds_need_lc_CXX=no
11639     case $cc_basename in
11640       CC)
11641         # FIXME: insert proper C++ library support
11642         ld_shlibs_CXX=no
11643         ;;
11644       *)
11645         # FIXME: insert proper C++ library support
11646         ld_shlibs_CXX=no
11647         ;;
11648     esac
11649     ;;
11650   sunos4*)
11651     case $cc_basename in
11652       CC)
11653         # Sun C++ 4.x
11654         # FIXME: insert proper C++ library support
11655         ld_shlibs_CXX=no
11656         ;;
11657       lcc)
11658         # Lucid
11659         # FIXME: insert proper C++ library support
11660         ld_shlibs_CXX=no
11661         ;;
11662       *)
11663         # FIXME: insert proper C++ library support
11664         ld_shlibs_CXX=no
11665         ;;
11666     esac
11667     ;;
11668   solaris*)
11669     case $cc_basename in
11670       CC)
11671         # Sun C++ 4.2, 5.x and Centerline C++
11672         no_undefined_flag_CXX=' -zdefs'
11673         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11674         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11675         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11676
11677         hardcode_libdir_flag_spec_CXX='-R$libdir'
11678         hardcode_shlibpath_var_CXX=no
11679         case $host_os in
11680           solaris2.0-5 | solaris2.0-5.*) ;;
11681           *)
11682             # The C++ compiler is used as linker so we must use $wl
11683             # flag to pass the commands to the underlying system
11684             # linker.
11685             # Supported since Solaris 2.6 (maybe 2.5.1?)
11686             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11687             ;;
11688         esac
11689         link_all_deplibs_CXX=yes
11690
11691         # Commands to make compiler produce verbose output that lists
11692         # what "hidden" libraries, object files and flags are used when
11693         # linking a shared library.
11694         #
11695         # There doesn't appear to be a way to prevent this compiler from
11696         # explicitly linking system object files so we need to strip them
11697         # from the output so that they don't get included in the library
11698         # dependencies.
11699         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11700
11701         # Archives containing C++ object files must be created using
11702         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11703         # necessary to make sure instantiated templates are included
11704         # in the archive.
11705         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11706         ;;
11707       gcx)
11708         # Green Hills C++ Compiler
11709         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11710
11711         # The C++ compiler must be used to create the archive.
11712         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11713         ;;
11714       *)
11715         # GNU C++ compiler with Solaris linker
11716         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11717           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11718           if $CC --version | grep -v '^2\.7' > /dev/null; then
11719             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11720             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11721                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11722
11723             # Commands to make compiler produce verbose output that lists
11724             # what "hidden" libraries, object files and flags are used when
11725             # linking a shared library.
11726             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11727           else
11728             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11729             # platform.
11730             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11731             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11732                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11733
11734             # Commands to make compiler produce verbose output that lists
11735             # what "hidden" libraries, object files and flags are used when
11736             # linking a shared library.
11737             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11738           fi
11739
11740           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11741         fi
11742         ;;
11743     esac
11744     ;;
11745   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11746     archive_cmds_need_lc_CXX=no
11747     ;;
11748   tandem*)
11749     case $cc_basename in
11750       NCC)
11751         # NonStop-UX NCC 3.20
11752         # FIXME: insert proper C++ library support
11753         ld_shlibs_CXX=no
11754         ;;
11755       *)
11756         # FIXME: insert proper C++ library support
11757         ld_shlibs_CXX=no
11758         ;;
11759     esac
11760     ;;
11761   vxworks*)
11762     # FIXME: insert proper C++ library support
11763     ld_shlibs_CXX=no
11764     ;;
11765   *)
11766     # FIXME: insert proper C++ library support
11767     ld_shlibs_CXX=no
11768     ;;
11769 esac
11770 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11771 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11772 test "$ld_shlibs_CXX" = no && can_build_shared=no
11773
11774 GCC_CXX="$GXX"
11775 LD_CXX="$LD"
11776
11777
11778 cat > conftest.$ac_ext <<EOF
11779 class Foo
11780 {
11781 public:
11782   Foo (void) { a = 0; }
11783 private:
11784   int a;
11785 };
11786 EOF
11787
11788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789   (eval $ac_compile) 2>&5
11790   ac_status=$?
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); }; then
11793   # Parse the compiler output and extract the necessary
11794   # objects, libraries and library flags.
11795
11796   # Sentinel used to keep track of whether or not we are before
11797   # the conftest object file.
11798   pre_test_object_deps_done=no
11799
11800   # The `*' in the case matches for architectures that use `case' in
11801   # $output_verbose_cmd can trigger glob expansion during the loop
11802   # eval without this substitution.
11803   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11804
11805   for p in `eval $output_verbose_link_cmd`; do
11806     case $p in
11807
11808     -L* | -R* | -l*)
11809        # Some compilers place space between "-{L,R}" and the path.
11810        # Remove the space.
11811        if test $p = "-L" \
11812           || test $p = "-R"; then
11813          prev=$p
11814          continue
11815        else
11816          prev=
11817        fi
11818
11819        if test "$pre_test_object_deps_done" = no; then
11820          case $p in
11821          -L* | -R*)
11822            # Internal compiler library paths should come after those
11823            # provided the user.  The postdeps already come after the
11824            # user supplied libs so there is no need to process them.
11825            if test -z "$compiler_lib_search_path_CXX"; then
11826              compiler_lib_search_path_CXX="${prev}${p}"
11827            else
11828              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11829            fi
11830            ;;
11831          # The "-l" case would never come before the object being
11832          # linked, so don't bother handling this case.
11833          esac
11834        else
11835          if test -z "$postdeps_CXX"; then
11836            postdeps_CXX="${prev}${p}"
11837          else
11838            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11839          fi
11840        fi
11841        ;;
11842
11843     *.$objext)
11844        # This assumes that the test object file only shows up
11845        # once in the compiler output.
11846        if test "$p" = "conftest.$objext"; then
11847          pre_test_object_deps_done=yes
11848          continue
11849        fi
11850
11851        if test "$pre_test_object_deps_done" = no; then
11852          if test -z "$predep_objects_CXX"; then
11853            predep_objects_CXX="$p"
11854          else
11855            predep_objects_CXX="$predep_objects_CXX $p"
11856          fi
11857        else
11858          if test -z "$postdep_objects_CXX"; then
11859            postdep_objects_CXX="$p"
11860          else
11861            postdep_objects_CXX="$postdep_objects_CXX $p"
11862          fi
11863        fi
11864        ;;
11865
11866     *) ;; # Ignore the rest.
11867
11868     esac
11869   done
11870
11871   # Clean up.
11872   rm -f a.out a.exe
11873 else
11874   echo "libtool.m4: error: problem compiling CXX test program"
11875 fi
11876
11877 $rm -f confest.$objext
11878
11879 case " $postdeps_CXX " in
11880 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11881 esac
11882
11883 lt_prog_compiler_wl_CXX=
11884 lt_prog_compiler_pic_CXX=
11885 lt_prog_compiler_static_CXX=
11886
11887 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11888 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11889
11890   # C++ specific cases for pic, static, wl, etc.
11891   if test "$GXX" = yes; then
11892     lt_prog_compiler_wl_CXX='-Wl,'
11893     lt_prog_compiler_static_CXX='-static'
11894
11895     case $host_os in
11896     aix*)
11897       # All AIX code is PIC.
11898       if test "$host_cpu" = ia64; then
11899         # AIX 5 now supports IA64 processor
11900         lt_prog_compiler_static_CXX='-Bstatic'
11901       fi
11902       ;;
11903     amigaos*)
11904       # FIXME: we need at least 68020 code to build shared libraries, but
11905       # adding the `-m68020' flag to GCC prevents building anything better,
11906       # like `-m68040'.
11907       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11908       ;;
11909     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11910       # PIC is the default for these OSes.
11911       ;;
11912     mingw* | os2* | pw32*)
11913       # This hack is so that the source file can tell whether it is being
11914       # built for inclusion in a dll (and should export symbols for example).
11915       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11916       ;;
11917     darwin* | rhapsody*)
11918       # PIC is the default on this platform
11919       # Common symbols not allowed in MH_DYLIB files
11920       lt_prog_compiler_pic_CXX='-fno-common'
11921       ;;
11922     *djgpp*)
11923       # DJGPP does not support shared libraries at all
11924       lt_prog_compiler_pic_CXX=
11925       ;;
11926     sysv4*MP*)
11927       if test -d /usr/nec; then
11928         lt_prog_compiler_pic_CXX=-Kconform_pic
11929       fi
11930       ;;
11931     hpux*)
11932       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11933       # not for PA HP-UX.
11934       case "$host_cpu" in
11935       hppa*64*|ia64*)
11936         ;;
11937       *)
11938         lt_prog_compiler_pic_CXX='-fPIC'
11939         ;;
11940       esac
11941       ;;
11942     *)
11943       lt_prog_compiler_pic_CXX='-fPIC'
11944       ;;
11945     esac
11946   else
11947     case $host_os in
11948       aix4* | aix5*)
11949         # All AIX code is PIC.
11950         if test "$host_cpu" = ia64; then
11951           # AIX 5 now supports IA64 processor
11952           lt_prog_compiler_static_CXX='-Bstatic'
11953         else
11954           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11955         fi
11956         ;;
11957       chorus*)
11958         case $cc_basename in
11959         cxch68)
11960           # Green Hills C++ Compiler
11961           # _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"
11962           ;;
11963         esac
11964         ;;
11965       dgux*)
11966         case $cc_basename in
11967           ec++)
11968             lt_prog_compiler_pic_CXX='-KPIC'
11969             ;;
11970           ghcx)
11971             # Green Hills C++ Compiler
11972             lt_prog_compiler_pic_CXX='-pic'
11973             ;;
11974           *)
11975             ;;
11976         esac
11977         ;;
11978       freebsd* | kfreebsd*-gnu)
11979         # FreeBSD uses GNU C++
11980         ;;
11981       hpux9* | hpux10* | hpux11*)
11982         case $cc_basename in
11983           CC)
11984             lt_prog_compiler_wl_CXX='-Wl,'
11985             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11986             if test "$host_cpu" != ia64; then
11987               lt_prog_compiler_pic_CXX='+Z'
11988             fi
11989             ;;
11990           aCC)
11991             lt_prog_compiler_wl_CXX='-Wl,'
11992             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11993             case "$host_cpu" in
11994             hppa*64*|ia64*)
11995               # +Z the default
11996               ;;
11997             *)
11998               lt_prog_compiler_pic_CXX='+Z'
11999               ;;
12000             esac
12001             ;;
12002           *)
12003             ;;
12004         esac
12005         ;;
12006       irix5* | irix6* | nonstopux*)
12007         case $cc_basename in
12008           CC)
12009             lt_prog_compiler_wl_CXX='-Wl,'
12010             lt_prog_compiler_static_CXX='-non_shared'
12011             # CC pic flag -KPIC is the default.
12012             ;;
12013           *)
12014             ;;
12015         esac
12016         ;;
12017       linux*)
12018         case $cc_basename in
12019           KCC)
12020             # KAI C++ Compiler
12021             lt_prog_compiler_wl_CXX='--backend -Wl,'
12022             lt_prog_compiler_pic_CXX='-fPIC'
12023             ;;
12024           icpc)
12025             # Intel C++
12026             lt_prog_compiler_wl_CXX='-Wl,'
12027             lt_prog_compiler_pic_CXX='-KPIC'
12028             lt_prog_compiler_static_CXX='-static'
12029             ;;
12030           cxx)
12031             # Compaq C++
12032             # Make sure the PIC flag is empty.  It appears that all Alpha
12033             # Linux and Compaq Tru64 Unix objects are PIC.
12034             lt_prog_compiler_pic_CXX=
12035             lt_prog_compiler_static_CXX='-non_shared'
12036             ;;
12037           *)
12038             ;;
12039         esac
12040         ;;
12041       lynxos*)
12042         ;;
12043       m88k*)
12044         ;;
12045       mvs*)
12046         case $cc_basename in
12047           cxx)
12048             lt_prog_compiler_pic_CXX='-W c,exportall'
12049             ;;
12050           *)
12051             ;;
12052         esac
12053         ;;
12054       netbsd*)
12055         ;;
12056       osf3* | osf4* | osf5*)
12057         case $cc_basename in
12058           KCC)
12059             lt_prog_compiler_wl_CXX='--backend -Wl,'
12060             ;;
12061           RCC)
12062             # Rational C++ 2.4.1
12063             lt_prog_compiler_pic_CXX='-pic'
12064             ;;
12065           cxx)
12066             # Digital/Compaq C++
12067             lt_prog_compiler_wl_CXX='-Wl,'
12068             # Make sure the PIC flag is empty.  It appears that all Alpha
12069             # Linux and Compaq Tru64 Unix objects are PIC.
12070             lt_prog_compiler_pic_CXX=
12071             lt_prog_compiler_static_CXX='-non_shared'
12072             ;;
12073           *)
12074             ;;
12075         esac
12076         ;;
12077       psos*)
12078         ;;
12079       sco*)
12080         case $cc_basename in
12081           CC)
12082             lt_prog_compiler_pic_CXX='-fPIC'
12083             ;;
12084           *)
12085             ;;
12086         esac
12087         ;;
12088       solaris*)
12089         case $cc_basename in
12090           CC)
12091             # Sun C++ 4.2, 5.x and Centerline C++
12092             lt_prog_compiler_pic_CXX='-KPIC'
12093             lt_prog_compiler_static_CXX='-Bstatic'
12094             lt_prog_compiler_wl_CXX='-Qoption ld '
12095             ;;
12096           gcx)
12097             # Green Hills C++ Compiler
12098             lt_prog_compiler_pic_CXX='-PIC'
12099             ;;
12100           *)
12101             ;;
12102         esac
12103         ;;
12104       sunos4*)
12105         case $cc_basename in
12106           CC)
12107             # Sun C++ 4.x
12108             lt_prog_compiler_pic_CXX='-pic'
12109             lt_prog_compiler_static_CXX='-Bstatic'
12110             ;;
12111           lcc)
12112             # Lucid
12113             lt_prog_compiler_pic_CXX='-pic'
12114             ;;
12115           *)
12116             ;;
12117         esac
12118         ;;
12119       tandem*)
12120         case $cc_basename in
12121           NCC)
12122             # NonStop-UX NCC 3.20
12123             lt_prog_compiler_pic_CXX='-KPIC'
12124             ;;
12125           *)
12126             ;;
12127         esac
12128         ;;
12129       unixware*)
12130         ;;
12131       vxworks*)
12132         ;;
12133       *)
12134         lt_prog_compiler_can_build_shared_CXX=no
12135         ;;
12136     esac
12137   fi
12138
12139 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12140 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12141
12142 #
12143 # Check to make sure the PIC flag actually works.
12144 #
12145 if test -n "$lt_prog_compiler_pic_CXX"; then
12146
12147 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12148 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12149 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12150   echo $ECHO_N "(cached) $ECHO_C" >&6
12151 else
12152   lt_prog_compiler_pic_works_CXX=no
12153   ac_outfile=conftest.$ac_objext
12154    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12155    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12156    # Insert the option either (1) after the last *FLAGS variable, or
12157    # (2) before a word containing "conftest.", or (3) at the end.
12158    # Note that $ac_compile itself does not contain backslashes and begins
12159    # with a dollar sign (not a hyphen), so the echo should work correctly.
12160    # The option is referenced via a variable to avoid confusing sed.
12161    lt_compile=`echo "$ac_compile" | $SED \
12162    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12163    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12164    -e 's:$: $lt_compiler_flag:'`
12165    (eval echo "\"\$as_me:12165: $lt_compile\"" >&5)
12166    (eval "$lt_compile" 2>conftest.err)
12167    ac_status=$?
12168    cat conftest.err >&5
12169    echo "$as_me:12169: \$? = $ac_status" >&5
12170    if (exit $ac_status) && test -s "$ac_outfile"; then
12171      # The compiler can only warn and ignore the option if not recognized
12172      # So say no if there are warnings
12173      if test ! -s conftest.err; then
12174        lt_prog_compiler_pic_works_CXX=yes
12175      fi
12176    fi
12177    $rm conftest*
12178
12179 fi
12180 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12181 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12182
12183 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12184     case $lt_prog_compiler_pic_CXX in
12185      "" | " "*) ;;
12186      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12187      esac
12188 else
12189     lt_prog_compiler_pic_CXX=
12190      lt_prog_compiler_can_build_shared_CXX=no
12191 fi
12192
12193 fi
12194 case "$host_os" in
12195   # For platforms which do not support PIC, -DPIC is meaningless:
12196   *djgpp*)
12197     lt_prog_compiler_pic_CXX=
12198     ;;
12199   *)
12200     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12201     ;;
12202 esac
12203
12204 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12205 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12206 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12207   echo $ECHO_N "(cached) $ECHO_C" >&6
12208 else
12209   lt_cv_prog_compiler_c_o_CXX=no
12210    $rm -r conftest 2>/dev/null
12211    mkdir conftest
12212    cd conftest
12213    mkdir out
12214    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12215
12216    lt_compiler_flag="-o out/conftest2.$ac_objext"
12217    # Insert the option either (1) after the last *FLAGS variable, or
12218    # (2) before a word containing "conftest.", or (3) at the end.
12219    # Note that $ac_compile itself does not contain backslashes and begins
12220    # with a dollar sign (not a hyphen), so the echo should work correctly.
12221    lt_compile=`echo "$ac_compile" | $SED \
12222    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12223    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12224    -e 's:$: $lt_compiler_flag:'`
12225    (eval echo "\"\$as_me:12225: $lt_compile\"" >&5)
12226    (eval "$lt_compile" 2>out/conftest.err)
12227    ac_status=$?
12228    cat out/conftest.err >&5
12229    echo "$as_me:12229: \$? = $ac_status" >&5
12230    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12231    then
12232      # The compiler can only warn and ignore the option if not recognized
12233      # So say no if there are warnings
12234      if test ! -s out/conftest.err; then
12235        lt_cv_prog_compiler_c_o_CXX=yes
12236      fi
12237    fi
12238    chmod u+w .
12239    $rm conftest*
12240    # SGI C++ compiler will create directory out/ii_files/ for
12241    # template instantiation
12242    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12243    $rm out/* && rmdir out
12244    cd ..
12245    rmdir conftest
12246    $rm conftest*
12247
12248 fi
12249 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12250 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12251
12252
12253 hard_links="nottested"
12254 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12255   # do not overwrite the value of need_locks provided by the user
12256   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12257 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12258   hard_links=yes
12259   $rm conftest*
12260   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12261   touch conftest.a
12262   ln conftest.a conftest.b 2>&5 || hard_links=no
12263   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12264   echo "$as_me:$LINENO: result: $hard_links" >&5
12265 echo "${ECHO_T}$hard_links" >&6
12266   if test "$hard_links" = no; then
12267     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12268 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12269     need_locks=warn
12270   fi
12271 else
12272   need_locks=no
12273 fi
12274
12275 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12277
12278   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12279   case $host_os in
12280   aix4* | aix5*)
12281     # If we're using GNU nm, then we don't want the "-C" option.
12282     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12283     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12284       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'
12285     else
12286       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'
12287     fi
12288     ;;
12289   pw32*)
12290     export_symbols_cmds_CXX="$ltdll_cmds"
12291   ;;
12292   cygwin* | mingw*)
12293     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12294   ;;
12295   *)
12296     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12297   ;;
12298   esac
12299
12300 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12301 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12302 test "$ld_shlibs_CXX" = no && can_build_shared=no
12303
12304 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12305 if test "$GCC" = yes; then
12306   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12307 fi
12308
12309 #
12310 # Do we need to explicitly link libc?
12311 #
12312 case "x$archive_cmds_need_lc_CXX" in
12313 x|xyes)
12314   # Assume -lc should be added
12315   archive_cmds_need_lc_CXX=yes
12316
12317   if test "$enable_shared" = yes && test "$GCC" = yes; then
12318     case $archive_cmds_CXX in
12319     *'~'*)
12320       # FIXME: we may have to deal with multi-command sequences.
12321       ;;
12322     '$CC '*)
12323       # Test whether the compiler implicitly links with -lc since on some
12324       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12325       # to ld, don't add -lc before -lgcc.
12326       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12327 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12328       $rm conftest*
12329       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12330
12331       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12332   (eval $ac_compile) 2>&5
12333   ac_status=$?
12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335   (exit $ac_status); } 2>conftest.err; then
12336         soname=conftest
12337         lib=conftest
12338         libobjs=conftest.$ac_objext
12339         deplibs=
12340         wl=$lt_prog_compiler_wl_CXX
12341         compiler_flags=-v
12342         linker_flags=-v
12343         verstring=
12344         output_objdir=.
12345         libname=conftest
12346         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12347         allow_undefined_flag_CXX=
12348         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12349   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12350   ac_status=$?
12351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352   (exit $ac_status); }
12353         then
12354           archive_cmds_need_lc_CXX=no
12355         else
12356           archive_cmds_need_lc_CXX=yes
12357         fi
12358         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12359       else
12360         cat conftest.err 1>&5
12361       fi
12362       $rm conftest*
12363       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12364 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12365       ;;
12366     esac
12367   fi
12368   ;;
12369 esac
12370
12371 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12372 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12373 library_names_spec=
12374 libname_spec='lib$name'
12375 soname_spec=
12376 shrext_cmds=".so"
12377 postinstall_cmds=
12378 postuninstall_cmds=
12379 finish_cmds=
12380 finish_eval=
12381 shlibpath_var=
12382 shlibpath_overrides_runpath=unknown
12383 version_type=none
12384 dynamic_linker="$host_os ld.so"
12385 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12386 if test "$GCC" = yes; then
12387   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12388   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12389     # if the path contains ";" then we assume it to be the separator
12390     # otherwise default to the standard path separator (i.e. ":") - it is
12391     # assumed that no part of a normal pathname contains ";" but that should
12392     # okay in the real world where ";" in dirpaths is itself problematic.
12393     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12394   else
12395     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12396   fi
12397 else
12398   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12399 fi
12400 need_lib_prefix=unknown
12401 hardcode_into_libs=no
12402
12403 # when you set need_version to no, make sure it does not cause -set_version
12404 # flags to be left without arguments
12405 need_version=unknown
12406
12407 case $host_os in
12408 aix3*)
12409   version_type=linux
12410   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12411   shlibpath_var=LIBPATH
12412
12413   # AIX 3 has no versioning support, so we append a major version to the name.
12414   soname_spec='${libname}${release}${shared_ext}$major'
12415   ;;
12416
12417 aix4* | aix5*)
12418   version_type=linux
12419   need_lib_prefix=no
12420   need_version=no
12421   hardcode_into_libs=yes
12422   if test "$host_cpu" = ia64; then
12423     # AIX 5 supports IA64
12424     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12425     shlibpath_var=LD_LIBRARY_PATH
12426   else
12427     # With GCC up to 2.95.x, collect2 would create an import file
12428     # for dependence libraries.  The import file would start with
12429     # the line `#! .'.  This would cause the generated library to
12430     # depend on `.', always an invalid library.  This was fixed in
12431     # development snapshots of GCC prior to 3.0.
12432     case $host_os in
12433       aix4 | aix4.[01] | aix4.[01].*)
12434       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12435            echo ' yes '
12436            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12437         :
12438       else
12439         can_build_shared=no
12440       fi
12441       ;;
12442     esac
12443     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12444     # soname into executable. Probably we can add versioning support to
12445     # collect2, so additional links can be useful in future.
12446     if test "$aix_use_runtimelinking" = yes; then
12447       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12448       # instead of lib<name>.a to let people know that these are not
12449       # typical AIX shared libraries.
12450       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12451     else
12452       # We preserve .a as extension for shared libraries through AIX4.2
12453       # and later when we are not doing run time linking.
12454       library_names_spec='${libname}${release}.a $libname.a'
12455       soname_spec='${libname}${release}${shared_ext}$major'
12456     fi
12457     shlibpath_var=LIBPATH
12458   fi
12459   ;;
12460
12461 amigaos*)
12462   library_names_spec='$libname.ixlibrary $libname.a'
12463   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12464   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'
12465   ;;
12466
12467 beos*)
12468   library_names_spec='${libname}${shared_ext}'
12469   dynamic_linker="$host_os ld.so"
12470   shlibpath_var=LIBRARY_PATH
12471   ;;
12472
12473 bsdi4*)
12474   version_type=linux
12475   need_version=no
12476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12477   soname_spec='${libname}${release}${shared_ext}$major'
12478   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12479   shlibpath_var=LD_LIBRARY_PATH
12480   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12481   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12482   # the default ld.so.conf also contains /usr/contrib/lib and
12483   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12484   # libtool to hard-code these into programs
12485   ;;
12486
12487 cygwin* | mingw* | pw32*)
12488   version_type=windows
12489   shrext_cmds=".dll"
12490   need_version=no
12491   need_lib_prefix=no
12492
12493   case $GCC,$host_os in
12494   yes,cygwin* | yes,mingw* | yes,pw32*)
12495     library_names_spec='$libname.dll.a'
12496     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12497     postinstall_cmds='base_file=`basename \${file}`~
12498       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12499       dldir=$destdir/`dirname \$dlpath`~
12500       test -d \$dldir || mkdir -p \$dldir~
12501       $install_prog $dir/$dlname \$dldir/$dlname'
12502     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12503       dlpath=$dir/\$dldll~
12504        $rm \$dlpath'
12505     shlibpath_overrides_runpath=yes
12506
12507     case $host_os in
12508     cygwin*)
12509       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12510       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12511       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12512       ;;
12513     mingw*)
12514       # MinGW DLLs use traditional 'lib' prefix
12515       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12516       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12517       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12518         # It is most probably a Windows format PATH printed by
12519         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12520         # path with ; separators, and with drive letters. We can handle the
12521         # drive letters (cygwin fileutils understands them), so leave them,
12522         # especially as we might pass files found there to a mingw objdump,
12523         # which wouldn't understand a cygwinified path. Ahh.
12524         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12525       else
12526         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12527       fi
12528       ;;
12529     pw32*)
12530       # pw32 DLLs use 'pw' prefix rather than 'lib'
12531       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12532       ;;
12533     esac
12534     ;;
12535
12536   *)
12537     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12538     ;;
12539   esac
12540   dynamic_linker='Win32 ld.exe'
12541   # FIXME: first we should search . and the directory the executable is in
12542   shlibpath_var=PATH
12543   ;;
12544
12545 darwin* | rhapsody*)
12546   dynamic_linker="$host_os dyld"
12547   version_type=darwin
12548   need_lib_prefix=no
12549   need_version=no
12550   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12551   soname_spec='${libname}${release}${major}$shared_ext'
12552   shlibpath_overrides_runpath=yes
12553   shlibpath_var=DYLD_LIBRARY_PATH
12554   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12555   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12556   if test "$GCC" = yes; then
12557     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"`
12558   else
12559     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12560   fi
12561   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12562   ;;
12563
12564 dgux*)
12565   version_type=linux
12566   need_lib_prefix=no
12567   need_version=no
12568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12569   soname_spec='${libname}${release}${shared_ext}$major'
12570   shlibpath_var=LD_LIBRARY_PATH
12571   ;;
12572
12573 freebsd1*)
12574   dynamic_linker=no
12575   ;;
12576
12577 kfreebsd*-gnu)
12578   version_type=linux
12579   need_lib_prefix=no
12580   need_version=no
12581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12582   soname_spec='${libname}${release}${shared_ext}$major'
12583   shlibpath_var=LD_LIBRARY_PATH
12584   shlibpath_overrides_runpath=no
12585   hardcode_into_libs=yes
12586   dynamic_linker='GNU ld.so'
12587   ;;
12588
12589 freebsd*)
12590   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12591   version_type=freebsd-$objformat
12592   case $version_type in
12593     freebsd-elf*)
12594       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12595       need_version=no
12596       need_lib_prefix=no
12597       ;;
12598     freebsd-*)
12599       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12600       need_version=yes
12601       ;;
12602   esac
12603   shlibpath_var=LD_LIBRARY_PATH
12604   case $host_os in
12605   freebsd2*)
12606     shlibpath_overrides_runpath=yes
12607     ;;
12608   freebsd3.01* | freebsdelf3.01*)
12609     shlibpath_overrides_runpath=yes
12610     hardcode_into_libs=yes
12611     ;;
12612   *) # from 3.2 on
12613     shlibpath_overrides_runpath=no
12614     hardcode_into_libs=yes
12615     ;;
12616   esac
12617   ;;
12618
12619 gnu*)
12620   version_type=linux
12621   need_lib_prefix=no
12622   need_version=no
12623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12624   soname_spec='${libname}${release}${shared_ext}$major'
12625   shlibpath_var=LD_LIBRARY_PATH
12626   hardcode_into_libs=yes
12627   ;;
12628
12629 hpux9* | hpux10* | hpux11*)
12630   # Give a soname corresponding to the major version so that dld.sl refuses to
12631   # link against other versions.
12632   version_type=sunos
12633   need_lib_prefix=no
12634   need_version=no
12635   case "$host_cpu" in
12636   ia64*)
12637     shrext_cmds='.so'
12638     hardcode_into_libs=yes
12639     dynamic_linker="$host_os dld.so"
12640     shlibpath_var=LD_LIBRARY_PATH
12641     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12642     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12643     soname_spec='${libname}${release}${shared_ext}$major'
12644     if test "X$HPUX_IA64_MODE" = X32; then
12645       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12646     else
12647       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12648     fi
12649     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12650     ;;
12651    hppa*64*)
12652      shrext_cmds='.sl'
12653      hardcode_into_libs=yes
12654      dynamic_linker="$host_os dld.sl"
12655      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12656      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12657      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12658      soname_spec='${libname}${release}${shared_ext}$major'
12659      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12660      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12661      ;;
12662    *)
12663     shrext_cmds='.sl'
12664     dynamic_linker="$host_os dld.sl"
12665     shlibpath_var=SHLIB_PATH
12666     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12668     soname_spec='${libname}${release}${shared_ext}$major'
12669     ;;
12670   esac
12671   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12672   postinstall_cmds='chmod 555 $lib'
12673   ;;
12674
12675 irix5* | irix6* | nonstopux*)
12676   case $host_os in
12677     nonstopux*) version_type=nonstopux ;;
12678     *)
12679         if test "$lt_cv_prog_gnu_ld" = yes; then
12680                 version_type=linux
12681         else
12682                 version_type=irix
12683         fi ;;
12684   esac
12685   need_lib_prefix=no
12686   need_version=no
12687   soname_spec='${libname}${release}${shared_ext}$major'
12688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12689   case $host_os in
12690   irix5* | nonstopux*)
12691     libsuff= shlibsuff=
12692     ;;
12693   *)
12694     case $LD in # libtool.m4 will add one of these switches to LD
12695     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12696       libsuff= shlibsuff= libmagic=32-bit;;
12697     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12698       libsuff=32 shlibsuff=N32 libmagic=N32;;
12699     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12700       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12701     *) libsuff= shlibsuff= libmagic=never-match;;
12702     esac
12703     ;;
12704   esac
12705   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12706   shlibpath_overrides_runpath=no
12707   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12708   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12709   hardcode_into_libs=yes
12710   ;;
12711
12712 # No shared lib support for Linux oldld, aout, or coff.
12713 linux*oldld* | linux*aout* | linux*coff*)
12714   dynamic_linker=no
12715   ;;
12716
12717 # This must be Linux ELF.
12718 linux*)
12719   version_type=linux
12720   need_lib_prefix=no
12721   need_version=no
12722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12723   soname_spec='${libname}${release}${shared_ext}$major'
12724   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12725   shlibpath_var=LD_LIBRARY_PATH
12726   shlibpath_overrides_runpath=no
12727   # This implies no fast_install, which is unacceptable.
12728   # Some rework will be needed to allow for fast_install
12729   # before this can be enabled.
12730   hardcode_into_libs=yes
12731
12732   # find out which ABI we are using
12733   libsuff=
12734   case "$host_cpu" in
12735   x86_64*|s390x*|powerpc64*)
12736     echo '#line 12736 "configure"' > conftest.$ac_ext
12737     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738   (eval $ac_compile) 2>&5
12739   ac_status=$?
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); }; then
12742       case `/usr/bin/file conftest.$ac_objext` in
12743       *64-bit*)
12744         libsuff=64
12745         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12746         ;;
12747       esac
12748     fi
12749     rm -rf conftest*
12750     ;;
12751   esac
12752
12753   # Append ld.so.conf contents to the search path
12754   if test -f /etc/ld.so.conf; then
12755     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12756     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12757   fi
12758
12759   # We used to test for /lib/ld.so.1 and disable shared libraries on
12760   # powerpc, because MkLinux only supported shared libraries with the
12761   # GNU dynamic linker.  Since this was broken with cross compilers,
12762   # most powerpc-linux boxes support dynamic linking these days and
12763   # people can always --disable-shared, the test was removed, and we
12764   # assume the GNU/Linux dynamic linker is in use.
12765   dynamic_linker='GNU/Linux ld.so'
12766   ;;
12767
12768 knetbsd*-gnu)
12769   version_type=linux
12770   need_lib_prefix=no
12771   need_version=no
12772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12773   soname_spec='${libname}${release}${shared_ext}$major'
12774   shlibpath_var=LD_LIBRARY_PATH
12775   shlibpath_overrides_runpath=no
12776   hardcode_into_libs=yes
12777   dynamic_linker='GNU ld.so'
12778   ;;
12779
12780 netbsd*)
12781   version_type=sunos
12782   need_lib_prefix=no
12783   need_version=no
12784   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12785     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12786     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12787     dynamic_linker='NetBSD (a.out) ld.so'
12788   else
12789     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12790     soname_spec='${libname}${release}${shared_ext}$major'
12791     dynamic_linker='NetBSD ld.elf_so'
12792   fi
12793   shlibpath_var=LD_LIBRARY_PATH
12794   shlibpath_overrides_runpath=yes
12795   hardcode_into_libs=yes
12796   ;;
12797
12798 newsos6)
12799   version_type=linux
12800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12801   shlibpath_var=LD_LIBRARY_PATH
12802   shlibpath_overrides_runpath=yes
12803   ;;
12804
12805 nto-qnx*)
12806   version_type=linux
12807   need_lib_prefix=no
12808   need_version=no
12809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12810   soname_spec='${libname}${release}${shared_ext}$major'
12811   shlibpath_var=LD_LIBRARY_PATH
12812   shlibpath_overrides_runpath=yes
12813   ;;
12814
12815 openbsd*)
12816   version_type=sunos
12817   need_lib_prefix=no
12818   need_version=yes
12819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12820   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12821   shlibpath_var=LD_LIBRARY_PATH
12822   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12823     case $host_os in
12824       openbsd2.[89] | openbsd2.[89].*)
12825         shlibpath_overrides_runpath=no
12826         ;;
12827       *)
12828         shlibpath_overrides_runpath=yes
12829         ;;
12830       esac
12831   else
12832     shlibpath_overrides_runpath=yes
12833   fi
12834   ;;
12835
12836 os2*)
12837   libname_spec='$name'
12838   shrext_cmds=".dll"
12839   need_lib_prefix=no
12840   library_names_spec='$libname${shared_ext} $libname.a'
12841   dynamic_linker='OS/2 ld.exe'
12842   shlibpath_var=LIBPATH
12843   ;;
12844
12845 osf3* | osf4* | osf5*)
12846   version_type=osf
12847   need_lib_prefix=no
12848   need_version=no
12849   soname_spec='${libname}${release}${shared_ext}$major'
12850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12851   shlibpath_var=LD_LIBRARY_PATH
12852   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12853   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12854   ;;
12855
12856 sco3.2v5*)
12857   version_type=osf
12858   soname_spec='${libname}${release}${shared_ext}$major'
12859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12860   shlibpath_var=LD_LIBRARY_PATH
12861   ;;
12862
12863 solaris*)
12864   version_type=linux
12865   need_lib_prefix=no
12866   need_version=no
12867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12868   soname_spec='${libname}${release}${shared_ext}$major'
12869   shlibpath_var=LD_LIBRARY_PATH
12870   shlibpath_overrides_runpath=yes
12871   hardcode_into_libs=yes
12872   # ldd complains unless libraries are executable
12873   postinstall_cmds='chmod +x $lib'
12874   ;;
12875
12876 sunos4*)
12877   version_type=sunos
12878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12879   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12880   shlibpath_var=LD_LIBRARY_PATH
12881   shlibpath_overrides_runpath=yes
12882   if test "$with_gnu_ld" = yes; then
12883     need_lib_prefix=no
12884   fi
12885   need_version=yes
12886   ;;
12887
12888 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12889   version_type=linux
12890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12891   soname_spec='${libname}${release}${shared_ext}$major'
12892   shlibpath_var=LD_LIBRARY_PATH
12893   case $host_vendor in
12894     sni)
12895       shlibpath_overrides_runpath=no
12896       need_lib_prefix=no
12897       export_dynamic_flag_spec='${wl}-Blargedynsym'
12898       runpath_var=LD_RUN_PATH
12899       ;;
12900     siemens)
12901       need_lib_prefix=no
12902       ;;
12903     motorola)
12904       need_lib_prefix=no
12905       need_version=no
12906       shlibpath_overrides_runpath=no
12907       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12908       ;;
12909   esac
12910   ;;
12911
12912 sysv4*MP*)
12913   if test -d /usr/nec ;then
12914     version_type=linux
12915     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12916     soname_spec='$libname${shared_ext}.$major'
12917     shlibpath_var=LD_LIBRARY_PATH
12918   fi
12919   ;;
12920
12921 uts4*)
12922   version_type=linux
12923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12924   soname_spec='${libname}${release}${shared_ext}$major'
12925   shlibpath_var=LD_LIBRARY_PATH
12926   ;;
12927
12928 *)
12929   dynamic_linker=no
12930   ;;
12931 esac
12932 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12933 echo "${ECHO_T}$dynamic_linker" >&6
12934 test "$dynamic_linker" = no && can_build_shared=no
12935
12936 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12937 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12938 hardcode_action_CXX=
12939 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12940    test -n "$runpath_var CXX" || \
12941    test "X$hardcode_automatic_CXX"="Xyes" ; then
12942
12943   # We can hardcode non-existant directories.
12944   if test "$hardcode_direct_CXX" != no &&
12945      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12946      # have to relink, otherwise we might link with an installed library
12947      # when we should be linking with a yet-to-be-installed one
12948      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12949      test "$hardcode_minus_L_CXX" != no; then
12950     # Linking always hardcodes the temporary library directory.
12951     hardcode_action_CXX=relink
12952   else
12953     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12954     hardcode_action_CXX=immediate
12955   fi
12956 else
12957   # We cannot hardcode anything, or else we can only hardcode existing
12958   # directories.
12959   hardcode_action_CXX=unsupported
12960 fi
12961 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12962 echo "${ECHO_T}$hardcode_action_CXX" >&6
12963
12964 if test "$hardcode_action_CXX" = relink; then
12965   # Fast installation is not supported
12966   enable_fast_install=no
12967 elif test "$shlibpath_overrides_runpath" = yes ||
12968      test "$enable_shared" = no; then
12969   # Fast installation is not necessary
12970   enable_fast_install=needless
12971 fi
12972
12973 striplib=
12974 old_striplib=
12975 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12976 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12977 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12978   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12979   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12980   echo "$as_me:$LINENO: result: yes" >&5
12981 echo "${ECHO_T}yes" >&6
12982 else
12983 # FIXME - insert some real tests, host_os isn't really good enough
12984   case $host_os in
12985    darwin*)
12986        if test -n "$STRIP" ; then
12987          striplib="$STRIP -x"
12988          echo "$as_me:$LINENO: result: yes" >&5
12989 echo "${ECHO_T}yes" >&6
12990        else
12991   echo "$as_me:$LINENO: result: no" >&5
12992 echo "${ECHO_T}no" >&6
12993 fi
12994        ;;
12995    *)
12996   echo "$as_me:$LINENO: result: no" >&5
12997 echo "${ECHO_T}no" >&6
12998     ;;
12999   esac
13000 fi
13001
13002 if test "x$enable_dlopen" != xyes; then
13003   enable_dlopen=unknown
13004   enable_dlopen_self=unknown
13005   enable_dlopen_self_static=unknown
13006 else
13007   lt_cv_dlopen=no
13008   lt_cv_dlopen_libs=
13009
13010   case $host_os in
13011   beos*)
13012     lt_cv_dlopen="load_add_on"
13013     lt_cv_dlopen_libs=
13014     lt_cv_dlopen_self=yes
13015     ;;
13016
13017   mingw* | pw32*)
13018     lt_cv_dlopen="LoadLibrary"
13019     lt_cv_dlopen_libs=
13020    ;;
13021
13022   cygwin*)
13023     lt_cv_dlopen="dlopen"
13024     lt_cv_dlopen_libs=
13025    ;;
13026
13027   darwin*)
13028   # if libdl is installed we need to link against it
13029     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13030 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13031 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13032   echo $ECHO_N "(cached) $ECHO_C" >&6
13033 else
13034   ac_check_lib_save_LIBS=$LIBS
13035 LIBS="-ldl  $LIBS"
13036 cat >conftest.$ac_ext <<_ACEOF
13037 /* confdefs.h.  */
13038 _ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h.  */
13042
13043 /* Override any gcc2 internal prototype to avoid an error.  */
13044 #ifdef __cplusplus
13045 extern "C"
13046 #endif
13047 /* We use char because int might match the return type of a gcc2
13048    builtin and then its argument prototype would still apply.  */
13049 char dlopen ();
13050 int
13051 main ()
13052 {
13053 dlopen ();
13054   ;
13055   return 0;
13056 }
13057 _ACEOF
13058 rm -f conftest.$ac_objext conftest$ac_exeext
13059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13060   (eval $ac_link) 2>conftest.er1
13061   ac_status=$?
13062   grep -v '^ *+' conftest.er1 >conftest.err
13063   rm -f conftest.er1
13064   cat conftest.err >&5
13065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066   (exit $ac_status); } &&
13067          { ac_try='test -z "$ac_cxx_werror_flag"
13068                          || test ! -s conftest.err'
13069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070   (eval $ac_try) 2>&5
13071   ac_status=$?
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); }; } &&
13074          { ac_try='test -s conftest$ac_exeext'
13075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076   (eval $ac_try) 2>&5
13077   ac_status=$?
13078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079   (exit $ac_status); }; }; then
13080   ac_cv_lib_dl_dlopen=yes
13081 else
13082   echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13084
13085 ac_cv_lib_dl_dlopen=no
13086 fi
13087 rm -f conftest.err conftest.$ac_objext \
13088       conftest$ac_exeext conftest.$ac_ext
13089 LIBS=$ac_check_lib_save_LIBS
13090 fi
13091 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13092 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13093 if test $ac_cv_lib_dl_dlopen = yes; then
13094   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13095 else
13096
13097     lt_cv_dlopen="dyld"
13098     lt_cv_dlopen_libs=
13099     lt_cv_dlopen_self=yes
13100
13101 fi
13102
13103    ;;
13104
13105   *)
13106     echo "$as_me:$LINENO: checking for shl_load" >&5
13107 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13108 if test "${ac_cv_func_shl_load+set}" = set; then
13109   echo $ECHO_N "(cached) $ECHO_C" >&6
13110 else
13111   cat >conftest.$ac_ext <<_ACEOF
13112 /* confdefs.h.  */
13113 _ACEOF
13114 cat confdefs.h >>conftest.$ac_ext
13115 cat >>conftest.$ac_ext <<_ACEOF
13116 /* end confdefs.h.  */
13117 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13119 #define shl_load innocuous_shl_load
13120
13121 /* System header to define __stub macros and hopefully few prototypes,
13122     which can conflict with char shl_load (); below.
13123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13124     <limits.h> exists even on freestanding compilers.  */
13125
13126 #ifdef __STDC__
13127 # include <limits.h>
13128 #else
13129 # include <assert.h>
13130 #endif
13131
13132 #undef shl_load
13133
13134 /* Override any gcc2 internal prototype to avoid an error.  */
13135 #ifdef __cplusplus
13136 extern "C"
13137 {
13138 #endif
13139 /* We use char because int might match the return type of a gcc2
13140    builtin and then its argument prototype would still apply.  */
13141 char shl_load ();
13142 /* The GNU C library defines this for functions which it implements
13143     to always fail with ENOSYS.  Some functions are actually named
13144     something starting with __ and the normal name is an alias.  */
13145 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13146 choke me
13147 #else
13148 char (*f) () = shl_load;
13149 #endif
13150 #ifdef __cplusplus
13151 }
13152 #endif
13153
13154 int
13155 main ()
13156 {
13157 return f != shl_load;
13158   ;
13159   return 0;
13160 }
13161 _ACEOF
13162 rm -f conftest.$ac_objext conftest$ac_exeext
13163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13164   (eval $ac_link) 2>conftest.er1
13165   ac_status=$?
13166   grep -v '^ *+' conftest.er1 >conftest.err
13167   rm -f conftest.er1
13168   cat conftest.err >&5
13169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170   (exit $ac_status); } &&
13171          { ac_try='test -z "$ac_cxx_werror_flag"
13172                          || test ! -s conftest.err'
13173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174   (eval $ac_try) 2>&5
13175   ac_status=$?
13176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); }; } &&
13178          { ac_try='test -s conftest$ac_exeext'
13179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180   (eval $ac_try) 2>&5
13181   ac_status=$?
13182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); }; }; then
13184   ac_cv_func_shl_load=yes
13185 else
13186   echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13188
13189 ac_cv_func_shl_load=no
13190 fi
13191 rm -f conftest.err conftest.$ac_objext \
13192       conftest$ac_exeext conftest.$ac_ext
13193 fi
13194 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13195 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13196 if test $ac_cv_func_shl_load = yes; then
13197   lt_cv_dlopen="shl_load"
13198 else
13199   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13200 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13201 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13202   echo $ECHO_N "(cached) $ECHO_C" >&6
13203 else
13204   ac_check_lib_save_LIBS=$LIBS
13205 LIBS="-ldld  $LIBS"
13206 cat >conftest.$ac_ext <<_ACEOF
13207 /* confdefs.h.  */
13208 _ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h.  */
13212
13213 /* Override any gcc2 internal prototype to avoid an error.  */
13214 #ifdef __cplusplus
13215 extern "C"
13216 #endif
13217 /* We use char because int might match the return type of a gcc2
13218    builtin and then its argument prototype would still apply.  */
13219 char shl_load ();
13220 int
13221 main ()
13222 {
13223 shl_load ();
13224   ;
13225   return 0;
13226 }
13227 _ACEOF
13228 rm -f conftest.$ac_objext conftest$ac_exeext
13229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13230   (eval $ac_link) 2>conftest.er1
13231   ac_status=$?
13232   grep -v '^ *+' conftest.er1 >conftest.err
13233   rm -f conftest.er1
13234   cat conftest.err >&5
13235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236   (exit $ac_status); } &&
13237          { ac_try='test -z "$ac_cxx_werror_flag"
13238                          || test ! -s conftest.err'
13239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240   (eval $ac_try) 2>&5
13241   ac_status=$?
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); }; } &&
13244          { ac_try='test -s conftest$ac_exeext'
13245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246   (eval $ac_try) 2>&5
13247   ac_status=$?
13248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249   (exit $ac_status); }; }; then
13250   ac_cv_lib_dld_shl_load=yes
13251 else
13252   echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13254
13255 ac_cv_lib_dld_shl_load=no
13256 fi
13257 rm -f conftest.err conftest.$ac_objext \
13258       conftest$ac_exeext conftest.$ac_ext
13259 LIBS=$ac_check_lib_save_LIBS
13260 fi
13261 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13262 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13263 if test $ac_cv_lib_dld_shl_load = yes; then
13264   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13265 else
13266   echo "$as_me:$LINENO: checking for dlopen" >&5
13267 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13268 if test "${ac_cv_func_dlopen+set}" = set; then
13269   echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271   cat >conftest.$ac_ext <<_ACEOF
13272 /* confdefs.h.  */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h.  */
13277 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13279 #define dlopen innocuous_dlopen
13280
13281 /* System header to define __stub macros and hopefully few prototypes,
13282     which can conflict with char dlopen (); below.
13283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13284     <limits.h> exists even on freestanding compilers.  */
13285
13286 #ifdef __STDC__
13287 # include <limits.h>
13288 #else
13289 # include <assert.h>
13290 #endif
13291
13292 #undef dlopen
13293
13294 /* Override any gcc2 internal prototype to avoid an error.  */
13295 #ifdef __cplusplus
13296 extern "C"
13297 {
13298 #endif
13299 /* We use char because int might match the return type of a gcc2
13300    builtin and then its argument prototype would still apply.  */
13301 char dlopen ();
13302 /* The GNU C library defines this for functions which it implements
13303     to always fail with ENOSYS.  Some functions are actually named
13304     something starting with __ and the normal name is an alias.  */
13305 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13306 choke me
13307 #else
13308 char (*f) () = dlopen;
13309 #endif
13310 #ifdef __cplusplus
13311 }
13312 #endif
13313
13314 int
13315 main ()
13316 {
13317 return f != dlopen;
13318   ;
13319   return 0;
13320 }
13321 _ACEOF
13322 rm -f conftest.$ac_objext conftest$ac_exeext
13323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13324   (eval $ac_link) 2>conftest.er1
13325   ac_status=$?
13326   grep -v '^ *+' conftest.er1 >conftest.err
13327   rm -f conftest.er1
13328   cat conftest.err >&5
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); } &&
13331          { ac_try='test -z "$ac_cxx_werror_flag"
13332                          || test ! -s conftest.err'
13333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334   (eval $ac_try) 2>&5
13335   ac_status=$?
13336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); }; } &&
13338          { ac_try='test -s conftest$ac_exeext'
13339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340   (eval $ac_try) 2>&5
13341   ac_status=$?
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); }; }; then
13344   ac_cv_func_dlopen=yes
13345 else
13346   echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13348
13349 ac_cv_func_dlopen=no
13350 fi
13351 rm -f conftest.err conftest.$ac_objext \
13352       conftest$ac_exeext conftest.$ac_ext
13353 fi
13354 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13355 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13356 if test $ac_cv_func_dlopen = yes; then
13357   lt_cv_dlopen="dlopen"
13358 else
13359   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13360 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13361 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13362   echo $ECHO_N "(cached) $ECHO_C" >&6
13363 else
13364   ac_check_lib_save_LIBS=$LIBS
13365 LIBS="-ldl  $LIBS"
13366 cat >conftest.$ac_ext <<_ACEOF
13367 /* confdefs.h.  */
13368 _ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h.  */
13372
13373 /* Override any gcc2 internal prototype to avoid an error.  */
13374 #ifdef __cplusplus
13375 extern "C"
13376 #endif
13377 /* We use char because int might match the return type of a gcc2
13378    builtin and then its argument prototype would still apply.  */
13379 char dlopen ();
13380 int
13381 main ()
13382 {
13383 dlopen ();
13384   ;
13385   return 0;
13386 }
13387 _ACEOF
13388 rm -f conftest.$ac_objext conftest$ac_exeext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13390   (eval $ac_link) 2>conftest.er1
13391   ac_status=$?
13392   grep -v '^ *+' conftest.er1 >conftest.err
13393   rm -f conftest.er1
13394   cat conftest.err >&5
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); } &&
13397          { ac_try='test -z "$ac_cxx_werror_flag"
13398                          || test ! -s conftest.err'
13399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400   (eval $ac_try) 2>&5
13401   ac_status=$?
13402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403   (exit $ac_status); }; } &&
13404          { ac_try='test -s conftest$ac_exeext'
13405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406   (eval $ac_try) 2>&5
13407   ac_status=$?
13408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409   (exit $ac_status); }; }; then
13410   ac_cv_lib_dl_dlopen=yes
13411 else
13412   echo "$as_me: failed program was:" >&5
13413 sed 's/^/| /' conftest.$ac_ext >&5
13414
13415 ac_cv_lib_dl_dlopen=no
13416 fi
13417 rm -f conftest.err conftest.$ac_objext \
13418       conftest$ac_exeext conftest.$ac_ext
13419 LIBS=$ac_check_lib_save_LIBS
13420 fi
13421 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13422 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13423 if test $ac_cv_lib_dl_dlopen = yes; then
13424   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13425 else
13426   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13427 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13428 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13429   echo $ECHO_N "(cached) $ECHO_C" >&6
13430 else
13431   ac_check_lib_save_LIBS=$LIBS
13432 LIBS="-lsvld  $LIBS"
13433 cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h.  */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h.  */
13439
13440 /* Override any gcc2 internal prototype to avoid an error.  */
13441 #ifdef __cplusplus
13442 extern "C"
13443 #endif
13444 /* We use char because int might match the return type of a gcc2
13445    builtin and then its argument prototype would still apply.  */
13446 char dlopen ();
13447 int
13448 main ()
13449 {
13450 dlopen ();
13451   ;
13452   return 0;
13453 }
13454 _ACEOF
13455 rm -f conftest.$ac_objext conftest$ac_exeext
13456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13457   (eval $ac_link) 2>conftest.er1
13458   ac_status=$?
13459   grep -v '^ *+' conftest.er1 >conftest.err
13460   rm -f conftest.er1
13461   cat conftest.err >&5
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   (exit $ac_status); } &&
13464          { ac_try='test -z "$ac_cxx_werror_flag"
13465                          || test ! -s conftest.err'
13466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467   (eval $ac_try) 2>&5
13468   ac_status=$?
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); }; } &&
13471          { ac_try='test -s conftest$ac_exeext'
13472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473   (eval $ac_try) 2>&5
13474   ac_status=$?
13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476   (exit $ac_status); }; }; then
13477   ac_cv_lib_svld_dlopen=yes
13478 else
13479   echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13481
13482 ac_cv_lib_svld_dlopen=no
13483 fi
13484 rm -f conftest.err conftest.$ac_objext \
13485       conftest$ac_exeext conftest.$ac_ext
13486 LIBS=$ac_check_lib_save_LIBS
13487 fi
13488 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13489 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13490 if test $ac_cv_lib_svld_dlopen = yes; then
13491   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13492 else
13493   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13494 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13495 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13496   echo $ECHO_N "(cached) $ECHO_C" >&6
13497 else
13498   ac_check_lib_save_LIBS=$LIBS
13499 LIBS="-ldld  $LIBS"
13500 cat >conftest.$ac_ext <<_ACEOF
13501 /* confdefs.h.  */
13502 _ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h.  */
13506
13507 /* Override any gcc2 internal prototype to avoid an error.  */
13508 #ifdef __cplusplus
13509 extern "C"
13510 #endif
13511 /* We use char because int might match the return type of a gcc2
13512    builtin and then its argument prototype would still apply.  */
13513 char dld_link ();
13514 int
13515 main ()
13516 {
13517 dld_link ();
13518   ;
13519   return 0;
13520 }
13521 _ACEOF
13522 rm -f conftest.$ac_objext conftest$ac_exeext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13524   (eval $ac_link) 2>conftest.er1
13525   ac_status=$?
13526   grep -v '^ *+' conftest.er1 >conftest.err
13527   rm -f conftest.er1
13528   cat conftest.err >&5
13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530   (exit $ac_status); } &&
13531          { ac_try='test -z "$ac_cxx_werror_flag"
13532                          || test ! -s conftest.err'
13533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534   (eval $ac_try) 2>&5
13535   ac_status=$?
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); }; } &&
13538          { ac_try='test -s conftest$ac_exeext'
13539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540   (eval $ac_try) 2>&5
13541   ac_status=$?
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); }; }; then
13544   ac_cv_lib_dld_dld_link=yes
13545 else
13546   echo "$as_me: failed program was:" >&5
13547 sed 's/^/| /' conftest.$ac_ext >&5
13548
13549 ac_cv_lib_dld_dld_link=no
13550 fi
13551 rm -f conftest.err conftest.$ac_objext \
13552       conftest$ac_exeext conftest.$ac_ext
13553 LIBS=$ac_check_lib_save_LIBS
13554 fi
13555 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13556 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13557 if test $ac_cv_lib_dld_dld_link = yes; then
13558   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13559 fi
13560
13561
13562 fi
13563
13564
13565 fi
13566
13567
13568 fi
13569
13570
13571 fi
13572
13573
13574 fi
13575
13576     ;;
13577   esac
13578
13579   if test "x$lt_cv_dlopen" != xno; then
13580     enable_dlopen=yes
13581   else
13582     enable_dlopen=no
13583   fi
13584
13585   case $lt_cv_dlopen in
13586   dlopen)
13587     save_CPPFLAGS="$CPPFLAGS"
13588     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13589
13590     save_LDFLAGS="$LDFLAGS"
13591     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13592
13593     save_LIBS="$LIBS"
13594     LIBS="$lt_cv_dlopen_libs $LIBS"
13595
13596     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13597 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13598 if test "${lt_cv_dlopen_self+set}" = set; then
13599   echo $ECHO_N "(cached) $ECHO_C" >&6
13600 else
13601           if test "$cross_compiling" = yes; then :
13602   lt_cv_dlopen_self=cross
13603 else
13604   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13605   lt_status=$lt_dlunknown
13606   cat > conftest.$ac_ext <<EOF
13607 #line 13607 "configure"
13608 #include "confdefs.h"
13609
13610 #if HAVE_DLFCN_H
13611 #include <dlfcn.h>
13612 #endif
13613
13614 #include <stdio.h>
13615
13616 #ifdef RTLD_GLOBAL
13617 #  define LT_DLGLOBAL           RTLD_GLOBAL
13618 #else
13619 #  ifdef DL_GLOBAL
13620 #    define LT_DLGLOBAL         DL_GLOBAL
13621 #  else
13622 #    define LT_DLGLOBAL         0
13623 #  endif
13624 #endif
13625
13626 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13627    find out it does not work in some platform. */
13628 #ifndef LT_DLLAZY_OR_NOW
13629 #  ifdef RTLD_LAZY
13630 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13631 #  else
13632 #    ifdef DL_LAZY
13633 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13634 #    else
13635 #      ifdef RTLD_NOW
13636 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13637 #      else
13638 #        ifdef DL_NOW
13639 #          define LT_DLLAZY_OR_NOW      DL_NOW
13640 #        else
13641 #          define LT_DLLAZY_OR_NOW      0
13642 #        endif
13643 #      endif
13644 #    endif
13645 #  endif
13646 #endif
13647
13648 #ifdef __cplusplus
13649 extern "C" void exit (int);
13650 #endif
13651
13652 void fnord() { int i=42;}
13653 int main ()
13654 {
13655   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13656   int status = $lt_dlunknown;
13657
13658   if (self)
13659     {
13660       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13661       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13662       /* dlclose (self); */
13663     }
13664
13665     exit (status);
13666 }
13667 EOF
13668   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13669   (eval $ac_link) 2>&5
13670   ac_status=$?
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13673     (./conftest; exit; ) 2>/dev/null
13674     lt_status=$?
13675     case x$lt_status in
13676       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13677       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13678       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13679     esac
13680   else :
13681     # compilation failed
13682     lt_cv_dlopen_self=no
13683   fi
13684 fi
13685 rm -fr conftest*
13686
13687
13688 fi
13689 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13690 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13691
13692     if test "x$lt_cv_dlopen_self" = xyes; then
13693       LDFLAGS="$LDFLAGS $link_static_flag"
13694       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13695 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13696 if test "${lt_cv_dlopen_self_static+set}" = set; then
13697   echo $ECHO_N "(cached) $ECHO_C" >&6
13698 else
13699           if test "$cross_compiling" = yes; then :
13700   lt_cv_dlopen_self_static=cross
13701 else
13702   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13703   lt_status=$lt_dlunknown
13704   cat > conftest.$ac_ext <<EOF
13705 #line 13705 "configure"
13706 #include "confdefs.h"
13707
13708 #if HAVE_DLFCN_H
13709 #include <dlfcn.h>
13710 #endif
13711
13712 #include <stdio.h>
13713
13714 #ifdef RTLD_GLOBAL
13715 #  define LT_DLGLOBAL           RTLD_GLOBAL
13716 #else
13717 #  ifdef DL_GLOBAL
13718 #    define LT_DLGLOBAL         DL_GLOBAL
13719 #  else
13720 #    define LT_DLGLOBAL         0
13721 #  endif
13722 #endif
13723
13724 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13725    find out it does not work in some platform. */
13726 #ifndef LT_DLLAZY_OR_NOW
13727 #  ifdef RTLD_LAZY
13728 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13729 #  else
13730 #    ifdef DL_LAZY
13731 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13732 #    else
13733 #      ifdef RTLD_NOW
13734 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13735 #      else
13736 #        ifdef DL_NOW
13737 #          define LT_DLLAZY_OR_NOW      DL_NOW
13738 #        else
13739 #          define LT_DLLAZY_OR_NOW      0
13740 #        endif
13741 #      endif
13742 #    endif
13743 #  endif
13744 #endif
13745
13746 #ifdef __cplusplus
13747 extern "C" void exit (int);
13748 #endif
13749
13750 void fnord() { int i=42;}
13751 int main ()
13752 {
13753   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13754   int status = $lt_dlunknown;
13755
13756   if (self)
13757     {
13758       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13759       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13760       /* dlclose (self); */
13761     }
13762
13763     exit (status);
13764 }
13765 EOF
13766   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13767   (eval $ac_link) 2>&5
13768   ac_status=$?
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13771     (./conftest; exit; ) 2>/dev/null
13772     lt_status=$?
13773     case x$lt_status in
13774       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13775       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13776       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13777     esac
13778   else :
13779     # compilation failed
13780     lt_cv_dlopen_self_static=no
13781   fi
13782 fi
13783 rm -fr conftest*
13784
13785
13786 fi
13787 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13788 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13789     fi
13790
13791     CPPFLAGS="$save_CPPFLAGS"
13792     LDFLAGS="$save_LDFLAGS"
13793     LIBS="$save_LIBS"
13794     ;;
13795   esac
13796
13797   case $lt_cv_dlopen_self in
13798   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13799   *) enable_dlopen_self=unknown ;;
13800   esac
13801
13802   case $lt_cv_dlopen_self_static in
13803   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13804   *) enable_dlopen_self_static=unknown ;;
13805   esac
13806 fi
13807
13808
13809 # The else clause should only fire when bootstrapping the
13810 # libtool distribution, otherwise you forgot to ship ltmain.sh
13811 # with your package, and you will get complaints that there are
13812 # no rules to generate ltmain.sh.
13813 if test -f "$ltmain"; then
13814   # See if we are running on zsh, and set the options which allow our commands through
13815   # without removal of \ escapes.
13816   if test -n "${ZSH_VERSION+set}" ; then
13817     setopt NO_GLOB_SUBST
13818   fi
13819   # Now quote all the things that may contain metacharacters while being
13820   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13821   # variables and quote the copies for generation of the libtool script.
13822   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13823     SED SHELL STRIP \
13824     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13825     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13826     deplibs_check_method reload_flag reload_cmds need_locks \
13827     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13828     lt_cv_sys_global_symbol_to_c_name_address \
13829     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13830     old_postinstall_cmds old_postuninstall_cmds \
13831     compiler_CXX \
13832     CC_CXX \
13833     LD_CXX \
13834     lt_prog_compiler_wl_CXX \
13835     lt_prog_compiler_pic_CXX \
13836     lt_prog_compiler_static_CXX \
13837     lt_prog_compiler_no_builtin_flag_CXX \
13838     export_dynamic_flag_spec_CXX \
13839     thread_safe_flag_spec_CXX \
13840     whole_archive_flag_spec_CXX \
13841     enable_shared_with_static_runtimes_CXX \
13842     old_archive_cmds_CXX \
13843     old_archive_from_new_cmds_CXX \
13844     predep_objects_CXX \
13845     postdep_objects_CXX \
13846     predeps_CXX \
13847     postdeps_CXX \
13848     compiler_lib_search_path_CXX \
13849     archive_cmds_CXX \
13850     archive_expsym_cmds_CXX \
13851     postinstall_cmds_CXX \
13852     postuninstall_cmds_CXX \
13853     old_archive_from_expsyms_cmds_CXX \
13854     allow_undefined_flag_CXX \
13855     no_undefined_flag_CXX \
13856     export_symbols_cmds_CXX \
13857     hardcode_libdir_flag_spec_CXX \
13858     hardcode_libdir_flag_spec_ld_CXX \
13859     hardcode_libdir_separator_CXX \
13860     hardcode_automatic_CXX \
13861     module_cmds_CXX \
13862     module_expsym_cmds_CXX \
13863     lt_cv_prog_compiler_c_o_CXX \
13864     exclude_expsyms_CXX \
13865     include_expsyms_CXX; do
13866
13867     case $var in
13868     old_archive_cmds_CXX | \
13869     old_archive_from_new_cmds_CXX | \
13870     archive_cmds_CXX | \
13871     archive_expsym_cmds_CXX | \
13872     module_cmds_CXX | \
13873     module_expsym_cmds_CXX | \
13874     old_archive_from_expsyms_cmds_CXX | \
13875     export_symbols_cmds_CXX | \
13876     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13877     postinstall_cmds | postuninstall_cmds | \
13878     old_postinstall_cmds | old_postuninstall_cmds | \
13879     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13880       # Double-quote double-evaled strings.
13881       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13882       ;;
13883     *)
13884       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13885       ;;
13886     esac
13887   done
13888
13889   case $lt_echo in
13890   *'\$0 --fallback-echo"')
13891     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13892     ;;
13893   esac
13894
13895 cfgfile="$ofile"
13896
13897   cat <<__EOF__ >> "$cfgfile"
13898 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13899
13900 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13901
13902 # Shell to use when invoking shell scripts.
13903 SHELL=$lt_SHELL
13904
13905 # Whether or not to build shared libraries.
13906 build_libtool_libs=$enable_shared
13907
13908 # Whether or not to build static libraries.
13909 build_old_libs=$enable_static
13910
13911 # Whether or not to add -lc for building shared libraries.
13912 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13913
13914 # Whether or not to disallow shared libs when runtime libs are static
13915 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13916
13917 # Whether or not to optimize for fast installation.
13918 fast_install=$enable_fast_install
13919
13920 # The host system.
13921 host_alias=$host_alias
13922 host=$host
13923
13924 # An echo program that does not interpret backslashes.
13925 echo=$lt_echo
13926
13927 # The archiver.
13928 AR=$lt_AR
13929 AR_FLAGS=$lt_AR_FLAGS
13930
13931 # A C compiler.
13932 LTCC=$lt_LTCC
13933
13934 # A language-specific compiler.
13935 CC=$lt_compiler_CXX
13936
13937 # Is the compiler the GNU C compiler?
13938 with_gcc=$GCC_CXX
13939
13940 # An ERE matcher.
13941 EGREP=$lt_EGREP
13942
13943 # The linker used to build libraries.
13944 LD=$lt_LD_CXX
13945
13946 # Whether we need hard or soft links.
13947 LN_S=$lt_LN_S
13948
13949 # A BSD-compatible nm program.
13950 NM=$lt_NM
13951
13952 # A symbol stripping program
13953 STRIP=$lt_STRIP
13954
13955 # Used to examine libraries when file_magic_cmd begins "file"
13956 MAGIC_CMD=$MAGIC_CMD
13957
13958 # Used on cygwin: DLL creation program.
13959 DLLTOOL="$DLLTOOL"
13960
13961 # Used on cygwin: object dumper.
13962 OBJDUMP="$OBJDUMP"
13963
13964 # Used on cygwin: assembler.
13965 AS="$AS"
13966
13967 # The name of the directory that contains temporary libtool files.
13968 objdir=$objdir
13969
13970 # How to create reloadable object files.
13971 reload_flag=$lt_reload_flag
13972 reload_cmds=$lt_reload_cmds
13973
13974 # How to pass a linker flag through the compiler.
13975 wl=$lt_lt_prog_compiler_wl_CXX
13976
13977 # Object file suffix (normally "o").
13978 objext="$ac_objext"
13979
13980 # Old archive suffix (normally "a").
13981 libext="$libext"
13982
13983 # Shared library suffix (normally ".so").
13984 shrext_cmds='$shrext_cmds'
13985
13986 # Executable file suffix (normally "").
13987 exeext="$exeext"
13988
13989 # Additional compiler flags for building library objects.
13990 pic_flag=$lt_lt_prog_compiler_pic_CXX
13991 pic_mode=$pic_mode
13992
13993 # What is the maximum length of a command?
13994 max_cmd_len=$lt_cv_sys_max_cmd_len
13995
13996 # Does compiler simultaneously support -c and -o options?
13997 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13998
13999 # Must we lock files when doing compilation ?
14000 need_locks=$lt_need_locks
14001
14002 # Do we need the lib prefix for modules?
14003 need_lib_prefix=$need_lib_prefix
14004
14005 # Do we need a version for libraries?
14006 need_version=$need_version
14007
14008 # Whether dlopen is supported.
14009 dlopen_support=$enable_dlopen
14010
14011 # Whether dlopen of programs is supported.
14012 dlopen_self=$enable_dlopen_self
14013
14014 # Whether dlopen of statically linked programs is supported.
14015 dlopen_self_static=$enable_dlopen_self_static
14016
14017 # Compiler flag to prevent dynamic linking.
14018 link_static_flag=$lt_lt_prog_compiler_static_CXX
14019
14020 # Compiler flag to turn off builtin functions.
14021 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14022
14023 # Compiler flag to allow reflexive dlopens.
14024 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14025
14026 # Compiler flag to generate shared objects directly from archives.
14027 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14028
14029 # Compiler flag to generate thread-safe objects.
14030 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14031
14032 # Library versioning type.
14033 version_type=$version_type
14034
14035 # Format of library name prefix.
14036 libname_spec=$lt_libname_spec
14037
14038 # List of archive names.  First name is the real one, the rest are links.
14039 # The last name is the one that the linker finds with -lNAME.
14040 library_names_spec=$lt_library_names_spec
14041
14042 # The coded name of the library, if different from the real name.
14043 soname_spec=$lt_soname_spec
14044
14045 # Commands used to build and install an old-style archive.
14046 RANLIB=$lt_RANLIB
14047 old_archive_cmds=$lt_old_archive_cmds_CXX
14048 old_postinstall_cmds=$lt_old_postinstall_cmds
14049 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14050
14051 # Create an old-style archive from a shared archive.
14052 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14053
14054 # Create a temporary old-style archive to link instead of a shared archive.
14055 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14056
14057 # Commands used to build and install a shared archive.
14058 archive_cmds=$lt_archive_cmds_CXX
14059 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14060 postinstall_cmds=$lt_postinstall_cmds
14061 postuninstall_cmds=$lt_postuninstall_cmds
14062
14063 # Commands used to build a loadable module (assumed same as above if empty)
14064 module_cmds=$lt_module_cmds_CXX
14065 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14066
14067 # Commands to strip libraries.
14068 old_striplib=$lt_old_striplib
14069 striplib=$lt_striplib
14070
14071 # Dependencies to place before the objects being linked to create a
14072 # shared library.
14073 predep_objects=$lt_predep_objects_CXX
14074
14075 # Dependencies to place after the objects being linked to create a
14076 # shared library.
14077 postdep_objects=$lt_postdep_objects_CXX
14078
14079 # Dependencies to place before the objects being linked to create a
14080 # shared library.
14081 predeps=$lt_predeps_CXX
14082
14083 # Dependencies to place after the objects being linked to create a
14084 # shared library.
14085 postdeps=$lt_postdeps_CXX
14086
14087 # The library search path used internally by the compiler when linking
14088 # a shared library.
14089 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14090
14091 # Method to check whether dependent libraries are shared objects.
14092 deplibs_check_method=$lt_deplibs_check_method
14093
14094 # Command to use when deplibs_check_method == file_magic.
14095 file_magic_cmd=$lt_file_magic_cmd
14096
14097 # Flag that allows shared libraries with undefined symbols to be built.
14098 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14099
14100 # Flag that forces no undefined symbols.
14101 no_undefined_flag=$lt_no_undefined_flag_CXX
14102
14103 # Commands used to finish a libtool library installation in a directory.
14104 finish_cmds=$lt_finish_cmds
14105
14106 # Same as above, but a single script fragment to be evaled but not shown.
14107 finish_eval=$lt_finish_eval
14108
14109 # Take the output of nm and produce a listing of raw symbols and C names.
14110 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14111
14112 # Transform the output of nm in a proper C declaration
14113 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14114
14115 # Transform the output of nm in a C name address pair
14116 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14117
14118 # This is the shared library runtime path variable.
14119 runpath_var=$runpath_var
14120
14121 # This is the shared library path variable.
14122 shlibpath_var=$shlibpath_var
14123
14124 # Is shlibpath searched before the hard-coded library search path?
14125 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14126
14127 # How to hardcode a shared library path into an executable.
14128 hardcode_action=$hardcode_action_CXX
14129
14130 # Whether we should hardcode library paths into libraries.
14131 hardcode_into_libs=$hardcode_into_libs
14132
14133 # Flag to hardcode \$libdir into a binary during linking.
14134 # This must work even if \$libdir does not exist.
14135 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14136
14137 # If ld is used when linking, flag to hardcode \$libdir into
14138 # a binary during linking. This must work even if \$libdir does
14139 # not exist.
14140 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14141
14142 # Whether we need a single -rpath flag with a separated argument.
14143 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14144
14145 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14146 # resulting binary.
14147 hardcode_direct=$hardcode_direct_CXX
14148
14149 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14150 # resulting binary.
14151 hardcode_minus_L=$hardcode_minus_L_CXX
14152
14153 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14154 # the resulting binary.
14155 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14156
14157 # Set to yes if building a shared library automatically hardcodes DIR into the library
14158 # and all subsequent libraries and executables linked against it.
14159 hardcode_automatic=$hardcode_automatic_CXX
14160
14161 # Variables whose values should be saved in libtool wrapper scripts and
14162 # restored at relink time.
14163 variables_saved_for_relink="$variables_saved_for_relink"
14164
14165 # Whether libtool must link a program against all its dependency libraries.
14166 link_all_deplibs=$link_all_deplibs_CXX
14167
14168 # Compile-time system search path for libraries
14169 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14170
14171 # Run-time system search path for libraries
14172 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14173
14174 # Fix the shell variable \$srcfile for the compiler.
14175 fix_srcfile_path="$fix_srcfile_path_CXX"
14176
14177 # Set to yes if exported symbols are required.
14178 always_export_symbols=$always_export_symbols_CXX
14179
14180 # The commands to list exported symbols.
14181 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14182
14183 # The commands to extract the exported symbol list from a shared archive.
14184 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14185
14186 # Symbols that should not be listed in the preloaded symbols.
14187 exclude_expsyms=$lt_exclude_expsyms_CXX
14188
14189 # Symbols that must always be exported.
14190 include_expsyms=$lt_include_expsyms_CXX
14191
14192 # ### END LIBTOOL TAG CONFIG: $tagname
14193
14194 __EOF__
14195
14196
14197 else
14198   # If there is no Makefile yet, we rely on a make rule to execute
14199   # `config.status --recheck' to rerun these tests and create the
14200   # libtool script then.
14201   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14202   if test -f "$ltmain_in"; then
14203     test -f Makefile && make "$ltmain"
14204   fi
14205 fi
14206
14207
14208 ac_ext=c
14209 ac_cpp='$CPP $CPPFLAGS'
14210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14213
14214 CC=$lt_save_CC
14215 LDCXX=$LD
14216 LD=$lt_save_LD
14217 GCC=$lt_save_GCC
14218 with_gnu_ldcxx=$with_gnu_ld
14219 with_gnu_ld=$lt_save_with_gnu_ld
14220 lt_cv_path_LDCXX=$lt_cv_path_LD
14221 lt_cv_path_LD=$lt_save_path_LD
14222 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14223 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14224
14225         else
14226           tagname=""
14227         fi
14228         ;;
14229
14230       F77)
14231         if test -n "$F77" && test "X$F77" != "Xno"; then
14232
14233 ac_ext=f
14234 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14235 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14236 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14237
14238
14239 archive_cmds_need_lc_F77=no
14240 allow_undefined_flag_F77=
14241 always_export_symbols_F77=no
14242 archive_expsym_cmds_F77=
14243 export_dynamic_flag_spec_F77=
14244 hardcode_direct_F77=no
14245 hardcode_libdir_flag_spec_F77=
14246 hardcode_libdir_flag_spec_ld_F77=
14247 hardcode_libdir_separator_F77=
14248 hardcode_minus_L_F77=no
14249 hardcode_automatic_F77=no
14250 module_cmds_F77=
14251 module_expsym_cmds_F77=
14252 link_all_deplibs_F77=unknown
14253 old_archive_cmds_F77=$old_archive_cmds
14254 no_undefined_flag_F77=
14255 whole_archive_flag_spec_F77=
14256 enable_shared_with_static_runtimes_F77=no
14257
14258 # Source file extension for f77 test sources.
14259 ac_ext=f
14260
14261 # Object file extension for compiled f77 test sources.
14262 objext=o
14263 objext_F77=$objext
14264
14265 # Code to be used in simple compile tests
14266 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14267
14268 # Code to be used in simple link tests
14269 lt_simple_link_test_code="      program t\n      end\n"
14270
14271 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14272
14273 # If no C compiler was specified, use CC.
14274 LTCC=${LTCC-"$CC"}
14275
14276 # Allow CC to be a program name with arguments.
14277 compiler=$CC
14278
14279
14280 # Allow CC to be a program name with arguments.
14281 lt_save_CC="$CC"
14282 CC=${F77-"f77"}
14283 compiler=$CC
14284 compiler_F77=$CC
14285 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14286
14287 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14288 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14289 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14290 echo "${ECHO_T}$can_build_shared" >&6
14291
14292 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14293 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14294 test "$can_build_shared" = "no" && enable_shared=no
14295
14296 # On AIX, shared libraries and static libraries use the same namespace, and
14297 # are all built from PIC.
14298 case "$host_os" in
14299 aix3*)
14300   test "$enable_shared" = yes && enable_static=no
14301   if test -n "$RANLIB"; then
14302     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14303     postinstall_cmds='$RANLIB $lib'
14304   fi
14305   ;;
14306 aix4* | aix5*)
14307   test "$enable_shared" = yes && enable_static=no
14308   ;;
14309 esac
14310 echo "$as_me:$LINENO: result: $enable_shared" >&5
14311 echo "${ECHO_T}$enable_shared" >&6
14312
14313 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14314 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14315 # Make sure either enable_shared or enable_static is yes.
14316 test "$enable_shared" = yes || enable_static=yes
14317 echo "$as_me:$LINENO: result: $enable_static" >&5
14318 echo "${ECHO_T}$enable_static" >&6
14319
14320 test "$ld_shlibs_F77" = no && can_build_shared=no
14321
14322 GCC_F77="$G77"
14323 LD_F77="$LD"
14324
14325 lt_prog_compiler_wl_F77=
14326 lt_prog_compiler_pic_F77=
14327 lt_prog_compiler_static_F77=
14328
14329 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14330 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14331
14332   if test "$GCC" = yes; then
14333     lt_prog_compiler_wl_F77='-Wl,'
14334     lt_prog_compiler_static_F77='-static'
14335
14336     case $host_os in
14337       aix*)
14338       # All AIX code is PIC.
14339       if test "$host_cpu" = ia64; then
14340         # AIX 5 now supports IA64 processor
14341         lt_prog_compiler_static_F77='-Bstatic'
14342       fi
14343       ;;
14344
14345     amigaos*)
14346       # FIXME: we need at least 68020 code to build shared libraries, but
14347       # adding the `-m68020' flag to GCC prevents building anything better,
14348       # like `-m68040'.
14349       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14350       ;;
14351
14352     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14353       # PIC is the default for these OSes.
14354       ;;
14355
14356     mingw* | pw32* | os2*)
14357       # This hack is so that the source file can tell whether it is being
14358       # built for inclusion in a dll (and should export symbols for example).
14359       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14360       ;;
14361
14362     darwin* | rhapsody*)
14363       # PIC is the default on this platform
14364       # Common symbols not allowed in MH_DYLIB files
14365       lt_prog_compiler_pic_F77='-fno-common'
14366       ;;
14367
14368     msdosdjgpp*)
14369       # Just because we use GCC doesn't mean we suddenly get shared libraries
14370       # on systems that don't support them.
14371       lt_prog_compiler_can_build_shared_F77=no
14372       enable_shared=no
14373       ;;
14374
14375     sysv4*MP*)
14376       if test -d /usr/nec; then
14377         lt_prog_compiler_pic_F77=-Kconform_pic
14378       fi
14379       ;;
14380
14381     hpux*)
14382       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14383       # not for PA HP-UX.
14384       case "$host_cpu" in
14385       hppa*64*|ia64*)
14386         # +Z the default
14387         ;;
14388       *)
14389         lt_prog_compiler_pic_F77='-fPIC'
14390         ;;
14391       esac
14392       ;;
14393
14394     *)
14395       lt_prog_compiler_pic_F77='-fPIC'
14396       ;;
14397     esac
14398   else
14399     # PORTME Check for flag to pass linker flags through the system compiler.
14400     case $host_os in
14401     aix*)
14402       lt_prog_compiler_wl_F77='-Wl,'
14403       if test "$host_cpu" = ia64; then
14404         # AIX 5 now supports IA64 processor
14405         lt_prog_compiler_static_F77='-Bstatic'
14406       else
14407         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14408       fi
14409       ;;
14410
14411     mingw* | pw32* | os2*)
14412       # This hack is so that the source file can tell whether it is being
14413       # built for inclusion in a dll (and should export symbols for example).
14414       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14415       ;;
14416
14417     hpux9* | hpux10* | hpux11*)
14418       lt_prog_compiler_wl_F77='-Wl,'
14419       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14420       # not for PA HP-UX.
14421       case "$host_cpu" in
14422       hppa*64*|ia64*)
14423         # +Z the default
14424         ;;
14425       *)
14426         lt_prog_compiler_pic_F77='+Z'
14427         ;;
14428       esac
14429       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14430       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14431       ;;
14432
14433     irix5* | irix6* | nonstopux*)
14434       lt_prog_compiler_wl_F77='-Wl,'
14435       # PIC (with -KPIC) is the default.
14436       lt_prog_compiler_static_F77='-non_shared'
14437       ;;
14438
14439     newsos6)
14440       lt_prog_compiler_pic_F77='-KPIC'
14441       lt_prog_compiler_static_F77='-Bstatic'
14442       ;;
14443
14444     linux*)
14445       case $CC in
14446       icc* | ecc*)
14447         lt_prog_compiler_wl_F77='-Wl,'
14448         lt_prog_compiler_pic_F77='-KPIC'
14449         lt_prog_compiler_static_F77='-static'
14450         ;;
14451       ccc*)
14452         lt_prog_compiler_wl_F77='-Wl,'
14453         # All Alpha code is PIC.
14454         lt_prog_compiler_static_F77='-non_shared'
14455         ;;
14456       esac
14457       ;;
14458
14459     osf3* | osf4* | osf5*)
14460       lt_prog_compiler_wl_F77='-Wl,'
14461       # All OSF/1 code is PIC.
14462       lt_prog_compiler_static_F77='-non_shared'
14463       ;;
14464
14465     sco3.2v5*)
14466       lt_prog_compiler_pic_F77='-Kpic'
14467       lt_prog_compiler_static_F77='-dn'
14468       ;;
14469
14470     solaris*)
14471       lt_prog_compiler_wl_F77='-Wl,'
14472       lt_prog_compiler_pic_F77='-KPIC'
14473       lt_prog_compiler_static_F77='-Bstatic'
14474       ;;
14475
14476     sunos4*)
14477       lt_prog_compiler_wl_F77='-Qoption ld '
14478       lt_prog_compiler_pic_F77='-PIC'
14479       lt_prog_compiler_static_F77='-Bstatic'
14480       ;;
14481
14482     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14483       lt_prog_compiler_wl_F77='-Wl,'
14484       lt_prog_compiler_pic_F77='-KPIC'
14485       lt_prog_compiler_static_F77='-Bstatic'
14486       ;;
14487
14488     sysv4*MP*)
14489       if test -d /usr/nec ;then
14490         lt_prog_compiler_pic_F77='-Kconform_pic'
14491         lt_prog_compiler_static_F77='-Bstatic'
14492       fi
14493       ;;
14494
14495     uts4*)
14496       lt_prog_compiler_pic_F77='-pic'
14497       lt_prog_compiler_static_F77='-Bstatic'
14498       ;;
14499
14500     *)
14501       lt_prog_compiler_can_build_shared_F77=no
14502       ;;
14503     esac
14504   fi
14505
14506 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14507 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14508
14509 #
14510 # Check to make sure the PIC flag actually works.
14511 #
14512 if test -n "$lt_prog_compiler_pic_F77"; then
14513
14514 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14515 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14516 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14517   echo $ECHO_N "(cached) $ECHO_C" >&6
14518 else
14519   lt_prog_compiler_pic_works_F77=no
14520   ac_outfile=conftest.$ac_objext
14521    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14522    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14523    # Insert the option either (1) after the last *FLAGS variable, or
14524    # (2) before a word containing "conftest.", or (3) at the end.
14525    # Note that $ac_compile itself does not contain backslashes and begins
14526    # with a dollar sign (not a hyphen), so the echo should work correctly.
14527    # The option is referenced via a variable to avoid confusing sed.
14528    lt_compile=`echo "$ac_compile" | $SED \
14529    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14530    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14531    -e 's:$: $lt_compiler_flag:'`
14532    (eval echo "\"\$as_me:14532: $lt_compile\"" >&5)
14533    (eval "$lt_compile" 2>conftest.err)
14534    ac_status=$?
14535    cat conftest.err >&5
14536    echo "$as_me:14536: \$? = $ac_status" >&5
14537    if (exit $ac_status) && test -s "$ac_outfile"; then
14538      # The compiler can only warn and ignore the option if not recognized
14539      # So say no if there are warnings
14540      if test ! -s conftest.err; then
14541        lt_prog_compiler_pic_works_F77=yes
14542      fi
14543    fi
14544    $rm conftest*
14545
14546 fi
14547 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14548 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14549
14550 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14551     case $lt_prog_compiler_pic_F77 in
14552      "" | " "*) ;;
14553      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14554      esac
14555 else
14556     lt_prog_compiler_pic_F77=
14557      lt_prog_compiler_can_build_shared_F77=no
14558 fi
14559
14560 fi
14561 case "$host_os" in
14562   # For platforms which do not support PIC, -DPIC is meaningless:
14563   *djgpp*)
14564     lt_prog_compiler_pic_F77=
14565     ;;
14566   *)
14567     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14568     ;;
14569 esac
14570
14571 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14572 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14573 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14574   echo $ECHO_N "(cached) $ECHO_C" >&6
14575 else
14576   lt_cv_prog_compiler_c_o_F77=no
14577    $rm -r conftest 2>/dev/null
14578    mkdir conftest
14579    cd conftest
14580    mkdir out
14581    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14582
14583    lt_compiler_flag="-o out/conftest2.$ac_objext"
14584    # Insert the option either (1) after the last *FLAGS variable, or
14585    # (2) before a word containing "conftest.", or (3) at the end.
14586    # Note that $ac_compile itself does not contain backslashes and begins
14587    # with a dollar sign (not a hyphen), so the echo should work correctly.
14588    lt_compile=`echo "$ac_compile" | $SED \
14589    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14590    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14591    -e 's:$: $lt_compiler_flag:'`
14592    (eval echo "\"\$as_me:14592: $lt_compile\"" >&5)
14593    (eval "$lt_compile" 2>out/conftest.err)
14594    ac_status=$?
14595    cat out/conftest.err >&5
14596    echo "$as_me:14596: \$? = $ac_status" >&5
14597    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14598    then
14599      # The compiler can only warn and ignore the option if not recognized
14600      # So say no if there are warnings
14601      if test ! -s out/conftest.err; then
14602        lt_cv_prog_compiler_c_o_F77=yes
14603      fi
14604    fi
14605    chmod u+w .
14606    $rm conftest*
14607    # SGI C++ compiler will create directory out/ii_files/ for
14608    # template instantiation
14609    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14610    $rm out/* && rmdir out
14611    cd ..
14612    rmdir conftest
14613    $rm conftest*
14614
14615 fi
14616 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14617 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14618
14619
14620 hard_links="nottested"
14621 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14622   # do not overwrite the value of need_locks provided by the user
14623   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14624 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14625   hard_links=yes
14626   $rm conftest*
14627   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14628   touch conftest.a
14629   ln conftest.a conftest.b 2>&5 || hard_links=no
14630   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14631   echo "$as_me:$LINENO: result: $hard_links" >&5
14632 echo "${ECHO_T}$hard_links" >&6
14633   if test "$hard_links" = no; then
14634     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14635 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14636     need_locks=warn
14637   fi
14638 else
14639   need_locks=no
14640 fi
14641
14642 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14643 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14644
14645   runpath_var=
14646   allow_undefined_flag_F77=
14647   enable_shared_with_static_runtimes_F77=no
14648   archive_cmds_F77=
14649   archive_expsym_cmds_F77=
14650   old_archive_From_new_cmds_F77=
14651   old_archive_from_expsyms_cmds_F77=
14652   export_dynamic_flag_spec_F77=
14653   whole_archive_flag_spec_F77=
14654   thread_safe_flag_spec_F77=
14655   hardcode_libdir_flag_spec_F77=
14656   hardcode_libdir_flag_spec_ld_F77=
14657   hardcode_libdir_separator_F77=
14658   hardcode_direct_F77=no
14659   hardcode_minus_L_F77=no
14660   hardcode_shlibpath_var_F77=unsupported
14661   link_all_deplibs_F77=unknown
14662   hardcode_automatic_F77=no
14663   module_cmds_F77=
14664   module_expsym_cmds_F77=
14665   always_export_symbols_F77=no
14666   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14667   # include_expsyms should be a list of space-separated symbols to be *always*
14668   # included in the symbol list
14669   include_expsyms_F77=
14670   # exclude_expsyms can be an extended regexp of symbols to exclude
14671   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14672   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14673   # as well as any symbol that contains `d'.
14674   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14675   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14676   # platforms (ab)use it in PIC code, but their linkers get confused if
14677   # the symbol is explicitly referenced.  Since portable code cannot
14678   # rely on this symbol name, it's probably fine to never include it in
14679   # preloaded symbol tables.
14680   extract_expsyms_cmds=
14681
14682   case $host_os in
14683   cygwin* | mingw* | pw32*)
14684     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14685     # When not using gcc, we currently assume that we are using
14686     # Microsoft Visual C++.
14687     if test "$GCC" != yes; then
14688       with_gnu_ld=no
14689     fi
14690     ;;
14691   openbsd*)
14692     with_gnu_ld=no
14693     ;;
14694   esac
14695
14696   ld_shlibs_F77=yes
14697   if test "$with_gnu_ld" = yes; then
14698     # If archive_cmds runs LD, not CC, wlarc should be empty
14699     wlarc='${wl}'
14700
14701     # See if GNU ld supports shared libraries.
14702     case $host_os in
14703     aix3* | aix4* | aix5*)
14704       # On AIX/PPC, the GNU linker is very broken
14705       if test "$host_cpu" != ia64; then
14706         ld_shlibs_F77=no
14707         cat <<EOF 1>&2
14708
14709 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14710 *** to be unable to reliably create shared libraries on AIX.
14711 *** Therefore, libtool is disabling shared libraries support.  If you
14712 *** really care for shared libraries, you may want to modify your PATH
14713 *** so that a non-GNU linker is found, and then restart.
14714
14715 EOF
14716       fi
14717       ;;
14718
14719     amigaos*)
14720       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)'
14721       hardcode_libdir_flag_spec_F77='-L$libdir'
14722       hardcode_minus_L_F77=yes
14723
14724       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14725       # that the semantics of dynamic libraries on AmigaOS, at least up
14726       # to version 4, is to share data among multiple programs linked
14727       # with the same dynamic library.  Since this doesn't match the
14728       # behavior of shared libraries on other platforms, we can't use
14729       # them.
14730       ld_shlibs_F77=no
14731       ;;
14732
14733     beos*)
14734       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14735         allow_undefined_flag_F77=unsupported
14736         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14737         # support --undefined.  This deserves some investigation.  FIXME
14738         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14739       else
14740         ld_shlibs_F77=no
14741       fi
14742       ;;
14743
14744     cygwin* | mingw* | pw32*)
14745       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14746       # as there is no search path for DLLs.
14747       hardcode_libdir_flag_spec_F77='-L$libdir'
14748       allow_undefined_flag_F77=unsupported
14749       always_export_symbols_F77=no
14750       enable_shared_with_static_runtimes_F77=yes
14751       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14752
14753       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14754         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14755         # If the export-symbols file already is a .def file (1st line
14756         # is EXPORTS), use it as is; otherwise, prepend...
14757         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14758           cp $export_symbols $output_objdir/$soname.def;
14759         else
14760           echo EXPORTS > $output_objdir/$soname.def;
14761           cat $export_symbols >> $output_objdir/$soname.def;
14762         fi~
14763         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14764       else
14765         ld_shlibs=no
14766       fi
14767       ;;
14768
14769     netbsd*)
14770       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14771         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14772         wlarc=
14773       else
14774         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14775         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14776       fi
14777       ;;
14778
14779     solaris* | sysv5*)
14780       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14781         ld_shlibs_F77=no
14782         cat <<EOF 1>&2
14783
14784 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14785 *** create shared libraries on Solaris systems.  Therefore, libtool
14786 *** is disabling shared libraries support.  We urge you to upgrade GNU
14787 *** binutils to release 2.9.1 or newer.  Another option is to modify
14788 *** your PATH or compiler configuration so that the native linker is
14789 *** used, and then restart.
14790
14791 EOF
14792       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14793         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14794         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14795       else
14796         ld_shlibs_F77=no
14797       fi
14798       ;;
14799
14800     sunos4*)
14801       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14802       wlarc=
14803       hardcode_direct_F77=yes
14804       hardcode_shlibpath_var_F77=no
14805       ;;
14806
14807   linux*)
14808     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14809         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14810         archive_cmds_F77="$tmp_archive_cmds"
14811       supports_anon_versioning=no
14812       case `$LD -v 2>/dev/null` in
14813         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14814         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14815         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14816         *\ 2.11.*) ;; # other 2.11 versions
14817         *) supports_anon_versioning=yes ;;
14818       esac
14819       if test $supports_anon_versioning = yes; then
14820         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14821 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14822 $echo "local: *; };" >> $output_objdir/$libname.ver~
14823         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14824       else
14825         archive_expsym_cmds_F77="$tmp_archive_cmds"
14826       fi
14827     else
14828       ld_shlibs_F77=no
14829     fi
14830     ;;
14831
14832     *)
14833       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14834         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14835         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14836       else
14837         ld_shlibs_F77=no
14838       fi
14839       ;;
14840     esac
14841
14842     if test "$ld_shlibs_F77" = yes; then
14843       runpath_var=LD_RUN_PATH
14844       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14845       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14846       # ancient GNU ld didn't support --whole-archive et. al.
14847       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14848         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14849       else
14850         whole_archive_flag_spec_F77=
14851       fi
14852     fi
14853   else
14854     # PORTME fill in a description of your system's linker (not GNU ld)
14855     case $host_os in
14856     aix3*)
14857       allow_undefined_flag_F77=unsupported
14858       always_export_symbols_F77=yes
14859       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'
14860       # Note: this linker hardcodes the directories in LIBPATH if there
14861       # are no directories specified by -L.
14862       hardcode_minus_L_F77=yes
14863       if test "$GCC" = yes && test -z "$link_static_flag"; then
14864         # Neither direct hardcoding nor static linking is supported with a
14865         # broken collect2.
14866         hardcode_direct_F77=unsupported
14867       fi
14868       ;;
14869
14870     aix4* | aix5*)
14871       if test "$host_cpu" = ia64; then
14872         # On IA64, the linker does run time linking by default, so we don't
14873         # have to do anything special.
14874         aix_use_runtimelinking=no
14875         exp_sym_flag='-Bexport'
14876         no_entry_flag=""
14877       else
14878         # If we're using GNU nm, then we don't want the "-C" option.
14879         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14880         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14881           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'
14882         else
14883           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'
14884         fi
14885         aix_use_runtimelinking=no
14886
14887         # Test if we are trying to use run time linking or normal
14888         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14889         # need to do runtime linking.
14890         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14891           for ld_flag in $LDFLAGS; do
14892           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14893             aix_use_runtimelinking=yes
14894             break
14895           fi
14896           done
14897         esac
14898
14899         exp_sym_flag='-bexport'
14900         no_entry_flag='-bnoentry'
14901       fi
14902
14903       # When large executables or shared objects are built, AIX ld can
14904       # have problems creating the table of contents.  If linking a library
14905       # or program results in "error TOC overflow" add -mminimal-toc to
14906       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14907       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14908
14909       archive_cmds_F77=''
14910       hardcode_direct_F77=yes
14911       hardcode_libdir_separator_F77=':'
14912       link_all_deplibs_F77=yes
14913
14914       if test "$GCC" = yes; then
14915         case $host_os in aix4.012|aix4.012.*)
14916         # We only want to do this on AIX 4.2 and lower, the check
14917         # below for broken collect2 doesn't work under 4.3+
14918           collect2name=`${CC} -print-prog-name=collect2`
14919           if test -f "$collect2name" && \
14920            strings "$collect2name" | grep resolve_lib_name >/dev/null
14921           then
14922           # We have reworked collect2
14923           hardcode_direct_F77=yes
14924           else
14925           # We have old collect2
14926           hardcode_direct_F77=unsupported
14927           # It fails to find uninstalled libraries when the uninstalled
14928           # path is not listed in the libpath.  Setting hardcode_minus_L
14929           # to unsupported forces relinking
14930           hardcode_minus_L_F77=yes
14931           hardcode_libdir_flag_spec_F77='-L$libdir'
14932           hardcode_libdir_separator_F77=
14933           fi
14934         esac
14935         shared_flag='-shared'
14936       else
14937         # not using gcc
14938         if test "$host_cpu" = ia64; then
14939         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14940         # chokes on -Wl,-G. The following line is correct:
14941           shared_flag='-G'
14942         else
14943         if test "$aix_use_runtimelinking" = yes; then
14944             shared_flag='${wl}-G'
14945           else
14946             shared_flag='${wl}-bM:SRE'
14947         fi
14948         fi
14949       fi
14950
14951       # It seems that -bexpall does not export symbols beginning with
14952       # underscore (_), so it is better to generate a list of symbols to export.
14953       always_export_symbols_F77=yes
14954       if test "$aix_use_runtimelinking" = yes; then
14955         # Warning - without using the other runtime loading flags (-brtl),
14956         # -berok will link without error, but may produce a broken library.
14957         allow_undefined_flag_F77='-berok'
14958        # Determine the default libpath from the value encoded in an empty executable.
14959        cat >conftest.$ac_ext <<_ACEOF
14960       program main
14961
14962       end
14963 _ACEOF
14964 rm -f conftest.$ac_objext conftest$ac_exeext
14965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14966   (eval $ac_link) 2>conftest.er1
14967   ac_status=$?
14968   grep -v '^ *+' conftest.er1 >conftest.err
14969   rm -f conftest.er1
14970   cat conftest.err >&5
14971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972   (exit $ac_status); } &&
14973          { ac_try='test -z "$ac_f77_werror_flag"
14974                          || test ! -s conftest.err'
14975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976   (eval $ac_try) 2>&5
14977   ac_status=$?
14978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979   (exit $ac_status); }; } &&
14980          { ac_try='test -s conftest$ac_exeext'
14981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982   (eval $ac_try) 2>&5
14983   ac_status=$?
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); }; }; then
14986
14987 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14988 }'`
14989 # Check for a 64-bit object if we didn't find anything.
14990 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; }
14991 }'`; fi
14992 else
14993   echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14995
14996 fi
14997 rm -f conftest.err conftest.$ac_objext \
14998       conftest$ac_exeext conftest.$ac_ext
14999 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15000
15001        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15002         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15003        else
15004         if test "$host_cpu" = ia64; then
15005           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15006           allow_undefined_flag_F77="-z nodefs"
15007           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15008         else
15009          # Determine the default libpath from the value encoded in an empty executable.
15010          cat >conftest.$ac_ext <<_ACEOF
15011       program main
15012
15013       end
15014 _ACEOF
15015 rm -f conftest.$ac_objext conftest$ac_exeext
15016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15017   (eval $ac_link) 2>conftest.er1
15018   ac_status=$?
15019   grep -v '^ *+' conftest.er1 >conftest.err
15020   rm -f conftest.er1
15021   cat conftest.err >&5
15022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023   (exit $ac_status); } &&
15024          { ac_try='test -z "$ac_f77_werror_flag"
15025                          || test ! -s conftest.err'
15026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027   (eval $ac_try) 2>&5
15028   ac_status=$?
15029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); }; } &&
15031          { ac_try='test -s conftest$ac_exeext'
15032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033   (eval $ac_try) 2>&5
15034   ac_status=$?
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); }; }; then
15037
15038 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15039 }'`
15040 # Check for a 64-bit object if we didn't find anything.
15041 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; }
15042 }'`; fi
15043 else
15044   echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15046
15047 fi
15048 rm -f conftest.err conftest.$ac_objext \
15049       conftest$ac_exeext conftest.$ac_ext
15050 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15051
15052          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15053           # Warning - without using the other run time loading flags,
15054           # -berok will link without error, but may produce a broken library.
15055           no_undefined_flag_F77=' ${wl}-bernotok'
15056           allow_undefined_flag_F77=' ${wl}-berok'
15057           # -bexpall does not export symbols beginning with underscore (_)
15058           always_export_symbols_F77=yes
15059           # Exported symbols can be pulled into shared objects from archives
15060           whole_archive_flag_spec_F77=' '
15061           archive_cmds_need_lc_F77=yes
15062           # This is similar to how AIX traditionally builds it's shared libraries.
15063           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15064         fi
15065       fi
15066       ;;
15067
15068     amigaos*)
15069       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)'
15070       hardcode_libdir_flag_spec_F77='-L$libdir'
15071       hardcode_minus_L_F77=yes
15072       # see comment about different semantics on the GNU ld section
15073       ld_shlibs_F77=no
15074       ;;
15075
15076     bsdi4*)
15077       export_dynamic_flag_spec_F77=-rdynamic
15078       ;;
15079
15080     cygwin* | mingw* | pw32*)
15081       # When not using gcc, we currently assume that we are using
15082       # Microsoft Visual C++.
15083       # hardcode_libdir_flag_spec is actually meaningless, as there is
15084       # no search path for DLLs.
15085       hardcode_libdir_flag_spec_F77=' '
15086       allow_undefined_flag_F77=unsupported
15087       # Tell ltmain to make .lib files, not .a files.
15088       libext=lib
15089       # Tell ltmain to make .dll files, not .so files.
15090       shrext_cmds=".dll"
15091       # FIXME: Setting linknames here is a bad hack.
15092       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15093       # The linker will automatically build a .lib file if we build a DLL.
15094       old_archive_From_new_cmds_F77='true'
15095       # FIXME: Should let the user specify the lib program.
15096       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15097       fix_srcfile_path='`cygpath -w "$srcfile"`'
15098       enable_shared_with_static_runtimes_F77=yes
15099       ;;
15100
15101     darwin* | rhapsody*)
15102     if test "$GXX" = yes ; then
15103       archive_cmds_need_lc_F77=no
15104       case "$host_os" in
15105       rhapsody* | darwin1.[012])
15106         allow_undefined_flag_F77='-undefined suppress'
15107         ;;
15108       *) # Darwin 1.3 on
15109       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15110         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15111       else
15112         case ${MACOSX_DEPLOYMENT_TARGET} in
15113           10.[012])
15114             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15115             ;;
15116           10.*)
15117             allow_undefined_flag_F77='-undefined dynamic_lookup'
15118             ;;
15119         esac
15120       fi
15121         ;;
15122       esac
15123         lt_int_apple_cc_single_mod=no
15124         output_verbose_link_cmd='echo'
15125         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15126           lt_int_apple_cc_single_mod=yes
15127         fi
15128         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15129           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15130         else
15131         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15132       fi
15133       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15134       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15135         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15136           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15137         else
15138           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15139         fi
15140           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}'
15141       hardcode_direct_F77=no
15142       hardcode_automatic_F77=yes
15143       hardcode_shlibpath_var_F77=unsupported
15144       whole_archive_flag_spec_F77='-all_load $convenience'
15145       link_all_deplibs_F77=yes
15146     else
15147       ld_shlibs_F77=no
15148     fi
15149       ;;
15150
15151     dgux*)
15152       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15153       hardcode_libdir_flag_spec_F77='-L$libdir'
15154       hardcode_shlibpath_var_F77=no
15155       ;;
15156
15157     freebsd1*)
15158       ld_shlibs_F77=no
15159       ;;
15160
15161     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15162     # support.  Future versions do this automatically, but an explicit c++rt0.o
15163     # does not break anything, and helps significantly (at the cost of a little
15164     # extra space).
15165     freebsd2.2*)
15166       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15167       hardcode_libdir_flag_spec_F77='-R$libdir'
15168       hardcode_direct_F77=yes
15169       hardcode_shlibpath_var_F77=no
15170       ;;
15171
15172     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15173     freebsd2*)
15174       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15175       hardcode_direct_F77=yes
15176       hardcode_minus_L_F77=yes
15177       hardcode_shlibpath_var_F77=no
15178       ;;
15179
15180     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15181     freebsd* | kfreebsd*-gnu)
15182       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15183       hardcode_libdir_flag_spec_F77='-R$libdir'
15184       hardcode_direct_F77=yes
15185       hardcode_shlibpath_var_F77=no
15186       ;;
15187
15188     hpux9*)
15189       if test "$GCC" = yes; then
15190         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'
15191       else
15192         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'
15193       fi
15194       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15195       hardcode_libdir_separator_F77=:
15196       hardcode_direct_F77=yes
15197
15198       # hardcode_minus_L: Not really in the search PATH,
15199       # but as the default location of the library.
15200       hardcode_minus_L_F77=yes
15201       export_dynamic_flag_spec_F77='${wl}-E'
15202       ;;
15203
15204     hpux10* | hpux11*)
15205       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15206         case "$host_cpu" in
15207         hppa*64*|ia64*)
15208           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15209           ;;
15210         *)
15211           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15212           ;;
15213         esac
15214       else
15215         case "$host_cpu" in
15216         hppa*64*|ia64*)
15217           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15218           ;;
15219         *)
15220           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15221           ;;
15222         esac
15223       fi
15224       if test "$with_gnu_ld" = no; then
15225         case "$host_cpu" in
15226         hppa*64*)
15227           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15228           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15229           hardcode_libdir_separator_F77=:
15230           hardcode_direct_F77=no
15231           hardcode_shlibpath_var_F77=no
15232           ;;
15233         ia64*)
15234           hardcode_libdir_flag_spec_F77='-L$libdir'
15235           hardcode_direct_F77=no
15236           hardcode_shlibpath_var_F77=no
15237
15238           # hardcode_minus_L: Not really in the search PATH,
15239           # but as the default location of the library.
15240           hardcode_minus_L_F77=yes
15241           ;;
15242         *)
15243           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15244           hardcode_libdir_separator_F77=:
15245           hardcode_direct_F77=yes
15246           export_dynamic_flag_spec_F77='${wl}-E'
15247
15248           # hardcode_minus_L: Not really in the search PATH,
15249           # but as the default location of the library.
15250           hardcode_minus_L_F77=yes
15251           ;;
15252         esac
15253       fi
15254       ;;
15255
15256     irix5* | irix6* | nonstopux*)
15257       if test "$GCC" = yes; then
15258         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'
15259       else
15260         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'
15261         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15262       fi
15263       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15264       hardcode_libdir_separator_F77=:
15265       link_all_deplibs_F77=yes
15266       ;;
15267
15268     netbsd*)
15269       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15270         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15271       else
15272         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15273       fi
15274       hardcode_libdir_flag_spec_F77='-R$libdir'
15275       hardcode_direct_F77=yes
15276       hardcode_shlibpath_var_F77=no
15277       ;;
15278
15279     newsos6)
15280       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15281       hardcode_direct_F77=yes
15282       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15283       hardcode_libdir_separator_F77=:
15284       hardcode_shlibpath_var_F77=no
15285       ;;
15286
15287     openbsd*)
15288       hardcode_direct_F77=yes
15289       hardcode_shlibpath_var_F77=no
15290       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15291         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15292         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15293         export_dynamic_flag_spec_F77='${wl}-E'
15294       else
15295        case $host_os in
15296          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15297            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15298            hardcode_libdir_flag_spec_F77='-R$libdir'
15299            ;;
15300          *)
15301            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15302            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15303            ;;
15304        esac
15305       fi
15306       ;;
15307
15308     os2*)
15309       hardcode_libdir_flag_spec_F77='-L$libdir'
15310       hardcode_minus_L_F77=yes
15311       allow_undefined_flag_F77=unsupported
15312       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'
15313       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15314       ;;
15315
15316     osf3*)
15317       if test "$GCC" = yes; then
15318         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15319         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'
15320       else
15321         allow_undefined_flag_F77=' -expect_unresolved \*'
15322         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'
15323       fi
15324       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15325       hardcode_libdir_separator_F77=:
15326       ;;
15327
15328     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15329       if test "$GCC" = yes; then
15330         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15331         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'
15332         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15333       else
15334         allow_undefined_flag_F77=' -expect_unresolved \*'
15335         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'
15336         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~
15337         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15338
15339         # Both c and cxx compiler support -rpath directly
15340         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15341       fi
15342       hardcode_libdir_separator_F77=:
15343       ;;
15344
15345     sco3.2v5*)
15346       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15347       hardcode_shlibpath_var_F77=no
15348       export_dynamic_flag_spec_F77='${wl}-Bexport'
15349       runpath_var=LD_RUN_PATH
15350       hardcode_runpath_var=yes
15351       ;;
15352
15353     solaris*)
15354       no_undefined_flag_F77=' -z text'
15355       if test "$GCC" = yes; then
15356         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15357         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15358           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15359       else
15360         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15361         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15362         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15363       fi
15364       hardcode_libdir_flag_spec_F77='-R$libdir'
15365       hardcode_shlibpath_var_F77=no
15366       case $host_os in
15367       solaris2.[0-5] | solaris2.[0-5].*) ;;
15368       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15369         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15370       esac
15371       link_all_deplibs_F77=yes
15372       ;;
15373
15374     sunos4*)
15375       if test "x$host_vendor" = xsequent; then
15376         # Use $CC to link under sequent, because it throws in some extra .o
15377         # files that make .init and .fini sections work.
15378         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15379       else
15380         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15381       fi
15382       hardcode_libdir_flag_spec_F77='-L$libdir'
15383       hardcode_direct_F77=yes
15384       hardcode_minus_L_F77=yes
15385       hardcode_shlibpath_var_F77=no
15386       ;;
15387
15388     sysv4)
15389       case $host_vendor in
15390         sni)
15391           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15392           hardcode_direct_F77=yes # is this really true???
15393         ;;
15394         siemens)
15395           ## LD is ld it makes a PLAMLIB
15396           ## CC just makes a GrossModule.
15397           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15398           reload_cmds_F77='$CC -r -o $output$reload_objs'
15399           hardcode_direct_F77=no
15400         ;;
15401         motorola)
15402           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15403           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15404         ;;
15405       esac
15406       runpath_var='LD_RUN_PATH'
15407       hardcode_shlibpath_var_F77=no
15408       ;;
15409
15410     sysv4.3*)
15411       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15412       hardcode_shlibpath_var_F77=no
15413       export_dynamic_flag_spec_F77='-Bexport'
15414       ;;
15415
15416     sysv4*MP*)
15417       if test -d /usr/nec; then
15418         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15419         hardcode_shlibpath_var_F77=no
15420         runpath_var=LD_RUN_PATH
15421         hardcode_runpath_var=yes
15422         ld_shlibs_F77=yes
15423       fi
15424       ;;
15425
15426     sysv4.2uw2*)
15427       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15428       hardcode_direct_F77=yes
15429       hardcode_minus_L_F77=no
15430       hardcode_shlibpath_var_F77=no
15431       hardcode_runpath_var=yes
15432       runpath_var=LD_RUN_PATH
15433       ;;
15434
15435    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15436       no_undefined_flag_F77='${wl}-z ${wl}text'
15437       if test "$GCC" = yes; then
15438         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15439       else
15440         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15441       fi
15442       runpath_var='LD_RUN_PATH'
15443       hardcode_shlibpath_var_F77=no
15444       ;;
15445
15446     sysv5*)
15447       no_undefined_flag_F77=' -z text'
15448       # $CC -shared without GNU ld will not create a library from C++
15449       # object files and a static libstdc++, better avoid it by now
15450       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15451       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15452                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15453       hardcode_libdir_flag_spec_F77=
15454       hardcode_shlibpath_var_F77=no
15455       runpath_var='LD_RUN_PATH'
15456       ;;
15457
15458     uts4*)
15459       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15460       hardcode_libdir_flag_spec_F77='-L$libdir'
15461       hardcode_shlibpath_var_F77=no
15462       ;;
15463
15464     *)
15465       ld_shlibs_F77=no
15466       ;;
15467     esac
15468   fi
15469
15470 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15471 echo "${ECHO_T}$ld_shlibs_F77" >&6
15472 test "$ld_shlibs_F77" = no && can_build_shared=no
15473
15474 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15475 if test "$GCC" = yes; then
15476   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15477 fi
15478
15479 #
15480 # Do we need to explicitly link libc?
15481 #
15482 case "x$archive_cmds_need_lc_F77" in
15483 x|xyes)
15484   # Assume -lc should be added
15485   archive_cmds_need_lc_F77=yes
15486
15487   if test "$enable_shared" = yes && test "$GCC" = yes; then
15488     case $archive_cmds_F77 in
15489     *'~'*)
15490       # FIXME: we may have to deal with multi-command sequences.
15491       ;;
15492     '$CC '*)
15493       # Test whether the compiler implicitly links with -lc since on some
15494       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15495       # to ld, don't add -lc before -lgcc.
15496       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15497 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15498       $rm conftest*
15499       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15500
15501       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15502   (eval $ac_compile) 2>&5
15503   ac_status=$?
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); } 2>conftest.err; then
15506         soname=conftest
15507         lib=conftest
15508         libobjs=conftest.$ac_objext
15509         deplibs=
15510         wl=$lt_prog_compiler_wl_F77
15511         compiler_flags=-v
15512         linker_flags=-v
15513         verstring=
15514         output_objdir=.
15515         libname=conftest
15516         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15517         allow_undefined_flag_F77=
15518         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15519   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15520   ac_status=$?
15521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522   (exit $ac_status); }
15523         then
15524           archive_cmds_need_lc_F77=no
15525         else
15526           archive_cmds_need_lc_F77=yes
15527         fi
15528         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15529       else
15530         cat conftest.err 1>&5
15531       fi
15532       $rm conftest*
15533       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15534 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15535       ;;
15536     esac
15537   fi
15538   ;;
15539 esac
15540
15541 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15542 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15543 library_names_spec=
15544 libname_spec='lib$name'
15545 soname_spec=
15546 shrext_cmds=".so"
15547 postinstall_cmds=
15548 postuninstall_cmds=
15549 finish_cmds=
15550 finish_eval=
15551 shlibpath_var=
15552 shlibpath_overrides_runpath=unknown
15553 version_type=none
15554 dynamic_linker="$host_os ld.so"
15555 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15556 if test "$GCC" = yes; then
15557   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15558   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15559     # if the path contains ";" then we assume it to be the separator
15560     # otherwise default to the standard path separator (i.e. ":") - it is
15561     # assumed that no part of a normal pathname contains ";" but that should
15562     # okay in the real world where ";" in dirpaths is itself problematic.
15563     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15564   else
15565     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15566   fi
15567 else
15568   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15569 fi
15570 need_lib_prefix=unknown
15571 hardcode_into_libs=no
15572
15573 # when you set need_version to no, make sure it does not cause -set_version
15574 # flags to be left without arguments
15575 need_version=unknown
15576
15577 case $host_os in
15578 aix3*)
15579   version_type=linux
15580   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15581   shlibpath_var=LIBPATH
15582
15583   # AIX 3 has no versioning support, so we append a major version to the name.
15584   soname_spec='${libname}${release}${shared_ext}$major'
15585   ;;
15586
15587 aix4* | aix5*)
15588   version_type=linux
15589   need_lib_prefix=no
15590   need_version=no
15591   hardcode_into_libs=yes
15592   if test "$host_cpu" = ia64; then
15593     # AIX 5 supports IA64
15594     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15595     shlibpath_var=LD_LIBRARY_PATH
15596   else
15597     # With GCC up to 2.95.x, collect2 would create an import file
15598     # for dependence libraries.  The import file would start with
15599     # the line `#! .'.  This would cause the generated library to
15600     # depend on `.', always an invalid library.  This was fixed in
15601     # development snapshots of GCC prior to 3.0.
15602     case $host_os in
15603       aix4 | aix4.[01] | aix4.[01].*)
15604       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15605            echo ' yes '
15606            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15607         :
15608       else
15609         can_build_shared=no
15610       fi
15611       ;;
15612     esac
15613     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15614     # soname into executable. Probably we can add versioning support to
15615     # collect2, so additional links can be useful in future.
15616     if test "$aix_use_runtimelinking" = yes; then
15617       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15618       # instead of lib<name>.a to let people know that these are not
15619       # typical AIX shared libraries.
15620       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15621     else
15622       # We preserve .a as extension for shared libraries through AIX4.2
15623       # and later when we are not doing run time linking.
15624       library_names_spec='${libname}${release}.a $libname.a'
15625       soname_spec='${libname}${release}${shared_ext}$major'
15626     fi
15627     shlibpath_var=LIBPATH
15628   fi
15629   ;;
15630
15631 amigaos*)
15632   library_names_spec='$libname.ixlibrary $libname.a'
15633   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15634   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'
15635   ;;
15636
15637 beos*)
15638   library_names_spec='${libname}${shared_ext}'
15639   dynamic_linker="$host_os ld.so"
15640   shlibpath_var=LIBRARY_PATH
15641   ;;
15642
15643 bsdi4*)
15644   version_type=linux
15645   need_version=no
15646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647   soname_spec='${libname}${release}${shared_ext}$major'
15648   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15649   shlibpath_var=LD_LIBRARY_PATH
15650   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15651   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15652   # the default ld.so.conf also contains /usr/contrib/lib and
15653   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15654   # libtool to hard-code these into programs
15655   ;;
15656
15657 cygwin* | mingw* | pw32*)
15658   version_type=windows
15659   shrext_cmds=".dll"
15660   need_version=no
15661   need_lib_prefix=no
15662
15663   case $GCC,$host_os in
15664   yes,cygwin* | yes,mingw* | yes,pw32*)
15665     library_names_spec='$libname.dll.a'
15666     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15667     postinstall_cmds='base_file=`basename \${file}`~
15668       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15669       dldir=$destdir/`dirname \$dlpath`~
15670       test -d \$dldir || mkdir -p \$dldir~
15671       $install_prog $dir/$dlname \$dldir/$dlname'
15672     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15673       dlpath=$dir/\$dldll~
15674        $rm \$dlpath'
15675     shlibpath_overrides_runpath=yes
15676
15677     case $host_os in
15678     cygwin*)
15679       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15680       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15681       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15682       ;;
15683     mingw*)
15684       # MinGW DLLs use traditional 'lib' prefix
15685       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15686       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15687       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15688         # It is most probably a Windows format PATH printed by
15689         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15690         # path with ; separators, and with drive letters. We can handle the
15691         # drive letters (cygwin fileutils understands them), so leave them,
15692         # especially as we might pass files found there to a mingw objdump,
15693         # which wouldn't understand a cygwinified path. Ahh.
15694         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15695       else
15696         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15697       fi
15698       ;;
15699     pw32*)
15700       # pw32 DLLs use 'pw' prefix rather than 'lib'
15701       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15702       ;;
15703     esac
15704     ;;
15705
15706   *)
15707     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15708     ;;
15709   esac
15710   dynamic_linker='Win32 ld.exe'
15711   # FIXME: first we should search . and the directory the executable is in
15712   shlibpath_var=PATH
15713   ;;
15714
15715 darwin* | rhapsody*)
15716   dynamic_linker="$host_os dyld"
15717   version_type=darwin
15718   need_lib_prefix=no
15719   need_version=no
15720   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15721   soname_spec='${libname}${release}${major}$shared_ext'
15722   shlibpath_overrides_runpath=yes
15723   shlibpath_var=DYLD_LIBRARY_PATH
15724   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15725   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15726   if test "$GCC" = yes; then
15727     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"`
15728   else
15729     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15730   fi
15731   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15732   ;;
15733
15734 dgux*)
15735   version_type=linux
15736   need_lib_prefix=no
15737   need_version=no
15738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15739   soname_spec='${libname}${release}${shared_ext}$major'
15740   shlibpath_var=LD_LIBRARY_PATH
15741   ;;
15742
15743 freebsd1*)
15744   dynamic_linker=no
15745   ;;
15746
15747 kfreebsd*-gnu)
15748   version_type=linux
15749   need_lib_prefix=no
15750   need_version=no
15751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15752   soname_spec='${libname}${release}${shared_ext}$major'
15753   shlibpath_var=LD_LIBRARY_PATH
15754   shlibpath_overrides_runpath=no
15755   hardcode_into_libs=yes
15756   dynamic_linker='GNU ld.so'
15757   ;;
15758
15759 freebsd*)
15760   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15761   version_type=freebsd-$objformat
15762   case $version_type in
15763     freebsd-elf*)
15764       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15765       need_version=no
15766       need_lib_prefix=no
15767       ;;
15768     freebsd-*)
15769       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15770       need_version=yes
15771       ;;
15772   esac
15773   shlibpath_var=LD_LIBRARY_PATH
15774   case $host_os in
15775   freebsd2*)
15776     shlibpath_overrides_runpath=yes
15777     ;;
15778   freebsd3.01* | freebsdelf3.01*)
15779     shlibpath_overrides_runpath=yes
15780     hardcode_into_libs=yes
15781     ;;
15782   *) # from 3.2 on
15783     shlibpath_overrides_runpath=no
15784     hardcode_into_libs=yes
15785     ;;
15786   esac
15787   ;;
15788
15789 gnu*)
15790   version_type=linux
15791   need_lib_prefix=no
15792   need_version=no
15793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15794   soname_spec='${libname}${release}${shared_ext}$major'
15795   shlibpath_var=LD_LIBRARY_PATH
15796   hardcode_into_libs=yes
15797   ;;
15798
15799 hpux9* | hpux10* | hpux11*)
15800   # Give a soname corresponding to the major version so that dld.sl refuses to
15801   # link against other versions.
15802   version_type=sunos
15803   need_lib_prefix=no
15804   need_version=no
15805   case "$host_cpu" in
15806   ia64*)
15807     shrext_cmds='.so'
15808     hardcode_into_libs=yes
15809     dynamic_linker="$host_os dld.so"
15810     shlibpath_var=LD_LIBRARY_PATH
15811     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15812     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15813     soname_spec='${libname}${release}${shared_ext}$major'
15814     if test "X$HPUX_IA64_MODE" = X32; then
15815       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15816     else
15817       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15818     fi
15819     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15820     ;;
15821    hppa*64*)
15822      shrext_cmds='.sl'
15823      hardcode_into_libs=yes
15824      dynamic_linker="$host_os dld.sl"
15825      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15826      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15827      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15828      soname_spec='${libname}${release}${shared_ext}$major'
15829      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15830      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15831      ;;
15832    *)
15833     shrext_cmds='.sl'
15834     dynamic_linker="$host_os dld.sl"
15835     shlibpath_var=SHLIB_PATH
15836     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15837     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15838     soname_spec='${libname}${release}${shared_ext}$major'
15839     ;;
15840   esac
15841   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15842   postinstall_cmds='chmod 555 $lib'
15843   ;;
15844
15845 irix5* | irix6* | nonstopux*)
15846   case $host_os in
15847     nonstopux*) version_type=nonstopux ;;
15848     *)
15849         if test "$lt_cv_prog_gnu_ld" = yes; then
15850                 version_type=linux
15851         else
15852                 version_type=irix
15853         fi ;;
15854   esac
15855   need_lib_prefix=no
15856   need_version=no
15857   soname_spec='${libname}${release}${shared_ext}$major'
15858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15859   case $host_os in
15860   irix5* | nonstopux*)
15861     libsuff= shlibsuff=
15862     ;;
15863   *)
15864     case $LD in # libtool.m4 will add one of these switches to LD
15865     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15866       libsuff= shlibsuff= libmagic=32-bit;;
15867     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15868       libsuff=32 shlibsuff=N32 libmagic=N32;;
15869     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15870       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15871     *) libsuff= shlibsuff= libmagic=never-match;;
15872     esac
15873     ;;
15874   esac
15875   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15876   shlibpath_overrides_runpath=no
15877   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15878   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15879   hardcode_into_libs=yes
15880   ;;
15881
15882 # No shared lib support for Linux oldld, aout, or coff.
15883 linux*oldld* | linux*aout* | linux*coff*)
15884   dynamic_linker=no
15885   ;;
15886
15887 # This must be Linux ELF.
15888 linux*)
15889   version_type=linux
15890   need_lib_prefix=no
15891   need_version=no
15892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15893   soname_spec='${libname}${release}${shared_ext}$major'
15894   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15895   shlibpath_var=LD_LIBRARY_PATH
15896   shlibpath_overrides_runpath=no
15897   # This implies no fast_install, which is unacceptable.
15898   # Some rework will be needed to allow for fast_install
15899   # before this can be enabled.
15900   hardcode_into_libs=yes
15901
15902   # find out which ABI we are using
15903   libsuff=
15904   case "$host_cpu" in
15905   x86_64*|s390x*|powerpc64*)
15906     echo '#line 15906 "configure"' > conftest.$ac_ext
15907     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15908   (eval $ac_compile) 2>&5
15909   ac_status=$?
15910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911   (exit $ac_status); }; then
15912       case `/usr/bin/file conftest.$ac_objext` in
15913       *64-bit*)
15914         libsuff=64
15915         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15916         ;;
15917       esac
15918     fi
15919     rm -rf conftest*
15920     ;;
15921   esac
15922
15923   # Append ld.so.conf contents to the search path
15924   if test -f /etc/ld.so.conf; then
15925     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15926     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15927   fi
15928
15929   # We used to test for /lib/ld.so.1 and disable shared libraries on
15930   # powerpc, because MkLinux only supported shared libraries with the
15931   # GNU dynamic linker.  Since this was broken with cross compilers,
15932   # most powerpc-linux boxes support dynamic linking these days and
15933   # people can always --disable-shared, the test was removed, and we
15934   # assume the GNU/Linux dynamic linker is in use.
15935   dynamic_linker='GNU/Linux ld.so'
15936   ;;
15937
15938 knetbsd*-gnu)
15939   version_type=linux
15940   need_lib_prefix=no
15941   need_version=no
15942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15943   soname_spec='${libname}${release}${shared_ext}$major'
15944   shlibpath_var=LD_LIBRARY_PATH
15945   shlibpath_overrides_runpath=no
15946   hardcode_into_libs=yes
15947   dynamic_linker='GNU ld.so'
15948   ;;
15949
15950 netbsd*)
15951   version_type=sunos
15952   need_lib_prefix=no
15953   need_version=no
15954   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15956     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15957     dynamic_linker='NetBSD (a.out) ld.so'
15958   else
15959     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15960     soname_spec='${libname}${release}${shared_ext}$major'
15961     dynamic_linker='NetBSD ld.elf_so'
15962   fi
15963   shlibpath_var=LD_LIBRARY_PATH
15964   shlibpath_overrides_runpath=yes
15965   hardcode_into_libs=yes
15966   ;;
15967
15968 newsos6)
15969   version_type=linux
15970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971   shlibpath_var=LD_LIBRARY_PATH
15972   shlibpath_overrides_runpath=yes
15973   ;;
15974
15975 nto-qnx*)
15976   version_type=linux
15977   need_lib_prefix=no
15978   need_version=no
15979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15980   soname_spec='${libname}${release}${shared_ext}$major'
15981   shlibpath_var=LD_LIBRARY_PATH
15982   shlibpath_overrides_runpath=yes
15983   ;;
15984
15985 openbsd*)
15986   version_type=sunos
15987   need_lib_prefix=no
15988   need_version=yes
15989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15990   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15991   shlibpath_var=LD_LIBRARY_PATH
15992   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15993     case $host_os in
15994       openbsd2.[89] | openbsd2.[89].*)
15995         shlibpath_overrides_runpath=no
15996         ;;
15997       *)
15998         shlibpath_overrides_runpath=yes
15999         ;;
16000       esac
16001   else
16002     shlibpath_overrides_runpath=yes
16003   fi
16004   ;;
16005
16006 os2*)
16007   libname_spec='$name'
16008   shrext_cmds=".dll"
16009   need_lib_prefix=no
16010   library_names_spec='$libname${shared_ext} $libname.a'
16011   dynamic_linker='OS/2 ld.exe'
16012   shlibpath_var=LIBPATH
16013   ;;
16014
16015 osf3* | osf4* | osf5*)
16016   version_type=osf
16017   need_lib_prefix=no
16018   need_version=no
16019   soname_spec='${libname}${release}${shared_ext}$major'
16020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16021   shlibpath_var=LD_LIBRARY_PATH
16022   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16023   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16024   ;;
16025
16026 sco3.2v5*)
16027   version_type=osf
16028   soname_spec='${libname}${release}${shared_ext}$major'
16029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16030   shlibpath_var=LD_LIBRARY_PATH
16031   ;;
16032
16033 solaris*)
16034   version_type=linux
16035   need_lib_prefix=no
16036   need_version=no
16037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16038   soname_spec='${libname}${release}${shared_ext}$major'
16039   shlibpath_var=LD_LIBRARY_PATH
16040   shlibpath_overrides_runpath=yes
16041   hardcode_into_libs=yes
16042   # ldd complains unless libraries are executable
16043   postinstall_cmds='chmod +x $lib'
16044   ;;
16045
16046 sunos4*)
16047   version_type=sunos
16048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16049   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16050   shlibpath_var=LD_LIBRARY_PATH
16051   shlibpath_overrides_runpath=yes
16052   if test "$with_gnu_ld" = yes; then
16053     need_lib_prefix=no
16054   fi
16055   need_version=yes
16056   ;;
16057
16058 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16059   version_type=linux
16060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061   soname_spec='${libname}${release}${shared_ext}$major'
16062   shlibpath_var=LD_LIBRARY_PATH
16063   case $host_vendor in
16064     sni)
16065       shlibpath_overrides_runpath=no
16066       need_lib_prefix=no
16067       export_dynamic_flag_spec='${wl}-Blargedynsym'
16068       runpath_var=LD_RUN_PATH
16069       ;;
16070     siemens)
16071       need_lib_prefix=no
16072       ;;
16073     motorola)
16074       need_lib_prefix=no
16075       need_version=no
16076       shlibpath_overrides_runpath=no
16077       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16078       ;;
16079   esac
16080   ;;
16081
16082 sysv4*MP*)
16083   if test -d /usr/nec ;then
16084     version_type=linux
16085     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16086     soname_spec='$libname${shared_ext}.$major'
16087     shlibpath_var=LD_LIBRARY_PATH
16088   fi
16089   ;;
16090
16091 uts4*)
16092   version_type=linux
16093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16094   soname_spec='${libname}${release}${shared_ext}$major'
16095   shlibpath_var=LD_LIBRARY_PATH
16096   ;;
16097
16098 *)
16099   dynamic_linker=no
16100   ;;
16101 esac
16102 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16103 echo "${ECHO_T}$dynamic_linker" >&6
16104 test "$dynamic_linker" = no && can_build_shared=no
16105
16106 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16107 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16108 hardcode_action_F77=
16109 if test -n "$hardcode_libdir_flag_spec_F77" || \
16110    test -n "$runpath_var F77" || \
16111    test "X$hardcode_automatic_F77"="Xyes" ; then
16112
16113   # We can hardcode non-existant directories.
16114   if test "$hardcode_direct_F77" != no &&
16115      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16116      # have to relink, otherwise we might link with an installed library
16117      # when we should be linking with a yet-to-be-installed one
16118      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16119      test "$hardcode_minus_L_F77" != no; then
16120     # Linking always hardcodes the temporary library directory.
16121     hardcode_action_F77=relink
16122   else
16123     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16124     hardcode_action_F77=immediate
16125   fi
16126 else
16127   # We cannot hardcode anything, or else we can only hardcode existing
16128   # directories.
16129   hardcode_action_F77=unsupported
16130 fi
16131 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16132 echo "${ECHO_T}$hardcode_action_F77" >&6
16133
16134 if test "$hardcode_action_F77" = relink; then
16135   # Fast installation is not supported
16136   enable_fast_install=no
16137 elif test "$shlibpath_overrides_runpath" = yes ||
16138      test "$enable_shared" = no; then
16139   # Fast installation is not necessary
16140   enable_fast_install=needless
16141 fi
16142
16143 striplib=
16144 old_striplib=
16145 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16146 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16147 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16148   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16149   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16150   echo "$as_me:$LINENO: result: yes" >&5
16151 echo "${ECHO_T}yes" >&6
16152 else
16153 # FIXME - insert some real tests, host_os isn't really good enough
16154   case $host_os in
16155    darwin*)
16156        if test -n "$STRIP" ; then
16157          striplib="$STRIP -x"
16158          echo "$as_me:$LINENO: result: yes" >&5
16159 echo "${ECHO_T}yes" >&6
16160        else
16161   echo "$as_me:$LINENO: result: no" >&5
16162 echo "${ECHO_T}no" >&6
16163 fi
16164        ;;
16165    *)
16166   echo "$as_me:$LINENO: result: no" >&5
16167 echo "${ECHO_T}no" >&6
16168     ;;
16169   esac
16170 fi
16171
16172
16173
16174 # The else clause should only fire when bootstrapping the
16175 # libtool distribution, otherwise you forgot to ship ltmain.sh
16176 # with your package, and you will get complaints that there are
16177 # no rules to generate ltmain.sh.
16178 if test -f "$ltmain"; then
16179   # See if we are running on zsh, and set the options which allow our commands through
16180   # without removal of \ escapes.
16181   if test -n "${ZSH_VERSION+set}" ; then
16182     setopt NO_GLOB_SUBST
16183   fi
16184   # Now quote all the things that may contain metacharacters while being
16185   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16186   # variables and quote the copies for generation of the libtool script.
16187   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16188     SED SHELL STRIP \
16189     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16190     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16191     deplibs_check_method reload_flag reload_cmds need_locks \
16192     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16193     lt_cv_sys_global_symbol_to_c_name_address \
16194     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16195     old_postinstall_cmds old_postuninstall_cmds \
16196     compiler_F77 \
16197     CC_F77 \
16198     LD_F77 \
16199     lt_prog_compiler_wl_F77 \
16200     lt_prog_compiler_pic_F77 \
16201     lt_prog_compiler_static_F77 \
16202     lt_prog_compiler_no_builtin_flag_F77 \
16203     export_dynamic_flag_spec_F77 \
16204     thread_safe_flag_spec_F77 \
16205     whole_archive_flag_spec_F77 \
16206     enable_shared_with_static_runtimes_F77 \
16207     old_archive_cmds_F77 \
16208     old_archive_from_new_cmds_F77 \
16209     predep_objects_F77 \
16210     postdep_objects_F77 \
16211     predeps_F77 \
16212     postdeps_F77 \
16213     compiler_lib_search_path_F77 \
16214     archive_cmds_F77 \
16215     archive_expsym_cmds_F77 \
16216     postinstall_cmds_F77 \
16217     postuninstall_cmds_F77 \
16218     old_archive_from_expsyms_cmds_F77 \
16219     allow_undefined_flag_F77 \
16220     no_undefined_flag_F77 \
16221     export_symbols_cmds_F77 \
16222     hardcode_libdir_flag_spec_F77 \
16223     hardcode_libdir_flag_spec_ld_F77 \
16224     hardcode_libdir_separator_F77 \
16225     hardcode_automatic_F77 \
16226     module_cmds_F77 \
16227     module_expsym_cmds_F77 \
16228     lt_cv_prog_compiler_c_o_F77 \
16229     exclude_expsyms_F77 \
16230     include_expsyms_F77; do
16231
16232     case $var in
16233     old_archive_cmds_F77 | \
16234     old_archive_from_new_cmds_F77 | \
16235     archive_cmds_F77 | \
16236     archive_expsym_cmds_F77 | \
16237     module_cmds_F77 | \
16238     module_expsym_cmds_F77 | \
16239     old_archive_from_expsyms_cmds_F77 | \
16240     export_symbols_cmds_F77 | \
16241     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16242     postinstall_cmds | postuninstall_cmds | \
16243     old_postinstall_cmds | old_postuninstall_cmds | \
16244     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16245       # Double-quote double-evaled strings.
16246       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16247       ;;
16248     *)
16249       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16250       ;;
16251     esac
16252   done
16253
16254   case $lt_echo in
16255   *'\$0 --fallback-echo"')
16256     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16257     ;;
16258   esac
16259
16260 cfgfile="$ofile"
16261
16262   cat <<__EOF__ >> "$cfgfile"
16263 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16264
16265 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16266
16267 # Shell to use when invoking shell scripts.
16268 SHELL=$lt_SHELL
16269
16270 # Whether or not to build shared libraries.
16271 build_libtool_libs=$enable_shared
16272
16273 # Whether or not to build static libraries.
16274 build_old_libs=$enable_static
16275
16276 # Whether or not to add -lc for building shared libraries.
16277 build_libtool_need_lc=$archive_cmds_need_lc_F77
16278
16279 # Whether or not to disallow shared libs when runtime libs are static
16280 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16281
16282 # Whether or not to optimize for fast installation.
16283 fast_install=$enable_fast_install
16284
16285 # The host system.
16286 host_alias=$host_alias
16287 host=$host
16288
16289 # An echo program that does not interpret backslashes.
16290 echo=$lt_echo
16291
16292 # The archiver.
16293 AR=$lt_AR
16294 AR_FLAGS=$lt_AR_FLAGS
16295
16296 # A C compiler.
16297 LTCC=$lt_LTCC
16298
16299 # A language-specific compiler.
16300 CC=$lt_compiler_F77
16301
16302 # Is the compiler the GNU C compiler?
16303 with_gcc=$GCC_F77
16304
16305 # An ERE matcher.
16306 EGREP=$lt_EGREP
16307
16308 # The linker used to build libraries.
16309 LD=$lt_LD_F77
16310
16311 # Whether we need hard or soft links.
16312 LN_S=$lt_LN_S
16313
16314 # A BSD-compatible nm program.
16315 NM=$lt_NM
16316
16317 # A symbol stripping program
16318 STRIP=$lt_STRIP
16319
16320 # Used to examine libraries when file_magic_cmd begins "file"
16321 MAGIC_CMD=$MAGIC_CMD
16322
16323 # Used on cygwin: DLL creation program.
16324 DLLTOOL="$DLLTOOL"
16325
16326 # Used on cygwin: object dumper.
16327 OBJDUMP="$OBJDUMP"
16328
16329 # Used on cygwin: assembler.
16330 AS="$AS"
16331
16332 # The name of the directory that contains temporary libtool files.
16333 objdir=$objdir
16334
16335 # How to create reloadable object files.
16336 reload_flag=$lt_reload_flag
16337 reload_cmds=$lt_reload_cmds
16338
16339 # How to pass a linker flag through the compiler.
16340 wl=$lt_lt_prog_compiler_wl_F77
16341
16342 # Object file suffix (normally "o").
16343 objext="$ac_objext"
16344
16345 # Old archive suffix (normally "a").
16346 libext="$libext"
16347
16348 # Shared library suffix (normally ".so").
16349 shrext_cmds='$shrext_cmds'
16350
16351 # Executable file suffix (normally "").
16352 exeext="$exeext"
16353
16354 # Additional compiler flags for building library objects.
16355 pic_flag=$lt_lt_prog_compiler_pic_F77
16356 pic_mode=$pic_mode
16357
16358 # What is the maximum length of a command?
16359 max_cmd_len=$lt_cv_sys_max_cmd_len
16360
16361 # Does compiler simultaneously support -c and -o options?
16362 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16363
16364 # Must we lock files when doing compilation ?
16365 need_locks=$lt_need_locks
16366
16367 # Do we need the lib prefix for modules?
16368 need_lib_prefix=$need_lib_prefix
16369
16370 # Do we need a version for libraries?
16371 need_version=$need_version
16372
16373 # Whether dlopen is supported.
16374 dlopen_support=$enable_dlopen
16375
16376 # Whether dlopen of programs is supported.
16377 dlopen_self=$enable_dlopen_self
16378
16379 # Whether dlopen of statically linked programs is supported.
16380 dlopen_self_static=$enable_dlopen_self_static
16381
16382 # Compiler flag to prevent dynamic linking.
16383 link_static_flag=$lt_lt_prog_compiler_static_F77
16384
16385 # Compiler flag to turn off builtin functions.
16386 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16387
16388 # Compiler flag to allow reflexive dlopens.
16389 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16390
16391 # Compiler flag to generate shared objects directly from archives.
16392 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16393
16394 # Compiler flag to generate thread-safe objects.
16395 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16396
16397 # Library versioning type.
16398 version_type=$version_type
16399
16400 # Format of library name prefix.
16401 libname_spec=$lt_libname_spec
16402
16403 # List of archive names.  First name is the real one, the rest are links.
16404 # The last name is the one that the linker finds with -lNAME.
16405 library_names_spec=$lt_library_names_spec
16406
16407 # The coded name of the library, if different from the real name.
16408 soname_spec=$lt_soname_spec
16409
16410 # Commands used to build and install an old-style archive.
16411 RANLIB=$lt_RANLIB
16412 old_archive_cmds=$lt_old_archive_cmds_F77
16413 old_postinstall_cmds=$lt_old_postinstall_cmds
16414 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16415
16416 # Create an old-style archive from a shared archive.
16417 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16418
16419 # Create a temporary old-style archive to link instead of a shared archive.
16420 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16421
16422 # Commands used to build and install a shared archive.
16423 archive_cmds=$lt_archive_cmds_F77
16424 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16425 postinstall_cmds=$lt_postinstall_cmds
16426 postuninstall_cmds=$lt_postuninstall_cmds
16427
16428 # Commands used to build a loadable module (assumed same as above if empty)
16429 module_cmds=$lt_module_cmds_F77
16430 module_expsym_cmds=$lt_module_expsym_cmds_F77
16431
16432 # Commands to strip libraries.
16433 old_striplib=$lt_old_striplib
16434 striplib=$lt_striplib
16435
16436 # Dependencies to place before the objects being linked to create a
16437 # shared library.
16438 predep_objects=$lt_predep_objects_F77
16439
16440 # Dependencies to place after the objects being linked to create a
16441 # shared library.
16442 postdep_objects=$lt_postdep_objects_F77
16443
16444 # Dependencies to place before the objects being linked to create a
16445 # shared library.
16446 predeps=$lt_predeps_F77
16447
16448 # Dependencies to place after the objects being linked to create a
16449 # shared library.
16450 postdeps=$lt_postdeps_F77
16451
16452 # The library search path used internally by the compiler when linking
16453 # a shared library.
16454 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16455
16456 # Method to check whether dependent libraries are shared objects.
16457 deplibs_check_method=$lt_deplibs_check_method
16458
16459 # Command to use when deplibs_check_method == file_magic.
16460 file_magic_cmd=$lt_file_magic_cmd
16461
16462 # Flag that allows shared libraries with undefined symbols to be built.
16463 allow_undefined_flag=$lt_allow_undefined_flag_F77
16464
16465 # Flag that forces no undefined symbols.
16466 no_undefined_flag=$lt_no_undefined_flag_F77
16467
16468 # Commands used to finish a libtool library installation in a directory.
16469 finish_cmds=$lt_finish_cmds
16470
16471 # Same as above, but a single script fragment to be evaled but not shown.
16472 finish_eval=$lt_finish_eval
16473
16474 # Take the output of nm and produce a listing of raw symbols and C names.
16475 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16476
16477 # Transform the output of nm in a proper C declaration
16478 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16479
16480 # Transform the output of nm in a C name address pair
16481 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16482
16483 # This is the shared library runtime path variable.
16484 runpath_var=$runpath_var
16485
16486 # This is the shared library path variable.
16487 shlibpath_var=$shlibpath_var
16488
16489 # Is shlibpath searched before the hard-coded library search path?
16490 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16491
16492 # How to hardcode a shared library path into an executable.
16493 hardcode_action=$hardcode_action_F77
16494
16495 # Whether we should hardcode library paths into libraries.
16496 hardcode_into_libs=$hardcode_into_libs
16497
16498 # Flag to hardcode \$libdir into a binary during linking.
16499 # This must work even if \$libdir does not exist.
16500 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16501
16502 # If ld is used when linking, flag to hardcode \$libdir into
16503 # a binary during linking. This must work even if \$libdir does
16504 # not exist.
16505 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16506
16507 # Whether we need a single -rpath flag with a separated argument.
16508 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16509
16510 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16511 # resulting binary.
16512 hardcode_direct=$hardcode_direct_F77
16513
16514 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16515 # resulting binary.
16516 hardcode_minus_L=$hardcode_minus_L_F77
16517
16518 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16519 # the resulting binary.
16520 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16521
16522 # Set to yes if building a shared library automatically hardcodes DIR into the library
16523 # and all subsequent libraries and executables linked against it.
16524 hardcode_automatic=$hardcode_automatic_F77
16525
16526 # Variables whose values should be saved in libtool wrapper scripts and
16527 # restored at relink time.
16528 variables_saved_for_relink="$variables_saved_for_relink"
16529
16530 # Whether libtool must link a program against all its dependency libraries.
16531 link_all_deplibs=$link_all_deplibs_F77
16532
16533 # Compile-time system search path for libraries
16534 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16535
16536 # Run-time system search path for libraries
16537 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16538
16539 # Fix the shell variable \$srcfile for the compiler.
16540 fix_srcfile_path="$fix_srcfile_path_F77"
16541
16542 # Set to yes if exported symbols are required.
16543 always_export_symbols=$always_export_symbols_F77
16544
16545 # The commands to list exported symbols.
16546 export_symbols_cmds=$lt_export_symbols_cmds_F77
16547
16548 # The commands to extract the exported symbol list from a shared archive.
16549 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16550
16551 # Symbols that should not be listed in the preloaded symbols.
16552 exclude_expsyms=$lt_exclude_expsyms_F77
16553
16554 # Symbols that must always be exported.
16555 include_expsyms=$lt_include_expsyms_F77
16556
16557 # ### END LIBTOOL TAG CONFIG: $tagname
16558
16559 __EOF__
16560
16561
16562 else
16563   # If there is no Makefile yet, we rely on a make rule to execute
16564   # `config.status --recheck' to rerun these tests and create the
16565   # libtool script then.
16566   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16567   if test -f "$ltmain_in"; then
16568     test -f Makefile && make "$ltmain"
16569   fi
16570 fi
16571
16572
16573 ac_ext=c
16574 ac_cpp='$CPP $CPPFLAGS'
16575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16578
16579 CC="$lt_save_CC"
16580
16581         else
16582           tagname=""
16583         fi
16584         ;;
16585
16586       GCJ)
16587         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16588
16589
16590
16591 # Source file extension for Java test sources.
16592 ac_ext=java
16593
16594 # Object file extension for compiled Java test sources.
16595 objext=o
16596 objext_GCJ=$objext
16597
16598 # Code to be used in simple compile tests
16599 lt_simple_compile_test_code="class foo {}\n"
16600
16601 # Code to be used in simple link tests
16602 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16603
16604 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16605
16606 # If no C compiler was specified, use CC.
16607 LTCC=${LTCC-"$CC"}
16608
16609 # Allow CC to be a program name with arguments.
16610 compiler=$CC
16611
16612
16613 # Allow CC to be a program name with arguments.
16614 lt_save_CC="$CC"
16615 CC=${GCJ-"gcj"}
16616 compiler=$CC
16617 compiler_GCJ=$CC
16618
16619 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16620 archive_cmds_need_lc_GCJ=no
16621
16622
16623 lt_prog_compiler_no_builtin_flag_GCJ=
16624
16625 if test "$GCC" = yes; then
16626   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16627
16628
16629 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16630 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16631 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16632   echo $ECHO_N "(cached) $ECHO_C" >&6
16633 else
16634   lt_cv_prog_compiler_rtti_exceptions=no
16635   ac_outfile=conftest.$ac_objext
16636    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16637    lt_compiler_flag="-fno-rtti -fno-exceptions"
16638    # Insert the option either (1) after the last *FLAGS variable, or
16639    # (2) before a word containing "conftest.", or (3) at the end.
16640    # Note that $ac_compile itself does not contain backslashes and begins
16641    # with a dollar sign (not a hyphen), so the echo should work correctly.
16642    # The option is referenced via a variable to avoid confusing sed.
16643    lt_compile=`echo "$ac_compile" | $SED \
16644    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16645    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16646    -e 's:$: $lt_compiler_flag:'`
16647    (eval echo "\"\$as_me:16647: $lt_compile\"" >&5)
16648    (eval "$lt_compile" 2>conftest.err)
16649    ac_status=$?
16650    cat conftest.err >&5
16651    echo "$as_me:16651: \$? = $ac_status" >&5
16652    if (exit $ac_status) && test -s "$ac_outfile"; then
16653      # The compiler can only warn and ignore the option if not recognized
16654      # So say no if there are warnings
16655      if test ! -s conftest.err; then
16656        lt_cv_prog_compiler_rtti_exceptions=yes
16657      fi
16658    fi
16659    $rm conftest*
16660
16661 fi
16662 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16663 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16664
16665 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16666     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16667 else
16668     :
16669 fi
16670
16671 fi
16672
16673 lt_prog_compiler_wl_GCJ=
16674 lt_prog_compiler_pic_GCJ=
16675 lt_prog_compiler_static_GCJ=
16676
16677 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16678 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16679
16680   if test "$GCC" = yes; then
16681     lt_prog_compiler_wl_GCJ='-Wl,'
16682     lt_prog_compiler_static_GCJ='-static'
16683
16684     case $host_os in
16685       aix*)
16686       # All AIX code is PIC.
16687       if test "$host_cpu" = ia64; then
16688         # AIX 5 now supports IA64 processor
16689         lt_prog_compiler_static_GCJ='-Bstatic'
16690       fi
16691       ;;
16692
16693     amigaos*)
16694       # FIXME: we need at least 68020 code to build shared libraries, but
16695       # adding the `-m68020' flag to GCC prevents building anything better,
16696       # like `-m68040'.
16697       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16698       ;;
16699
16700     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16701       # PIC is the default for these OSes.
16702       ;;
16703
16704     mingw* | pw32* | os2*)
16705       # This hack is so that the source file can tell whether it is being
16706       # built for inclusion in a dll (and should export symbols for example).
16707       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16708       ;;
16709
16710     darwin* | rhapsody*)
16711       # PIC is the default on this platform
16712       # Common symbols not allowed in MH_DYLIB files
16713       lt_prog_compiler_pic_GCJ='-fno-common'
16714       ;;
16715
16716     msdosdjgpp*)
16717       # Just because we use GCC doesn't mean we suddenly get shared libraries
16718       # on systems that don't support them.
16719       lt_prog_compiler_can_build_shared_GCJ=no
16720       enable_shared=no
16721       ;;
16722
16723     sysv4*MP*)
16724       if test -d /usr/nec; then
16725         lt_prog_compiler_pic_GCJ=-Kconform_pic
16726       fi
16727       ;;
16728
16729     hpux*)
16730       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16731       # not for PA HP-UX.
16732       case "$host_cpu" in
16733       hppa*64*|ia64*)
16734         # +Z the default
16735         ;;
16736       *)
16737         lt_prog_compiler_pic_GCJ='-fPIC'
16738         ;;
16739       esac
16740       ;;
16741
16742     *)
16743       lt_prog_compiler_pic_GCJ='-fPIC'
16744       ;;
16745     esac
16746   else
16747     # PORTME Check for flag to pass linker flags through the system compiler.
16748     case $host_os in
16749     aix*)
16750       lt_prog_compiler_wl_GCJ='-Wl,'
16751       if test "$host_cpu" = ia64; then
16752         # AIX 5 now supports IA64 processor
16753         lt_prog_compiler_static_GCJ='-Bstatic'
16754       else
16755         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16756       fi
16757       ;;
16758
16759     mingw* | pw32* | os2*)
16760       # This hack is so that the source file can tell whether it is being
16761       # built for inclusion in a dll (and should export symbols for example).
16762       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16763       ;;
16764
16765     hpux9* | hpux10* | hpux11*)
16766       lt_prog_compiler_wl_GCJ='-Wl,'
16767       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16768       # not for PA HP-UX.
16769       case "$host_cpu" in
16770       hppa*64*|ia64*)
16771         # +Z the default
16772         ;;
16773       *)
16774         lt_prog_compiler_pic_GCJ='+Z'
16775         ;;
16776       esac
16777       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16778       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16779       ;;
16780
16781     irix5* | irix6* | nonstopux*)
16782       lt_prog_compiler_wl_GCJ='-Wl,'
16783       # PIC (with -KPIC) is the default.
16784       lt_prog_compiler_static_GCJ='-non_shared'
16785       ;;
16786
16787     newsos6)
16788       lt_prog_compiler_pic_GCJ='-KPIC'
16789       lt_prog_compiler_static_GCJ='-Bstatic'
16790       ;;
16791
16792     linux*)
16793       case $CC in
16794       icc* | ecc*)
16795         lt_prog_compiler_wl_GCJ='-Wl,'
16796         lt_prog_compiler_pic_GCJ='-KPIC'
16797         lt_prog_compiler_static_GCJ='-static'
16798         ;;
16799       ccc*)
16800         lt_prog_compiler_wl_GCJ='-Wl,'
16801         # All Alpha code is PIC.
16802         lt_prog_compiler_static_GCJ='-non_shared'
16803         ;;
16804       esac
16805       ;;
16806
16807     osf3* | osf4* | osf5*)
16808       lt_prog_compiler_wl_GCJ='-Wl,'
16809       # All OSF/1 code is PIC.
16810       lt_prog_compiler_static_GCJ='-non_shared'
16811       ;;
16812
16813     sco3.2v5*)
16814       lt_prog_compiler_pic_GCJ='-Kpic'
16815       lt_prog_compiler_static_GCJ='-dn'
16816       ;;
16817
16818     solaris*)
16819       lt_prog_compiler_wl_GCJ='-Wl,'
16820       lt_prog_compiler_pic_GCJ='-KPIC'
16821       lt_prog_compiler_static_GCJ='-Bstatic'
16822       ;;
16823
16824     sunos4*)
16825       lt_prog_compiler_wl_GCJ='-Qoption ld '
16826       lt_prog_compiler_pic_GCJ='-PIC'
16827       lt_prog_compiler_static_GCJ='-Bstatic'
16828       ;;
16829
16830     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16831       lt_prog_compiler_wl_GCJ='-Wl,'
16832       lt_prog_compiler_pic_GCJ='-KPIC'
16833       lt_prog_compiler_static_GCJ='-Bstatic'
16834       ;;
16835
16836     sysv4*MP*)
16837       if test -d /usr/nec ;then
16838         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16839         lt_prog_compiler_static_GCJ='-Bstatic'
16840       fi
16841       ;;
16842
16843     uts4*)
16844       lt_prog_compiler_pic_GCJ='-pic'
16845       lt_prog_compiler_static_GCJ='-Bstatic'
16846       ;;
16847
16848     *)
16849       lt_prog_compiler_can_build_shared_GCJ=no
16850       ;;
16851     esac
16852   fi
16853
16854 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16855 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16856
16857 #
16858 # Check to make sure the PIC flag actually works.
16859 #
16860 if test -n "$lt_prog_compiler_pic_GCJ"; then
16861
16862 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16863 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16864 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16865   echo $ECHO_N "(cached) $ECHO_C" >&6
16866 else
16867   lt_prog_compiler_pic_works_GCJ=no
16868   ac_outfile=conftest.$ac_objext
16869    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16870    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16871    # Insert the option either (1) after the last *FLAGS variable, or
16872    # (2) before a word containing "conftest.", or (3) at the end.
16873    # Note that $ac_compile itself does not contain backslashes and begins
16874    # with a dollar sign (not a hyphen), so the echo should work correctly.
16875    # The option is referenced via a variable to avoid confusing sed.
16876    lt_compile=`echo "$ac_compile" | $SED \
16877    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16878    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16879    -e 's:$: $lt_compiler_flag:'`
16880    (eval echo "\"\$as_me:16880: $lt_compile\"" >&5)
16881    (eval "$lt_compile" 2>conftest.err)
16882    ac_status=$?
16883    cat conftest.err >&5
16884    echo "$as_me:16884: \$? = $ac_status" >&5
16885    if (exit $ac_status) && test -s "$ac_outfile"; then
16886      # The compiler can only warn and ignore the option if not recognized
16887      # So say no if there are warnings
16888      if test ! -s conftest.err; then
16889        lt_prog_compiler_pic_works_GCJ=yes
16890      fi
16891    fi
16892    $rm conftest*
16893
16894 fi
16895 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16896 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16897
16898 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16899     case $lt_prog_compiler_pic_GCJ in
16900      "" | " "*) ;;
16901      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16902      esac
16903 else
16904     lt_prog_compiler_pic_GCJ=
16905      lt_prog_compiler_can_build_shared_GCJ=no
16906 fi
16907
16908 fi
16909 case "$host_os" in
16910   # For platforms which do not support PIC, -DPIC is meaningless:
16911   *djgpp*)
16912     lt_prog_compiler_pic_GCJ=
16913     ;;
16914   *)
16915     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16916     ;;
16917 esac
16918
16919 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16920 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16921 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16922   echo $ECHO_N "(cached) $ECHO_C" >&6
16923 else
16924   lt_cv_prog_compiler_c_o_GCJ=no
16925    $rm -r conftest 2>/dev/null
16926    mkdir conftest
16927    cd conftest
16928    mkdir out
16929    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16930
16931    lt_compiler_flag="-o out/conftest2.$ac_objext"
16932    # Insert the option either (1) after the last *FLAGS variable, or
16933    # (2) before a word containing "conftest.", or (3) at the end.
16934    # Note that $ac_compile itself does not contain backslashes and begins
16935    # with a dollar sign (not a hyphen), so the echo should work correctly.
16936    lt_compile=`echo "$ac_compile" | $SED \
16937    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16938    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16939    -e 's:$: $lt_compiler_flag:'`
16940    (eval echo "\"\$as_me:16940: $lt_compile\"" >&5)
16941    (eval "$lt_compile" 2>out/conftest.err)
16942    ac_status=$?
16943    cat out/conftest.err >&5
16944    echo "$as_me:16944: \$? = $ac_status" >&5
16945    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16946    then
16947      # The compiler can only warn and ignore the option if not recognized
16948      # So say no if there are warnings
16949      if test ! -s out/conftest.err; then
16950        lt_cv_prog_compiler_c_o_GCJ=yes
16951      fi
16952    fi
16953    chmod u+w .
16954    $rm conftest*
16955    # SGI C++ compiler will create directory out/ii_files/ for
16956    # template instantiation
16957    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16958    $rm out/* && rmdir out
16959    cd ..
16960    rmdir conftest
16961    $rm conftest*
16962
16963 fi
16964 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16965 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16966
16967
16968 hard_links="nottested"
16969 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16970   # do not overwrite the value of need_locks provided by the user
16971   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16972 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16973   hard_links=yes
16974   $rm conftest*
16975   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16976   touch conftest.a
16977   ln conftest.a conftest.b 2>&5 || hard_links=no
16978   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16979   echo "$as_me:$LINENO: result: $hard_links" >&5
16980 echo "${ECHO_T}$hard_links" >&6
16981   if test "$hard_links" = no; then
16982     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16983 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16984     need_locks=warn
16985   fi
16986 else
16987   need_locks=no
16988 fi
16989
16990 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16991 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16992
16993   runpath_var=
16994   allow_undefined_flag_GCJ=
16995   enable_shared_with_static_runtimes_GCJ=no
16996   archive_cmds_GCJ=
16997   archive_expsym_cmds_GCJ=
16998   old_archive_From_new_cmds_GCJ=
16999   old_archive_from_expsyms_cmds_GCJ=
17000   export_dynamic_flag_spec_GCJ=
17001   whole_archive_flag_spec_GCJ=
17002   thread_safe_flag_spec_GCJ=
17003   hardcode_libdir_flag_spec_GCJ=
17004   hardcode_libdir_flag_spec_ld_GCJ=
17005   hardcode_libdir_separator_GCJ=
17006   hardcode_direct_GCJ=no
17007   hardcode_minus_L_GCJ=no
17008   hardcode_shlibpath_var_GCJ=unsupported
17009   link_all_deplibs_GCJ=unknown
17010   hardcode_automatic_GCJ=no
17011   module_cmds_GCJ=
17012   module_expsym_cmds_GCJ=
17013   always_export_symbols_GCJ=no
17014   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17015   # include_expsyms should be a list of space-separated symbols to be *always*
17016   # included in the symbol list
17017   include_expsyms_GCJ=
17018   # exclude_expsyms can be an extended regexp of symbols to exclude
17019   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17020   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17021   # as well as any symbol that contains `d'.
17022   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17023   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17024   # platforms (ab)use it in PIC code, but their linkers get confused if
17025   # the symbol is explicitly referenced.  Since portable code cannot
17026   # rely on this symbol name, it's probably fine to never include it in
17027   # preloaded symbol tables.
17028   extract_expsyms_cmds=
17029
17030   case $host_os in
17031   cygwin* | mingw* | pw32*)
17032     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17033     # When not using gcc, we currently assume that we are using
17034     # Microsoft Visual C++.
17035     if test "$GCC" != yes; then
17036       with_gnu_ld=no
17037     fi
17038     ;;
17039   openbsd*)
17040     with_gnu_ld=no
17041     ;;
17042   esac
17043
17044   ld_shlibs_GCJ=yes
17045   if test "$with_gnu_ld" = yes; then
17046     # If archive_cmds runs LD, not CC, wlarc should be empty
17047     wlarc='${wl}'
17048
17049     # See if GNU ld supports shared libraries.
17050     case $host_os in
17051     aix3* | aix4* | aix5*)
17052       # On AIX/PPC, the GNU linker is very broken
17053       if test "$host_cpu" != ia64; then
17054         ld_shlibs_GCJ=no
17055         cat <<EOF 1>&2
17056
17057 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17058 *** to be unable to reliably create shared libraries on AIX.
17059 *** Therefore, libtool is disabling shared libraries support.  If you
17060 *** really care for shared libraries, you may want to modify your PATH
17061 *** so that a non-GNU linker is found, and then restart.
17062
17063 EOF
17064       fi
17065       ;;
17066
17067     amigaos*)
17068       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)'
17069       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17070       hardcode_minus_L_GCJ=yes
17071
17072       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17073       # that the semantics of dynamic libraries on AmigaOS, at least up
17074       # to version 4, is to share data among multiple programs linked
17075       # with the same dynamic library.  Since this doesn't match the
17076       # behavior of shared libraries on other platforms, we can't use
17077       # them.
17078       ld_shlibs_GCJ=no
17079       ;;
17080
17081     beos*)
17082       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17083         allow_undefined_flag_GCJ=unsupported
17084         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17085         # support --undefined.  This deserves some investigation.  FIXME
17086         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17087       else
17088         ld_shlibs_GCJ=no
17089       fi
17090       ;;
17091
17092     cygwin* | mingw* | pw32*)
17093       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17094       # as there is no search path for DLLs.
17095       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17096       allow_undefined_flag_GCJ=unsupported
17097       always_export_symbols_GCJ=no
17098       enable_shared_with_static_runtimes_GCJ=yes
17099       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17100
17101       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17102         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17103         # If the export-symbols file already is a .def file (1st line
17104         # is EXPORTS), use it as is; otherwise, prepend...
17105         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17106           cp $export_symbols $output_objdir/$soname.def;
17107         else
17108           echo EXPORTS > $output_objdir/$soname.def;
17109           cat $export_symbols >> $output_objdir/$soname.def;
17110         fi~
17111         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17112       else
17113         ld_shlibs=no
17114       fi
17115       ;;
17116
17117     netbsd*)
17118       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17119         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17120         wlarc=
17121       else
17122         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17123         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17124       fi
17125       ;;
17126
17127     solaris* | sysv5*)
17128       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17129         ld_shlibs_GCJ=no
17130         cat <<EOF 1>&2
17131
17132 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17133 *** create shared libraries on Solaris systems.  Therefore, libtool
17134 *** is disabling shared libraries support.  We urge you to upgrade GNU
17135 *** binutils to release 2.9.1 or newer.  Another option is to modify
17136 *** your PATH or compiler configuration so that the native linker is
17137 *** used, and then restart.
17138
17139 EOF
17140       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17141         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17142         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17143       else
17144         ld_shlibs_GCJ=no
17145       fi
17146       ;;
17147
17148     sunos4*)
17149       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17150       wlarc=
17151       hardcode_direct_GCJ=yes
17152       hardcode_shlibpath_var_GCJ=no
17153       ;;
17154
17155   linux*)
17156     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17157         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17158         archive_cmds_GCJ="$tmp_archive_cmds"
17159       supports_anon_versioning=no
17160       case `$LD -v 2>/dev/null` in
17161         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17162         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17163         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17164         *\ 2.11.*) ;; # other 2.11 versions
17165         *) supports_anon_versioning=yes ;;
17166       esac
17167       if test $supports_anon_versioning = yes; then
17168         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17169 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17170 $echo "local: *; };" >> $output_objdir/$libname.ver~
17171         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17172       else
17173         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17174       fi
17175     else
17176       ld_shlibs_GCJ=no
17177     fi
17178     ;;
17179
17180     *)
17181       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17182         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17183         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17184       else
17185         ld_shlibs_GCJ=no
17186       fi
17187       ;;
17188     esac
17189
17190     if test "$ld_shlibs_GCJ" = yes; then
17191       runpath_var=LD_RUN_PATH
17192       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17193       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17194       # ancient GNU ld didn't support --whole-archive et. al.
17195       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17196         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17197       else
17198         whole_archive_flag_spec_GCJ=
17199       fi
17200     fi
17201   else
17202     # PORTME fill in a description of your system's linker (not GNU ld)
17203     case $host_os in
17204     aix3*)
17205       allow_undefined_flag_GCJ=unsupported
17206       always_export_symbols_GCJ=yes
17207       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'
17208       # Note: this linker hardcodes the directories in LIBPATH if there
17209       # are no directories specified by -L.
17210       hardcode_minus_L_GCJ=yes
17211       if test "$GCC" = yes && test -z "$link_static_flag"; then
17212         # Neither direct hardcoding nor static linking is supported with a
17213         # broken collect2.
17214         hardcode_direct_GCJ=unsupported
17215       fi
17216       ;;
17217
17218     aix4* | aix5*)
17219       if test "$host_cpu" = ia64; then
17220         # On IA64, the linker does run time linking by default, so we don't
17221         # have to do anything special.
17222         aix_use_runtimelinking=no
17223         exp_sym_flag='-Bexport'
17224         no_entry_flag=""
17225       else
17226         # If we're using GNU nm, then we don't want the "-C" option.
17227         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17228         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17229           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'
17230         else
17231           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'
17232         fi
17233         aix_use_runtimelinking=no
17234
17235         # Test if we are trying to use run time linking or normal
17236         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17237         # need to do runtime linking.
17238         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17239           for ld_flag in $LDFLAGS; do
17240           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17241             aix_use_runtimelinking=yes
17242             break
17243           fi
17244           done
17245         esac
17246
17247         exp_sym_flag='-bexport'
17248         no_entry_flag='-bnoentry'
17249       fi
17250
17251       # When large executables or shared objects are built, AIX ld can
17252       # have problems creating the table of contents.  If linking a library
17253       # or program results in "error TOC overflow" add -mminimal-toc to
17254       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17255       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17256
17257       archive_cmds_GCJ=''
17258       hardcode_direct_GCJ=yes
17259       hardcode_libdir_separator_GCJ=':'
17260       link_all_deplibs_GCJ=yes
17261
17262       if test "$GCC" = yes; then
17263         case $host_os in aix4.012|aix4.012.*)
17264         # We only want to do this on AIX 4.2 and lower, the check
17265         # below for broken collect2 doesn't work under 4.3+
17266           collect2name=`${CC} -print-prog-name=collect2`
17267           if test -f "$collect2name" && \
17268            strings "$collect2name" | grep resolve_lib_name >/dev/null
17269           then
17270           # We have reworked collect2
17271           hardcode_direct_GCJ=yes
17272           else
17273           # We have old collect2
17274           hardcode_direct_GCJ=unsupported
17275           # It fails to find uninstalled libraries when the uninstalled
17276           # path is not listed in the libpath.  Setting hardcode_minus_L
17277           # to unsupported forces relinking
17278           hardcode_minus_L_GCJ=yes
17279           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17280           hardcode_libdir_separator_GCJ=
17281           fi
17282         esac
17283         shared_flag='-shared'
17284       else
17285         # not using gcc
17286         if test "$host_cpu" = ia64; then
17287         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17288         # chokes on -Wl,-G. The following line is correct:
17289           shared_flag='-G'
17290         else
17291         if test "$aix_use_runtimelinking" = yes; then
17292             shared_flag='${wl}-G'
17293           else
17294             shared_flag='${wl}-bM:SRE'
17295         fi
17296         fi
17297       fi
17298
17299       # It seems that -bexpall does not export symbols beginning with
17300       # underscore (_), so it is better to generate a list of symbols to export.
17301       always_export_symbols_GCJ=yes
17302       if test "$aix_use_runtimelinking" = yes; then
17303         # Warning - without using the other runtime loading flags (-brtl),
17304         # -berok will link without error, but may produce a broken library.
17305         allow_undefined_flag_GCJ='-berok'
17306        # Determine the default libpath from the value encoded in an empty executable.
17307        cat >conftest.$ac_ext <<_ACEOF
17308 /* confdefs.h.  */
17309 _ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h.  */
17313
17314 int
17315 main ()
17316 {
17317
17318   ;
17319   return 0;
17320 }
17321 _ACEOF
17322 rm -f conftest.$ac_objext conftest$ac_exeext
17323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17324   (eval $ac_link) 2>conftest.er1
17325   ac_status=$?
17326   grep -v '^ *+' conftest.er1 >conftest.err
17327   rm -f conftest.er1
17328   cat conftest.err >&5
17329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330   (exit $ac_status); } &&
17331          { ac_try='test -z "$ac_c_werror_flag"
17332                          || test ! -s conftest.err'
17333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334   (eval $ac_try) 2>&5
17335   ac_status=$?
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); }; } &&
17338          { ac_try='test -s conftest$ac_exeext'
17339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340   (eval $ac_try) 2>&5
17341   ac_status=$?
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); }; }; then
17344
17345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17346 }'`
17347 # Check for a 64-bit object if we didn't find anything.
17348 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; }
17349 }'`; fi
17350 else
17351   echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17353
17354 fi
17355 rm -f conftest.err conftest.$ac_objext \
17356       conftest$ac_exeext conftest.$ac_ext
17357 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17358
17359        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17360         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17361        else
17362         if test "$host_cpu" = ia64; then
17363           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17364           allow_undefined_flag_GCJ="-z nodefs"
17365           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17366         else
17367          # Determine the default libpath from the value encoded in an empty executable.
17368          cat >conftest.$ac_ext <<_ACEOF
17369 /* confdefs.h.  */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h.  */
17374
17375 int
17376 main ()
17377 {
17378
17379   ;
17380   return 0;
17381 }
17382 _ACEOF
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17385   (eval $ac_link) 2>conftest.er1
17386   ac_status=$?
17387   grep -v '^ *+' conftest.er1 >conftest.err
17388   rm -f conftest.er1
17389   cat conftest.err >&5
17390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391   (exit $ac_status); } &&
17392          { ac_try='test -z "$ac_c_werror_flag"
17393                          || test ! -s conftest.err'
17394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395   (eval $ac_try) 2>&5
17396   ac_status=$?
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); }; } &&
17399          { ac_try='test -s conftest$ac_exeext'
17400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401   (eval $ac_try) 2>&5
17402   ac_status=$?
17403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404   (exit $ac_status); }; }; then
17405
17406 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17407 }'`
17408 # Check for a 64-bit object if we didn't find anything.
17409 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; }
17410 }'`; fi
17411 else
17412   echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17414
17415 fi
17416 rm -f conftest.err conftest.$ac_objext \
17417       conftest$ac_exeext conftest.$ac_ext
17418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17419
17420          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17421           # Warning - without using the other run time loading flags,
17422           # -berok will link without error, but may produce a broken library.
17423           no_undefined_flag_GCJ=' ${wl}-bernotok'
17424           allow_undefined_flag_GCJ=' ${wl}-berok'
17425           # -bexpall does not export symbols beginning with underscore (_)
17426           always_export_symbols_GCJ=yes
17427           # Exported symbols can be pulled into shared objects from archives
17428           whole_archive_flag_spec_GCJ=' '
17429           archive_cmds_need_lc_GCJ=yes
17430           # This is similar to how AIX traditionally builds it's shared libraries.
17431           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17432         fi
17433       fi
17434       ;;
17435
17436     amigaos*)
17437       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)'
17438       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17439       hardcode_minus_L_GCJ=yes
17440       # see comment about different semantics on the GNU ld section
17441       ld_shlibs_GCJ=no
17442       ;;
17443
17444     bsdi4*)
17445       export_dynamic_flag_spec_GCJ=-rdynamic
17446       ;;
17447
17448     cygwin* | mingw* | pw32*)
17449       # When not using gcc, we currently assume that we are using
17450       # Microsoft Visual C++.
17451       # hardcode_libdir_flag_spec is actually meaningless, as there is
17452       # no search path for DLLs.
17453       hardcode_libdir_flag_spec_GCJ=' '
17454       allow_undefined_flag_GCJ=unsupported
17455       # Tell ltmain to make .lib files, not .a files.
17456       libext=lib
17457       # Tell ltmain to make .dll files, not .so files.
17458       shrext_cmds=".dll"
17459       # FIXME: Setting linknames here is a bad hack.
17460       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17461       # The linker will automatically build a .lib file if we build a DLL.
17462       old_archive_From_new_cmds_GCJ='true'
17463       # FIXME: Should let the user specify the lib program.
17464       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17465       fix_srcfile_path='`cygpath -w "$srcfile"`'
17466       enable_shared_with_static_runtimes_GCJ=yes
17467       ;;
17468
17469     darwin* | rhapsody*)
17470     if test "$GXX" = yes ; then
17471       archive_cmds_need_lc_GCJ=no
17472       case "$host_os" in
17473       rhapsody* | darwin1.[012])
17474         allow_undefined_flag_GCJ='-undefined suppress'
17475         ;;
17476       *) # Darwin 1.3 on
17477       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17478         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17479       else
17480         case ${MACOSX_DEPLOYMENT_TARGET} in
17481           10.[012])
17482             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17483             ;;
17484           10.*)
17485             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17486             ;;
17487         esac
17488       fi
17489         ;;
17490       esac
17491         lt_int_apple_cc_single_mod=no
17492         output_verbose_link_cmd='echo'
17493         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17494           lt_int_apple_cc_single_mod=yes
17495         fi
17496         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17497           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17498         else
17499         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17500       fi
17501       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17502       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17503         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17504           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17505         else
17506           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17507         fi
17508           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}'
17509       hardcode_direct_GCJ=no
17510       hardcode_automatic_GCJ=yes
17511       hardcode_shlibpath_var_GCJ=unsupported
17512       whole_archive_flag_spec_GCJ='-all_load $convenience'
17513       link_all_deplibs_GCJ=yes
17514     else
17515       ld_shlibs_GCJ=no
17516     fi
17517       ;;
17518
17519     dgux*)
17520       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17521       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17522       hardcode_shlibpath_var_GCJ=no
17523       ;;
17524
17525     freebsd1*)
17526       ld_shlibs_GCJ=no
17527       ;;
17528
17529     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17530     # support.  Future versions do this automatically, but an explicit c++rt0.o
17531     # does not break anything, and helps significantly (at the cost of a little
17532     # extra space).
17533     freebsd2.2*)
17534       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17535       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17536       hardcode_direct_GCJ=yes
17537       hardcode_shlibpath_var_GCJ=no
17538       ;;
17539
17540     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17541     freebsd2*)
17542       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17543       hardcode_direct_GCJ=yes
17544       hardcode_minus_L_GCJ=yes
17545       hardcode_shlibpath_var_GCJ=no
17546       ;;
17547
17548     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17549     freebsd* | kfreebsd*-gnu)
17550       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17551       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17552       hardcode_direct_GCJ=yes
17553       hardcode_shlibpath_var_GCJ=no
17554       ;;
17555
17556     hpux9*)
17557       if test "$GCC" = yes; then
17558         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'
17559       else
17560         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'
17561       fi
17562       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17563       hardcode_libdir_separator_GCJ=:
17564       hardcode_direct_GCJ=yes
17565
17566       # hardcode_minus_L: Not really in the search PATH,
17567       # but as the default location of the library.
17568       hardcode_minus_L_GCJ=yes
17569       export_dynamic_flag_spec_GCJ='${wl}-E'
17570       ;;
17571
17572     hpux10* | hpux11*)
17573       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17574         case "$host_cpu" in
17575         hppa*64*|ia64*)
17576           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17577           ;;
17578         *)
17579           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17580           ;;
17581         esac
17582       else
17583         case "$host_cpu" in
17584         hppa*64*|ia64*)
17585           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17586           ;;
17587         *)
17588           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17589           ;;
17590         esac
17591       fi
17592       if test "$with_gnu_ld" = no; then
17593         case "$host_cpu" in
17594         hppa*64*)
17595           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17596           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17597           hardcode_libdir_separator_GCJ=:
17598           hardcode_direct_GCJ=no
17599           hardcode_shlibpath_var_GCJ=no
17600           ;;
17601         ia64*)
17602           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17603           hardcode_direct_GCJ=no
17604           hardcode_shlibpath_var_GCJ=no
17605
17606           # hardcode_minus_L: Not really in the search PATH,
17607           # but as the default location of the library.
17608           hardcode_minus_L_GCJ=yes
17609           ;;
17610         *)
17611           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17612           hardcode_libdir_separator_GCJ=:
17613           hardcode_direct_GCJ=yes
17614           export_dynamic_flag_spec_GCJ='${wl}-E'
17615
17616           # hardcode_minus_L: Not really in the search PATH,
17617           # but as the default location of the library.
17618           hardcode_minus_L_GCJ=yes
17619           ;;
17620         esac
17621       fi
17622       ;;
17623
17624     irix5* | irix6* | nonstopux*)
17625       if test "$GCC" = yes; then
17626         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'
17627       else
17628         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'
17629         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17630       fi
17631       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17632       hardcode_libdir_separator_GCJ=:
17633       link_all_deplibs_GCJ=yes
17634       ;;
17635
17636     netbsd*)
17637       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17638         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17639       else
17640         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17641       fi
17642       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17643       hardcode_direct_GCJ=yes
17644       hardcode_shlibpath_var_GCJ=no
17645       ;;
17646
17647     newsos6)
17648       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17649       hardcode_direct_GCJ=yes
17650       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17651       hardcode_libdir_separator_GCJ=:
17652       hardcode_shlibpath_var_GCJ=no
17653       ;;
17654
17655     openbsd*)
17656       hardcode_direct_GCJ=yes
17657       hardcode_shlibpath_var_GCJ=no
17658       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17659         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17660         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17661         export_dynamic_flag_spec_GCJ='${wl}-E'
17662       else
17663        case $host_os in
17664          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17665            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17666            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17667            ;;
17668          *)
17669            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17670            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17671            ;;
17672        esac
17673       fi
17674       ;;
17675
17676     os2*)
17677       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17678       hardcode_minus_L_GCJ=yes
17679       allow_undefined_flag_GCJ=unsupported
17680       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'
17681       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17682       ;;
17683
17684     osf3*)
17685       if test "$GCC" = yes; then
17686         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17687         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'
17688       else
17689         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17690         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'
17691       fi
17692       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17693       hardcode_libdir_separator_GCJ=:
17694       ;;
17695
17696     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17697       if test "$GCC" = yes; then
17698         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17699         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'
17700         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17701       else
17702         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17703         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'
17704         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~
17705         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17706
17707         # Both c and cxx compiler support -rpath directly
17708         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17709       fi
17710       hardcode_libdir_separator_GCJ=:
17711       ;;
17712
17713     sco3.2v5*)
17714       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17715       hardcode_shlibpath_var_GCJ=no
17716       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17717       runpath_var=LD_RUN_PATH
17718       hardcode_runpath_var=yes
17719       ;;
17720
17721     solaris*)
17722       no_undefined_flag_GCJ=' -z text'
17723       if test "$GCC" = yes; then
17724         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17725         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17726           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17727       else
17728         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17729         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17730         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17731       fi
17732       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17733       hardcode_shlibpath_var_GCJ=no
17734       case $host_os in
17735       solaris2.[0-5] | solaris2.[0-5].*) ;;
17736       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17737         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17738       esac
17739       link_all_deplibs_GCJ=yes
17740       ;;
17741
17742     sunos4*)
17743       if test "x$host_vendor" = xsequent; then
17744         # Use $CC to link under sequent, because it throws in some extra .o
17745         # files that make .init and .fini sections work.
17746         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17747       else
17748         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17749       fi
17750       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17751       hardcode_direct_GCJ=yes
17752       hardcode_minus_L_GCJ=yes
17753       hardcode_shlibpath_var_GCJ=no
17754       ;;
17755
17756     sysv4)
17757       case $host_vendor in
17758         sni)
17759           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17760           hardcode_direct_GCJ=yes # is this really true???
17761         ;;
17762         siemens)
17763           ## LD is ld it makes a PLAMLIB
17764           ## CC just makes a GrossModule.
17765           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17766           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17767           hardcode_direct_GCJ=no
17768         ;;
17769         motorola)
17770           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17771           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17772         ;;
17773       esac
17774       runpath_var='LD_RUN_PATH'
17775       hardcode_shlibpath_var_GCJ=no
17776       ;;
17777
17778     sysv4.3*)
17779       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17780       hardcode_shlibpath_var_GCJ=no
17781       export_dynamic_flag_spec_GCJ='-Bexport'
17782       ;;
17783
17784     sysv4*MP*)
17785       if test -d /usr/nec; then
17786         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17787         hardcode_shlibpath_var_GCJ=no
17788         runpath_var=LD_RUN_PATH
17789         hardcode_runpath_var=yes
17790         ld_shlibs_GCJ=yes
17791       fi
17792       ;;
17793
17794     sysv4.2uw2*)
17795       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17796       hardcode_direct_GCJ=yes
17797       hardcode_minus_L_GCJ=no
17798       hardcode_shlibpath_var_GCJ=no
17799       hardcode_runpath_var=yes
17800       runpath_var=LD_RUN_PATH
17801       ;;
17802
17803    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17804       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17805       if test "$GCC" = yes; then
17806         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17807       else
17808         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17809       fi
17810       runpath_var='LD_RUN_PATH'
17811       hardcode_shlibpath_var_GCJ=no
17812       ;;
17813
17814     sysv5*)
17815       no_undefined_flag_GCJ=' -z text'
17816       # $CC -shared without GNU ld will not create a library from C++
17817       # object files and a static libstdc++, better avoid it by now
17818       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17819       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17820                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17821       hardcode_libdir_flag_spec_GCJ=
17822       hardcode_shlibpath_var_GCJ=no
17823       runpath_var='LD_RUN_PATH'
17824       ;;
17825
17826     uts4*)
17827       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17828       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17829       hardcode_shlibpath_var_GCJ=no
17830       ;;
17831
17832     *)
17833       ld_shlibs_GCJ=no
17834       ;;
17835     esac
17836   fi
17837
17838 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17839 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17840 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17841
17842 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17843 if test "$GCC" = yes; then
17844   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17845 fi
17846
17847 #
17848 # Do we need to explicitly link libc?
17849 #
17850 case "x$archive_cmds_need_lc_GCJ" in
17851 x|xyes)
17852   # Assume -lc should be added
17853   archive_cmds_need_lc_GCJ=yes
17854
17855   if test "$enable_shared" = yes && test "$GCC" = yes; then
17856     case $archive_cmds_GCJ in
17857     *'~'*)
17858       # FIXME: we may have to deal with multi-command sequences.
17859       ;;
17860     '$CC '*)
17861       # Test whether the compiler implicitly links with -lc since on some
17862       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17863       # to ld, don't add -lc before -lgcc.
17864       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17865 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17866       $rm conftest*
17867       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17868
17869       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17870   (eval $ac_compile) 2>&5
17871   ac_status=$?
17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873   (exit $ac_status); } 2>conftest.err; then
17874         soname=conftest
17875         lib=conftest
17876         libobjs=conftest.$ac_objext
17877         deplibs=
17878         wl=$lt_prog_compiler_wl_GCJ
17879         compiler_flags=-v
17880         linker_flags=-v
17881         verstring=
17882         output_objdir=.
17883         libname=conftest
17884         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17885         allow_undefined_flag_GCJ=
17886         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17887   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17888   ac_status=$?
17889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890   (exit $ac_status); }
17891         then
17892           archive_cmds_need_lc_GCJ=no
17893         else
17894           archive_cmds_need_lc_GCJ=yes
17895         fi
17896         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17897       else
17898         cat conftest.err 1>&5
17899       fi
17900       $rm conftest*
17901       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17902 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17903       ;;
17904     esac
17905   fi
17906   ;;
17907 esac
17908
17909 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17910 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17911 library_names_spec=
17912 libname_spec='lib$name'
17913 soname_spec=
17914 shrext_cmds=".so"
17915 postinstall_cmds=
17916 postuninstall_cmds=
17917 finish_cmds=
17918 finish_eval=
17919 shlibpath_var=
17920 shlibpath_overrides_runpath=unknown
17921 version_type=none
17922 dynamic_linker="$host_os ld.so"
17923 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17924 if test "$GCC" = yes; then
17925   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17926   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17927     # if the path contains ";" then we assume it to be the separator
17928     # otherwise default to the standard path separator (i.e. ":") - it is
17929     # assumed that no part of a normal pathname contains ";" but that should
17930     # okay in the real world where ";" in dirpaths is itself problematic.
17931     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17932   else
17933     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17934   fi
17935 else
17936   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17937 fi
17938 need_lib_prefix=unknown
17939 hardcode_into_libs=no
17940
17941 # when you set need_version to no, make sure it does not cause -set_version
17942 # flags to be left without arguments
17943 need_version=unknown
17944
17945 case $host_os in
17946 aix3*)
17947   version_type=linux
17948   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17949   shlibpath_var=LIBPATH
17950
17951   # AIX 3 has no versioning support, so we append a major version to the name.
17952   soname_spec='${libname}${release}${shared_ext}$major'
17953   ;;
17954
17955 aix4* | aix5*)
17956   version_type=linux
17957   need_lib_prefix=no
17958   need_version=no
17959   hardcode_into_libs=yes
17960   if test "$host_cpu" = ia64; then
17961     # AIX 5 supports IA64
17962     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17963     shlibpath_var=LD_LIBRARY_PATH
17964   else
17965     # With GCC up to 2.95.x, collect2 would create an import file
17966     # for dependence libraries.  The import file would start with
17967     # the line `#! .'.  This would cause the generated library to
17968     # depend on `.', always an invalid library.  This was fixed in
17969     # development snapshots of GCC prior to 3.0.
17970     case $host_os in
17971       aix4 | aix4.[01] | aix4.[01].*)
17972       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17973            echo ' yes '
17974            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17975         :
17976       else
17977         can_build_shared=no
17978       fi
17979       ;;
17980     esac
17981     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17982     # soname into executable. Probably we can add versioning support to
17983     # collect2, so additional links can be useful in future.
17984     if test "$aix_use_runtimelinking" = yes; then
17985       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17986       # instead of lib<name>.a to let people know that these are not
17987       # typical AIX shared libraries.
17988       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17989     else
17990       # We preserve .a as extension for shared libraries through AIX4.2
17991       # and later when we are not doing run time linking.
17992       library_names_spec='${libname}${release}.a $libname.a'
17993       soname_spec='${libname}${release}${shared_ext}$major'
17994     fi
17995     shlibpath_var=LIBPATH
17996   fi
17997   ;;
17998
17999 amigaos*)
18000   library_names_spec='$libname.ixlibrary $libname.a'
18001   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18002   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'
18003   ;;
18004
18005 beos*)
18006   library_names_spec='${libname}${shared_ext}'
18007   dynamic_linker="$host_os ld.so"
18008   shlibpath_var=LIBRARY_PATH
18009   ;;
18010
18011 bsdi4*)
18012   version_type=linux
18013   need_version=no
18014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18015   soname_spec='${libname}${release}${shared_ext}$major'
18016   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18017   shlibpath_var=LD_LIBRARY_PATH
18018   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18019   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18020   # the default ld.so.conf also contains /usr/contrib/lib and
18021   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18022   # libtool to hard-code these into programs
18023   ;;
18024
18025 cygwin* | mingw* | pw32*)
18026   version_type=windows
18027   shrext_cmds=".dll"
18028   need_version=no
18029   need_lib_prefix=no
18030
18031   case $GCC,$host_os in
18032   yes,cygwin* | yes,mingw* | yes,pw32*)
18033     library_names_spec='$libname.dll.a'
18034     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18035     postinstall_cmds='base_file=`basename \${file}`~
18036       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18037       dldir=$destdir/`dirname \$dlpath`~
18038       test -d \$dldir || mkdir -p \$dldir~
18039       $install_prog $dir/$dlname \$dldir/$dlname'
18040     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18041       dlpath=$dir/\$dldll~
18042        $rm \$dlpath'
18043     shlibpath_overrides_runpath=yes
18044
18045     case $host_os in
18046     cygwin*)
18047       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18048       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18049       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18050       ;;
18051     mingw*)
18052       # MinGW DLLs use traditional 'lib' prefix
18053       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18054       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18055       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18056         # It is most probably a Windows format PATH printed by
18057         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18058         # path with ; separators, and with drive letters. We can handle the
18059         # drive letters (cygwin fileutils understands them), so leave them,
18060         # especially as we might pass files found there to a mingw objdump,
18061         # which wouldn't understand a cygwinified path. Ahh.
18062         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18063       else
18064         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18065       fi
18066       ;;
18067     pw32*)
18068       # pw32 DLLs use 'pw' prefix rather than 'lib'
18069       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18070       ;;
18071     esac
18072     ;;
18073
18074   *)
18075     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18076     ;;
18077   esac
18078   dynamic_linker='Win32 ld.exe'
18079   # FIXME: first we should search . and the directory the executable is in
18080   shlibpath_var=PATH
18081   ;;
18082
18083 darwin* | rhapsody*)
18084   dynamic_linker="$host_os dyld"
18085   version_type=darwin
18086   need_lib_prefix=no
18087   need_version=no
18088   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18089   soname_spec='${libname}${release}${major}$shared_ext'
18090   shlibpath_overrides_runpath=yes
18091   shlibpath_var=DYLD_LIBRARY_PATH
18092   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18093   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18094   if test "$GCC" = yes; then
18095     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"`
18096   else
18097     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18098   fi
18099   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18100   ;;
18101
18102 dgux*)
18103   version_type=linux
18104   need_lib_prefix=no
18105   need_version=no
18106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18107   soname_spec='${libname}${release}${shared_ext}$major'
18108   shlibpath_var=LD_LIBRARY_PATH
18109   ;;
18110
18111 freebsd1*)
18112   dynamic_linker=no
18113   ;;
18114
18115 kfreebsd*-gnu)
18116   version_type=linux
18117   need_lib_prefix=no
18118   need_version=no
18119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18120   soname_spec='${libname}${release}${shared_ext}$major'
18121   shlibpath_var=LD_LIBRARY_PATH
18122   shlibpath_overrides_runpath=no
18123   hardcode_into_libs=yes
18124   dynamic_linker='GNU ld.so'
18125   ;;
18126
18127 freebsd*)
18128   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18129   version_type=freebsd-$objformat
18130   case $version_type in
18131     freebsd-elf*)
18132       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18133       need_version=no
18134       need_lib_prefix=no
18135       ;;
18136     freebsd-*)
18137       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18138       need_version=yes
18139       ;;
18140   esac
18141   shlibpath_var=LD_LIBRARY_PATH
18142   case $host_os in
18143   freebsd2*)
18144     shlibpath_overrides_runpath=yes
18145     ;;
18146   freebsd3.01* | freebsdelf3.01*)
18147     shlibpath_overrides_runpath=yes
18148     hardcode_into_libs=yes
18149     ;;
18150   *) # from 3.2 on
18151     shlibpath_overrides_runpath=no
18152     hardcode_into_libs=yes
18153     ;;
18154   esac
18155   ;;
18156
18157 gnu*)
18158   version_type=linux
18159   need_lib_prefix=no
18160   need_version=no
18161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18162   soname_spec='${libname}${release}${shared_ext}$major'
18163   shlibpath_var=LD_LIBRARY_PATH
18164   hardcode_into_libs=yes
18165   ;;
18166
18167 hpux9* | hpux10* | hpux11*)
18168   # Give a soname corresponding to the major version so that dld.sl refuses to
18169   # link against other versions.
18170   version_type=sunos
18171   need_lib_prefix=no
18172   need_version=no
18173   case "$host_cpu" in
18174   ia64*)
18175     shrext_cmds='.so'
18176     hardcode_into_libs=yes
18177     dynamic_linker="$host_os dld.so"
18178     shlibpath_var=LD_LIBRARY_PATH
18179     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18180     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181     soname_spec='${libname}${release}${shared_ext}$major'
18182     if test "X$HPUX_IA64_MODE" = X32; then
18183       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18184     else
18185       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18186     fi
18187     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18188     ;;
18189    hppa*64*)
18190      shrext_cmds='.sl'
18191      hardcode_into_libs=yes
18192      dynamic_linker="$host_os dld.sl"
18193      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18194      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18195      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18196      soname_spec='${libname}${release}${shared_ext}$major'
18197      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18198      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18199      ;;
18200    *)
18201     shrext_cmds='.sl'
18202     dynamic_linker="$host_os dld.sl"
18203     shlibpath_var=SHLIB_PATH
18204     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18205     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18206     soname_spec='${libname}${release}${shared_ext}$major'
18207     ;;
18208   esac
18209   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18210   postinstall_cmds='chmod 555 $lib'
18211   ;;
18212
18213 irix5* | irix6* | nonstopux*)
18214   case $host_os in
18215     nonstopux*) version_type=nonstopux ;;
18216     *)
18217         if test "$lt_cv_prog_gnu_ld" = yes; then
18218                 version_type=linux
18219         else
18220                 version_type=irix
18221         fi ;;
18222   esac
18223   need_lib_prefix=no
18224   need_version=no
18225   soname_spec='${libname}${release}${shared_ext}$major'
18226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18227   case $host_os in
18228   irix5* | nonstopux*)
18229     libsuff= shlibsuff=
18230     ;;
18231   *)
18232     case $LD in # libtool.m4 will add one of these switches to LD
18233     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18234       libsuff= shlibsuff= libmagic=32-bit;;
18235     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18236       libsuff=32 shlibsuff=N32 libmagic=N32;;
18237     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18238       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18239     *) libsuff= shlibsuff= libmagic=never-match;;
18240     esac
18241     ;;
18242   esac
18243   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18244   shlibpath_overrides_runpath=no
18245   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18246   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18247   hardcode_into_libs=yes
18248   ;;
18249
18250 # No shared lib support for Linux oldld, aout, or coff.
18251 linux*oldld* | linux*aout* | linux*coff*)
18252   dynamic_linker=no
18253   ;;
18254
18255 # This must be Linux ELF.
18256 linux*)
18257   version_type=linux
18258   need_lib_prefix=no
18259   need_version=no
18260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18261   soname_spec='${libname}${release}${shared_ext}$major'
18262   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18263   shlibpath_var=LD_LIBRARY_PATH
18264   shlibpath_overrides_runpath=no
18265   # This implies no fast_install, which is unacceptable.
18266   # Some rework will be needed to allow for fast_install
18267   # before this can be enabled.
18268   hardcode_into_libs=yes
18269
18270   # find out which ABI we are using
18271   libsuff=
18272   case "$host_cpu" in
18273   x86_64*|s390x*|powerpc64*)
18274     echo '#line 18274 "configure"' > conftest.$ac_ext
18275     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18276   (eval $ac_compile) 2>&5
18277   ac_status=$?
18278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279   (exit $ac_status); }; then
18280       case `/usr/bin/file conftest.$ac_objext` in
18281       *64-bit*)
18282         libsuff=64
18283         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18284         ;;
18285       esac
18286     fi
18287     rm -rf conftest*
18288     ;;
18289   esac
18290
18291   # Append ld.so.conf contents to the search path
18292   if test -f /etc/ld.so.conf; then
18293     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18294     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18295   fi
18296
18297   # We used to test for /lib/ld.so.1 and disable shared libraries on
18298   # powerpc, because MkLinux only supported shared libraries with the
18299   # GNU dynamic linker.  Since this was broken with cross compilers,
18300   # most powerpc-linux boxes support dynamic linking these days and
18301   # people can always --disable-shared, the test was removed, and we
18302   # assume the GNU/Linux dynamic linker is in use.
18303   dynamic_linker='GNU/Linux ld.so'
18304   ;;
18305
18306 knetbsd*-gnu)
18307   version_type=linux
18308   need_lib_prefix=no
18309   need_version=no
18310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18311   soname_spec='${libname}${release}${shared_ext}$major'
18312   shlibpath_var=LD_LIBRARY_PATH
18313   shlibpath_overrides_runpath=no
18314   hardcode_into_libs=yes
18315   dynamic_linker='GNU ld.so'
18316   ;;
18317
18318 netbsd*)
18319   version_type=sunos
18320   need_lib_prefix=no
18321   need_version=no
18322   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18323     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18324     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18325     dynamic_linker='NetBSD (a.out) ld.so'
18326   else
18327     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18328     soname_spec='${libname}${release}${shared_ext}$major'
18329     dynamic_linker='NetBSD ld.elf_so'
18330   fi
18331   shlibpath_var=LD_LIBRARY_PATH
18332   shlibpath_overrides_runpath=yes
18333   hardcode_into_libs=yes
18334   ;;
18335
18336 newsos6)
18337   version_type=linux
18338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18339   shlibpath_var=LD_LIBRARY_PATH
18340   shlibpath_overrides_runpath=yes
18341   ;;
18342
18343 nto-qnx*)
18344   version_type=linux
18345   need_lib_prefix=no
18346   need_version=no
18347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18348   soname_spec='${libname}${release}${shared_ext}$major'
18349   shlibpath_var=LD_LIBRARY_PATH
18350   shlibpath_overrides_runpath=yes
18351   ;;
18352
18353 openbsd*)
18354   version_type=sunos
18355   need_lib_prefix=no
18356   need_version=yes
18357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18358   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18359   shlibpath_var=LD_LIBRARY_PATH
18360   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18361     case $host_os in
18362       openbsd2.[89] | openbsd2.[89].*)
18363         shlibpath_overrides_runpath=no
18364         ;;
18365       *)
18366         shlibpath_overrides_runpath=yes
18367         ;;
18368       esac
18369   else
18370     shlibpath_overrides_runpath=yes
18371   fi
18372   ;;
18373
18374 os2*)
18375   libname_spec='$name'
18376   shrext_cmds=".dll"
18377   need_lib_prefix=no
18378   library_names_spec='$libname${shared_ext} $libname.a'
18379   dynamic_linker='OS/2 ld.exe'
18380   shlibpath_var=LIBPATH
18381   ;;
18382
18383 osf3* | osf4* | osf5*)
18384   version_type=osf
18385   need_lib_prefix=no
18386   need_version=no
18387   soname_spec='${libname}${release}${shared_ext}$major'
18388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18389   shlibpath_var=LD_LIBRARY_PATH
18390   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18391   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18392   ;;
18393
18394 sco3.2v5*)
18395   version_type=osf
18396   soname_spec='${libname}${release}${shared_ext}$major'
18397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18398   shlibpath_var=LD_LIBRARY_PATH
18399   ;;
18400
18401 solaris*)
18402   version_type=linux
18403   need_lib_prefix=no
18404   need_version=no
18405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18406   soname_spec='${libname}${release}${shared_ext}$major'
18407   shlibpath_var=LD_LIBRARY_PATH
18408   shlibpath_overrides_runpath=yes
18409   hardcode_into_libs=yes
18410   # ldd complains unless libraries are executable
18411   postinstall_cmds='chmod +x $lib'
18412   ;;
18413
18414 sunos4*)
18415   version_type=sunos
18416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18417   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18418   shlibpath_var=LD_LIBRARY_PATH
18419   shlibpath_overrides_runpath=yes
18420   if test "$with_gnu_ld" = yes; then
18421     need_lib_prefix=no
18422   fi
18423   need_version=yes
18424   ;;
18425
18426 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18427   version_type=linux
18428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18429   soname_spec='${libname}${release}${shared_ext}$major'
18430   shlibpath_var=LD_LIBRARY_PATH
18431   case $host_vendor in
18432     sni)
18433       shlibpath_overrides_runpath=no
18434       need_lib_prefix=no
18435       export_dynamic_flag_spec='${wl}-Blargedynsym'
18436       runpath_var=LD_RUN_PATH
18437       ;;
18438     siemens)
18439       need_lib_prefix=no
18440       ;;
18441     motorola)
18442       need_lib_prefix=no
18443       need_version=no
18444       shlibpath_overrides_runpath=no
18445       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18446       ;;
18447   esac
18448   ;;
18449
18450 sysv4*MP*)
18451   if test -d /usr/nec ;then
18452     version_type=linux
18453     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18454     soname_spec='$libname${shared_ext}.$major'
18455     shlibpath_var=LD_LIBRARY_PATH
18456   fi
18457   ;;
18458
18459 uts4*)
18460   version_type=linux
18461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18462   soname_spec='${libname}${release}${shared_ext}$major'
18463   shlibpath_var=LD_LIBRARY_PATH
18464   ;;
18465
18466 *)
18467   dynamic_linker=no
18468   ;;
18469 esac
18470 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18471 echo "${ECHO_T}$dynamic_linker" >&6
18472 test "$dynamic_linker" = no && can_build_shared=no
18473
18474 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18475 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18476 hardcode_action_GCJ=
18477 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18478    test -n "$runpath_var GCJ" || \
18479    test "X$hardcode_automatic_GCJ"="Xyes" ; then
18480
18481   # We can hardcode non-existant directories.
18482   if test "$hardcode_direct_GCJ" != no &&
18483      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18484      # have to relink, otherwise we might link with an installed library
18485      # when we should be linking with a yet-to-be-installed one
18486      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18487      test "$hardcode_minus_L_GCJ" != no; then
18488     # Linking always hardcodes the temporary library directory.
18489     hardcode_action_GCJ=relink
18490   else
18491     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18492     hardcode_action_GCJ=immediate
18493   fi
18494 else
18495   # We cannot hardcode anything, or else we can only hardcode existing
18496   # directories.
18497   hardcode_action_GCJ=unsupported
18498 fi
18499 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18500 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18501
18502 if test "$hardcode_action_GCJ" = relink; then
18503   # Fast installation is not supported
18504   enable_fast_install=no
18505 elif test "$shlibpath_overrides_runpath" = yes ||
18506      test "$enable_shared" = no; then
18507   # Fast installation is not necessary
18508   enable_fast_install=needless
18509 fi
18510
18511 striplib=
18512 old_striplib=
18513 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18514 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18515 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18516   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18517   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18518   echo "$as_me:$LINENO: result: yes" >&5
18519 echo "${ECHO_T}yes" >&6
18520 else
18521 # FIXME - insert some real tests, host_os isn't really good enough
18522   case $host_os in
18523    darwin*)
18524        if test -n "$STRIP" ; then
18525          striplib="$STRIP -x"
18526          echo "$as_me:$LINENO: result: yes" >&5
18527 echo "${ECHO_T}yes" >&6
18528        else
18529   echo "$as_me:$LINENO: result: no" >&5
18530 echo "${ECHO_T}no" >&6
18531 fi
18532        ;;
18533    *)
18534   echo "$as_me:$LINENO: result: no" >&5
18535 echo "${ECHO_T}no" >&6
18536     ;;
18537   esac
18538 fi
18539
18540 if test "x$enable_dlopen" != xyes; then
18541   enable_dlopen=unknown
18542   enable_dlopen_self=unknown
18543   enable_dlopen_self_static=unknown
18544 else
18545   lt_cv_dlopen=no
18546   lt_cv_dlopen_libs=
18547
18548   case $host_os in
18549   beos*)
18550     lt_cv_dlopen="load_add_on"
18551     lt_cv_dlopen_libs=
18552     lt_cv_dlopen_self=yes
18553     ;;
18554
18555   mingw* | pw32*)
18556     lt_cv_dlopen="LoadLibrary"
18557     lt_cv_dlopen_libs=
18558    ;;
18559
18560   cygwin*)
18561     lt_cv_dlopen="dlopen"
18562     lt_cv_dlopen_libs=
18563    ;;
18564
18565   darwin*)
18566   # if libdl is installed we need to link against it
18567     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18568 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18569 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18570   echo $ECHO_N "(cached) $ECHO_C" >&6
18571 else
18572   ac_check_lib_save_LIBS=$LIBS
18573 LIBS="-ldl  $LIBS"
18574 cat >conftest.$ac_ext <<_ACEOF
18575 /* confdefs.h.  */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h.  */
18580
18581 /* Override any gcc2 internal prototype to avoid an error.  */
18582 #ifdef __cplusplus
18583 extern "C"
18584 #endif
18585 /* We use char because int might match the return type of a gcc2
18586    builtin and then its argument prototype would still apply.  */
18587 char dlopen ();
18588 int
18589 main ()
18590 {
18591 dlopen ();
18592   ;
18593   return 0;
18594 }
18595 _ACEOF
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18598   (eval $ac_link) 2>conftest.er1
18599   ac_status=$?
18600   grep -v '^ *+' conftest.er1 >conftest.err
18601   rm -f conftest.er1
18602   cat conftest.err >&5
18603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604   (exit $ac_status); } &&
18605          { ac_try='test -z "$ac_c_werror_flag"
18606                          || test ! -s conftest.err'
18607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608   (eval $ac_try) 2>&5
18609   ac_status=$?
18610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611   (exit $ac_status); }; } &&
18612          { ac_try='test -s conftest$ac_exeext'
18613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614   (eval $ac_try) 2>&5
18615   ac_status=$?
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); }; }; then
18618   ac_cv_lib_dl_dlopen=yes
18619 else
18620   echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18622
18623 ac_cv_lib_dl_dlopen=no
18624 fi
18625 rm -f conftest.err conftest.$ac_objext \
18626       conftest$ac_exeext conftest.$ac_ext
18627 LIBS=$ac_check_lib_save_LIBS
18628 fi
18629 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18630 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18631 if test $ac_cv_lib_dl_dlopen = yes; then
18632   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18633 else
18634
18635     lt_cv_dlopen="dyld"
18636     lt_cv_dlopen_libs=
18637     lt_cv_dlopen_self=yes
18638
18639 fi
18640
18641    ;;
18642
18643   *)
18644     echo "$as_me:$LINENO: checking for shl_load" >&5
18645 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18646 if test "${ac_cv_func_shl_load+set}" = set; then
18647   echo $ECHO_N "(cached) $ECHO_C" >&6
18648 else
18649   cat >conftest.$ac_ext <<_ACEOF
18650 /* confdefs.h.  */
18651 _ACEOF
18652 cat confdefs.h >>conftest.$ac_ext
18653 cat >>conftest.$ac_ext <<_ACEOF
18654 /* end confdefs.h.  */
18655 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18657 #define shl_load innocuous_shl_load
18658
18659 /* System header to define __stub macros and hopefully few prototypes,
18660     which can conflict with char shl_load (); below.
18661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18662     <limits.h> exists even on freestanding compilers.  */
18663
18664 #ifdef __STDC__
18665 # include <limits.h>
18666 #else
18667 # include <assert.h>
18668 #endif
18669
18670 #undef shl_load
18671
18672 /* Override any gcc2 internal prototype to avoid an error.  */
18673 #ifdef __cplusplus
18674 extern "C"
18675 {
18676 #endif
18677 /* We use char because int might match the return type of a gcc2
18678    builtin and then its argument prototype would still apply.  */
18679 char shl_load ();
18680 /* The GNU C library defines this for functions which it implements
18681     to always fail with ENOSYS.  Some functions are actually named
18682     something starting with __ and the normal name is an alias.  */
18683 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18684 choke me
18685 #else
18686 char (*f) () = shl_load;
18687 #endif
18688 #ifdef __cplusplus
18689 }
18690 #endif
18691
18692 int
18693 main ()
18694 {
18695 return f != shl_load;
18696   ;
18697   return 0;
18698 }
18699 _ACEOF
18700 rm -f conftest.$ac_objext conftest$ac_exeext
18701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18702   (eval $ac_link) 2>conftest.er1
18703   ac_status=$?
18704   grep -v '^ *+' conftest.er1 >conftest.err
18705   rm -f conftest.er1
18706   cat conftest.err >&5
18707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708   (exit $ac_status); } &&
18709          { ac_try='test -z "$ac_c_werror_flag"
18710                          || test ! -s conftest.err'
18711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18712   (eval $ac_try) 2>&5
18713   ac_status=$?
18714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715   (exit $ac_status); }; } &&
18716          { ac_try='test -s conftest$ac_exeext'
18717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718   (eval $ac_try) 2>&5
18719   ac_status=$?
18720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721   (exit $ac_status); }; }; then
18722   ac_cv_func_shl_load=yes
18723 else
18724   echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18726
18727 ac_cv_func_shl_load=no
18728 fi
18729 rm -f conftest.err conftest.$ac_objext \
18730       conftest$ac_exeext conftest.$ac_ext
18731 fi
18732 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18733 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18734 if test $ac_cv_func_shl_load = yes; then
18735   lt_cv_dlopen="shl_load"
18736 else
18737   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18738 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18739 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18740   echo $ECHO_N "(cached) $ECHO_C" >&6
18741 else
18742   ac_check_lib_save_LIBS=$LIBS
18743 LIBS="-ldld  $LIBS"
18744 cat >conftest.$ac_ext <<_ACEOF
18745 /* confdefs.h.  */
18746 _ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h.  */
18750
18751 /* Override any gcc2 internal prototype to avoid an error.  */
18752 #ifdef __cplusplus
18753 extern "C"
18754 #endif
18755 /* We use char because int might match the return type of a gcc2
18756    builtin and then its argument prototype would still apply.  */
18757 char shl_load ();
18758 int
18759 main ()
18760 {
18761 shl_load ();
18762   ;
18763   return 0;
18764 }
18765 _ACEOF
18766 rm -f conftest.$ac_objext conftest$ac_exeext
18767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18768   (eval $ac_link) 2>conftest.er1
18769   ac_status=$?
18770   grep -v '^ *+' conftest.er1 >conftest.err
18771   rm -f conftest.er1
18772   cat conftest.err >&5
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); } &&
18775          { ac_try='test -z "$ac_c_werror_flag"
18776                          || test ! -s conftest.err'
18777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18778   (eval $ac_try) 2>&5
18779   ac_status=$?
18780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781   (exit $ac_status); }; } &&
18782          { ac_try='test -s conftest$ac_exeext'
18783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784   (eval $ac_try) 2>&5
18785   ac_status=$?
18786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787   (exit $ac_status); }; }; then
18788   ac_cv_lib_dld_shl_load=yes
18789 else
18790   echo "$as_me: failed program was:" >&5
18791 sed 's/^/| /' conftest.$ac_ext >&5
18792
18793 ac_cv_lib_dld_shl_load=no
18794 fi
18795 rm -f conftest.err conftest.$ac_objext \
18796       conftest$ac_exeext conftest.$ac_ext
18797 LIBS=$ac_check_lib_save_LIBS
18798 fi
18799 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18800 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18801 if test $ac_cv_lib_dld_shl_load = yes; then
18802   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18803 else
18804   echo "$as_me:$LINENO: checking for dlopen" >&5
18805 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18806 if test "${ac_cv_func_dlopen+set}" = set; then
18807   echo $ECHO_N "(cached) $ECHO_C" >&6
18808 else
18809   cat >conftest.$ac_ext <<_ACEOF
18810 /* confdefs.h.  */
18811 _ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h.  */
18815 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18817 #define dlopen innocuous_dlopen
18818
18819 /* System header to define __stub macros and hopefully few prototypes,
18820     which can conflict with char dlopen (); below.
18821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18822     <limits.h> exists even on freestanding compilers.  */
18823
18824 #ifdef __STDC__
18825 # include <limits.h>
18826 #else
18827 # include <assert.h>
18828 #endif
18829
18830 #undef dlopen
18831
18832 /* Override any gcc2 internal prototype to avoid an error.  */
18833 #ifdef __cplusplus
18834 extern "C"
18835 {
18836 #endif
18837 /* We use char because int might match the return type of a gcc2
18838    builtin and then its argument prototype would still apply.  */
18839 char dlopen ();
18840 /* The GNU C library defines this for functions which it implements
18841     to always fail with ENOSYS.  Some functions are actually named
18842     something starting with __ and the normal name is an alias.  */
18843 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18844 choke me
18845 #else
18846 char (*f) () = dlopen;
18847 #endif
18848 #ifdef __cplusplus
18849 }
18850 #endif
18851
18852 int
18853 main ()
18854 {
18855 return f != dlopen;
18856   ;
18857   return 0;
18858 }
18859 _ACEOF
18860 rm -f conftest.$ac_objext conftest$ac_exeext
18861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18862   (eval $ac_link) 2>conftest.er1
18863   ac_status=$?
18864   grep -v '^ *+' conftest.er1 >conftest.err
18865   rm -f conftest.er1
18866   cat conftest.err >&5
18867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868   (exit $ac_status); } &&
18869          { ac_try='test -z "$ac_c_werror_flag"
18870                          || test ! -s conftest.err'
18871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18872   (eval $ac_try) 2>&5
18873   ac_status=$?
18874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875   (exit $ac_status); }; } &&
18876          { ac_try='test -s conftest$ac_exeext'
18877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18878   (eval $ac_try) 2>&5
18879   ac_status=$?
18880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881   (exit $ac_status); }; }; then
18882   ac_cv_func_dlopen=yes
18883 else
18884   echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18886
18887 ac_cv_func_dlopen=no
18888 fi
18889 rm -f conftest.err conftest.$ac_objext \
18890       conftest$ac_exeext conftest.$ac_ext
18891 fi
18892 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18893 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18894 if test $ac_cv_func_dlopen = yes; then
18895   lt_cv_dlopen="dlopen"
18896 else
18897   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18898 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18899 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18900   echo $ECHO_N "(cached) $ECHO_C" >&6
18901 else
18902   ac_check_lib_save_LIBS=$LIBS
18903 LIBS="-ldl  $LIBS"
18904 cat >conftest.$ac_ext <<_ACEOF
18905 /* confdefs.h.  */
18906 _ACEOF
18907 cat confdefs.h >>conftest.$ac_ext
18908 cat >>conftest.$ac_ext <<_ACEOF
18909 /* end confdefs.h.  */
18910
18911 /* Override any gcc2 internal prototype to avoid an error.  */
18912 #ifdef __cplusplus
18913 extern "C"
18914 #endif
18915 /* We use char because int might match the return type of a gcc2
18916    builtin and then its argument prototype would still apply.  */
18917 char dlopen ();
18918 int
18919 main ()
18920 {
18921 dlopen ();
18922   ;
18923   return 0;
18924 }
18925 _ACEOF
18926 rm -f conftest.$ac_objext conftest$ac_exeext
18927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18928   (eval $ac_link) 2>conftest.er1
18929   ac_status=$?
18930   grep -v '^ *+' conftest.er1 >conftest.err
18931   rm -f conftest.er1
18932   cat conftest.err >&5
18933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934   (exit $ac_status); } &&
18935          { ac_try='test -z "$ac_c_werror_flag"
18936                          || test ! -s conftest.err'
18937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938   (eval $ac_try) 2>&5
18939   ac_status=$?
18940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941   (exit $ac_status); }; } &&
18942          { ac_try='test -s conftest$ac_exeext'
18943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944   (eval $ac_try) 2>&5
18945   ac_status=$?
18946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947   (exit $ac_status); }; }; then
18948   ac_cv_lib_dl_dlopen=yes
18949 else
18950   echo "$as_me: failed program was:" >&5
18951 sed 's/^/| /' conftest.$ac_ext >&5
18952
18953 ac_cv_lib_dl_dlopen=no
18954 fi
18955 rm -f conftest.err conftest.$ac_objext \
18956       conftest$ac_exeext conftest.$ac_ext
18957 LIBS=$ac_check_lib_save_LIBS
18958 fi
18959 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18960 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18961 if test $ac_cv_lib_dl_dlopen = yes; then
18962   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18963 else
18964   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18965 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18966 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18967   echo $ECHO_N "(cached) $ECHO_C" >&6
18968 else
18969   ac_check_lib_save_LIBS=$LIBS
18970 LIBS="-lsvld  $LIBS"
18971 cat >conftest.$ac_ext <<_ACEOF
18972 /* confdefs.h.  */
18973 _ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h.  */
18977
18978 /* Override any gcc2 internal prototype to avoid an error.  */
18979 #ifdef __cplusplus
18980 extern "C"
18981 #endif
18982 /* We use char because int might match the return type of a gcc2
18983    builtin and then its argument prototype would still apply.  */
18984 char dlopen ();
18985 int
18986 main ()
18987 {
18988 dlopen ();
18989   ;
18990   return 0;
18991 }
18992 _ACEOF
18993 rm -f conftest.$ac_objext conftest$ac_exeext
18994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18995   (eval $ac_link) 2>conftest.er1
18996   ac_status=$?
18997   grep -v '^ *+' conftest.er1 >conftest.err
18998   rm -f conftest.er1
18999   cat conftest.err >&5
19000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001   (exit $ac_status); } &&
19002          { ac_try='test -z "$ac_c_werror_flag"
19003                          || test ! -s conftest.err'
19004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005   (eval $ac_try) 2>&5
19006   ac_status=$?
19007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008   (exit $ac_status); }; } &&
19009          { ac_try='test -s conftest$ac_exeext'
19010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19011   (eval $ac_try) 2>&5
19012   ac_status=$?
19013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014   (exit $ac_status); }; }; then
19015   ac_cv_lib_svld_dlopen=yes
19016 else
19017   echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19019
19020 ac_cv_lib_svld_dlopen=no
19021 fi
19022 rm -f conftest.err conftest.$ac_objext \
19023       conftest$ac_exeext conftest.$ac_ext
19024 LIBS=$ac_check_lib_save_LIBS
19025 fi
19026 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19027 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19028 if test $ac_cv_lib_svld_dlopen = yes; then
19029   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19030 else
19031   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19032 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19033 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19034   echo $ECHO_N "(cached) $ECHO_C" >&6
19035 else
19036   ac_check_lib_save_LIBS=$LIBS
19037 LIBS="-ldld  $LIBS"
19038 cat >conftest.$ac_ext <<_ACEOF
19039 /* confdefs.h.  */
19040 _ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h.  */
19044
19045 /* Override any gcc2 internal prototype to avoid an error.  */
19046 #ifdef __cplusplus
19047 extern "C"
19048 #endif
19049 /* We use char because int might match the return type of a gcc2
19050    builtin and then its argument prototype would still apply.  */
19051 char dld_link ();
19052 int
19053 main ()
19054 {
19055 dld_link ();
19056   ;
19057   return 0;
19058 }
19059 _ACEOF
19060 rm -f conftest.$ac_objext conftest$ac_exeext
19061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19062   (eval $ac_link) 2>conftest.er1
19063   ac_status=$?
19064   grep -v '^ *+' conftest.er1 >conftest.err
19065   rm -f conftest.er1
19066   cat conftest.err >&5
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); } &&
19069          { ac_try='test -z "$ac_c_werror_flag"
19070                          || test ! -s conftest.err'
19071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072   (eval $ac_try) 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); }; } &&
19076          { ac_try='test -s conftest$ac_exeext'
19077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078   (eval $ac_try) 2>&5
19079   ac_status=$?
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); }; }; then
19082   ac_cv_lib_dld_dld_link=yes
19083 else
19084   echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19086
19087 ac_cv_lib_dld_dld_link=no
19088 fi
19089 rm -f conftest.err conftest.$ac_objext \
19090       conftest$ac_exeext conftest.$ac_ext
19091 LIBS=$ac_check_lib_save_LIBS
19092 fi
19093 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19094 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19095 if test $ac_cv_lib_dld_dld_link = yes; then
19096   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19097 fi
19098
19099
19100 fi
19101
19102
19103 fi
19104
19105
19106 fi
19107
19108
19109 fi
19110
19111
19112 fi
19113
19114     ;;
19115   esac
19116
19117   if test "x$lt_cv_dlopen" != xno; then
19118     enable_dlopen=yes
19119   else
19120     enable_dlopen=no
19121   fi
19122
19123   case $lt_cv_dlopen in
19124   dlopen)
19125     save_CPPFLAGS="$CPPFLAGS"
19126     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19127
19128     save_LDFLAGS="$LDFLAGS"
19129     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19130
19131     save_LIBS="$LIBS"
19132     LIBS="$lt_cv_dlopen_libs $LIBS"
19133
19134     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19135 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19136 if test "${lt_cv_dlopen_self+set}" = set; then
19137   echo $ECHO_N "(cached) $ECHO_C" >&6
19138 else
19139           if test "$cross_compiling" = yes; then :
19140   lt_cv_dlopen_self=cross
19141 else
19142   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19143   lt_status=$lt_dlunknown
19144   cat > conftest.$ac_ext <<EOF
19145 #line 19145 "configure"
19146 #include "confdefs.h"
19147
19148 #if HAVE_DLFCN_H
19149 #include <dlfcn.h>
19150 #endif
19151
19152 #include <stdio.h>
19153
19154 #ifdef RTLD_GLOBAL
19155 #  define LT_DLGLOBAL           RTLD_GLOBAL
19156 #else
19157 #  ifdef DL_GLOBAL
19158 #    define LT_DLGLOBAL         DL_GLOBAL
19159 #  else
19160 #    define LT_DLGLOBAL         0
19161 #  endif
19162 #endif
19163
19164 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19165    find out it does not work in some platform. */
19166 #ifndef LT_DLLAZY_OR_NOW
19167 #  ifdef RTLD_LAZY
19168 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19169 #  else
19170 #    ifdef DL_LAZY
19171 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19172 #    else
19173 #      ifdef RTLD_NOW
19174 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19175 #      else
19176 #        ifdef DL_NOW
19177 #          define LT_DLLAZY_OR_NOW      DL_NOW
19178 #        else
19179 #          define LT_DLLAZY_OR_NOW      0
19180 #        endif
19181 #      endif
19182 #    endif
19183 #  endif
19184 #endif
19185
19186 #ifdef __cplusplus
19187 extern "C" void exit (int);
19188 #endif
19189
19190 void fnord() { int i=42;}
19191 int main ()
19192 {
19193   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19194   int status = $lt_dlunknown;
19195
19196   if (self)
19197     {
19198       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19199       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19200       /* dlclose (self); */
19201     }
19202
19203     exit (status);
19204 }
19205 EOF
19206   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19207   (eval $ac_link) 2>&5
19208   ac_status=$?
19209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19211     (./conftest; exit; ) 2>/dev/null
19212     lt_status=$?
19213     case x$lt_status in
19214       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19215       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19216       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19217     esac
19218   else :
19219     # compilation failed
19220     lt_cv_dlopen_self=no
19221   fi
19222 fi
19223 rm -fr conftest*
19224
19225
19226 fi
19227 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19228 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19229
19230     if test "x$lt_cv_dlopen_self" = xyes; then
19231       LDFLAGS="$LDFLAGS $link_static_flag"
19232       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19233 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19234 if test "${lt_cv_dlopen_self_static+set}" = set; then
19235   echo $ECHO_N "(cached) $ECHO_C" >&6
19236 else
19237           if test "$cross_compiling" = yes; then :
19238   lt_cv_dlopen_self_static=cross
19239 else
19240   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19241   lt_status=$lt_dlunknown
19242   cat > conftest.$ac_ext <<EOF
19243 #line 19243 "configure"
19244 #include "confdefs.h"
19245
19246 #if HAVE_DLFCN_H
19247 #include <dlfcn.h>
19248 #endif
19249
19250 #include <stdio.h>
19251
19252 #ifdef RTLD_GLOBAL
19253 #  define LT_DLGLOBAL           RTLD_GLOBAL
19254 #else
19255 #  ifdef DL_GLOBAL
19256 #    define LT_DLGLOBAL         DL_GLOBAL
19257 #  else
19258 #    define LT_DLGLOBAL         0
19259 #  endif
19260 #endif
19261
19262 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19263    find out it does not work in some platform. */
19264 #ifndef LT_DLLAZY_OR_NOW
19265 #  ifdef RTLD_LAZY
19266 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19267 #  else
19268 #    ifdef DL_LAZY
19269 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19270 #    else
19271 #      ifdef RTLD_NOW
19272 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19273 #      else
19274 #        ifdef DL_NOW
19275 #          define LT_DLLAZY_OR_NOW      DL_NOW
19276 #        else
19277 #          define LT_DLLAZY_OR_NOW      0
19278 #        endif
19279 #      endif
19280 #    endif
19281 #  endif
19282 #endif
19283
19284 #ifdef __cplusplus
19285 extern "C" void exit (int);
19286 #endif
19287
19288 void fnord() { int i=42;}
19289 int main ()
19290 {
19291   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19292   int status = $lt_dlunknown;
19293
19294   if (self)
19295     {
19296       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19297       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19298       /* dlclose (self); */
19299     }
19300
19301     exit (status);
19302 }
19303 EOF
19304   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19305   (eval $ac_link) 2>&5
19306   ac_status=$?
19307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19309     (./conftest; exit; ) 2>/dev/null
19310     lt_status=$?
19311     case x$lt_status in
19312       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19313       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19314       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19315     esac
19316   else :
19317     # compilation failed
19318     lt_cv_dlopen_self_static=no
19319   fi
19320 fi
19321 rm -fr conftest*
19322
19323
19324 fi
19325 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19326 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19327     fi
19328
19329     CPPFLAGS="$save_CPPFLAGS"
19330     LDFLAGS="$save_LDFLAGS"
19331     LIBS="$save_LIBS"
19332     ;;
19333   esac
19334
19335   case $lt_cv_dlopen_self in
19336   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19337   *) enable_dlopen_self=unknown ;;
19338   esac
19339
19340   case $lt_cv_dlopen_self_static in
19341   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19342   *) enable_dlopen_self_static=unknown ;;
19343   esac
19344 fi
19345
19346
19347 # The else clause should only fire when bootstrapping the
19348 # libtool distribution, otherwise you forgot to ship ltmain.sh
19349 # with your package, and you will get complaints that there are
19350 # no rules to generate ltmain.sh.
19351 if test -f "$ltmain"; then
19352   # See if we are running on zsh, and set the options which allow our commands through
19353   # without removal of \ escapes.
19354   if test -n "${ZSH_VERSION+set}" ; then
19355     setopt NO_GLOB_SUBST
19356   fi
19357   # Now quote all the things that may contain metacharacters while being
19358   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19359   # variables and quote the copies for generation of the libtool script.
19360   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19361     SED SHELL STRIP \
19362     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19363     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19364     deplibs_check_method reload_flag reload_cmds need_locks \
19365     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19366     lt_cv_sys_global_symbol_to_c_name_address \
19367     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19368     old_postinstall_cmds old_postuninstall_cmds \
19369     compiler_GCJ \
19370     CC_GCJ \
19371     LD_GCJ \
19372     lt_prog_compiler_wl_GCJ \
19373     lt_prog_compiler_pic_GCJ \
19374     lt_prog_compiler_static_GCJ \
19375     lt_prog_compiler_no_builtin_flag_GCJ \
19376     export_dynamic_flag_spec_GCJ \
19377     thread_safe_flag_spec_GCJ \
19378     whole_archive_flag_spec_GCJ \
19379     enable_shared_with_static_runtimes_GCJ \
19380     old_archive_cmds_GCJ \
19381     old_archive_from_new_cmds_GCJ \
19382     predep_objects_GCJ \
19383     postdep_objects_GCJ \
19384     predeps_GCJ \
19385     postdeps_GCJ \
19386     compiler_lib_search_path_GCJ \
19387     archive_cmds_GCJ \
19388     archive_expsym_cmds_GCJ \
19389     postinstall_cmds_GCJ \
19390     postuninstall_cmds_GCJ \
19391     old_archive_from_expsyms_cmds_GCJ \
19392     allow_undefined_flag_GCJ \
19393     no_undefined_flag_GCJ \
19394     export_symbols_cmds_GCJ \
19395     hardcode_libdir_flag_spec_GCJ \
19396     hardcode_libdir_flag_spec_ld_GCJ \
19397     hardcode_libdir_separator_GCJ \
19398     hardcode_automatic_GCJ \
19399     module_cmds_GCJ \
19400     module_expsym_cmds_GCJ \
19401     lt_cv_prog_compiler_c_o_GCJ \
19402     exclude_expsyms_GCJ \
19403     include_expsyms_GCJ; do
19404
19405     case $var in
19406     old_archive_cmds_GCJ | \
19407     old_archive_from_new_cmds_GCJ | \
19408     archive_cmds_GCJ | \
19409     archive_expsym_cmds_GCJ | \
19410     module_cmds_GCJ | \
19411     module_expsym_cmds_GCJ | \
19412     old_archive_from_expsyms_cmds_GCJ | \
19413     export_symbols_cmds_GCJ | \
19414     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19415     postinstall_cmds | postuninstall_cmds | \
19416     old_postinstall_cmds | old_postuninstall_cmds | \
19417     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19418       # Double-quote double-evaled strings.
19419       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19420       ;;
19421     *)
19422       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19423       ;;
19424     esac
19425   done
19426
19427   case $lt_echo in
19428   *'\$0 --fallback-echo"')
19429     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19430     ;;
19431   esac
19432
19433 cfgfile="$ofile"
19434
19435   cat <<__EOF__ >> "$cfgfile"
19436 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19437
19438 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19439
19440 # Shell to use when invoking shell scripts.
19441 SHELL=$lt_SHELL
19442
19443 # Whether or not to build shared libraries.
19444 build_libtool_libs=$enable_shared
19445
19446 # Whether or not to build static libraries.
19447 build_old_libs=$enable_static
19448
19449 # Whether or not to add -lc for building shared libraries.
19450 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19451
19452 # Whether or not to disallow shared libs when runtime libs are static
19453 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19454
19455 # Whether or not to optimize for fast installation.
19456 fast_install=$enable_fast_install
19457
19458 # The host system.
19459 host_alias=$host_alias
19460 host=$host
19461
19462 # An echo program that does not interpret backslashes.
19463 echo=$lt_echo
19464
19465 # The archiver.
19466 AR=$lt_AR
19467 AR_FLAGS=$lt_AR_FLAGS
19468
19469 # A C compiler.
19470 LTCC=$lt_LTCC
19471
19472 # A language-specific compiler.
19473 CC=$lt_compiler_GCJ
19474
19475 # Is the compiler the GNU C compiler?
19476 with_gcc=$GCC_GCJ
19477
19478 # An ERE matcher.
19479 EGREP=$lt_EGREP
19480
19481 # The linker used to build libraries.
19482 LD=$lt_LD_GCJ
19483
19484 # Whether we need hard or soft links.
19485 LN_S=$lt_LN_S
19486
19487 # A BSD-compatible nm program.
19488 NM=$lt_NM
19489
19490 # A symbol stripping program
19491 STRIP=$lt_STRIP
19492
19493 # Used to examine libraries when file_magic_cmd begins "file"
19494 MAGIC_CMD=$MAGIC_CMD
19495
19496 # Used on cygwin: DLL creation program.
19497 DLLTOOL="$DLLTOOL"
19498
19499 # Used on cygwin: object dumper.
19500 OBJDUMP="$OBJDUMP"
19501
19502 # Used on cygwin: assembler.
19503 AS="$AS"
19504
19505 # The name of the directory that contains temporary libtool files.
19506 objdir=$objdir
19507
19508 # How to create reloadable object files.
19509 reload_flag=$lt_reload_flag
19510 reload_cmds=$lt_reload_cmds
19511
19512 # How to pass a linker flag through the compiler.
19513 wl=$lt_lt_prog_compiler_wl_GCJ
19514
19515 # Object file suffix (normally "o").
19516 objext="$ac_objext"
19517
19518 # Old archive suffix (normally "a").
19519 libext="$libext"
19520
19521 # Shared library suffix (normally ".so").
19522 shrext_cmds='$shrext_cmds'
19523
19524 # Executable file suffix (normally "").
19525 exeext="$exeext"
19526
19527 # Additional compiler flags for building library objects.
19528 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19529 pic_mode=$pic_mode
19530
19531 # What is the maximum length of a command?
19532 max_cmd_len=$lt_cv_sys_max_cmd_len
19533
19534 # Does compiler simultaneously support -c and -o options?
19535 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19536
19537 # Must we lock files when doing compilation ?
19538 need_locks=$lt_need_locks
19539
19540 # Do we need the lib prefix for modules?
19541 need_lib_prefix=$need_lib_prefix
19542
19543 # Do we need a version for libraries?
19544 need_version=$need_version
19545
19546 # Whether dlopen is supported.
19547 dlopen_support=$enable_dlopen
19548
19549 # Whether dlopen of programs is supported.
19550 dlopen_self=$enable_dlopen_self
19551
19552 # Whether dlopen of statically linked programs is supported.
19553 dlopen_self_static=$enable_dlopen_self_static
19554
19555 # Compiler flag to prevent dynamic linking.
19556 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19557
19558 # Compiler flag to turn off builtin functions.
19559 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19560
19561 # Compiler flag to allow reflexive dlopens.
19562 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19563
19564 # Compiler flag to generate shared objects directly from archives.
19565 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19566
19567 # Compiler flag to generate thread-safe objects.
19568 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19569
19570 # Library versioning type.
19571 version_type=$version_type
19572
19573 # Format of library name prefix.
19574 libname_spec=$lt_libname_spec
19575
19576 # List of archive names.  First name is the real one, the rest are links.
19577 # The last name is the one that the linker finds with -lNAME.
19578 library_names_spec=$lt_library_names_spec
19579
19580 # The coded name of the library, if different from the real name.
19581 soname_spec=$lt_soname_spec
19582
19583 # Commands used to build and install an old-style archive.
19584 RANLIB=$lt_RANLIB
19585 old_archive_cmds=$lt_old_archive_cmds_GCJ
19586 old_postinstall_cmds=$lt_old_postinstall_cmds
19587 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19588
19589 # Create an old-style archive from a shared archive.
19590 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19591
19592 # Create a temporary old-style archive to link instead of a shared archive.
19593 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19594
19595 # Commands used to build and install a shared archive.
19596 archive_cmds=$lt_archive_cmds_GCJ
19597 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19598 postinstall_cmds=$lt_postinstall_cmds
19599 postuninstall_cmds=$lt_postuninstall_cmds
19600
19601 # Commands used to build a loadable module (assumed same as above if empty)
19602 module_cmds=$lt_module_cmds_GCJ
19603 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19604
19605 # Commands to strip libraries.
19606 old_striplib=$lt_old_striplib
19607 striplib=$lt_striplib
19608
19609 # Dependencies to place before the objects being linked to create a
19610 # shared library.
19611 predep_objects=$lt_predep_objects_GCJ
19612
19613 # Dependencies to place after the objects being linked to create a
19614 # shared library.
19615 postdep_objects=$lt_postdep_objects_GCJ
19616
19617 # Dependencies to place before the objects being linked to create a
19618 # shared library.
19619 predeps=$lt_predeps_GCJ
19620
19621 # Dependencies to place after the objects being linked to create a
19622 # shared library.
19623 postdeps=$lt_postdeps_GCJ
19624
19625 # The library search path used internally by the compiler when linking
19626 # a shared library.
19627 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19628
19629 # Method to check whether dependent libraries are shared objects.
19630 deplibs_check_method=$lt_deplibs_check_method
19631
19632 # Command to use when deplibs_check_method == file_magic.
19633 file_magic_cmd=$lt_file_magic_cmd
19634
19635 # Flag that allows shared libraries with undefined symbols to be built.
19636 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19637
19638 # Flag that forces no undefined symbols.
19639 no_undefined_flag=$lt_no_undefined_flag_GCJ
19640
19641 # Commands used to finish a libtool library installation in a directory.
19642 finish_cmds=$lt_finish_cmds
19643
19644 # Same as above, but a single script fragment to be evaled but not shown.
19645 finish_eval=$lt_finish_eval
19646
19647 # Take the output of nm and produce a listing of raw symbols and C names.
19648 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19649
19650 # Transform the output of nm in a proper C declaration
19651 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19652
19653 # Transform the output of nm in a C name address pair
19654 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19655
19656 # This is the shared library runtime path variable.
19657 runpath_var=$runpath_var
19658
19659 # This is the shared library path variable.
19660 shlibpath_var=$shlibpath_var
19661
19662 # Is shlibpath searched before the hard-coded library search path?
19663 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19664
19665 # How to hardcode a shared library path into an executable.
19666 hardcode_action=$hardcode_action_GCJ
19667
19668 # Whether we should hardcode library paths into libraries.
19669 hardcode_into_libs=$hardcode_into_libs
19670
19671 # Flag to hardcode \$libdir into a binary during linking.
19672 # This must work even if \$libdir does not exist.
19673 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19674
19675 # If ld is used when linking, flag to hardcode \$libdir into
19676 # a binary during linking. This must work even if \$libdir does
19677 # not exist.
19678 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19679
19680 # Whether we need a single -rpath flag with a separated argument.
19681 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19682
19683 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19684 # resulting binary.
19685 hardcode_direct=$hardcode_direct_GCJ
19686
19687 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19688 # resulting binary.
19689 hardcode_minus_L=$hardcode_minus_L_GCJ
19690
19691 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19692 # the resulting binary.
19693 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19694
19695 # Set to yes if building a shared library automatically hardcodes DIR into the library
19696 # and all subsequent libraries and executables linked against it.
19697 hardcode_automatic=$hardcode_automatic_GCJ
19698
19699 # Variables whose values should be saved in libtool wrapper scripts and
19700 # restored at relink time.
19701 variables_saved_for_relink="$variables_saved_for_relink"
19702
19703 # Whether libtool must link a program against all its dependency libraries.
19704 link_all_deplibs=$link_all_deplibs_GCJ
19705
19706 # Compile-time system search path for libraries
19707 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19708
19709 # Run-time system search path for libraries
19710 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19711
19712 # Fix the shell variable \$srcfile for the compiler.
19713 fix_srcfile_path="$fix_srcfile_path_GCJ"
19714
19715 # Set to yes if exported symbols are required.
19716 always_export_symbols=$always_export_symbols_GCJ
19717
19718 # The commands to list exported symbols.
19719 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19720
19721 # The commands to extract the exported symbol list from a shared archive.
19722 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19723
19724 # Symbols that should not be listed in the preloaded symbols.
19725 exclude_expsyms=$lt_exclude_expsyms_GCJ
19726
19727 # Symbols that must always be exported.
19728 include_expsyms=$lt_include_expsyms_GCJ
19729
19730 # ### END LIBTOOL TAG CONFIG: $tagname
19731
19732 __EOF__
19733
19734
19735 else
19736   # If there is no Makefile yet, we rely on a make rule to execute
19737   # `config.status --recheck' to rerun these tests and create the
19738   # libtool script then.
19739   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19740   if test -f "$ltmain_in"; then
19741     test -f Makefile && make "$ltmain"
19742   fi
19743 fi
19744
19745
19746 ac_ext=c
19747 ac_cpp='$CPP $CPPFLAGS'
19748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19751
19752 CC="$lt_save_CC"
19753
19754         else
19755           tagname=""
19756         fi
19757         ;;
19758
19759       RC)
19760
19761
19762
19763 # Source file extension for RC test sources.
19764 ac_ext=rc
19765
19766 # Object file extension for compiled RC test sources.
19767 objext=o
19768 objext_RC=$objext
19769
19770 # Code to be used in simple compile tests
19771 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19772
19773 # Code to be used in simple link tests
19774 lt_simple_link_test_code="$lt_simple_compile_test_code"
19775
19776 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19777
19778 # If no C compiler was specified, use CC.
19779 LTCC=${LTCC-"$CC"}
19780
19781 # Allow CC to be a program name with arguments.
19782 compiler=$CC
19783
19784
19785 # Allow CC to be a program name with arguments.
19786 lt_save_CC="$CC"
19787 CC=${RC-"windres"}
19788 compiler=$CC
19789 compiler_RC=$CC
19790 lt_cv_prog_compiler_c_o_RC=yes
19791
19792 # The else clause should only fire when bootstrapping the
19793 # libtool distribution, otherwise you forgot to ship ltmain.sh
19794 # with your package, and you will get complaints that there are
19795 # no rules to generate ltmain.sh.
19796 if test -f "$ltmain"; then
19797   # See if we are running on zsh, and set the options which allow our commands through
19798   # without removal of \ escapes.
19799   if test -n "${ZSH_VERSION+set}" ; then
19800     setopt NO_GLOB_SUBST
19801   fi
19802   # Now quote all the things that may contain metacharacters while being
19803   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19804   # variables and quote the copies for generation of the libtool script.
19805   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19806     SED SHELL STRIP \
19807     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19808     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19809     deplibs_check_method reload_flag reload_cmds need_locks \
19810     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19811     lt_cv_sys_global_symbol_to_c_name_address \
19812     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19813     old_postinstall_cmds old_postuninstall_cmds \
19814     compiler_RC \
19815     CC_RC \
19816     LD_RC \
19817     lt_prog_compiler_wl_RC \
19818     lt_prog_compiler_pic_RC \
19819     lt_prog_compiler_static_RC \
19820     lt_prog_compiler_no_builtin_flag_RC \
19821     export_dynamic_flag_spec_RC \
19822     thread_safe_flag_spec_RC \
19823     whole_archive_flag_spec_RC \
19824     enable_shared_with_static_runtimes_RC \
19825     old_archive_cmds_RC \
19826     old_archive_from_new_cmds_RC \
19827     predep_objects_RC \
19828     postdep_objects_RC \
19829     predeps_RC \
19830     postdeps_RC \
19831     compiler_lib_search_path_RC \
19832     archive_cmds_RC \
19833     archive_expsym_cmds_RC \
19834     postinstall_cmds_RC \
19835     postuninstall_cmds_RC \
19836     old_archive_from_expsyms_cmds_RC \
19837     allow_undefined_flag_RC \
19838     no_undefined_flag_RC \
19839     export_symbols_cmds_RC \
19840     hardcode_libdir_flag_spec_RC \
19841     hardcode_libdir_flag_spec_ld_RC \
19842     hardcode_libdir_separator_RC \
19843     hardcode_automatic_RC \
19844     module_cmds_RC \
19845     module_expsym_cmds_RC \
19846     lt_cv_prog_compiler_c_o_RC \
19847     exclude_expsyms_RC \
19848     include_expsyms_RC; do
19849
19850     case $var in
19851     old_archive_cmds_RC | \
19852     old_archive_from_new_cmds_RC | \
19853     archive_cmds_RC | \
19854     archive_expsym_cmds_RC | \
19855     module_cmds_RC | \
19856     module_expsym_cmds_RC | \
19857     old_archive_from_expsyms_cmds_RC | \
19858     export_symbols_cmds_RC | \
19859     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19860     postinstall_cmds | postuninstall_cmds | \
19861     old_postinstall_cmds | old_postuninstall_cmds | \
19862     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19863       # Double-quote double-evaled strings.
19864       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19865       ;;
19866     *)
19867       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19868       ;;
19869     esac
19870   done
19871
19872   case $lt_echo in
19873   *'\$0 --fallback-echo"')
19874     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19875     ;;
19876   esac
19877
19878 cfgfile="$ofile"
19879
19880   cat <<__EOF__ >> "$cfgfile"
19881 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19882
19883 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19884
19885 # Shell to use when invoking shell scripts.
19886 SHELL=$lt_SHELL
19887
19888 # Whether or not to build shared libraries.
19889 build_libtool_libs=$enable_shared
19890
19891 # Whether or not to build static libraries.
19892 build_old_libs=$enable_static
19893
19894 # Whether or not to add -lc for building shared libraries.
19895 build_libtool_need_lc=$archive_cmds_need_lc_RC
19896
19897 # Whether or not to disallow shared libs when runtime libs are static
19898 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19899
19900 # Whether or not to optimize for fast installation.
19901 fast_install=$enable_fast_install
19902
19903 # The host system.
19904 host_alias=$host_alias
19905 host=$host
19906
19907 # An echo program that does not interpret backslashes.
19908 echo=$lt_echo
19909
19910 # The archiver.
19911 AR=$lt_AR
19912 AR_FLAGS=$lt_AR_FLAGS
19913
19914 # A C compiler.
19915 LTCC=$lt_LTCC
19916
19917 # A language-specific compiler.
19918 CC=$lt_compiler_RC
19919
19920 # Is the compiler the GNU C compiler?
19921 with_gcc=$GCC_RC
19922
19923 # An ERE matcher.
19924 EGREP=$lt_EGREP
19925
19926 # The linker used to build libraries.
19927 LD=$lt_LD_RC
19928
19929 # Whether we need hard or soft links.
19930 LN_S=$lt_LN_S
19931
19932 # A BSD-compatible nm program.
19933 NM=$lt_NM
19934
19935 # A symbol stripping program
19936 STRIP=$lt_STRIP
19937
19938 # Used to examine libraries when file_magic_cmd begins "file"
19939 MAGIC_CMD=$MAGIC_CMD
19940
19941 # Used on cygwin: DLL creation program.
19942 DLLTOOL="$DLLTOOL"
19943
19944 # Used on cygwin: object dumper.
19945 OBJDUMP="$OBJDUMP"
19946
19947 # Used on cygwin: assembler.
19948 AS="$AS"
19949
19950 # The name of the directory that contains temporary libtool files.
19951 objdir=$objdir
19952
19953 # How to create reloadable object files.
19954 reload_flag=$lt_reload_flag
19955 reload_cmds=$lt_reload_cmds
19956
19957 # How to pass a linker flag through the compiler.
19958 wl=$lt_lt_prog_compiler_wl_RC
19959
19960 # Object file suffix (normally "o").
19961 objext="$ac_objext"
19962
19963 # Old archive suffix (normally "a").
19964 libext="$libext"
19965
19966 # Shared library suffix (normally ".so").
19967 shrext_cmds='$shrext_cmds'
19968
19969 # Executable file suffix (normally "").
19970 exeext="$exeext"
19971
19972 # Additional compiler flags for building library objects.
19973 pic_flag=$lt_lt_prog_compiler_pic_RC
19974 pic_mode=$pic_mode
19975
19976 # What is the maximum length of a command?
19977 max_cmd_len=$lt_cv_sys_max_cmd_len
19978
19979 # Does compiler simultaneously support -c and -o options?
19980 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19981
19982 # Must we lock files when doing compilation ?
19983 need_locks=$lt_need_locks
19984
19985 # Do we need the lib prefix for modules?
19986 need_lib_prefix=$need_lib_prefix
19987
19988 # Do we need a version for libraries?
19989 need_version=$need_version
19990
19991 # Whether dlopen is supported.
19992 dlopen_support=$enable_dlopen
19993
19994 # Whether dlopen of programs is supported.
19995 dlopen_self=$enable_dlopen_self
19996
19997 # Whether dlopen of statically linked programs is supported.
19998 dlopen_self_static=$enable_dlopen_self_static
19999
20000 # Compiler flag to prevent dynamic linking.
20001 link_static_flag=$lt_lt_prog_compiler_static_RC
20002
20003 # Compiler flag to turn off builtin functions.
20004 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20005
20006 # Compiler flag to allow reflexive dlopens.
20007 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20008
20009 # Compiler flag to generate shared objects directly from archives.
20010 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20011
20012 # Compiler flag to generate thread-safe objects.
20013 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20014
20015 # Library versioning type.
20016 version_type=$version_type
20017
20018 # Format of library name prefix.
20019 libname_spec=$lt_libname_spec
20020
20021 # List of archive names.  First name is the real one, the rest are links.
20022 # The last name is the one that the linker finds with -lNAME.
20023 library_names_spec=$lt_library_names_spec
20024
20025 # The coded name of the library, if different from the real name.
20026 soname_spec=$lt_soname_spec
20027
20028 # Commands used to build and install an old-style archive.
20029 RANLIB=$lt_RANLIB
20030 old_archive_cmds=$lt_old_archive_cmds_RC
20031 old_postinstall_cmds=$lt_old_postinstall_cmds
20032 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20033
20034 # Create an old-style archive from a shared archive.
20035 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20036
20037 # Create a temporary old-style archive to link instead of a shared archive.
20038 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20039
20040 # Commands used to build and install a shared archive.
20041 archive_cmds=$lt_archive_cmds_RC
20042 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20043 postinstall_cmds=$lt_postinstall_cmds
20044 postuninstall_cmds=$lt_postuninstall_cmds
20045
20046 # Commands used to build a loadable module (assumed same as above if empty)
20047 module_cmds=$lt_module_cmds_RC
20048 module_expsym_cmds=$lt_module_expsym_cmds_RC
20049
20050 # Commands to strip libraries.
20051 old_striplib=$lt_old_striplib
20052 striplib=$lt_striplib
20053
20054 # Dependencies to place before the objects being linked to create a
20055 # shared library.
20056 predep_objects=$lt_predep_objects_RC
20057
20058 # Dependencies to place after the objects being linked to create a
20059 # shared library.
20060 postdep_objects=$lt_postdep_objects_RC
20061
20062 # Dependencies to place before the objects being linked to create a
20063 # shared library.
20064 predeps=$lt_predeps_RC
20065
20066 # Dependencies to place after the objects being linked to create a
20067 # shared library.
20068 postdeps=$lt_postdeps_RC
20069
20070 # The library search path used internally by the compiler when linking
20071 # a shared library.
20072 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20073
20074 # Method to check whether dependent libraries are shared objects.
20075 deplibs_check_method=$lt_deplibs_check_method
20076
20077 # Command to use when deplibs_check_method == file_magic.
20078 file_magic_cmd=$lt_file_magic_cmd
20079
20080 # Flag that allows shared libraries with undefined symbols to be built.
20081 allow_undefined_flag=$lt_allow_undefined_flag_RC
20082
20083 # Flag that forces no undefined symbols.
20084 no_undefined_flag=$lt_no_undefined_flag_RC
20085
20086 # Commands used to finish a libtool library installation in a directory.
20087 finish_cmds=$lt_finish_cmds
20088
20089 # Same as above, but a single script fragment to be evaled but not shown.
20090 finish_eval=$lt_finish_eval
20091
20092 # Take the output of nm and produce a listing of raw symbols and C names.
20093 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20094
20095 # Transform the output of nm in a proper C declaration
20096 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20097
20098 # Transform the output of nm in a C name address pair
20099 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20100
20101 # This is the shared library runtime path variable.
20102 runpath_var=$runpath_var
20103
20104 # This is the shared library path variable.
20105 shlibpath_var=$shlibpath_var
20106
20107 # Is shlibpath searched before the hard-coded library search path?
20108 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20109
20110 # How to hardcode a shared library path into an executable.
20111 hardcode_action=$hardcode_action_RC
20112
20113 # Whether we should hardcode library paths into libraries.
20114 hardcode_into_libs=$hardcode_into_libs
20115
20116 # Flag to hardcode \$libdir into a binary during linking.
20117 # This must work even if \$libdir does not exist.
20118 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20119
20120 # If ld is used when linking, flag to hardcode \$libdir into
20121 # a binary during linking. This must work even if \$libdir does
20122 # not exist.
20123 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20124
20125 # Whether we need a single -rpath flag with a separated argument.
20126 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20127
20128 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20129 # resulting binary.
20130 hardcode_direct=$hardcode_direct_RC
20131
20132 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20133 # resulting binary.
20134 hardcode_minus_L=$hardcode_minus_L_RC
20135
20136 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20137 # the resulting binary.
20138 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20139
20140 # Set to yes if building a shared library automatically hardcodes DIR into the library
20141 # and all subsequent libraries and executables linked against it.
20142 hardcode_automatic=$hardcode_automatic_RC
20143
20144 # Variables whose values should be saved in libtool wrapper scripts and
20145 # restored at relink time.
20146 variables_saved_for_relink="$variables_saved_for_relink"
20147
20148 # Whether libtool must link a program against all its dependency libraries.
20149 link_all_deplibs=$link_all_deplibs_RC
20150
20151 # Compile-time system search path for libraries
20152 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20153
20154 # Run-time system search path for libraries
20155 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20156
20157 # Fix the shell variable \$srcfile for the compiler.
20158 fix_srcfile_path="$fix_srcfile_path_RC"
20159
20160 # Set to yes if exported symbols are required.
20161 always_export_symbols=$always_export_symbols_RC
20162
20163 # The commands to list exported symbols.
20164 export_symbols_cmds=$lt_export_symbols_cmds_RC
20165
20166 # The commands to extract the exported symbol list from a shared archive.
20167 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20168
20169 # Symbols that should not be listed in the preloaded symbols.
20170 exclude_expsyms=$lt_exclude_expsyms_RC
20171
20172 # Symbols that must always be exported.
20173 include_expsyms=$lt_include_expsyms_RC
20174
20175 # ### END LIBTOOL TAG CONFIG: $tagname
20176
20177 __EOF__
20178
20179
20180 else
20181   # If there is no Makefile yet, we rely on a make rule to execute
20182   # `config.status --recheck' to rerun these tests and create the
20183   # libtool script then.
20184   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20185   if test -f "$ltmain_in"; then
20186     test -f Makefile && make "$ltmain"
20187   fi
20188 fi
20189
20190
20191 ac_ext=c
20192 ac_cpp='$CPP $CPPFLAGS'
20193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20196
20197 CC="$lt_save_CC"
20198
20199         ;;
20200
20201       *)
20202         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20203 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20204    { (exit 1); exit 1; }; }
20205         ;;
20206       esac
20207
20208       # Append the new tag name to the list of available tags.
20209       if test -n "$tagname" ; then
20210       available_tags="$available_tags $tagname"
20211     fi
20212     fi
20213   done
20214   IFS="$lt_save_ifs"
20215
20216   # Now substitute the updated list of available tags.
20217   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20218     mv "${ofile}T" "$ofile"
20219     chmod +x "$ofile"
20220   else
20221     rm -f "${ofile}T"
20222     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20223 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20224    { (exit 1); exit 1; }; }
20225   fi
20226 fi
20227
20228
20229
20230 # This can be used to rebuild libtool when needed
20231 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20232
20233 # Always use our own libtool.
20234 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20235
20236 # Prevent multiple expansion
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257 echo "$as_me:$LINENO: checking whether ln -s works" >&5
20258 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
20259 LN_S=$as_ln_s
20260 if test "$LN_S" = "ln -s"; then
20261   echo "$as_me:$LINENO: result: yes" >&5
20262 echo "${ECHO_T}yes" >&6
20263 else
20264   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
20265 echo "${ECHO_T}no, using $LN_S" >&6
20266 fi
20267
20268
20269 # When the prefix is /opt/libjpeg-turbo, we assume that an "official" binary is
20270 # being created, and thus we install things into specific locations.
20271
20272 old_prefix=${prefix}
20273 if test "x$prefix" = "xNONE" -a "x$ac_default_prefix" != "x"; then
20274   prefix=$ac_default_prefix
20275 fi
20276 DATADIR=`eval echo ${datadir}`
20277 DATADIR=`eval echo $DATADIR`
20278 if test "$DATADIR" = "/opt/libjpeg-turbo/share"; then
20279   datadir='${prefix}'
20280 fi
20281 DATADIR=`eval echo ${datarootdir}`
20282 DATADIR=`eval echo $DATADIR`
20283 if test "$DATADIR" = "/opt/libjpeg-turbo/share"; then
20284   datarootdir='${prefix}'
20285 fi
20286
20287 old_exec_prefix=${exec_prefix}
20288 if test "x$exec_prefix" = "xNONE"; then
20289   exec_prefix=${prefix}
20290 fi
20291
20292 if test "x${libdir}" = 'x${exec_prefix}/lib' -o "x${libdir}" = 'x${prefix}/lib'; then
20293   LIBDIR=`eval echo ${libdir}`
20294   LIBDIR=`eval echo $LIBDIR`
20295   if test "$LIBDIR" = "/opt/libjpeg-turbo/lib"; then
20296     case $host_os in
20297       darwin*)
20298         ;;
20299       *)
20300         echo "$as_me:$LINENO: checking for long" >&5
20301 echo $ECHO_N "checking for long... $ECHO_C" >&6
20302 if test "${ac_cv_type_long+set}" = set; then
20303   echo $ECHO_N "(cached) $ECHO_C" >&6
20304 else
20305   cat >conftest.$ac_ext <<_ACEOF
20306 /* confdefs.h.  */
20307 _ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h.  */
20311 $ac_includes_default
20312 int
20313 main ()
20314 {
20315 if ((long *) 0)
20316   return 0;
20317 if (sizeof (long))
20318   return 0;
20319   ;
20320   return 0;
20321 }
20322 _ACEOF
20323 rm -f conftest.$ac_objext
20324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20325   (eval $ac_compile) 2>conftest.er1
20326   ac_status=$?
20327   grep -v '^ *+' conftest.er1 >conftest.err
20328   rm -f conftest.er1
20329   cat conftest.err >&5
20330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331   (exit $ac_status); } &&
20332          { ac_try='test -z "$ac_c_werror_flag"
20333                          || test ! -s conftest.err'
20334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335   (eval $ac_try) 2>&5
20336   ac_status=$?
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); }; } &&
20339          { ac_try='test -s conftest.$ac_objext'
20340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341   (eval $ac_try) 2>&5
20342   ac_status=$?
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); }; }; then
20345   ac_cv_type_long=yes
20346 else
20347   echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20349
20350 ac_cv_type_long=no
20351 fi
20352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20353 fi
20354 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20355 echo "${ECHO_T}$ac_cv_type_long" >&6
20356
20357 echo "$as_me:$LINENO: checking size of long" >&5
20358 echo $ECHO_N "checking size of long... $ECHO_C" >&6
20359 if test "${ac_cv_sizeof_long+set}" = set; then
20360   echo $ECHO_N "(cached) $ECHO_C" >&6
20361 else
20362   if test "$ac_cv_type_long" = yes; then
20363   # The cast to unsigned long works around a bug in the HP C Compiler
20364   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20365   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20366   # This bug is HP SR number 8606223364.
20367   if test "$cross_compiling" = yes; then
20368   # Depending upon the size, compute the lo and hi bounds.
20369 cat >conftest.$ac_ext <<_ACEOF
20370 /* confdefs.h.  */
20371 _ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h.  */
20375 $ac_includes_default
20376 int
20377 main ()
20378 {
20379 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
20380 test_array [0] = 0
20381
20382   ;
20383   return 0;
20384 }
20385 _ACEOF
20386 rm -f conftest.$ac_objext
20387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20388   (eval $ac_compile) 2>conftest.er1
20389   ac_status=$?
20390   grep -v '^ *+' conftest.er1 >conftest.err
20391   rm -f conftest.er1
20392   cat conftest.err >&5
20393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394   (exit $ac_status); } &&
20395          { ac_try='test -z "$ac_c_werror_flag"
20396                          || test ! -s conftest.err'
20397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20398   (eval $ac_try) 2>&5
20399   ac_status=$?
20400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401   (exit $ac_status); }; } &&
20402          { ac_try='test -s conftest.$ac_objext'
20403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404   (eval $ac_try) 2>&5
20405   ac_status=$?
20406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407   (exit $ac_status); }; }; then
20408   ac_lo=0 ac_mid=0
20409   while :; do
20410     cat >conftest.$ac_ext <<_ACEOF
20411 /* confdefs.h.  */
20412 _ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h.  */
20416 $ac_includes_default
20417 int
20418 main ()
20419 {
20420 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20421 test_array [0] = 0
20422
20423   ;
20424   return 0;
20425 }
20426 _ACEOF
20427 rm -f conftest.$ac_objext
20428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20429   (eval $ac_compile) 2>conftest.er1
20430   ac_status=$?
20431   grep -v '^ *+' conftest.er1 >conftest.err
20432   rm -f conftest.er1
20433   cat conftest.err >&5
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); } &&
20436          { ac_try='test -z "$ac_c_werror_flag"
20437                          || test ! -s conftest.err'
20438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439   (eval $ac_try) 2>&5
20440   ac_status=$?
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); }; } &&
20443          { ac_try='test -s conftest.$ac_objext'
20444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445   (eval $ac_try) 2>&5
20446   ac_status=$?
20447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448   (exit $ac_status); }; }; then
20449   ac_hi=$ac_mid; break
20450 else
20451   echo "$as_me: failed program was:" >&5
20452 sed 's/^/| /' conftest.$ac_ext >&5
20453
20454 ac_lo=`expr $ac_mid + 1`
20455                     if test $ac_lo -le $ac_mid; then
20456                       ac_lo= ac_hi=
20457                       break
20458                     fi
20459                     ac_mid=`expr 2 '*' $ac_mid + 1`
20460 fi
20461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20462   done
20463 else
20464   echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20466
20467 cat >conftest.$ac_ext <<_ACEOF
20468 /* confdefs.h.  */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h.  */
20473 $ac_includes_default
20474 int
20475 main ()
20476 {
20477 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
20478 test_array [0] = 0
20479
20480   ;
20481   return 0;
20482 }
20483 _ACEOF
20484 rm -f conftest.$ac_objext
20485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20486   (eval $ac_compile) 2>conftest.er1
20487   ac_status=$?
20488   grep -v '^ *+' conftest.er1 >conftest.err
20489   rm -f conftest.er1
20490   cat conftest.err >&5
20491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492   (exit $ac_status); } &&
20493          { ac_try='test -z "$ac_c_werror_flag"
20494                          || test ! -s conftest.err'
20495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496   (eval $ac_try) 2>&5
20497   ac_status=$?
20498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499   (exit $ac_status); }; } &&
20500          { ac_try='test -s conftest.$ac_objext'
20501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502   (eval $ac_try) 2>&5
20503   ac_status=$?
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); }; }; then
20506   ac_hi=-1 ac_mid=-1
20507   while :; do
20508     cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h.  */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h.  */
20514 $ac_includes_default
20515 int
20516 main ()
20517 {
20518 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
20519 test_array [0] = 0
20520
20521   ;
20522   return 0;
20523 }
20524 _ACEOF
20525 rm -f conftest.$ac_objext
20526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20527   (eval $ac_compile) 2>conftest.er1
20528   ac_status=$?
20529   grep -v '^ *+' conftest.er1 >conftest.err
20530   rm -f conftest.er1
20531   cat conftest.err >&5
20532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533   (exit $ac_status); } &&
20534          { ac_try='test -z "$ac_c_werror_flag"
20535                          || test ! -s conftest.err'
20536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20537   (eval $ac_try) 2>&5
20538   ac_status=$?
20539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540   (exit $ac_status); }; } &&
20541          { ac_try='test -s conftest.$ac_objext'
20542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20543   (eval $ac_try) 2>&5
20544   ac_status=$?
20545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546   (exit $ac_status); }; }; then
20547   ac_lo=$ac_mid; break
20548 else
20549   echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20551
20552 ac_hi=`expr '(' $ac_mid ')' - 1`
20553                        if test $ac_mid -le $ac_hi; then
20554                          ac_lo= ac_hi=
20555                          break
20556                        fi
20557                        ac_mid=`expr 2 '*' $ac_mid`
20558 fi
20559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20560   done
20561 else
20562   echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20564
20565 ac_lo= ac_hi=
20566 fi
20567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20568 fi
20569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20570 # Binary search between lo and hi bounds.
20571 while test "x$ac_lo" != "x$ac_hi"; do
20572   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20573   cat >conftest.$ac_ext <<_ACEOF
20574 /* confdefs.h.  */
20575 _ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h.  */
20579 $ac_includes_default
20580 int
20581 main ()
20582 {
20583 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20584 test_array [0] = 0
20585
20586   ;
20587   return 0;
20588 }
20589 _ACEOF
20590 rm -f conftest.$ac_objext
20591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20592   (eval $ac_compile) 2>conftest.er1
20593   ac_status=$?
20594   grep -v '^ *+' conftest.er1 >conftest.err
20595   rm -f conftest.er1
20596   cat conftest.err >&5
20597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598   (exit $ac_status); } &&
20599          { ac_try='test -z "$ac_c_werror_flag"
20600                          || test ! -s conftest.err'
20601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602   (eval $ac_try) 2>&5
20603   ac_status=$?
20604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605   (exit $ac_status); }; } &&
20606          { ac_try='test -s conftest.$ac_objext'
20607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608   (eval $ac_try) 2>&5
20609   ac_status=$?
20610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611   (exit $ac_status); }; }; then
20612   ac_hi=$ac_mid
20613 else
20614   echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20616
20617 ac_lo=`expr '(' $ac_mid ')' + 1`
20618 fi
20619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20620 done
20621 case $ac_lo in
20622 ?*) ac_cv_sizeof_long=$ac_lo;;
20623 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20624 See \`config.log' for more details." >&5
20625 echo "$as_me: error: cannot compute sizeof (long), 77
20626 See \`config.log' for more details." >&2;}
20627    { (exit 1); exit 1; }; } ;;
20628 esac
20629 else
20630   if test "$cross_compiling" = yes; then
20631   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20632 See \`config.log' for more details." >&5
20633 echo "$as_me: error: cannot run test program while cross compiling
20634 See \`config.log' for more details." >&2;}
20635    { (exit 1); exit 1; }; }
20636 else
20637   cat >conftest.$ac_ext <<_ACEOF
20638 /* confdefs.h.  */
20639 _ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h.  */
20643 $ac_includes_default
20644 long longval () { return (long) (sizeof (long)); }
20645 unsigned long ulongval () { return (long) (sizeof (long)); }
20646 #include <stdio.h>
20647 #include <stdlib.h>
20648 int
20649 main ()
20650 {
20651
20652   FILE *f = fopen ("conftest.val", "w");
20653   if (! f)
20654     exit (1);
20655   if (((long) (sizeof (long))) < 0)
20656     {
20657       long i = longval ();
20658       if (i != ((long) (sizeof (long))))
20659         exit (1);
20660       fprintf (f, "%ld\n", i);
20661     }
20662   else
20663     {
20664       unsigned long i = ulongval ();
20665       if (i != ((long) (sizeof (long))))
20666         exit (1);
20667       fprintf (f, "%lu\n", i);
20668     }
20669   exit (ferror (f) || fclose (f) != 0);
20670
20671   ;
20672   return 0;
20673 }
20674 _ACEOF
20675 rm -f conftest$ac_exeext
20676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20677   (eval $ac_link) 2>&5
20678   ac_status=$?
20679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20682   (eval $ac_try) 2>&5
20683   ac_status=$?
20684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685   (exit $ac_status); }; }; then
20686   ac_cv_sizeof_long=`cat conftest.val`
20687 else
20688   echo "$as_me: program exited with status $ac_status" >&5
20689 echo "$as_me: failed program was:" >&5
20690 sed 's/^/| /' conftest.$ac_ext >&5
20691
20692 ( exit $ac_status )
20693 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20694 See \`config.log' for more details." >&5
20695 echo "$as_me: error: cannot compute sizeof (long), 77
20696 See \`config.log' for more details." >&2;}
20697    { (exit 1); exit 1; }; }
20698 fi
20699 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20700 fi
20701 fi
20702 rm -f conftest.val
20703 else
20704   ac_cv_sizeof_long=0
20705 fi
20706 fi
20707 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20708 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20709 cat >>confdefs.h <<_ACEOF
20710 #define SIZEOF_LONG $ac_cv_sizeof_long
20711 _ACEOF
20712
20713
20714         if test "${ac_cv_sizeof_long}" = "8"; then
20715           libdir='${exec_prefix}/lib64'
20716         elif test "${ac_cv_sizeof_long}" = "4"; then
20717           libdir='${exec_prefix}/lib32'
20718         fi
20719         ;;
20720     esac
20721   fi
20722 fi
20723 exec_prefix=${old_exec_prefix}
20724 prefix=${old_prefix}
20725
20726 # Check whether compiler supports pointers to undefined structures
20727 echo "$as_me:$LINENO: checking whether compiler supports pointers to undefined structures" >&5
20728 echo $ECHO_N "checking whether compiler supports pointers to undefined structures... $ECHO_C" >&6
20729 cat >conftest.$ac_ext <<_ACEOF
20730 /* confdefs.h.  */
20731 _ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h.  */
20735  typedef struct undefined_structure * undef_struct_ptr;
20736 int
20737 main ()
20738 {
20739
20740   ;
20741   return 0;
20742 }
20743 _ACEOF
20744 rm -f conftest.$ac_objext
20745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20746   (eval $ac_compile) 2>conftest.er1
20747   ac_status=$?
20748   grep -v '^ *+' conftest.er1 >conftest.err
20749   rm -f conftest.er1
20750   cat conftest.err >&5
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); } &&
20753          { ac_try='test -z "$ac_c_werror_flag"
20754                          || test ! -s conftest.err'
20755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756   (eval $ac_try) 2>&5
20757   ac_status=$?
20758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759   (exit $ac_status); }; } &&
20760          { ac_try='test -s conftest.$ac_objext'
20761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20762   (eval $ac_try) 2>&5
20763   ac_status=$?
20764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765   (exit $ac_status); }; }; then
20766   echo "$as_me:$LINENO: result: yes" >&5
20767 echo "${ECHO_T}yes" >&6
20768 else
20769   echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20771
20772 echo "$as_me:$LINENO: result: no" >&5
20773 echo "${ECHO_T}no" >&6
20774
20775 cat >>confdefs.h <<\_ACEOF
20776 #define INCOMPLETE_TYPES_BROKEN 1
20777 _ACEOF
20778
20779 fi
20780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20781
20782 if test "x${GCC}" = "xyes"; then
20783   if test "x${SAVED_CFLAGS}" = "x"; then
20784     CFLAGS=-O3
20785   fi
20786   if test "x${SAVED_CPPFLAGS}" = "x"; then
20787     CPPFLAGS=-Wall
20788   fi
20789 fi
20790
20791 echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
20792 echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6
20793 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
20794   echo $ECHO_N "(cached) $ECHO_C" >&6
20795 else
20796   cat >conftest.$ac_ext <<_ACEOF
20797 /* confdefs.h.  */
20798 _ACEOF
20799 cat confdefs.h >>conftest.$ac_ext
20800 cat >>conftest.$ac_ext <<_ACEOF
20801 /* end confdefs.h.  */
20802 $ac_includes_default
20803 int
20804 main ()
20805 {
20806 #ifndef __SUNPRO_C
20807   char *p = (char *) __SUNPRO_C;
20808 #endif
20809
20810   ;
20811   return 0;
20812 }
20813 _ACEOF
20814 rm -f conftest.$ac_objext
20815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20816   (eval $ac_compile) 2>conftest.er1
20817   ac_status=$?
20818   grep -v '^ *+' conftest.er1 >conftest.err
20819   rm -f conftest.er1
20820   cat conftest.err >&5
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); } &&
20823          { ac_try='test -z "$ac_c_werror_flag"
20824                          || test ! -s conftest.err'
20825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826   (eval $ac_try) 2>&5
20827   ac_status=$?
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); }; } &&
20830          { ac_try='test -s conftest.$ac_objext'
20831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832   (eval $ac_try) 2>&5
20833   ac_status=$?
20834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835   (exit $ac_status); }; }; then
20836   ac_cv_have_decl___SUNPRO_C=yes
20837 else
20838   echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20840
20841 ac_cv_have_decl___SUNPRO_C=no
20842 fi
20843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20844 fi
20845 echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
20846 echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6
20847 if test $ac_cv_have_decl___SUNPRO_C = yes; then
20848   SUNCC="yes"
20849 else
20850   SUNCC="no"
20851 fi
20852
20853 if test "x${SUNCC}" = "xyes"; then
20854   if test "x${SAVED_CFLAGS}" = "x"; then
20855     CFLAGS=-xO5
20856   fi
20857 fi
20858
20859 # Checks for libraries.
20860
20861 # Checks for header files.
20862 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20863 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20864 if test "${ac_cv_header_stdc+set}" = set; then
20865   echo $ECHO_N "(cached) $ECHO_C" >&6
20866 else
20867   cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h.  */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h.  */
20873 #include <stdlib.h>
20874 #include <stdarg.h>
20875 #include <string.h>
20876 #include <float.h>
20877
20878 int
20879 main ()
20880 {
20881
20882   ;
20883   return 0;
20884 }
20885 _ACEOF
20886 rm -f conftest.$ac_objext
20887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20888   (eval $ac_compile) 2>conftest.er1
20889   ac_status=$?
20890   grep -v '^ *+' conftest.er1 >conftest.err
20891   rm -f conftest.er1
20892   cat conftest.err >&5
20893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894   (exit $ac_status); } &&
20895          { ac_try='test -z "$ac_c_werror_flag"
20896                          || test ! -s conftest.err'
20897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898   (eval $ac_try) 2>&5
20899   ac_status=$?
20900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901   (exit $ac_status); }; } &&
20902          { ac_try='test -s conftest.$ac_objext'
20903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904   (eval $ac_try) 2>&5
20905   ac_status=$?
20906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907   (exit $ac_status); }; }; then
20908   ac_cv_header_stdc=yes
20909 else
20910   echo "$as_me: failed program was:" >&5
20911 sed 's/^/| /' conftest.$ac_ext >&5
20912
20913 ac_cv_header_stdc=no
20914 fi
20915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20916
20917 if test $ac_cv_header_stdc = yes; then
20918   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20919   cat >conftest.$ac_ext <<_ACEOF
20920 /* confdefs.h.  */
20921 _ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h.  */
20925 #include <string.h>
20926
20927 _ACEOF
20928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20929   $EGREP "memchr" >/dev/null 2>&1; then
20930   :
20931 else
20932   ac_cv_header_stdc=no
20933 fi
20934 rm -f conftest*
20935
20936 fi
20937
20938 if test $ac_cv_header_stdc = yes; then
20939   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20940   cat >conftest.$ac_ext <<_ACEOF
20941 /* confdefs.h.  */
20942 _ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h.  */
20946 #include <stdlib.h>
20947
20948 _ACEOF
20949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20950   $EGREP "free" >/dev/null 2>&1; then
20951   :
20952 else
20953   ac_cv_header_stdc=no
20954 fi
20955 rm -f conftest*
20956
20957 fi
20958
20959 if test $ac_cv_header_stdc = yes; then
20960   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20961   if test "$cross_compiling" = yes; then
20962   :
20963 else
20964   cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h.  */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h.  */
20970 #include <ctype.h>
20971 #if ((' ' & 0x0FF) == 0x020)
20972 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20973 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20974 #else
20975 # define ISLOWER(c) \
20976                    (('a' <= (c) && (c) <= 'i') \
20977                      || ('j' <= (c) && (c) <= 'r') \
20978                      || ('s' <= (c) && (c) <= 'z'))
20979 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20980 #endif
20981
20982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20983 int
20984 main ()
20985 {
20986   int i;
20987   for (i = 0; i < 256; i++)
20988     if (XOR (islower (i), ISLOWER (i))
20989         || toupper (i) != TOUPPER (i))
20990       exit(2);
20991   exit (0);
20992 }
20993 _ACEOF
20994 rm -f conftest$ac_exeext
20995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20996   (eval $ac_link) 2>&5
20997   ac_status=$?
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001   (eval $ac_try) 2>&5
21002   ac_status=$?
21003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004   (exit $ac_status); }; }; then
21005   :
21006 else
21007   echo "$as_me: program exited with status $ac_status" >&5
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21010
21011 ( exit $ac_status )
21012 ac_cv_header_stdc=no
21013 fi
21014 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21015 fi
21016 fi
21017 fi
21018 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21019 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21020 if test $ac_cv_header_stdc = yes; then
21021
21022 cat >>confdefs.h <<\_ACEOF
21023 #define STDC_HEADERS 1
21024 _ACEOF
21025
21026 fi
21027
21028
21029
21030
21031 for ac_header in stddef.h stdlib.h string.h
21032 do
21033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21035   echo "$as_me:$LINENO: checking for $ac_header" >&5
21036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21038   echo $ECHO_N "(cached) $ECHO_C" >&6
21039 fi
21040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21042 else
21043   # Is the header compilable?
21044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21046 cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h.  */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h.  */
21052 $ac_includes_default
21053 #include <$ac_header>
21054 _ACEOF
21055 rm -f conftest.$ac_objext
21056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21057   (eval $ac_compile) 2>conftest.er1
21058   ac_status=$?
21059   grep -v '^ *+' conftest.er1 >conftest.err
21060   rm -f conftest.er1
21061   cat conftest.err >&5
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); } &&
21064          { ac_try='test -z "$ac_c_werror_flag"
21065                          || test ! -s conftest.err'
21066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067   (eval $ac_try) 2>&5
21068   ac_status=$?
21069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070   (exit $ac_status); }; } &&
21071          { ac_try='test -s conftest.$ac_objext'
21072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073   (eval $ac_try) 2>&5
21074   ac_status=$?
21075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076   (exit $ac_status); }; }; then
21077   ac_header_compiler=yes
21078 else
21079   echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21081
21082 ac_header_compiler=no
21083 fi
21084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21086 echo "${ECHO_T}$ac_header_compiler" >&6
21087
21088 # Is the header present?
21089 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21091 cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h.  */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h.  */
21097 #include <$ac_header>
21098 _ACEOF
21099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21100   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21101   ac_status=$?
21102   grep -v '^ *+' conftest.er1 >conftest.err
21103   rm -f conftest.er1
21104   cat conftest.err >&5
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); } >/dev/null; then
21107   if test -s conftest.err; then
21108     ac_cpp_err=$ac_c_preproc_warn_flag
21109     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21110   else
21111     ac_cpp_err=
21112   fi
21113 else
21114   ac_cpp_err=yes
21115 fi
21116 if test -z "$ac_cpp_err"; then
21117   ac_header_preproc=yes
21118 else
21119   echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21121
21122   ac_header_preproc=no
21123 fi
21124 rm -f conftest.err conftest.$ac_ext
21125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21126 echo "${ECHO_T}$ac_header_preproc" >&6
21127
21128 # So?  What about this header?
21129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21130   yes:no: )
21131     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21135     ac_header_preproc=yes
21136     ;;
21137   no:yes:* )
21138     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21140     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21141 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21142     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21144     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21145 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21148     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21150     (
21151       cat <<\_ASBOX
21152 ## ---------------------------------------- ##
21153 ## Report this to the libjpeg-turbo lists.  ##
21154 ## ---------------------------------------- ##
21155 _ASBOX
21156     ) |
21157       sed "s/^/$as_me: WARNING:     /" >&2
21158     ;;
21159 esac
21160 echo "$as_me:$LINENO: checking for $ac_header" >&5
21161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21163   echo $ECHO_N "(cached) $ECHO_C" >&6
21164 else
21165   eval "$as_ac_Header=\$ac_header_preproc"
21166 fi
21167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21169
21170 fi
21171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21172   cat >>confdefs.h <<_ACEOF
21173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21174 _ACEOF
21175
21176 fi
21177
21178 done
21179
21180 if test "${ac_cv_header_sys_types_h+set}" = set; then
21181   echo "$as_me:$LINENO: checking for sys/types.h" >&5
21182 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
21183 if test "${ac_cv_header_sys_types_h+set}" = set; then
21184   echo $ECHO_N "(cached) $ECHO_C" >&6
21185 fi
21186 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
21187 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
21188 else
21189   # Is the header compilable?
21190 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
21191 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
21192 cat >conftest.$ac_ext <<_ACEOF
21193 /* confdefs.h.  */
21194 _ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h.  */
21198 $ac_includes_default
21199 #include <sys/types.h>
21200 _ACEOF
21201 rm -f conftest.$ac_objext
21202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21203   (eval $ac_compile) 2>conftest.er1
21204   ac_status=$?
21205   grep -v '^ *+' conftest.er1 >conftest.err
21206   rm -f conftest.er1
21207   cat conftest.err >&5
21208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209   (exit $ac_status); } &&
21210          { ac_try='test -z "$ac_c_werror_flag"
21211                          || test ! -s conftest.err'
21212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213   (eval $ac_try) 2>&5
21214   ac_status=$?
21215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216   (exit $ac_status); }; } &&
21217          { ac_try='test -s conftest.$ac_objext'
21218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219   (eval $ac_try) 2>&5
21220   ac_status=$?
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); }; }; then
21223   ac_header_compiler=yes
21224 else
21225   echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21227
21228 ac_header_compiler=no
21229 fi
21230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21231 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21232 echo "${ECHO_T}$ac_header_compiler" >&6
21233
21234 # Is the header present?
21235 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
21236 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
21237 cat >conftest.$ac_ext <<_ACEOF
21238 /* confdefs.h.  */
21239 _ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h.  */
21243 #include <sys/types.h>
21244 _ACEOF
21245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21246   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21247   ac_status=$?
21248   grep -v '^ *+' conftest.er1 >conftest.err
21249   rm -f conftest.er1
21250   cat conftest.err >&5
21251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); } >/dev/null; then
21253   if test -s conftest.err; then
21254     ac_cpp_err=$ac_c_preproc_warn_flag
21255     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21256   else
21257     ac_cpp_err=
21258   fi
21259 else
21260   ac_cpp_err=yes
21261 fi
21262 if test -z "$ac_cpp_err"; then
21263   ac_header_preproc=yes
21264 else
21265   echo "$as_me: failed program was:" >&5
21266 sed 's/^/| /' conftest.$ac_ext >&5
21267
21268   ac_header_preproc=no
21269 fi
21270 rm -f conftest.err conftest.$ac_ext
21271 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21272 echo "${ECHO_T}$ac_header_preproc" >&6
21273
21274 # So?  What about this header?
21275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21276   yes:no: )
21277     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
21278 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21279     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
21280 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
21281     ac_header_preproc=yes
21282     ;;
21283   no:yes:* )
21284     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
21285 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
21286     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
21287 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
21288     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
21289 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
21290     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
21291 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21292     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
21293 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
21294     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
21295 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
21296     (
21297       cat <<\_ASBOX
21298 ## ---------------------------------------- ##
21299 ## Report this to the libjpeg-turbo lists.  ##
21300 ## ---------------------------------------- ##
21301 _ASBOX
21302     ) |
21303       sed "s/^/$as_me: WARNING:     /" >&2
21304     ;;
21305 esac
21306 echo "$as_me:$LINENO: checking for sys/types.h" >&5
21307 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
21308 if test "${ac_cv_header_sys_types_h+set}" = set; then
21309   echo $ECHO_N "(cached) $ECHO_C" >&6
21310 else
21311   ac_cv_header_sys_types_h=$ac_header_preproc
21312 fi
21313 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
21314 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
21315
21316 fi
21317 if test $ac_cv_header_sys_types_h = yes; then
21318
21319 cat >>confdefs.h <<\_ACEOF
21320 #define NEED_SYS_TYPES_H 1
21321 _ACEOF
21322
21323 fi
21324
21325
21326
21327 # Checks for typedefs, structures, and compiler characteristics.
21328 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21329 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21330 if test "${ac_cv_c_const+set}" = set; then
21331   echo $ECHO_N "(cached) $ECHO_C" >&6
21332 else
21333   cat >conftest.$ac_ext <<_ACEOF
21334 /* confdefs.h.  */
21335 _ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h.  */
21339
21340 int
21341 main ()
21342 {
21343 /* FIXME: Include the comments suggested by Paul. */
21344 #ifndef __cplusplus
21345   /* Ultrix mips cc rejects this.  */
21346   typedef int charset[2];
21347   const charset x;
21348   /* SunOS 4.1.1 cc rejects this.  */
21349   char const *const *ccp;
21350   char **p;
21351   /* NEC SVR4.0.2 mips cc rejects this.  */
21352   struct point {int x, y;};
21353   static struct point const zero = {0,0};
21354   /* AIX XL C 1.02.0.0 rejects this.
21355      It does not let you subtract one const X* pointer from another in
21356      an arm of an if-expression whose if-part is not a constant
21357      expression */
21358   const char *g = "string";
21359   ccp = &g + (g ? g-g : 0);
21360   /* HPUX 7.0 cc rejects these. */
21361   ++ccp;
21362   p = (char**) ccp;
21363   ccp = (char const *const *) p;
21364   { /* SCO 3.2v4 cc rejects this.  */
21365     char *t;
21366     char const *s = 0 ? (char *) 0 : (char const *) 0;
21367
21368     *t++ = 0;
21369   }
21370   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21371     int x[] = {25, 17};
21372     const int *foo = &x[0];
21373     ++foo;
21374   }
21375   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21376     typedef const int *iptr;
21377     iptr p = 0;
21378     ++p;
21379   }
21380   { /* AIX XL C 1.02.0.0 rejects this saying
21381        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21382     struct s { int j; const int *ap[3]; };
21383     struct s *b; b->j = 5;
21384   }
21385   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21386     const int foo = 10;
21387   }
21388 #endif
21389
21390   ;
21391   return 0;
21392 }
21393 _ACEOF
21394 rm -f conftest.$ac_objext
21395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21396   (eval $ac_compile) 2>conftest.er1
21397   ac_status=$?
21398   grep -v '^ *+' conftest.er1 >conftest.err
21399   rm -f conftest.er1
21400   cat conftest.err >&5
21401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402   (exit $ac_status); } &&
21403          { ac_try='test -z "$ac_c_werror_flag"
21404                          || test ! -s conftest.err'
21405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21406   (eval $ac_try) 2>&5
21407   ac_status=$?
21408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409   (exit $ac_status); }; } &&
21410          { ac_try='test -s conftest.$ac_objext'
21411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412   (eval $ac_try) 2>&5
21413   ac_status=$?
21414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415   (exit $ac_status); }; }; then
21416   ac_cv_c_const=yes
21417 else
21418   echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21420
21421 ac_cv_c_const=no
21422 fi
21423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21424 fi
21425 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21426 echo "${ECHO_T}$ac_cv_c_const" >&6
21427 if test $ac_cv_c_const = no; then
21428
21429 cat >>confdefs.h <<\_ACEOF
21430 #define const
21431 _ACEOF
21432
21433 fi
21434
21435
21436 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
21437 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
21438 if test "${ac_cv_c_char_unsigned+set}" = set; then
21439   echo $ECHO_N "(cached) $ECHO_C" >&6
21440 else
21441   cat >conftest.$ac_ext <<_ACEOF
21442 /* confdefs.h.  */
21443 _ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h.  */
21447 $ac_includes_default
21448 int
21449 main ()
21450 {
21451 static int test_array [1 - 2 * !(((char) -1) < 0)];
21452 test_array [0] = 0
21453
21454   ;
21455   return 0;
21456 }
21457 _ACEOF
21458 rm -f conftest.$ac_objext
21459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21460   (eval $ac_compile) 2>conftest.er1
21461   ac_status=$?
21462   grep -v '^ *+' conftest.er1 >conftest.err
21463   rm -f conftest.er1
21464   cat conftest.err >&5
21465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466   (exit $ac_status); } &&
21467          { ac_try='test -z "$ac_c_werror_flag"
21468                          || test ! -s conftest.err'
21469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470   (eval $ac_try) 2>&5
21471   ac_status=$?
21472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473   (exit $ac_status); }; } &&
21474          { ac_try='test -s conftest.$ac_objext'
21475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476   (eval $ac_try) 2>&5
21477   ac_status=$?
21478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); }; }; then
21480   ac_cv_c_char_unsigned=no
21481 else
21482   echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21484
21485 ac_cv_c_char_unsigned=yes
21486 fi
21487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21488 fi
21489 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
21490 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
21491 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21492   cat >>confdefs.h <<\_ACEOF
21493 #define __CHAR_UNSIGNED__ 1
21494 _ACEOF
21495
21496 fi
21497
21498 echo "$as_me:$LINENO: checking for inline" >&5
21499 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21500 if test "${ac_cv_c_inline+set}" = set; then
21501   echo $ECHO_N "(cached) $ECHO_C" >&6
21502 else
21503   ac_cv_c_inline=no
21504 for ac_kw in inline __inline__ __inline; do
21505   cat >conftest.$ac_ext <<_ACEOF
21506 /* confdefs.h.  */
21507 _ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h.  */
21511 #ifndef __cplusplus
21512 typedef int foo_t;
21513 static $ac_kw foo_t static_foo () {return 0; }
21514 $ac_kw foo_t foo () {return 0; }
21515 #endif
21516
21517 _ACEOF
21518 rm -f conftest.$ac_objext
21519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21520   (eval $ac_compile) 2>conftest.er1
21521   ac_status=$?
21522   grep -v '^ *+' conftest.er1 >conftest.err
21523   rm -f conftest.er1
21524   cat conftest.err >&5
21525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526   (exit $ac_status); } &&
21527          { ac_try='test -z "$ac_c_werror_flag"
21528                          || test ! -s conftest.err'
21529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21530   (eval $ac_try) 2>&5
21531   ac_status=$?
21532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533   (exit $ac_status); }; } &&
21534          { ac_try='test -s conftest.$ac_objext'
21535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536   (eval $ac_try) 2>&5
21537   ac_status=$?
21538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539   (exit $ac_status); }; }; then
21540   ac_cv_c_inline=$ac_kw; break
21541 else
21542   echo "$as_me: failed program was:" >&5
21543 sed 's/^/| /' conftest.$ac_ext >&5
21544
21545 fi
21546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21547 done
21548
21549 fi
21550 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21551 echo "${ECHO_T}$ac_cv_c_inline" >&6
21552
21553
21554 case $ac_cv_c_inline in
21555   inline | yes) ;;
21556   *)
21557     case $ac_cv_c_inline in
21558       no) ac_val=;;
21559       *) ac_val=$ac_cv_c_inline;;
21560     esac
21561     cat >>confdefs.h <<_ACEOF
21562 #ifndef __cplusplus
21563 #define inline $ac_val
21564 #endif
21565 _ACEOF
21566     ;;
21567 esac
21568
21569 echo "$as_me:$LINENO: checking for size_t" >&5
21570 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21571 if test "${ac_cv_type_size_t+set}" = set; then
21572   echo $ECHO_N "(cached) $ECHO_C" >&6
21573 else
21574   cat >conftest.$ac_ext <<_ACEOF
21575 /* confdefs.h.  */
21576 _ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h.  */
21580 $ac_includes_default
21581 int
21582 main ()
21583 {
21584 if ((size_t *) 0)
21585   return 0;
21586 if (sizeof (size_t))
21587   return 0;
21588   ;
21589   return 0;
21590 }
21591 _ACEOF
21592 rm -f conftest.$ac_objext
21593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21594   (eval $ac_compile) 2>conftest.er1
21595   ac_status=$?
21596   grep -v '^ *+' conftest.er1 >conftest.err
21597   rm -f conftest.er1
21598   cat conftest.err >&5
21599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600   (exit $ac_status); } &&
21601          { ac_try='test -z "$ac_c_werror_flag"
21602                          || test ! -s conftest.err'
21603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21604   (eval $ac_try) 2>&5
21605   ac_status=$?
21606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607   (exit $ac_status); }; } &&
21608          { ac_try='test -s conftest.$ac_objext'
21609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610   (eval $ac_try) 2>&5
21611   ac_status=$?
21612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613   (exit $ac_status); }; }; then
21614   ac_cv_type_size_t=yes
21615 else
21616   echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21618
21619 ac_cv_type_size_t=no
21620 fi
21621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21622 fi
21623 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21624 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21625 if test $ac_cv_type_size_t = yes; then
21626   :
21627 else
21628
21629 cat >>confdefs.h <<_ACEOF
21630 #define size_t unsigned
21631 _ACEOF
21632
21633 fi
21634
21635 echo "$as_me:$LINENO: checking for unsigned char" >&5
21636 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
21637 if test "${ac_cv_type_unsigned_char+set}" = set; then
21638   echo $ECHO_N "(cached) $ECHO_C" >&6
21639 else
21640   cat >conftest.$ac_ext <<_ACEOF
21641 /* confdefs.h.  */
21642 _ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h.  */
21646 $ac_includes_default
21647 int
21648 main ()
21649 {
21650 if ((unsigned char *) 0)
21651   return 0;
21652 if (sizeof (unsigned char))
21653   return 0;
21654   ;
21655   return 0;
21656 }
21657 _ACEOF
21658 rm -f conftest.$ac_objext
21659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21660   (eval $ac_compile) 2>conftest.er1
21661   ac_status=$?
21662   grep -v '^ *+' conftest.er1 >conftest.err
21663   rm -f conftest.er1
21664   cat conftest.err >&5
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); } &&
21667          { ac_try='test -z "$ac_c_werror_flag"
21668                          || test ! -s conftest.err'
21669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670   (eval $ac_try) 2>&5
21671   ac_status=$?
21672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673   (exit $ac_status); }; } &&
21674          { ac_try='test -s conftest.$ac_objext'
21675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676   (eval $ac_try) 2>&5
21677   ac_status=$?
21678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679   (exit $ac_status); }; }; then
21680   ac_cv_type_unsigned_char=yes
21681 else
21682   echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21684
21685 ac_cv_type_unsigned_char=no
21686 fi
21687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21688 fi
21689 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
21690 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6
21691 if test $ac_cv_type_unsigned_char = yes; then
21692
21693 cat >>confdefs.h <<_ACEOF
21694 #define HAVE_UNSIGNED_CHAR 1
21695 _ACEOF
21696
21697
21698 fi
21699 echo "$as_me:$LINENO: checking for unsigned short" >&5
21700 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
21701 if test "${ac_cv_type_unsigned_short+set}" = set; then
21702   echo $ECHO_N "(cached) $ECHO_C" >&6
21703 else
21704   cat >conftest.$ac_ext <<_ACEOF
21705 /* confdefs.h.  */
21706 _ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h.  */
21710 $ac_includes_default
21711 int
21712 main ()
21713 {
21714 if ((unsigned short *) 0)
21715   return 0;
21716 if (sizeof (unsigned short))
21717   return 0;
21718   ;
21719   return 0;
21720 }
21721 _ACEOF
21722 rm -f conftest.$ac_objext
21723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21724   (eval $ac_compile) 2>conftest.er1
21725   ac_status=$?
21726   grep -v '^ *+' conftest.er1 >conftest.err
21727   rm -f conftest.er1
21728   cat conftest.err >&5
21729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730   (exit $ac_status); } &&
21731          { ac_try='test -z "$ac_c_werror_flag"
21732                          || test ! -s conftest.err'
21733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734   (eval $ac_try) 2>&5
21735   ac_status=$?
21736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737   (exit $ac_status); }; } &&
21738          { ac_try='test -s conftest.$ac_objext'
21739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740   (eval $ac_try) 2>&5
21741   ac_status=$?
21742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743   (exit $ac_status); }; }; then
21744   ac_cv_type_unsigned_short=yes
21745 else
21746   echo "$as_me: failed program was:" >&5
21747 sed 's/^/| /' conftest.$ac_ext >&5
21748
21749 ac_cv_type_unsigned_short=no
21750 fi
21751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21752 fi
21753 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
21754 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
21755 if test $ac_cv_type_unsigned_short = yes; then
21756
21757 cat >>confdefs.h <<_ACEOF
21758 #define HAVE_UNSIGNED_SHORT 1
21759 _ACEOF
21760
21761
21762 fi
21763
21764
21765 echo "$as_me:$LINENO: checking if right shift is signed" >&5
21766 echo $ECHO_N "checking if right shift is signed... $ECHO_C" >&6
21767 if test "$cross_compiling" = yes; then
21768   echo "$as_me:$LINENO: result: Assuming that right shift is signed on target machine." >&5
21769 echo "${ECHO_T}Assuming that right shift is signed on target machine." >&6
21770 else
21771   cat >conftest.$ac_ext <<_ACEOF
21772 /* confdefs.h.  */
21773 _ACEOF
21774 cat confdefs.h >>conftest.$ac_ext
21775 cat >>conftest.$ac_ext <<_ACEOF
21776 /* end confdefs.h.  */
21777 #include <stdio.h>
21778    int is_shifting_signed (long arg) {
21779      long res = arg >> 4;
21780
21781      if (res == -0x7F7E80CL)
21782        return 1; /* right shift is signed */
21783
21784      /* see if unsigned-shift hack will fix it. */
21785      /* we can't just test exact value since it depends on width of long... */
21786      res |= (~0L) << (32-4);
21787      if (res == -0x7F7E80CL)
21788        return 0; /* right shift is unsigned */
21789
21790      printf("Right shift isn't acting as I expect it to.\n");
21791      printf("I fear the JPEG software will not work at all.\n\n");
21792      return 0; /* try it with unsigned anyway */
21793    }
21794    int main (void) {
21795      exit(is_shifting_signed(-0x7F7E80B1L));
21796    }
21797 _ACEOF
21798 rm -f conftest$ac_exeext
21799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21800   (eval $ac_link) 2>&5
21801   ac_status=$?
21802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21805   (eval $ac_try) 2>&5
21806   ac_status=$?
21807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808   (exit $ac_status); }; }; then
21809   echo "$as_me:$LINENO: result: no" >&5
21810 echo "${ECHO_T}no" >&6
21811
21812 cat >>confdefs.h <<\_ACEOF
21813 #define RIGHT_SHIFT_IS_UNSIGNED 1
21814 _ACEOF
21815
21816 else
21817   echo "$as_me: program exited with status $ac_status" >&5
21818 echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21820
21821 ( exit $ac_status )
21822 echo "$as_me:$LINENO: result: yes" >&5
21823 echo "${ECHO_T}yes" >&6
21824 fi
21825 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21826 fi
21827
21828 # test whether global names are unique to at least 15 chars
21829 echo "$as_me:$LINENO: checking for short external names" >&5
21830 echo $ECHO_N "checking for short external names... $ECHO_C" >&6
21831 cat >conftest.$ac_ext <<_ACEOF
21832 /* confdefs.h.  */
21833 _ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h.  */
21837 int possibly_duplicate_function () { return 0; }
21838    int possibly_dupli_function () { return 1; }
21839 int
21840 main ()
21841 {
21842
21843   ;
21844   return 0;
21845 }
21846 _ACEOF
21847 rm -f conftest.$ac_objext conftest$ac_exeext
21848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21849   (eval $ac_link) 2>conftest.er1
21850   ac_status=$?
21851   grep -v '^ *+' conftest.er1 >conftest.err
21852   rm -f conftest.er1
21853   cat conftest.err >&5
21854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855   (exit $ac_status); } &&
21856          { ac_try='test -z "$ac_c_werror_flag"
21857                          || test ! -s conftest.err'
21858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859   (eval $ac_try) 2>&5
21860   ac_status=$?
21861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862   (exit $ac_status); }; } &&
21863          { ac_try='test -s conftest$ac_exeext'
21864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21865   (eval $ac_try) 2>&5
21866   ac_status=$?
21867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868   (exit $ac_status); }; }; then
21869   echo "$as_me:$LINENO: result: ok" >&5
21870 echo "${ECHO_T}ok" >&6
21871 else
21872   echo "$as_me: failed program was:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21874
21875 echo "$as_me:$LINENO: result: short" >&5
21876 echo "${ECHO_T}short" >&6
21877
21878 cat >>confdefs.h <<\_ACEOF
21879 #define NEED_SHORT_EXTERNAL_NAMES 1
21880 _ACEOF
21881
21882 fi
21883 rm -f conftest.err conftest.$ac_objext \
21884       conftest$ac_exeext conftest.$ac_ext
21885
21886 # Checks for library functions.
21887
21888
21889 for ac_func in memset memcpy
21890 do
21891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21892 echo "$as_me:$LINENO: checking for $ac_func" >&5
21893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21894 if eval "test \"\${$as_ac_var+set}\" = set"; then
21895   echo $ECHO_N "(cached) $ECHO_C" >&6
21896 else
21897   cat >conftest.$ac_ext <<_ACEOF
21898 /* confdefs.h.  */
21899 _ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h.  */
21903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21905 #define $ac_func innocuous_$ac_func
21906
21907 /* System header to define __stub macros and hopefully few prototypes,
21908     which can conflict with char $ac_func (); below.
21909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21910     <limits.h> exists even on freestanding compilers.  */
21911
21912 #ifdef __STDC__
21913 # include <limits.h>
21914 #else
21915 # include <assert.h>
21916 #endif
21917
21918 #undef $ac_func
21919
21920 /* Override any gcc2 internal prototype to avoid an error.  */
21921 #ifdef __cplusplus
21922 extern "C"
21923 {
21924 #endif
21925 /* We use char because int might match the return type of a gcc2
21926    builtin and then its argument prototype would still apply.  */
21927 char $ac_func ();
21928 /* The GNU C library defines this for functions which it implements
21929     to always fail with ENOSYS.  Some functions are actually named
21930     something starting with __ and the normal name is an alias.  */
21931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21932 choke me
21933 #else
21934 char (*f) () = $ac_func;
21935 #endif
21936 #ifdef __cplusplus
21937 }
21938 #endif
21939
21940 int
21941 main ()
21942 {
21943 return f != $ac_func;
21944   ;
21945   return 0;
21946 }
21947 _ACEOF
21948 rm -f conftest.$ac_objext conftest$ac_exeext
21949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21950   (eval $ac_link) 2>conftest.er1
21951   ac_status=$?
21952   grep -v '^ *+' conftest.er1 >conftest.err
21953   rm -f conftest.er1
21954   cat conftest.err >&5
21955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956   (exit $ac_status); } &&
21957          { ac_try='test -z "$ac_c_werror_flag"
21958                          || test ! -s conftest.err'
21959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960   (eval $ac_try) 2>&5
21961   ac_status=$?
21962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963   (exit $ac_status); }; } &&
21964          { ac_try='test -s conftest$ac_exeext'
21965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966   (eval $ac_try) 2>&5
21967   ac_status=$?
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); }; }; then
21970   eval "$as_ac_var=yes"
21971 else
21972   echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.$ac_ext >&5
21974
21975 eval "$as_ac_var=no"
21976 fi
21977 rm -f conftest.err conftest.$ac_objext \
21978       conftest$ac_exeext conftest.$ac_ext
21979 fi
21980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21982 if test `eval echo '${'$as_ac_var'}'` = yes; then
21983   cat >>confdefs.h <<_ACEOF
21984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21985 _ACEOF
21986
21987 else
21988
21989 cat >>confdefs.h <<\_ACEOF
21990 #define NEED_BSD_STRINGS 1
21991 _ACEOF
21992
21993 fi
21994 done
21995
21996
21997 echo "$as_me:$LINENO: checking libjpeg API version" >&5
21998 echo $ECHO_N "checking libjpeg API version... $ECHO_C" >&6
21999
22000 if test "x$JPEG_LIB_VERSION" = "x"; then
22001
22002 # Check whether --with-jpeg7 or --without-jpeg7 was given.
22003 if test "${with_jpeg7+set}" = set; then
22004   withval="$with_jpeg7"
22005
22006 fi;
22007
22008 # Check whether --with-jpeg8 or --without-jpeg8 was given.
22009 if test "${with_jpeg8+set}" = set; then
22010   withval="$with_jpeg8"
22011
22012 fi;
22013   if test "x${with_jpeg8}" = "xyes"; then
22014     JPEG_LIB_VERSION=80
22015   else
22016     if test "x${with_jpeg7}" = "xyes"; then
22017       JPEG_LIB_VERSION=70
22018     else
22019       JPEG_LIB_VERSION=62
22020     fi
22021   fi
22022 fi
22023 JPEG_LIB_VERSION_DECIMAL=`expr $JPEG_LIB_VERSION / 10`.`expr $JPEG_LIB_VERSION % 10`
22024
22025 echo "$as_me:$LINENO: result: $JPEG_LIB_VERSION_DECIMAL" >&5
22026 echo "${ECHO_T}$JPEG_LIB_VERSION_DECIMAL" >&6
22027
22028 cat >>confdefs.h <<_ACEOF
22029 #define JPEG_LIB_VERSION $JPEG_LIB_VERSION
22030 _ACEOF
22031
22032
22033
22034
22035 if test "x$SO_MAJOR_VERSION" = "x"; then
22036   case "$JPEG_LIB_VERSION" in
22037     62)  SO_MAJOR_VERSION=$JPEG_LIB_VERSION ;;
22038     *)   SO_MAJOR_VERSION=`expr $JPEG_LIB_VERSION / 10` ;;
22039   esac
22040 fi
22041 if test "x$SO_MINOR_VERSION" = "x"; then
22042   case "$JPEG_LIB_VERSION" in
22043     80)  SO_MINOR_VERSION=2 ;;
22044     *)   SO_MINOR_VERSION=0 ;;
22045   esac
22046 fi
22047
22048 RPM_CONFIG_ARGS=
22049
22050 # Memory source/destination managers
22051 SO_AGE=0
22052 MEM_SRCDST_FUNCTIONS=
22053 if test "x${with_jpeg8}" != "xyes"; then
22054   echo "$as_me:$LINENO: checking whether to include in-memory source/destination managers" >&5
22055 echo $ECHO_N "checking whether to include in-memory source/destination managers... $ECHO_C" >&6
22056
22057 # Check whether --with-mem-srcdst or --without-mem-srcdst was given.
22058 if test "${with_mem_srcdst+set}" = set; then
22059   withval="$with_mem_srcdst"
22060
22061 fi;
22062   if test "x$with_mem_srcdst" != "xno"; then
22063     echo "$as_me:$LINENO: result: yes" >&5
22064 echo "${ECHO_T}yes" >&6
22065
22066 cat >>confdefs.h <<\_ACEOF
22067 #define MEM_SRCDST_SUPPORTED 1
22068 _ACEOF
22069
22070     SO_AGE=1
22071     MEM_SRCDST_FUNCTIONS="global:  jpeg_mem_dest;  jpeg_mem_src;";
22072   else
22073     echo "$as_me:$LINENO: result: no" >&5
22074 echo "${ECHO_T}no" >&6
22075     RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-mem-srcdst"
22076   fi
22077 fi
22078
22079 echo "$as_me:$LINENO: checking libjpeg shared library version" >&5
22080 echo $ECHO_N "checking libjpeg shared library version... $ECHO_C" >&6
22081 echo "$as_me:$LINENO: result: $SO_MAJOR_VERSION.$SO_AGE.$SO_MINOR_VERSION" >&5
22082 echo "${ECHO_T}$SO_MAJOR_VERSION.$SO_AGE.$SO_MINOR_VERSION" >&6
22083 LIBTOOL_CURRENT=`expr $SO_MAJOR_VERSION + $SO_AGE`
22084
22085
22086
22087
22088
22089
22090
22091 cat >>confdefs.h <<_ACEOF
22092 #define LIBJPEG_TURBO_VERSION $VERSION
22093 _ACEOF
22094
22095
22096 VERSION_SCRIPT=yes
22097 # Check whether --enable-ld-version-script or --disable-ld-version-script was given.
22098 if test "${enable_ld_version_script+set}" = set; then
22099   enableval="$enable_ld_version_script"
22100   VERSION_SCRIPT=$enableval
22101 fi;
22102
22103 echo "$as_me:$LINENO: checking whether the linker supports version scripts" >&5
22104 echo $ECHO_N "checking whether the linker supports version scripts... $ECHO_C" >&6
22105 SAVED_LDFLAGS="$LDFLAGS"
22106 LDFLAGS="$LDFLAGS -Wl,--version-script,conftest.map"
22107 cat > conftest.map <<EOF
22108 VERS_1 {
22109   global: *;
22110 };
22111 EOF
22112 cat >conftest.$ac_ext <<_ACEOF
22113 /* confdefs.h.  */
22114 _ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h.  */
22118
22119 int
22120 main ()
22121 {
22122
22123   ;
22124   return 0;
22125 }
22126 _ACEOF
22127 rm -f conftest.$ac_objext conftest$ac_exeext
22128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22129   (eval $ac_link) 2>conftest.er1
22130   ac_status=$?
22131   grep -v '^ *+' conftest.er1 >conftest.err
22132   rm -f conftest.er1
22133   cat conftest.err >&5
22134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135   (exit $ac_status); } &&
22136          { ac_try='test -z "$ac_c_werror_flag"
22137                          || test ! -s conftest.err'
22138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22139   (eval $ac_try) 2>&5
22140   ac_status=$?
22141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142   (exit $ac_status); }; } &&
22143          { ac_try='test -s conftest$ac_exeext'
22144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22145   (eval $ac_try) 2>&5
22146   ac_status=$?
22147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148   (exit $ac_status); }; }; then
22149   VERSION_SCRIPT_FLAG=-Wl,--version-script,;
22150    echo "$as_me:$LINENO: result: yes (GNU style)" >&5
22151 echo "${ECHO_T}yes (GNU style)" >&6
22152 else
22153   echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22155
22156 fi
22157 rm -f conftest.err conftest.$ac_objext \
22158       conftest$ac_exeext conftest.$ac_ext
22159 if test "x$VERSION_SCRIPT_FLAG" = "x"; then
22160   LDFLAGS="$SAVED_LDFLAGS -Wl,-M,conftest.map"
22161   cat >conftest.$ac_ext <<_ACEOF
22162 /* confdefs.h.  */
22163 _ACEOF
22164 cat confdefs.h >>conftest.$ac_ext
22165 cat >>conftest.$ac_ext <<_ACEOF
22166 /* end confdefs.h.  */
22167
22168 int
22169 main ()
22170 {
22171
22172   ;
22173   return 0;
22174 }
22175 _ACEOF
22176 rm -f conftest.$ac_objext conftest$ac_exeext
22177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22178   (eval $ac_link) 2>conftest.er1
22179   ac_status=$?
22180   grep -v '^ *+' conftest.er1 >conftest.err
22181   rm -f conftest.er1
22182   cat conftest.err >&5
22183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184   (exit $ac_status); } &&
22185          { ac_try='test -z "$ac_c_werror_flag"
22186                          || test ! -s conftest.err'
22187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22188   (eval $ac_try) 2>&5
22189   ac_status=$?
22190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191   (exit $ac_status); }; } &&
22192          { ac_try='test -s conftest$ac_exeext'
22193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194   (eval $ac_try) 2>&5
22195   ac_status=$?
22196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197   (exit $ac_status); }; }; then
22198   VERSION_SCRIPT_FLAG=-Wl,-M,;
22199      echo "$as_me:$LINENO: result: yes (Sun style)" >&5
22200 echo "${ECHO_T}yes (Sun style)" >&6
22201 else
22202   echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22204
22205 fi
22206 rm -f conftest.err conftest.$ac_objext \
22207       conftest$ac_exeext conftest.$ac_ext
22208 fi
22209 if test "x$VERSION_SCRIPT_FLAG" = "x"; then
22210   VERSION_SCRIPT=no
22211   echo "$as_me:$LINENO: result: no" >&5
22212 echo "${ECHO_T}no" >&6
22213 fi
22214 LDFLAGS="$SAVED_LDFLAGS"
22215
22216 echo "$as_me:$LINENO: checking whether to use version script when building libjpeg-turbo" >&5
22217 echo $ECHO_N "checking whether to use version script when building libjpeg-turbo... $ECHO_C" >&6
22218 echo "$as_me:$LINENO: result: $VERSION_SCRIPT" >&5
22219 echo "${ECHO_T}$VERSION_SCRIPT" >&6
22220
22221
22222
22223 if test "x$VERSION_SCRIPT" = "xyes"; then
22224   VERSION_SCRIPT_TRUE=
22225   VERSION_SCRIPT_FALSE='#'
22226 else
22227   VERSION_SCRIPT_TRUE='#'
22228   VERSION_SCRIPT_FALSE=
22229 fi
22230
22231
22232
22233 # Check for non-broken inline under various spellings
22234 echo "$as_me:$LINENO: checking for inline" >&5
22235 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22236 ljt_cv_inline=""
22237 cat >conftest.$ac_ext <<_ACEOF
22238 /* confdefs.h.  */
22239 _ACEOF
22240 cat confdefs.h >>conftest.$ac_ext
22241 cat >>conftest.$ac_ext <<_ACEOF
22242 /* end confdefs.h.  */
22243
22244 int
22245 main ()
22246 {
22247 } __attribute__((always_inline)) int foo() { return 0; }
22248 int bar() { return foo();
22249   ;
22250   return 0;
22251 }
22252 _ACEOF
22253 rm -f conftest.$ac_objext
22254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22255   (eval $ac_compile) 2>conftest.er1
22256   ac_status=$?
22257   grep -v '^ *+' conftest.er1 >conftest.err
22258   rm -f conftest.er1
22259   cat conftest.err >&5
22260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261   (exit $ac_status); } &&
22262          { ac_try='test -z "$ac_c_werror_flag"
22263                          || test ! -s conftest.err'
22264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265   (eval $ac_try) 2>&5
22266   ac_status=$?
22267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); }; } &&
22269          { ac_try='test -s conftest.$ac_objext'
22270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22271   (eval $ac_try) 2>&5
22272   ac_status=$?
22273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274   (exit $ac_status); }; }; then
22275   ljt_cv_inline="inline __attribute__((always_inline))"
22276 else
22277   echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22279
22280 cat >conftest.$ac_ext <<_ACEOF
22281 /* confdefs.h.  */
22282 _ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h.  */
22286
22287 int
22288 main ()
22289 {
22290 } __inline__ int foo() { return 0; }
22291 int bar() { return foo();
22292   ;
22293   return 0;
22294 }
22295 _ACEOF
22296 rm -f conftest.$ac_objext
22297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22298   (eval $ac_compile) 2>conftest.er1
22299   ac_status=$?
22300   grep -v '^ *+' conftest.er1 >conftest.err
22301   rm -f conftest.er1
22302   cat conftest.err >&5
22303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304   (exit $ac_status); } &&
22305          { ac_try='test -z "$ac_c_werror_flag"
22306                          || test ! -s conftest.err'
22307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308   (eval $ac_try) 2>&5
22309   ac_status=$?
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); }; } &&
22312          { ac_try='test -s conftest.$ac_objext'
22313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314   (eval $ac_try) 2>&5
22315   ac_status=$?
22316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317   (exit $ac_status); }; }; then
22318   ljt_cv_inline="__inline__"
22319 else
22320   echo "$as_me: failed program was:" >&5
22321 sed 's/^/| /' conftest.$ac_ext >&5
22322
22323 cat >conftest.$ac_ext <<_ACEOF
22324 /* confdefs.h.  */
22325 _ACEOF
22326 cat confdefs.h >>conftest.$ac_ext
22327 cat >>conftest.$ac_ext <<_ACEOF
22328 /* end confdefs.h.  */
22329
22330 int
22331 main ()
22332 {
22333 } __inline int foo() { return 0; }
22334 int bar() { return foo();
22335   ;
22336   return 0;
22337 }
22338 _ACEOF
22339 rm -f conftest.$ac_objext
22340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22341   (eval $ac_compile) 2>conftest.er1
22342   ac_status=$?
22343   grep -v '^ *+' conftest.er1 >conftest.err
22344   rm -f conftest.er1
22345   cat conftest.err >&5
22346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347   (exit $ac_status); } &&
22348          { ac_try='test -z "$ac_c_werror_flag"
22349                          || test ! -s conftest.err'
22350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22351   (eval $ac_try) 2>&5
22352   ac_status=$?
22353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354   (exit $ac_status); }; } &&
22355          { ac_try='test -s conftest.$ac_objext'
22356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22357   (eval $ac_try) 2>&5
22358   ac_status=$?
22359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360   (exit $ac_status); }; }; then
22361   ljt_cv_inline="__inline"
22362 else
22363   echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22365
22366 cat >conftest.$ac_ext <<_ACEOF
22367 /* confdefs.h.  */
22368 _ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h.  */
22372
22373 int
22374 main ()
22375 {
22376 } inline int foo() { return 0; }
22377 int bar() { return foo();
22378   ;
22379   return 0;
22380 }
22381 _ACEOF
22382 rm -f conftest.$ac_objext
22383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22384   (eval $ac_compile) 2>conftest.er1
22385   ac_status=$?
22386   grep -v '^ *+' conftest.er1 >conftest.err
22387   rm -f conftest.er1
22388   cat conftest.err >&5
22389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390   (exit $ac_status); } &&
22391          { ac_try='test -z "$ac_c_werror_flag"
22392                          || test ! -s conftest.err'
22393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394   (eval $ac_try) 2>&5
22395   ac_status=$?
22396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397   (exit $ac_status); }; } &&
22398          { ac_try='test -s conftest.$ac_objext'
22399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400   (eval $ac_try) 2>&5
22401   ac_status=$?
22402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); }; }; then
22404   ljt_cv_inline="inline"
22405 else
22406   echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22408
22409 fi
22410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22411 fi
22412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22413 fi
22414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22415 fi
22416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22417 echo "$as_me:$LINENO: result: $ljt_cv_inline" >&5
22418 echo "${ECHO_T}$ljt_cv_inline" >&6
22419
22420 cat >>confdefs.h <<_ACEOF
22421 #define INLINE $ljt_cv_inline
22422 _ACEOF
22423
22424
22425 # Arithmetic coding support
22426 echo "$as_me:$LINENO: checking whether to include arithmetic encoding support" >&5
22427 echo $ECHO_N "checking whether to include arithmetic encoding support... $ECHO_C" >&6
22428
22429 # Check whether --with-arith-enc or --without-arith-enc was given.
22430 if test "${with_arith_enc+set}" = set; then
22431   withval="$with_arith_enc"
22432
22433 fi;
22434 if test "x$with_arith_enc" = "xno"; then
22435   echo "$as_me:$LINENO: result: no" >&5
22436 echo "${ECHO_T}no" >&6
22437   RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-arith-enc"
22438 else
22439
22440 cat >>confdefs.h <<\_ACEOF
22441 #define C_ARITH_CODING_SUPPORTED 1
22442 _ACEOF
22443
22444   echo "$as_me:$LINENO: result: yes" >&5
22445 echo "${ECHO_T}yes" >&6
22446 fi
22447
22448
22449 if test "x$with_arith_enc" != "xno"; then
22450   WITH_ARITH_ENC_TRUE=
22451   WITH_ARITH_ENC_FALSE='#'
22452 else
22453   WITH_ARITH_ENC_TRUE='#'
22454   WITH_ARITH_ENC_FALSE=
22455 fi
22456
22457
22458 echo "$as_me:$LINENO: checking whether to include arithmetic decoding support" >&5
22459 echo $ECHO_N "checking whether to include arithmetic decoding support... $ECHO_C" >&6
22460
22461 # Check whether --with-arith-dec or --without-arith-dec was given.
22462 if test "${with_arith_dec+set}" = set; then
22463   withval="$with_arith_dec"
22464
22465 fi;
22466 if test "x$with_arith_dec" = "xno"; then
22467   echo "$as_me:$LINENO: result: no" >&5
22468 echo "${ECHO_T}no" >&6
22469   RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-arith-dec"
22470 else
22471
22472 cat >>confdefs.h <<\_ACEOF
22473 #define D_ARITH_CODING_SUPPORTED 1
22474 _ACEOF
22475
22476   echo "$as_me:$LINENO: result: yes" >&5
22477 echo "${ECHO_T}yes" >&6
22478 fi
22479
22480
22481 if test "x$with_arith_dec" != "xno"; then
22482   WITH_ARITH_DEC_TRUE=
22483   WITH_ARITH_DEC_FALSE='#'
22484 else
22485   WITH_ARITH_DEC_TRUE='#'
22486   WITH_ARITH_DEC_FALSE=
22487 fi
22488
22489
22490
22491
22492 if test "x$with_arith_dec" != "xno" -o "x$with_arith_enc" != "xno"; then
22493   WITH_ARITH_TRUE=
22494   WITH_ARITH_FALSE='#'
22495 else
22496   WITH_ARITH_TRUE='#'
22497   WITH_ARITH_FALSE=
22498 fi
22499
22500
22501 # TurboJPEG support
22502 echo "$as_me:$LINENO: checking whether to build TurboJPEG C wrapper" >&5
22503 echo $ECHO_N "checking whether to build TurboJPEG C wrapper... $ECHO_C" >&6
22504
22505 # Check whether --with-turbojpeg or --without-turbojpeg was given.
22506 if test "${with_turbojpeg+set}" = set; then
22507   withval="$with_turbojpeg"
22508
22509 fi;
22510 if test "x$with_turbojpeg" = "xno"; then
22511   echo "$as_me:$LINENO: result: no" >&5
22512 echo "${ECHO_T}no" >&6
22513   RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-turbojpeg"
22514 else
22515   echo "$as_me:$LINENO: result: yes" >&5
22516 echo "${ECHO_T}yes" >&6
22517 fi
22518
22519 # Java support
22520
22521 if test "x$JAVAC" = "x"; then
22522   JAVAC=javac
22523 fi
22524
22525
22526
22527
22528 if test "x$JAR" = "x"; then
22529   JAR=jar
22530 fi
22531
22532
22533 if test "x$JAVA" = "x"; then
22534   JAVA=java
22535 fi
22536
22537
22538
22539 echo "$as_me:$LINENO: checking whether to build TurboJPEG Java wrapper" >&5
22540 echo $ECHO_N "checking whether to build TurboJPEG Java wrapper... $ECHO_C" >&6
22541
22542 # Check whether --with-java or --without-java was given.
22543 if test "${with_java+set}" = set; then
22544   withval="$with_java"
22545
22546 fi;
22547 if test "x$with_turbojpeg" = "xno"; then
22548   with_java=no
22549 fi
22550
22551 WITH_JAVA=0
22552 if test "x$with_java" = "xyes"; then
22553   echo "$as_me:$LINENO: result: yes" >&5
22554 echo "${ECHO_T}yes" >&6
22555
22556   case $host_os in
22557     darwin*)
22558       DEFAULT_JNI_CFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers
22559       ;;
22560     solaris*)
22561       DEFAULT_JNI_CFLAGS='-I/usr/java/include -I/usr/java/include/solaris'
22562       ;;
22563     linux*)
22564       DEFAULT_JNI_CFLAGS='-I/usr/java/default/include -I/usr/java/default/include/linux'
22565       ;;
22566   esac
22567   if test "x$JNI_CFLAGS" = "x"; then
22568     JNI_CFLAGS=$DEFAULT_JNI_CFLAGS
22569   fi
22570
22571   SAVE_CPPFLAGS=${CPPFLAGS}
22572   CPPFLAGS="${CPPFLAGS} ${JNI_CFLAGS}"
22573
22574 for ac_header in jni.h
22575 do
22576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22578   echo "$as_me:$LINENO: checking for $ac_header" >&5
22579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22581   echo $ECHO_N "(cached) $ECHO_C" >&6
22582 fi
22583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22585 else
22586   # Is the header compilable?
22587 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22589 cat >conftest.$ac_ext <<_ACEOF
22590 /* confdefs.h.  */
22591 _ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h.  */
22595 $ac_includes_default
22596 #include <$ac_header>
22597 _ACEOF
22598 rm -f conftest.$ac_objext
22599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22600   (eval $ac_compile) 2>conftest.er1
22601   ac_status=$?
22602   grep -v '^ *+' conftest.er1 >conftest.err
22603   rm -f conftest.er1
22604   cat conftest.err >&5
22605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606   (exit $ac_status); } &&
22607          { ac_try='test -z "$ac_c_werror_flag"
22608                          || test ! -s conftest.err'
22609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610   (eval $ac_try) 2>&5
22611   ac_status=$?
22612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613   (exit $ac_status); }; } &&
22614          { ac_try='test -s conftest.$ac_objext'
22615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22616   (eval $ac_try) 2>&5
22617   ac_status=$?
22618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619   (exit $ac_status); }; }; then
22620   ac_header_compiler=yes
22621 else
22622   echo "$as_me: failed program was:" >&5
22623 sed 's/^/| /' conftest.$ac_ext >&5
22624
22625 ac_header_compiler=no
22626 fi
22627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22628 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22629 echo "${ECHO_T}$ac_header_compiler" >&6
22630
22631 # Is the header present?
22632 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22634 cat >conftest.$ac_ext <<_ACEOF
22635 /* confdefs.h.  */
22636 _ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h.  */
22640 #include <$ac_header>
22641 _ACEOF
22642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22643   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22644   ac_status=$?
22645   grep -v '^ *+' conftest.er1 >conftest.err
22646   rm -f conftest.er1
22647   cat conftest.err >&5
22648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649   (exit $ac_status); } >/dev/null; then
22650   if test -s conftest.err; then
22651     ac_cpp_err=$ac_c_preproc_warn_flag
22652     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22653   else
22654     ac_cpp_err=
22655   fi
22656 else
22657   ac_cpp_err=yes
22658 fi
22659 if test -z "$ac_cpp_err"; then
22660   ac_header_preproc=yes
22661 else
22662   echo "$as_me: failed program was:" >&5
22663 sed 's/^/| /' conftest.$ac_ext >&5
22664
22665   ac_header_preproc=no
22666 fi
22667 rm -f conftest.err conftest.$ac_ext
22668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22669 echo "${ECHO_T}$ac_header_preproc" >&6
22670
22671 # So?  What about this header?
22672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22673   yes:no: )
22674     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22676     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22677 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22678     ac_header_preproc=yes
22679     ;;
22680   no:yes:* )
22681     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22682 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22683     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22684 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22685     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22686 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22687     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22688 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22691     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22692 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22693     (
22694       cat <<\_ASBOX
22695 ## ---------------------------------------- ##
22696 ## Report this to the libjpeg-turbo lists.  ##
22697 ## ---------------------------------------- ##
22698 _ASBOX
22699     ) |
22700       sed "s/^/$as_me: WARNING:     /" >&2
22701     ;;
22702 esac
22703 echo "$as_me:$LINENO: checking for $ac_header" >&5
22704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22706   echo $ECHO_N "(cached) $ECHO_C" >&6
22707 else
22708   eval "$as_ac_Header=\$ac_header_preproc"
22709 fi
22710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22712
22713 fi
22714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22715   cat >>confdefs.h <<_ACEOF
22716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22717 _ACEOF
22718  DUMMY=1
22719 else
22720   { { echo "$as_me:$LINENO: error: Could not find JNI header file" >&5
22721 echo "$as_me: error: Could not find JNI header file" >&2;}
22722    { (exit 1); exit 1; }; }
22723 fi
22724
22725 done
22726
22727   CPPFLAGS=${SAVE_CPPFLAGS}
22728
22729
22730   RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --with-java"
22731   JAVA_RPM_CONTENTS_1='%dir %{_datadir}/classes'
22732   JAVA_RPM_CONTENTS_2=%{_datadir}/classes/turbojpeg.jar
22733   WITH_JAVA=1
22734 else
22735   echo "$as_me:$LINENO: result: no" >&5
22736 echo "${ECHO_T}no" >&6
22737 fi
22738
22739
22740 if test "x$with_java" = "xyes"; then
22741   WITH_JAVA_TRUE=
22742   WITH_JAVA_FALSE='#'
22743 else
22744   WITH_JAVA_TRUE='#'
22745   WITH_JAVA_FALSE=
22746 fi
22747
22748
22749
22750
22751
22752 # optionally force using gas-preprocessor.pl for compatibility testing
22753
22754 # Check whether --with-gas-preprocessor or --without-gas-preprocessor was given.
22755 if test "${with_gas_preprocessor+set}" = set; then
22756   withval="$with_gas_preprocessor"
22757
22758 fi;
22759 if test "x${with_gas_preprocessor}" = "xyes"; then
22760   case $host_os in
22761     darwin*)
22762       CCAS="gas-preprocessor.pl -fix-unreq $CC"
22763       ;;
22764     *)
22765       CCAS="gas-preprocessor.pl -no-fix-unreq $CC"
22766       ;;
22767   esac
22768
22769 fi
22770
22771 # SIMD is optional
22772
22773 # Check whether --with-simd or --without-simd was given.
22774 if test "${with_simd+set}" = set; then
22775   withval="$with_simd"
22776
22777 fi;
22778 if test "x${with_simd}" != "xno"; then
22779   require_simd=no
22780   if test "x${with_simd}" = "xyes"; then
22781     require_simd=yes
22782   fi
22783   # Check if we're on a supported CPU
22784   echo "$as_me:$LINENO: checking if we have SIMD optimisations for cpu type" >&5
22785 echo $ECHO_N "checking if we have SIMD optimisations for cpu type... $ECHO_C" >&6
22786   case "$host_cpu" in
22787     x86_64 | amd64)
22788       echo "$as_me:$LINENO: result: yes (x86_64)" >&5
22789 echo "${ECHO_T}yes (x86_64)" >&6
22790
22791
22792 for ac_prog in nasm nasmw yasm
22793 do
22794   # Extract the first word of "$ac_prog", so it can be a program name with args.
22795 set dummy $ac_prog; ac_word=$2
22796 echo "$as_me:$LINENO: checking for $ac_word" >&5
22797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22798 if test "${ac_cv_prog_NASM+set}" = set; then
22799   echo $ECHO_N "(cached) $ECHO_C" >&6
22800 else
22801   if test -n "$NASM"; then
22802   ac_cv_prog_NASM="$NASM" # Let the user override the test.
22803 else
22804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22805 for as_dir in $PATH
22806 do
22807   IFS=$as_save_IFS
22808   test -z "$as_dir" && as_dir=.
22809   for ac_exec_ext in '' $ac_executable_extensions; do
22810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22811     ac_cv_prog_NASM="$ac_prog"
22812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22813     break 2
22814   fi
22815 done
22816 done
22817
22818 fi
22819 fi
22820 NASM=$ac_cv_prog_NASM
22821 if test -n "$NASM"; then
22822   echo "$as_me:$LINENO: result: $NASM" >&5
22823 echo "${ECHO_T}$NASM" >&6
22824 else
22825   echo "$as_me:$LINENO: result: no" >&5
22826 echo "${ECHO_T}no" >&6
22827 fi
22828
22829   test -n "$NASM" && break
22830 done
22831
22832 test -z "$NASM" && { { echo "$as_me:$LINENO: error: no nasm (Netwide Assembler) found" >&5
22833 echo "$as_me: error: no nasm (Netwide Assembler) found" >&2;}
22834    { (exit 1); exit 1; }; }
22835
22836 echo "$as_me:$LINENO: checking for object file format of host system" >&5
22837 echo $ECHO_N "checking for object file format of host system... $ECHO_C" >&6
22838 case "$host_os" in
22839   cygwin* | mingw* | pw32* | interix*)
22840     case "$host_cpu" in
22841       x86_64)
22842         objfmt='Win64-COFF'
22843         ;;
22844       *)
22845         objfmt='Win32-COFF'
22846         ;;
22847     esac
22848   ;;
22849   msdosdjgpp* | go32*)
22850     objfmt='COFF'
22851   ;;
22852   os2-emx*)                     # not tested
22853     objfmt='MSOMF'              # obj
22854   ;;
22855   linux*coff* | linux*oldld*)
22856     objfmt='COFF'               # ???
22857   ;;
22858   linux*aout*)
22859     objfmt='a.out'
22860   ;;
22861   linux*)
22862     case "$host_cpu" in
22863       x86_64)
22864         objfmt='ELF64'
22865         ;;
22866       *)
22867         objfmt='ELF'
22868         ;;
22869     esac
22870   ;;
22871   kfreebsd* | freebsd* | netbsd* | openbsd*)
22872     if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
22873       objfmt='BSD-a.out'
22874     else
22875       case "$host_cpu" in
22876         x86_64 | amd64)
22877           objfmt='ELF64'
22878           ;;
22879         *)
22880           objfmt='ELF'
22881           ;;
22882       esac
22883     fi
22884   ;;
22885   solaris* | sunos* | sysv* | sco*)
22886     case "$host_cpu" in
22887       x86_64)
22888         objfmt='ELF64'
22889         ;;
22890       *)
22891         objfmt='ELF'
22892         ;;
22893     esac
22894   ;;
22895   darwin* | rhapsody* | nextstep* | openstep* | macos*)
22896     case "$host_cpu" in
22897       x86_64)
22898         objfmt='Mach-O64'
22899         ;;
22900       *)
22901         objfmt='Mach-O'
22902         ;;
22903     esac
22904   ;;
22905   *)
22906     objfmt='ELF ?'
22907   ;;
22908 esac
22909
22910 echo "$as_me:$LINENO: result: $objfmt" >&5
22911 echo "${ECHO_T}$objfmt" >&6
22912 if test "$objfmt" = 'ELF ?'; then
22913   objfmt='ELF'
22914   { echo "$as_me:$LINENO: WARNING: unexpected host system. assumed that the format is $objfmt." >&5
22915 echo "$as_me: WARNING: unexpected host system. assumed that the format is $objfmt." >&2;}
22916 fi
22917
22918 echo "$as_me:$LINENO: checking for object file format specifier (NAFLAGS) " >&5
22919 echo $ECHO_N "checking for object file format specifier (NAFLAGS) ... $ECHO_C" >&6
22920 case "$objfmt" in
22921   MSOMF)      NAFLAGS='-fobj -DOBJ32';;
22922   Win32-COFF) NAFLAGS='-fwin32 -DWIN32';;
22923   Win64-COFF) NAFLAGS='-fwin64 -DWIN64 -D__x86_64__';;
22924   COFF)       NAFLAGS='-fcoff -DCOFF';;
22925   a.out)      NAFLAGS='-faout -DAOUT';;
22926   BSD-a.out)  NAFLAGS='-faoutb -DAOUT';;
22927   ELF)        NAFLAGS='-felf -DELF';;
22928   ELF64)      NAFLAGS='-felf64 -DELF -D__x86_64__';;
22929   RDF)        NAFLAGS='-frdf -DRDF';;
22930   Mach-O)     NAFLAGS='-fmacho -DMACHO';;
22931   Mach-O64)   NAFLAGS='-fmacho64 -DMACHO -D__x86_64__';;
22932 esac
22933 echo "$as_me:$LINENO: result: $NAFLAGS" >&5
22934 echo "${ECHO_T}$NAFLAGS" >&6
22935
22936
22937 echo "$as_me:$LINENO: checking whether the assembler ($NASM $NAFLAGS) works" >&5
22938 echo $ECHO_N "checking whether the assembler ($NASM $NAFLAGS) works... $ECHO_C" >&6
22939 cat > conftest.asm <<EOF
22940 %line 22940 "configure"
22941         section .text
22942         global  _main,main
22943 _main:
22944 main:   xor     eax,eax
22945         ret
22946 EOF
22947 try_nasm='$NASM $NAFLAGS -o conftest.o conftest.asm'
22948 if { (eval echo "$as_me:$LINENO: \"$try_nasm\"") >&5
22949   (eval $try_nasm) 2>&5
22950   ac_status=$?
22951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952   (exit $ac_status); } && test -s conftest.o; then
22953   echo "$as_me:$LINENO: result: yes" >&5
22954 echo "${ECHO_T}yes" >&6
22955 else
22956   echo "configure: failed program was:" >&5
22957   cat conftest.asm >&5
22958   rm -rf conftest*
22959   echo "$as_me:$LINENO: result: no" >&5
22960 echo "${ECHO_T}no" >&6
22961   { { echo "$as_me:$LINENO: error: installation or configuration problem: assembler cannot create object files." >&5
22962 echo "$as_me: error: installation or configuration problem: assembler cannot create object files." >&2;}
22963    { (exit 1); exit 1; }; }
22964 fi
22965
22966 echo "$as_me:$LINENO: checking whether the linker accepts assembler output" >&5
22967 echo $ECHO_N "checking whether the linker accepts assembler output... $ECHO_C" >&6
22968 try_nasm='${CC-cc} -o conftest${ac_exeext} $LDFLAGS conftest.o $LIBS 1>&5'
22969 if { (eval echo "$as_me:$LINENO: \"$try_nasm\"") >&5
22970   (eval $try_nasm) 2>&5
22971   ac_status=$?
22972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973   (exit $ac_status); } && test -s conftest${ac_exeext}; then
22974   rm -rf conftest*
22975   echo "$as_me:$LINENO: result: yes" >&5
22976 echo "${ECHO_T}yes" >&6
22977 else
22978   rm -rf conftest*
22979   echo "$as_me:$LINENO: result: no" >&5
22980 echo "${ECHO_T}no" >&6
22981   { { echo "$as_me:$LINENO: error: configuration problem: maybe object file format mismatch." >&5
22982 echo "$as_me: error: configuration problem: maybe object file format mismatch." >&2;}
22983    { (exit 1); exit 1; }; }
22984 fi
22985
22986
22987       simd_arch=x86_64
22988       ;;
22989     i*86 | x86 | ia32)
22990       echo "$as_me:$LINENO: result: yes (i386)" >&5
22991 echo "${ECHO_T}yes (i386)" >&6
22992
22993
22994 for ac_prog in nasm nasmw yasm
22995 do
22996   # Extract the first word of "$ac_prog", so it can be a program name with args.
22997 set dummy $ac_prog; ac_word=$2
22998 echo "$as_me:$LINENO: checking for $ac_word" >&5
22999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23000 if test "${ac_cv_prog_NASM+set}" = set; then
23001   echo $ECHO_N "(cached) $ECHO_C" >&6
23002 else
23003   if test -n "$NASM"; then
23004   ac_cv_prog_NASM="$NASM" # Let the user override the test.
23005 else
23006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23007 for as_dir in $PATH
23008 do
23009   IFS=$as_save_IFS
23010   test -z "$as_dir" && as_dir=.
23011   for ac_exec_ext in '' $ac_executable_extensions; do
23012   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23013     ac_cv_prog_NASM="$ac_prog"
23014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23015     break 2
23016   fi
23017 done
23018 done
23019
23020 fi
23021 fi
23022 NASM=$ac_cv_prog_NASM
23023 if test -n "$NASM"; then
23024   echo "$as_me:$LINENO: result: $NASM" >&5
23025 echo "${ECHO_T}$NASM" >&6
23026 else
23027   echo "$as_me:$LINENO: result: no" >&5
23028 echo "${ECHO_T}no" >&6
23029 fi
23030
23031   test -n "$NASM" && break
23032 done
23033
23034 test -z "$NASM" && { { echo "$as_me:$LINENO: error: no nasm (Netwide Assembler) found" >&5
23035 echo "$as_me: error: no nasm (Netwide Assembler) found" >&2;}
23036    { (exit 1); exit 1; }; }
23037
23038 echo "$as_me:$LINENO: checking for object file format of host system" >&5
23039 echo $ECHO_N "checking for object file format of host system... $ECHO_C" >&6
23040 case "$host_os" in
23041   cygwin* | mingw* | pw32* | interix*)
23042     case "$host_cpu" in
23043       x86_64)
23044         objfmt='Win64-COFF'
23045         ;;
23046       *)
23047         objfmt='Win32-COFF'
23048         ;;
23049     esac
23050   ;;
23051   msdosdjgpp* | go32*)
23052     objfmt='COFF'
23053   ;;
23054   os2-emx*)                     # not tested
23055     objfmt='MSOMF'              # obj
23056   ;;
23057   linux*coff* | linux*oldld*)
23058     objfmt='COFF'               # ???
23059   ;;
23060   linux*aout*)
23061     objfmt='a.out'
23062   ;;
23063   linux*)
23064     case "$host_cpu" in
23065       x86_64)
23066         objfmt='ELF64'
23067         ;;
23068       *)
23069         objfmt='ELF'
23070         ;;
23071     esac
23072   ;;
23073   kfreebsd* | freebsd* | netbsd* | openbsd*)
23074     if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
23075       objfmt='BSD-a.out'
23076     else
23077       case "$host_cpu" in
23078         x86_64 | amd64)
23079           objfmt='ELF64'
23080           ;;
23081         *)
23082           objfmt='ELF'
23083           ;;
23084       esac
23085     fi
23086   ;;
23087   solaris* | sunos* | sysv* | sco*)
23088     case "$host_cpu" in
23089       x86_64)
23090         objfmt='ELF64'
23091         ;;
23092       *)
23093         objfmt='ELF'
23094         ;;
23095     esac
23096   ;;
23097   darwin* | rhapsody* | nextstep* | openstep* | macos*)
23098     case "$host_cpu" in
23099       x86_64)
23100         objfmt='Mach-O64'
23101         ;;
23102       *)
23103         objfmt='Mach-O'
23104         ;;
23105     esac
23106   ;;
23107   *)
23108     objfmt='ELF ?'
23109   ;;
23110 esac
23111
23112 echo "$as_me:$LINENO: result: $objfmt" >&5
23113 echo "${ECHO_T}$objfmt" >&6
23114 if test "$objfmt" = 'ELF ?'; then
23115   objfmt='ELF'
23116   { echo "$as_me:$LINENO: WARNING: unexpected host system. assumed that the format is $objfmt." >&5
23117 echo "$as_me: WARNING: unexpected host system. assumed that the format is $objfmt." >&2;}
23118 fi
23119
23120 echo "$as_me:$LINENO: checking for object file format specifier (NAFLAGS) " >&5
23121 echo $ECHO_N "checking for object file format specifier (NAFLAGS) ... $ECHO_C" >&6
23122 case "$objfmt" in
23123   MSOMF)      NAFLAGS='-fobj -DOBJ32';;
23124   Win32-COFF) NAFLAGS='-fwin32 -DWIN32';;
23125   Win64-COFF) NAFLAGS='-fwin64 -DWIN64 -D__x86_64__';;
23126   COFF)       NAFLAGS='-fcoff -DCOFF';;
23127   a.out)      NAFLAGS='-faout -DAOUT';;
23128   BSD-a.out)  NAFLAGS='-faoutb -DAOUT';;
23129   ELF)        NAFLAGS='-felf -DELF';;
23130   ELF64)      NAFLAGS='-felf64 -DELF -D__x86_64__';;
23131   RDF)        NAFLAGS='-frdf -DRDF';;
23132   Mach-O)     NAFLAGS='-fmacho -DMACHO';;
23133   Mach-O64)   NAFLAGS='-fmacho64 -DMACHO -D__x86_64__';;
23134 esac
23135 echo "$as_me:$LINENO: result: $NAFLAGS" >&5
23136 echo "${ECHO_T}$NAFLAGS" >&6
23137
23138
23139 echo "$as_me:$LINENO: checking whether the assembler ($NASM $NAFLAGS) works" >&5
23140 echo $ECHO_N "checking whether the assembler ($NASM $NAFLAGS) works... $ECHO_C" >&6
23141 cat > conftest.asm <<EOF
23142 %line 23142 "configure"
23143         section .text
23144         global  _main,main
23145 _main:
23146 main:   xor     eax,eax
23147         ret
23148 EOF
23149 try_nasm='$NASM $NAFLAGS -o conftest.o conftest.asm'
23150 if { (eval echo "$as_me:$LINENO: \"$try_nasm\"") >&5
23151   (eval $try_nasm) 2>&5
23152   ac_status=$?
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); } && test -s conftest.o; then
23155   echo "$as_me:$LINENO: result: yes" >&5
23156 echo "${ECHO_T}yes" >&6
23157 else
23158   echo "configure: failed program was:" >&5
23159   cat conftest.asm >&5
23160   rm -rf conftest*
23161   echo "$as_me:$LINENO: result: no" >&5
23162 echo "${ECHO_T}no" >&6
23163   { { echo "$as_me:$LINENO: error: installation or configuration problem: assembler cannot create object files." >&5
23164 echo "$as_me: error: installation or configuration problem: assembler cannot create object files." >&2;}
23165    { (exit 1); exit 1; }; }
23166 fi
23167
23168 echo "$as_me:$LINENO: checking whether the linker accepts assembler output" >&5
23169 echo $ECHO_N "checking whether the linker accepts assembler output... $ECHO_C" >&6
23170 try_nasm='${CC-cc} -o conftest${ac_exeext} $LDFLAGS conftest.o $LIBS 1>&5'
23171 if { (eval echo "$as_me:$LINENO: \"$try_nasm\"") >&5
23172   (eval $try_nasm) 2>&5
23173   ac_status=$?
23174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175   (exit $ac_status); } && test -s conftest${ac_exeext}; then
23176   rm -rf conftest*
23177   echo "$as_me:$LINENO: result: yes" >&5
23178 echo "${ECHO_T}yes" >&6
23179 else
23180   rm -rf conftest*
23181   echo "$as_me:$LINENO: result: no" >&5
23182 echo "${ECHO_T}no" >&6
23183   { { echo "$as_me:$LINENO: error: configuration problem: maybe object file format mismatch." >&5
23184 echo "$as_me: error: configuration problem: maybe object file format mismatch." >&2;}
23185    { (exit 1); exit 1; }; }
23186 fi
23187
23188
23189       simd_arch=i386
23190       ;;
23191     arm*)
23192       echo "$as_me:$LINENO: result: yes (arm)" >&5
23193 echo "${ECHO_T}yes (arm)" >&6
23194       echo "$as_me:$LINENO: checking if the assembler is GNU-compatible and can be used" >&5
23195 echo $ECHO_N "checking if the assembler is GNU-compatible and can be used... $ECHO_C" >&6
23196
23197   ac_good_gnu_arm_assembler=no
23198   ac_save_CC="$CC"
23199   ac_save_CFLAGS="$CFLAGS"
23200   CFLAGS="$CCASFLAGS -x assembler-with-cpp"
23201   CC="$CCAS"
23202   cat >conftest.$ac_ext <<_ACEOF
23203 /* confdefs.h.  */
23204 _ACEOF
23205 cat confdefs.h >>conftest.$ac_ext
23206 cat >>conftest.$ac_ext <<_ACEOF
23207 /* end confdefs.h.  */
23208
23209     .text
23210     .fpu neon
23211     .arch armv7a
23212     .object_arch armv4
23213     .arm
23214     pld [r0]
23215     vmovn.u16 d0, q0
23216 _ACEOF
23217 rm -f conftest.$ac_objext
23218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23219   (eval $ac_compile) 2>conftest.er1
23220   ac_status=$?
23221   grep -v '^ *+' conftest.er1 >conftest.err
23222   rm -f conftest.er1
23223   cat conftest.err >&5
23224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225   (exit $ac_status); } &&
23226          { ac_try='test -z "$ac_c_werror_flag"
23227                          || test ! -s conftest.err'
23228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23229   (eval $ac_try) 2>&5
23230   ac_status=$?
23231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232   (exit $ac_status); }; } &&
23233          { ac_try='test -s conftest.$ac_objext'
23234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23235   (eval $ac_try) 2>&5
23236   ac_status=$?
23237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238   (exit $ac_status); }; }; then
23239   ac_good_gnu_arm_assembler=yes
23240 else
23241   echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23243
23244 fi
23245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23246
23247   ac_use_gas_preprocessor=no
23248   if test "x$ac_good_gnu_arm_assembler" = "xno" ; then
23249     CC="gas-preprocessor.pl $CCAS"
23250     cat >conftest.$ac_ext <<_ACEOF
23251 /* confdefs.h.  */
23252 _ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h.  */
23256
23257       .text
23258       .fpu neon
23259       .arch armv7a
23260       .object_arch armv4
23261       .arm
23262       pld [r0]
23263       vmovn.u16 d0, q0
23264 _ACEOF
23265 rm -f conftest.$ac_objext
23266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23267   (eval $ac_compile) 2>conftest.er1
23268   ac_status=$?
23269   grep -v '^ *+' conftest.er1 >conftest.err
23270   rm -f conftest.er1
23271   cat conftest.err >&5
23272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273   (exit $ac_status); } &&
23274          { ac_try='test -z "$ac_c_werror_flag"
23275                          || test ! -s conftest.err'
23276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277   (eval $ac_try) 2>&5
23278   ac_status=$?
23279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280   (exit $ac_status); }; } &&
23281          { ac_try='test -s conftest.$ac_objext'
23282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283   (eval $ac_try) 2>&5
23284   ac_status=$?
23285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286   (exit $ac_status); }; }; then
23287   ac_use_gas_preprocessor=yes
23288 else
23289   echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23291
23292 fi
23293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23294   fi
23295   CFLAGS="$ac_save_CFLAGS"
23296   CC="$ac_save_CC"
23297
23298   if test "x$ac_use_gas_preprocessor" = "xyes" ; then
23299     CCAS="gas-preprocessor.pl $CCAS"
23300
23301     ac_good_gnu_arm_assembler=yes
23302   fi
23303
23304   if test "x$ac_good_gnu_arm_assembler" = "xyes" ; then
23305     echo "$as_me:$LINENO: result: yes" >&5
23306 echo "${ECHO_T}yes" >&6
23307          simd_arch=arm
23308   else
23309     echo "$as_me:$LINENO: result: no" >&5
23310 echo "${ECHO_T}no" >&6
23311          with_simd=no
23312   fi
23313
23314       if test "x${with_simd}" = "xno"; then
23315         if test "x${require_simd}" = "xyes"; then
23316           { { echo "$as_me:$LINENO: error: SIMD support can't be enabled." >&5
23317 echo "$as_me: error: SIMD support can't be enabled." >&2;}
23318    { (exit 1); exit 1; }; }
23319         else
23320           { echo "$as_me:$LINENO: WARNING: SIMD support can't be enabled.  Performance will suffer." >&5
23321 echo "$as_me: WARNING: SIMD support can't be enabled.  Performance will suffer." >&2;}
23322         fi
23323       fi
23324       ;;
23325     *)
23326       echo "$as_me:$LINENO: result: no (\"$host_cpu\")" >&5
23327 echo "${ECHO_T}no (\"$host_cpu\")" >&6
23328       with_simd=no;
23329       if test "x${require_simd}" = "xyes"; then
23330         { { echo "$as_me:$LINENO: error: SIMD support not available for this CPU." >&5
23331 echo "$as_me: error: SIMD support not available for this CPU." >&2;}
23332    { (exit 1); exit 1; }; }
23333       else
23334         { echo "$as_me:$LINENO: WARNING: SIMD support not available for this CPU.  Performance will suffer." >&5
23335 echo "$as_me: WARNING: SIMD support not available for this CPU.  Performance will suffer." >&2;}
23336       fi
23337       ;;
23338   esac
23339
23340   if test "x${with_simd}" != "xno"; then
23341
23342 cat >>confdefs.h <<\_ACEOF
23343 #define WITH_SIMD 1
23344 _ACEOF
23345
23346   fi
23347 else
23348   RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-simd"
23349 fi
23350
23351
23352
23353 if test "x$with_simd" != "xno"; then
23354   WITH_SIMD_TRUE=
23355   WITH_SIMD_FALSE='#'
23356 else
23357   WITH_SIMD_TRUE='#'
23358   WITH_SIMD_FALSE=
23359 fi
23360
23361
23362
23363 if test "x$simd_arch" = "xx86_64" -o "x$simd_arch" = "xi386"; then
23364   WITH_SSE_FLOAT_DCT_TRUE=
23365   WITH_SSE_FLOAT_DCT_FALSE='#'
23366 else
23367   WITH_SSE_FLOAT_DCT_TRUE='#'
23368   WITH_SSE_FLOAT_DCT_FALSE=
23369 fi
23370
23371
23372
23373 if test "x$simd_arch" = "xi386"; then
23374   SIMD_I386_TRUE=
23375   SIMD_I386_FALSE='#'
23376 else
23377   SIMD_I386_TRUE='#'
23378   SIMD_I386_FALSE=
23379 fi
23380
23381
23382
23383 if test "x$simd_arch" = "xx86_64"; then
23384   SIMD_X86_64_TRUE=
23385   SIMD_X86_64_FALSE='#'
23386 else
23387   SIMD_X86_64_TRUE='#'
23388   SIMD_X86_64_FALSE=
23389 fi
23390
23391
23392
23393 if test "x$simd_arch" = "xarm"; then
23394   SIMD_ARM_TRUE=
23395   SIMD_ARM_FALSE='#'
23396 else
23397   SIMD_ARM_TRUE='#'
23398   SIMD_ARM_FALSE=
23399 fi
23400
23401
23402
23403 if test "x$host_cpu" = "xx86_64" -o "x$host_cpu" = "xamd64"; then
23404   X86_64_TRUE=
23405   X86_64_FALSE='#'
23406 else
23407   X86_64_TRUE='#'
23408   X86_64_FALSE=
23409 fi
23410
23411
23412
23413 if test "x$with_turbojpeg" != "xno"; then
23414   WITH_TURBOJPEG_TRUE=
23415   WITH_TURBOJPEG_FALSE='#'
23416 else
23417   WITH_TURBOJPEG_TRUE='#'
23418   WITH_TURBOJPEG_FALSE=
23419 fi
23420
23421
23422
23423 if test "x$PKGNAME" = "x"; then
23424   PKGNAME=$PACKAGE_NAME
23425 fi
23426
23427
23428 case "$host_cpu" in
23429   x86_64)
23430     RPMARCH=x86_64
23431     DEBARCH=amd64
23432     ;;
23433   i*86 | x86 | ia32)
23434     RPMARCH=i386
23435     DEBARCH=i386
23436     ;;
23437 esac
23438
23439
23440
23441
23442
23443
23444 cat >>confdefs.h <<_ACEOF
23445 #define BUILD "$BUILD"
23446 _ACEOF
23447
23448
23449 # jconfig.h is the file we use, but we have another before that to
23450 # fool autoheader. the reason is that we include this header in our
23451 # API headers, which can screw things up for users of the lib.
23452 # jconfig.h is a minimal version that allows this package to be built
23453           ac_config_headers="$ac_config_headers config.h"
23454
23455           ac_config_headers="$ac_config_headers jconfig.h"
23456
23457           ac_config_files="$ac_config_files pkgscripts/libjpeg-turbo.spec.tmpl:release/libjpeg-turbo.spec.in"
23458
23459           ac_config_files="$ac_config_files pkgscripts/makecygwinpkg.tmpl:release/makecygwinpkg.in"
23460
23461           ac_config_files="$ac_config_files pkgscripts/makedpkg.tmpl:release/makedpkg.in"
23462
23463           ac_config_files="$ac_config_files pkgscripts/makemacpkg.tmpl:release/makemacpkg.in"
23464
23465           ac_config_files="$ac_config_files pkgscripts/Description.plist:release/Description.plist.in"
23466
23467           ac_config_files="$ac_config_files pkgscripts/Info.plist:release/Info.plist.in"
23468
23469           ac_config_files="$ac_config_files pkgscripts/uninstall.tmpl:release/uninstall.in"
23470
23471 if test "x$with_turbojpeg" != "xno"; then
23472             ac_config_files="$ac_config_files tjbenchtest"
23473
23474 fi
23475 if test "x$with_java" = "xyes"; then
23476             ac_config_files="$ac_config_files tjbenchtest.java"
23477
23478             ac_config_files="$ac_config_files tjexampletest"
23479
23480 fi
23481           ac_config_files="$ac_config_files libjpeg.map"
23482
23483                     ac_config_files="$ac_config_files Makefile simd/Makefile"
23484
23485           ac_config_files="$ac_config_files java/Makefile"
23486
23487           ac_config_files="$ac_config_files md5/Makefile"
23488
23489 cat >confcache <<\_ACEOF
23490 # This file is a shell script that caches the results of configure
23491 # tests run on this system so they can be shared between configure
23492 # scripts and configure runs, see configure's option --config-cache.
23493 # It is not useful on other systems.  If it contains results you don't
23494 # want to keep, you may remove or edit it.
23495 #
23496 # config.status only pays attention to the cache file if you give it
23497 # the --recheck option to rerun configure.
23498 #
23499 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23500 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23501 # following values.
23502
23503 _ACEOF
23504
23505 # The following way of writing the cache mishandles newlines in values,
23506 # but we know of no workaround that is simple, portable, and efficient.
23507 # So, don't put newlines in cache variables' values.
23508 # Ultrix sh set writes to stderr and can't be redirected directly,
23509 # and sets the high bit in the cache file unless we assign to the vars.
23510 {
23511   (set) 2>&1 |
23512     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23513     *ac_space=\ *)
23514       # `set' does not quote correctly, so add quotes (double-quote
23515       # substitution turns \\\\ into \\, and sed turns \\ into \).
23516       sed -n \
23517         "s/'/'\\\\''/g;
23518           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23519       ;;
23520     *)
23521       # `set' quotes correctly as required by POSIX, so do not add quotes.
23522       sed -n \
23523         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23524       ;;
23525     esac;
23526 } |
23527   sed '
23528      t clear
23529      : clear
23530      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23531      t end
23532      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23533      : end' >>confcache
23534 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23535   if test -w $cache_file; then
23536     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23537     cat confcache >$cache_file
23538   else
23539     echo "not updating unwritable cache $cache_file"
23540   fi
23541 fi
23542 rm -f confcache
23543
23544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23545 # Let make expand exec_prefix.
23546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23547
23548 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23549 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23550 # trailing colons and then remove the whole line if VPATH becomes empty
23551 # (actually we leave an empty line to preserve line numbers).
23552 if test "x$srcdir" = x.; then
23553   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23554 s/:*\$(srcdir):*/:/;
23555 s/:*\${srcdir}:*/:/;
23556 s/:*@srcdir@:*/:/;
23557 s/^\([^=]*=[     ]*\):*/\1/;
23558 s/:*$//;
23559 s/^[^=]*=[       ]*$//;
23560 }'
23561 fi
23562
23563 DEFS=-DHAVE_CONFIG_H
23564
23565 ac_libobjs=
23566 ac_ltlibobjs=
23567 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23568   # 1. Remove the extension, and $U if already installed.
23569   ac_i=`echo "$ac_i" |
23570          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23571   # 2. Add them.
23572   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23573   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23574 done
23575 LIBOBJS=$ac_libobjs
23576
23577 LTLIBOBJS=$ac_ltlibobjs
23578
23579
23580 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23581   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23582 Usually this means the macro was only invoked conditionally." >&5
23583 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23584 Usually this means the macro was only invoked conditionally." >&2;}
23585    { (exit 1); exit 1; }; }
23586 fi
23587 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23588   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23589 Usually this means the macro was only invoked conditionally." >&5
23590 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23591 Usually this means the macro was only invoked conditionally." >&2;}
23592    { (exit 1); exit 1; }; }
23593 fi
23594 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23595   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23596 Usually this means the macro was only invoked conditionally." >&5
23597 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23598 Usually this means the macro was only invoked conditionally." >&2;}
23599    { (exit 1); exit 1; }; }
23600 fi
23601 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23602   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23603 Usually this means the macro was only invoked conditionally." >&5
23604 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23605 Usually this means the macro was only invoked conditionally." >&2;}
23606    { (exit 1); exit 1; }; }
23607 fi
23608 if test -z "${VERSION_SCRIPT_TRUE}" && test -z "${VERSION_SCRIPT_FALSE}"; then
23609   { { echo "$as_me:$LINENO: error: conditional \"VERSION_SCRIPT\" was never defined.
23610 Usually this means the macro was only invoked conditionally." >&5
23611 echo "$as_me: error: conditional \"VERSION_SCRIPT\" was never defined.
23612 Usually this means the macro was only invoked conditionally." >&2;}
23613    { (exit 1); exit 1; }; }
23614 fi
23615 if test -z "${WITH_ARITH_ENC_TRUE}" && test -z "${WITH_ARITH_ENC_FALSE}"; then
23616   { { echo "$as_me:$LINENO: error: conditional \"WITH_ARITH_ENC\" was never defined.
23617 Usually this means the macro was only invoked conditionally." >&5
23618 echo "$as_me: error: conditional \"WITH_ARITH_ENC\" was never defined.
23619 Usually this means the macro was only invoked conditionally." >&2;}
23620    { (exit 1); exit 1; }; }
23621 fi
23622 if test -z "${WITH_ARITH_DEC_TRUE}" && test -z "${WITH_ARITH_DEC_FALSE}"; then
23623   { { echo "$as_me:$LINENO: error: conditional \"WITH_ARITH_DEC\" was never defined.
23624 Usually this means the macro was only invoked conditionally." >&5
23625 echo "$as_me: error: conditional \"WITH_ARITH_DEC\" was never defined.
23626 Usually this means the macro was only invoked conditionally." >&2;}
23627    { (exit 1); exit 1; }; }
23628 fi
23629 if test -z "${WITH_ARITH_TRUE}" && test -z "${WITH_ARITH_FALSE}"; then
23630   { { echo "$as_me:$LINENO: error: conditional \"WITH_ARITH\" was never defined.
23631 Usually this means the macro was only invoked conditionally." >&5
23632 echo "$as_me: error: conditional \"WITH_ARITH\" was never defined.
23633 Usually this means the macro was only invoked conditionally." >&2;}
23634    { (exit 1); exit 1; }; }
23635 fi
23636 if test -z "${WITH_JAVA_TRUE}" && test -z "${WITH_JAVA_FALSE}"; then
23637   { { echo "$as_me:$LINENO: error: conditional \"WITH_JAVA\" was never defined.
23638 Usually this means the macro was only invoked conditionally." >&5
23639 echo "$as_me: error: conditional \"WITH_JAVA\" was never defined.
23640 Usually this means the macro was only invoked conditionally." >&2;}
23641    { (exit 1); exit 1; }; }
23642 fi
23643 if test -z "${WITH_SIMD_TRUE}" && test -z "${WITH_SIMD_FALSE}"; then
23644   { { echo "$as_me:$LINENO: error: conditional \"WITH_SIMD\" was never defined.
23645 Usually this means the macro was only invoked conditionally." >&5
23646 echo "$as_me: error: conditional \"WITH_SIMD\" was never defined.
23647 Usually this means the macro was only invoked conditionally." >&2;}
23648    { (exit 1); exit 1; }; }
23649 fi
23650 if test -z "${WITH_SSE_FLOAT_DCT_TRUE}" && test -z "${WITH_SSE_FLOAT_DCT_FALSE}"; then
23651   { { echo "$as_me:$LINENO: error: conditional \"WITH_SSE_FLOAT_DCT\" was never defined.
23652 Usually this means the macro was only invoked conditionally." >&5
23653 echo "$as_me: error: conditional \"WITH_SSE_FLOAT_DCT\" was never defined.
23654 Usually this means the macro was only invoked conditionally." >&2;}
23655    { (exit 1); exit 1; }; }
23656 fi
23657 if test -z "${SIMD_I386_TRUE}" && test -z "${SIMD_I386_FALSE}"; then
23658   { { echo "$as_me:$LINENO: error: conditional \"SIMD_I386\" was never defined.
23659 Usually this means the macro was only invoked conditionally." >&5
23660 echo "$as_me: error: conditional \"SIMD_I386\" was never defined.
23661 Usually this means the macro was only invoked conditionally." >&2;}
23662    { (exit 1); exit 1; }; }
23663 fi
23664 if test -z "${SIMD_X86_64_TRUE}" && test -z "${SIMD_X86_64_FALSE}"; then
23665   { { echo "$as_me:$LINENO: error: conditional \"SIMD_X86_64\" was never defined.
23666 Usually this means the macro was only invoked conditionally." >&5
23667 echo "$as_me: error: conditional \"SIMD_X86_64\" was never defined.
23668 Usually this means the macro was only invoked conditionally." >&2;}
23669    { (exit 1); exit 1; }; }
23670 fi
23671 if test -z "${SIMD_ARM_TRUE}" && test -z "${SIMD_ARM_FALSE}"; then
23672   { { echo "$as_me:$LINENO: error: conditional \"SIMD_ARM\" was never defined.
23673 Usually this means the macro was only invoked conditionally." >&5
23674 echo "$as_me: error: conditional \"SIMD_ARM\" was never defined.
23675 Usually this means the macro was only invoked conditionally." >&2;}
23676    { (exit 1); exit 1; }; }
23677 fi
23678 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
23679   { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
23680 Usually this means the macro was only invoked conditionally." >&5
23681 echo "$as_me: error: conditional \"X86_64\" was never defined.
23682 Usually this means the macro was only invoked conditionally." >&2;}
23683    { (exit 1); exit 1; }; }
23684 fi
23685 if test -z "${WITH_TURBOJPEG_TRUE}" && test -z "${WITH_TURBOJPEG_FALSE}"; then
23686   { { echo "$as_me:$LINENO: error: conditional \"WITH_TURBOJPEG\" was never defined.
23687 Usually this means the macro was only invoked conditionally." >&5
23688 echo "$as_me: error: conditional \"WITH_TURBOJPEG\" was never defined.
23689 Usually this means the macro was only invoked conditionally." >&2;}
23690    { (exit 1); exit 1; }; }
23691 fi
23692
23693 : ${CONFIG_STATUS=./config.status}
23694 ac_clean_files_save=$ac_clean_files
23695 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23696 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23697 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23698 cat >$CONFIG_STATUS <<_ACEOF
23699 #! $SHELL
23700 # Generated by $as_me.
23701 # Run this file to recreate the current configuration.
23702 # Compiler output produced by configure, useful for debugging
23703 # configure, is in config.log if it exists.
23704
23705 debug=false
23706 ac_cs_recheck=false
23707 ac_cs_silent=false
23708 SHELL=\${CONFIG_SHELL-$SHELL}
23709 _ACEOF
23710
23711 cat >>$CONFIG_STATUS <<\_ACEOF
23712 ## --------------------- ##
23713 ## M4sh Initialization.  ##
23714 ## --------------------- ##
23715
23716 # Be Bourne compatible
23717 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23718   emulate sh
23719   NULLCMD=:
23720   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23721   # is contrary to our usage.  Disable this feature.
23722   alias -g '${1+"$@"}'='"$@"'
23723 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23724   set -o posix
23725 fi
23726 DUALCASE=1; export DUALCASE # for MKS sh
23727
23728 # Support unset when possible.
23729 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23730   as_unset=unset
23731 else
23732   as_unset=false
23733 fi
23734
23735
23736 # Work around bugs in pre-3.0 UWIN ksh.
23737 $as_unset ENV MAIL MAILPATH
23738 PS1='$ '
23739 PS2='> '
23740 PS4='+ '
23741
23742 # NLS nuisances.
23743 for as_var in \
23744   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23745   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23746   LC_TELEPHONE LC_TIME
23747 do
23748   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23749     eval $as_var=C; export $as_var
23750   else
23751     $as_unset $as_var
23752   fi
23753 done
23754
23755 # Required to use basename.
23756 if expr a : '\(a\)' >/dev/null 2>&1; then
23757   as_expr=expr
23758 else
23759   as_expr=false
23760 fi
23761
23762 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23763   as_basename=basename
23764 else
23765   as_basename=false
23766 fi
23767
23768
23769 # Name of the executable.
23770 as_me=`$as_basename "$0" ||
23771 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23772          X"$0" : 'X\(//\)$' \| \
23773          X"$0" : 'X\(/\)$' \| \
23774          .     : '\(.\)' 2>/dev/null ||
23775 echo X/"$0" |
23776     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23777           /^X\/\(\/\/\)$/{ s//\1/; q; }
23778           /^X\/\(\/\).*/{ s//\1/; q; }
23779           s/.*/./; q'`
23780
23781
23782 # PATH needs CR, and LINENO needs CR and PATH.
23783 # Avoid depending upon Character Ranges.
23784 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23785 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23786 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23787 as_cr_digits='0123456789'
23788 as_cr_alnum=$as_cr_Letters$as_cr_digits
23789
23790 # The user is always right.
23791 if test "${PATH_SEPARATOR+set}" != set; then
23792   echo "#! /bin/sh" >conf$$.sh
23793   echo  "exit 0"   >>conf$$.sh
23794   chmod +x conf$$.sh
23795   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23796     PATH_SEPARATOR=';'
23797   else
23798     PATH_SEPARATOR=:
23799   fi
23800   rm -f conf$$.sh
23801 fi
23802
23803
23804   as_lineno_1=$LINENO
23805   as_lineno_2=$LINENO
23806   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23807   test "x$as_lineno_1" != "x$as_lineno_2" &&
23808   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23809   # Find who we are.  Look in the path if we contain no path at all
23810   # relative or not.
23811   case $0 in
23812     *[\\/]* ) as_myself=$0 ;;
23813     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23814 for as_dir in $PATH
23815 do
23816   IFS=$as_save_IFS
23817   test -z "$as_dir" && as_dir=.
23818   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23819 done
23820
23821        ;;
23822   esac
23823   # We did not find ourselves, most probably we were run as `sh COMMAND'
23824   # in which case we are not to be found in the path.
23825   if test "x$as_myself" = x; then
23826     as_myself=$0
23827   fi
23828   if test ! -f "$as_myself"; then
23829     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23830 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23831    { (exit 1); exit 1; }; }
23832   fi
23833   case $CONFIG_SHELL in
23834   '')
23835     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23836 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23837 do
23838   IFS=$as_save_IFS
23839   test -z "$as_dir" && as_dir=.
23840   for as_base in sh bash ksh sh5; do
23841          case $as_dir in
23842          /*)
23843            if ("$as_dir/$as_base" -c '
23844   as_lineno_1=$LINENO
23845   as_lineno_2=$LINENO
23846   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23847   test "x$as_lineno_1" != "x$as_lineno_2" &&
23848   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23849              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23850              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23851              CONFIG_SHELL=$as_dir/$as_base
23852              export CONFIG_SHELL
23853              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23854            fi;;
23855          esac
23856        done
23857 done
23858 ;;
23859   esac
23860
23861   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23862   # uniformly replaced by the line number.  The first 'sed' inserts a
23863   # line-number line before each line; the second 'sed' does the real
23864   # work.  The second script uses 'N' to pair each line-number line
23865   # with the numbered line, and appends trailing '-' during
23866   # substitution so that $LINENO is not a special case at line end.
23867   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23868   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23869   sed '=' <$as_myself |
23870     sed '
23871       N
23872       s,$,-,
23873       : loop
23874       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23875       t loop
23876       s,-$,,
23877       s,^['$as_cr_digits']*\n,,
23878     ' >$as_me.lineno &&
23879   chmod +x $as_me.lineno ||
23880     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23881 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23882    { (exit 1); exit 1; }; }
23883
23884   # Don't try to exec as it changes $[0], causing all sort of problems
23885   # (the dirname of $[0] is not the place where we might find the
23886   # original and so on.  Autoconf is especially sensible to this).
23887   . ./$as_me.lineno
23888   # Exit status is that of the last command.
23889   exit
23890 }
23891
23892
23893 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23894   *c*,-n*) ECHO_N= ECHO_C='
23895 ' ECHO_T='      ' ;;
23896   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23897   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23898 esac
23899
23900 if expr a : '\(a\)' >/dev/null 2>&1; then
23901   as_expr=expr
23902 else
23903   as_expr=false
23904 fi
23905
23906 rm -f conf$$ conf$$.exe conf$$.file
23907 echo >conf$$.file
23908 if ln -s conf$$.file conf$$ 2>/dev/null; then
23909   # We could just check for DJGPP; but this test a) works b) is more generic
23910   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23911   if test -f conf$$.exe; then
23912     # Don't use ln at all; we don't have any links
23913     as_ln_s='cp -p'
23914   else
23915     as_ln_s='ln -s'
23916   fi
23917 elif ln conf$$.file conf$$ 2>/dev/null; then
23918   as_ln_s=ln
23919 else
23920   as_ln_s='cp -p'
23921 fi
23922 rm -f conf$$ conf$$.exe conf$$.file
23923
23924 if mkdir -p . 2>/dev/null; then
23925   as_mkdir_p=:
23926 else
23927   test -d ./-p && rmdir ./-p
23928   as_mkdir_p=false
23929 fi
23930
23931 as_executable_p="test -f"
23932
23933 # Sed expression to map a string onto a valid CPP name.
23934 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23935
23936 # Sed expression to map a string onto a valid variable name.
23937 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23938
23939
23940 # IFS
23941 # We need space, tab and new line, in precisely that order.
23942 as_nl='
23943 '
23944 IFS="   $as_nl"
23945
23946 # CDPATH.
23947 $as_unset CDPATH
23948
23949 exec 6>&1
23950
23951 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23952 # report actual input values of CONFIG_FILES etc. instead of their
23953 # values after options handling.  Logging --version etc. is OK.
23954 exec 5>>config.log
23955 {
23956   echo
23957   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23958 ## Running $as_me. ##
23959 _ASBOX
23960 } >&5
23961 cat >&5 <<_CSEOF
23962
23963 This file was extended by libjpeg-turbo $as_me 1.3.1, which was
23964 generated by GNU Autoconf 2.59.  Invocation command line was
23965
23966   CONFIG_FILES    = $CONFIG_FILES
23967   CONFIG_HEADERS  = $CONFIG_HEADERS
23968   CONFIG_LINKS    = $CONFIG_LINKS
23969   CONFIG_COMMANDS = $CONFIG_COMMANDS
23970   $ $0 $@
23971
23972 _CSEOF
23973 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23974 echo >&5
23975 _ACEOF
23976
23977 # Files that config.status was made for.
23978 if test -n "$ac_config_files"; then
23979   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23980 fi
23981
23982 if test -n "$ac_config_headers"; then
23983   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23984 fi
23985
23986 if test -n "$ac_config_links"; then
23987   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23988 fi
23989
23990 if test -n "$ac_config_commands"; then
23991   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23992 fi
23993
23994 cat >>$CONFIG_STATUS <<\_ACEOF
23995
23996 ac_cs_usage="\
23997 \`$as_me' instantiates files from templates according to the
23998 current configuration.
23999
24000 Usage: $0 [OPTIONS] [FILE]...
24001
24002   -h, --help       print this help, then exit
24003   -V, --version    print version number, then exit
24004   -q, --quiet      do not print progress messages
24005   -d, --debug      don't remove temporary files
24006       --recheck    update $as_me by reconfiguring in the same conditions
24007   --file=FILE[:TEMPLATE]
24008                    instantiate the configuration file FILE
24009   --header=FILE[:TEMPLATE]
24010                    instantiate the configuration header FILE
24011
24012 Configuration files:
24013 $config_files
24014
24015 Configuration headers:
24016 $config_headers
24017
24018 Configuration commands:
24019 $config_commands
24020
24021 Report bugs to <bug-autoconf@gnu.org>."
24022 _ACEOF
24023
24024 cat >>$CONFIG_STATUS <<_ACEOF
24025 ac_cs_version="\\
24026 libjpeg-turbo config.status 1.3.1
24027 configured by $0, generated by GNU Autoconf 2.59,
24028   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24029
24030 Copyright (C) 2003 Free Software Foundation, Inc.
24031 This config.status script is free software; the Free Software Foundation
24032 gives unlimited permission to copy, distribute and modify it."
24033 srcdir=$srcdir
24034 INSTALL="$INSTALL"
24035 _ACEOF
24036
24037 cat >>$CONFIG_STATUS <<\_ACEOF
24038 # If no file are specified by the user, then we need to provide default
24039 # value.  By we need to know if files were specified by the user.
24040 ac_need_defaults=:
24041 while test $# != 0
24042 do
24043   case $1 in
24044   --*=*)
24045     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24046     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24047     ac_shift=:
24048     ;;
24049   -*)
24050     ac_option=$1
24051     ac_optarg=$2
24052     ac_shift=shift
24053     ;;
24054   *) # This is not an option, so the user has probably given explicit
24055      # arguments.
24056      ac_option=$1
24057      ac_need_defaults=false;;
24058   esac
24059
24060   case $ac_option in
24061   # Handling of the options.
24062 _ACEOF
24063 cat >>$CONFIG_STATUS <<\_ACEOF
24064   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24065     ac_cs_recheck=: ;;
24066   --version | --vers* | -V )
24067     echo "$ac_cs_version"; exit 0 ;;
24068   --he | --h)
24069     # Conflict between --help and --header
24070     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24071 Try \`$0 --help' for more information." >&5
24072 echo "$as_me: error: ambiguous option: $1
24073 Try \`$0 --help' for more information." >&2;}
24074    { (exit 1); exit 1; }; };;
24075   --help | --hel | -h )
24076     echo "$ac_cs_usage"; exit 0 ;;
24077   --debug | --d* | -d )
24078     debug=: ;;
24079   --file | --fil | --fi | --f )
24080     $ac_shift
24081     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24082     ac_need_defaults=false;;
24083   --header | --heade | --head | --hea )
24084     $ac_shift
24085     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24086     ac_need_defaults=false;;
24087   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24088   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24089     ac_cs_silent=: ;;
24090
24091   # This is an error.
24092   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24093 Try \`$0 --help' for more information." >&5
24094 echo "$as_me: error: unrecognized option: $1
24095 Try \`$0 --help' for more information." >&2;}
24096    { (exit 1); exit 1; }; } ;;
24097
24098   *) ac_config_targets="$ac_config_targets $1" ;;
24099
24100   esac
24101   shift
24102 done
24103
24104 ac_configure_extra_args=
24105
24106 if $ac_cs_silent; then
24107   exec 6>/dev/null
24108   ac_configure_extra_args="$ac_configure_extra_args --silent"
24109 fi
24110
24111 _ACEOF
24112 cat >>$CONFIG_STATUS <<_ACEOF
24113 if \$ac_cs_recheck; then
24114   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24115   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24116 fi
24117
24118 _ACEOF
24119
24120 cat >>$CONFIG_STATUS <<_ACEOF
24121 #
24122 # INIT-COMMANDS section.
24123 #
24124
24125 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24126
24127 _ACEOF
24128
24129
24130
24131 cat >>$CONFIG_STATUS <<\_ACEOF
24132 for ac_config_target in $ac_config_targets
24133 do
24134   case "$ac_config_target" in
24135   # Handling of arguments.
24136   "pkgscripts/libjpeg-turbo.spec.tmpl" ) CONFIG_FILES="$CONFIG_FILES pkgscripts/libjpeg-turbo.spec.tmpl:release/libjpeg-turbo.spec.in" ;;
24137   "pkgscripts/makecygwinpkg.tmpl" ) CONFIG_FILES="$CONFIG_FILES pkgscripts/makecygwinpkg.tmpl:release/makecygwinpkg.in" ;;
24138   "pkgscripts/makedpkg.tmpl" ) CONFIG_FILES="$CONFIG_FILES pkgscripts/makedpkg.tmpl:release/makedpkg.in" ;;
24139   "pkgscripts/makemacpkg.tmpl" ) CONFIG_FILES="$CONFIG_FILES pkgscripts/makemacpkg.tmpl:release/makemacpkg.in" ;;
24140   "pkgscripts/Description.plist" ) CONFIG_FILES="$CONFIG_FILES pkgscripts/Description.plist:release/Description.plist.in" ;;
24141   "pkgscripts/Info.plist" ) CONFIG_FILES="$CONFIG_FILES pkgscripts/Info.plist:release/Info.plist.in" ;;
24142   "pkgscripts/uninstall.tmpl" ) CONFIG_FILES="$CONFIG_FILES pkgscripts/uninstall.tmpl:release/uninstall.in" ;;
24143   "tjbenchtest" ) CONFIG_FILES="$CONFIG_FILES tjbenchtest" ;;
24144   "tjbenchtest.java" ) CONFIG_FILES="$CONFIG_FILES tjbenchtest.java" ;;
24145   "tjexampletest" ) CONFIG_FILES="$CONFIG_FILES tjexampletest" ;;
24146   "libjpeg.map" ) CONFIG_FILES="$CONFIG_FILES libjpeg.map" ;;
24147   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24148   "simd/Makefile" ) CONFIG_FILES="$CONFIG_FILES simd/Makefile" ;;
24149   "java/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
24150   "md5/Makefile" ) CONFIG_FILES="$CONFIG_FILES md5/Makefile" ;;
24151   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24152   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24153   "jconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h" ;;
24154   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24155 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24156    { (exit 1); exit 1; }; };;
24157   esac
24158 done
24159
24160 # If the user did not use the arguments to specify the items to instantiate,
24161 # then the envvar interface is used.  Set only those that are not.
24162 # We use the long form for the default assignment because of an extremely
24163 # bizarre bug on SunOS 4.1.3.
24164 if $ac_need_defaults; then
24165   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24166   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24167   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24168 fi
24169
24170 # Have a temporary directory for convenience.  Make it in the build tree
24171 # simply because there is no reason to put it here, and in addition,
24172 # creating and moving files from /tmp can sometimes cause problems.
24173 # Create a temporary directory, and hook for its removal unless debugging.
24174 $debug ||
24175 {
24176   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24177   trap '{ (exit 1); exit 1; }' 1 2 13 15
24178 }
24179
24180 # Create a (secure) tmp directory for tmp files.
24181
24182 {
24183   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24184   test -n "$tmp" && test -d "$tmp"
24185 }  ||
24186 {
24187   tmp=./confstat$$-$RANDOM
24188   (umask 077 && mkdir $tmp)
24189 } ||
24190 {
24191    echo "$me: cannot create a temporary directory in ." >&2
24192    { (exit 1); exit 1; }
24193 }
24194
24195 _ACEOF
24196
24197 cat >>$CONFIG_STATUS <<_ACEOF
24198
24199 #
24200 # CONFIG_FILES section.
24201 #
24202
24203 # No need to generate the scripts if there are no CONFIG_FILES.
24204 # This happens for instance when ./config.status config.h
24205 if test -n "\$CONFIG_FILES"; then
24206   # Protect against being on the right side of a sed subst in config.status.
24207   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24208    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24209 s,@SHELL@,$SHELL,;t t
24210 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24211 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24212 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24213 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24214 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24215 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24216 s,@exec_prefix@,$exec_prefix,;t t
24217 s,@prefix@,$prefix,;t t
24218 s,@program_transform_name@,$program_transform_name,;t t
24219 s,@bindir@,$bindir,;t t
24220 s,@sbindir@,$sbindir,;t t
24221 s,@libexecdir@,$libexecdir,;t t
24222 s,@datadir@,$datadir,;t t
24223 s,@sysconfdir@,$sysconfdir,;t t
24224 s,@sharedstatedir@,$sharedstatedir,;t t
24225 s,@localstatedir@,$localstatedir,;t t
24226 s,@libdir@,$libdir,;t t
24227 s,@includedir@,$includedir,;t t
24228 s,@oldincludedir@,$oldincludedir,;t t
24229 s,@infodir@,$infodir,;t t
24230 s,@mandir@,$mandir,;t t
24231 s,@build_alias@,$build_alias,;t t
24232 s,@host_alias@,$host_alias,;t t
24233 s,@target_alias@,$target_alias,;t t
24234 s,@DEFS@,$DEFS,;t t
24235 s,@ECHO_C@,$ECHO_C,;t t
24236 s,@ECHO_N@,$ECHO_N,;t t
24237 s,@ECHO_T@,$ECHO_T,;t t
24238 s,@LIBS@,$LIBS,;t t
24239 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24240 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24241 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24242 s,@CYGPATH_W@,$CYGPATH_W,;t t
24243 s,@PACKAGE@,$PACKAGE,;t t
24244 s,@VERSION@,$VERSION,;t t
24245 s,@ACLOCAL@,$ACLOCAL,;t t
24246 s,@AUTOCONF@,$AUTOCONF,;t t
24247 s,@AUTOMAKE@,$AUTOMAKE,;t t
24248 s,@AUTOHEADER@,$AUTOHEADER,;t t
24249 s,@MAKEINFO@,$MAKEINFO,;t t
24250 s,@install_sh@,$install_sh,;t t
24251 s,@STRIP@,$STRIP,;t t
24252 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24253 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24254 s,@mkdir_p@,$mkdir_p,;t t
24255 s,@AWK@,$AWK,;t t
24256 s,@SET_MAKE@,$SET_MAKE,;t t
24257 s,@am__leading_dot@,$am__leading_dot,;t t
24258 s,@AMTAR@,$AMTAR,;t t
24259 s,@am__tar@,$am__tar,;t t
24260 s,@am__untar@,$am__untar,;t t
24261 s,@CC@,$CC,;t t
24262 s,@CFLAGS@,$CFLAGS,;t t
24263 s,@LDFLAGS@,$LDFLAGS,;t t
24264 s,@CPPFLAGS@,$CPPFLAGS,;t t
24265 s,@ac_ct_CC@,$ac_ct_CC,;t t
24266 s,@EXEEXT@,$EXEEXT,;t t
24267 s,@OBJEXT@,$OBJEXT,;t t
24268 s,@DEPDIR@,$DEPDIR,;t t
24269 s,@am__include@,$am__include,;t t
24270 s,@am__quote@,$am__quote,;t t
24271 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24272 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24273 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24274 s,@CCDEPMODE@,$CCDEPMODE,;t t
24275 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24276 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24277 s,@CPP@,$CPP,;t t
24278 s,@CCAS@,$CCAS,;t t
24279 s,@CCASFLAGS@,$CCASFLAGS,;t t
24280 s,@build@,$build,;t t
24281 s,@build_cpu@,$build_cpu,;t t
24282 s,@build_vendor@,$build_vendor,;t t
24283 s,@build_os@,$build_os,;t t
24284 s,@host@,$host,;t t
24285 s,@host_cpu@,$host_cpu,;t t
24286 s,@host_vendor@,$host_vendor,;t t
24287 s,@host_os@,$host_os,;t t
24288 s,@EGREP@,$EGREP,;t t
24289 s,@LN_S@,$LN_S,;t t
24290 s,@ECHO@,$ECHO,;t t
24291 s,@AR@,$AR,;t t
24292 s,@ac_ct_AR@,$ac_ct_AR,;t t
24293 s,@RANLIB@,$RANLIB,;t t
24294 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24295 s,@CXX@,$CXX,;t t
24296 s,@CXXFLAGS@,$CXXFLAGS,;t t
24297 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24298 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24299 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24300 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24301 s,@CXXCPP@,$CXXCPP,;t t
24302 s,@F77@,$F77,;t t
24303 s,@FFLAGS@,$FFLAGS,;t t
24304 s,@ac_ct_F77@,$ac_ct_F77,;t t
24305 s,@LIBTOOL@,$LIBTOOL,;t t
24306 s,@JPEG_LIB_VERSION@,$JPEG_LIB_VERSION,;t t
24307 s,@JPEG_LIB_VERSION_DECIMAL@,$JPEG_LIB_VERSION_DECIMAL,;t t
24308 s,@SO_MAJOR_VERSION@,$SO_MAJOR_VERSION,;t t
24309 s,@SO_MINOR_VERSION@,$SO_MINOR_VERSION,;t t
24310 s,@LIBTOOL_CURRENT@,$LIBTOOL_CURRENT,;t t
24311 s,@SO_AGE@,$SO_AGE,;t t
24312 s,@MEM_SRCDST_FUNCTIONS@,$MEM_SRCDST_FUNCTIONS,;t t
24313 s,@VERSION_SCRIPT_TRUE@,$VERSION_SCRIPT_TRUE,;t t
24314 s,@VERSION_SCRIPT_FALSE@,$VERSION_SCRIPT_FALSE,;t t
24315 s,@VERSION_SCRIPT_FLAG@,$VERSION_SCRIPT_FLAG,;t t
24316 s,@WITH_ARITH_ENC_TRUE@,$WITH_ARITH_ENC_TRUE,;t t
24317 s,@WITH_ARITH_ENC_FALSE@,$WITH_ARITH_ENC_FALSE,;t t
24318 s,@WITH_ARITH_DEC_TRUE@,$WITH_ARITH_DEC_TRUE,;t t
24319 s,@WITH_ARITH_DEC_FALSE@,$WITH_ARITH_DEC_FALSE,;t t
24320 s,@WITH_ARITH_TRUE@,$WITH_ARITH_TRUE,;t t
24321 s,@WITH_ARITH_FALSE@,$WITH_ARITH_FALSE,;t t
24322 s,@JAVAC@,$JAVAC,;t t
24323 s,@JAVACFLAGS@,$JAVACFLAGS,;t t
24324 s,@JAR@,$JAR,;t t
24325 s,@JAVA@,$JAVA,;t t
24326 s,@JNI_CFLAGS@,$JNI_CFLAGS,;t t
24327 s,@WITH_JAVA_TRUE@,$WITH_JAVA_TRUE,;t t
24328 s,@WITH_JAVA_FALSE@,$WITH_JAVA_FALSE,;t t
24329 s,@WITH_JAVA@,$WITH_JAVA,;t t
24330 s,@JAVA_RPM_CONTENTS_1@,$JAVA_RPM_CONTENTS_1,;t t
24331 s,@JAVA_RPM_CONTENTS_2@,$JAVA_RPM_CONTENTS_2,;t t
24332 s,@NASM@,$NASM,;t t
24333 s,@NAFLAGS@,$NAFLAGS,;t t
24334 s,@WITH_SIMD_TRUE@,$WITH_SIMD_TRUE,;t t
24335 s,@WITH_SIMD_FALSE@,$WITH_SIMD_FALSE,;t t
24336 s,@WITH_SSE_FLOAT_DCT_TRUE@,$WITH_SSE_FLOAT_DCT_TRUE,;t t
24337 s,@WITH_SSE_FLOAT_DCT_FALSE@,$WITH_SSE_FLOAT_DCT_FALSE,;t t
24338 s,@SIMD_I386_TRUE@,$SIMD_I386_TRUE,;t t
24339 s,@SIMD_I386_FALSE@,$SIMD_I386_FALSE,;t t
24340 s,@SIMD_X86_64_TRUE@,$SIMD_X86_64_TRUE,;t t
24341 s,@SIMD_X86_64_FALSE@,$SIMD_X86_64_FALSE,;t t
24342 s,@SIMD_ARM_TRUE@,$SIMD_ARM_TRUE,;t t
24343 s,@SIMD_ARM_FALSE@,$SIMD_ARM_FALSE,;t t
24344 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
24345 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
24346 s,@WITH_TURBOJPEG_TRUE@,$WITH_TURBOJPEG_TRUE,;t t
24347 s,@WITH_TURBOJPEG_FALSE@,$WITH_TURBOJPEG_FALSE,;t t
24348 s,@PKGNAME@,$PKGNAME,;t t
24349 s,@RPMARCH@,$RPMARCH,;t t
24350 s,@RPM_CONFIG_ARGS@,$RPM_CONFIG_ARGS,;t t
24351 s,@DEBARCH@,$DEBARCH,;t t
24352 s,@BUILD@,$BUILD,;t t
24353 s,@LIBOBJS@,$LIBOBJS,;t t
24354 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24355 CEOF
24356
24357 _ACEOF
24358
24359   cat >>$CONFIG_STATUS <<\_ACEOF
24360   # Split the substitutions into bite-sized pieces for seds with
24361   # small command number limits, like on Digital OSF/1 and HP-UX.
24362   ac_max_sed_lines=48
24363   ac_sed_frag=1 # Number of current file.
24364   ac_beg=1 # First line for current file.
24365   ac_end=$ac_max_sed_lines # Line after last line for current file.
24366   ac_more_lines=:
24367   ac_sed_cmds=
24368   while $ac_more_lines; do
24369     if test $ac_beg -gt 1; then
24370       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24371     else
24372       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24373     fi
24374     if test ! -s $tmp/subs.frag; then
24375       ac_more_lines=false
24376     else
24377       # The purpose of the label and of the branching condition is to
24378       # speed up the sed processing (if there are no `@' at all, there
24379       # is no need to browse any of the substitutions).
24380       # These are the two extra sed commands mentioned above.
24381       (echo ':t
24382   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24383       if test -z "$ac_sed_cmds"; then
24384         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24385       else
24386         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24387       fi
24388       ac_sed_frag=`expr $ac_sed_frag + 1`
24389       ac_beg=$ac_end
24390       ac_end=`expr $ac_end + $ac_max_sed_lines`
24391     fi
24392   done
24393   if test -z "$ac_sed_cmds"; then
24394     ac_sed_cmds=cat
24395   fi
24396 fi # test -n "$CONFIG_FILES"
24397
24398 _ACEOF
24399 cat >>$CONFIG_STATUS <<\_ACEOF
24400 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24401   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24402   case $ac_file in
24403   - | *:- | *:-:* ) # input from stdin
24404         cat >$tmp/stdin
24405         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24406         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24407   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24408         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24409   * )   ac_file_in=$ac_file.in ;;
24410   esac
24411
24412   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24413   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24414 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24415          X"$ac_file" : 'X\(//\)[^/]' \| \
24416          X"$ac_file" : 'X\(//\)$' \| \
24417          X"$ac_file" : 'X\(/\)' \| \
24418          .     : '\(.\)' 2>/dev/null ||
24419 echo X"$ac_file" |
24420     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24421           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24422           /^X\(\/\/\)$/{ s//\1/; q; }
24423           /^X\(\/\).*/{ s//\1/; q; }
24424           s/.*/./; q'`
24425   { if $as_mkdir_p; then
24426     mkdir -p "$ac_dir"
24427   else
24428     as_dir="$ac_dir"
24429     as_dirs=
24430     while test ! -d "$as_dir"; do
24431       as_dirs="$as_dir $as_dirs"
24432       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24433 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24434          X"$as_dir" : 'X\(//\)[^/]' \| \
24435          X"$as_dir" : 'X\(//\)$' \| \
24436          X"$as_dir" : 'X\(/\)' \| \
24437          .     : '\(.\)' 2>/dev/null ||
24438 echo X"$as_dir" |
24439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24440           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24441           /^X\(\/\/\)$/{ s//\1/; q; }
24442           /^X\(\/\).*/{ s//\1/; q; }
24443           s/.*/./; q'`
24444     done
24445     test ! -n "$as_dirs" || mkdir $as_dirs
24446   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24447 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24448    { (exit 1); exit 1; }; }; }
24449
24450   ac_builddir=.
24451
24452 if test "$ac_dir" != .; then
24453   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24454   # A "../" for each directory in $ac_dir_suffix.
24455   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24456 else
24457   ac_dir_suffix= ac_top_builddir=
24458 fi
24459
24460 case $srcdir in
24461   .)  # No --srcdir option.  We are building in place.
24462     ac_srcdir=.
24463     if test -z "$ac_top_builddir"; then
24464        ac_top_srcdir=.
24465     else
24466        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24467     fi ;;
24468   [\\/]* | ?:[\\/]* )  # Absolute path.
24469     ac_srcdir=$srcdir$ac_dir_suffix;
24470     ac_top_srcdir=$srcdir ;;
24471   *) # Relative path.
24472     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24473     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24474 esac
24475
24476 # Do not use `cd foo && pwd` to compute absolute paths, because
24477 # the directories may not exist.
24478 case `pwd` in
24479 .) ac_abs_builddir="$ac_dir";;
24480 *)
24481   case "$ac_dir" in
24482   .) ac_abs_builddir=`pwd`;;
24483   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24484   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24485   esac;;
24486 esac
24487 case $ac_abs_builddir in
24488 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24489 *)
24490   case ${ac_top_builddir}. in
24491   .) ac_abs_top_builddir=$ac_abs_builddir;;
24492   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24493   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24494   esac;;
24495 esac
24496 case $ac_abs_builddir in
24497 .) ac_abs_srcdir=$ac_srcdir;;
24498 *)
24499   case $ac_srcdir in
24500   .) ac_abs_srcdir=$ac_abs_builddir;;
24501   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24502   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24503   esac;;
24504 esac
24505 case $ac_abs_builddir in
24506 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24507 *)
24508   case $ac_top_srcdir in
24509   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24510   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24511   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24512   esac;;
24513 esac
24514
24515
24516   case $INSTALL in
24517   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24518   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24519   esac
24520
24521   if test x"$ac_file" != x-; then
24522     { echo "$as_me:$LINENO: creating $ac_file" >&5
24523 echo "$as_me: creating $ac_file" >&6;}
24524     rm -f "$ac_file"
24525   fi
24526   # Let's still pretend it is `configure' which instantiates (i.e., don't
24527   # use $as_me), people would be surprised to read:
24528   #    /* config.h.  Generated by config.status.  */
24529   if test x"$ac_file" = x-; then
24530     configure_input=
24531   else
24532     configure_input="$ac_file.  "
24533   fi
24534   configure_input=$configure_input"Generated from `echo $ac_file_in |
24535                                      sed 's,.*/,,'` by configure."
24536
24537   # First look for the input files in the build tree, otherwise in the
24538   # src tree.
24539   ac_file_inputs=`IFS=:
24540     for f in $ac_file_in; do
24541       case $f in
24542       -) echo $tmp/stdin ;;
24543       [\\/$]*)
24544          # Absolute (can't be DOS-style, as IFS=:)
24545          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24546 echo "$as_me: error: cannot find input file: $f" >&2;}
24547    { (exit 1); exit 1; }; }
24548          echo "$f";;
24549       *) # Relative
24550          if test -f "$f"; then
24551            # Build tree
24552            echo "$f"
24553          elif test -f "$srcdir/$f"; then
24554            # Source tree
24555            echo "$srcdir/$f"
24556          else
24557            # /dev/null tree
24558            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24559 echo "$as_me: error: cannot find input file: $f" >&2;}
24560    { (exit 1); exit 1; }; }
24561          fi;;
24562       esac
24563     done` || { (exit 1); exit 1; }
24564 _ACEOF
24565 cat >>$CONFIG_STATUS <<_ACEOF
24566   sed "$ac_vpsub
24567 $extrasub
24568 _ACEOF
24569 cat >>$CONFIG_STATUS <<\_ACEOF
24570 :t
24571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24572 s,@configure_input@,$configure_input,;t t
24573 s,@srcdir@,$ac_srcdir,;t t
24574 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24575 s,@top_srcdir@,$ac_top_srcdir,;t t
24576 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24577 s,@builddir@,$ac_builddir,;t t
24578 s,@abs_builddir@,$ac_abs_builddir,;t t
24579 s,@top_builddir@,$ac_top_builddir,;t t
24580 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24581 s,@INSTALL@,$ac_INSTALL,;t t
24582 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24583   rm -f $tmp/stdin
24584   if test x"$ac_file" != x-; then
24585     mv $tmp/out $ac_file
24586   else
24587     cat $tmp/out
24588     rm -f $tmp/out
24589   fi
24590
24591 done
24592 _ACEOF
24593 cat >>$CONFIG_STATUS <<\_ACEOF
24594
24595 #
24596 # CONFIG_HEADER section.
24597 #
24598
24599 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24600 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24601 #
24602 # ac_d sets the value in "#define NAME VALUE" lines.
24603 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24604 ac_dB='[         ].*$,\1#\2'
24605 ac_dC=' '
24606 ac_dD=',;t'
24607 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24608 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24609 ac_uB='$,\1#\2define\3'
24610 ac_uC=' '
24611 ac_uD=',;t'
24612
24613 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24614   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24615   case $ac_file in
24616   - | *:- | *:-:* ) # input from stdin
24617         cat >$tmp/stdin
24618         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24619         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24620   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24621         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24622   * )   ac_file_in=$ac_file.in ;;
24623   esac
24624
24625   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24626 echo "$as_me: creating $ac_file" >&6;}
24627
24628   # First look for the input files in the build tree, otherwise in the
24629   # src tree.
24630   ac_file_inputs=`IFS=:
24631     for f in $ac_file_in; do
24632       case $f in
24633       -) echo $tmp/stdin ;;
24634       [\\/$]*)
24635          # Absolute (can't be DOS-style, as IFS=:)
24636          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24637 echo "$as_me: error: cannot find input file: $f" >&2;}
24638    { (exit 1); exit 1; }; }
24639          # Do quote $f, to prevent DOS paths from being IFS'd.
24640          echo "$f";;
24641       *) # Relative
24642          if test -f "$f"; then
24643            # Build tree
24644            echo "$f"
24645          elif test -f "$srcdir/$f"; then
24646            # Source tree
24647            echo "$srcdir/$f"
24648          else
24649            # /dev/null tree
24650            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24651 echo "$as_me: error: cannot find input file: $f" >&2;}
24652    { (exit 1); exit 1; }; }
24653          fi;;
24654       esac
24655     done` || { (exit 1); exit 1; }
24656   # Remove the trailing spaces.
24657   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24658
24659 _ACEOF
24660
24661 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24662 # `conftest.undefs', that substitutes the proper values into
24663 # config.h.in to produce config.h.  The first handles `#define'
24664 # templates, and the second `#undef' templates.
24665 # And first: Protect against being on the right side of a sed subst in
24666 # config.status.  Protect against being in an unquoted here document
24667 # in config.status.
24668 rm -f conftest.defines conftest.undefs
24669 # Using a here document instead of a string reduces the quoting nightmare.
24670 # Putting comments in sed scripts is not portable.
24671 #
24672 # `end' is used to avoid that the second main sed command (meant for
24673 # 0-ary CPP macros) applies to n-ary macro definitions.
24674 # See the Autoconf documentation for `clear'.
24675 cat >confdef2sed.sed <<\_ACEOF
24676 s/[\\&,]/\\&/g
24677 s,[\\$`],\\&,g
24678 t clear
24679 : clear
24680 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24681 t end
24682 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24683 : end
24684 _ACEOF
24685 # If some macros were called several times there might be several times
24686 # the same #defines, which is useless.  Nevertheless, we may not want to
24687 # sort them, since we want the *last* AC-DEFINE to be honored.
24688 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24689 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24690 rm -f confdef2sed.sed
24691
24692 # This sed command replaces #undef with comments.  This is necessary, for
24693 # example, in the case of _POSIX_SOURCE, which is predefined and required
24694 # on some systems where configure will not decide to define it.
24695 cat >>conftest.undefs <<\_ACEOF
24696 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24697 _ACEOF
24698
24699 # Break up conftest.defines because some shells have a limit on the size
24700 # of here documents, and old seds have small limits too (100 cmds).
24701 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24702 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24703 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24704 echo '  :' >>$CONFIG_STATUS
24705 rm -f conftest.tail
24706 while grep . conftest.defines >/dev/null
24707 do
24708   # Write a limited-size here document to $tmp/defines.sed.
24709   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24710   # Speed up: don't consider the non `#define' lines.
24711   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24712   # Work around the forget-to-reset-the-flag bug.
24713   echo 't clr' >>$CONFIG_STATUS
24714   echo ': clr' >>$CONFIG_STATUS
24715   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24716   echo 'CEOF
24717   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24718   rm -f $tmp/in
24719   mv $tmp/out $tmp/in
24720 ' >>$CONFIG_STATUS
24721   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24722   rm -f conftest.defines
24723   mv conftest.tail conftest.defines
24724 done
24725 rm -f conftest.defines
24726 echo '  fi # grep' >>$CONFIG_STATUS
24727 echo >>$CONFIG_STATUS
24728
24729 # Break up conftest.undefs because some shells have a limit on the size
24730 # of here documents, and old seds have small limits too (100 cmds).
24731 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24732 rm -f conftest.tail
24733 while grep . conftest.undefs >/dev/null
24734 do
24735   # Write a limited-size here document to $tmp/undefs.sed.
24736   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24737   # Speed up: don't consider the non `#undef'
24738   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24739   # Work around the forget-to-reset-the-flag bug.
24740   echo 't clr' >>$CONFIG_STATUS
24741   echo ': clr' >>$CONFIG_STATUS
24742   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24743   echo 'CEOF
24744   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24745   rm -f $tmp/in
24746   mv $tmp/out $tmp/in
24747 ' >>$CONFIG_STATUS
24748   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24749   rm -f conftest.undefs
24750   mv conftest.tail conftest.undefs
24751 done
24752 rm -f conftest.undefs
24753
24754 cat >>$CONFIG_STATUS <<\_ACEOF
24755   # Let's still pretend it is `configure' which instantiates (i.e., don't
24756   # use $as_me), people would be surprised to read:
24757   #    /* config.h.  Generated by config.status.  */
24758   if test x"$ac_file" = x-; then
24759     echo "/* Generated by configure.  */" >$tmp/config.h
24760   else
24761     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24762   fi
24763   cat $tmp/in >>$tmp/config.h
24764   rm -f $tmp/in
24765   if test x"$ac_file" != x-; then
24766     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24767       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24768 echo "$as_me: $ac_file is unchanged" >&6;}
24769     else
24770       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24771 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24772          X"$ac_file" : 'X\(//\)[^/]' \| \
24773          X"$ac_file" : 'X\(//\)$' \| \
24774          X"$ac_file" : 'X\(/\)' \| \
24775          .     : '\(.\)' 2>/dev/null ||
24776 echo X"$ac_file" |
24777     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24778           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24779           /^X\(\/\/\)$/{ s//\1/; q; }
24780           /^X\(\/\).*/{ s//\1/; q; }
24781           s/.*/./; q'`
24782       { if $as_mkdir_p; then
24783     mkdir -p "$ac_dir"
24784   else
24785     as_dir="$ac_dir"
24786     as_dirs=
24787     while test ! -d "$as_dir"; do
24788       as_dirs="$as_dir $as_dirs"
24789       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24790 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24791          X"$as_dir" : 'X\(//\)[^/]' \| \
24792          X"$as_dir" : 'X\(//\)$' \| \
24793          X"$as_dir" : 'X\(/\)' \| \
24794          .     : '\(.\)' 2>/dev/null ||
24795 echo X"$as_dir" |
24796     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24797           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24798           /^X\(\/\/\)$/{ s//\1/; q; }
24799           /^X\(\/\).*/{ s//\1/; q; }
24800           s/.*/./; q'`
24801     done
24802     test ! -n "$as_dirs" || mkdir $as_dirs
24803   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24804 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24805    { (exit 1); exit 1; }; }; }
24806
24807       rm -f $ac_file
24808       mv $tmp/config.h $ac_file
24809     fi
24810   else
24811     cat $tmp/config.h
24812     rm -f $tmp/config.h
24813   fi
24814 # Compute $ac_file's index in $config_headers.
24815 _am_stamp_count=1
24816 for _am_header in $config_headers :; do
24817   case $_am_header in
24818     $ac_file | $ac_file:* )
24819       break ;;
24820     * )
24821       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24822   esac
24823 done
24824 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24825 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24826          X$ac_file : 'X\(//\)[^/]' \| \
24827          X$ac_file : 'X\(//\)$' \| \
24828          X$ac_file : 'X\(/\)' \| \
24829          .     : '\(.\)' 2>/dev/null ||
24830 echo X$ac_file |
24831     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24832           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24833           /^X\(\/\/\)$/{ s//\1/; q; }
24834           /^X\(\/\).*/{ s//\1/; q; }
24835           s/.*/./; q'`/stamp-h$_am_stamp_count
24836 done
24837 _ACEOF
24838 cat >>$CONFIG_STATUS <<\_ACEOF
24839
24840 #
24841 # CONFIG_COMMANDS section.
24842 #
24843 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24844   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24845   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24846   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24847 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24848          X"$ac_dest" : 'X\(//\)[^/]' \| \
24849          X"$ac_dest" : 'X\(//\)$' \| \
24850          X"$ac_dest" : 'X\(/\)' \| \
24851          .     : '\(.\)' 2>/dev/null ||
24852 echo X"$ac_dest" |
24853     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24854           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24855           /^X\(\/\/\)$/{ s//\1/; q; }
24856           /^X\(\/\).*/{ s//\1/; q; }
24857           s/.*/./; q'`
24858   { if $as_mkdir_p; then
24859     mkdir -p "$ac_dir"
24860   else
24861     as_dir="$ac_dir"
24862     as_dirs=
24863     while test ! -d "$as_dir"; do
24864       as_dirs="$as_dir $as_dirs"
24865       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24867          X"$as_dir" : 'X\(//\)[^/]' \| \
24868          X"$as_dir" : 'X\(//\)$' \| \
24869          X"$as_dir" : 'X\(/\)' \| \
24870          .     : '\(.\)' 2>/dev/null ||
24871 echo X"$as_dir" |
24872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24874           /^X\(\/\/\)$/{ s//\1/; q; }
24875           /^X\(\/\).*/{ s//\1/; q; }
24876           s/.*/./; q'`
24877     done
24878     test ! -n "$as_dirs" || mkdir $as_dirs
24879   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24880 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24881    { (exit 1); exit 1; }; }; }
24882
24883   ac_builddir=.
24884
24885 if test "$ac_dir" != .; then
24886   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24887   # A "../" for each directory in $ac_dir_suffix.
24888   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24889 else
24890   ac_dir_suffix= ac_top_builddir=
24891 fi
24892
24893 case $srcdir in
24894   .)  # No --srcdir option.  We are building in place.
24895     ac_srcdir=.
24896     if test -z "$ac_top_builddir"; then
24897        ac_top_srcdir=.
24898     else
24899        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24900     fi ;;
24901   [\\/]* | ?:[\\/]* )  # Absolute path.
24902     ac_srcdir=$srcdir$ac_dir_suffix;
24903     ac_top_srcdir=$srcdir ;;
24904   *) # Relative path.
24905     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24906     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24907 esac
24908
24909 # Do not use `cd foo && pwd` to compute absolute paths, because
24910 # the directories may not exist.
24911 case `pwd` in
24912 .) ac_abs_builddir="$ac_dir";;
24913 *)
24914   case "$ac_dir" in
24915   .) ac_abs_builddir=`pwd`;;
24916   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24917   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24918   esac;;
24919 esac
24920 case $ac_abs_builddir in
24921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24922 *)
24923   case ${ac_top_builddir}. in
24924   .) ac_abs_top_builddir=$ac_abs_builddir;;
24925   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24926   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24927   esac;;
24928 esac
24929 case $ac_abs_builddir in
24930 .) ac_abs_srcdir=$ac_srcdir;;
24931 *)
24932   case $ac_srcdir in
24933   .) ac_abs_srcdir=$ac_abs_builddir;;
24934   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24935   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24936   esac;;
24937 esac
24938 case $ac_abs_builddir in
24939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24940 *)
24941   case $ac_top_srcdir in
24942   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24943   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24944   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24945   esac;;
24946 esac
24947
24948
24949   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24950 echo "$as_me: executing $ac_dest commands" >&6;}
24951   case $ac_dest in
24952     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24953   # Strip MF so we end up with the name of the file.
24954   mf=`echo "$mf" | sed -e 's/:.*$//'`
24955   # Check whether this is an Automake generated Makefile or not.
24956   # We used to match only the files named `Makefile.in', but
24957   # some people rename them; so instead we look at the file content.
24958   # Grep'ing the first line is not enough: some people post-process
24959   # each Makefile.in and add a new line on top of each file to say so.
24960   # So let's grep whole file.
24961   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24962     dirpart=`(dirname "$mf") 2>/dev/null ||
24963 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24964          X"$mf" : 'X\(//\)[^/]' \| \
24965          X"$mf" : 'X\(//\)$' \| \
24966          X"$mf" : 'X\(/\)' \| \
24967          .     : '\(.\)' 2>/dev/null ||
24968 echo X"$mf" |
24969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24970           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24971           /^X\(\/\/\)$/{ s//\1/; q; }
24972           /^X\(\/\).*/{ s//\1/; q; }
24973           s/.*/./; q'`
24974   else
24975     continue
24976   fi
24977   # Extract the definition of DEPDIR, am__include, and am__quote
24978   # from the Makefile without running `make'.
24979   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24980   test -z "$DEPDIR" && continue
24981   am__include=`sed -n 's/^am__include = //p' < "$mf"`
24982   test -z "am__include" && continue
24983   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24984   # When using ansi2knr, U may be empty or an underscore; expand it
24985   U=`sed -n 's/^U = //p' < "$mf"`
24986   # Find all dependency output files, they are included files with
24987   # $(DEPDIR) in their names.  We invoke sed twice because it is the
24988   # simplest approach to changing $(DEPDIR) to its actual value in the
24989   # expansion.
24990   for file in `sed -n "
24991     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24992        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24993     # Make sure the directory exists.
24994     test -f "$dirpart/$file" && continue
24995     fdir=`(dirname "$file") 2>/dev/null ||
24996 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24997          X"$file" : 'X\(//\)[^/]' \| \
24998          X"$file" : 'X\(//\)$' \| \
24999          X"$file" : 'X\(/\)' \| \
25000          .     : '\(.\)' 2>/dev/null ||
25001 echo X"$file" |
25002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25003           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25004           /^X\(\/\/\)$/{ s//\1/; q; }
25005           /^X\(\/\).*/{ s//\1/; q; }
25006           s/.*/./; q'`
25007     { if $as_mkdir_p; then
25008     mkdir -p $dirpart/$fdir
25009   else
25010     as_dir=$dirpart/$fdir
25011     as_dirs=
25012     while test ! -d "$as_dir"; do
25013       as_dirs="$as_dir $as_dirs"
25014       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25016          X"$as_dir" : 'X\(//\)[^/]' \| \
25017          X"$as_dir" : 'X\(//\)$' \| \
25018          X"$as_dir" : 'X\(/\)' \| \
25019          .     : '\(.\)' 2>/dev/null ||
25020 echo X"$as_dir" |
25021     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25022           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25023           /^X\(\/\/\)$/{ s//\1/; q; }
25024           /^X\(\/\).*/{ s//\1/; q; }
25025           s/.*/./; q'`
25026     done
25027     test ! -n "$as_dirs" || mkdir $as_dirs
25028   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25029 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25030    { (exit 1); exit 1; }; }; }
25031
25032     # echo "creating $dirpart/$file"
25033     echo '# dummy' > "$dirpart/$file"
25034   done
25035 done
25036  ;;
25037   esac
25038 done
25039 _ACEOF
25040
25041 cat >>$CONFIG_STATUS <<\_ACEOF
25042
25043 { (exit 0); exit 0; }
25044 _ACEOF
25045 chmod +x $CONFIG_STATUS
25046 ac_clean_files=$ac_clean_files_save
25047
25048
25049 # configure is writing to config.log, and then calls config.status.
25050 # config.status does its own redirection, appending to config.log.
25051 # Unfortunately, on DOS this fails, as config.log is still kept open
25052 # by configure, so config.status won't be able to write to it; its
25053 # output is simply discarded.  So we exec the FD to /dev/null,
25054 # effectively closing config.log, so it can be properly (re)opened and
25055 # appended to by config.status.  When coming back to configure, we
25056 # need to make the FD available again.
25057 if test "$no_create" != yes; then
25058   ac_cs_success=:
25059   ac_config_status_args=
25060   test "$silent" = yes &&
25061     ac_config_status_args="$ac_config_status_args --quiet"
25062   exec 5>/dev/null
25063   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25064   exec 5>>config.log
25065   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25066   # would make configure fail if this is the last instruction.
25067   $ac_cs_success || { (exit 1); exit 1; }
25068 fi
25069