source: ThirdParty/Blas/trunk/configure @ 77

Last change on this file since 77 was 77, checked in by andreasw, 13 years ago

several fixes for Cygwin

  • Property svn:executable set to *
File size: 679.2 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyBlas 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os COIN_DEBUG_TRUE COIN_DEBUG_FALSE F77 FFLAGS LDFLAGS ac_ct_F77 EXEEXT OBJEXT ADD_FFLAGS MPIF77 EGREP 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE CC CFLAGS CPPFLAGS ac_ct_CC DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL LT_LDFLAGS RPATH_FLAGS LIBEXT LIBOBJS LTLIBOBJS VPATH_DISTCLEANFILES'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_F77_set=${F77+set}
917ac_env_F77_value=$F77
918ac_cv_env_F77_set=${F77+set}
919ac_cv_env_F77_value=$F77
920ac_env_FFLAGS_set=${FFLAGS+set}
921ac_env_FFLAGS_value=$FFLAGS
922ac_cv_env_FFLAGS_set=${FFLAGS+set}
923ac_cv_env_FFLAGS_value=$FFLAGS
924ac_env_LDFLAGS_set=${LDFLAGS+set}
925ac_env_LDFLAGS_value=$LDFLAGS
926ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
927ac_cv_env_LDFLAGS_value=$LDFLAGS
928ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
929ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
930ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
931ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
932ac_env_MPIF77_set=${MPIF77+set}
933ac_env_MPIF77_value=$MPIF77
934ac_cv_env_MPIF77_set=${MPIF77+set}
935ac_cv_env_MPIF77_value=$MPIF77
936ac_env_CC_set=${CC+set}
937ac_env_CC_value=$CC
938ac_cv_env_CC_set=${CC+set}
939ac_cv_env_CC_value=$CC
940ac_env_CFLAGS_set=${CFLAGS+set}
941ac_env_CFLAGS_value=$CFLAGS
942ac_cv_env_CFLAGS_set=${CFLAGS+set}
943ac_cv_env_CFLAGS_value=$CFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_CPP_set=${CPP+set}
949ac_env_CPP_value=$CPP
950ac_cv_env_CPP_set=${CPP+set}
951ac_cv_env_CPP_value=$CPP
952ac_env_CXX_set=${CXX+set}
953ac_env_CXX_value=$CXX
954ac_cv_env_CXX_set=${CXX+set}
955ac_cv_env_CXX_value=$CXX
956ac_env_CXXFLAGS_set=${CXXFLAGS+set}
957ac_env_CXXFLAGS_value=$CXXFLAGS
958ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
959ac_cv_env_CXXFLAGS_value=$CXXFLAGS
960ac_env_CXXCPP_set=${CXXCPP+set}
961ac_env_CXXCPP_value=$CXXCPP
962ac_cv_env_CXXCPP_set=${CXXCPP+set}
963ac_cv_env_CXXCPP_value=$CXXCPP
964
965#
966# Report the --help message.
967#
968if test "$ac_init_help" = "long"; then
969  # Omit some internal or obsolete options to make the list less imposing.
970  # This message is too long to be a string in the A/UX 3.1 sh.
971  cat <<_ACEOF
972\`configure' configures ThirdPartyBlas 0.0 to adapt to many kinds of systems.
973
974Usage: $0 [OPTION]... [VAR=VALUE]...
975
976To assign environment variables (e.g., CC, CFLAGS...), specify them as
977VAR=VALUE.  See below for descriptions of some of the useful variables.
978
979Defaults for the options are specified in brackets.
980
981Configuration:
982  -h, --help              display this help and exit
983      --help=short        display options specific to this package
984      --help=recursive    display the short help of all the included packages
985  -V, --version           display version information and exit
986  -q, --quiet, --silent   do not print \`checking...' messages
987      --cache-file=FILE   cache test results in FILE [disabled]
988  -C, --config-cache      alias for \`--cache-file=config.cache'
989  -n, --no-create         do not create output files
990      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
991
992_ACEOF
993
994  cat <<_ACEOF
995Installation directories:
996  --prefix=PREFIX         install architecture-independent files in PREFIX
997                          [$ac_default_prefix]
998  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
999                          [PREFIX]
1000
1001By default, \`make install' will install all the files in
1002\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1003an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1004for instance \`--prefix=\$HOME'.
1005
1006For better control, use the options below.
1007
1008Fine tuning of the installation directories:
1009  --bindir=DIR           user executables [EPREFIX/bin]
1010  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1011  --libexecdir=DIR       program executables [EPREFIX/libexec]
1012  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1013  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1014  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1015  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1016  --libdir=DIR           object code libraries [EPREFIX/lib]
1017  --includedir=DIR       C header files [PREFIX/include]
1018  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1019  --infodir=DIR          info documentation [PREFIX/info]
1020  --mandir=DIR           man documentation [PREFIX/man]
1021_ACEOF
1022
1023  cat <<\_ACEOF
1024
1025Program names:
1026  --program-prefix=PREFIX            prepend PREFIX to installed program names
1027  --program-suffix=SUFFIX            append SUFFIX to installed program names
1028  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1029
1030System types:
1031  --build=BUILD     configure for building on BUILD [guessed]
1032  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1033_ACEOF
1034fi
1035
1036if test -n "$ac_init_help"; then
1037  case $ac_init_help in
1038     short | recursive ) echo "Configuration of ThirdPartyBlas 0.0:";;
1039   esac
1040  cat <<\_ACEOF
1041
1042Optional Features:
1043  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1044  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1045  --enable-debug          compile with debug options and runtime tests
1046  --enable-static[=PKGS]
1047                          build static libraries [default=no]
1048  --enable-maintainer-mode  enable make rules and dependencies not useful
1049                          (and sometimes confusing) to the casual installer
1050  --disable-dependency-tracking  speeds up one-time build
1051  --enable-dependency-tracking   do not reject slow dependency extractors
1052  --enable-shared[=PKGS]
1053                          build shared libraries [default=yes]
1054  --enable-fast-install[=PKGS]
1055                          optimize for fast installation [default=yes]
1056  --disable-libtool-lock  avoid locking (might break parallel builds)
1057
1058Optional Packages:
1059  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1060  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1061  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1062  --with-pic              try to use only PIC/non-PIC objects [default=use
1063                          both]
1064  --with-tags[=TAGS]
1065                          include additional configurations [automatic]
1066
1067Some influential environment variables:
1068  F77         Fortran 77 compiler command
1069  FFLAGS      Fortran 77 compiler flags
1070  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1071              nonstandard directory <lib dir>
1072  ADD_FFLAGS  Additional Fortran compiler options
1073  MPIF77      Fortran MPI Compiler
1074  CC          C compiler command
1075  CFLAGS      C compiler flags
1076  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1077              headers in a nonstandard directory <include dir>
1078  CPP         C preprocessor
1079  CXX         C++ compiler command
1080  CXXFLAGS    C++ compiler flags
1081  CXXCPP      C++ preprocessor
1082
1083Use these variables to override the choices made by `configure' or to help
1084it to find libraries and programs with nonstandard names/locations.
1085
1086Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1087_ACEOF
1088fi
1089
1090if test "$ac_init_help" = "recursive"; then
1091  # If there are subdirs, report their specific --help.
1092  ac_popdir=`pwd`
1093  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1094    test -d $ac_dir || continue
1095    ac_builddir=.
1096
1097if test "$ac_dir" != .; then
1098  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1099  # A "../" for each directory in $ac_dir_suffix.
1100  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1101else
1102  ac_dir_suffix= ac_top_builddir=
1103fi
1104
1105case $srcdir in
1106  .)  # No --srcdir option.  We are building in place.
1107    ac_srcdir=.
1108    if test -z "$ac_top_builddir"; then
1109       ac_top_srcdir=.
1110    else
1111       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1112    fi ;;
1113  [\\/]* | ?:[\\/]* )  # Absolute path.
1114    ac_srcdir=$srcdir$ac_dir_suffix;
1115    ac_top_srcdir=$srcdir ;;
1116  *) # Relative path.
1117    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1118    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1119esac
1120
1121# Do not use `cd foo && pwd` to compute absolute paths, because
1122# the directories may not exist.
1123case `pwd` in
1124.) ac_abs_builddir="$ac_dir";;
1125*)
1126  case "$ac_dir" in
1127  .) ac_abs_builddir=`pwd`;;
1128  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1129  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1130  esac;;
1131esac
1132case $ac_abs_builddir in
1133.) ac_abs_top_builddir=${ac_top_builddir}.;;
1134*)
1135  case ${ac_top_builddir}. in
1136  .) ac_abs_top_builddir=$ac_abs_builddir;;
1137  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1138  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1139  esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_srcdir=$ac_srcdir;;
1143*)
1144  case $ac_srcdir in
1145  .) ac_abs_srcdir=$ac_abs_builddir;;
1146  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1147  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1148  esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_top_srcdir=$ac_top_srcdir;;
1152*)
1153  case $ac_top_srcdir in
1154  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1155  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1156  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1157  esac;;
1158esac
1159
1160    cd $ac_dir
1161    # Check for guested configure; otherwise get Cygnus style configure.
1162    if test -f $ac_srcdir/configure.gnu; then
1163      echo
1164      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1165    elif test -f $ac_srcdir/configure; then
1166      echo
1167      $SHELL $ac_srcdir/configure  --help=recursive
1168    elif test -f $ac_srcdir/configure.ac ||
1169           test -f $ac_srcdir/configure.in; then
1170      echo
1171      $ac_configure --help
1172    else
1173      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1174    fi
1175    cd $ac_popdir
1176  done
1177fi
1178
1179test -n "$ac_init_help" && exit 0
1180if $ac_init_version; then
1181  cat <<\_ACEOF
1182ThirdPartyBlas configure 0.0
1183generated by GNU Autoconf 2.59
1184
1185Copyright (C) 2003 Free Software Foundation, Inc.
1186This configure script is free software; the Free Software Foundation
1187gives unlimited permission to copy, distribute and modify it.
1188
1189
1190Copyright 2006 International Business Machines and others.
1191All Rights Reserved.
1192This file is part of the open source package Coin which is distributed
1193under the Common Public License.
1194_ACEOF
1195  exit 0
1196fi
1197exec 5>config.log
1198cat >&5 <<_ACEOF
1199This file contains any messages produced by compilers while
1200running configure, to aid debugging if configure makes a mistake.
1201
1202It was created by ThirdPartyBlas $as_me 0.0, which was
1203generated by GNU Autoconf 2.59.  Invocation command line was
1204
1205  $ $0 $@
1206
1207_ACEOF
1208{
1209cat <<_ASUNAME
1210## --------- ##
1211## Platform. ##
1212## --------- ##
1213
1214hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1215uname -m = `(uname -m) 2>/dev/null || echo unknown`
1216uname -r = `(uname -r) 2>/dev/null || echo unknown`
1217uname -s = `(uname -s) 2>/dev/null || echo unknown`
1218uname -v = `(uname -v) 2>/dev/null || echo unknown`
1219
1220/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1221/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1222
1223/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1224/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1225/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1226hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1227/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1228/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1229/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1230
1231_ASUNAME
1232
1233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1234for as_dir in $PATH
1235do
1236  IFS=$as_save_IFS
1237  test -z "$as_dir" && as_dir=.
1238  echo "PATH: $as_dir"
1239done
1240
1241} >&5
1242
1243cat >&5 <<_ACEOF
1244
1245
1246## ----------- ##
1247## Core tests. ##
1248## ----------- ##
1249
1250_ACEOF
1251
1252
1253# Keep a trace of the command line.
1254# Strip out --no-create and --no-recursion so they do not pile up.
1255# Strip out --silent because we don't want to record it for future runs.
1256# Also quote any args containing shell meta-characters.
1257# Make two passes to allow for proper duplicate-argument suppression.
1258ac_configure_args=
1259ac_configure_args0=
1260ac_configure_args1=
1261ac_sep=
1262ac_must_keep_next=false
1263for ac_pass in 1 2
1264do
1265  for ac_arg
1266  do
1267    case $ac_arg in
1268    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1269    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270    | -silent | --silent | --silen | --sile | --sil)
1271      continue ;;
1272    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1274    esac
1275    case $ac_pass in
1276    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1277    2)
1278      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1279      if test $ac_must_keep_next = true; then
1280        ac_must_keep_next=false # Got value, back to normal.
1281      else
1282        case $ac_arg in
1283          *=* | --config-cache | -C | -disable-* | --disable-* \
1284          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1285          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1286          | -with-* | --with-* | -without-* | --without-* | --x)
1287            case "$ac_configure_args0 " in
1288              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1289            esac
1290            ;;
1291          -* ) ac_must_keep_next=true ;;
1292        esac
1293      fi
1294      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1295      # Get rid of the leading space.
1296      ac_sep=" "
1297      ;;
1298    esac
1299  done
1300done
1301$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1302$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1303
1304# When interrupted or exit'd, cleanup temporary files, and complete
1305# config.log.  We remove comments because anyway the quotes in there
1306# would cause problems or look ugly.
1307# WARNING: Be sure not to use single quotes in there, as some shells,
1308# such as our DU 5.0 friend, will then `close' the trap.
1309trap 'exit_status=$?
1310  # Save into config.log some information that might help in debugging.
1311  {
1312    echo
1313
1314    cat <<\_ASBOX
1315## ---------------- ##
1316## Cache variables. ##
1317## ---------------- ##
1318_ASBOX
1319    echo
1320    # The following way of writing the cache mishandles newlines in values,
1321{
1322  (set) 2>&1 |
1323    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1324    *ac_space=\ *)
1325      sed -n \
1326        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1327          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1328      ;;
1329    *)
1330      sed -n \
1331        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1332      ;;
1333    esac;
1334}
1335    echo
1336
1337    cat <<\_ASBOX
1338## ----------------- ##
1339## Output variables. ##
1340## ----------------- ##
1341_ASBOX
1342    echo
1343    for ac_var in $ac_subst_vars
1344    do
1345      eval ac_val=$`echo $ac_var`
1346      echo "$ac_var='"'"'$ac_val'"'"'"
1347    done | sort
1348    echo
1349
1350    if test -n "$ac_subst_files"; then
1351      cat <<\_ASBOX
1352## ------------- ##
1353## Output files. ##
1354## ------------- ##
1355_ASBOX
1356      echo
1357      for ac_var in $ac_subst_files
1358      do
1359        eval ac_val=$`echo $ac_var`
1360        echo "$ac_var='"'"'$ac_val'"'"'"
1361      done | sort
1362      echo
1363    fi
1364
1365    if test -s confdefs.h; then
1366      cat <<\_ASBOX
1367## ----------- ##
1368## confdefs.h. ##
1369## ----------- ##
1370_ASBOX
1371      echo
1372      sed "/^$/d" confdefs.h | sort
1373      echo
1374    fi
1375    test "$ac_signal" != 0 &&
1376      echo "$as_me: caught signal $ac_signal"
1377    echo "$as_me: exit $exit_status"
1378  } >&5
1379  rm -f core *.core &&
1380  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1381    exit $exit_status
1382     ' 0
1383for ac_signal in 1 2 13 15; do
1384  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1385done
1386ac_signal=0
1387
1388# confdefs.h avoids OS command line length limits that DEFS can exceed.
1389rm -rf conftest* confdefs.h
1390# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1391echo >confdefs.h
1392
1393# Predefined preprocessor variables.
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_NAME "$PACKAGE_NAME"
1397_ACEOF
1398
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_VERSION "$PACKAGE_VERSION"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_STRING "$PACKAGE_STRING"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1417_ACEOF
1418
1419
1420# Let the site file select an alternate cache file if it wants to.
1421# Prefer explicitly selected file to automatically selected ones.
1422if test -z "$CONFIG_SITE"; then
1423  if test "x$prefix" != xNONE; then
1424    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1425  else
1426    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1427  fi
1428fi
1429for ac_site_file in $CONFIG_SITE; do
1430  if test -r "$ac_site_file"; then
1431    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1432echo "$as_me: loading site script $ac_site_file" >&6;}
1433    sed 's/^/| /' "$ac_site_file" >&5
1434    . "$ac_site_file"
1435  fi
1436done
1437
1438if test -r "$cache_file"; then
1439  # Some versions of bash will fail to source /dev/null (special
1440  # files actually), so we avoid doing that.
1441  if test -f "$cache_file"; then
1442    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1443echo "$as_me: loading cache $cache_file" >&6;}
1444    case $cache_file in
1445      [\\/]* | ?:[\\/]* ) . $cache_file;;
1446      *)                      . ./$cache_file;;
1447    esac
1448  fi
1449else
1450  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1451echo "$as_me: creating cache $cache_file" >&6;}
1452  >$cache_file
1453fi
1454
1455# Check that the precious variables saved in the cache have kept the same
1456# value.
1457ac_cache_corrupted=false
1458for ac_var in `(set) 2>&1 |
1459               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1460  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1461  eval ac_new_set=\$ac_env_${ac_var}_set
1462  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1463  eval ac_new_val="\$ac_env_${ac_var}_value"
1464  case $ac_old_set,$ac_new_set in
1465    set,)
1466      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1467echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1468      ac_cache_corrupted=: ;;
1469    ,set)
1470      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1471echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1472      ac_cache_corrupted=: ;;
1473    ,);;
1474    *)
1475      if test "x$ac_old_val" != "x$ac_new_val"; then
1476        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1477echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1478        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1479echo "$as_me:   former value:  $ac_old_val" >&2;}
1480        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1481echo "$as_me:   current value: $ac_new_val" >&2;}
1482        ac_cache_corrupted=:
1483      fi;;
1484  esac
1485  # Pass precious variables to config.status.
1486  if test "$ac_new_set" = set; then
1487    case $ac_new_val in
1488    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1489      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1490    *) ac_arg=$ac_var=$ac_new_val ;;
1491    esac
1492    case " $ac_configure_args " in
1493      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1494      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1495    esac
1496  fi
1497done
1498if $ac_cache_corrupted; then
1499  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1500echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1501  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1502echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1503   { (exit 1); exit 1; }; }
1504fi
1505
1506ac_ext=c
1507ac_cpp='$CPP $CPPFLAGS'
1508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1510ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541# List one file in the package so that the configure script can test
1542# whether the package is actually there
1543
1544
1545# Where should everything be installed by default?  Here, we want it
1546# to be installed directly in 'bin', 'lib', 'include' subdirectories
1547# of the directory where configure is run.  The default would be
1548# /usr/local.
1549
1550
1551# Initialize the ADDLIBS variable
1552ADDLIBS='-lm'
1553
1554
1555# Initialize the FADDLIBS variable (which is to be used with a fortran
1556# compiler and will not include FLIBS)
1557FADDLIBS=
1558
1559
1560# A useful makefile conditional that is always false
1561
1562
1563if false; then
1564  ALWAYS_FALSE_TRUE=
1565  ALWAYS_FALSE_FALSE='#'
1566else
1567  ALWAYS_FALSE_TRUE='#'
1568  ALWAYS_FALSE_FALSE=
1569fi
1570
1571
1572# We set the following variable so that we know later in AC_COIN_FINALIZE
1573# that we are in a project main directory
1574coin_projectdir=yes
1575
1576
1577#############################################################################
1578#                         Standard build tool stuff                         #
1579#############################################################################
1580
1581# Get the system type
1582ac_aux_dir=
1583for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1584  if test -f $ac_dir/install-sh; then
1585    ac_aux_dir=$ac_dir
1586    ac_install_sh="$ac_aux_dir/install-sh -c"
1587    break
1588  elif test -f $ac_dir/install.sh; then
1589    ac_aux_dir=$ac_dir
1590    ac_install_sh="$ac_aux_dir/install.sh -c"
1591    break
1592  elif test -f $ac_dir/shtool; then
1593    ac_aux_dir=$ac_dir
1594    ac_install_sh="$ac_aux_dir/shtool install -c"
1595    break
1596  fi
1597done
1598if test -z "$ac_aux_dir"; then
1599  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1600echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1601   { (exit 1); exit 1; }; }
1602fi
1603ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1604ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1605ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1606
1607# Make sure we can run config.sub.
1608$ac_config_sub sun4 >/dev/null 2>&1 ||
1609  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1610echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1611   { (exit 1); exit 1; }; }
1612
1613echo "$as_me:$LINENO: checking build system type" >&5
1614echo $ECHO_N "checking build system type... $ECHO_C" >&6
1615if test "${ac_cv_build+set}" = set; then
1616  echo $ECHO_N "(cached) $ECHO_C" >&6
1617else
1618  ac_cv_build_alias=$build_alias
1619test -z "$ac_cv_build_alias" &&
1620  ac_cv_build_alias=`$ac_config_guess`
1621test -z "$ac_cv_build_alias" &&
1622  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1623echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1624   { (exit 1); exit 1; }; }
1625ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1626  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1627echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1628   { (exit 1); exit 1; }; }
1629
1630fi
1631echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1632echo "${ECHO_T}$ac_cv_build" >&6
1633build=$ac_cv_build
1634build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1635build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1636build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1637
1638
1639
1640# Check if user wants to produce debugging code
1641
1642echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1643echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1644
1645# Check whether --enable-debug or --disable-debug was given.
1646if test "${enable_debug+set}" = set; then
1647  enableval="$enable_debug"
1648  case "${enableval}" in
1649                   yes) coin_debug_compile=true
1650
1651cat >>confdefs.h <<\_ACEOF
1652#define COIN_DEBUG 1
1653_ACEOF
1654
1655                     enable_shared=no
1656                     ;;
1657                   no)  coin_debug_compile=false
1658                     ;;
1659                    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1660echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1661   { (exit 1); exit 1; }; }
1662                     ;;
1663                 esac
1664else
1665  coin_debug_compile=false
1666fi;
1667
1668if test $coin_debug_compile = true; then
1669  echo "$as_me:$LINENO: result: yes" >&5
1670echo "${ECHO_T}yes" >&6
1671else
1672  echo "$as_me:$LINENO: result: no" >&5
1673echo "${ECHO_T}no" >&6
1674fi
1675
1676
1677
1678if test "$coin_debug_compile" = true; then
1679  COIN_DEBUG_TRUE=
1680  COIN_DEBUG_FALSE='#'
1681else
1682  COIN_DEBUG_TRUE='#'
1683  COIN_DEBUG_FALSE=
1684fi
1685
1686
1687
1688# Get the name of the Fortran compiler and appropriate compiler options
1689case $build in
1690  *-mingw*)
1691    if test "${LD+set}" = set; then :; else
1692      LD=link
1693    fi
1694    ;;
1695esac
1696
1697
1698
1699ac_ext=f
1700ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
1701ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1702ac_compiler_gnu=$ac_cv_f77_compiler_gnu
1703
1704
1705coin_has_f77=yes
1706
1707save_fflags="$FFLAGS"
1708case $build in
1709  *-cygwin* | *-mingw*)
1710             comps="gfortran g77 ifort" ;;
1711  *)         comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc" ;;
1712esac
1713
1714# We delete the cached value, since the test might not have been
1715# performed with out choise of compilers earlier
1716ac_cv_prog_F77=
1717ac_ext=f
1718ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
1719ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1720ac_compiler_gnu=$ac_cv_f77_compiler_gnu
1721if test -n "$ac_tool_prefix"; then
1722  for ac_prog in $comps
1723  do
1724    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1725set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1726echo "$as_me:$LINENO: checking for $ac_word" >&5
1727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728if test "${ac_cv_prog_F77+set}" = set; then
1729  echo $ECHO_N "(cached) $ECHO_C" >&6
1730else
1731  if test -n "$F77"; then
1732  ac_cv_prog_F77="$F77" # Let the user override the test.
1733else
1734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735for as_dir in $PATH
1736do
1737  IFS=$as_save_IFS
1738  test -z "$as_dir" && as_dir=.
1739  for ac_exec_ext in '' $ac_executable_extensions; do
1740  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
1742    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743    break 2
1744  fi
1745done
1746done
1747
1748fi
1749fi
1750F77=$ac_cv_prog_F77
1751if test -n "$F77"; then
1752  echo "$as_me:$LINENO: result: $F77" >&5
1753echo "${ECHO_T}$F77" >&6
1754else
1755  echo "$as_me:$LINENO: result: no" >&5
1756echo "${ECHO_T}no" >&6
1757fi
1758
1759    test -n "$F77" && break
1760  done
1761fi
1762if test -z "$F77"; then
1763  ac_ct_F77=$F77
1764  for ac_prog in $comps
1765do
1766  # Extract the first word of "$ac_prog", so it can be a program name with args.
1767set dummy $ac_prog; ac_word=$2
1768echo "$as_me:$LINENO: checking for $ac_word" >&5
1769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
1771  echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773  if test -n "$ac_ct_F77"; then
1774  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
1775else
1776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777for as_dir in $PATH
1778do
1779  IFS=$as_save_IFS
1780  test -z "$as_dir" && as_dir=.
1781  for ac_exec_ext in '' $ac_executable_extensions; do
1782  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783    ac_cv_prog_ac_ct_F77="$ac_prog"
1784    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785    break 2
1786  fi
1787done
1788done
1789
1790fi
1791fi
1792ac_ct_F77=$ac_cv_prog_ac_ct_F77
1793if test -n "$ac_ct_F77"; then
1794  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
1795echo "${ECHO_T}$ac_ct_F77" >&6
1796else
1797  echo "$as_me:$LINENO: result: no" >&5
1798echo "${ECHO_T}no" >&6
1799fi
1800
1801  test -n "$ac_ct_F77" && break
1802done
1803
1804  F77=$ac_ct_F77
1805fi
1806
1807
1808# Provide some information about the compiler.
1809echo "$as_me:1809:" \
1810     "checking for Fortran 77 compiler version" >&5
1811ac_compiler=`set X $ac_compile; echo $2`
1812{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1813  (eval $ac_compiler --version </dev/null >&5) 2>&5
1814  ac_status=$?
1815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816  (exit $ac_status); }
1817{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1818  (eval $ac_compiler -v </dev/null >&5) 2>&5
1819  ac_status=$?
1820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821  (exit $ac_status); }
1822{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1823  (eval $ac_compiler -V </dev/null >&5) 2>&5
1824  ac_status=$?
1825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826  (exit $ac_status); }
1827rm -f a.out
1828
1829cat >conftest.$ac_ext <<_ACEOF
1830      program main
1831
1832      end
1833_ACEOF
1834ac_clean_files_save=$ac_clean_files
1835ac_clean_files="$ac_clean_files a.out a.exe b.out"
1836# Try to create an executable without -o first, disregard a.out.
1837# It will help us diagnose broken compilers, and finding out an intuition
1838# of exeext.
1839echo "$as_me:$LINENO: checking for Fortran 77 compiler default output file name" >&5
1840echo $ECHO_N "checking for Fortran 77 compiler default output file name... $ECHO_C" >&6
1841ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1842if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1843  (eval $ac_link_default) 2>&5
1844  ac_status=$?
1845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846  (exit $ac_status); }; then
1847  # Find the output, starting from the most likely.  This scheme is
1848# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1849# resort.
1850
1851# Be careful to initialize this variable, since it used to be cached.
1852# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1853ac_cv_exeext=
1854# b.out is created by i960 compilers.
1855for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1856do
1857  test -f "$ac_file" || continue
1858  case $ac_file in
1859    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1860        ;;
1861    conftest.$ac_ext )
1862        # This is the source file.
1863        ;;
1864    [ab].out )
1865        # We found the default executable, but exeext='' is most
1866        # certainly right.
1867        break;;
1868    *.* )
1869        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1870        # FIXME: I believe we export ac_cv_exeext for Libtool,
1871        # but it would be cool to find out if it's true.  Does anybody
1872        # maintain Libtool? --akim.
1873        export ac_cv_exeext
1874        break;;
1875    * )
1876        break;;
1877  esac
1878done
1879else
1880  echo "$as_me: failed program was:" >&5
1881sed 's/^/| /' conftest.$ac_ext >&5
1882
1883{ { echo "$as_me:$LINENO: error: Fortran 77 compiler cannot create executables
1884See \`config.log' for more details." >&5
1885echo "$as_me: error: Fortran 77 compiler cannot create executables
1886See \`config.log' for more details." >&2;}
1887   { (exit 77); exit 77; }; }
1888fi
1889
1890ac_exeext=$ac_cv_exeext
1891echo "$as_me:$LINENO: result: $ac_file" >&5
1892echo "${ECHO_T}$ac_file" >&6
1893
1894# Check the compiler produces executables we can run.  If not, either
1895# the compiler is broken, or we cross compile.
1896echo "$as_me:$LINENO: checking whether the Fortran 77 compiler works" >&5
1897echo $ECHO_N "checking whether the Fortran 77 compiler works... $ECHO_C" >&6
1898# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1899# If not cross compiling, check that we can run a simple program.
1900if test "$cross_compiling" != yes; then
1901  if { ac_try='./$ac_file'
1902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1903  (eval $ac_try) 2>&5
1904  ac_status=$?
1905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906  (exit $ac_status); }; }; then
1907    cross_compiling=no
1908  else
1909    if test "$cross_compiling" = maybe; then
1910        cross_compiling=yes
1911    else
1912        { { echo "$as_me:$LINENO: error: cannot run Fortran 77 compiled programs.
1913If you meant to cross compile, use \`--host'.
1914See \`config.log' for more details." >&5
1915echo "$as_me: error: cannot run Fortran 77 compiled programs.
1916If you meant to cross compile, use \`--host'.
1917See \`config.log' for more details." >&2;}
1918   { (exit 1); exit 1; }; }
1919    fi
1920  fi
1921fi
1922echo "$as_me:$LINENO: result: yes" >&5
1923echo "${ECHO_T}yes" >&6
1924
1925rm -f a.out a.exe conftest$ac_cv_exeext b.out
1926ac_clean_files=$ac_clean_files_save
1927# Check the compiler produces executables we can run.  If not, either
1928# the compiler is broken, or we cross compile.
1929echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1930echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1931echo "$as_me:$LINENO: result: $cross_compiling" >&5
1932echo "${ECHO_T}$cross_compiling" >&6
1933
1934echo "$as_me:$LINENO: checking for suffix of executables" >&5
1935echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1937  (eval $ac_link) 2>&5
1938  ac_status=$?
1939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940  (exit $ac_status); }; then
1941  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1942# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1943# work properly (i.e., refer to `conftest.exe'), while it won't with
1944# `rm'.
1945for ac_file in conftest.exe conftest conftest.*; do
1946  test -f "$ac_file" || continue
1947  case $ac_file in
1948    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1949    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1950          export ac_cv_exeext
1951          break;;
1952    * ) break;;
1953  esac
1954done
1955else
1956  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1957See \`config.log' for more details." >&5
1958echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1959See \`config.log' for more details." >&2;}
1960   { (exit 1); exit 1; }; }
1961fi
1962
1963rm -f conftest$ac_cv_exeext
1964echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1965echo "${ECHO_T}$ac_cv_exeext" >&6
1966
1967rm -f conftest.$ac_ext
1968EXEEXT=$ac_cv_exeext
1969ac_exeext=$EXEEXT
1970echo "$as_me:$LINENO: checking for suffix of object files" >&5
1971echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1972if test "${ac_cv_objext+set}" = set; then
1973  echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
1975  cat >conftest.$ac_ext <<_ACEOF
1976      program main
1977
1978      end
1979_ACEOF
1980rm -f conftest.o conftest.obj
1981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1982  (eval $ac_compile) 2>&5
1983  ac_status=$?
1984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985  (exit $ac_status); }; then
1986  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1987  case $ac_file in
1988    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1989    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1990       break;;
1991  esac
1992done
1993else
1994  echo "$as_me: failed program was:" >&5
1995sed 's/^/| /' conftest.$ac_ext >&5
1996
1997{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1998See \`config.log' for more details." >&5
1999echo "$as_me: error: cannot compute suffix of object files: cannot compile
2000See \`config.log' for more details." >&2;}
2001   { (exit 1); exit 1; }; }
2002fi
2003
2004rm -f conftest.$ac_cv_objext conftest.$ac_ext
2005fi
2006echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2007echo "${ECHO_T}$ac_cv_objext" >&6
2008OBJEXT=$ac_cv_objext
2009ac_objext=$OBJEXT
2010# If we don't use `.F' as extension, the preprocessor is not run on the
2011# input file.  (Note that this only needs to work for GNU compilers.)
2012ac_save_ext=$ac_ext
2013ac_ext=F
2014echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
2015echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
2016if test "${ac_cv_f77_compiler_gnu+set}" = set; then
2017  echo $ECHO_N "(cached) $ECHO_C" >&6
2018else
2019  cat >conftest.$ac_ext <<_ACEOF
2020      program main
2021#ifndef __GNUC__
2022       choke me
2023#endif
2024
2025      end
2026_ACEOF
2027rm -f conftest.$ac_objext
2028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029  (eval $ac_compile) 2>conftest.er1
2030  ac_status=$?
2031  grep -v '^ *+' conftest.er1 >conftest.err
2032  rm -f conftest.er1
2033  cat conftest.err >&5
2034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035  (exit $ac_status); } &&
2036         { ac_try='test -z "$ac_f77_werror_flag"
2037                         || test ! -s conftest.err'
2038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039  (eval $ac_try) 2>&5
2040  ac_status=$?
2041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042  (exit $ac_status); }; } &&
2043         { ac_try='test -s conftest.$ac_objext'
2044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045  (eval $ac_try) 2>&5
2046  ac_status=$?
2047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048  (exit $ac_status); }; }; then
2049  ac_compiler_gnu=yes
2050else
2051  echo "$as_me: failed program was:" >&5
2052sed 's/^/| /' conftest.$ac_ext >&5
2053
2054ac_compiler_gnu=no
2055fi
2056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2057ac_cv_f77_compiler_gnu=$ac_compiler_gnu
2058
2059fi
2060echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
2061echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
2062ac_ext=$ac_save_ext
2063ac_test_FFLAGS=${FFLAGS+set}
2064ac_save_FFLAGS=$FFLAGS
2065FFLAGS=
2066echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
2067echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
2068if test "${ac_cv_prog_f77_g+set}" = set; then
2069  echo $ECHO_N "(cached) $ECHO_C" >&6
2070else
2071  FFLAGS=-g
2072cat >conftest.$ac_ext <<_ACEOF
2073      program main
2074
2075      end
2076_ACEOF
2077rm -f conftest.$ac_objext
2078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079  (eval $ac_compile) 2>conftest.er1
2080  ac_status=$?
2081  grep -v '^ *+' conftest.er1 >conftest.err
2082  rm -f conftest.er1
2083  cat conftest.err >&5
2084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085  (exit $ac_status); } &&
2086         { ac_try='test -z "$ac_f77_werror_flag"
2087                         || test ! -s conftest.err'
2088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089  (eval $ac_try) 2>&5
2090  ac_status=$?
2091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092  (exit $ac_status); }; } &&
2093         { ac_try='test -s conftest.$ac_objext'
2094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095  (eval $ac_try) 2>&5
2096  ac_status=$?
2097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098  (exit $ac_status); }; }; then
2099  ac_cv_prog_f77_g=yes
2100else
2101  echo "$as_me: failed program was:" >&5
2102sed 's/^/| /' conftest.$ac_ext >&5
2103
2104ac_cv_prog_f77_g=no
2105fi
2106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2107
2108fi
2109echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
2110echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
2111if test "$ac_test_FFLAGS" = set; then
2112  FFLAGS=$ac_save_FFLAGS
2113elif test $ac_cv_prog_f77_g = yes; then
2114  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
2115    FFLAGS="-g -O2"
2116  else
2117    FFLAGS="-g"
2118  fi
2119else
2120  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
2121    FFLAGS="-O2"
2122  else
2123    FFLAGS=
2124  fi
2125fi
2126
2127G77=`test $ac_compiler_gnu = yes && echo yes`
2128ac_ext=f
2129ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2130ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2131ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2132
2133FFLAGS="$save_fflags"
2134
2135echo "$as_me:$LINENO: checking for Fortran compiler options" >&5
2136echo $ECHO_N "checking for Fortran compiler options... $ECHO_C" >&6
2137if test "${coin_cv_fflags+set}" = set; then
2138  echo $ECHO_N "(cached) $ECHO_C" >&6
2139else
2140  if test x"$FFLAGS" = x; then
2141
2142  coin_add_fflags=
2143  coin_opt_fflags=
2144  coin_dbg_fflags=
2145  coin_warn_fflags=
2146
2147  if test "$G77" = "yes"; then
2148    coin_opt_fflags="-O3 -fomit-frame-pointer"
2149    coin_add_fflags="-pipe"
2150    coin_dbg_fflags="-g"
2151    case $build in
2152      *-cygwin*)
2153        FFLAGS="-mno-cygwin"
2154        cat >conftest.$ac_ext <<_ACEOF
2155      program main
2156      write(*,*) 'Hello world'
2157      end
2158_ACEOF
2159rm -f conftest.$ac_objext conftest$ac_exeext
2160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2161  (eval $ac_link) 2>conftest.er1
2162  ac_status=$?
2163  grep -v '^ *+' conftest.er1 >conftest.err
2164  rm -f conftest.er1
2165  cat conftest.err >&5
2166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167  (exit $ac_status); } &&
2168         { ac_try='test -z "$ac_f77_werror_flag"
2169                         || test ! -s conftest.err'
2170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171  (eval $ac_try) 2>&5
2172  ac_status=$?
2173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174  (exit $ac_status); }; } &&
2175         { ac_try='test -s conftest$ac_exeext'
2176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177  (eval $ac_try) 2>&5
2178  ac_status=$?
2179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180  (exit $ac_status); }; }; then
2181  coin_add_fflags="-mno-cygwin $coin_add_fflags"
2182else
2183  echo "$as_me: failed program was:" >&5
2184sed 's/^/| /' conftest.$ac_ext >&5
2185
2186fi
2187rm -f conftest.err conftest.$ac_objext \
2188      conftest$ac_exeext conftest.$ac_ext
2189        FFLAGS=
2190      ;;
2191    esac
2192  else
2193    case $build in
2194      *-cygwin* | *-mingw*)
2195        case $F77 in
2196          ifort* | */ifort*)
2197            coin_opt_fflags='-O3'
2198            coin_add_fflags='-nologo -MT'
2199            coin_dbg_fflags='-debug'
2200          ;;
2201        esac
2202        ;;
2203      *-linux-*)
2204        case $F77 in
2205          ifc* | */ifc* | ifort* | */ifort*)
2206            coin_opt_fflags="-O3 -ip"
2207            coin_add_fflags="-cm -w90 -w95"
2208            coin_dbg_fflags="-g -CA -CB -CS"
2209            # Check if -i_dynamic is necessary (for new glibc library)
2210            FFLAGS=
2211            cat >conftest.$ac_ext <<_ACEOF
2212      program main
2213      write(*,*) 'Hello world'
2214      end
2215_ACEOF
2216rm -f conftest.$ac_objext conftest$ac_exeext
2217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2218  (eval $ac_link) 2>conftest.er1
2219  ac_status=$?
2220  grep -v '^ *+' conftest.er1 >conftest.err
2221  rm -f conftest.er1
2222  cat conftest.err >&5
2223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224  (exit $ac_status); } &&
2225         { ac_try='test -z "$ac_f77_werror_flag"
2226                         || test ! -s conftest.err'
2227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228  (eval $ac_try) 2>&5
2229  ac_status=$?
2230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231  (exit $ac_status); }; } &&
2232         { ac_try='test -s conftest$ac_exeext'
2233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234  (eval $ac_try) 2>&5
2235  ac_status=$?
2236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237  (exit $ac_status); }; }; then
2238  :
2239else
2240  echo "$as_me: failed program was:" >&5
2241sed 's/^/| /' conftest.$ac_ext >&5
2242
2243coin_add_fflags="-i_dynamic $coin_add_fflags"
2244fi
2245rm -f conftest.err conftest.$ac_objext \
2246      conftest$ac_exeext conftest.$ac_ext
2247            ;;
2248          pgf77* | */pgf77* | pgf90* | */pgf90*)
2249            coin_opt_fflags="-fast"
2250            coin_add_fflags="-Kieee -pc 64"
2251            coin_dbg_fflags="-g"
2252          ;;
2253        esac
2254        ;;
2255      *-ibm-*)
2256        case "$F77" in
2257          xlf* | */xlf* | mpxlf* | */mpxlf* )
2258            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2259            coin_add_fflags="-bmaxdata:0x80000000"
2260            coin_dbg_fflags="-g -C"
2261            ;;
2262        esac
2263        ;;
2264      *-hp-*)
2265        coin_opt_fflags="+O3"
2266        coin_add_fflags="+U77"
2267        coin_dbg_fflags="-C -g"
2268        ;;
2269      *-sun-*)
2270        coin_opt_fflags="-O4"
2271        coin_dbg_fflags="-g"
2272        ;;
2273      *-sgi-*)
2274        coin_opt_fflags="-O5 -OPT:Olimit=0"
2275        coin_dbg_fflags="-g"
2276        ;;
2277    esac
2278  fi
2279
2280  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
2281    coin_dbg_fflags="-g"
2282  fi
2283
2284  if test "$coin_debug_compile" = true; then
2285    FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
2286  else
2287    if test -z "$coin_opt_fflags"; then
2288      # Try if -O option works if nothing else is set
2289      FFLAGS=-O
2290      cat >conftest.$ac_ext <<_ACEOF
2291      program main
2292      integer i
2293      end
2294_ACEOF
2295rm -f conftest.$ac_objext conftest$ac_exeext
2296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2297  (eval $ac_link) 2>conftest.er1
2298  ac_status=$?
2299  grep -v '^ *+' conftest.er1 >conftest.err
2300  rm -f conftest.er1
2301  cat conftest.err >&5
2302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303  (exit $ac_status); } &&
2304         { ac_try='test -z "$ac_f77_werror_flag"
2305                         || test ! -s conftest.err'
2306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307  (eval $ac_try) 2>&5
2308  ac_status=$?
2309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310  (exit $ac_status); }; } &&
2311         { ac_try='test -s conftest$ac_exeext'
2312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313  (eval $ac_try) 2>&5
2314  ac_status=$?
2315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316  (exit $ac_status); }; }; then
2317  coin_opt_fflags="-O"
2318else
2319  echo "$as_me: failed program was:" >&5
2320sed 's/^/| /' conftest.$ac_ext >&5
2321
2322fi
2323rm -f conftest.err conftest.$ac_objext \
2324      conftest$ac_exeext conftest.$ac_ext
2325    fi
2326    FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
2327  fi
2328fi
2329
2330# Check if user wants to have additional FFLAGS options
2331
2332if test x"$ADD_FFLAGS" != x; then
2333  FFLAGS="$FFLAGS $ADD_FFLAGS"
2334fi
2335
2336# Try if FFLAGS works
2337cat >conftest.$ac_ext <<_ACEOF
2338      program main
2339      integer i
2340      end
2341_ACEOF
2342rm -f conftest.$ac_objext conftest$ac_exeext
2343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2344  (eval $ac_link) 2>conftest.er1
2345  ac_status=$?
2346  grep -v '^ *+' conftest.er1 >conftest.err
2347  rm -f conftest.er1
2348  cat conftest.err >&5
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); } &&
2351         { ac_try='test -z "$ac_f77_werror_flag"
2352                         || test ! -s conftest.err'
2353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354  (eval $ac_try) 2>&5
2355  ac_status=$?
2356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357  (exit $ac_status); }; } &&
2358         { ac_try='test -s conftest$ac_exeext'
2359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360  (eval $ac_try) 2>&5
2361  ac_status=$?
2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363  (exit $ac_status); }; }; then
2364  :
2365else
2366  echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369FFLAGS=
2370fi
2371rm -f conftest.err conftest.$ac_objext \
2372      conftest$ac_exeext conftest.$ac_ext
2373if test -z "$FFLAGS"; then
2374  { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
2375echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
2376  FFLAGS='-O'
2377  cat >conftest.$ac_ext <<_ACEOF
2378      program main
2379      integer i
2380      end
2381_ACEOF
2382rm -f conftest.$ac_objext conftest$ac_exeext
2383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2384  (eval $ac_link) 2>conftest.er1
2385  ac_status=$?
2386  grep -v '^ *+' conftest.er1 >conftest.err
2387  rm -f conftest.er1
2388  cat conftest.err >&5
2389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390  (exit $ac_status); } &&
2391         { ac_try='test -z "$ac_f77_werror_flag"
2392                         || test ! -s conftest.err'
2393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394  (eval $ac_try) 2>&5
2395  ac_status=$?
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); }; } &&
2398         { ac_try='test -s conftest$ac_exeext'
2399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400  (eval $ac_try) 2>&5
2401  ac_status=$?
2402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403  (exit $ac_status); }; }; then
2404  :
2405else
2406  echo "$as_me: failed program was:" >&5
2407sed 's/^/| /' conftest.$ac_ext >&5
2408
2409FFLAGS=
2410fi
2411rm -f conftest.err conftest.$ac_objext \
2412      conftest$ac_exeext conftest.$ac_ext
2413  if test -z "$FFLAGS"; then
2414    { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
2415echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
2416  fi
2417fi
2418coin_cv_fflags="$FFLAGS"
2419
2420fi
2421echo "$as_me:$LINENO: result: $coin_cv_fflags" >&5
2422echo "${ECHO_T}$coin_cv_fflags" >&6 # AC_CACHE_CHECK([for Fortran compiler options FFLAGS]
2423FFLAGS="$coin_cv_fflags"
2424
2425
2426if test x"$MPIF77" = x; then :; else
2427  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
2428echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
2429  F77="$MPIF77"
2430fi
2431
2432case "$F77" in
2433  ifort*)
2434    case $build in
2435  *-mingw*)
2436    if test "${LD+set}" = set; then :; else
2437      LD=link
2438    fi
2439    ;;
2440esac
2441
2442    ;;
2443esac
2444
2445ac_ext=c
2446ac_cpp='$CPP $CPPFLAGS'
2447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450
2451
2452
2453# Initialize autotools
2454
2455# On Cygwin, building DLLs doesn't work
2456case $build in
2457  *-cygwin*)
2458    coin_disable_shared=yes
2459    platform=Cygwin
2460  ;;
2461  *-mingw*)
2462    coin_disable_shared=yes
2463    platform="Msys"
2464#    case "$CXX" in
2465#      cl*)
2466#        coin_disable_shared=yes
2467#        platform="Msys with cl"
2468#    ;;
2469#    esac
2470  ;;
2471esac
2472if test x"$coin_disable_shared" = xyes; then
2473  if test x"$enable_shared" = xyes; then
2474    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
2475echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
2476  fi
2477  enable_shared=no
2478fi
2479# By default, we only want the shared objects to be compiled
2480# Check whether --enable-static or --disable-static was given.
2481if test "${enable_static+set}" = set; then
2482  enableval="$enable_static"
2483  p=${PACKAGE-default}
2484    case $enableval in
2485    yes) enable_static=yes ;;
2486    no) enable_static=no ;;
2487    *)
2488     enable_static=no
2489      # Look at the argument we got.  We use all the common list separators.
2490      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2491      for pkg in $enableval; do
2492        IFS="$lt_save_ifs"
2493        if test "X$pkg" = "X$p"; then
2494          enable_static=yes
2495        fi
2496      done
2497      IFS="$lt_save_ifs"
2498      ;;
2499    esac
2500else
2501  enable_static=no
2502fi;
2503
2504
2505
2506echo "$as_me:$LINENO: checking for egrep" >&5
2507echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2508if test "${ac_cv_prog_egrep+set}" = set; then
2509  echo $ECHO_N "(cached) $ECHO_C" >&6
2510else
2511  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2512    then ac_cv_prog_egrep='grep -E'
2513    else ac_cv_prog_egrep='egrep'
2514    fi
2515fi
2516echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2517echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2518 EGREP=$ac_cv_prog_egrep
2519
2520
2521am__api_version="1.9"
2522# Find a good install program.  We prefer a C program (faster),
2523# so one script is as good as another.  But avoid the broken or
2524# incompatible versions:
2525# SysV /etc/install, /usr/sbin/install
2526# SunOS /usr/etc/install
2527# IRIX /sbin/install
2528# AIX /bin/install
2529# AmigaOS /C/install, which installs bootblocks on floppy discs
2530# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2531# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2532# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2533# OS/2's system install, which has a completely different semantic
2534# ./install, which can be erroneously created by make from ./install.sh.
2535echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2536echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2537if test -z "$INSTALL"; then
2538if test "${ac_cv_path_install+set}" = set; then
2539  echo $ECHO_N "(cached) $ECHO_C" >&6
2540else
2541  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544  IFS=$as_save_IFS
2545  test -z "$as_dir" && as_dir=.
2546  # Account for people who put trailing slashes in PATH elements.
2547case $as_dir/ in
2548  ./ | .// | /cC/* | \
2549  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2550  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2551  /usr/ucb/* ) ;;
2552  *)
2553    # OSF1 and SCO ODT 3.0 have their own names for install.
2554    # Don't use installbsd from OSF since it installs stuff as root
2555    # by default.
2556    for ac_prog in ginstall scoinst install; do
2557      for ac_exec_ext in '' $ac_executable_extensions; do
2558        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2559          if test $ac_prog = install &&
2560            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2561            # AIX install.  It has an incompatible calling convention.
2562            :
2563          elif test $ac_prog = install &&
2564            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2565            # program-specific install script used by HP pwplus--don't use.
2566            :
2567          else
2568            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2569            break 3
2570          fi
2571        fi
2572      done
2573    done
2574    ;;
2575esac
2576done
2577
2578
2579fi
2580  if test "${ac_cv_path_install+set}" = set; then
2581    INSTALL=$ac_cv_path_install
2582  else
2583    # As a last resort, use the slow shell script.  We don't cache a
2584    # path for INSTALL within a source directory, because that will
2585    # break other packages using the cache if that directory is
2586    # removed, or if the path is relative.
2587    INSTALL=$ac_install_sh
2588  fi
2589fi
2590echo "$as_me:$LINENO: result: $INSTALL" >&5
2591echo "${ECHO_T}$INSTALL" >&6
2592
2593# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2594# It thinks the first close brace ends the variable substitution.
2595test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2596
2597test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2598
2599test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2600
2601echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2602echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2603# Just in case
2604sleep 1
2605echo timestamp > conftest.file
2606# Do `set' in a subshell so we don't clobber the current shell's
2607# arguments.  Must try -L first in case configure is actually a
2608# symlink; some systems play weird games with the mod time of symlinks
2609# (eg FreeBSD returns the mod time of the symlink's containing
2610# directory).
2611if (
2612   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2613   if test "$*" = "X"; then
2614      # -L didn't work.
2615      set X `ls -t $srcdir/configure conftest.file`
2616   fi
2617   rm -f conftest.file
2618   if test "$*" != "X $srcdir/configure conftest.file" \
2619      && test "$*" != "X conftest.file $srcdir/configure"; then
2620
2621      # If neither matched, then we have a broken ls.  This can happen
2622      # if, for instance, CONFIG_SHELL is bash and it inherits a
2623      # broken ls alias from the environment.  This has actually
2624      # happened.  Such a system could not be considered "sane".
2625      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2626alias in your environment" >&5
2627echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2628alias in your environment" >&2;}
2629   { (exit 1); exit 1; }; }
2630   fi
2631
2632   test "$2" = conftest.file
2633   )
2634then
2635   # Ok.
2636   :
2637else
2638   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2639Check your system clock" >&5
2640echo "$as_me: error: newly created file is older than distributed files!
2641Check your system clock" >&2;}
2642   { (exit 1); exit 1; }; }
2643fi
2644echo "$as_me:$LINENO: result: yes" >&5
2645echo "${ECHO_T}yes" >&6
2646test "$program_prefix" != NONE &&
2647  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2648# Use a double $ so make ignores it.
2649test "$program_suffix" != NONE &&
2650  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2651# Double any \ or $.  echo might interpret backslashes.
2652# By default was `s,x,x', remove it if useless.
2653cat <<\_ACEOF >conftest.sed
2654s/[\\$]/&&/g;s/;s,x,x,$//
2655_ACEOF
2656program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2657rm conftest.sed
2658
2659# expand $ac_aux_dir to an absolute path
2660am_aux_dir=`cd $ac_aux_dir && pwd`
2661
2662test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2663# Use eval to expand $SHELL
2664if eval "$MISSING --run true"; then
2665  am_missing_run="$MISSING --run "
2666else
2667  am_missing_run=
2668  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2669echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2670fi
2671
2672if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2673  # We used to keeping the `.' as first argument, in order to
2674  # allow $(mkdir_p) to be used without argument.  As in
2675  #   $(mkdir_p) $(somedir)
2676  # where $(somedir) is conditionally defined.  However this is wrong
2677  # for two reasons:
2678  #  1. if the package is installed by a user who cannot write `.'
2679  #     make install will fail,
2680  #  2. the above comment should most certainly read
2681  #     $(mkdir_p) $(DESTDIR)$(somedir)
2682  #     so it does not work when $(somedir) is undefined and
2683  #     $(DESTDIR) is not.
2684  #  To support the latter case, we have to write
2685  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2686  #  so the `.' trick is pointless.
2687  mkdir_p='mkdir -p --'
2688else
2689  # On NextStep and OpenStep, the `mkdir' command does not
2690  # recognize any option.  It will interpret all options as
2691  # directories to create, and then abort because `.' already
2692  # exists.
2693  for d in ./-p ./--version;
2694  do
2695    test -d $d && rmdir $d
2696  done
2697  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2698  if test -f "$ac_aux_dir/mkinstalldirs"; then
2699    mkdir_p='$(mkinstalldirs)'
2700  else
2701    mkdir_p='$(install_sh) -d'
2702  fi
2703fi
2704
2705for ac_prog in gawk mawk nawk awk
2706do
2707  # Extract the first word of "$ac_prog", so it can be a program name with args.
2708set dummy $ac_prog; ac_word=$2
2709echo "$as_me:$LINENO: checking for $ac_word" >&5
2710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2711if test "${ac_cv_prog_AWK+set}" = set; then
2712  echo $ECHO_N "(cached) $ECHO_C" >&6
2713else
2714  if test -n "$AWK"; then
2715  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2716else
2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720  IFS=$as_save_IFS
2721  test -z "$as_dir" && as_dir=.
2722  for ac_exec_ext in '' $ac_executable_extensions; do
2723  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2724    ac_cv_prog_AWK="$ac_prog"
2725    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726    break 2
2727  fi
2728done
2729done
2730
2731fi
2732fi
2733AWK=$ac_cv_prog_AWK
2734if test -n "$AWK"; then
2735  echo "$as_me:$LINENO: result: $AWK" >&5
2736echo "${ECHO_T}$AWK" >&6
2737else
2738  echo "$as_me:$LINENO: result: no" >&5
2739echo "${ECHO_T}no" >&6
2740fi
2741
2742  test -n "$AWK" && break
2743done
2744
2745echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2746echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2747set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2748if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2749  echo $ECHO_N "(cached) $ECHO_C" >&6
2750else
2751  cat >conftest.make <<\_ACEOF
2752all:
2753        @echo 'ac_maketemp="$(MAKE)"'
2754_ACEOF
2755# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2756eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2757if test -n "$ac_maketemp"; then
2758  eval ac_cv_prog_make_${ac_make}_set=yes
2759else
2760  eval ac_cv_prog_make_${ac_make}_set=no
2761fi
2762rm -f conftest.make
2763fi
2764if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2765  echo "$as_me:$LINENO: result: yes" >&5
2766echo "${ECHO_T}yes" >&6
2767  SET_MAKE=
2768else
2769  echo "$as_me:$LINENO: result: no" >&5
2770echo "${ECHO_T}no" >&6
2771  SET_MAKE="MAKE=${MAKE-make}"
2772fi
2773
2774rm -rf .tst 2>/dev/null
2775mkdir .tst 2>/dev/null
2776if test -d .tst; then
2777  am__leading_dot=.
2778else
2779  am__leading_dot=_
2780fi
2781rmdir .tst 2>/dev/null
2782
2783DEPDIR="${am__leading_dot}deps"
2784
2785          ac_config_commands="$ac_config_commands depfiles"
2786
2787
2788am_make=${MAKE-make}
2789cat > confinc << 'END'
2790am__doit:
2791        @echo done
2792.PHONY: am__doit
2793END
2794# If we don't find an include directive, just comment out the code.
2795echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2796echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2797am__include="#"
2798am__quote=
2799_am_result=none
2800# First try GNU make style include.
2801echo "include confinc" > confmf
2802# We grep out `Entering directory' and `Leaving directory'
2803# messages which can occur if `w' ends up in MAKEFLAGS.
2804# In particular we don't look at `^make:' because GNU make might
2805# be invoked under some other name (usually "gmake"), in which
2806# case it prints its new name instead of `make'.
2807if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2808   am__include=include
2809   am__quote=
2810   _am_result=GNU
2811fi
2812# Now try BSD make style include.
2813if test "$am__include" = "#"; then
2814   echo '.include "confinc"' > confmf
2815   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2816      am__include=.include
2817      am__quote="\""
2818      _am_result=BSD
2819   fi
2820fi
2821
2822
2823echo "$as_me:$LINENO: result: $_am_result" >&5
2824echo "${ECHO_T}$_am_result" >&6
2825rm -f confinc confmf
2826
2827# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2828if test "${enable_dependency_tracking+set}" = set; then
2829  enableval="$enable_dependency_tracking"
2830
2831fi;
2832if test "x$enable_dependency_tracking" != xno; then
2833  am_depcomp="$ac_aux_dir/depcomp"
2834  AMDEPBACKSLASH='\'
2835fi
2836
2837
2838if test "x$enable_dependency_tracking" != xno; then
2839  AMDEP_TRUE=
2840  AMDEP_FALSE='#'
2841else
2842  AMDEP_TRUE='#'
2843  AMDEP_FALSE=
2844fi
2845
2846
2847
2848ac_ext=c
2849ac_cpp='$CPP $CPPFLAGS'
2850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852ac_compiler_gnu=$ac_cv_c_compiler_gnu
2853if test -n "$ac_tool_prefix"; then
2854  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2855set dummy ${ac_tool_prefix}gcc; ac_word=$2
2856echo "$as_me:$LINENO: checking for $ac_word" >&5
2857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858if test "${ac_cv_prog_CC+set}" = set; then
2859  echo $ECHO_N "(cached) $ECHO_C" >&6
2860else
2861  if test -n "$CC"; then
2862  ac_cv_prog_CC="$CC" # Let the user override the test.
2863else
2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH
2866do
2867  IFS=$as_save_IFS
2868  test -z "$as_dir" && as_dir=.
2869  for ac_exec_ext in '' $ac_executable_extensions; do
2870  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2872    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873    break 2
2874  fi
2875done
2876done
2877
2878fi
2879fi
2880CC=$ac_cv_prog_CC
2881if test -n "$CC"; then
2882  echo "$as_me:$LINENO: result: $CC" >&5
2883echo "${ECHO_T}$CC" >&6
2884else
2885  echo "$as_me:$LINENO: result: no" >&5
2886echo "${ECHO_T}no" >&6
2887fi
2888
2889fi
2890if test -z "$ac_cv_prog_CC"; then
2891  ac_ct_CC=$CC
2892  # Extract the first word of "gcc", so it can be a program name with args.
2893set dummy gcc; ac_word=$2
2894echo "$as_me:$LINENO: checking for $ac_word" >&5
2895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2897  echo $ECHO_N "(cached) $ECHO_C" >&6
2898else
2899  if test -n "$ac_ct_CC"; then
2900  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2901else
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905  IFS=$as_save_IFS
2906  test -z "$as_dir" && as_dir=.
2907  for ac_exec_ext in '' $ac_executable_extensions; do
2908  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909    ac_cv_prog_ac_ct_CC="gcc"
2910    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911    break 2
2912  fi
2913done
2914done
2915
2916fi
2917fi
2918ac_ct_CC=$ac_cv_prog_ac_ct_CC
2919if test -n "$ac_ct_CC"; then
2920  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2921echo "${ECHO_T}$ac_ct_CC" >&6
2922else
2923  echo "$as_me:$LINENO: result: no" >&5
2924echo "${ECHO_T}no" >&6
2925fi
2926
2927  CC=$ac_ct_CC
2928else
2929  CC="$ac_cv_prog_CC"
2930fi
2931
2932if test -z "$CC"; then
2933  if test -n "$ac_tool_prefix"; then
2934  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2935set dummy ${ac_tool_prefix}cc; ac_word=$2
2936echo "$as_me:$LINENO: checking for $ac_word" >&5
2937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2938if test "${ac_cv_prog_CC+set}" = set; then
2939  echo $ECHO_N "(cached) $ECHO_C" >&6
2940else
2941  if test -n "$CC"; then
2942  ac_cv_prog_CC="$CC" # Let the user override the test.
2943else
2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945for as_dir in $PATH
2946do
2947  IFS=$as_save_IFS
2948  test -z "$as_dir" && as_dir=.
2949  for ac_exec_ext in '' $ac_executable_extensions; do
2950  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951    ac_cv_prog_CC="${ac_tool_prefix}cc"
2952    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2953    break 2
2954  fi
2955done
2956done
2957
2958fi
2959fi
2960CC=$ac_cv_prog_CC
2961if test -n "$CC"; then
2962  echo "$as_me:$LINENO: result: $CC" >&5
2963echo "${ECHO_T}$CC" >&6
2964else
2965  echo "$as_me:$LINENO: result: no" >&5
2966echo "${ECHO_T}no" >&6
2967fi
2968
2969fi
2970if test -z "$ac_cv_prog_CC"; then
2971  ac_ct_CC=$CC
2972  # Extract the first word of "cc", so it can be a program name with args.
2973set dummy cc; ac_word=$2
2974echo "$as_me:$LINENO: checking for $ac_word" >&5
2975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2977  echo $ECHO_N "(cached) $ECHO_C" >&6
2978else
2979  if test -n "$ac_ct_CC"; then
2980  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2981else
2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983for as_dir in $PATH
2984do
2985  IFS=$as_save_IFS
2986  test -z "$as_dir" && as_dir=.
2987  for ac_exec_ext in '' $ac_executable_extensions; do
2988  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989    ac_cv_prog_ac_ct_CC="cc"
2990    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991    break 2
2992  fi
2993done
2994done
2995
2996fi
2997fi
2998ac_ct_CC=$ac_cv_prog_ac_ct_CC
2999if test -n "$ac_ct_CC"; then
3000  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3001echo "${ECHO_T}$ac_ct_CC" >&6
3002else
3003  echo "$as_me:$LINENO: result: no" >&5
3004echo "${ECHO_T}no" >&6
3005fi
3006
3007  CC=$ac_ct_CC
3008else
3009  CC="$ac_cv_prog_CC"
3010fi
3011
3012fi
3013if test -z "$CC"; then
3014  # Extract the first word of "cc", so it can be a program name with args.
3015set dummy cc; ac_word=$2
3016echo "$as_me:$LINENO: checking for $ac_word" >&5
3017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3018if test "${ac_cv_prog_CC+set}" = set; then
3019  echo $ECHO_N "(cached) $ECHO_C" >&6
3020else
3021  if test -n "$CC"; then
3022  ac_cv_prog_CC="$CC" # Let the user override the test.
3023else
3024  ac_prog_rejected=no
3025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026for as_dir in $PATH
3027do
3028  IFS=$as_save_IFS
3029  test -z "$as_dir" && as_dir=.
3030  for ac_exec_ext in '' $ac_executable_extensions; do
3031  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3032    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3033       ac_prog_rejected=yes
3034       continue
3035     fi
3036    ac_cv_prog_CC="cc"
3037    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3038    break 2
3039  fi
3040done
3041done
3042
3043if test $ac_prog_rejected = yes; then
3044  # We found a bogon in the path, so make sure we never use it.
3045  set dummy $ac_cv_prog_CC
3046  shift
3047  if test $# != 0; then
3048    # We chose a different compiler from the bogus one.
3049    # However, it has the same basename, so the bogon will be chosen
3050    # first if we set CC to just the basename; use the full file name.
3051    shift
3052    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3053  fi
3054fi
3055fi
3056fi
3057CC=$ac_cv_prog_CC
3058if test -n "$CC"; then
3059  echo "$as_me:$LINENO: result: $CC" >&5
3060echo "${ECHO_T}$CC" >&6
3061else
3062  echo "$as_me:$LINENO: result: no" >&5
3063echo "${ECHO_T}no" >&6
3064fi
3065
3066fi
3067if test -z "$CC"; then
3068  if test -n "$ac_tool_prefix"; then
3069  for ac_prog in cl
3070  do
3071    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3072set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3073echo "$as_me:$LINENO: checking for $ac_word" >&5
3074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075if test "${ac_cv_prog_CC+set}" = set; then
3076  echo $ECHO_N "(cached) $ECHO_C" >&6
3077else
3078  if test -n "$CC"; then
3079  ac_cv_prog_CC="$CC" # Let the user override the test.
3080else
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084  IFS=$as_save_IFS
3085  test -z "$as_dir" && as_dir=.
3086  for ac_exec_ext in '' $ac_executable_extensions; do
3087  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3089    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090    break 2
3091  fi
3092done
3093done
3094
3095fi
3096fi
3097CC=$ac_cv_prog_CC
3098if test -n "$CC"; then
3099  echo "$as_me:$LINENO: result: $CC" >&5
3100echo "${ECHO_T}$CC" >&6
3101else
3102  echo "$as_me:$LINENO: result: no" >&5
3103echo "${ECHO_T}no" >&6
3104fi
3105
3106    test -n "$CC" && break
3107  done
3108fi
3109if test -z "$CC"; then
3110  ac_ct_CC=$CC
3111  for ac_prog in cl
3112do
3113  # Extract the first word of "$ac_prog", so it can be a program name with args.
3114set dummy $ac_prog; ac_word=$2
3115echo "$as_me:$LINENO: checking for $ac_word" >&5
3116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3117if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3118  echo $ECHO_N "(cached) $ECHO_C" >&6
3119else
3120  if test -n "$ac_ct_CC"; then
3121  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3122else
3123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124for as_dir in $PATH
3125do
3126  IFS=$as_save_IFS
3127  test -z "$as_dir" && as_dir=.
3128  for ac_exec_ext in '' $ac_executable_extensions; do
3129  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130    ac_cv_prog_ac_ct_CC="$ac_prog"
3131    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3132    break 2
3133  fi
3134done
3135done
3136
3137fi
3138fi
3139ac_ct_CC=$ac_cv_prog_ac_ct_CC
3140if test -n "$ac_ct_CC"; then
3141  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3142echo "${ECHO_T}$ac_ct_CC" >&6
3143else
3144  echo "$as_me:$LINENO: result: no" >&5
3145echo "${ECHO_T}no" >&6
3146fi
3147
3148  test -n "$ac_ct_CC" && break
3149done
3150
3151  CC=$ac_ct_CC
3152fi
3153
3154fi
3155
3156
3157test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3158See \`config.log' for more details." >&5
3159echo "$as_me: error: no acceptable C compiler found in \$PATH
3160See \`config.log' for more details." >&2;}
3161   { (exit 1); exit 1; }; }
3162
3163# Provide some information about the compiler.
3164echo "$as_me:$LINENO:" \
3165     "checking for C compiler version" >&5
3166ac_compiler=`set X $ac_compile; echo $2`
3167{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3168  (eval $ac_compiler --version </dev/null >&5) 2>&5
3169  ac_status=$?
3170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171  (exit $ac_status); }
3172{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3173  (eval $ac_compiler -v </dev/null >&5) 2>&5
3174  ac_status=$?
3175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176  (exit $ac_status); }
3177{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3178  (eval $ac_compiler -V </dev/null >&5) 2>&5
3179  ac_status=$?
3180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181  (exit $ac_status); }
3182
3183echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3184echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3185if test "${ac_cv_c_compiler_gnu+set}" = set; then
3186  echo $ECHO_N "(cached) $ECHO_C" >&6
3187else
3188  cat >conftest.$ac_ext <<_ACEOF
3189/* confdefs.h.  */
3190_ACEOF
3191cat confdefs.h >>conftest.$ac_ext
3192cat >>conftest.$ac_ext <<_ACEOF
3193/* end confdefs.h.  */
3194
3195int
3196main ()
3197{
3198#ifndef __GNUC__
3199       choke me
3200#endif
3201
3202  ;
3203  return 0;
3204}
3205_ACEOF
3206rm -f conftest.$ac_objext
3207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3208  (eval $ac_compile) 2>conftest.er1
3209  ac_status=$?
3210  grep -v '^ *+' conftest.er1 >conftest.err
3211  rm -f conftest.er1
3212  cat conftest.err >&5
3213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214  (exit $ac_status); } &&
3215         { ac_try='test -z "$ac_c_werror_flag"
3216                         || test ! -s conftest.err'
3217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218  (eval $ac_try) 2>&5
3219  ac_status=$?
3220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221  (exit $ac_status); }; } &&
3222         { ac_try='test -s conftest.$ac_objext'
3223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224  (eval $ac_try) 2>&5
3225  ac_status=$?
3226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227  (exit $ac_status); }; }; then
3228  ac_compiler_gnu=yes
3229else
3230  echo "$as_me: failed program was:" >&5
3231sed 's/^/| /' conftest.$ac_ext >&5
3232
3233ac_compiler_gnu=no
3234fi
3235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3236ac_cv_c_compiler_gnu=$ac_compiler_gnu
3237
3238fi
3239echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3240echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3241GCC=`test $ac_compiler_gnu = yes && echo yes`
3242ac_test_CFLAGS=${CFLAGS+set}
3243ac_save_CFLAGS=$CFLAGS
3244CFLAGS="-g"
3245echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3246echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3247if test "${ac_cv_prog_cc_g+set}" = set; then
3248  echo $ECHO_N "(cached) $ECHO_C" >&6
3249else
3250  cat >conftest.$ac_ext <<_ACEOF
3251/* confdefs.h.  */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
3255/* end confdefs.h.  */
3256
3257int
3258main ()
3259{
3260
3261  ;
3262  return 0;
3263}
3264_ACEOF
3265rm -f conftest.$ac_objext
3266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267  (eval $ac_compile) 2>conftest.er1
3268  ac_status=$?
3269  grep -v '^ *+' conftest.er1 >conftest.err
3270  rm -f conftest.er1
3271  cat conftest.err >&5
3272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273  (exit $ac_status); } &&
3274         { ac_try='test -z "$ac_c_werror_flag"
3275                         || test ! -s conftest.err'
3276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277  (eval $ac_try) 2>&5
3278  ac_status=$?
3279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280  (exit $ac_status); }; } &&
3281         { ac_try='test -s conftest.$ac_objext'
3282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283  (eval $ac_try) 2>&5
3284  ac_status=$?
3285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286  (exit $ac_status); }; }; then
3287  ac_cv_prog_cc_g=yes
3288else
3289  echo "$as_me: failed program was:" >&5
3290sed 's/^/| /' conftest.$ac_ext >&5
3291
3292ac_cv_prog_cc_g=no
3293fi
3294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3295fi
3296echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3297echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3298if test "$ac_test_CFLAGS" = set; then
3299  CFLAGS=$ac_save_CFLAGS
3300elif test $ac_cv_prog_cc_g = yes; then
3301  if test "$GCC" = yes; then
3302    CFLAGS="-g -O2"
3303  else
3304    CFLAGS="-g"
3305  fi
3306else
3307  if test "$GCC" = yes; then
3308    CFLAGS="-O2"
3309  else
3310    CFLAGS=
3311  fi
3312fi
3313echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3314echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3315if test "${ac_cv_prog_cc_stdc+set}" = set; then
3316  echo $ECHO_N "(cached) $ECHO_C" >&6
3317else
3318  ac_cv_prog_cc_stdc=no
3319ac_save_CC=$CC
3320cat >conftest.$ac_ext <<_ACEOF
3321/* confdefs.h.  */
3322_ACEOF
3323cat confdefs.h >>conftest.$ac_ext
3324cat >>conftest.$ac_ext <<_ACEOF
3325/* end confdefs.h.  */
3326#include <stdarg.h>
3327#include <stdio.h>
3328#include <sys/types.h>
3329#include <sys/stat.h>
3330/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3331struct buf { int x; };
3332FILE * (*rcsopen) (struct buf *, struct stat *, int);
3333static char *e (p, i)
3334     char **p;
3335     int i;
3336{
3337  return p[i];
3338}
3339static char *f (char * (*g) (char **, int), char **p, ...)
3340{
3341  char *s;
3342  va_list v;
3343  va_start (v,p);
3344  s = g (p, va_arg (v,int));
3345  va_end (v);
3346  return s;
3347}
3348
3349/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3350   function prototypes and stuff, but not '\xHH' hex character constants.
3351   These don't provoke an error unfortunately, instead are silently treated
3352   as 'x'.  The following induces an error, until -std1 is added to get
3353   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3354   array size at least.  It's necessary to write '\x00'==0 to get something
3355   that's true only with -std1.  */
3356int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3357
3358int test (int i, double x);
3359struct s1 {int (*f) (int a);};
3360struct s2 {int (*f) (double a);};
3361int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3362int argc;
3363char **argv;
3364int
3365main ()
3366{
3367return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3368  ;
3369  return 0;
3370}
3371_ACEOF
3372# Don't try gcc -ansi; that turns off useful extensions and
3373# breaks some systems' header files.
3374# AIX                   -qlanglvl=ansi
3375# Ultrix and OSF/1      -std1
3376# HP-UX 10.20 and later -Ae
3377# HP-UX older versions  -Aa -D_HPUX_SOURCE
3378# SVR4                  -Xc -D__EXTENSIONS__
3379for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3380do
3381  CC="$ac_save_CC $ac_arg"
3382  rm -f conftest.$ac_objext
3383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384  (eval $ac_compile) 2>conftest.er1
3385  ac_status=$?
3386  grep -v '^ *+' conftest.er1 >conftest.err
3387  rm -f conftest.er1
3388  cat conftest.err >&5
3389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390  (exit $ac_status); } &&
3391         { ac_try='test -z "$ac_c_werror_flag"
3392                         || test ! -s conftest.err'
3393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394  (eval $ac_try) 2>&5
3395  ac_status=$?
3396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397  (exit $ac_status); }; } &&
3398         { ac_try='test -s conftest.$ac_objext'
3399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400  (eval $ac_try) 2>&5
3401  ac_status=$?
3402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403  (exit $ac_status); }; }; then
3404  ac_cv_prog_cc_stdc=$ac_arg
3405break
3406else
3407  echo "$as_me: failed program was:" >&5
3408sed 's/^/| /' conftest.$ac_ext >&5
3409
3410fi
3411rm -f conftest.err conftest.$ac_objext
3412done
3413rm -f conftest.$ac_ext conftest.$ac_objext
3414CC=$ac_save_CC
3415
3416fi
3417
3418case "x$ac_cv_prog_cc_stdc" in
3419  x|xno)
3420    echo "$as_me:$LINENO: result: none needed" >&5
3421echo "${ECHO_T}none needed" >&6 ;;
3422  *)
3423    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3424echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3425    CC="$CC $ac_cv_prog_cc_stdc" ;;
3426esac
3427
3428# Some people use a C++ compiler to compile C.  Since we use `exit',
3429# in C++ we need to declare it.  In case someone uses the same compiler
3430# for both compiling C and C++ we need to have the C++ compiler decide
3431# the declaration of exit, since it's the most demanding environment.
3432cat >conftest.$ac_ext <<_ACEOF
3433#ifndef __cplusplus
3434  choke me
3435#endif
3436_ACEOF
3437rm -f conftest.$ac_objext
3438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3439  (eval $ac_compile) 2>conftest.er1
3440  ac_status=$?
3441  grep -v '^ *+' conftest.er1 >conftest.err
3442  rm -f conftest.er1
3443  cat conftest.err >&5
3444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445  (exit $ac_status); } &&
3446         { ac_try='test -z "$ac_c_werror_flag"
3447                         || test ! -s conftest.err'
3448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449  (eval $ac_try) 2>&5
3450  ac_status=$?
3451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452  (exit $ac_status); }; } &&
3453         { ac_try='test -s conftest.$ac_objext'
3454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455  (eval $ac_try) 2>&5
3456  ac_status=$?
3457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458  (exit $ac_status); }; }; then
3459  for ac_declaration in \
3460   '' \
3461   'extern "C" void std::exit (int) throw (); using std::exit;' \
3462   'extern "C" void std::exit (int); using std::exit;' \
3463   'extern "C" void exit (int) throw ();' \
3464   'extern "C" void exit (int);' \
3465   'void exit (int);'
3466do
3467  cat >conftest.$ac_ext <<_ACEOF
3468/* confdefs.h.  */
3469_ACEOF
3470cat confdefs.h >>conftest.$ac_ext
3471cat >>conftest.$ac_ext <<_ACEOF
3472/* end confdefs.h.  */
3473$ac_declaration
3474#include <stdlib.h>
3475int
3476main ()
3477{
3478exit (42);
3479  ;
3480  return 0;
3481}
3482_ACEOF
3483rm -f conftest.$ac_objext
3484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3485  (eval $ac_compile) 2>conftest.er1
3486  ac_status=$?
3487  grep -v '^ *+' conftest.er1 >conftest.err
3488  rm -f conftest.er1
3489  cat conftest.err >&5
3490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491  (exit $ac_status); } &&
3492         { ac_try='test -z "$ac_c_werror_flag"
3493                         || test ! -s conftest.err'
3494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495  (eval $ac_try) 2>&5
3496  ac_status=$?
3497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); }; } &&
3499         { ac_try='test -s conftest.$ac_objext'
3500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501  (eval $ac_try) 2>&5
3502  ac_status=$?
3503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504  (exit $ac_status); }; }; then
3505  :
3506else
3507  echo "$as_me: failed program was:" >&5
3508sed 's/^/| /' conftest.$ac_ext >&5
3509
3510continue
3511fi
3512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3513  cat >conftest.$ac_ext <<_ACEOF
3514/* confdefs.h.  */
3515_ACEOF
3516cat confdefs.h >>conftest.$ac_ext
3517cat >>conftest.$ac_ext <<_ACEOF
3518/* end confdefs.h.  */
3519$ac_declaration
3520int
3521main ()
3522{
3523exit (42);
3524  ;
3525  return 0;
3526}
3527_ACEOF
3528rm -f conftest.$ac_objext
3529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3530  (eval $ac_compile) 2>conftest.er1
3531  ac_status=$?
3532  grep -v '^ *+' conftest.er1 >conftest.err
3533  rm -f conftest.er1
3534  cat conftest.err >&5
3535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536  (exit $ac_status); } &&
3537         { ac_try='test -z "$ac_c_werror_flag"
3538                         || test ! -s conftest.err'
3539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540  (eval $ac_try) 2>&5
3541  ac_status=$?
3542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543  (exit $ac_status); }; } &&
3544         { ac_try='test -s conftest.$ac_objext'
3545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546  (eval $ac_try) 2>&5
3547  ac_status=$?
3548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549  (exit $ac_status); }; }; then
3550  break
3551else
3552  echo "$as_me: failed program was:" >&5
3553sed 's/^/| /' conftest.$ac_ext >&5
3554
3555fi
3556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3557done
3558rm -f conftest*
3559if test -n "$ac_declaration"; then
3560  echo '#ifdef __cplusplus' >>confdefs.h
3561  echo $ac_declaration      >>confdefs.h
3562  echo '#endif'             >>confdefs.h
3563fi
3564
3565else
3566  echo "$as_me: failed program was:" >&5
3567sed 's/^/| /' conftest.$ac_ext >&5
3568
3569fi
3570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3571ac_ext=c
3572ac_cpp='$CPP $CPPFLAGS'
3573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576
3577depcc="$CC"   am_compiler_list=
3578
3579echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3580echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3581if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3582  echo $ECHO_N "(cached) $ECHO_C" >&6
3583else
3584  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3585  # We make a subdir and do the tests there.  Otherwise we can end up
3586  # making bogus files that we don't know about and never remove.  For
3587  # instance it was reported that on HP-UX the gcc test will end up
3588  # making a dummy file named `D' -- because `-MD' means `put the output
3589  # in D'.
3590  mkdir conftest.dir
3591  # Copy depcomp to subdir because otherwise we won't find it if we're
3592  # using a relative directory.
3593  cp "$am_depcomp" conftest.dir
3594  cd conftest.dir
3595  # We will build objects and dependencies in a subdirectory because
3596  # it helps to detect inapplicable dependency modes.  For instance
3597  # both Tru64's cc and ICC support -MD to output dependencies as a
3598  # side effect of compilation, but ICC will put the dependencies in
3599  # the current directory while Tru64 will put them in the object
3600  # directory.
3601  mkdir sub
3602
3603  am_cv_CC_dependencies_compiler_type=none
3604  if test "$am_compiler_list" = ""; then
3605     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3606  fi
3607  for depmode in $am_compiler_list; do
3608    # Setup a source with many dependencies, because some compilers
3609    # like to wrap large dependency lists on column 80 (with \), and
3610    # we should not choose a depcomp mode which is confused by this.
3611    #
3612    # We need to recreate these files for each test, as the compiler may
3613    # overwrite some of them when testing with obscure command lines.
3614    # This happens at least with the AIX C compiler.
3615    : > sub/conftest.c
3616    for i in 1 2 3 4 5 6; do
3617      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3618      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3619      # Solaris 8's {/usr,}/bin/sh.
3620      touch sub/conftst$i.h
3621    done
3622    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3623
3624    case $depmode in
3625    nosideeffect)
3626      # after this tag, mechanisms are not by side-effect, so they'll
3627      # only be used when explicitly requested
3628      if test "x$enable_dependency_tracking" = xyes; then
3629        continue
3630      else
3631        break
3632      fi
3633      ;;
3634    none) break ;;
3635    esac
3636    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3637    # mode.  It turns out that the SunPro C++ compiler does not properly
3638    # handle `-M -o', and we need to detect this.
3639    if depmode=$depmode \
3640       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3641       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3642       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3643         >/dev/null 2>conftest.err &&
3644       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3645       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3646       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3647      # icc doesn't choke on unknown options, it will just issue warnings
3648      # or remarks (even with -Werror).  So we grep stderr for any message
3649      # that says an option was ignored or not supported.
3650      # When given -MP, icc 7.0 and 7.1 complain thusly:
3651      #   icc: Command line warning: ignoring option '-M'; no argument required
3652      # The diagnosis changed in icc 8.0:
3653      #   icc: Command line remark: option '-MP' not supported
3654      if (grep 'ignoring option' conftest.err ||
3655          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3656        am_cv_CC_dependencies_compiler_type=$depmode
3657        break
3658      fi
3659    fi
3660  done
3661
3662  cd ..
3663  rm -rf conftest.dir
3664else
3665  am_cv_CC_dependencies_compiler_type=none
3666fi
3667
3668fi
3669echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3670echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3671CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3672
3673
3674
3675if
3676  test "x$enable_dependency_tracking" != xno \
3677  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3678  am__fastdepCC_TRUE=
3679  am__fastdepCC_FALSE='#'
3680else
3681  am__fastdepCC_TRUE='#'
3682  am__fastdepCC_FALSE=
3683fi
3684
3685
3686
3687ac_ext=c
3688ac_cpp='$CPP $CPPFLAGS'
3689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692
3693if test x"" = x; then
3694  hdr="#include <dlfcn.h>"
3695else
3696  hdr=""
3697fi
3698
3699for ac_header in dlfcn.h
3700do
3701as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3702echo "$as_me:$LINENO: checking for $ac_header" >&5
3703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3704if eval "test \"\${$as_ac_Header+set}\" = set"; then
3705  echo $ECHO_N "(cached) $ECHO_C" >&6
3706else
3707  cat >conftest.$ac_ext <<_ACEOF
3708/* confdefs.h.  */
3709_ACEOF
3710cat confdefs.h >>conftest.$ac_ext
3711cat >>conftest.$ac_ext <<_ACEOF
3712/* end confdefs.h.  */
3713$hdr
3714
3715#include <$ac_header>
3716_ACEOF
3717rm -f conftest.$ac_objext
3718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719  (eval $ac_compile) 2>conftest.er1
3720  ac_status=$?
3721  grep -v '^ *+' conftest.er1 >conftest.err
3722  rm -f conftest.er1
3723  cat conftest.err >&5
3724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725  (exit $ac_status); } &&
3726         { ac_try='test -z "$ac_c_werror_flag"
3727                         || test ! -s conftest.err'
3728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729  (eval $ac_try) 2>&5
3730  ac_status=$?
3731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732  (exit $ac_status); }; } &&
3733         { ac_try='test -s conftest.$ac_objext'
3734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735  (eval $ac_try) 2>&5
3736  ac_status=$?
3737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738  (exit $ac_status); }; }; then
3739  eval "$as_ac_Header=yes"
3740else
3741  echo "$as_me: failed program was:" >&5
3742sed 's/^/| /' conftest.$ac_ext >&5
3743
3744eval "$as_ac_Header=no"
3745fi
3746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3747fi
3748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3750if test `eval echo '${'$as_ac_Header'}'` = yes; then
3751  cat >>confdefs.h <<_ACEOF
3752#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3753_ACEOF
3754
3755fi
3756
3757done
3758
3759
3760ac_ext=c
3761ac_cpp='$CPP $CPPFLAGS'
3762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765
3766
3767# Check whether --enable-shared or --disable-shared was given.
3768if test "${enable_shared+set}" = set; then
3769  enableval="$enable_shared"
3770  p=${PACKAGE-default}
3771    case $enableval in
3772    yes) enable_shared=yes ;;
3773    no) enable_shared=no ;;
3774    *)
3775      enable_shared=no
3776      # Look at the argument we got.  We use all the common list separators.
3777      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3778      for pkg in $enableval; do
3779        IFS="$lt_save_ifs"
3780        if test "X$pkg" = "X$p"; then
3781          enable_shared=yes
3782        fi
3783      done
3784      IFS="$lt_save_ifs"
3785      ;;
3786    esac
3787else
3788  enable_shared=yes
3789fi;
3790
3791# Check whether --enable-fast-install or --disable-fast-install was given.
3792if test "${enable_fast_install+set}" = set; then
3793  enableval="$enable_fast_install"
3794  p=${PACKAGE-default}
3795    case $enableval in
3796    yes) enable_fast_install=yes ;;
3797    no) enable_fast_install=no ;;
3798    *)
3799      enable_fast_install=no
3800      # Look at the argument we got.  We use all the common list separators.
3801      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3802      for pkg in $enableval; do
3803        IFS="$lt_save_ifs"
3804        if test "X$pkg" = "X$p"; then
3805          enable_fast_install=yes
3806        fi
3807      done
3808      IFS="$lt_save_ifs"
3809      ;;
3810    esac
3811else
3812  enable_fast_install=yes
3813fi;
3814
3815echo "$as_me:$LINENO: checking host system type" >&5
3816echo $ECHO_N "checking host system type... $ECHO_C" >&6
3817if test "${ac_cv_host+set}" = set; then
3818  echo $ECHO_N "(cached) $ECHO_C" >&6
3819else
3820  ac_cv_host_alias=$host_alias
3821test -z "$ac_cv_host_alias" &&
3822  ac_cv_host_alias=$ac_cv_build_alias
3823ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3824  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3825echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3826   { (exit 1); exit 1; }; }
3827
3828fi
3829echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3830echo "${ECHO_T}$ac_cv_host" >&6
3831host=$ac_cv_host
3832host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3833host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3834host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3835
3836
3837echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3838echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3839if test "${lt_cv_path_SED+set}" = set; then
3840  echo $ECHO_N "(cached) $ECHO_C" >&6
3841else
3842  # Loop through the user's path and test for sed and gsed.
3843# Then use that list of sed's as ones to test for truncation.
3844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845for as_dir in $PATH
3846do
3847  IFS=$as_save_IFS
3848  test -z "$as_dir" && as_dir=.
3849  for lt_ac_prog in sed gsed; do
3850    for ac_exec_ext in '' $ac_executable_extensions; do
3851      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3852        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3853      fi
3854    done
3855  done
3856done
3857lt_ac_max=0
3858lt_ac_count=0
3859# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3860# along with /bin/sed that truncates output.
3861for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3862  test ! -f $lt_ac_sed && continue
3863  cat /dev/null > conftest.in
3864  lt_ac_count=0
3865  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3866  # Check for GNU sed and select it if it is found.
3867  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3868    lt_cv_path_SED=$lt_ac_sed
3869    break
3870  fi
3871  while true; do
3872    cat conftest.in conftest.in >conftest.tmp
3873    mv conftest.tmp conftest.in
3874    cp conftest.in conftest.nl
3875    echo >>conftest.nl
3876    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3877    cmp -s conftest.out conftest.nl || break
3878    # 10000 chars as input seems more than enough
3879    test $lt_ac_count -gt 10 && break
3880    lt_ac_count=`expr $lt_ac_count + 1`
3881    if test $lt_ac_count -gt $lt_ac_max; then
3882      lt_ac_max=$lt_ac_count
3883      lt_cv_path_SED=$lt_ac_sed
3884    fi
3885  done
3886done
3887
3888fi
3889
3890SED=$lt_cv_path_SED
3891echo "$as_me:$LINENO: result: $SED" >&5
3892echo "${ECHO_T}$SED" >&6
3893
3894
3895# Check whether --with-gnu-ld or --without-gnu-ld was given.
3896if test "${with_gnu_ld+set}" = set; then
3897  withval="$with_gnu_ld"
3898  test "$withval" = no || with_gnu_ld=yes
3899else
3900  with_gnu_ld=no
3901fi;
3902ac_prog=ld
3903if test "$GCC" = yes; then
3904  # Check if gcc -print-prog-name=ld gives a path.
3905  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3906echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3907  case $host in
3908  *-*-mingw*)
3909    # gcc leaves a trailing carriage return which upsets mingw
3910    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3911  *)
3912    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3913  esac
3914  case $ac_prog in
3915    # Accept absolute paths.
3916    [\\/]* | ?:[\\/]*)
3917      re_direlt='/[^/][^/]*/\.\./'
3918      # Canonicalize the pathname of ld
3919      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3920      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3921        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3922      done
3923      test -z "$LD" && LD="$ac_prog"
3924      ;;
3925  "")
3926    # If it fails, then pretend we aren't using GCC.
3927    ac_prog=ld
3928    ;;
3929  *)
3930    # If it is relative, then search for the first ld in PATH.
3931    with_gnu_ld=unknown
3932    ;;
3933  esac
3934elif test "$with_gnu_ld" = yes; then
3935  echo "$as_me:$LINENO: checking for GNU ld" >&5
3936echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3937else
3938  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3939echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3940fi
3941if test "${lt_cv_path_LD+set}" = set; then
3942  echo $ECHO_N "(cached) $ECHO_C" >&6
3943else
3944  if test -z "$LD"; then
3945  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3946  for ac_dir in $PATH; do
3947    IFS="$lt_save_ifs"
3948    test -z "$ac_dir" && ac_dir=.
3949    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3950      lt_cv_path_LD="$ac_dir/$ac_prog"
3951      # Check to see if the program is GNU ld.  I'd rather use --version,
3952      # but apparently some variants of GNU ld only accept -v.
3953      # Break only if it was the GNU/non-GNU ld that we prefer.
3954      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3955      *GNU* | *'with BFD'*)
3956        test "$with_gnu_ld" != no && break
3957        ;;
3958      *)
3959        test "$with_gnu_ld" != yes && break
3960        ;;
3961      esac
3962    fi
3963  done
3964  IFS="$lt_save_ifs"
3965else
3966  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3967fi
3968fi
3969
3970LD="$lt_cv_path_LD"
3971if test -n "$LD"; then
3972  echo "$as_me:$LINENO: result: $LD" >&5
3973echo "${ECHO_T}$LD" >&6
3974else
3975  echo "$as_me:$LINENO: result: no" >&5
3976echo "${ECHO_T}no" >&6
3977fi
3978test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3979echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3980   { (exit 1); exit 1; }; }
3981echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3982echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3983if test "${lt_cv_prog_gnu_ld+set}" = set; then
3984  echo $ECHO_N "(cached) $ECHO_C" >&6
3985else
3986  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3987case `$LD -v 2>&1 </dev/null` in
3988*GNU* | *'with BFD'*)
3989  lt_cv_prog_gnu_ld=yes
3990  ;;
3991*)
3992  lt_cv_prog_gnu_ld=no
3993  ;;
3994esac
3995fi
3996echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3997echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3998with_gnu_ld=$lt_cv_prog_gnu_ld
3999
4000
4001echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4002echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4003if test "${lt_cv_ld_reload_flag+set}" = set; then
4004  echo $ECHO_N "(cached) $ECHO_C" >&6
4005else
4006  lt_cv_ld_reload_flag='-r'
4007fi
4008echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4009echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4010reload_flag=$lt_cv_ld_reload_flag
4011case $reload_flag in
4012"" | " "*) ;;
4013*) reload_flag=" $reload_flag" ;;
4014esac
4015reload_cmds='$LD$reload_flag -o $output$reload_objs'
4016case $host_os in
4017  darwin*)
4018    if test "$GCC" = yes; then
4019      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4020    else
4021      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4022    fi
4023    ;;
4024esac
4025
4026echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4027echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4028if test "${lt_cv_path_NM+set}" = set; then
4029  echo $ECHO_N "(cached) $ECHO_C" >&6
4030else
4031  if test -n "$NM"; then
4032  # Let the user override the test.
4033  lt_cv_path_NM="$NM"
4034else
4035  lt_nm_to_check="${ac_tool_prefix}nm"
4036  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4037    lt_nm_to_check="$lt_nm_to_check nm"
4038  fi
4039  for lt_tmp_nm in $lt_nm_to_check; do
4040    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4041    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4042      IFS="$lt_save_ifs"
4043      test -z "$ac_dir" && ac_dir=.
4044      tmp_nm="$ac_dir/$lt_tmp_nm"
4045      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4046        # Check to see if the nm accepts a BSD-compat flag.
4047        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4048        #   nm: unknown option "B" ignored
4049        # Tru64's nm complains that /dev/null is an invalid object file
4050        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4051        */dev/null* | *'Invalid file or object type'*)
4052          lt_cv_path_NM="$tmp_nm -B"
4053          break
4054          ;;
4055        *)
4056          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4057          */dev/null*)
4058            lt_cv_path_NM="$tmp_nm -p"
4059            break
4060            ;;
4061          *)
4062            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4063            continue # so that we can try to find one that supports BSD flags
4064            ;;
4065          esac
4066          ;;
4067        esac
4068      fi
4069    done
4070    IFS="$lt_save_ifs"
4071  done
4072  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4073fi
4074fi
4075echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4076echo "${ECHO_T}$lt_cv_path_NM" >&6
4077NM="$lt_cv_path_NM"
4078
4079echo "$as_me:$LINENO: checking whether ln -s works" >&5
4080echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4081LN_S=$as_ln_s
4082if test "$LN_S" = "ln -s"; then
4083  echo "$as_me:$LINENO: result: yes" >&5
4084echo "${ECHO_T}yes" >&6
4085else
4086  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4087echo "${ECHO_T}no, using $LN_S" >&6
4088fi
4089
4090echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4091echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4092if test "${lt_cv_deplibs_check_method+set}" = set; then
4093  echo $ECHO_N "(cached) $ECHO_C" >&6
4094else
4095  lt_cv_file_magic_cmd='$MAGIC_CMD'
4096lt_cv_file_magic_test_file=
4097lt_cv_deplibs_check_method='unknown'
4098# Need to set the preceding variable on all platforms that support
4099# interlibrary dependencies.
4100# 'none' -- dependencies not supported.
4101# `unknown' -- same as none, but documents that we really don't know.
4102# 'pass_all' -- all dependencies passed with no checks.
4103# 'test_compile' -- check by making test program.
4104# 'file_magic [[regex]]' -- check by looking for files in library path
4105# which responds to the $file_magic_cmd with a given extended regex.
4106# If you have `file' or equivalent on your system and you're not sure
4107# whether `pass_all' will *always* work, you probably want this one.
4108
4109case $host_os in
4110aix4* | aix5*)
4111  lt_cv_deplibs_check_method=pass_all
4112  ;;
4113
4114beos*)
4115  lt_cv_deplibs_check_method=pass_all
4116  ;;
4117
4118bsdi[45]*)
4119  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4120  lt_cv_file_magic_cmd='/usr/bin/file -L'
4121  lt_cv_file_magic_test_file=/shlib/libc.so
4122  ;;
4123
4124cygwin*)
4125  # func_win32_libid is a shell function defined in ltmain.sh
4126  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4127  lt_cv_file_magic_cmd='func_win32_libid'
4128  ;;
4129
4130mingw* | pw32*)
4131  # Base MSYS/MinGW do not provide the 'file' command needed by
4132  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4133  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4134  lt_cv_file_magic_cmd='$OBJDUMP -f'
4135  ;;
4136
4137darwin* | rhapsody*)
4138  lt_cv_deplibs_check_method=pass_all
4139  ;;
4140
4141freebsd* | kfreebsd*-gnu | dragonfly*)
4142  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4143    case $host_cpu in
4144    i*86 )
4145      # Not sure whether the presence of OpenBSD here was a mistake.
4146      # Let's accept both of them until this is cleared up.
4147      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4148      lt_cv_file_magic_cmd=/usr/bin/file
4149      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4150      ;;
4151    esac
4152  else
4153    lt_cv_deplibs_check_method=pass_all
4154  fi
4155  ;;
4156
4157gnu*)
4158  lt_cv_deplibs_check_method=pass_all
4159  ;;
4160
4161hpux10.20* | hpux11*)
4162  lt_cv_file_magic_cmd=/usr/bin/file
4163  case $host_cpu in
4164  ia64*)
4165    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4166    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4167    ;;
4168  hppa*64*)
4169    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]'
4170    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4171    ;;
4172  *)
4173    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4174    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4175    ;;
4176  esac
4177  ;;
4178
4179interix3*)
4180  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4181  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4182  ;;
4183
4184irix5* | irix6* | nonstopux*)
4185  case $LD in
4186  *-32|*"-32 ") libmagic=32-bit;;
4187  *-n32|*"-n32 ") libmagic=N32;;
4188  *-64|*"-64 ") libmagic=64-bit;;
4189  *) libmagic=never-match;;
4190  esac
4191  lt_cv_deplibs_check_method=pass_all
4192  ;;
4193
4194# This must be Linux ELF.
4195linux*)
4196  lt_cv_deplibs_check_method=pass_all
4197  ;;
4198
4199netbsd*)
4200  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4201    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4202  else
4203    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4204  fi
4205  ;;
4206
4207newos6*)
4208  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4209  lt_cv_file_magic_cmd=/usr/bin/file
4210  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4211  ;;
4212
4213nto-qnx*)
4214  lt_cv_deplibs_check_method=unknown
4215  ;;
4216
4217openbsd*)
4218  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4219    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4220  else
4221    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4222  fi
4223  ;;
4224
4225osf3* | osf4* | osf5*)
4226  lt_cv_deplibs_check_method=pass_all
4227  ;;
4228
4229solaris*)
4230  lt_cv_deplibs_check_method=pass_all
4231  ;;
4232
4233sysv4 | sysv4.3*)
4234  case $host_vendor in
4235  motorola)
4236    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]'
4237    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4238    ;;
4239  ncr)
4240    lt_cv_deplibs_check_method=pass_all
4241    ;;
4242  sequent)
4243    lt_cv_file_magic_cmd='/bin/file'
4244    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4245    ;;
4246  sni)
4247    lt_cv_file_magic_cmd='/bin/file'
4248    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4249    lt_cv_file_magic_test_file=/lib/libc.so
4250    ;;
4251  siemens)
4252    lt_cv_deplibs_check_method=pass_all
4253    ;;
4254  pc)
4255    lt_cv_deplibs_check_method=pass_all
4256    ;;
4257  esac
4258  ;;
4259
4260sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4261  lt_cv_deplibs_check_method=pass_all
4262  ;;
4263esac
4264
4265fi
4266echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4267echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4268file_magic_cmd=$lt_cv_file_magic_cmd
4269deplibs_check_method=$lt_cv_deplibs_check_method
4270test -z "$deplibs_check_method" && deplibs_check_method=unknown
4271
4272
4273
4274
4275# If no C compiler was specified, use CC.
4276LTCC=${LTCC-"$CC"}
4277
4278# If no C compiler flags were specified, use CFLAGS.
4279LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4280
4281# Allow CC to be a program name with arguments.
4282compiler=$CC
4283
4284# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4285if test "${enable_libtool_lock+set}" = set; then
4286  enableval="$enable_libtool_lock"
4287
4288fi;
4289test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4290
4291# Some flags need to be propagated to the compiler or linker for good
4292# libtool support.
4293case $host in
4294ia64-*-hpux*)
4295  # Find out which ABI we are using.
4296  echo 'int i;' > conftest.$ac_ext
4297  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4298  (eval $ac_compile) 2>&5
4299  ac_status=$?
4300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301  (exit $ac_status); }; then
4302    case `/usr/bin/file conftest.$ac_objext` in
4303    *ELF-32*)
4304      HPUX_IA64_MODE="32"
4305      ;;
4306    *ELF-64*)
4307      HPUX_IA64_MODE="64"
4308      ;;
4309    esac
4310  fi
4311  rm -rf conftest*
4312  ;;
4313*-*-irix6*)
4314  # Find out which ABI we are using.
4315  echo '#line 4315 "configure"' > conftest.$ac_ext
4316  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4317  (eval $ac_compile) 2>&5
4318  ac_status=$?
4319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320  (exit $ac_status); }; then
4321   if test "$lt_cv_prog_gnu_ld" = yes; then
4322    case `/usr/bin/file conftest.$ac_objext` in
4323    *32-bit*)
4324      LD="${LD-ld} -melf32bsmip"
4325      ;;
4326    *N32*)
4327      LD="${LD-ld} -melf32bmipn32"
4328      ;;
4329    *64-bit*)
4330      LD="${LD-ld} -melf64bmip"
4331      ;;
4332    esac
4333   else
4334    case `/usr/bin/file conftest.$ac_objext` in
4335    *32-bit*)
4336      LD="${LD-ld} -32"
4337      ;;
4338    *N32*)
4339      LD="${LD-ld} -n32"
4340      ;;
4341    *64-bit*)
4342      LD="${LD-ld} -64"
4343      ;;
4344    esac
4345   fi
4346  fi
4347  rm -rf conftest*
4348  ;;
4349
4350x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4351  # Find out which ABI we are using.
4352  echo 'int i;' > conftest.$ac_ext
4353  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4354  (eval $ac_compile) 2>&5
4355  ac_status=$?
4356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357  (exit $ac_status); }; then
4358    case `/usr/bin/file conftest.o` in
4359    *32-bit*)
4360      case $host in
4361        x86_64-*linux*)
4362          LD="${LD-ld} -m elf_i386"
4363          ;;
4364        ppc64-*linux*|powerpc64-*linux*)
4365          LD="${LD-ld} -m elf32ppclinux"
4366          ;;
4367        s390x-*linux*)
4368          LD="${LD-ld} -m elf_s390"
4369          ;;
4370        sparc64-*linux*)
4371          LD="${LD-ld} -m elf32_sparc"
4372          ;;
4373      esac
4374      ;;
4375    *64-bit*)
4376      case $host in
4377        x86_64-*linux*)
4378          LD="${LD-ld} -m elf_x86_64"
4379          ;;
4380        ppc*-*linux*|powerpc*-*linux*)
4381          LD="${LD-ld} -m elf64ppc"
4382          ;;
4383        s390*-*linux*)
4384          LD="${LD-ld} -m elf64_s390"
4385          ;;
4386        sparc*-*linux*)
4387          LD="${LD-ld} -m elf64_sparc"
4388          ;;
4389      esac
4390      ;;
4391    esac
4392  fi
4393  rm -rf conftest*
4394  ;;
4395
4396*-*-sco3.2v5*)
4397  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4398  SAVE_CFLAGS="$CFLAGS"
4399  CFLAGS="$CFLAGS -belf"
4400  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4401echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4402if test "${lt_cv_cc_needs_belf+set}" = set; then
4403  echo $ECHO_N "(cached) $ECHO_C" >&6
4404else
4405  ac_ext=c
4406ac_cpp='$CPP $CPPFLAGS'
4407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4409ac_compiler_gnu=$ac_cv_c_compiler_gnu
4410
4411     cat >conftest.$ac_ext <<_ACEOF
4412/* confdefs.h.  */
4413_ACEOF
4414cat confdefs.h >>conftest.$ac_ext
4415cat >>conftest.$ac_ext <<_ACEOF
4416/* end confdefs.h.  */
4417
4418int
4419main ()
4420{
4421
4422  ;
4423  return 0;
4424}
4425_ACEOF
4426rm -f conftest.$ac_objext conftest$ac_exeext
4427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4428  (eval $ac_link) 2>conftest.er1
4429  ac_status=$?
4430  grep -v '^ *+' conftest.er1 >conftest.err
4431  rm -f conftest.er1
4432  cat conftest.err >&5
4433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434  (exit $ac_status); } &&
4435         { ac_try='test -z "$ac_c_werror_flag"
4436                         || test ! -s conftest.err'
4437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438  (eval $ac_try) 2>&5
4439  ac_status=$?
4440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441  (exit $ac_status); }; } &&
4442         { ac_try='test -s conftest$ac_exeext'
4443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444  (eval $ac_try) 2>&5
4445  ac_status=$?
4446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447  (exit $ac_status); }; }; then
4448  lt_cv_cc_needs_belf=yes
4449else
4450  echo "$as_me: failed program was:" >&5
4451sed 's/^/| /' conftest.$ac_ext >&5
4452
4453lt_cv_cc_needs_belf=no
4454fi
4455rm -f conftest.err conftest.$ac_objext \
4456      conftest$ac_exeext conftest.$ac_ext
4457     ac_ext=c
4458ac_cpp='$CPP $CPPFLAGS'
4459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4461ac_compiler_gnu=$ac_cv_c_compiler_gnu
4462
4463fi
4464echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4465echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4466  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4467    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4468    CFLAGS="$SAVE_CFLAGS"
4469  fi
4470  ;;
4471sparc*-*solaris*)
4472  # Find out which ABI we are using.
4473  echo 'int i;' > conftest.$ac_ext
4474  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475  (eval $ac_compile) 2>&5
4476  ac_status=$?
4477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478  (exit $ac_status); }; then
4479    case `/usr/bin/file conftest.o` in
4480    *64-bit*)
4481      case $lt_cv_prog_gnu_ld in
4482      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4483      *)    LD="${LD-ld} -64" ;;
4484      esac
4485      ;;
4486    esac
4487  fi
4488  rm -rf conftest*
4489  ;;
4490
4491
4492esac
4493
4494need_locks="$enable_libtool_lock"
4495
4496
4497ac_ext=c
4498ac_cpp='$CPP $CPPFLAGS'
4499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4503echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4504# On Suns, sometimes $CPP names a directory.
4505if test -n "$CPP" && test -d "$CPP"; then
4506  CPP=
4507fi
4508if test -z "$CPP"; then
4509  if test "${ac_cv_prog_CPP+set}" = set; then
4510  echo $ECHO_N "(cached) $ECHO_C" >&6
4511else
4512      # Double quotes because CPP needs to be expanded
4513    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4514    do
4515      ac_preproc_ok=false
4516for ac_c_preproc_warn_flag in '' yes
4517do
4518  # Use a header file that comes with gcc, so configuring glibc
4519  # with a fresh cross-compiler works.
4520  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521  # <limits.h> exists even on freestanding compilers.
4522  # On the NeXT, cc -E runs the code through the compiler's parser,
4523  # not just through cpp. "Syntax error" is here to catch this case.
4524  cat >conftest.$ac_ext <<_ACEOF
4525/* confdefs.h.  */
4526_ACEOF
4527cat confdefs.h >>conftest.$ac_ext
4528cat >>conftest.$ac_ext <<_ACEOF
4529/* end confdefs.h.  */
4530#ifdef __STDC__
4531# include <limits.h>
4532#else
4533# include <assert.h>
4534#endif
4535                     Syntax error
4536_ACEOF
4537if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4538  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4539  ac_status=$?
4540  grep -v '^ *+' conftest.er1 >conftest.err
4541  rm -f conftest.er1
4542  cat conftest.err >&5
4543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544  (exit $ac_status); } >/dev/null; then
4545  if test -s conftest.err; then
4546    ac_cpp_err=$ac_c_preproc_warn_flag
4547    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4548  else
4549    ac_cpp_err=
4550  fi
4551else
4552  ac_cpp_err=yes
4553fi
4554if test -z "$ac_cpp_err"; then
4555  :
4556else
4557  echo "$as_me: failed program was:" >&5
4558sed 's/^/| /' conftest.$ac_ext >&5
4559
4560  # Broken: fails on valid input.
4561continue
4562fi
4563rm -f conftest.err conftest.$ac_ext
4564
4565  # OK, works on sane cases.  Now check whether non-existent headers
4566  # can be detected and how.
4567  cat >conftest.$ac_ext <<_ACEOF
4568/* confdefs.h.  */
4569_ACEOF
4570cat confdefs.h >>conftest.$ac_ext
4571cat >>conftest.$ac_ext <<_ACEOF
4572/* end confdefs.h.  */
4573#include <ac_nonexistent.h>
4574_ACEOF
4575if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4576  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4577  ac_status=$?
4578  grep -v '^ *+' conftest.er1 >conftest.err
4579  rm -f conftest.er1
4580  cat conftest.err >&5
4581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582  (exit $ac_status); } >/dev/null; then
4583  if test -s conftest.err; then
4584    ac_cpp_err=$ac_c_preproc_warn_flag
4585    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4586  else
4587    ac_cpp_err=
4588  fi
4589else
4590  ac_cpp_err=yes
4591fi
4592if test -z "$ac_cpp_err"; then
4593  # Broken: success on invalid input.
4594continue
4595else
4596  echo "$as_me: failed program was:" >&5
4597sed 's/^/| /' conftest.$ac_ext >&5
4598
4599  # Passes both tests.
4600ac_preproc_ok=:
4601break
4602fi
4603rm -f conftest.err conftest.$ac_ext
4604
4605done
4606# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4607rm -f conftest.err conftest.$ac_ext
4608if $ac_preproc_ok; then
4609  break
4610fi
4611
4612    done
4613    ac_cv_prog_CPP=$CPP
4614
4615fi
4616  CPP=$ac_cv_prog_CPP
4617else
4618  ac_cv_prog_CPP=$CPP
4619fi
4620echo "$as_me:$LINENO: result: $CPP" >&5
4621echo "${ECHO_T}$CPP" >&6
4622ac_preproc_ok=false
4623for ac_c_preproc_warn_flag in '' yes
4624do
4625  # Use a header file that comes with gcc, so configuring glibc
4626  # with a fresh cross-compiler works.
4627  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4628  # <limits.h> exists even on freestanding compilers.
4629  # On the NeXT, cc -E runs the code through the compiler's parser,
4630  # not just through cpp. "Syntax error" is here to catch this case.
4631  cat >conftest.$ac_ext <<_ACEOF
4632/* confdefs.h.  */
4633_ACEOF
4634cat confdefs.h >>conftest.$ac_ext
4635cat >>conftest.$ac_ext <<_ACEOF
4636/* end confdefs.h.  */
4637#ifdef __STDC__
4638# include <limits.h>
4639#else
4640# include <assert.h>
4641#endif
4642                     Syntax error
4643_ACEOF
4644if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4645  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4646  ac_status=$?
4647  grep -v '^ *+' conftest.er1 >conftest.err
4648  rm -f conftest.er1
4649  cat conftest.err >&5
4650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651  (exit $ac_status); } >/dev/null; then
4652  if test -s conftest.err; then
4653    ac_cpp_err=$ac_c_preproc_warn_flag
4654    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4655  else
4656    ac_cpp_err=
4657  fi
4658else
4659  ac_cpp_err=yes
4660fi
4661if test -z "$ac_cpp_err"; then
4662  :
4663else
4664  echo "$as_me: failed program was:" >&5
4665sed 's/^/| /' conftest.$ac_ext >&5
4666
4667  # Broken: fails on valid input.
4668continue
4669fi
4670rm -f conftest.err conftest.$ac_ext
4671
4672  # OK, works on sane cases.  Now check whether non-existent headers
4673  # can be detected and how.
4674  cat >conftest.$ac_ext <<_ACEOF
4675/* confdefs.h.  */
4676_ACEOF
4677cat confdefs.h >>conftest.$ac_ext
4678cat >>conftest.$ac_ext <<_ACEOF
4679/* end confdefs.h.  */
4680#include <ac_nonexistent.h>
4681_ACEOF
4682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4683  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4684  ac_status=$?
4685  grep -v '^ *+' conftest.er1 >conftest.err
4686  rm -f conftest.er1
4687  cat conftest.err >&5
4688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689  (exit $ac_status); } >/dev/null; then
4690  if test -s conftest.err; then
4691    ac_cpp_err=$ac_c_preproc_warn_flag
4692    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4693  else
4694    ac_cpp_err=
4695  fi
4696else
4697  ac_cpp_err=yes
4698fi
4699if test -z "$ac_cpp_err"; then
4700  # Broken: success on invalid input.
4701continue
4702else
4703  echo "$as_me: failed program was:" >&5
4704sed 's/^/| /' conftest.$ac_ext >&5
4705
4706  # Passes both tests.
4707ac_preproc_ok=:
4708break
4709fi
4710rm -f conftest.err conftest.$ac_ext
4711
4712done
4713# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4714rm -f conftest.err conftest.$ac_ext
4715if $ac_preproc_ok; then
4716  :
4717else
4718  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4719See \`config.log' for more details." >&5
4720echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4721See \`config.log' for more details." >&2;}
4722   { (exit 1); exit 1; }; }
4723fi
4724
4725ac_ext=c
4726ac_cpp='$CPP $CPPFLAGS'
4727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730
4731
4732echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4733echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4734if test "${ac_cv_header_stdc+set}" = set; then
4735  echo $ECHO_N "(cached) $ECHO_C" >&6
4736else
4737  cat >conftest.$ac_ext <<_ACEOF
4738/* confdefs.h.  */
4739_ACEOF
4740cat confdefs.h >>conftest.$ac_ext
4741cat >>conftest.$ac_ext <<_ACEOF
4742/* end confdefs.h.  */
4743#include <stdlib.h>
4744#include <stdarg.h>
4745#include <string.h>
4746#include <float.h>
4747
4748int
4749main ()
4750{
4751
4752  ;
4753  return 0;
4754}
4755_ACEOF
4756rm -f conftest.$ac_objext
4757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758  (eval $ac_compile) 2>conftest.er1
4759  ac_status=$?
4760  grep -v '^ *+' conftest.er1 >conftest.err
4761  rm -f conftest.er1
4762  cat conftest.err >&5
4763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764  (exit $ac_status); } &&
4765         { ac_try='test -z "$ac_c_werror_flag"
4766                         || test ! -s conftest.err'
4767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768  (eval $ac_try) 2>&5
4769  ac_status=$?
4770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771  (exit $ac_status); }; } &&
4772         { ac_try='test -s conftest.$ac_objext'
4773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774  (eval $ac_try) 2>&5
4775  ac_status=$?
4776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777  (exit $ac_status); }; }; then
4778  ac_cv_header_stdc=yes
4779else
4780  echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
4782
4783ac_cv_header_stdc=no
4784fi
4785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4786
4787if test $ac_cv_header_stdc = yes; then
4788  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4789  cat >conftest.$ac_ext <<_ACEOF
4790/* confdefs.h.  */
4791_ACEOF
4792cat confdefs.h >>conftest.$ac_ext
4793cat >>conftest.$ac_ext <<_ACEOF
4794/* end confdefs.h.  */
4795#include <string.h>
4796
4797_ACEOF
4798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4799  $EGREP "memchr" >/dev/null 2>&1; then
4800  :
4801else
4802  ac_cv_header_stdc=no
4803fi
4804rm -f conftest*
4805
4806fi
4807
4808if test $ac_cv_header_stdc = yes; then
4809  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4810  cat >conftest.$ac_ext <<_ACEOF
4811/* confdefs.h.  */
4812_ACEOF
4813cat confdefs.h >>conftest.$ac_ext
4814cat >>conftest.$ac_ext <<_ACEOF
4815/* end confdefs.h.  */
4816#include <stdlib.h>
4817
4818_ACEOF
4819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4820  $EGREP "free" >/dev/null 2>&1; then
4821  :
4822else
4823  ac_cv_header_stdc=no
4824fi
4825rm -f conftest*
4826
4827fi
4828
4829if test $ac_cv_header_stdc = yes; then
4830  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4831  if test "$cross_compiling" = yes; then
4832  :
4833else
4834  cat >conftest.$ac_ext <<_ACEOF
4835/* confdefs.h.  */
4836_ACEOF
4837cat confdefs.h >>conftest.$ac_ext
4838cat >>conftest.$ac_ext <<_ACEOF
4839/* end confdefs.h.  */
4840#include <ctype.h>
4841#if ((' ' & 0x0FF) == 0x020)
4842# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4843# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4844#else
4845# define ISLOWER(c) \
4846                   (('a' <= (c) && (c) <= 'i') \
4847                     || ('j' <= (c) && (c) <= 'r') \
4848                     || ('s' <= (c) && (c) <= 'z'))
4849# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4850#endif
4851
4852#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4853int
4854main ()
4855{
4856  int i;
4857  for (i = 0; i < 256; i++)
4858    if (XOR (islower (i), ISLOWER (i))
4859        || toupper (i) != TOUPPER (i))
4860      exit(2);
4861  exit (0);
4862}
4863_ACEOF
4864rm -f conftest$ac_exeext
4865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866  (eval $ac_link) 2>&5
4867  ac_status=$?
4868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871  (eval $ac_try) 2>&5
4872  ac_status=$?
4873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874  (exit $ac_status); }; }; then
4875  :
4876else
4877  echo "$as_me: program exited with status $ac_status" >&5
4878echo "$as_me: failed program was:" >&5
4879sed 's/^/| /' conftest.$ac_ext >&5
4880
4881( exit $ac_status )
4882ac_cv_header_stdc=no
4883fi
4884rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4885fi
4886fi
4887fi
4888echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4889echo "${ECHO_T}$ac_cv_header_stdc" >&6
4890if test $ac_cv_header_stdc = yes; then
4891
4892cat >>confdefs.h <<\_ACEOF
4893#define STDC_HEADERS 1
4894_ACEOF
4895
4896fi
4897
4898# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4909                  inttypes.h stdint.h unistd.h
4910do
4911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4912echo "$as_me:$LINENO: checking for $ac_header" >&5
4913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4914if eval "test \"\${$as_ac_Header+set}\" = set"; then
4915  echo $ECHO_N "(cached) $ECHO_C" >&6
4916else
4917  cat >conftest.$ac_ext <<_ACEOF
4918/* confdefs.h.  */
4919_ACEOF
4920cat confdefs.h >>conftest.$ac_ext
4921cat >>conftest.$ac_ext <<_ACEOF
4922/* end confdefs.h.  */
4923$ac_includes_default
4924
4925#include <$ac_header>
4926_ACEOF
4927rm -f conftest.$ac_objext
4928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4929  (eval $ac_compile) 2>conftest.er1
4930  ac_status=$?
4931  grep -v '^ *+' conftest.er1 >conftest.err
4932  rm -f conftest.er1
4933  cat conftest.err >&5
4934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935  (exit $ac_status); } &&
4936         { ac_try='test -z "$ac_c_werror_flag"
4937                         || test ! -s conftest.err'
4938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939  (eval $ac_try) 2>&5
4940  ac_status=$?
4941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942  (exit $ac_status); }; } &&
4943         { ac_try='test -s conftest.$ac_objext'
4944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945  (eval $ac_try) 2>&5
4946  ac_status=$?
4947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948  (exit $ac_status); }; }; then
4949  eval "$as_ac_Header=yes"
4950else
4951  echo "$as_me: failed program was:" >&5
4952sed 's/^/| /' conftest.$ac_ext >&5
4953
4954eval "$as_ac_Header=no"
4955fi
4956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4957fi
4958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4959echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4960if test `eval echo '${'$as_ac_Header'}'` = yes; then
4961  cat >>confdefs.h <<_ACEOF
4962#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4963_ACEOF
4964
4965fi
4966
4967done
4968
4969
4970
4971for ac_header in dlfcn.h
4972do
4973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4974if eval "test \"\${$as_ac_Header+set}\" = set"; then
4975  echo "$as_me:$LINENO: checking for $ac_header" >&5
4976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4977if eval "test \"\${$as_ac_Header+set}\" = set"; then
4978  echo $ECHO_N "(cached) $ECHO_C" >&6
4979fi
4980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4982else
4983  # Is the header compilable?
4984echo "$as_me:$LINENO: checking $ac_header usability" >&5
4985echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4986cat >conftest.$ac_ext <<_ACEOF
4987/* confdefs.h.  */
4988_ACEOF
4989cat confdefs.h >>conftest.$ac_ext
4990cat >>conftest.$ac_ext <<_ACEOF
4991/* end confdefs.h.  */
4992$ac_includes_default
4993#include <$ac_header>
4994_ACEOF
4995rm -f conftest.$ac_objext
4996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4997  (eval $ac_compile) 2>conftest.er1
4998  ac_status=$?
4999  grep -v '^ *+' conftest.er1 >conftest.err
5000  rm -f conftest.er1
5001  cat conftest.err >&5
5002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003  (exit $ac_status); } &&
5004         { ac_try='test -z "$ac_c_werror_flag"
5005                         || test ! -s conftest.err'
5006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007  (eval $ac_try) 2>&5
5008  ac_status=$?
5009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010  (exit $ac_status); }; } &&
5011         { ac_try='test -s conftest.$ac_objext'
5012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013  (eval $ac_try) 2>&5
5014  ac_status=$?
5015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016  (exit $ac_status); }; }; then
5017  ac_header_compiler=yes
5018else
5019  echo "$as_me: failed program was:" >&5
5020sed 's/^/| /' conftest.$ac_ext >&5
5021
5022ac_header_compiler=no
5023fi
5024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5025echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5026echo "${ECHO_T}$ac_header_compiler" >&6
5027
5028# Is the header present?
5029echo "$as_me:$LINENO: checking $ac_header presence" >&5
5030echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5031cat >conftest.$ac_ext <<_ACEOF
5032/* confdefs.h.  */
5033_ACEOF
5034cat confdefs.h >>conftest.$ac_ext
5035cat >>conftest.$ac_ext <<_ACEOF
5036/* end confdefs.h.  */
5037#include <$ac_header>
5038_ACEOF
5039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5040  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5041  ac_status=$?
5042  grep -v '^ *+' conftest.er1 >conftest.err
5043  rm -f conftest.er1
5044  cat conftest.err >&5
5045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046  (exit $ac_status); } >/dev/null; then
5047  if test -s conftest.err; then
5048    ac_cpp_err=$ac_c_preproc_warn_flag
5049    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5050  else
5051    ac_cpp_err=
5052  fi
5053else
5054  ac_cpp_err=yes
5055fi
5056if test -z "$ac_cpp_err"; then
5057  ac_header_preproc=yes
5058else
5059  echo "$as_me: failed program was:" >&5
5060sed 's/^/| /' conftest.$ac_ext >&5
5061
5062  ac_header_preproc=no
5063fi
5064rm -f conftest.err conftest.$ac_ext
5065echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5066echo "${ECHO_T}$ac_header_preproc" >&6
5067
5068# So?  What about this header?
5069case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5070  yes:no: )
5071    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5072echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5073    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5074echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5075    ac_header_preproc=yes
5076    ;;
5077  no:yes:* )
5078    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5079echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5080    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5081echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5082    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5083echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5084    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5085echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5086    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5088    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5089echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5090    (
5091      cat <<\_ASBOX
5092## --------------------------------------------------------------- ##
5093## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5094## --------------------------------------------------------------- ##
5095_ASBOX
5096    ) |
5097      sed "s/^/$as_me: WARNING:     /" >&2
5098    ;;
5099esac
5100echo "$as_me:$LINENO: checking for $ac_header" >&5
5101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5102if eval "test \"\${$as_ac_Header+set}\" = set"; then
5103  echo $ECHO_N "(cached) $ECHO_C" >&6
5104else
5105  eval "$as_ac_Header=\$ac_header_preproc"
5106fi
5107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5109
5110fi
5111if test `eval echo '${'$as_ac_Header'}'` = yes; then
5112  cat >>confdefs.h <<_ACEOF
5113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5114_ACEOF
5115
5116fi
5117
5118done
5119
5120ac_ext=cc
5121ac_cpp='$CXXCPP $CPPFLAGS'
5122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5125if test -n "$ac_tool_prefix"; then
5126  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5127  do
5128    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5129set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5130echo "$as_me:$LINENO: checking for $ac_word" >&5
5131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5132if test "${ac_cv_prog_CXX+set}" = set; then
5133  echo $ECHO_N "(cached) $ECHO_C" >&6
5134else
5135  if test -n "$CXX"; then
5136  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5137else
5138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139for as_dir in $PATH
5140do
5141  IFS=$as_save_IFS
5142  test -z "$as_dir" && as_dir=.
5143  for ac_exec_ext in '' $ac_executable_extensions; do
5144  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5146    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147    break 2
5148  fi
5149done
5150done
5151
5152fi
5153fi
5154CXX=$ac_cv_prog_CXX
5155if test -n "$CXX"; then
5156  echo "$as_me:$LINENO: result: $CXX" >&5
5157echo "${ECHO_T}$CXX" >&6
5158else
5159  echo "$as_me:$LINENO: result: no" >&5
5160echo "${ECHO_T}no" >&6
5161fi
5162
5163    test -n "$CXX" && break
5164  done
5165fi
5166if test -z "$CXX"; then
5167  ac_ct_CXX=$CXX
5168  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5169do
5170  # Extract the first word of "$ac_prog", so it can be a program name with args.
5171set dummy $ac_prog; ac_word=$2
5172echo "$as_me:$LINENO: checking for $ac_word" >&5
5173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5175  echo $ECHO_N "(cached) $ECHO_C" >&6
5176else
5177  if test -n "$ac_ct_CXX"; then
5178  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5179else
5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183  IFS=$as_save_IFS
5184  test -z "$as_dir" && as_dir=.
5185  for ac_exec_ext in '' $ac_executable_extensions; do
5186  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187    ac_cv_prog_ac_ct_CXX="$ac_prog"
5188    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189    break 2
5190  fi
5191done
5192done
5193
5194fi
5195fi
5196ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5197if test -n "$ac_ct_CXX"; then
5198  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5199echo "${ECHO_T}$ac_ct_CXX" >&6
5200else
5201  echo "$as_me:$LINENO: result: no" >&5
5202echo "${ECHO_T}no" >&6
5203fi
5204
5205  test -n "$ac_ct_CXX" && break
5206done
5207test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5208
5209  CXX=$ac_ct_CXX
5210fi
5211
5212
5213# Provide some information about the compiler.
5214echo "$as_me:$LINENO:" \
5215     "checking for C++ compiler version" >&5
5216ac_compiler=`set X $ac_compile; echo $2`
5217{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5218  (eval $ac_compiler --version </dev/null >&5) 2>&5
5219  ac_status=$?
5220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221  (exit $ac_status); }
5222{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5223  (eval $ac_compiler -v </dev/null >&5) 2>&5
5224  ac_status=$?
5225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226  (exit $ac_status); }
5227{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5228  (eval $ac_compiler -V </dev/null >&5) 2>&5
5229  ac_status=$?
5230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231  (exit $ac_status); }
5232
5233echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5234echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5235if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5236  echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238  cat >conftest.$ac_ext <<_ACEOF
5239/* confdefs.h.  */
5240_ACEOF
5241cat confdefs.h >>conftest.$ac_ext
5242cat >>conftest.$ac_ext <<_ACEOF
5243/* end confdefs.h.  */
5244
5245int
5246main ()
5247{
5248#ifndef __GNUC__
5249       choke me
5250#endif
5251
5252  ;
5253  return 0;
5254}
5255_ACEOF
5256rm -f conftest.$ac_objext
5257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5258  (eval $ac_compile) 2>conftest.er1
5259  ac_status=$?
5260  grep -v '^ *+' conftest.er1 >conftest.err
5261  rm -f conftest.er1
5262  cat conftest.err >&5
5263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264  (exit $ac_status); } &&
5265         { ac_try='test -z "$ac_cxx_werror_flag"
5266                         || test ! -s conftest.err'
5267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268  (eval $ac_try) 2>&5
5269  ac_status=$?
5270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271  (exit $ac_status); }; } &&
5272         { ac_try='test -s conftest.$ac_objext'
5273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274  (eval $ac_try) 2>&5
5275  ac_status=$?
5276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277  (exit $ac_status); }; }; then
5278  ac_compiler_gnu=yes
5279else
5280  echo "$as_me: failed program was:" >&5
5281sed 's/^/| /' conftest.$ac_ext >&5
5282
5283ac_compiler_gnu=no
5284fi
5285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5286ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5287
5288fi
5289echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5290echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5291GXX=`test $ac_compiler_gnu = yes && echo yes`
5292ac_test_CXXFLAGS=${CXXFLAGS+set}
5293ac_save_CXXFLAGS=$CXXFLAGS
5294CXXFLAGS="-g"
5295echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5296echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5297if test "${ac_cv_prog_cxx_g+set}" = set; then
5298  echo $ECHO_N "(cached) $ECHO_C" >&6
5299else
5300  cat >conftest.$ac_ext <<_ACEOF
5301/* confdefs.h.  */
5302_ACEOF
5303cat confdefs.h >>conftest.$ac_ext
5304cat >>conftest.$ac_ext <<_ACEOF
5305/* end confdefs.h.  */
5306
5307int
5308main ()
5309{
5310
5311  ;
5312  return 0;
5313}
5314_ACEOF
5315rm -f conftest.$ac_objext
5316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317  (eval $ac_compile) 2>conftest.er1
5318  ac_status=$?
5319  grep -v '^ *+' conftest.er1 >conftest.err
5320  rm -f conftest.er1
5321  cat conftest.err >&5
5322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323  (exit $ac_status); } &&
5324         { ac_try='test -z "$ac_cxx_werror_flag"
5325                         || test ! -s conftest.err'
5326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327  (eval $ac_try) 2>&5
5328  ac_status=$?
5329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330  (exit $ac_status); }; } &&
5331         { ac_try='test -s conftest.$ac_objext'
5332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333  (eval $ac_try) 2>&5
5334  ac_status=$?
5335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336  (exit $ac_status); }; }; then
5337  ac_cv_prog_cxx_g=yes
5338else
5339  echo "$as_me: failed program was:" >&5
5340sed 's/^/| /' conftest.$ac_ext >&5
5341
5342ac_cv_prog_cxx_g=no
5343fi
5344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5345fi
5346echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5347echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5348if test "$ac_test_CXXFLAGS" = set; then
5349  CXXFLAGS=$ac_save_CXXFLAGS
5350elif test $ac_cv_prog_cxx_g = yes; then
5351  if test "$GXX" = yes; then
5352    CXXFLAGS="-g -O2"
5353  else
5354    CXXFLAGS="-g"
5355  fi
5356else
5357  if test "$GXX" = yes; then
5358    CXXFLAGS="-O2"
5359  else
5360    CXXFLAGS=
5361  fi
5362fi
5363for ac_declaration in \
5364   '' \
5365   'extern "C" void std::exit (int) throw (); using std::exit;' \
5366   'extern "C" void std::exit (int); using std::exit;' \
5367   'extern "C" void exit (int) throw ();' \
5368   'extern "C" void exit (int);' \
5369   'void exit (int);'
5370do
5371  cat >conftest.$ac_ext <<_ACEOF
5372/* confdefs.h.  */
5373_ACEOF
5374cat confdefs.h >>conftest.$ac_ext
5375cat >>conftest.$ac_ext <<_ACEOF
5376/* end confdefs.h.  */
5377$ac_declaration
5378#include <stdlib.h>
5379int
5380main ()
5381{
5382exit (42);
5383  ;
5384  return 0;
5385}
5386_ACEOF
5387rm -f conftest.$ac_objext
5388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389  (eval $ac_compile) 2>conftest.er1
5390  ac_status=$?
5391  grep -v '^ *+' conftest.er1 >conftest.err
5392  rm -f conftest.er1
5393  cat conftest.err >&5
5394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395  (exit $ac_status); } &&
5396         { ac_try='test -z "$ac_cxx_werror_flag"
5397                         || test ! -s conftest.err'
5398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399  (eval $ac_try) 2>&5
5400  ac_status=$?
5401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402  (exit $ac_status); }; } &&
5403         { ac_try='test -s conftest.$ac_objext'
5404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405  (eval $ac_try) 2>&5
5406  ac_status=$?
5407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408  (exit $ac_status); }; }; then
5409  :
5410else
5411  echo "$as_me: failed program was:" >&5
5412sed 's/^/| /' conftest.$ac_ext >&5
5413
5414continue
5415fi
5416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5417  cat >conftest.$ac_ext <<_ACEOF
5418/* confdefs.h.  */
5419_ACEOF
5420cat confdefs.h >>conftest.$ac_ext
5421cat >>conftest.$ac_ext <<_ACEOF
5422/* end confdefs.h.  */
5423$ac_declaration
5424int
5425main ()
5426{
5427exit (42);
5428  ;
5429  return 0;
5430}
5431_ACEOF
5432rm -f conftest.$ac_objext
5433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434  (eval $ac_compile) 2>conftest.er1
5435  ac_status=$?
5436  grep -v '^ *+' conftest.er1 >conftest.err
5437  rm -f conftest.er1
5438  cat conftest.err >&5
5439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440  (exit $ac_status); } &&
5441         { ac_try='test -z "$ac_cxx_werror_flag"
5442                         || test ! -s conftest.err'
5443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444  (eval $ac_try) 2>&5
5445  ac_status=$?
5446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447  (exit $ac_status); }; } &&
5448         { ac_try='test -s conftest.$ac_objext'
5449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450  (eval $ac_try) 2>&5
5451  ac_status=$?
5452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453  (exit $ac_status); }; }; then
5454  break
5455else
5456  echo "$as_me: failed program was:" >&5
5457sed 's/^/| /' conftest.$ac_ext >&5
5458
5459fi
5460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5461done
5462rm -f conftest*
5463if test -n "$ac_declaration"; then
5464  echo '#ifdef __cplusplus' >>confdefs.h
5465  echo $ac_declaration      >>confdefs.h
5466  echo '#endif'             >>confdefs.h
5467fi
5468
5469ac_ext=cc
5470ac_cpp='$CXXCPP $CPPFLAGS'
5471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5474
5475depcc="$CXX"  am_compiler_list=
5476
5477echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5478echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5479if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5480  echo $ECHO_N "(cached) $ECHO_C" >&6
5481else
5482  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5483  # We make a subdir and do the tests there.  Otherwise we can end up
5484  # making bogus files that we don't know about and never remove.  For
5485  # instance it was reported that on HP-UX the gcc test will end up
5486  # making a dummy file named `D' -- because `-MD' means `put the output
5487  # in D'.
5488  mkdir conftest.dir
5489  # Copy depcomp to subdir because otherwise we won't find it if we're
5490  # using a relative directory.
5491  cp "$am_depcomp" conftest.dir
5492  cd conftest.dir
5493  # We will build objects and dependencies in a subdirectory because
5494  # it helps to detect inapplicable dependency modes.  For instance
5495  # both Tru64's cc and ICC support -MD to output dependencies as a
5496  # side effect of compilation, but ICC will put the dependencies in
5497  # the current directory while Tru64 will put them in the object
5498  # directory.
5499  mkdir sub
5500
5501  am_cv_CXX_dependencies_compiler_type=none
5502  if test "$am_compiler_list" = ""; then
5503     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5504  fi
5505  for depmode in $am_compiler_list; do
5506    # Setup a source with many dependencies, because some compilers
5507    # like to wrap large dependency lists on column 80 (with \), and
5508    # we should not choose a depcomp mode which is confused by this.
5509    #
5510    # We need to recreate these files for each test, as the compiler may
5511    # overwrite some of them when testing with obscure command lines.
5512    # This happens at least with the AIX C compiler.
5513    : > sub/conftest.c
5514    for i in 1 2 3 4 5 6; do
5515      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5516      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5517      # Solaris 8's {/usr,}/bin/sh.
5518      touch sub/conftst$i.h
5519    done
5520    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5521
5522    case $depmode in
5523    nosideeffect)
5524      # after this tag, mechanisms are not by side-effect, so they'll
5525      # only be used when explicitly requested
5526      if test "x$enable_dependency_tracking" = xyes; then
5527        continue
5528      else
5529        break
5530      fi
5531      ;;
5532    none) break ;;
5533    esac
5534    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5535    # mode.  It turns out that the SunPro C++ compiler does not properly
5536    # handle `-M -o', and we need to detect this.
5537    if depmode=$depmode \
5538       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5539       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5540       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5541         >/dev/null 2>conftest.err &&
5542       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5543       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5544       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5545      # icc doesn't choke on unknown options, it will just issue warnings
5546      # or remarks (even with -Werror).  So we grep stderr for any message
5547      # that says an option was ignored or not supported.
5548      # When given -MP, icc 7.0 and 7.1 complain thusly:
5549      #   icc: Command line warning: ignoring option '-M'; no argument required
5550      # The diagnosis changed in icc 8.0:
5551      #   icc: Command line remark: option '-MP' not supported
5552      if (grep 'ignoring option' conftest.err ||
5553          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5554        am_cv_CXX_dependencies_compiler_type=$depmode
5555        break
5556      fi
5557    fi
5558  done
5559
5560  cd ..
5561  rm -rf conftest.dir
5562else
5563  am_cv_CXX_dependencies_compiler_type=none
5564fi
5565
5566fi
5567echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5568echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5569CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5570
5571
5572
5573if
5574  test "x$enable_dependency_tracking" != xno \
5575  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5576  am__fastdepCXX_TRUE=
5577  am__fastdepCXX_FALSE='#'
5578else
5579  am__fastdepCXX_TRUE='#'
5580  am__fastdepCXX_FALSE=
5581fi
5582
5583
5584
5585
5586if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5587    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5588    (test "X$CXX" != "Xg++"))) ; then
5589  ac_ext=cc
5590ac_cpp='$CXXCPP $CPPFLAGS'
5591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5594echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5595echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5596if test -z "$CXXCPP"; then
5597  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5598  echo $ECHO_N "(cached) $ECHO_C" >&6
5599else
5600      # Double quotes because CXXCPP needs to be expanded
5601    for CXXCPP in "$CXX -E" "/lib/cpp"
5602    do
5603      ac_preproc_ok=false
5604for ac_cxx_preproc_warn_flag in '' yes
5605do
5606  # Use a header file that comes with gcc, so configuring glibc
5607  # with a fresh cross-compiler works.
5608  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5609  # <limits.h> exists even on freestanding compilers.
5610  # On the NeXT, cc -E runs the code through the compiler's parser,
5611  # not just through cpp. "Syntax error" is here to catch this case.
5612  cat >conftest.$ac_ext <<_ACEOF
5613/* confdefs.h.  */
5614_ACEOF
5615cat confdefs.h >>conftest.$ac_ext
5616cat >>conftest.$ac_ext <<_ACEOF
5617/* end confdefs.h.  */
5618#ifdef __STDC__
5619# include <limits.h>
5620#else
5621# include <assert.h>
5622#endif
5623                     Syntax error
5624_ACEOF
5625if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5626  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5627  ac_status=$?
5628  grep -v '^ *+' conftest.er1 >conftest.err
5629  rm -f conftest.er1
5630  cat conftest.err >&5
5631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632  (exit $ac_status); } >/dev/null; then
5633  if test -s conftest.err; then
5634    ac_cpp_err=$ac_cxx_preproc_warn_flag
5635    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5636  else
5637    ac_cpp_err=
5638  fi
5639else
5640  ac_cpp_err=yes
5641fi
5642if test -z "$ac_cpp_err"; then
5643  :
5644else
5645  echo "$as_me: failed program was:" >&5
5646sed 's/^/| /' conftest.$ac_ext >&5
5647
5648  # Broken: fails on valid input.
5649continue
5650fi
5651rm -f conftest.err conftest.$ac_ext
5652
5653  # OK, works on sane cases.  Now check whether non-existent headers
5654  # can be detected and how.
5655  cat >conftest.$ac_ext <<_ACEOF
5656/* confdefs.h.  */
5657_ACEOF
5658cat confdefs.h >>conftest.$ac_ext
5659cat >>conftest.$ac_ext <<_ACEOF
5660/* end confdefs.h.  */
5661#include <ac_nonexistent.h>
5662_ACEOF
5663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5664  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5665  ac_status=$?
5666  grep -v '^ *+' conftest.er1 >conftest.err
5667  rm -f conftest.er1
5668  cat conftest.err >&5
5669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670  (exit $ac_status); } >/dev/null; then
5671  if test -s conftest.err; then
5672    ac_cpp_err=$ac_cxx_preproc_warn_flag
5673    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5674  else
5675    ac_cpp_err=
5676  fi
5677else
5678  ac_cpp_err=yes
5679fi
5680if test -z "$ac_cpp_err"; then
5681  # Broken: success on invalid input.
5682continue
5683else
5684  echo "$as_me: failed program was:" >&5
5685sed 's/^/| /' conftest.$ac_ext >&5
5686
5687  # Passes both tests.
5688ac_preproc_ok=:
5689break
5690fi
5691rm -f conftest.err conftest.$ac_ext
5692
5693done
5694# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5695rm -f conftest.err conftest.$ac_ext
5696if $ac_preproc_ok; then
5697  break
5698fi
5699
5700    done
5701    ac_cv_prog_CXXCPP=$CXXCPP
5702
5703fi
5704  CXXCPP=$ac_cv_prog_CXXCPP
5705else
5706  ac_cv_prog_CXXCPP=$CXXCPP
5707fi
5708echo "$as_me:$LINENO: result: $CXXCPP" >&5
5709echo "${ECHO_T}$CXXCPP" >&6
5710ac_preproc_ok=false
5711for ac_cxx_preproc_warn_flag in '' yes
5712do
5713  # Use a header file that comes with gcc, so configuring glibc
5714  # with a fresh cross-compiler works.
5715  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5716  # <limits.h> exists even on freestanding compilers.
5717  # On the NeXT, cc -E runs the code through the compiler's parser,
5718  # not just through cpp. "Syntax error" is here to catch this case.
5719  cat >conftest.$ac_ext <<_ACEOF
5720/* confdefs.h.  */
5721_ACEOF
5722cat confdefs.h >>conftest.$ac_ext
5723cat >>conftest.$ac_ext <<_ACEOF
5724/* end confdefs.h.  */
5725#ifdef __STDC__
5726# include <limits.h>
5727#else
5728# include <assert.h>
5729#endif
5730                     Syntax error
5731_ACEOF
5732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5733  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5734  ac_status=$?
5735  grep -v '^ *+' conftest.er1 >conftest.err
5736  rm -f conftest.er1
5737  cat conftest.err >&5
5738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739  (exit $ac_status); } >/dev/null; then
5740  if test -s conftest.err; then
5741    ac_cpp_err=$ac_cxx_preproc_warn_flag
5742    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5743  else
5744    ac_cpp_err=
5745  fi
5746else
5747  ac_cpp_err=yes
5748fi
5749if test -z "$ac_cpp_err"; then
5750  :
5751else
5752  echo "$as_me: failed program was:" >&5
5753sed 's/^/| /' conftest.$ac_ext >&5
5754
5755  # Broken: fails on valid input.
5756continue
5757fi
5758rm -f conftest.err conftest.$ac_ext
5759
5760  # OK, works on sane cases.  Now check whether non-existent headers
5761  # can be detected and how.
5762  cat >conftest.$ac_ext <<_ACEOF
5763/* confdefs.h.  */
5764_ACEOF
5765cat confdefs.h >>conftest.$ac_ext
5766cat >>conftest.$ac_ext <<_ACEOF
5767/* end confdefs.h.  */
5768#include <ac_nonexistent.h>
5769_ACEOF
5770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5771  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5772  ac_status=$?
5773  grep -v '^ *+' conftest.er1 >conftest.err
5774  rm -f conftest.er1
5775  cat conftest.err >&5
5776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777  (exit $ac_status); } >/dev/null; then
5778  if test -s conftest.err; then
5779    ac_cpp_err=$ac_cxx_preproc_warn_flag
5780    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5781  else
5782    ac_cpp_err=
5783  fi
5784else
5785  ac_cpp_err=yes
5786fi
5787if test -z "$ac_cpp_err"; then
5788  # Broken: success on invalid input.
5789continue
5790else
5791  echo "$as_me: failed program was:" >&5
5792sed 's/^/| /' conftest.$ac_ext >&5
5793
5794  # Passes both tests.
5795ac_preproc_ok=:
5796break
5797fi
5798rm -f conftest.err conftest.$ac_ext
5799
5800done
5801# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5802rm -f conftest.err conftest.$ac_ext
5803if $ac_preproc_ok; then
5804  :
5805else
5806  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5807See \`config.log' for more details." >&5
5808echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5809See \`config.log' for more details." >&2;}
5810   { (exit 1); exit 1; }; }
5811fi
5812
5813ac_ext=cc
5814ac_cpp='$CXXCPP $CPPFLAGS'
5815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5818
5819fi
5820
5821
5822
5823# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5824
5825# find the maximum length of command line arguments
5826echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5827echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5828if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5829  echo $ECHO_N "(cached) $ECHO_C" >&6
5830else
5831    i=0
5832  teststring="ABCD"
5833
5834  case $build_os in
5835  msdosdjgpp*)
5836    # On DJGPP, this test can blow up pretty badly due to problems in libc
5837    # (any single argument exceeding 2000 bytes causes a buffer overrun
5838    # during glob expansion).  Even if it were fixed, the result of this
5839    # check would be larger than it should be.
5840    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5841    ;;
5842
5843  gnu*)
5844    # Under GNU Hurd, this test is not required because there is
5845    # no limit to the length of command line arguments.
5846    # Libtool will interpret -1 as no limit whatsoever
5847    lt_cv_sys_max_cmd_len=-1;
5848    ;;
5849
5850  cygwin* | mingw*)
5851    # On Win9x/ME, this test blows up -- it succeeds, but takes
5852    # about 5 minutes as the teststring grows exponentially.
5853    # Worse, since 9x/ME are not pre-emptively multitasking,
5854    # you end up with a "frozen" computer, even though with patience
5855    # the test eventually succeeds (with a max line length of 256k).
5856    # Instead, let's just punt: use the minimum linelength reported by
5857    # all of the supported platforms: 8192 (on NT/2K/XP).
5858    lt_cv_sys_max_cmd_len=8192;
5859    ;;
5860
5861  amigaos*)
5862    # On AmigaOS with pdksh, this test takes hours, literally.
5863    # So we just punt and use a minimum line length of 8192.
5864    lt_cv_sys_max_cmd_len=8192;
5865    ;;
5866
5867  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5868    # This has been around since 386BSD, at least.  Likely further.
5869    if test -x /sbin/sysctl; then
5870      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5871    elif test -x /usr/sbin/sysctl; then
5872      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5873    else
5874      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5875    fi
5876    # And add a safety zone
5877    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5878    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5879    ;;
5880
5881  interix*)
5882    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5883    lt_cv_sys_max_cmd_len=196608
5884    ;;
5885
5886  osf*)
5887    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5888    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5889    # nice to cause kernel panics so lets avoid the loop below.
5890    # First set a reasonable default.
5891    lt_cv_sys_max_cmd_len=16384
5892    #
5893    if test -x /sbin/sysconfig; then
5894      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5895        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5896      esac
5897    fi
5898    ;;
5899  sco3.2v5*)
5900    lt_cv_sys_max_cmd_len=102400
5901    ;;
5902  sysv5* | sco5v6* | sysv4.2uw2*)
5903    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5904    if test -n "$kargmax"; then
5905      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5906    else
5907      lt_cv_sys_max_cmd_len=32768
5908    fi
5909    ;;
5910  *)
5911    # If test is not a shell built-in, we'll probably end up computing a
5912    # maximum length that is only half of the actual maximum length, but
5913    # we can't tell.
5914    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5915    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5916               = "XX$teststring") >/dev/null 2>&1 &&
5917            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5918            lt_cv_sys_max_cmd_len=$new_result &&
5919            test $i != 17 # 1/2 MB should be enough
5920    do
5921      i=`expr $i + 1`
5922      teststring=$teststring$teststring
5923    done
5924    teststring=
5925    # Add a significant safety factor because C++ compilers can tack on massive
5926    # amounts of additional arguments before passing them to the linker.
5927    # It appears as though 1/2 is a usable value.
5928    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5929    ;;
5930  esac
5931
5932fi
5933
5934if test -n $lt_cv_sys_max_cmd_len ; then
5935  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5936echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5937else
5938  echo "$as_me:$LINENO: result: none" >&5
5939echo "${ECHO_T}none" >&6
5940fi
5941
5942
5943
5944
5945# Check for command to grab the raw symbol name followed by C symbol from nm.
5946echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5947echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5948if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5949  echo $ECHO_N "(cached) $ECHO_C" >&6
5950else
5951
5952# These are sane defaults that work on at least a few old systems.
5953# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5954
5955# Character class describing NM global symbol codes.
5956symcode='[BCDEGRST]'
5957
5958# Regexp to match symbols that can be accessed directly from C.
5959sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5960
5961# Transform an extracted symbol line into a proper C declaration
5962lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5963
5964# Transform an extracted symbol line into symbol name and symbol address
5965lt_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'"
5966
5967# Define system-specific variables.
5968case $host_os in
5969aix*)
5970  symcode='[BCDT]'
5971  ;;
5972cygwin* | mingw* | pw32*)
5973  symcode='[ABCDGISTW]'
5974  ;;
5975hpux*) # Its linker distinguishes data from code symbols
5976  if test "$host_cpu" = ia64; then
5977    symcode='[ABCDEGRST]'
5978  fi
5979  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5980  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'"
5981  ;;
5982linux*)
5983  if test "$host_cpu" = ia64; then
5984    symcode='[ABCDGIRSTW]'
5985    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5986    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'"
5987  fi
5988  ;;
5989irix* | nonstopux*)
5990  symcode='[BCDEGRST]'
5991  ;;
5992osf*)
5993  symcode='[BCDEGQRST]'
5994  ;;
5995solaris*)
5996  symcode='[BDRT]'
5997  ;;
5998sco3.2v5*)
5999  symcode='[DT]'
6000  ;;
6001sysv4.2uw2*)
6002  symcode='[DT]'
6003  ;;
6004sysv5* | sco5v6* | unixware* | OpenUNIX*)
6005  symcode='[ABDT]'
6006  ;;
6007sysv4)
6008  symcode='[DFNSTU]'
6009  ;;
6010esac
6011
6012# Handle CRLF in mingw tool chain
6013opt_cr=
6014case $build_os in
6015mingw*)
6016  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6017  ;;
6018esac
6019
6020# If we're using GNU nm, then use its standard symbol codes.
6021case `$NM -V 2>&1` in
6022*GNU* | *'with BFD'*)
6023  symcode='[ABCDGIRSTW]' ;;
6024esac
6025
6026# Try without a prefix undercore, then with it.
6027for ac_symprfx in "" "_"; do
6028
6029  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6030  symxfrm="\\1 $ac_symprfx\\2 \\2"
6031
6032  # Write the raw and C identifiers.
6033  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6034
6035  # Check to see that the pipe works correctly.
6036  pipe_works=no
6037
6038  rm -f conftest*
6039  cat > conftest.$ac_ext <<EOF
6040#ifdef __cplusplus
6041extern "C" {
6042#endif
6043char nm_test_var;
6044void nm_test_func(){}
6045#ifdef __cplusplus
6046}
6047#endif
6048int main(){nm_test_var='a';nm_test_func();return(0);}
6049EOF
6050
6051  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6052  (eval $ac_compile) 2>&5
6053  ac_status=$?
6054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055  (exit $ac_status); }; then
6056    # Now try to grab the symbols.
6057    nlist=conftest.nm
6058    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6059  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6060  ac_status=$?
6061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062  (exit $ac_status); } && test -s "$nlist"; then
6063      # Try sorting and uniquifying the output.
6064      if sort "$nlist" | uniq > "$nlist"T; then
6065        mv -f "$nlist"T "$nlist"
6066      else
6067        rm -f "$nlist"T
6068      fi
6069
6070      # Make sure that we snagged all the symbols we need.
6071      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6072        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6073          cat <<EOF > conftest.$ac_ext
6074#ifdef __cplusplus
6075extern "C" {
6076#endif
6077
6078EOF
6079          # Now generate the symbol file.
6080          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6081
6082          cat <<EOF >> conftest.$ac_ext
6083#if defined (__STDC__) && __STDC__
6084# define lt_ptr_t void *
6085#else
6086# define lt_ptr_t char *
6087# define const
6088#endif
6089
6090/* The mapping between symbol names and symbols. */
6091const struct {
6092  const char *name;
6093  lt_ptr_t address;
6094}
6095lt_preloaded_symbols[] =
6096{
6097EOF
6098          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6099          cat <<\EOF >> conftest.$ac_ext
6100  {0, (lt_ptr_t) 0}
6101};
6102
6103#ifdef __cplusplus
6104}
6105#endif
6106EOF
6107          # Now try linking the two files.
6108          mv conftest.$ac_objext conftstm.$ac_objext
6109          lt_save_LIBS="$LIBS"
6110          lt_save_CFLAGS="$CFLAGS"
6111          LIBS="conftstm.$ac_objext"
6112          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6113          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6114  (eval $ac_link) 2>&5
6115  ac_status=$?
6116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6118            pipe_works=yes
6119          fi
6120          LIBS="$lt_save_LIBS"
6121          CFLAGS="$lt_save_CFLAGS"
6122        else
6123          echo "cannot find nm_test_func in $nlist" >&5
6124        fi
6125      else
6126        echo "cannot find nm_test_var in $nlist" >&5
6127      fi
6128    else
6129      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6130    fi
6131  else
6132    echo "$progname: failed program was:" >&5
6133    cat conftest.$ac_ext >&5
6134  fi
6135  rm -f conftest* conftst*
6136
6137  # Do not use the global_symbol_pipe unless it works.
6138  if test "$pipe_works" = yes; then
6139    break
6140  else
6141    lt_cv_sys_global_symbol_pipe=
6142  fi
6143done
6144
6145fi
6146
6147if test -z "$lt_cv_sys_global_symbol_pipe"; then
6148  lt_cv_sys_global_symbol_to_cdecl=
6149fi
6150if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6151  echo "$as_me:$LINENO: result: failed" >&5
6152echo "${ECHO_T}failed" >&6
6153else
6154  echo "$as_me:$LINENO: result: ok" >&5
6155echo "${ECHO_T}ok" >&6
6156fi
6157
6158echo "$as_me:$LINENO: checking for objdir" >&5
6159echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6160if test "${lt_cv_objdir+set}" = set; then
6161  echo $ECHO_N "(cached) $ECHO_C" >&6
6162else
6163  rm -f .libs 2>/dev/null
6164mkdir .libs 2>/dev/null
6165if test -d .libs; then
6166  lt_cv_objdir=.libs
6167else
6168  # MS-DOS does not allow filenames that begin with a dot.
6169  lt_cv_objdir=_libs
6170fi
6171rmdir .libs 2>/dev/null
6172fi
6173echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6174echo "${ECHO_T}$lt_cv_objdir" >&6
6175objdir=$lt_cv_objdir
6176
6177
6178
6179
6180
6181case $host_os in
6182aix3*)
6183  # AIX sometimes has problems with the GCC collect2 program.  For some
6184  # reason, if we set the COLLECT_NAMES environment variable, the problems
6185  # vanish in a puff of smoke.
6186  if test "X${COLLECT_NAMES+set}" != Xset; then
6187    COLLECT_NAMES=
6188    export COLLECT_NAMES
6189  fi
6190  ;;
6191esac
6192
6193# Sed substitution that helps us do robust quoting.  It backslashifies
6194# metacharacters that are still active within double-quoted strings.
6195Xsed='sed -e 1s/^X//'
6196sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6197
6198# Same as above, but do not quote variable references.
6199double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6200
6201# Sed substitution to delay expansion of an escaped shell variable in a
6202# double_quote_subst'ed string.
6203delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6204
6205# Sed substitution to avoid accidental globbing in evaled expressions
6206no_glob_subst='s/\*/\\\*/g'
6207
6208# Constants:
6209rm="rm -f"
6210
6211# Global variables:
6212default_ofile=libtool
6213can_build_shared=yes
6214
6215# All known linkers require a `.a' archive for static linking (except MSVC,
6216# which needs '.lib').
6217libext=a
6218ltmain="$ac_aux_dir/ltmain.sh"
6219ofile="$default_ofile"
6220with_gnu_ld="$lt_cv_prog_gnu_ld"
6221
6222if test -n "$ac_tool_prefix"; then
6223  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6224set dummy ${ac_tool_prefix}ar; ac_word=$2
6225echo "$as_me:$LINENO: checking for $ac_word" >&5
6226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6227if test "${ac_cv_prog_AR+set}" = set; then
6228  echo $ECHO_N "(cached) $ECHO_C" >&6
6229else
6230  if test -n "$AR"; then
6231  ac_cv_prog_AR="$AR" # Let the user override the test.
6232else
6233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234for as_dir in $PATH
6235do
6236  IFS=$as_save_IFS
6237  test -z "$as_dir" && as_dir=.
6238  for ac_exec_ext in '' $ac_executable_extensions; do
6239  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6240    ac_cv_prog_AR="${ac_tool_prefix}ar"
6241    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6242    break 2
6243  fi
6244done
6245done
6246
6247fi
6248fi
6249AR=$ac_cv_prog_AR
6250if test -n "$AR"; then
6251  echo "$as_me:$LINENO: result: $AR" >&5
6252echo "${ECHO_T}$AR" >&6
6253else
6254  echo "$as_me:$LINENO: result: no" >&5
6255echo "${ECHO_T}no" >&6
6256fi
6257
6258fi
6259if test -z "$ac_cv_prog_AR"; then
6260  ac_ct_AR=$AR
6261  # Extract the first word of "ar", so it can be a program name with args.
6262set dummy ar; ac_word=$2
6263echo "$as_me:$LINENO: checking for $ac_word" >&5
6264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6265if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6266  echo $ECHO_N "(cached) $ECHO_C" >&6
6267else
6268  if test -n "$ac_ct_AR"; then
6269  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6270else
6271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272for as_dir in $PATH
6273do
6274  IFS=$as_save_IFS
6275  test -z "$as_dir" && as_dir=.
6276  for ac_exec_ext in '' $ac_executable_extensions; do
6277  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6278    ac_cv_prog_ac_ct_AR="ar"
6279    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6280    break 2
6281  fi
6282done
6283done
6284
6285  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6286fi
6287fi
6288ac_ct_AR=$ac_cv_prog_ac_ct_AR
6289if test -n "$ac_ct_AR"; then
6290  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6291echo "${ECHO_T}$ac_ct_AR" >&6
6292else
6293  echo "$as_me:$LINENO: result: no" >&5
6294echo "${ECHO_T}no" >&6
6295fi
6296
6297  AR=$ac_ct_AR
6298else
6299  AR="$ac_cv_prog_AR"
6300fi
6301
6302if test -n "$ac_tool_prefix"; then
6303  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6304set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6305echo "$as_me:$LINENO: checking for $ac_word" >&5
6306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6307if test "${ac_cv_prog_RANLIB+set}" = set; then
6308  echo $ECHO_N "(cached) $ECHO_C" >&6
6309else
6310  if test -n "$RANLIB"; then
6311  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6312else
6313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314for as_dir in $PATH
6315do
6316  IFS=$as_save_IFS
6317  test -z "$as_dir" && as_dir=.
6318  for ac_exec_ext in '' $ac_executable_extensions; do
6319  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6320    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6321    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322    break 2
6323  fi
6324done
6325done
6326
6327fi
6328fi
6329RANLIB=$ac_cv_prog_RANLIB
6330if test -n "$RANLIB"; then
6331  echo "$as_me:$LINENO: result: $RANLIB" >&5
6332echo "${ECHO_T}$RANLIB" >&6
6333else
6334  echo "$as_me:$LINENO: result: no" >&5
6335echo "${ECHO_T}no" >&6
6336fi
6337
6338fi
6339if test -z "$ac_cv_prog_RANLIB"; then
6340  ac_ct_RANLIB=$RANLIB
6341  # Extract the first word of "ranlib", so it can be a program name with args.
6342set dummy ranlib; ac_word=$2
6343echo "$as_me:$LINENO: checking for $ac_word" >&5
6344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6345if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6346  echo $ECHO_N "(cached) $ECHO_C" >&6
6347else
6348  if test -n "$ac_ct_RANLIB"; then
6349  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6350else
6351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352for as_dir in $PATH
6353do
6354  IFS=$as_save_IFS
6355  test -z "$as_dir" && as_dir=.
6356  for ac_exec_ext in '' $ac_executable_extensions; do
6357  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6358    ac_cv_prog_ac_ct_RANLIB="ranlib"
6359    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6360    break 2
6361  fi
6362done
6363done
6364
6365  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6366fi
6367fi
6368ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6369if test -n "$ac_ct_RANLIB"; then
6370  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6371echo "${ECHO_T}$ac_ct_RANLIB" >&6
6372else
6373  echo "$as_me:$LINENO: result: no" >&5
6374echo "${ECHO_T}no" >&6
6375fi
6376
6377  RANLIB=$ac_ct_RANLIB
6378else
6379  RANLIB="$ac_cv_prog_RANLIB"
6380fi
6381
6382if test -n "$ac_tool_prefix"; then
6383  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6384set dummy ${ac_tool_prefix}strip; ac_word=$2
6385echo "$as_me:$LINENO: checking for $ac_word" >&5
6386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6387if test "${ac_cv_prog_STRIP+set}" = set; then
6388  echo $ECHO_N "(cached) $ECHO_C" >&6
6389else
6390  if test -n "$STRIP"; then
6391  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6392else
6393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394for as_dir in $PATH
6395do
6396  IFS=$as_save_IFS
6397  test -z "$as_dir" && as_dir=.
6398  for ac_exec_ext in '' $ac_executable_extensions; do
6399  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6400    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6401    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6402    break 2
6403  fi
6404done
6405done
6406
6407fi
6408fi
6409STRIP=$ac_cv_prog_STRIP
6410if test -n "$STRIP"; then
6411  echo "$as_me:$LINENO: result: $STRIP" >&5
6412echo "${ECHO_T}$STRIP" >&6
6413else
6414  echo "$as_me:$LINENO: result: no" >&5
6415echo "${ECHO_T}no" >&6
6416fi
6417
6418fi
6419if test -z "$ac_cv_prog_STRIP"; then
6420  ac_ct_STRIP=$STRIP
6421  # Extract the first word of "strip", so it can be a program name with args.
6422set dummy strip; ac_word=$2
6423echo "$as_me:$LINENO: checking for $ac_word" >&5
6424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6425if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6426  echo $ECHO_N "(cached) $ECHO_C" >&6
6427else
6428  if test -n "$ac_ct_STRIP"; then
6429  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6430else
6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434  IFS=$as_save_IFS
6435  test -z "$as_dir" && as_dir=.
6436  for ac_exec_ext in '' $ac_executable_extensions; do
6437  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438    ac_cv_prog_ac_ct_STRIP="strip"
6439    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440    break 2
6441  fi
6442done
6443done
6444
6445  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6446fi
6447fi
6448ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6449if test -n "$ac_ct_STRIP"; then
6450  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6451echo "${ECHO_T}$ac_ct_STRIP" >&6
6452else
6453  echo "$as_me:$LINENO: result: no" >&5
6454echo "${ECHO_T}no" >&6
6455fi
6456
6457  STRIP=$ac_ct_STRIP
6458else
6459  STRIP="$ac_cv_prog_STRIP"
6460fi
6461
6462
6463old_CC="$CC"
6464old_CFLAGS="$CFLAGS"
6465
6466# Set sane defaults for various variables
6467test -z "$AR" && AR=ar
6468test -z "$AR_FLAGS" && AR_FLAGS=cru
6469test -z "$AS" && AS=as
6470test -z "$CC" && CC=cc
6471test -z "$LTCC" && LTCC=$CC
6472test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6473test -z "$DLLTOOL" && DLLTOOL=dlltool
6474test -z "$LD" && LD=ld
6475test -z "$LN_S" && LN_S="ln -s"
6476test -z "$MAGIC_CMD" && MAGIC_CMD=file
6477test -z "$NM" && NM=nm
6478test -z "$SED" && SED=sed
6479test -z "$OBJDUMP" && OBJDUMP=objdump
6480test -z "$RANLIB" && RANLIB=:
6481test -z "$STRIP" && STRIP=:
6482test -z "$ac_objext" && ac_objext=o
6483
6484# Determine commands to create old-style static archives.
6485old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6486old_postinstall_cmds='chmod 644 $oldlib'
6487old_postuninstall_cmds=
6488
6489if test -n "$RANLIB"; then
6490  case $host_os in
6491  openbsd*)
6492    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6493    ;;
6494  *)
6495    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6496    ;;
6497  esac
6498  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6499fi
6500
6501for cc_temp in $compiler""; do
6502  case $cc_temp in
6503    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6504    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6505    \-*) ;;
6506    *) break;;
6507  esac
6508done
6509cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6510
6511
6512# Only perform the check for file, if the check method requires it
6513case $deplibs_check_method in
6514file_magic*)
6515  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6516    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6517echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6518if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6519  echo $ECHO_N "(cached) $ECHO_C" >&6
6520else
6521  case $MAGIC_CMD in
6522[\\/*] |  ?:[\\/]*)
6523  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6524  ;;
6525*)
6526  lt_save_MAGIC_CMD="$MAGIC_CMD"
6527  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6528  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6529  for ac_dir in $ac_dummy; do
6530    IFS="$lt_save_ifs"
6531    test -z "$ac_dir" && ac_dir=.
6532    if test -f $ac_dir/${ac_tool_prefix}file; then
6533      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6534      if test -n "$file_magic_test_file"; then
6535        case $deplibs_check_method in
6536        "file_magic "*)
6537          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6538          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6539          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6540            $EGREP "$file_magic_regex" > /dev/null; then
6541            :
6542          else
6543            cat <<EOF 1>&2
6544
6545*** Warning: the command libtool uses to detect shared libraries,
6546*** $file_magic_cmd, produces output that libtool cannot recognize.
6547*** The result is that libtool may fail to recognize shared libraries
6548*** as such.  This will affect the creation of libtool libraries that
6549*** depend on shared libraries, but programs linked with such libtool
6550*** libraries will work regardless of this problem.  Nevertheless, you
6551*** may want to report the problem to your system manager and/or to
6552*** bug-libtool@gnu.org
6553
6554EOF
6555          fi ;;
6556        esac
6557      fi
6558      break
6559    fi
6560  done
6561  IFS="$lt_save_ifs"
6562  MAGIC_CMD="$lt_save_MAGIC_CMD"
6563  ;;
6564esac
6565fi
6566
6567MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6568if test -n "$MAGIC_CMD"; then
6569  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6570echo "${ECHO_T}$MAGIC_CMD" >&6
6571else
6572  echo "$as_me:$LINENO: result: no" >&5
6573echo "${ECHO_T}no" >&6
6574fi
6575
6576if test -z "$lt_cv_path_MAGIC_CMD"; then
6577  if test -n "$ac_tool_prefix"; then
6578    echo "$as_me:$LINENO: checking for file" >&5
6579echo $ECHO_N "checking for file... $ECHO_C" >&6
6580if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6581  echo $ECHO_N "(cached) $ECHO_C" >&6
6582else
6583  case $MAGIC_CMD in
6584[\\/*] |  ?:[\\/]*)
6585  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6586  ;;
6587*)
6588  lt_save_MAGIC_CMD="$MAGIC_CMD"
6589  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6590  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6591  for ac_dir in $ac_dummy; do
6592    IFS="$lt_save_ifs"
6593    test -z "$ac_dir" && ac_dir=.
6594    if test -f $ac_dir/file; then
6595      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6596      if test -n "$file_magic_test_file"; then
6597        case $deplibs_check_method in
6598        "file_magic "*)
6599          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6600          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6601          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6602            $EGREP "$file_magic_regex" > /dev/null; then
6603            :
6604          else
6605            cat <<EOF 1>&2
6606
6607*** Warning: the command libtool uses to detect shared libraries,
6608*** $file_magic_cmd, produces output that libtool cannot recognize.
6609*** The result is that libtool may fail to recognize shared libraries
6610*** as such.  This will affect the creation of libtool libraries that
6611*** depend on shared libraries, but programs linked with such libtool
6612*** libraries will work regardless of this problem.  Nevertheless, you
6613*** may want to report the problem to your system manager and/or to
6614*** bug-libtool@gnu.org
6615
6616EOF
6617          fi ;;
6618        esac
6619      fi
6620      break
6621    fi
6622  done
6623  IFS="$lt_save_ifs"
6624  MAGIC_CMD="$lt_save_MAGIC_CMD"
6625  ;;
6626esac
6627fi
6628
6629MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6630if test -n "$MAGIC_CMD"; then
6631  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6632echo "${ECHO_T}$MAGIC_CMD" >&6
6633else
6634  echo "$as_me:$LINENO: result: no" >&5
6635echo "${ECHO_T}no" >&6
6636fi
6637
6638  else
6639    MAGIC_CMD=:
6640  fi
6641fi
6642
6643  fi
6644  ;;
6645esac
6646
6647enable_dlopen=no
6648enable_win32_dll=no
6649
6650# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6651if test "${enable_libtool_lock+set}" = set; then
6652  enableval="$enable_libtool_lock"
6653
6654fi;
6655test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6656
6657
6658# Check whether --with-pic or --without-pic was given.
6659if test "${with_pic+set}" = set; then
6660  withval="$with_pic"
6661  pic_mode="$withval"
6662else
6663  pic_mode=default
6664fi;
6665test -z "$pic_mode" && pic_mode=default
6666
6667# Use C for the default configuration in the libtool script
6668tagname=
6669lt_save_CC="$CC"
6670ac_ext=c
6671ac_cpp='$CPP $CPPFLAGS'
6672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6674ac_compiler_gnu=$ac_cv_c_compiler_gnu
6675
6676
6677# Source file extension for C test sources.
6678ac_ext=c
6679
6680# Object file extension for compiled C test sources.
6681objext=o
6682objext=$objext
6683
6684# Code to be used in simple compile tests
6685lt_simple_compile_test_code="int some_variable = 0;\n"
6686
6687# Code to be used in simple link tests
6688lt_simple_link_test_code='int main(){return(0);}\n'
6689
6690
6691# If no C compiler was specified, use CC.
6692LTCC=${LTCC-"$CC"}
6693
6694# If no C compiler flags were specified, use CFLAGS.
6695LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6696
6697# Allow CC to be a program name with arguments.
6698compiler=$CC
6699
6700
6701# save warnings/boilerplate of simple test code
6702ac_outfile=conftest.$ac_objext
6703printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6704eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6705_lt_compiler_boilerplate=`cat conftest.err`
6706$rm conftest*
6707
6708ac_outfile=conftest.$ac_objext
6709printf "$lt_simple_link_test_code" >conftest.$ac_ext
6710eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6711_lt_linker_boilerplate=`cat conftest.err`
6712$rm conftest*
6713
6714
6715## CAVEAT EMPTOR:
6716## There is no encapsulation within the following macros, do not change
6717## the running order or otherwise move them around unless you know exactly
6718## what you are doing...
6719
6720lt_prog_compiler_no_builtin_flag=
6721
6722if test "$GCC" = yes; then
6723  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6724
6725
6726echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6727echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6728if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6729  echo $ECHO_N "(cached) $ECHO_C" >&6
6730else
6731  lt_cv_prog_compiler_rtti_exceptions=no
6732  ac_outfile=conftest.$ac_objext
6733   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6734   lt_compiler_flag="-fno-rtti -fno-exceptions"
6735   # Insert the option either (1) after the last *FLAGS variable, or
6736   # (2) before a word containing "conftest.", or (3) at the end.
6737   # Note that $ac_compile itself does not contain backslashes and begins
6738   # with a dollar sign (not a hyphen), so the echo should work correctly.
6739   # The option is referenced via a variable to avoid confusing sed.
6740   lt_compile=`echo "$ac_compile" | $SED \
6741   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6742   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6743   -e 's:$: $lt_compiler_flag:'`
6744   (eval echo "\"\$as_me:6744: $lt_compile\"" >&5)
6745   (eval "$lt_compile" 2>conftest.err)
6746   ac_status=$?
6747   cat conftest.err >&5
6748   echo "$as_me:6748: \$? = $ac_status" >&5
6749   if (exit $ac_status) && test -s "$ac_outfile"; then
6750     # The compiler can only warn and ignore the option if not recognized
6751     # So say no if there are warnings other than the usual output.
6752     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6753     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6754     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6755       lt_cv_prog_compiler_rtti_exceptions=yes
6756     fi
6757   fi
6758   $rm conftest*
6759
6760fi
6761echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6762echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6763
6764if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6765    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6766else
6767    :
6768fi
6769
6770fi
6771
6772lt_prog_compiler_wl=
6773lt_prog_compiler_pic=
6774lt_prog_compiler_static=
6775
6776echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6777echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6778
6779  if test "$GCC" = yes; then
6780    lt_prog_compiler_wl='-Wl,'
6781    lt_prog_compiler_static='-static'
6782
6783    case $host_os in
6784      aix*)
6785      # All AIX code is PIC.
6786      if test "$host_cpu" = ia64; then
6787        # AIX 5 now supports IA64 processor
6788        lt_prog_compiler_static='-Bstatic'
6789      fi
6790      ;;
6791
6792    amigaos*)
6793      # FIXME: we need at least 68020 code to build shared libraries, but
6794      # adding the `-m68020' flag to GCC prevents building anything better,
6795      # like `-m68040'.
6796      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6797      ;;
6798
6799    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6800      # PIC is the default for these OSes.
6801      ;;
6802
6803    mingw* | pw32* | os2*)
6804      # This hack is so that the source file can tell whether it is being
6805      # built for inclusion in a dll (and should export symbols for example).
6806      lt_prog_compiler_pic='-DDLL_EXPORT'
6807      ;;
6808
6809    darwin* | rhapsody*)
6810      # PIC is the default on this platform
6811      # Common symbols not allowed in MH_DYLIB files
6812      lt_prog_compiler_pic='-fno-common'
6813      ;;
6814
6815    interix3*)
6816      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6817      # Instead, we relocate shared libraries at runtime.
6818      ;;
6819
6820    msdosdjgpp*)
6821      # Just because we use GCC doesn't mean we suddenly get shared libraries
6822      # on systems that don't support them.
6823      lt_prog_compiler_can_build_shared=no
6824      enable_shared=no
6825      ;;
6826
6827    sysv4*MP*)
6828      if test -d /usr/nec; then
6829        lt_prog_compiler_pic=-Kconform_pic
6830      fi
6831      ;;
6832
6833    hpux*)
6834      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6835      # not for PA HP-UX.
6836      case $host_cpu in
6837      hppa*64*|ia64*)
6838        # +Z the default
6839        ;;
6840      *)
6841        lt_prog_compiler_pic='-fPIC'
6842        ;;
6843      esac
6844      ;;
6845
6846    *)
6847      lt_prog_compiler_pic='-fPIC'
6848      ;;
6849    esac
6850  else
6851    # PORTME Check for flag to pass linker flags through the system compiler.
6852    case $host_os in
6853    aix*)
6854      lt_prog_compiler_wl='-Wl,'
6855      if test "$host_cpu" = ia64; then
6856        # AIX 5 now supports IA64 processor
6857        lt_prog_compiler_static='-Bstatic'
6858      else
6859        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6860      fi
6861      ;;
6862      darwin*)
6863        # PIC is the default on this platform
6864        # Common symbols not allowed in MH_DYLIB files
6865       case $cc_basename in
6866         xlc*)
6867         lt_prog_compiler_pic='-qnocommon'
6868         lt_prog_compiler_wl='-Wl,'
6869         ;;
6870       esac
6871       ;;
6872
6873    mingw* | pw32* | os2*)
6874      # This hack is so that the source file can tell whether it is being
6875      # built for inclusion in a dll (and should export symbols for example).
6876      lt_prog_compiler_pic='-DDLL_EXPORT'
6877      ;;
6878
6879    hpux9* | hpux10* | hpux11*)
6880      lt_prog_compiler_wl='-Wl,'
6881      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6882      # not for PA HP-UX.
6883      case $host_cpu in
6884      hppa*64*|ia64*)
6885        # +Z the default
6886        ;;
6887      *)
6888        lt_prog_compiler_pic='+Z'
6889        ;;
6890      esac
6891      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6892      lt_prog_compiler_static='${wl}-a ${wl}archive'
6893      ;;
6894
6895    irix5* | irix6* | nonstopux*)
6896      lt_prog_compiler_wl='-Wl,'
6897      # PIC (with -KPIC) is the default.
6898      lt_prog_compiler_static='-non_shared'
6899      ;;
6900
6901    newsos6)
6902      lt_prog_compiler_pic='-KPIC'
6903      lt_prog_compiler_static='-Bstatic'
6904      ;;
6905
6906    linux*)
6907      case $cc_basename in
6908      icc* | ecc*)
6909        lt_prog_compiler_wl='-Wl,'
6910        lt_prog_compiler_pic='-KPIC'
6911        lt_prog_compiler_static='-static'
6912        ;;
6913      pgcc* | pgf77* | pgf90* | pgf95*)
6914        # Portland Group compilers (*not* the Pentium gcc compiler,
6915        # which looks to be a dead project)
6916        lt_prog_compiler_wl='-Wl,'
6917        lt_prog_compiler_pic='-fpic'
6918        lt_prog_compiler_static='-Bstatic'
6919        ;;
6920      ccc*)
6921        lt_prog_compiler_wl='-Wl,'
6922        # All Alpha code is PIC.
6923        lt_prog_compiler_static='-non_shared'
6924        ;;
6925      esac
6926      ;;
6927
6928    osf3* | osf4* | osf5*)
6929      lt_prog_compiler_wl='-Wl,'
6930      # All OSF/1 code is PIC.
6931      lt_prog_compiler_static='-non_shared'
6932      ;;
6933
6934    solaris*)
6935      lt_prog_compiler_pic='-KPIC'
6936      lt_prog_compiler_static='-Bstatic'
6937      case $cc_basename in
6938      f77* | f90* | f95*)
6939        lt_prog_compiler_wl='-Qoption ld ';;
6940      *)
6941        lt_prog_compiler_wl='-Wl,';;
6942      esac
6943      ;;
6944
6945    sunos4*)
6946      lt_prog_compiler_wl='-Qoption ld '
6947      lt_prog_compiler_pic='-PIC'
6948      lt_prog_compiler_static='-Bstatic'
6949      ;;
6950
6951    sysv4 | sysv4.2uw2* | sysv4.3*)
6952      lt_prog_compiler_wl='-Wl,'
6953      lt_prog_compiler_pic='-KPIC'
6954      lt_prog_compiler_static='-Bstatic'
6955      ;;
6956
6957    sysv4*MP*)
6958      if test -d /usr/nec ;then
6959        lt_prog_compiler_pic='-Kconform_pic'
6960        lt_prog_compiler_static='-Bstatic'
6961      fi
6962      ;;
6963
6964    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6965      lt_prog_compiler_wl='-Wl,'
6966      lt_prog_compiler_pic='-KPIC'
6967      lt_prog_compiler_static='-Bstatic'
6968      ;;
6969
6970    unicos*)
6971      lt_prog_compiler_wl='-Wl,'
6972      lt_prog_compiler_can_build_shared=no
6973      ;;
6974
6975    uts4*)
6976      lt_prog_compiler_pic='-pic'
6977      lt_prog_compiler_static='-Bstatic'
6978      ;;
6979
6980    *)
6981      lt_prog_compiler_can_build_shared=no
6982      ;;
6983    esac
6984  fi
6985
6986echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6987echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6988
6989#
6990# Check to make sure the PIC flag actually works.
6991#
6992if test -n "$lt_prog_compiler_pic"; then
6993
6994echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6995echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6996if test "${lt_prog_compiler_pic_works+set}" = set; then
6997  echo $ECHO_N "(cached) $ECHO_C" >&6
6998else
6999  lt_prog_compiler_pic_works=no
7000  ac_outfile=conftest.$ac_objext
7001   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7002   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7003   # Insert the option either (1) after the last *FLAGS variable, or
7004   # (2) before a word containing "conftest.", or (3) at the end.
7005   # Note that $ac_compile itself does not contain backslashes and begins
7006   # with a dollar sign (not a hyphen), so the echo should work correctly.
7007   # The option is referenced via a variable to avoid confusing sed.
7008   lt_compile=`echo "$ac_compile" | $SED \
7009   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7010   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7011   -e 's:$: $lt_compiler_flag:'`
7012   (eval echo "\"\$as_me:7012: $lt_compile\"" >&5)
7013   (eval "$lt_compile" 2>conftest.err)
7014   ac_status=$?
7015   cat conftest.err >&5
7016   echo "$as_me:7016: \$? = $ac_status" >&5
7017   if (exit $ac_status) && test -s "$ac_outfile"; then
7018     # The compiler can only warn and ignore the option if not recognized
7019     # So say no if there are warnings other than the usual output.
7020     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7021     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7022     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7023       lt_prog_compiler_pic_works=yes
7024     fi
7025   fi
7026   $rm conftest*
7027
7028fi
7029echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7030echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7031
7032if test x"$lt_prog_compiler_pic_works" = xyes; then
7033    case $lt_prog_compiler_pic in
7034     "" | " "*) ;;
7035     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7036     esac
7037else
7038    lt_prog_compiler_pic=
7039     lt_prog_compiler_can_build_shared=no
7040fi
7041
7042fi
7043case $host_os in
7044  # For platforms which do not support PIC, -DPIC is meaningless:
7045  *djgpp*)
7046    lt_prog_compiler_pic=
7047    ;;
7048  *)
7049    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7050    ;;
7051esac
7052
7053#
7054# Check to make sure the static flag actually works.
7055#
7056wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7057echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7058echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7059if test "${lt_prog_compiler_static_works+set}" = set; then
7060  echo $ECHO_N "(cached) $ECHO_C" >&6
7061else
7062  lt_prog_compiler_static_works=no
7063   save_LDFLAGS="$LDFLAGS"
7064   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7065   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7066   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7067     # The linker can only warn and ignore the option if not recognized
7068     # So say no if there are warnings
7069     if test -s conftest.err; then
7070       # Append any errors to the config.log.
7071       cat conftest.err 1>&5
7072       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7073       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7074       if diff conftest.exp conftest.er2 >/dev/null; then
7075         lt_prog_compiler_static_works=yes
7076       fi
7077     else
7078       lt_prog_compiler_static_works=yes
7079     fi
7080   fi
7081   $rm conftest*
7082   LDFLAGS="$save_LDFLAGS"
7083
7084fi
7085echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7086echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7087
7088if test x"$lt_prog_compiler_static_works" = xyes; then
7089    :
7090else
7091    lt_prog_compiler_static=
7092fi
7093
7094
7095echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7096echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7097if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7098  echo $ECHO_N "(cached) $ECHO_C" >&6
7099else
7100  lt_cv_prog_compiler_c_o=no
7101   $rm -r conftest 2>/dev/null
7102   mkdir conftest
7103   cd conftest
7104   mkdir out
7105   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7106
7107   lt_compiler_flag="-o out/conftest2.$ac_objext"
7108   # Insert the option either (1) after the last *FLAGS variable, or
7109   # (2) before a word containing "conftest.", or (3) at the end.
7110   # Note that $ac_compile itself does not contain backslashes and begins
7111   # with a dollar sign (not a hyphen), so the echo should work correctly.
7112   lt_compile=`echo "$ac_compile" | $SED \
7113   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7114   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7115   -e 's:$: $lt_compiler_flag:'`
7116   (eval echo "\"\$as_me:7116: $lt_compile\"" >&5)
7117   (eval "$lt_compile" 2>out/conftest.err)
7118   ac_status=$?
7119   cat out/conftest.err >&5
7120   echo "$as_me:7120: \$? = $ac_status" >&5
7121   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7122   then
7123     # The compiler can only warn and ignore the option if not recognized
7124     # So say no if there are warnings
7125     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7126     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7127     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7128       lt_cv_prog_compiler_c_o=yes
7129     fi
7130   fi
7131   chmod u+w . 2>&5
7132   $rm conftest*
7133   # SGI C++ compiler will create directory out/ii_files/ for
7134   # template instantiation
7135   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7136   $rm out/* && rmdir out
7137   cd ..
7138   rmdir conftest
7139   $rm conftest*
7140
7141fi
7142echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7143echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7144
7145
7146hard_links="nottested"
7147if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7148  # do not overwrite the value of need_locks provided by the user
7149  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7150echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7151  hard_links=yes
7152  $rm conftest*
7153  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7154  touch conftest.a
7155  ln conftest.a conftest.b 2>&5 || hard_links=no
7156  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7157  echo "$as_me:$LINENO: result: $hard_links" >&5
7158echo "${ECHO_T}$hard_links" >&6
7159  if test "$hard_links" = no; then
7160    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7161echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7162    need_locks=warn
7163  fi
7164else
7165  need_locks=no
7166fi
7167
7168echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7169echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7170
7171  runpath_var=
7172  allow_undefined_flag=
7173  enable_shared_with_static_runtimes=no
7174  archive_cmds=
7175  archive_expsym_cmds=
7176  old_archive_From_new_cmds=
7177  old_archive_from_expsyms_cmds=
7178  export_dynamic_flag_spec=
7179  whole_archive_flag_spec=
7180  thread_safe_flag_spec=
7181  hardcode_libdir_flag_spec=
7182  hardcode_libdir_flag_spec_ld=
7183  hardcode_libdir_separator=
7184  hardcode_direct=no
7185  hardcode_minus_L=no
7186  hardcode_shlibpath_var=unsupported
7187  link_all_deplibs=unknown
7188  hardcode_automatic=no
7189  module_cmds=
7190  module_expsym_cmds=
7191  always_export_symbols=no
7192  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7193  # include_expsyms should be a list of space-separated symbols to be *always*
7194  # included in the symbol list
7195  include_expsyms=
7196  # exclude_expsyms can be an extended regexp of symbols to exclude
7197  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7198  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7199  # as well as any symbol that contains `d'.
7200  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7201  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7202  # platforms (ab)use it in PIC code, but their linkers get confused if
7203  # the symbol is explicitly referenced.  Since portable code cannot
7204  # rely on this symbol name, it's probably fine to never include it in
7205  # preloaded symbol tables.
7206  extract_expsyms_cmds=
7207  # Just being paranoid about ensuring that cc_basename is set.
7208  for cc_temp in $compiler""; do
7209  case $cc_temp in
7210    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7211    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7212    \-*) ;;
7213    *) break;;
7214  esac
7215done
7216cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7217
7218  case $host_os in
7219  cygwin* | mingw* | pw32*)
7220    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7221    # When not using gcc, we currently assume that we are using
7222    # Microsoft Visual C++.
7223    if test "$GCC" != yes; then
7224      with_gnu_ld=no
7225    fi
7226    ;;
7227  interix*)
7228    # we just hope/assume this is gcc and not c89 (= MSVC++)
7229    with_gnu_ld=yes
7230    ;;
7231  openbsd*)
7232    with_gnu_ld=no
7233    ;;
7234  esac
7235
7236  ld_shlibs=yes
7237  if test "$with_gnu_ld" = yes; then
7238    # If archive_cmds runs LD, not CC, wlarc should be empty
7239    wlarc='${wl}'
7240
7241    # Set some defaults for GNU ld with shared library support. These
7242    # are reset later if shared libraries are not supported. Putting them
7243    # here allows them to be overridden if necessary.
7244    runpath_var=LD_RUN_PATH
7245    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7246    export_dynamic_flag_spec='${wl}--export-dynamic'
7247    # ancient GNU ld didn't support --whole-archive et. al.
7248    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7249        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7250      else
7251        whole_archive_flag_spec=
7252    fi
7253    supports_anon_versioning=no
7254    case `$LD -v 2>/dev/null` in
7255      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7256      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7257      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7258      *\ 2.11.*) ;; # other 2.11 versions
7259      *) supports_anon_versioning=yes ;;
7260    esac
7261
7262    # See if GNU ld supports shared libraries.
7263    case $host_os in
7264    aix3* | aix4* | aix5*)
7265      # On AIX/PPC, the GNU linker is very broken
7266      if test "$host_cpu" != ia64; then
7267        ld_shlibs=no
7268        cat <<EOF 1>&2
7269
7270*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7271*** to be unable to reliably create shared libraries on AIX.
7272*** Therefore, libtool is disabling shared libraries support.  If you
7273*** really care for shared libraries, you may want to modify your PATH
7274*** so that a non-GNU linker is found, and then restart.
7275
7276EOF
7277      fi
7278      ;;
7279
7280    amigaos*)
7281      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)'
7282      hardcode_libdir_flag_spec='-L$libdir'
7283      hardcode_minus_L=yes
7284
7285      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7286      # that the semantics of dynamic libraries on AmigaOS, at least up
7287      # to version 4, is to share data among multiple programs linked
7288      # with the same dynamic library.  Since this doesn't match the
7289      # behavior of shared libraries on other platforms, we can't use
7290      # them.
7291      ld_shlibs=no
7292      ;;
7293
7294    beos*)
7295      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7296        allow_undefined_flag=unsupported
7297        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7298        # support --undefined.  This deserves some investigation.  FIXME
7299        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7300      else
7301        ld_shlibs=no
7302      fi
7303      ;;
7304
7305    cygwin* | mingw* | pw32*)
7306      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7307      # as there is no search path for DLLs.
7308      hardcode_libdir_flag_spec='-L$libdir'
7309      allow_undefined_flag=unsupported
7310      always_export_symbols=no
7311      enable_shared_with_static_runtimes=yes
7312      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7313
7314      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7315        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7316        # If the export-symbols file already is a .def file (1st line
7317        # is EXPORTS), use it as is; otherwise, prepend...
7318        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7319          cp $export_symbols $output_objdir/$soname.def;
7320        else
7321          echo EXPORTS > $output_objdir/$soname.def;
7322          cat $export_symbols >> $output_objdir/$soname.def;
7323        fi~
7324        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7325      else
7326        ld_shlibs=no
7327      fi
7328      ;;
7329
7330    interix3*)
7331      hardcode_direct=no
7332      hardcode_shlibpath_var=no
7333      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7334      export_dynamic_flag_spec='${wl}-E'
7335      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7336      # Instead, shared libraries are loaded at an image base (0x10000000 by
7337      # default) and relocated if they conflict, which is a slow very memory
7338      # consuming and fragmenting process.  To avoid this, we pick a random,
7339      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7340      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7341      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7342      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7343      ;;
7344
7345    linux*)
7346      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7347        tmp_addflag=
7348        case $cc_basename,$host_cpu in
7349        pgcc*)                          # Portland Group C compiler
7350          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7351          tmp_addflag=' $pic_flag'
7352          ;;
7353        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7354          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7355          tmp_addflag=' $pic_flag -Mnomain' ;;
7356        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7357          tmp_addflag=' -i_dynamic' ;;
7358        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7359          tmp_addflag=' -i_dynamic -nofor_main' ;;
7360        ifc* | ifort*)                  # Intel Fortran compiler
7361          tmp_addflag=' -nofor_main' ;;
7362        esac
7363        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7364
7365        if test $supports_anon_versioning = yes; then
7366          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7367  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7368  $echo "local: *; };" >> $output_objdir/$libname.ver~
7369          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7370        fi
7371      else
7372        ld_shlibs=no
7373      fi
7374      ;;
7375
7376    netbsd*)
7377      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7378        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7379        wlarc=
7380      else
7381        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7382        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7383      fi
7384      ;;
7385
7386    solaris*)
7387      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7388        ld_shlibs=no
7389        cat <<EOF 1>&2
7390
7391*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7392*** create shared libraries on Solaris systems.  Therefore, libtool
7393*** is disabling shared libraries support.  We urge you to upgrade GNU
7394*** binutils to release 2.9.1 or newer.  Another option is to modify
7395*** your PATH or compiler configuration so that the native linker is
7396*** used, and then restart.
7397
7398EOF
7399      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7400        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7401        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7402      else
7403        ld_shlibs=no
7404      fi
7405      ;;
7406
7407    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7408      case `$LD -v 2>&1` in
7409        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7410        ld_shlibs=no
7411        cat <<_LT_EOF 1>&2
7412
7413*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7414*** reliably create shared libraries on SCO systems.  Therefore, libtool
7415*** is disabling shared libraries support.  We urge you to upgrade GNU
7416*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7417*** your PATH or compiler configuration so that the native linker is
7418*** used, and then restart.
7419
7420_LT_EOF
7421        ;;
7422        *)
7423          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7424            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7425            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7426            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7427          else
7428            ld_shlibs=no
7429          fi
7430        ;;
7431      esac
7432      ;;
7433
7434    sunos4*)
7435      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7436      wlarc=
7437      hardcode_direct=yes
7438      hardcode_shlibpath_var=no
7439      ;;
7440
7441    *)
7442      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7443        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7444        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7445      else
7446        ld_shlibs=no
7447      fi
7448      ;;
7449    esac
7450
7451    if test "$ld_shlibs" = no; then
7452      runpath_var=
7453      hardcode_libdir_flag_spec=
7454      export_dynamic_flag_spec=
7455      whole_archive_flag_spec=
7456    fi
7457  else
7458    # PORTME fill in a description of your system's linker (not GNU ld)
7459    case $host_os in
7460    aix3*)
7461      allow_undefined_flag=unsupported
7462      always_export_symbols=yes
7463      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'
7464      # Note: this linker hardcodes the directories in LIBPATH if there
7465      # are no directories specified by -L.
7466      hardcode_minus_L=yes
7467      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7468        # Neither direct hardcoding nor static linking is supported with a
7469        # broken collect2.
7470        hardcode_direct=unsupported
7471      fi
7472      ;;
7473
7474    aix4* | aix5*)
7475      if test "$host_cpu" = ia64; then
7476        # On IA64, the linker does run time linking by default, so we don't
7477        # have to do anything special.
7478        aix_use_runtimelinking=no
7479        exp_sym_flag='-Bexport'
7480        no_entry_flag=""
7481      else
7482        # If we're using GNU nm, then we don't want the "-C" option.
7483        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7484        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7485          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'
7486        else
7487          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'
7488        fi
7489        aix_use_runtimelinking=no
7490
7491        # Test if we are trying to use run time linking or normal
7492        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7493        # need to do runtime linking.
7494        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7495          for ld_flag in $LDFLAGS; do
7496          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7497            aix_use_runtimelinking=yes
7498            break
7499          fi
7500          done
7501          ;;
7502        esac
7503
7504        exp_sym_flag='-bexport'
7505        no_entry_flag='-bnoentry'
7506      fi
7507
7508      # When large executables or shared objects are built, AIX ld can
7509      # have problems creating the table of contents.  If linking a library
7510      # or program results in "error TOC overflow" add -mminimal-toc to
7511      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7512      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7513
7514      archive_cmds=''
7515      hardcode_direct=yes
7516      hardcode_libdir_separator=':'
7517      link_all_deplibs=yes
7518
7519      if test "$GCC" = yes; then
7520        case $host_os in aix4.[012]|aix4.[012].*)
7521        # We only want to do this on AIX 4.2 and lower, the check
7522        # below for broken collect2 doesn't work under 4.3+
7523          collect2name=`${CC} -print-prog-name=collect2`
7524          if test -f "$collect2name" && \
7525           strings "$collect2name" | grep resolve_lib_name >/dev/null
7526          then
7527          # We have reworked collect2
7528          hardcode_direct=yes
7529          else
7530          # We have old collect2
7531          hardcode_direct=unsupported
7532          # It fails to find uninstalled libraries when the uninstalled
7533          # path is not listed in the libpath.  Setting hardcode_minus_L
7534          # to unsupported forces relinking
7535          hardcode_minus_L=yes
7536          hardcode_libdir_flag_spec='-L$libdir'
7537          hardcode_libdir_separator=
7538          fi
7539          ;;
7540        esac
7541        shared_flag='-shared'
7542        if test "$aix_use_runtimelinking" = yes; then
7543          shared_flag="$shared_flag "'${wl}-G'
7544        fi
7545      else
7546        # not using gcc
7547        if test "$host_cpu" = ia64; then
7548        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7549        # chokes on -Wl,-G. The following line is correct:
7550          shared_flag='-G'
7551        else
7552          if test "$aix_use_runtimelinking" = yes; then
7553            shared_flag='${wl}-G'
7554          else
7555            shared_flag='${wl}-bM:SRE'
7556          fi
7557        fi
7558      fi
7559
7560      # It seems that -bexpall does not export symbols beginning with
7561      # underscore (_), so it is better to generate a list of symbols to export.
7562      always_export_symbols=yes
7563      if test "$aix_use_runtimelinking" = yes; then
7564        # Warning - without using the other runtime loading flags (-brtl),
7565        # -berok will link without error, but may produce a broken library.
7566        allow_undefined_flag='-berok'
7567       # Determine the default libpath from the value encoded in an empty executable.
7568       cat >conftest.$ac_ext <<_ACEOF
7569/* confdefs.h.  */
7570_ACEOF
7571cat confdefs.h >>conftest.$ac_ext
7572cat >>conftest.$ac_ext <<_ACEOF
7573/* end confdefs.h.  */
7574
7575int
7576main ()
7577{
7578
7579  ;
7580  return 0;
7581}
7582_ACEOF
7583rm -f conftest.$ac_objext conftest$ac_exeext
7584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7585  (eval $ac_link) 2>conftest.er1
7586  ac_status=$?
7587  grep -v '^ *+' conftest.er1 >conftest.err
7588  rm -f conftest.er1
7589  cat conftest.err >&5
7590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591  (exit $ac_status); } &&
7592         { ac_try='test -z "$ac_c_werror_flag"
7593                         || test ! -s conftest.err'
7594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595  (eval $ac_try) 2>&5
7596  ac_status=$?
7597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598  (exit $ac_status); }; } &&
7599         { ac_try='test -s conftest$ac_exeext'
7600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601  (eval $ac_try) 2>&5
7602  ac_status=$?
7603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604  (exit $ac_status); }; }; then
7605
7606aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7607}'`
7608# Check for a 64-bit object if we didn't find anything.
7609if 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; }
7610}'`; fi
7611else
7612  echo "$as_me: failed program was:" >&5
7613sed 's/^/| /' conftest.$ac_ext >&5
7614
7615fi
7616rm -f conftest.err conftest.$ac_objext \
7617      conftest$ac_exeext conftest.$ac_ext
7618if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7619
7620       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7621        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7622       else
7623        if test "$host_cpu" = ia64; then
7624          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7625          allow_undefined_flag="-z nodefs"
7626          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7627        else
7628         # Determine the default libpath from the value encoded in an empty executable.
7629         cat >conftest.$ac_ext <<_ACEOF
7630/* confdefs.h.  */
7631_ACEOF
7632cat confdefs.h >>conftest.$ac_ext
7633cat >>conftest.$ac_ext <<_ACEOF
7634/* end confdefs.h.  */
7635
7636int
7637main ()
7638{
7639
7640  ;
7641  return 0;
7642}
7643_ACEOF
7644rm -f conftest.$ac_objext conftest$ac_exeext
7645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7646  (eval $ac_link) 2>conftest.er1
7647  ac_status=$?
7648  grep -v '^ *+' conftest.er1 >conftest.err
7649  rm -f conftest.er1
7650  cat conftest.err >&5
7651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652  (exit $ac_status); } &&
7653         { ac_try='test -z "$ac_c_werror_flag"
7654                         || test ! -s conftest.err'
7655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656  (eval $ac_try) 2>&5
7657  ac_status=$?
7658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659  (exit $ac_status); }; } &&
7660         { ac_try='test -s conftest$ac_exeext'
7661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662  (eval $ac_try) 2>&5
7663  ac_status=$?
7664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665  (exit $ac_status); }; }; then
7666
7667aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7668}'`
7669# Check for a 64-bit object if we didn't find anything.
7670if 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; }
7671}'`; fi
7672else
7673  echo "$as_me: failed program was:" >&5
7674sed 's/^/| /' conftest.$ac_ext >&5
7675
7676fi
7677rm -f conftest.err conftest.$ac_objext \
7678      conftest$ac_exeext conftest.$ac_ext
7679if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7680
7681         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7682          # Warning - without using the other run time loading flags,
7683          # -berok will link without error, but may produce a broken library.
7684          no_undefined_flag=' ${wl}-bernotok'
7685          allow_undefined_flag=' ${wl}-berok'
7686          # Exported symbols can be pulled into shared objects from archives
7687          whole_archive_flag_spec='$convenience'
7688          archive_cmds_need_lc=yes
7689          # This is similar to how AIX traditionally builds its shared libraries.
7690          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7691        fi
7692      fi
7693      ;;
7694
7695    amigaos*)
7696      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)'
7697      hardcode_libdir_flag_spec='-L$libdir'
7698      hardcode_minus_L=yes
7699      # see comment about different semantics on the GNU ld section
7700      ld_shlibs=no
7701      ;;
7702
7703    bsdi[45]*)
7704      export_dynamic_flag_spec=-rdynamic
7705      ;;
7706
7707    cygwin* | mingw* | pw32*)
7708      # When not using gcc, we currently assume that we are using
7709      # Microsoft Visual C++.
7710      # hardcode_libdir_flag_spec is actually meaningless, as there is
7711      # no search path for DLLs.
7712      hardcode_libdir_flag_spec=' '
7713      allow_undefined_flag=unsupported
7714      # Tell ltmain to make .lib files, not .a files.
7715      libext=lib
7716      # Tell ltmain to make .dll files, not .so files.
7717      shrext_cmds=".dll"
7718      # FIXME: Setting linknames here is a bad hack.
7719      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7720      # The linker will automatically build a .lib file if we build a DLL.
7721      old_archive_From_new_cmds='true'
7722      # FIXME: Should let the user specify the lib program.
7723      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7724      fix_srcfile_path='`cygpath -w "$srcfile"`'
7725      enable_shared_with_static_runtimes=yes
7726      ;;
7727
7728    darwin* | rhapsody*)
7729      case $host_os in
7730        rhapsody* | darwin1.[012])
7731         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7732         ;;
7733       *) # Darwin 1.3 on
7734         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7735           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7736         else
7737           case ${MACOSX_DEPLOYMENT_TARGET} in
7738             10.[012])
7739               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7740               ;;
7741             10.*)
7742               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7743               ;;
7744           esac
7745         fi
7746         ;;
7747      esac
7748      archive_cmds_need_lc=no
7749      hardcode_direct=no
7750      hardcode_automatic=yes
7751      hardcode_shlibpath_var=unsupported
7752      whole_archive_flag_spec=''
7753      link_all_deplibs=yes
7754    if test "$GCC" = yes ; then
7755        output_verbose_link_cmd='echo'
7756        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7757      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7758      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7759      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}'
7760      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}'
7761    else
7762      case $cc_basename in
7763        xlc*)
7764         output_verbose_link_cmd='echo'
7765         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7766         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7767          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7768         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7769          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}'
7770          ;;
7771       *)
7772         ld_shlibs=no
7773          ;;
7774      esac
7775    fi
7776      ;;
7777
7778    dgux*)
7779      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7780      hardcode_libdir_flag_spec='-L$libdir'
7781      hardcode_shlibpath_var=no
7782      ;;
7783
7784    freebsd1*)
7785      ld_shlibs=no
7786      ;;
7787
7788    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7789    # support.  Future versions do this automatically, but an explicit c++rt0.o
7790    # does not break anything, and helps significantly (at the cost of a little
7791    # extra space).
7792    freebsd2.2*)
7793      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7794      hardcode_libdir_flag_spec='-R$libdir'
7795      hardcode_direct=yes
7796      hardcode_shlibpath_var=no
7797      ;;
7798
7799    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7800    freebsd2*)
7801      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7802      hardcode_direct=yes
7803      hardcode_minus_L=yes
7804      hardcode_shlibpath_var=no
7805      ;;
7806
7807    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7808    freebsd* | kfreebsd*-gnu | dragonfly*)
7809      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7810      hardcode_libdir_flag_spec='-R$libdir'
7811      hardcode_direct=yes
7812      hardcode_shlibpath_var=no
7813      ;;
7814
7815    hpux9*)
7816      if test "$GCC" = yes; then
7817        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'
7818      else
7819        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'
7820      fi
7821      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7822      hardcode_libdir_separator=:
7823      hardcode_direct=yes
7824
7825      # hardcode_minus_L: Not really in the search PATH,
7826      # but as the default location of the library.
7827      hardcode_minus_L=yes
7828      export_dynamic_flag_spec='${wl}-E'
7829      ;;
7830
7831    hpux10*)
7832      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7833        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7834      else
7835        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7836      fi
7837      if test "$with_gnu_ld" = no; then
7838        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7839        hardcode_libdir_separator=:
7840
7841        hardcode_direct=yes
7842        export_dynamic_flag_spec='${wl}-E'
7843
7844        # hardcode_minus_L: Not really in the search PATH,
7845        # but as the default location of the library.
7846        hardcode_minus_L=yes
7847      fi
7848      ;;
7849
7850    hpux11*)
7851      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7852        case $host_cpu in
7853        hppa*64*)
7854          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7855          ;;
7856        ia64*)
7857          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7858          ;;
7859        *)
7860          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7861          ;;
7862        esac
7863      else
7864        case $host_cpu in
7865        hppa*64*)
7866          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7867          ;;
7868        ia64*)
7869          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7870          ;;
7871        *)
7872          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7873          ;;
7874        esac
7875      fi
7876      if test "$with_gnu_ld" = no; then
7877        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7878        hardcode_libdir_separator=:
7879
7880        case $host_cpu in
7881        hppa*64*|ia64*)
7882          hardcode_libdir_flag_spec_ld='+b $libdir'
7883          hardcode_direct=no
7884          hardcode_shlibpath_var=no
7885          ;;
7886        *)
7887          hardcode_direct=yes
7888          export_dynamic_flag_spec='${wl}-E'
7889
7890          # hardcode_minus_L: Not really in the search PATH,
7891          # but as the default location of the library.
7892          hardcode_minus_L=yes
7893          ;;
7894        esac
7895      fi
7896      ;;
7897
7898    irix5* | irix6* | nonstopux*)
7899      if test "$GCC" = yes; then
7900        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'
7901      else
7902        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'
7903        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7904      fi
7905      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7906      hardcode_libdir_separator=:
7907      link_all_deplibs=yes
7908      ;;
7909
7910    netbsd*)
7911      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7912        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7913      else
7914        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7915      fi
7916      hardcode_libdir_flag_spec='-R$libdir'
7917      hardcode_direct=yes
7918      hardcode_shlibpath_var=no
7919      ;;
7920
7921    newsos6)
7922      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7923      hardcode_direct=yes
7924      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7925      hardcode_libdir_separator=:
7926      hardcode_shlibpath_var=no
7927      ;;
7928
7929    openbsd*)
7930      hardcode_direct=yes
7931      hardcode_shlibpath_var=no
7932      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7933        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7934        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7935        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7936        export_dynamic_flag_spec='${wl}-E'
7937      else
7938       case $host_os in
7939         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7940           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7941           hardcode_libdir_flag_spec='-R$libdir'
7942           ;;
7943         *)
7944           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7945           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7946           ;;
7947       esac
7948      fi
7949      ;;
7950
7951    os2*)
7952      hardcode_libdir_flag_spec='-L$libdir'
7953      hardcode_minus_L=yes
7954      allow_undefined_flag=unsupported
7955      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'
7956      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7957      ;;
7958
7959    osf3*)
7960      if test "$GCC" = yes; then
7961        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7962        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'
7963      else
7964        allow_undefined_flag=' -expect_unresolved \*'
7965        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'
7966      fi
7967      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7968      hardcode_libdir_separator=:
7969      ;;
7970
7971    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7972      if test "$GCC" = yes; then
7973        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7974        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'
7975        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7976      else
7977        allow_undefined_flag=' -expect_unresolved \*'
7978        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'
7979        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7980        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7981
7982        # Both c and cxx compiler support -rpath directly
7983        hardcode_libdir_flag_spec='-rpath $libdir'
7984      fi
7985      hardcode_libdir_separator=:
7986      ;;
7987
7988    solaris*)
7989      no_undefined_flag=' -z text'
7990      if test "$GCC" = yes; then
7991        wlarc='${wl}'
7992        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7993        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7994          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7995      else
7996        wlarc=''
7997        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7998        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7999        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8000      fi
8001      hardcode_libdir_flag_spec='-R$libdir'
8002      hardcode_shlibpath_var=no
8003      case $host_os in
8004      solaris2.[0-5] | solaris2.[0-5].*) ;;
8005      *)
8006        # The compiler driver will combine linker options so we
8007        # cannot just pass the convience library names through
8008        # without $wl, iff we do not link with $LD.
8009        # Luckily, gcc supports the same syntax we need for Sun Studio.
8010        # Supported since Solaris 2.6 (maybe 2.5.1?)
8011        case $wlarc in
8012        '')
8013          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8014        *)
8015          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8016        esac ;;
8017      esac
8018      link_all_deplibs=yes
8019      ;;
8020
8021    sunos4*)
8022      if test "x$host_vendor" = xsequent; then
8023        # Use $CC to link under sequent, because it throws in some extra .o
8024        # files that make .init and .fini sections work.
8025        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8026      else
8027        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8028      fi
8029      hardcode_libdir_flag_spec='-L$libdir'
8030      hardcode_direct=yes
8031      hardcode_minus_L=yes
8032      hardcode_shlibpath_var=no
8033      ;;
8034
8035    sysv4)
8036      case $host_vendor in
8037        sni)
8038          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8039          hardcode_direct=yes # is this really true???
8040        ;;
8041        siemens)
8042          ## LD is ld it makes a PLAMLIB
8043          ## CC just makes a GrossModule.
8044          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8045          reload_cmds='$CC -r -o $output$reload_objs'
8046          hardcode_direct=no
8047        ;;
8048        motorola)
8049          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8050          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8051        ;;
8052      esac
8053      runpath_var='LD_RUN_PATH'
8054      hardcode_shlibpath_var=no
8055      ;;
8056
8057    sysv4.3*)
8058      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8059      hardcode_shlibpath_var=no
8060      export_dynamic_flag_spec='-Bexport'
8061      ;;
8062
8063    sysv4*MP*)
8064      if test -d /usr/nec; then
8065        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8066        hardcode_shlibpath_var=no
8067        runpath_var=LD_RUN_PATH
8068        hardcode_runpath_var=yes
8069        ld_shlibs=yes
8070      fi
8071      ;;
8072
8073    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8074      no_undefined_flag='${wl}-z,text'
8075      archive_cmds_need_lc=no
8076      hardcode_shlibpath_var=no
8077      runpath_var='LD_RUN_PATH'
8078
8079      if test "$GCC" = yes; then
8080        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8081        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8082      else
8083        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8084        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8085      fi
8086      ;;
8087
8088    sysv5* | sco3.2v5* | sco5v6*)
8089      # Note: We can NOT use -z defs as we might desire, because we do not
8090      # link with -lc, and that would cause any symbols used from libc to
8091      # always be unresolved, which means just about no library would
8092      # ever link correctly.  If we're not using GNU ld we use -z text
8093      # though, which does catch some bad symbols but isn't as heavy-handed
8094      # as -z defs.
8095      no_undefined_flag='${wl}-z,text'
8096      allow_undefined_flag='${wl}-z,nodefs'
8097      archive_cmds_need_lc=no
8098      hardcode_shlibpath_var=no
8099      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8100      hardcode_libdir_separator=':'
8101      link_all_deplibs=yes
8102      export_dynamic_flag_spec='${wl}-Bexport'
8103      runpath_var='LD_RUN_PATH'
8104
8105      if test "$GCC" = yes; then
8106        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8107        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8108      else
8109        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8110        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8111      fi
8112      ;;
8113
8114    uts4*)
8115      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8116      hardcode_libdir_flag_spec='-L$libdir'
8117      hardcode_shlibpath_var=no
8118      ;;
8119
8120    *)
8121      ld_shlibs=no
8122      ;;
8123    esac
8124  fi
8125
8126echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8127echo "${ECHO_T}$ld_shlibs" >&6
8128test "$ld_shlibs" = no && can_build_shared=no
8129
8130#
8131# Do we need to explicitly link libc?
8132#
8133case "x$archive_cmds_need_lc" in
8134x|xyes)
8135  # Assume -lc should be added
8136  archive_cmds_need_lc=yes
8137
8138  if test "$enable_shared" = yes && test "$GCC" = yes; then
8139    case $archive_cmds in
8140    *'~'*)
8141      # FIXME: we may have to deal with multi-command sequences.
8142      ;;
8143    '$CC '*)
8144      # Test whether the compiler implicitly links with -lc since on some
8145      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8146      # to ld, don't add -lc before -lgcc.
8147      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8148echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8149      $rm conftest*
8150      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8151
8152      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8153  (eval $ac_compile) 2>&5
8154  ac_status=$?
8155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156  (exit $ac_status); } 2>conftest.err; then
8157        soname=conftest
8158        lib=conftest
8159        libobjs=conftest.$ac_objext
8160        deplibs=
8161        wl=$lt_prog_compiler_wl
8162        pic_flag=$lt_prog_compiler_pic
8163        compiler_flags=-v
8164        linker_flags=-v
8165        verstring=
8166        output_objdir=.
8167        libname=conftest
8168        lt_save_allow_undefined_flag=$allow_undefined_flag
8169        allow_undefined_flag=
8170        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8171  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8172  ac_status=$?
8173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174  (exit $ac_status); }
8175        then
8176          archive_cmds_need_lc=no
8177        else
8178          archive_cmds_need_lc=yes
8179        fi
8180        allow_undefined_flag=$lt_save_allow_undefined_flag
8181      else
8182        cat conftest.err 1>&5
8183      fi
8184      $rm conftest*
8185      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8186echo "${ECHO_T}$archive_cmds_need_lc" >&6
8187      ;;
8188    esac
8189  fi
8190  ;;
8191esac
8192
8193echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8194echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8195library_names_spec=
8196libname_spec='lib$name'
8197soname_spec=
8198shrext_cmds=".so"
8199postinstall_cmds=
8200postuninstall_cmds=
8201finish_cmds=
8202finish_eval=
8203shlibpath_var=
8204shlibpath_overrides_runpath=unknown
8205version_type=none
8206dynamic_linker="$host_os ld.so"
8207sys_lib_dlsearch_path_spec="/lib /usr/lib"
8208if test "$GCC" = yes; then
8209  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8210  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8211    # if the path contains ";" then we assume it to be the separator
8212    # otherwise default to the standard path separator (i.e. ":") - it is
8213    # assumed that no part of a normal pathname contains ";" but that should
8214    # okay in the real world where ";" in dirpaths is itself problematic.
8215    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8216  else
8217    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8218  fi
8219else
8220  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8221fi
8222need_lib_prefix=unknown
8223hardcode_into_libs=no
8224
8225# when you set need_version to no, make sure it does not cause -set_version
8226# flags to be left without arguments
8227need_version=unknown
8228
8229case $host_os in
8230aix3*)
8231  version_type=linux
8232  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8233  shlibpath_var=LIBPATH
8234
8235  # AIX 3 has no versioning support, so we append a major version to the name.
8236  soname_spec='${libname}${release}${shared_ext}$major'
8237  ;;
8238
8239aix4* | aix5*)
8240  version_type=linux
8241  need_lib_prefix=no
8242  need_version=no
8243  hardcode_into_libs=yes
8244  if test "$host_cpu" = ia64; then
8245    # AIX 5 supports IA64
8246    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8247    shlibpath_var=LD_LIBRARY_PATH
8248  else
8249    # With GCC up to 2.95.x, collect2 would create an import file
8250    # for dependence libraries.  The import file would start with
8251    # the line `#! .'.  This would cause the generated library to
8252    # depend on `.', always an invalid library.  This was fixed in
8253    # development snapshots of GCC prior to 3.0.
8254    case $host_os in
8255      aix4 | aix4.[01] | aix4.[01].*)
8256      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8257           echo ' yes '
8258           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8259        :
8260      else
8261        can_build_shared=no
8262      fi
8263      ;;
8264    esac
8265    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8266    # soname into executable. Probably we can add versioning support to
8267    # collect2, so additional links can be useful in future.
8268    if test "$aix_use_runtimelinking" = yes; then
8269      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8270      # instead of lib<name>.a to let people know that these are not
8271      # typical AIX shared libraries.
8272      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8273    else
8274      # We preserve .a as extension for shared libraries through AIX4.2
8275      # and later when we are not doing run time linking.
8276      library_names_spec='${libname}${release}.a $libname.a'
8277      soname_spec='${libname}${release}${shared_ext}$major'
8278    fi
8279    shlibpath_var=LIBPATH
8280  fi
8281  ;;
8282
8283amigaos*)
8284  library_names_spec='$libname.ixlibrary $libname.a'
8285  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8286  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'
8287  ;;
8288
8289beos*)
8290  library_names_spec='${libname}${shared_ext}'
8291  dynamic_linker="$host_os ld.so"
8292  shlibpath_var=LIBRARY_PATH
8293  ;;
8294
8295bsdi[45]*)
8296  version_type=linux
8297  need_version=no
8298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8299  soname_spec='${libname}${release}${shared_ext}$major'
8300  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8301  shlibpath_var=LD_LIBRARY_PATH
8302  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8303  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8304  # the default ld.so.conf also contains /usr/contrib/lib and
8305  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8306  # libtool to hard-code these into programs
8307  ;;
8308
8309cygwin* | mingw* | pw32*)
8310  version_type=windows
8311  shrext_cmds=".dll"
8312  need_version=no
8313  need_lib_prefix=no
8314
8315  case $GCC,$host_os in
8316  yes,cygwin* | yes,mingw* | yes,pw32*)
8317    library_names_spec='$libname.dll.a'
8318    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8319    postinstall_cmds='base_file=`basename \${file}`~
8320      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8321      dldir=$destdir/`dirname \$dlpath`~
8322      test -d \$dldir || mkdir -p \$dldir~
8323      $install_prog $dir/$dlname \$dldir/$dlname~
8324      chmod a+x \$dldir/$dlname'
8325    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8326      dlpath=$dir/\$dldll~
8327       $rm \$dlpath'
8328    shlibpath_overrides_runpath=yes
8329
8330    case $host_os in
8331    cygwin*)
8332      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8333      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8334      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8335      ;;
8336    mingw*)
8337      # MinGW DLLs use traditional 'lib' prefix
8338      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8339      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8340      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8341        # It is most probably a Windows format PATH printed by
8342        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8343        # path with ; separators, and with drive letters. We can handle the
8344        # drive letters (cygwin fileutils understands them), so leave them,
8345        # especially as we might pass files found there to a mingw objdump,
8346        # which wouldn't understand a cygwinified path. Ahh.
8347        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8348      else
8349        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8350      fi
8351      ;;
8352    pw32*)
8353      # pw32 DLLs use 'pw' prefix rather than 'lib'
8354      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8355      ;;
8356    esac
8357    ;;
8358
8359  *)
8360    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8361    ;;
8362  esac
8363  dynamic_linker='Win32 ld.exe'
8364  # FIXME: first we should search . and the directory the executable is in
8365  shlibpath_var=PATH
8366  ;;
8367
8368darwin* | rhapsody*)
8369  dynamic_linker="$host_os dyld"
8370  version_type=darwin
8371  need_lib_prefix=no
8372  need_version=no
8373  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8374  soname_spec='${libname}${release}${major}$shared_ext'
8375  shlibpath_overrides_runpath=yes
8376  shlibpath_var=DYLD_LIBRARY_PATH
8377  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8378  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8379  if test "$GCC" = yes; then
8380    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"`
8381  else
8382    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8383  fi
8384  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8385  ;;
8386
8387dgux*)
8388  version_type=linux
8389  need_lib_prefix=no
8390  need_version=no
8391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8392  soname_spec='${libname}${release}${shared_ext}$major'
8393  shlibpath_var=LD_LIBRARY_PATH
8394  ;;
8395
8396freebsd1*)
8397  dynamic_linker=no
8398  ;;
8399
8400kfreebsd*-gnu)
8401  version_type=linux
8402  need_lib_prefix=no
8403  need_version=no
8404  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8405  soname_spec='${libname}${release}${shared_ext}$major'
8406  shlibpath_var=LD_LIBRARY_PATH
8407  shlibpath_overrides_runpath=no
8408  hardcode_into_libs=yes
8409  dynamic_linker='GNU ld.so'
8410  ;;
8411
8412freebsd* | dragonfly*)
8413  # DragonFly does not have aout.  When/if they implement a new
8414  # versioning mechanism, adjust this.
8415  if test -x /usr/bin/objformat; then
8416    objformat=`/usr/bin/objformat`
8417  else
8418    case $host_os in
8419    freebsd[123]*) objformat=aout ;;
8420    *) objformat=elf ;;
8421    esac
8422  fi
8423  version_type=freebsd-$objformat
8424  case $version_type in
8425    freebsd-elf*)
8426      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8427      need_version=no
8428      need_lib_prefix=no
8429      ;;
8430    freebsd-*)
8431      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8432      need_version=yes
8433      ;;
8434  esac
8435  shlibpath_var=LD_LIBRARY_PATH
8436  case $host_os in
8437  freebsd2*)
8438    shlibpath_overrides_runpath=yes
8439    ;;
8440  freebsd3.[01]* | freebsdelf3.[01]*)
8441    shlibpath_overrides_runpath=yes
8442    hardcode_into_libs=yes
8443    ;;
8444  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8445  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8446    shlibpath_overrides_runpath=no
8447    hardcode_into_libs=yes
8448    ;;
8449  freebsd*) # from 4.6 on
8450    shlibpath_overrides_runpath=yes
8451    hardcode_into_libs=yes
8452    ;;
8453  esac
8454  ;;
8455
8456gnu*)
8457  version_type=linux
8458  need_lib_prefix=no
8459  need_version=no
8460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8461  soname_spec='${libname}${release}${shared_ext}$major'
8462  shlibpath_var=LD_LIBRARY_PATH
8463  hardcode_into_libs=yes
8464  ;;
8465
8466hpux9* | hpux10* | hpux11*)
8467  # Give a soname corresponding to the major version so that dld.sl refuses to
8468  # link against other versions.
8469  version_type=sunos
8470  need_lib_prefix=no
8471  need_version=no
8472  case $host_cpu in
8473  ia64*)
8474    shrext_cmds='.so'
8475    hardcode_into_libs=yes
8476    dynamic_linker="$host_os dld.so"
8477    shlibpath_var=LD_LIBRARY_PATH
8478    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8479    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8480    soname_spec='${libname}${release}${shared_ext}$major'
8481    if test "X$HPUX_IA64_MODE" = X32; then
8482      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8483    else
8484      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8485    fi
8486    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8487    ;;
8488   hppa*64*)
8489     shrext_cmds='.sl'
8490     hardcode_into_libs=yes
8491     dynamic_linker="$host_os dld.sl"
8492     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8493     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8494     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8495     soname_spec='${libname}${release}${shared_ext}$major'
8496     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8497     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8498     ;;
8499   *)
8500    shrext_cmds='.sl'
8501    dynamic_linker="$host_os dld.sl"
8502    shlibpath_var=SHLIB_PATH
8503    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8504    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8505    soname_spec='${libname}${release}${shared_ext}$major'
8506    ;;
8507  esac
8508  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8509  postinstall_cmds='chmod 555 $lib'
8510  ;;
8511
8512interix3*)
8513  version_type=linux
8514  need_lib_prefix=no
8515  need_version=no
8516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8517  soname_spec='${libname}${release}${shared_ext}$major'
8518  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8519  shlibpath_var=LD_LIBRARY_PATH
8520  shlibpath_overrides_runpath=no
8521  hardcode_into_libs=yes
8522  ;;
8523
8524irix5* | irix6* | nonstopux*)
8525  case $host_os in
8526    nonstopux*) version_type=nonstopux ;;
8527    *)
8528        if test "$lt_cv_prog_gnu_ld" = yes; then
8529                version_type=linux
8530        else
8531                version_type=irix
8532        fi ;;
8533  esac
8534  need_lib_prefix=no
8535  need_version=no
8536  soname_spec='${libname}${release}${shared_ext}$major'
8537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8538  case $host_os in
8539  irix5* | nonstopux*)
8540    libsuff= shlibsuff=
8541    ;;
8542  *)
8543    case $LD in # libtool.m4 will add one of these switches to LD
8544    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8545      libsuff= shlibsuff= libmagic=32-bit;;
8546    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8547      libsuff=32 shlibsuff=N32 libmagic=N32;;
8548    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8549      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8550    *) libsuff= shlibsuff= libmagic=never-match;;
8551    esac
8552    ;;
8553  esac
8554  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8555  shlibpath_overrides_runpath=no
8556  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8557  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8558  hardcode_into_libs=yes
8559  ;;
8560
8561# No shared lib support for Linux oldld, aout, or coff.
8562linux*oldld* | linux*aout* | linux*coff*)
8563  dynamic_linker=no
8564  ;;
8565
8566# This must be Linux ELF.
8567linux*)
8568  version_type=linux
8569  need_lib_prefix=no
8570  need_version=no
8571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8572  soname_spec='${libname}${release}${shared_ext}$major'
8573  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8574  shlibpath_var=LD_LIBRARY_PATH
8575  shlibpath_overrides_runpath=no
8576  # This implies no fast_install, which is unacceptable.
8577  # Some rework will be needed to allow for fast_install
8578  # before this can be enabled.
8579  hardcode_into_libs=yes
8580
8581  # Append ld.so.conf contents to the search path
8582  if test -f /etc/ld.so.conf; then
8583    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8584    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8585  fi
8586
8587  # We used to test for /lib/ld.so.1 and disable shared libraries on
8588  # powerpc, because MkLinux only supported shared libraries with the
8589  # GNU dynamic linker.  Since this was broken with cross compilers,
8590  # most powerpc-linux boxes support dynamic linking these days and
8591  # people can always --disable-shared, the test was removed, and we
8592  # assume the GNU/Linux dynamic linker is in use.
8593  dynamic_linker='GNU/Linux ld.so'
8594  ;;
8595
8596knetbsd*-gnu)
8597  version_type=linux
8598  need_lib_prefix=no
8599  need_version=no
8600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8601  soname_spec='${libname}${release}${shared_ext}$major'
8602  shlibpath_var=LD_LIBRARY_PATH
8603  shlibpath_overrides_runpath=no
8604  hardcode_into_libs=yes
8605  dynamic_linker='GNU ld.so'
8606  ;;
8607
8608netbsd*)
8609  version_type=sunos
8610  need_lib_prefix=no
8611  need_version=no
8612  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8613    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8614    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8615    dynamic_linker='NetBSD (a.out) ld.so'
8616  else
8617    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8618    soname_spec='${libname}${release}${shared_ext}$major'
8619    dynamic_linker='NetBSD ld.elf_so'
8620  fi
8621  shlibpath_var=LD_LIBRARY_PATH
8622  shlibpath_overrides_runpath=yes
8623  hardcode_into_libs=yes
8624  ;;
8625
8626newsos6)
8627  version_type=linux
8628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8629  shlibpath_var=LD_LIBRARY_PATH
8630  shlibpath_overrides_runpath=yes
8631  ;;
8632
8633nto-qnx*)
8634  version_type=linux
8635  need_lib_prefix=no
8636  need_version=no
8637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8638  soname_spec='${libname}${release}${shared_ext}$major'
8639  shlibpath_var=LD_LIBRARY_PATH
8640  shlibpath_overrides_runpath=yes
8641  ;;
8642
8643openbsd*)
8644  version_type=sunos
8645  sys_lib_dlsearch_path_spec="/usr/lib"
8646  need_lib_prefix=no
8647  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8648  case $host_os in
8649    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8650    *)                         need_version=no  ;;
8651  esac
8652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8653  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8654  shlibpath_var=LD_LIBRARY_PATH
8655  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8656    case $host_os in
8657      openbsd2.[89] | openbsd2.[89].*)
8658        shlibpath_overrides_runpath=no
8659        ;;
8660      *)
8661        shlibpath_overrides_runpath=yes
8662        ;;
8663      esac
8664  else
8665    shlibpath_overrides_runpath=yes
8666  fi
8667  ;;
8668
8669os2*)
8670  libname_spec='$name'
8671  shrext_cmds=".dll"
8672  need_lib_prefix=no
8673  library_names_spec='$libname${shared_ext} $libname.a'
8674  dynamic_linker='OS/2 ld.exe'
8675  shlibpath_var=LIBPATH
8676  ;;
8677
8678osf3* | osf4* | osf5*)
8679  version_type=osf
8680  need_lib_prefix=no
8681  need_version=no
8682  soname_spec='${libname}${release}${shared_ext}$major'
8683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8684  shlibpath_var=LD_LIBRARY_PATH
8685  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8686  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8687  ;;
8688
8689solaris*)
8690  version_type=linux
8691  need_lib_prefix=no
8692  need_version=no
8693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8694  soname_spec='${libname}${release}${shared_ext}$major'
8695  shlibpath_var=LD_LIBRARY_PATH
8696  shlibpath_overrides_runpath=yes
8697  hardcode_into_libs=yes
8698  # ldd complains unless libraries are executable
8699  postinstall_cmds='chmod +x $lib'
8700  ;;
8701
8702sunos4*)
8703  version_type=sunos
8704  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8705  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8706  shlibpath_var=LD_LIBRARY_PATH
8707  shlibpath_overrides_runpath=yes
8708  if test "$with_gnu_ld" = yes; then
8709    need_lib_prefix=no
8710  fi
8711  need_version=yes
8712  ;;
8713
8714sysv4 | sysv4.3*)
8715  version_type=linux
8716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8717  soname_spec='${libname}${release}${shared_ext}$major'
8718  shlibpath_var=LD_LIBRARY_PATH
8719  case $host_vendor in
8720    sni)
8721      shlibpath_overrides_runpath=no
8722      need_lib_prefix=no
8723      export_dynamic_flag_spec='${wl}-Blargedynsym'
8724      runpath_var=LD_RUN_PATH
8725      ;;
8726    siemens)
8727      need_lib_prefix=no
8728      ;;
8729    motorola)
8730      need_lib_prefix=no
8731      need_version=no
8732      shlibpath_overrides_runpath=no
8733      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8734      ;;
8735  esac
8736  ;;
8737
8738sysv4*MP*)
8739  if test -d /usr/nec ;then
8740    version_type=linux
8741    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8742    soname_spec='$libname${shared_ext}.$major'
8743    shlibpath_var=LD_LIBRARY_PATH
8744  fi
8745  ;;
8746
8747sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8748  version_type=freebsd-elf
8749  need_lib_prefix=no
8750  need_version=no
8751  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8752  soname_spec='${libname}${release}${shared_ext}$major'
8753  shlibpath_var=LD_LIBRARY_PATH
8754  hardcode_into_libs=yes
8755  if test "$with_gnu_ld" = yes; then
8756    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8757    shlibpath_overrides_runpath=no
8758  else
8759    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8760    shlibpath_overrides_runpath=yes
8761    case $host_os in
8762      sco3.2v5*)
8763        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8764        ;;
8765    esac
8766  fi
8767  sys_lib_dlsearch_path_spec='/usr/lib'
8768  ;;
8769
8770uts4*)
8771  version_type=linux
8772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8773  soname_spec='${libname}${release}${shared_ext}$major'
8774  shlibpath_var=LD_LIBRARY_PATH
8775  ;;
8776
8777*)
8778  dynamic_linker=no
8779  ;;
8780esac
8781echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8782echo "${ECHO_T}$dynamic_linker" >&6
8783test "$dynamic_linker" = no && can_build_shared=no
8784
8785variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8786if test "$GCC" = yes; then
8787  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8788fi
8789
8790echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8791echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8792hardcode_action=
8793if test -n "$hardcode_libdir_flag_spec" || \
8794   test -n "$runpath_var" || \
8795   test "X$hardcode_automatic" = "Xyes" ; then
8796
8797  # We can hardcode non-existant directories.
8798  if test "$hardcode_direct" != no &&
8799     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8800     # have to relink, otherwise we might link with an installed library
8801     # when we should be linking with a yet-to-be-installed one
8802     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8803     test "$hardcode_minus_L" != no; then
8804    # Linking always hardcodes the temporary library directory.
8805    hardcode_action=relink
8806  else
8807    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8808    hardcode_action=immediate
8809  fi
8810else
8811  # We cannot hardcode anything, or else we can only hardcode existing
8812  # directories.
8813  hardcode_action=unsupported
8814fi
8815echo "$as_me:$LINENO: result: $hardcode_action" >&5
8816echo "${ECHO_T}$hardcode_action" >&6
8817
8818if test "$hardcode_action" = relink; then
8819  # Fast installation is not supported
8820  enable_fast_install=no
8821elif test "$shlibpath_overrides_runpath" = yes ||
8822     test "$enable_shared" = no; then
8823  # Fast installation is not necessary
8824  enable_fast_install=needless
8825fi
8826
8827striplib=
8828old_striplib=
8829echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8830echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8831if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8832  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8833  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8834  echo "$as_me:$LINENO: result: yes" >&5
8835echo "${ECHO_T}yes" >&6
8836else
8837# FIXME - insert some real tests, host_os isn't really good enough
8838  case $host_os in
8839   darwin*)
8840       if test -n "$STRIP" ; then
8841         striplib="$STRIP -x"
8842         echo "$as_me:$LINENO: result: yes" >&5
8843echo "${ECHO_T}yes" >&6
8844       else
8845  echo "$as_me:$LINENO: result: no" >&5
8846echo "${ECHO_T}no" >&6
8847fi
8848       ;;
8849   *)
8850  echo "$as_me:$LINENO: result: no" >&5
8851echo "${ECHO_T}no" >&6
8852    ;;
8853  esac
8854fi
8855
8856if test "x$enable_dlopen" != xyes; then
8857  enable_dlopen=unknown
8858  enable_dlopen_self=unknown
8859  enable_dlopen_self_static=unknown
8860else
8861  lt_cv_dlopen=no
8862  lt_cv_dlopen_libs=
8863
8864  case $host_os in
8865  beos*)
8866    lt_cv_dlopen="load_add_on"
8867    lt_cv_dlopen_libs=
8868    lt_cv_dlopen_self=yes
8869    ;;
8870
8871  mingw* | pw32*)
8872    lt_cv_dlopen="LoadLibrary"
8873    lt_cv_dlopen_libs=
8874   ;;
8875
8876  cygwin*)
8877    lt_cv_dlopen="dlopen"
8878    lt_cv_dlopen_libs=
8879   ;;
8880
8881  darwin*)
8882  # if libdl is installed we need to link against it
8883    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8884echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8885if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8886  echo $ECHO_N "(cached) $ECHO_C" >&6
8887else
8888  ac_check_lib_save_LIBS=$LIBS
8889LIBS="-ldl  $LIBS"
8890cat >conftest.$ac_ext <<_ACEOF
8891/* confdefs.h.  */
8892_ACEOF
8893cat confdefs.h >>conftest.$ac_ext
8894cat >>conftest.$ac_ext <<_ACEOF
8895/* end confdefs.h.  */
8896
8897/* Override any gcc2 internal prototype to avoid an error.  */
8898#ifdef __cplusplus
8899extern "C"
8900#endif
8901/* We use char because int might match the return type of a gcc2
8902   builtin and then its argument prototype would still apply.  */
8903char dlopen ();
8904int
8905main ()
8906{
8907dlopen ();
8908  ;
8909  return 0;
8910}
8911_ACEOF
8912rm -f conftest.$ac_objext conftest$ac_exeext
8913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8914  (eval $ac_link) 2>conftest.er1
8915  ac_status=$?
8916  grep -v '^ *+' conftest.er1 >conftest.err
8917  rm -f conftest.er1
8918  cat conftest.err >&5
8919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920  (exit $ac_status); } &&
8921         { ac_try='test -z "$ac_c_werror_flag"
8922                         || test ! -s conftest.err'
8923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924  (eval $ac_try) 2>&5
8925  ac_status=$?
8926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927  (exit $ac_status); }; } &&
8928         { ac_try='test -s conftest$ac_exeext'
8929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930  (eval $ac_try) 2>&5
8931  ac_status=$?
8932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933  (exit $ac_status); }; }; then
8934  ac_cv_lib_dl_dlopen=yes
8935else
8936  echo "$as_me: failed program was:" >&5
8937sed 's/^/| /' conftest.$ac_ext >&5
8938
8939ac_cv_lib_dl_dlopen=no
8940fi
8941rm -f conftest.err conftest.$ac_objext \
8942      conftest$ac_exeext conftest.$ac_ext
8943LIBS=$ac_check_lib_save_LIBS
8944fi
8945echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8946echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8947if test $ac_cv_lib_dl_dlopen = yes; then
8948  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8949else
8950
8951    lt_cv_dlopen="dyld"
8952    lt_cv_dlopen_libs=
8953    lt_cv_dlopen_self=yes
8954
8955fi
8956
8957   ;;
8958
8959  *)
8960    echo "$as_me:$LINENO: checking for shl_load" >&5
8961echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8962if test "${ac_cv_func_shl_load+set}" = set; then
8963  echo $ECHO_N "(cached) $ECHO_C" >&6
8964else
8965  cat >conftest.$ac_ext <<_ACEOF
8966/* confdefs.h.  */
8967_ACEOF
8968cat confdefs.h >>conftest.$ac_ext
8969cat >>conftest.$ac_ext <<_ACEOF
8970/* end confdefs.h.  */
8971/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8972   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8973#define shl_load innocuous_shl_load
8974
8975/* System header to define __stub macros and hopefully few prototypes,
8976    which can conflict with char shl_load (); below.
8977    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8978    <limits.h> exists even on freestanding compilers.  */
8979
8980#ifdef __STDC__
8981# include <limits.h>
8982#else
8983# include <assert.h>
8984#endif
8985
8986#undef shl_load
8987
8988/* Override any gcc2 internal prototype to avoid an error.  */
8989#ifdef __cplusplus
8990extern "C"
8991{
8992#endif
8993/* We use char because int might match the return type of a gcc2
8994   builtin and then its argument prototype would still apply.  */
8995char shl_load ();
8996/* The GNU C library defines this for functions which it implements
8997    to always fail with ENOSYS.  Some functions are actually named
8998    something starting with __ and the normal name is an alias.  */
8999#if defined (__stub_shl_load) || defined (__stub___shl_load)
9000choke me
9001#else
9002char (*f) () = shl_load;
9003#endif
9004#ifdef __cplusplus
9005}
9006#endif
9007
9008int
9009main ()
9010{
9011return f != shl_load;
9012  ;
9013  return 0;
9014}
9015_ACEOF
9016rm -f conftest.$ac_objext conftest$ac_exeext
9017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9018  (eval $ac_link) 2>conftest.er1
9019  ac_status=$?
9020  grep -v '^ *+' conftest.er1 >conftest.err
9021  rm -f conftest.er1
9022  cat conftest.err >&5
9023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024  (exit $ac_status); } &&
9025         { ac_try='test -z "$ac_c_werror_flag"
9026                         || test ! -s conftest.err'
9027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028  (eval $ac_try) 2>&5
9029  ac_status=$?
9030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031  (exit $ac_status); }; } &&
9032         { ac_try='test -s conftest$ac_exeext'
9033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034  (eval $ac_try) 2>&5
9035  ac_status=$?
9036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037  (exit $ac_status); }; }; then
9038  ac_cv_func_shl_load=yes
9039else
9040  echo "$as_me: failed program was:" >&5
9041sed 's/^/| /' conftest.$ac_ext >&5
9042
9043ac_cv_func_shl_load=no
9044fi
9045rm -f conftest.err conftest.$ac_objext \
9046      conftest$ac_exeext conftest.$ac_ext
9047fi
9048echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9049echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9050if test $ac_cv_func_shl_load = yes; then
9051  lt_cv_dlopen="shl_load"
9052else
9053  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9054echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9055if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9056  echo $ECHO_N "(cached) $ECHO_C" >&6
9057else
9058  ac_check_lib_save_LIBS=$LIBS
9059LIBS="-ldld  $LIBS"
9060cat >conftest.$ac_ext <<_ACEOF
9061/* confdefs.h.  */
9062_ACEOF
9063cat confdefs.h >>conftest.$ac_ext
9064cat >>conftest.$ac_ext <<_ACEOF
9065/* end confdefs.h.  */
9066
9067/* Override any gcc2 internal prototype to avoid an error.  */
9068#ifdef __cplusplus
9069extern "C"
9070#endif
9071/* We use char because int might match the return type of a gcc2
9072   builtin and then its argument prototype would still apply.  */
9073char shl_load ();
9074int
9075main ()
9076{
9077shl_load ();
9078  ;
9079  return 0;
9080}
9081_ACEOF
9082rm -f conftest.$ac_objext conftest$ac_exeext
9083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9084  (eval $ac_link) 2>conftest.er1
9085  ac_status=$?
9086  grep -v '^ *+' conftest.er1 >conftest.err
9087  rm -f conftest.er1
9088  cat conftest.err >&5
9089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090  (exit $ac_status); } &&
9091         { ac_try='test -z "$ac_c_werror_flag"
9092                         || test ! -s conftest.err'
9093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094  (eval $ac_try) 2>&5
9095  ac_status=$?
9096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097  (exit $ac_status); }; } &&
9098         { ac_try='test -s conftest$ac_exeext'
9099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100  (eval $ac_try) 2>&5
9101  ac_status=$?
9102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103  (exit $ac_status); }; }; then
9104  ac_cv_lib_dld_shl_load=yes
9105else
9106  echo "$as_me: failed program was:" >&5
9107sed 's/^/| /' conftest.$ac_ext >&5
9108
9109ac_cv_lib_dld_shl_load=no
9110fi
9111rm -f conftest.err conftest.$ac_objext \
9112      conftest$ac_exeext conftest.$ac_ext
9113LIBS=$ac_check_lib_save_LIBS
9114fi
9115echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9116echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9117if test $ac_cv_lib_dld_shl_load = yes; then
9118  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9119else
9120  echo "$as_me:$LINENO: checking for dlopen" >&5
9121echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9122if test "${ac_cv_func_dlopen+set}" = set; then
9123  echo $ECHO_N "(cached) $ECHO_C" >&6
9124else
9125  cat >conftest.$ac_ext <<_ACEOF
9126/* confdefs.h.  */
9127_ACEOF
9128cat confdefs.h >>conftest.$ac_ext
9129cat >>conftest.$ac_ext <<_ACEOF
9130/* end confdefs.h.  */
9131/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9132   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9133#define dlopen innocuous_dlopen
9134
9135/* System header to define __stub macros and hopefully few prototypes,
9136    which can conflict with char dlopen (); below.
9137    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9138    <limits.h> exists even on freestanding compilers.  */
9139
9140#ifdef __STDC__
9141# include <limits.h>
9142#else
9143# include <assert.h>
9144#endif
9145
9146#undef dlopen
9147
9148/* Override any gcc2 internal prototype to avoid an error.  */
9149#ifdef __cplusplus
9150extern "C"
9151{
9152#endif
9153/* We use char because int might match the return type of a gcc2
9154   builtin and then its argument prototype would still apply.  */
9155char dlopen ();
9156/* The GNU C library defines this for functions which it implements
9157    to always fail with ENOSYS.  Some functions are actually named
9158    something starting with __ and the normal name is an alias.  */
9159#if defined (__stub_dlopen) || defined (__stub___dlopen)
9160choke me
9161#else
9162char (*f) () = dlopen;
9163#endif
9164#ifdef __cplusplus
9165}
9166#endif
9167
9168int
9169main ()
9170{
9171return f != dlopen;
9172  ;
9173  return 0;
9174}
9175_ACEOF
9176rm -f conftest.$ac_objext conftest$ac_exeext
9177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9178  (eval $ac_link) 2>conftest.er1
9179  ac_status=$?
9180  grep -v '^ *+' conftest.er1 >conftest.err
9181  rm -f conftest.er1
9182  cat conftest.err >&5
9183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184  (exit $ac_status); } &&
9185         { ac_try='test -z "$ac_c_werror_flag"
9186                         || test ! -s conftest.err'
9187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188  (eval $ac_try) 2>&5
9189  ac_status=$?
9190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191  (exit $ac_status); }; } &&
9192         { ac_try='test -s conftest$ac_exeext'
9193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194  (eval $ac_try) 2>&5
9195  ac_status=$?
9196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197  (exit $ac_status); }; }; then
9198  ac_cv_func_dlopen=yes
9199else
9200  echo "$as_me: failed program was:" >&5
9201sed 's/^/| /' conftest.$ac_ext >&5
9202
9203ac_cv_func_dlopen=no
9204fi
9205rm -f conftest.err conftest.$ac_objext \
9206      conftest$ac_exeext conftest.$ac_ext
9207fi
9208echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9209echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9210if test $ac_cv_func_dlopen = yes; then
9211  lt_cv_dlopen="dlopen"
9212else
9213  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9214echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9215if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9216  echo $ECHO_N "(cached) $ECHO_C" >&6
9217else
9218  ac_check_lib_save_LIBS=$LIBS
9219LIBS="-ldl  $LIBS"
9220cat >conftest.$ac_ext <<_ACEOF
9221/* confdefs.h.  */
9222_ACEOF
9223cat confdefs.h >>conftest.$ac_ext
9224cat >>conftest.$ac_ext <<_ACEOF
9225/* end confdefs.h.  */
9226
9227/* Override any gcc2 internal prototype to avoid an error.  */
9228#ifdef __cplusplus
9229extern "C"
9230#endif
9231/* We use char because int might match the return type of a gcc2
9232   builtin and then its argument prototype would still apply.  */
9233char dlopen ();
9234int
9235main ()
9236{
9237dlopen ();
9238  ;
9239  return 0;
9240}
9241_ACEOF
9242rm -f conftest.$ac_objext conftest$ac_exeext
9243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9244  (eval $ac_link) 2>conftest.er1
9245  ac_status=$?
9246  grep -v '^ *+' conftest.er1 >conftest.err
9247  rm -f conftest.er1
9248  cat conftest.err >&5
9249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250  (exit $ac_status); } &&
9251         { ac_try='test -z "$ac_c_werror_flag"
9252                         || test ! -s conftest.err'
9253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254  (eval $ac_try) 2>&5
9255  ac_status=$?
9256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257  (exit $ac_status); }; } &&
9258         { ac_try='test -s conftest$ac_exeext'
9259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260  (eval $ac_try) 2>&5
9261  ac_status=$?
9262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263  (exit $ac_status); }; }; then
9264  ac_cv_lib_dl_dlopen=yes
9265else
9266  echo "$as_me: failed program was:" >&5
9267sed 's/^/| /' conftest.$ac_ext >&5
9268
9269ac_cv_lib_dl_dlopen=no
9270fi
9271rm -f conftest.err conftest.$ac_objext \
9272      conftest$ac_exeext conftest.$ac_ext
9273LIBS=$ac_check_lib_save_LIBS
9274fi
9275echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9276echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9277if test $ac_cv_lib_dl_dlopen = yes; then
9278  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9279else
9280  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9281echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9282if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9283  echo $ECHO_N "(cached) $ECHO_C" >&6
9284else
9285  ac_check_lib_save_LIBS=$LIBS
9286LIBS="-lsvld  $LIBS"
9287cat >conftest.$ac_ext <<_ACEOF
9288/* confdefs.h.  */
9289_ACEOF
9290cat confdefs.h >>conftest.$ac_ext
9291cat >>conftest.$ac_ext <<_ACEOF
9292/* end confdefs.h.  */
9293
9294/* Override any gcc2 internal prototype to avoid an error.  */
9295#ifdef __cplusplus
9296extern "C"
9297#endif
9298/* We use char because int might match the return type of a gcc2
9299   builtin and then its argument prototype would still apply.  */
9300char dlopen ();
9301int
9302main ()
9303{
9304dlopen ();
9305  ;
9306  return 0;
9307}
9308_ACEOF
9309rm -f conftest.$ac_objext conftest$ac_exeext
9310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9311  (eval $ac_link) 2>conftest.er1
9312  ac_status=$?
9313  grep -v '^ *+' conftest.er1 >conftest.err
9314  rm -f conftest.er1
9315  cat conftest.err >&5
9316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317  (exit $ac_status); } &&
9318         { ac_try='test -z "$ac_c_werror_flag"
9319                         || test ! -s conftest.err'
9320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321  (eval $ac_try) 2>&5
9322  ac_status=$?
9323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324  (exit $ac_status); }; } &&
9325         { ac_try='test -s conftest$ac_exeext'
9326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327  (eval $ac_try) 2>&5
9328  ac_status=$?
9329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330  (exit $ac_status); }; }; then
9331  ac_cv_lib_svld_dlopen=yes
9332else
9333  echo "$as_me: failed program was:" >&5
9334sed 's/^/| /' conftest.$ac_ext >&5
9335
9336ac_cv_lib_svld_dlopen=no
9337fi
9338rm -f conftest.err conftest.$ac_objext \
9339      conftest$ac_exeext conftest.$ac_ext
9340LIBS=$ac_check_lib_save_LIBS
9341fi
9342echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9343echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9344if test $ac_cv_lib_svld_dlopen = yes; then
9345  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9346else
9347  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9348echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9349if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9350  echo $ECHO_N "(cached) $ECHO_C" >&6
9351else
9352  ac_check_lib_save_LIBS=$LIBS
9353LIBS="-ldld  $LIBS"
9354cat >conftest.$ac_ext <<_ACEOF
9355/* confdefs.h.  */
9356_ACEOF
9357cat confdefs.h >>conftest.$ac_ext
9358cat >>conftest.$ac_ext <<_ACEOF
9359/* end confdefs.h.  */
9360
9361/* Override any gcc2 internal prototype to avoid an error.  */
9362#ifdef __cplusplus
9363extern "C"
9364#endif
9365/* We use char because int might match the return type of a gcc2
9366   builtin and then its argument prototype would still apply.  */
9367char dld_link ();
9368int
9369main ()
9370{
9371dld_link ();
9372  ;
9373  return 0;
9374}
9375_ACEOF
9376rm -f conftest.$ac_objext conftest$ac_exeext
9377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378  (eval $ac_link) 2>conftest.er1
9379  ac_status=$?
9380  grep -v '^ *+' conftest.er1 >conftest.err
9381  rm -f conftest.er1
9382  cat conftest.err >&5
9383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384  (exit $ac_status); } &&
9385         { ac_try='test -z "$ac_c_werror_flag"
9386                         || test ! -s conftest.err'
9387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388  (eval $ac_try) 2>&5
9389  ac_status=$?
9390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391  (exit $ac_status); }; } &&
9392         { ac_try='test -s conftest$ac_exeext'
9393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394  (eval $ac_try) 2>&5
9395  ac_status=$?
9396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397  (exit $ac_status); }; }; then
9398  ac_cv_lib_dld_dld_link=yes
9399else
9400  echo "$as_me: failed program was:" >&5
9401sed 's/^/| /' conftest.$ac_ext >&5
9402
9403ac_cv_lib_dld_dld_link=no
9404fi
9405rm -f conftest.err conftest.$ac_objext \
9406      conftest$ac_exeext conftest.$ac_ext
9407LIBS=$ac_check_lib_save_LIBS
9408fi
9409echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9410echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9411if test $ac_cv_lib_dld_dld_link = yes; then
9412  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9413fi
9414
9415
9416fi
9417
9418
9419fi
9420
9421
9422fi
9423
9424
9425fi
9426
9427
9428fi
9429
9430    ;;
9431  esac
9432
9433  if test "x$lt_cv_dlopen" != xno; then
9434    enable_dlopen=yes
9435  else
9436    enable_dlopen=no
9437  fi
9438
9439  case $lt_cv_dlopen in
9440  dlopen)
9441    save_CPPFLAGS="$CPPFLAGS"
9442    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9443
9444    save_LDFLAGS="$LDFLAGS"
9445    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9446
9447    save_LIBS="$LIBS"
9448    LIBS="$lt_cv_dlopen_libs $LIBS"
9449
9450    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9451echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9452if test "${lt_cv_dlopen_self+set}" = set; then
9453  echo $ECHO_N "(cached) $ECHO_C" >&6
9454else
9455          if test "$cross_compiling" = yes; then :
9456  lt_cv_dlopen_self=cross
9457else
9458  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9459  lt_status=$lt_dlunknown
9460  cat > conftest.$ac_ext <<EOF
9461#line 9461 "configure"
9462#include "confdefs.h"
9463
9464#if HAVE_DLFCN_H
9465#include <dlfcn.h>
9466#endif
9467
9468#include <stdio.h>
9469
9470#ifdef RTLD_GLOBAL
9471#  define LT_DLGLOBAL           RTLD_GLOBAL
9472#else
9473#  ifdef DL_GLOBAL
9474#    define LT_DLGLOBAL         DL_GLOBAL
9475#  else
9476#    define LT_DLGLOBAL         0
9477#  endif
9478#endif
9479
9480/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9481   find out it does not work in some platform. */
9482#ifndef LT_DLLAZY_OR_NOW
9483#  ifdef RTLD_LAZY
9484#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9485#  else
9486#    ifdef DL_LAZY
9487#      define LT_DLLAZY_OR_NOW          DL_LAZY
9488#    else
9489#      ifdef RTLD_NOW
9490#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9491#      else
9492#        ifdef DL_NOW
9493#          define LT_DLLAZY_OR_NOW      DL_NOW
9494#        else
9495#          define LT_DLLAZY_OR_NOW      0
9496#        endif
9497#      endif
9498#    endif
9499#  endif
9500#endif
9501
9502#ifdef __cplusplus
9503extern "C" void exit (int);
9504#endif
9505
9506void fnord() { int i=42;}
9507int main ()
9508{
9509  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9510  int status = $lt_dlunknown;
9511
9512  if (self)
9513    {
9514      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9515      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9516      /* dlclose (self); */
9517    }
9518  else
9519    puts (dlerror ());
9520
9521    exit (status);
9522}
9523EOF
9524  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9525  (eval $ac_link) 2>&5
9526  ac_status=$?
9527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9529    (./conftest; exit; ) >&5 2>/dev/null
9530    lt_status=$?
9531    case x$lt_status in
9532      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9533      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9534      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9535    esac
9536  else :
9537    # compilation failed
9538    lt_cv_dlopen_self=no
9539  fi
9540fi
9541rm -fr conftest*
9542
9543
9544fi
9545echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9546echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9547
9548    if test "x$lt_cv_dlopen_self" = xyes; then
9549      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9550      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9551echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9552if test "${lt_cv_dlopen_self_static+set}" = set; then
9553  echo $ECHO_N "(cached) $ECHO_C" >&6
9554else
9555          if test "$cross_compiling" = yes; then :
9556  lt_cv_dlopen_self_static=cross
9557else
9558  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9559  lt_status=$lt_dlunknown
9560  cat > conftest.$ac_ext <<EOF
9561#line 9561 "configure"
9562#include "confdefs.h"
9563
9564#if HAVE_DLFCN_H
9565#include <dlfcn.h>
9566#endif
9567
9568#include <stdio.h>
9569
9570#ifdef RTLD_GLOBAL
9571#  define LT_DLGLOBAL           RTLD_GLOBAL
9572#else
9573#  ifdef DL_GLOBAL
9574#    define LT_DLGLOBAL         DL_GLOBAL
9575#  else
9576#    define LT_DLGLOBAL         0
9577#  endif
9578#endif
9579
9580/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9581   find out it does not work in some platform. */
9582#ifndef LT_DLLAZY_OR_NOW
9583#  ifdef RTLD_LAZY
9584#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9585#  else
9586#    ifdef DL_LAZY
9587#      define LT_DLLAZY_OR_NOW          DL_LAZY
9588#    else
9589#      ifdef RTLD_NOW
9590#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9591#      else
9592#        ifdef DL_NOW
9593#          define LT_DLLAZY_OR_NOW      DL_NOW
9594#        else
9595#          define LT_DLLAZY_OR_NOW      0
9596#        endif
9597#      endif
9598#    endif
9599#  endif
9600#endif
9601
9602#ifdef __cplusplus
9603extern "C" void exit (int);
9604#endif
9605
9606void fnord() { int i=42;}
9607int main ()
9608{
9609  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9610  int status = $lt_dlunknown;
9611
9612  if (self)
9613    {
9614      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9615      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9616      /* dlclose (self); */
9617    }
9618  else
9619    puts (dlerror ());
9620
9621    exit (status);
9622}
9623EOF
9624  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9625  (eval $ac_link) 2>&5
9626  ac_status=$?
9627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9629    (./conftest; exit; ) >&5 2>/dev/null
9630    lt_status=$?
9631    case x$lt_status in
9632      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9633      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9634      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9635    esac
9636  else :
9637    # compilation failed
9638    lt_cv_dlopen_self_static=no
9639  fi
9640fi
9641rm -fr conftest*
9642
9643
9644fi
9645echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9646echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9647    fi
9648
9649    CPPFLAGS="$save_CPPFLAGS"
9650    LDFLAGS="$save_LDFLAGS"
9651    LIBS="$save_LIBS"
9652    ;;
9653  esac
9654
9655  case $lt_cv_dlopen_self in
9656  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9657  *) enable_dlopen_self=unknown ;;
9658  esac
9659
9660  case $lt_cv_dlopen_self_static in
9661  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9662  *) enable_dlopen_self_static=unknown ;;
9663  esac
9664fi
9665
9666
9667# Report which library types will actually be built
9668echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9669echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9670echo "$as_me:$LINENO: result: $can_build_shared" >&5
9671echo "${ECHO_T}$can_build_shared" >&6
9672
9673echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9674echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9675test "$can_build_shared" = "no" && enable_shared=no
9676
9677# On AIX, shared libraries and static libraries use the same namespace, and
9678# are all built from PIC.
9679case $host_os in
9680aix3*)
9681  test "$enable_shared" = yes && enable_static=no
9682  if test -n "$RANLIB"; then
9683    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9684    postinstall_cmds='$RANLIB $lib'
9685  fi
9686  ;;
9687
9688aix4* | aix5*)
9689  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9690    test "$enable_shared" = yes && enable_static=no
9691  fi
9692    ;;
9693esac
9694echo "$as_me:$LINENO: result: $enable_shared" >&5
9695echo "${ECHO_T}$enable_shared" >&6
9696
9697echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9698echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9699# Make sure either enable_shared or enable_static is yes.
9700test "$enable_shared" = yes || enable_static=yes
9701echo "$as_me:$LINENO: result: $enable_static" >&5
9702echo "${ECHO_T}$enable_static" >&6
9703
9704# The else clause should only fire when bootstrapping the
9705# libtool distribution, otherwise you forgot to ship ltmain.sh
9706# with your package, and you will get complaints that there are
9707# no rules to generate ltmain.sh.
9708if test -f "$ltmain"; then
9709  # See if we are running on zsh, and set the options which allow our commands through
9710  # without removal of \ escapes.
9711  if test -n "${ZSH_VERSION+set}" ; then
9712    setopt NO_GLOB_SUBST
9713  fi
9714  # Now quote all the things that may contain metacharacters while being
9715  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9716  # variables and quote the copies for generation of the libtool script.
9717  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9718    SED SHELL STRIP \
9719    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9720    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9721    deplibs_check_method reload_flag reload_cmds need_locks \
9722    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9723    lt_cv_sys_global_symbol_to_c_name_address \
9724    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9725    old_postinstall_cmds old_postuninstall_cmds \
9726    compiler \
9727    CC \
9728    LD \
9729    lt_prog_compiler_wl \
9730    lt_prog_compiler_pic \
9731    lt_prog_compiler_static \
9732    lt_prog_compiler_no_builtin_flag \
9733    export_dynamic_flag_spec \
9734    thread_safe_flag_spec \
9735    whole_archive_flag_spec \
9736    enable_shared_with_static_runtimes \
9737    old_archive_cmds \
9738    old_archive_from_new_cmds \
9739    predep_objects \
9740    postdep_objects \
9741    predeps \
9742    postdeps \
9743    compiler_lib_search_path \
9744    archive_cmds \
9745    archive_expsym_cmds \
9746    postinstall_cmds \
9747    postuninstall_cmds \
9748    old_archive_from_expsyms_cmds \
9749    allow_undefined_flag \
9750    no_undefined_flag \
9751    export_symbols_cmds \
9752    hardcode_libdir_flag_spec \
9753    hardcode_libdir_flag_spec_ld \
9754    hardcode_libdir_separator \
9755    hardcode_automatic \
9756    module_cmds \
9757    module_expsym_cmds \
9758    lt_cv_prog_compiler_c_o \
9759    exclude_expsyms \
9760    include_expsyms; do
9761
9762    case $var in
9763    old_archive_cmds | \
9764    old_archive_from_new_cmds | \
9765    archive_cmds | \
9766    archive_expsym_cmds | \
9767    module_cmds | \
9768    module_expsym_cmds | \
9769    old_archive_from_expsyms_cmds | \
9770    export_symbols_cmds | \
9771    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9772    postinstall_cmds | postuninstall_cmds | \
9773    old_postinstall_cmds | old_postuninstall_cmds | \
9774    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9775      # Double-quote double-evaled strings.
9776      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9777      ;;
9778    *)
9779      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9780      ;;
9781    esac
9782  done
9783
9784  case $lt_echo in
9785  *'\$0 --fallback-echo"')
9786    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9787    ;;
9788  esac
9789
9790cfgfile="${ofile}T"
9791  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9792  $rm -f "$cfgfile"
9793  { echo "$as_me:$LINENO: creating $ofile" >&5
9794echo "$as_me: creating $ofile" >&6;}
9795
9796  cat <<__EOF__ >> "$cfgfile"
9797#! $SHELL
9798
9799# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9800# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9801# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9802#
9803# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9804# Free Software Foundation, Inc.
9805#
9806# This file is part of GNU Libtool:
9807# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9808#
9809# This program is free software; you can redistribute it and/or modify
9810# it under the terms of the GNU General Public License as published by
9811# the Free Software Foundation; either version 2 of the License, or
9812# (at your option) any later version.
9813#
9814# This program is distributed in the hope that it will be useful, but
9815# WITHOUT ANY WARRANTY; without even the implied warranty of
9816# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9817# General Public License for more details.
9818#
9819# You should have received a copy of the GNU General Public License
9820# along with this program; if not, write to the Free Software
9821# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9822#
9823# As a special exception to the GNU General Public License, if you
9824# distribute this file as part of a program that contains a
9825# configuration script generated by Autoconf, you may include it under
9826# the same distribution terms that you use for the rest of that program.
9827
9828# A sed program that does not truncate output.
9829SED=$lt_SED
9830
9831# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9832Xsed="$SED -e 1s/^X//"
9833
9834# The HP-UX ksh and POSIX shell print the target directory to stdout
9835# if CDPATH is set.
9836(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9837
9838# The names of the tagged configurations supported by this script.
9839available_tags=
9840
9841# ### BEGIN LIBTOOL CONFIG
9842
9843# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9844
9845# Shell to use when invoking shell scripts.
9846SHELL=$lt_SHELL
9847
9848# Whether or not to build shared libraries.
9849build_libtool_libs=$enable_shared
9850
9851# Whether or not to build static libraries.
9852build_old_libs=$enable_static
9853
9854# Whether or not to add -lc for building shared libraries.
9855build_libtool_need_lc=$archive_cmds_need_lc
9856
9857# Whether or not to disallow shared libs when runtime libs are static
9858allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9859
9860# Whether or not to optimize for fast installation.
9861fast_install=$enable_fast_install
9862
9863# The host system.
9864host_alias=$host_alias
9865host=$host
9866host_os=$host_os
9867
9868# The build system.
9869build_alias=$build_alias
9870build=$build
9871build_os=$build_os
9872
9873# An echo program that does not interpret backslashes.
9874echo=$lt_echo
9875
9876# The archiver.
9877AR=$lt_AR
9878AR_FLAGS=$lt_AR_FLAGS
9879
9880# A C compiler.
9881LTCC=$lt_LTCC
9882
9883# LTCC compiler flags.
9884LTCFLAGS=$lt_LTCFLAGS
9885
9886# A language-specific compiler.
9887CC=$lt_compiler
9888
9889# Is the compiler the GNU C compiler?
9890with_gcc=$GCC
9891
9892# An ERE matcher.
9893EGREP=$lt_EGREP
9894
9895# The linker used to build libraries.
9896LD=$lt_LD
9897
9898# Whether we need hard or soft links.
9899LN_S=$lt_LN_S
9900
9901# A BSD-compatible nm program.
9902NM=$lt_NM
9903
9904# A symbol stripping program
9905STRIP=$lt_STRIP
9906
9907# Used to examine libraries when file_magic_cmd begins "file"
9908MAGIC_CMD=$MAGIC_CMD
9909
9910# Used on cygwin: DLL creation program.
9911DLLTOOL="$DLLTOOL"
9912
9913# Used on cygwin: object dumper.
9914OBJDUMP="$OBJDUMP"
9915
9916# Used on cygwin: assembler.
9917AS="$AS"
9918
9919# The name of the directory that contains temporary libtool files.
9920objdir=$objdir
9921
9922# How to create reloadable object files.
9923reload_flag=$lt_reload_flag
9924reload_cmds=$lt_reload_cmds
9925
9926# How to pass a linker flag through the compiler.
9927wl=$lt_lt_prog_compiler_wl
9928
9929# Object file suffix (normally "o").
9930objext="$ac_objext"
9931
9932# Old archive suffix (normally "a").
9933libext="$libext"
9934
9935# Shared library suffix (normally ".so").
9936shrext_cmds='$shrext_cmds'
9937
9938# Executable file suffix (normally "").
9939exeext="$exeext"
9940
9941# Additional compiler flags for building library objects.
9942pic_flag=$lt_lt_prog_compiler_pic
9943pic_mode=$pic_mode
9944
9945# What is the maximum length of a command?
9946max_cmd_len=$lt_cv_sys_max_cmd_len
9947
9948# Does compiler simultaneously support -c and -o options?
9949compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9950
9951# Must we lock files when doing compilation?
9952need_locks=$lt_need_locks
9953
9954# Do we need the lib prefix for modules?
9955need_lib_prefix=$need_lib_prefix
9956
9957# Do we need a version for libraries?
9958need_version=$need_version
9959
9960# Whether dlopen is supported.
9961dlopen_support=$enable_dlopen
9962
9963# Whether dlopen of programs is supported.
9964dlopen_self=$enable_dlopen_self
9965
9966# Whether dlopen of statically linked programs is supported.
9967dlopen_self_static=$enable_dlopen_self_static
9968
9969# Compiler flag to prevent dynamic linking.
9970link_static_flag=$lt_lt_prog_compiler_static
9971
9972# Compiler flag to turn off builtin functions.
9973no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9974
9975# Compiler flag to allow reflexive dlopens.
9976export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9977
9978# Compiler flag to generate shared objects directly from archives.
9979whole_archive_flag_spec=$lt_whole_archive_flag_spec
9980
9981# Compiler flag to generate thread-safe objects.
9982thread_safe_flag_spec=$lt_thread_safe_flag_spec
9983
9984# Library versioning type.
9985version_type=$version_type
9986
9987# Format of library name prefix.
9988libname_spec=$lt_libname_spec
9989
9990# List of archive names.  First name is the real one, the rest are links.
9991# The last name is the one that the linker finds with -lNAME.
9992library_names_spec=$lt_library_names_spec
9993
9994# The coded name of the library, if different from the real name.
9995soname_spec=$lt_soname_spec
9996
9997# Commands used to build and install an old-style archive.
9998RANLIB=$lt_RANLIB
9999old_archive_cmds=$lt_old_archive_cmds
10000old_postinstall_cmds=$lt_old_postinstall_cmds
10001old_postuninstall_cmds=$lt_old_postuninstall_cmds
10002
10003# Create an old-style archive from a shared archive.
10004old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10005
10006# Create a temporary old-style archive to link instead of a shared archive.
10007old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10008
10009# Commands used to build and install a shared archive.
10010archive_cmds=$lt_archive_cmds
10011archive_expsym_cmds=$lt_archive_expsym_cmds
10012postinstall_cmds=$lt_postinstall_cmds
10013postuninstall_cmds=$lt_postuninstall_cmds
10014
10015# Commands used to build a loadable module (assumed same as above if empty)
10016module_cmds=$lt_module_cmds
10017module_expsym_cmds=$lt_module_expsym_cmds
10018
10019# Commands to strip libraries.
10020old_striplib=$lt_old_striplib
10021striplib=$lt_striplib
10022
10023# Dependencies to place before the objects being linked to create a
10024# shared library.
10025predep_objects=$lt_predep_objects
10026
10027# Dependencies to place after the objects being linked to create a
10028# shared library.
10029postdep_objects=$lt_postdep_objects
10030
10031# Dependencies to place before the objects being linked to create a
10032# shared library.
10033predeps=$lt_predeps
10034
10035# Dependencies to place after the objects being linked to create a
10036# shared library.
10037postdeps=$lt_postdeps
10038
10039# The library search path used internally by the compiler when linking
10040# a shared library.
10041compiler_lib_search_path=$lt_compiler_lib_search_path
10042
10043# Method to check whether dependent libraries are shared objects.
10044deplibs_check_method=$lt_deplibs_check_method
10045
10046# Command to use when deplibs_check_method == file_magic.
10047file_magic_cmd=$lt_file_magic_cmd
10048
10049# Flag that allows shared libraries with undefined symbols to be built.
10050allow_undefined_flag=$lt_allow_undefined_flag
10051
10052# Flag that forces no undefined symbols.
10053no_undefined_flag=$lt_no_undefined_flag
10054
10055# Commands used to finish a libtool library installation in a directory.
10056finish_cmds=$lt_finish_cmds
10057
10058# Same as above, but a single script fragment to be evaled but not shown.
10059finish_eval=$lt_finish_eval
10060
10061# Take the output of nm and produce a listing of raw symbols and C names.
10062global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10063
10064# Transform the output of nm in a proper C declaration
10065global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10066
10067# Transform the output of nm in a C name address pair
10068global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10069
10070# This is the shared library runtime path variable.
10071runpath_var=$runpath_var
10072
10073# This is the shared library path variable.
10074shlibpath_var=$shlibpath_var
10075
10076# Is shlibpath searched before the hard-coded library search path?
10077shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10078
10079# How to hardcode a shared library path into an executable.
10080hardcode_action=$hardcode_action
10081
10082# Whether we should hardcode library paths into libraries.
10083hardcode_into_libs=$hardcode_into_libs
10084
10085# Flag to hardcode \$libdir into a binary during linking.
10086# This must work even if \$libdir does not exist.
10087hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10088
10089# If ld is used when linking, flag to hardcode \$libdir into
10090# a binary during linking. This must work even if \$libdir does
10091# not exist.
10092hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10093
10094# Whether we need a single -rpath flag with a separated argument.
10095hardcode_libdir_separator=$lt_hardcode_libdir_separator
10096
10097# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10098# resulting binary.
10099hardcode_direct=$hardcode_direct
10100
10101# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10102# resulting binary.
10103hardcode_minus_L=$hardcode_minus_L
10104
10105# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10106# the resulting binary.
10107hardcode_shlibpath_var=$hardcode_shlibpath_var
10108
10109# Set to yes if building a shared library automatically hardcodes DIR into the library
10110# and all subsequent libraries and executables linked against it.
10111hardcode_automatic=$hardcode_automatic
10112
10113# Variables whose values should be saved in libtool wrapper scripts and
10114# restored at relink time.
10115variables_saved_for_relink="$variables_saved_for_relink"
10116
10117# Whether libtool must link a program against all its dependency libraries.
10118link_all_deplibs=$link_all_deplibs
10119
10120# Compile-time system search path for libraries
10121sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10122
10123# Run-time system search path for libraries
10124sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10125
10126# Fix the shell variable \$srcfile for the compiler.
10127fix_srcfile_path="$fix_srcfile_path"
10128
10129# Set to yes if exported symbols are required.
10130always_export_symbols=$always_export_symbols
10131
10132# The commands to list exported symbols.
10133export_symbols_cmds=$lt_export_symbols_cmds
10134
10135# The commands to extract the exported symbol list from a shared archive.
10136extract_expsyms_cmds=$lt_extract_expsyms_cmds
10137
10138# Symbols that should not be listed in the preloaded symbols.
10139exclude_expsyms=$lt_exclude_expsyms
10140
10141# Symbols that must always be exported.
10142include_expsyms=$lt_include_expsyms
10143
10144# ### END LIBTOOL CONFIG
10145
10146__EOF__
10147
10148
10149  case $host_os in
10150  aix3*)
10151    cat <<\EOF >> "$cfgfile"
10152
10153# AIX sometimes has problems with the GCC collect2 program.  For some
10154# reason, if we set the COLLECT_NAMES environment variable, the problems
10155# vanish in a puff of smoke.
10156if test "X${COLLECT_NAMES+set}" != Xset; then
10157  COLLECT_NAMES=
10158  export COLLECT_NAMES
10159fi
10160EOF
10161    ;;
10162  esac
10163
10164  # We use sed instead of cat because bash on DJGPP gets confused if
10165  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10166  # text mode, it properly converts lines to CR/LF.  This bash problem
10167  # is reportedly fixed, but why not run on old versions too?
10168  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10169
10170  mv -f "$cfgfile" "$ofile" || \
10171    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10172  chmod +x "$ofile"
10173
10174else
10175  # If there is no Makefile yet, we rely on a make rule to execute
10176  # `config.status --recheck' to rerun these tests and create the
10177  # libtool script then.
10178  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10179  if test -f "$ltmain_in"; then
10180    test -f Makefile && make "$ltmain"
10181  fi
10182fi
10183
10184
10185ac_ext=c
10186ac_cpp='$CPP $CPPFLAGS'
10187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10189ac_compiler_gnu=$ac_cv_c_compiler_gnu
10190
10191CC="$lt_save_CC"
10192
10193
10194# Check whether --with-tags or --without-tags was given.
10195if test "${with_tags+set}" = set; then
10196  withval="$with_tags"
10197  tagnames="$withval"
10198fi;
10199
10200if test -f "$ltmain" && test -n "$tagnames"; then
10201  if test ! -f "${ofile}"; then
10202    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10203echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10204  fi
10205
10206  if test -z "$LTCC"; then
10207    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10208    if test -z "$LTCC"; then
10209      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10210echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10211    else
10212      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10213echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10214    fi
10215  fi
10216  if test -z "$LTCFLAGS"; then
10217    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10218  fi
10219
10220  # Extract list of available tagged configurations in $ofile.
10221  # Note that this assumes the entire list is on one line.
10222  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10223
10224  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10225  for tagname in $tagnames; do
10226    IFS="$lt_save_ifs"
10227    # Check whether tagname contains only valid characters
10228    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10229    "") ;;
10230    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10231echo "$as_me: error: invalid tag name: $tagname" >&2;}
10232   { (exit 1); exit 1; }; }
10233        ;;
10234    esac
10235
10236    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10237    then
10238      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10239echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10240   { (exit 1); exit 1; }; }
10241    fi
10242
10243    # Update the list of available tags.
10244    if test -n "$tagname"; then
10245      echo appending configuration tag \"$tagname\" to $ofile
10246
10247      case $tagname in
10248      CXX)
10249        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10250            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10251            (test "X$CXX" != "Xg++"))) ; then
10252          ac_ext=cc
10253ac_cpp='$CXXCPP $CPPFLAGS'
10254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10257
10258
10259
10260
10261archive_cmds_need_lc_CXX=no
10262allow_undefined_flag_CXX=
10263always_export_symbols_CXX=no
10264archive_expsym_cmds_CXX=
10265export_dynamic_flag_spec_CXX=
10266hardcode_direct_CXX=no
10267hardcode_libdir_flag_spec_CXX=
10268hardcode_libdir_flag_spec_ld_CXX=
10269hardcode_libdir_separator_CXX=
10270hardcode_minus_L_CXX=no
10271hardcode_shlibpath_var_CXX=unsupported
10272hardcode_automatic_CXX=no
10273module_cmds_CXX=
10274module_expsym_cmds_CXX=
10275link_all_deplibs_CXX=unknown
10276old_archive_cmds_CXX=$old_archive_cmds
10277no_undefined_flag_CXX=
10278whole_archive_flag_spec_CXX=
10279enable_shared_with_static_runtimes_CXX=no
10280
10281# Dependencies to place before and after the object being linked:
10282predep_objects_CXX=
10283postdep_objects_CXX=
10284predeps_CXX=
10285postdeps_CXX=
10286compiler_lib_search_path_CXX=
10287
10288# Source file extension for C++ test sources.
10289ac_ext=cpp
10290
10291# Object file extension for compiled C++ test sources.
10292objext=o
10293objext_CXX=$objext
10294
10295# Code to be used in simple compile tests
10296lt_simple_compile_test_code="int some_variable = 0;\n"
10297
10298# Code to be used in simple link tests
10299lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10300
10301# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10302
10303# If no C compiler was specified, use CC.
10304LTCC=${LTCC-"$CC"}
10305
10306# If no C compiler flags were specified, use CFLAGS.
10307LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10308
10309# Allow CC to be a program name with arguments.
10310compiler=$CC
10311
10312
10313# save warnings/boilerplate of simple test code
10314ac_outfile=conftest.$ac_objext
10315printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10316eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10317_lt_compiler_boilerplate=`cat conftest.err`
10318$rm conftest*
10319
10320ac_outfile=conftest.$ac_objext
10321printf "$lt_simple_link_test_code" >conftest.$ac_ext
10322eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10323_lt_linker_boilerplate=`cat conftest.err`
10324$rm conftest*
10325
10326
10327# Allow CC to be a program name with arguments.
10328lt_save_CC=$CC
10329lt_save_LD=$LD
10330lt_save_GCC=$GCC
10331GCC=$GXX
10332lt_save_with_gnu_ld=$with_gnu_ld
10333lt_save_path_LD=$lt_cv_path_LD
10334if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10335  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10336else
10337  $as_unset lt_cv_prog_gnu_ld
10338fi
10339if test -n "${lt_cv_path_LDCXX+set}"; then
10340  lt_cv_path_LD=$lt_cv_path_LDCXX
10341else
10342  $as_unset lt_cv_path_LD
10343fi
10344test -z "${LDCXX+set}" || LD=$LDCXX
10345CC=${CXX-"c++"}
10346compiler=$CC
10347compiler_CXX=$CC
10348for cc_temp in $compiler""; do
10349  case $cc_temp in
10350    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10351    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10352    \-*) ;;
10353    *) break;;
10354  esac
10355done
10356cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10357
10358
10359# We don't want -fno-exception wen compiling C++ code, so set the
10360# no_builtin_flag separately
10361if test "$GXX" = yes; then
10362  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10363else
10364  lt_prog_compiler_no_builtin_flag_CXX=
10365fi
10366
10367if test "$GXX" = yes; then
10368  # Set up default GNU C++ configuration
10369
10370
10371# Check whether --with-gnu-ld or --without-gnu-ld was given.
10372if test "${with_gnu_ld+set}" = set; then
10373  withval="$with_gnu_ld"
10374  test "$withval" = no || with_gnu_ld=yes
10375else
10376  with_gnu_ld=no
10377fi;
10378ac_prog=ld
10379if test "$GCC" = yes; then
10380  # Check if gcc -print-prog-name=ld gives a path.
10381  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10382echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10383  case $host in
10384  *-*-mingw*)
10385    # gcc leaves a trailing carriage return which upsets mingw
10386    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10387  *)
10388    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10389  esac
10390  case $ac_prog in
10391    # Accept absolute paths.
10392    [\\/]* | ?:[\\/]*)
10393      re_direlt='/[^/][^/]*/\.\./'
10394      # Canonicalize the pathname of ld
10395      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10396      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10397        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10398      done
10399      test -z "$LD" && LD="$ac_prog"
10400      ;;
10401  "")
10402    # If it fails, then pretend we aren't using GCC.
10403    ac_prog=ld
10404    ;;
10405  *)
10406    # If it is relative, then search for the first ld in PATH.
10407    with_gnu_ld=unknown
10408    ;;
10409  esac
10410elif test "$with_gnu_ld" = yes; then
10411  echo "$as_me:$LINENO: checking for GNU ld" >&5
10412echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10413else
10414  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10415echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10416fi
10417if test "${lt_cv_path_LD+set}" = set; then
10418  echo $ECHO_N "(cached) $ECHO_C" >&6
10419else
10420  if test -z "$LD"; then
10421  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10422  for ac_dir in $PATH; do
10423    IFS="$lt_save_ifs"
10424    test -z "$ac_dir" && ac_dir=.
10425    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10426      lt_cv_path_LD="$ac_dir/$ac_prog"
10427      # Check to see if the program is GNU ld.  I'd rather use --version,
10428      # but apparently some variants of GNU ld only accept -v.
10429      # Break only if it was the GNU/non-GNU ld that we prefer.
10430      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10431      *GNU* | *'with BFD'*)
10432        test "$with_gnu_ld" != no && break
10433        ;;
10434      *)
10435        test "$with_gnu_ld" != yes && break
10436        ;;
10437      esac
10438    fi
10439  done
10440  IFS="$lt_save_ifs"
10441else
10442  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10443fi
10444fi
10445
10446LD="$lt_cv_path_LD"
10447if test -n "$LD"; then
10448  echo "$as_me:$LINENO: result: $LD" >&5
10449echo "${ECHO_T}$LD" >&6
10450else
10451  echo "$as_me:$LINENO: result: no" >&5
10452echo "${ECHO_T}no" >&6
10453fi
10454test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10455echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10456   { (exit 1); exit 1; }; }
10457echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10458echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10459if test "${lt_cv_prog_gnu_ld+set}" = set; then
10460  echo $ECHO_N "(cached) $ECHO_C" >&6
10461else
10462  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10463case `$LD -v 2>&1 </dev/null` in
10464*GNU* | *'with BFD'*)
10465  lt_cv_prog_gnu_ld=yes
10466  ;;
10467*)
10468  lt_cv_prog_gnu_ld=no
10469  ;;
10470esac
10471fi
10472echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10473echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10474with_gnu_ld=$lt_cv_prog_gnu_ld
10475
10476
10477
10478  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10479  # archiving commands below assume that GNU ld is being used.
10480  if test "$with_gnu_ld" = yes; then
10481    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10482    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'
10483
10484    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10485    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10486
10487    # If archive_cmds runs LD, not CC, wlarc should be empty
10488    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10489    #     investigate it a little bit more. (MM)
10490    wlarc='${wl}'
10491
10492    # ancient GNU ld didn't support --whole-archive et. al.
10493    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10494        grep 'no-whole-archive' > /dev/null; then
10495      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10496    else
10497      whole_archive_flag_spec_CXX=
10498    fi
10499  else
10500    with_gnu_ld=no
10501    wlarc=
10502
10503    # A generic and very simple default shared library creation
10504    # command for GNU C++ for the case where it uses the native
10505    # linker, instead of GNU ld.  If possible, this setting should
10506    # overridden to take advantage of the native linker features on
10507    # the platform it is being used on.
10508    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10509  fi
10510
10511  # Commands to make compiler produce verbose output that lists
10512  # what "hidden" libraries, object files and flags are used when
10513  # linking a shared library.
10514  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10515
10516else
10517  GXX=no
10518  with_gnu_ld=no
10519  wlarc=
10520fi
10521
10522# PORTME: fill in a description of your system's C++ link characteristics
10523echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10524echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10525ld_shlibs_CXX=yes
10526case $host_os in
10527  aix3*)
10528    # FIXME: insert proper C++ library support
10529    ld_shlibs_CXX=no
10530    ;;
10531  aix4* | aix5*)
10532    if test "$host_cpu" = ia64; then
10533      # On IA64, the linker does run time linking by default, so we don't
10534      # have to do anything special.
10535      aix_use_runtimelinking=no
10536      exp_sym_flag='-Bexport'
10537      no_entry_flag=""
10538    else
10539      aix_use_runtimelinking=no
10540
10541      # Test if we are trying to use run time linking or normal
10542      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10543      # need to do runtime linking.
10544      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10545        for ld_flag in $LDFLAGS; do
10546          case $ld_flag in
10547          *-brtl*)
10548            aix_use_runtimelinking=yes
10549            break
10550            ;;
10551          esac
10552        done
10553        ;;
10554      esac
10555
10556      exp_sym_flag='-bexport'
10557      no_entry_flag='-bnoentry'
10558    fi
10559
10560    # When large executables or shared objects are built, AIX ld can
10561    # have problems creating the table of contents.  If linking a library
10562    # or program results in "error TOC overflow" add -mminimal-toc to
10563    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10564    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10565
10566    archive_cmds_CXX=''
10567    hardcode_direct_CXX=yes
10568    hardcode_libdir_separator_CXX=':'
10569    link_all_deplibs_CXX=yes
10570
10571    if test "$GXX" = yes; then
10572      case $host_os in aix4.[012]|aix4.[012].*)
10573      # We only want to do this on AIX 4.2 and lower, the check
10574      # below for broken collect2 doesn't work under 4.3+
10575        collect2name=`${CC} -print-prog-name=collect2`
10576        if test -f "$collect2name" && \
10577           strings "$collect2name" | grep resolve_lib_name >/dev/null
10578        then
10579          # We have reworked collect2
10580          hardcode_direct_CXX=yes
10581        else
10582          # We have old collect2
10583          hardcode_direct_CXX=unsupported
10584          # It fails to find uninstalled libraries when the uninstalled
10585          # path is not listed in the libpath.  Setting hardcode_minus_L
10586          # to unsupported forces relinking
10587          hardcode_minus_L_CXX=yes
10588          hardcode_libdir_flag_spec_CXX='-L$libdir'
10589          hardcode_libdir_separator_CXX=
10590        fi
10591        ;;
10592      esac
10593      shared_flag='-shared'
10594      if test "$aix_use_runtimelinking" = yes; then
10595        shared_flag="$shared_flag "'${wl}-G'
10596      fi
10597    else
10598      # not using gcc
10599      if test "$host_cpu" = ia64; then
10600        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10601        # chokes on -Wl,-G. The following line is correct:
10602        shared_flag='-G'
10603      else
10604        if test "$aix_use_runtimelinking" = yes; then
10605          shared_flag='${wl}-G'
10606        else
10607          shared_flag='${wl}-bM:SRE'
10608        fi
10609      fi
10610    fi
10611
10612    # It seems that -bexpall does not export symbols beginning with
10613    # underscore (_), so it is better to generate a list of symbols to export.
10614    always_export_symbols_CXX=yes
10615    if test "$aix_use_runtimelinking" = yes; then
10616      # Warning - without using the other runtime loading flags (-brtl),
10617      # -berok will link without error, but may produce a broken library.
10618      allow_undefined_flag_CXX='-berok'
10619      # Determine the default libpath from the value encoded in an empty executable.
10620      cat >conftest.$ac_ext <<_ACEOF
10621/* confdefs.h.  */
10622_ACEOF
10623cat confdefs.h >>conftest.$ac_ext
10624cat >>conftest.$ac_ext <<_ACEOF
10625/* end confdefs.h.  */
10626
10627int
10628main ()
10629{
10630
10631  ;
10632  return 0;
10633}
10634_ACEOF
10635rm -f conftest.$ac_objext conftest$ac_exeext
10636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637  (eval $ac_link) 2>conftest.er1
10638  ac_status=$?
10639  grep -v '^ *+' conftest.er1 >conftest.err
10640  rm -f conftest.er1
10641  cat conftest.err >&5
10642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643  (exit $ac_status); } &&
10644         { ac_try='test -z "$ac_cxx_werror_flag"
10645                         || test ! -s conftest.err'
10646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647  (eval $ac_try) 2>&5
10648  ac_status=$?
10649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650  (exit $ac_status); }; } &&
10651         { ac_try='test -s conftest$ac_exeext'
10652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653  (eval $ac_try) 2>&5
10654  ac_status=$?
10655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656  (exit $ac_status); }; }; then
10657
10658aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10659}'`
10660# Check for a 64-bit object if we didn't find anything.
10661if 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; }
10662}'`; fi
10663else
10664  echo "$as_me: failed program was:" >&5
10665sed 's/^/| /' conftest.$ac_ext >&5
10666
10667fi
10668rm -f conftest.err conftest.$ac_objext \
10669      conftest$ac_exeext conftest.$ac_ext
10670if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10671
10672      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10673
10674      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10675     else
10676      if test "$host_cpu" = ia64; then
10677        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10678        allow_undefined_flag_CXX="-z nodefs"
10679        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10680      else
10681        # Determine the default libpath from the value encoded in an empty executable.
10682        cat >conftest.$ac_ext <<_ACEOF
10683/* confdefs.h.  */
10684_ACEOF
10685cat confdefs.h >>conftest.$ac_ext
10686cat >>conftest.$ac_ext <<_ACEOF
10687/* end confdefs.h.  */
10688
10689int
10690main ()
10691{
10692
10693  ;
10694  return 0;
10695}
10696_ACEOF
10697rm -f conftest.$ac_objext conftest$ac_exeext
10698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10699  (eval $ac_link) 2>conftest.er1
10700  ac_status=$?
10701  grep -v '^ *+' conftest.er1 >conftest.err
10702  rm -f conftest.er1
10703  cat conftest.err >&5
10704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705  (exit $ac_status); } &&
10706         { ac_try='test -z "$ac_cxx_werror_flag"
10707                         || test ! -s conftest.err'
10708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709  (eval $ac_try) 2>&5
10710  ac_status=$?
10711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712  (exit $ac_status); }; } &&
10713         { ac_try='test -s conftest$ac_exeext'
10714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715  (eval $ac_try) 2>&5
10716  ac_status=$?
10717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718  (exit $ac_status); }; }; then
10719
10720aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10721}'`
10722# Check for a 64-bit object if we didn't find anything.
10723if 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; }
10724}'`; fi
10725else
10726  echo "$as_me: failed program was:" >&5
10727sed 's/^/| /' conftest.$ac_ext >&5
10728
10729fi
10730rm -f conftest.err conftest.$ac_objext \
10731      conftest$ac_exeext conftest.$ac_ext
10732if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10733
10734        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10735        # Warning - without using the other run time loading flags,
10736        # -berok will link without error, but may produce a broken library.
10737        no_undefined_flag_CXX=' ${wl}-bernotok'
10738        allow_undefined_flag_CXX=' ${wl}-berok'
10739        # Exported symbols can be pulled into shared objects from archives
10740        whole_archive_flag_spec_CXX='$convenience'
10741        archive_cmds_need_lc_CXX=yes
10742        # This is similar to how AIX traditionally builds its shared libraries.
10743        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10744      fi
10745    fi
10746    ;;
10747
10748  beos*)
10749    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10750      allow_undefined_flag_CXX=unsupported
10751      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10752      # support --undefined.  This deserves some investigation.  FIXME
10753      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10754    else
10755      ld_shlibs_CXX=no
10756    fi
10757    ;;
10758
10759  chorus*)
10760    case $cc_basename in
10761      *)
10762        # FIXME: insert proper C++ library support
10763        ld_shlibs_CXX=no
10764        ;;
10765    esac
10766    ;;
10767
10768  cygwin* | mingw* | pw32*)
10769    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10770    # as there is no search path for DLLs.
10771    hardcode_libdir_flag_spec_CXX='-L$libdir'
10772    allow_undefined_flag_CXX=unsupported
10773    always_export_symbols_CXX=no
10774    enable_shared_with_static_runtimes_CXX=yes
10775
10776    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10777      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10778      # If the export-symbols file already is a .def file (1st line
10779      # is EXPORTS), use it as is; otherwise, prepend...
10780      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10781